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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4490c89116e57174deca8340cc866d3572e7a920 | 138 | hh | C++ | include/ten/logging.hh | toffaletti/libten | 00c6dcc91c8d769c74ed9063277b1120c9084427 | [
"Apache-2.0"
] | 23 | 2015-02-28T12:51:54.000Z | 2021-07-21T10:34:20.000Z | include/ten/logging.hh | toffaletti/libten | 00c6dcc91c8d769c74ed9063277b1120c9084427 | [
"Apache-2.0"
] | 1 | 2015-04-26T05:44:18.000Z | 2015-04-26T05:44:18.000Z | include/ten/logging.hh | toffaletti/libten | 00c6dcc91c8d769c74ed9063277b1120c9084427 | [
"Apache-2.0"
] | 8 | 2015-05-04T08:04:11.000Z | 2020-09-07T11:30:56.000Z | #ifndef LIBTEN_LOGGING_HH
#define LIBTEN_LOGGING_HH
#include <glog/logging.h>
#include <glog/stl_logging.h>
#endif // LIBTEN_LOGGING_HH
| 17.25 | 29 | 0.797101 | toffaletti |
4492aee5318c6f1acf25c21c6fb0bdd46828a26e | 7,346 | cpp | C++ | features/FEATURE_BLE/targets/TARGET_CORDIO/TESTS/cordio_hci/transport/main.cpp | leszekgrzegorek/mbed-os | 31fb3f929b5460a3337b5771414a202e2e8ce38e | [
"Apache-2.0"
] | 2 | 2019-10-22T08:34:09.000Z | 2019-10-22T12:47:35.000Z | features/FEATURE_BLE/targets/TARGET_CORDIO/TESTS/cordio_hci/transport/main.cpp | leszekgrzegorek/mbed-os | 31fb3f929b5460a3337b5771414a202e2e8ce38e | [
"Apache-2.0"
] | 8 | 2018-10-10T19:01:30.000Z | 2019-01-17T04:49:51.000Z | features/FEATURE_BLE/targets/TARGET_CORDIO/TESTS/cordio_hci/transport/main.cpp | leszekgrzegorek/mbed-os | 31fb3f929b5460a3337b5771414a202e2e8ce38e | [
"Apache-2.0"
] | 1 | 2020-03-07T00:25:39.000Z | 2020-03-07T00:25:39.000Z | /* mbed Microcontroller Library
* Copyright (c) 2018 ARM Limited
*
* 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 require... | 27.410448 | 95 | 0.645658 | leszekgrzegorek |
44949d9141c711ef2d5f54b925cb6040c5c282ca | 929 | cpp | C++ | test/common/CommonStuffTest.cpp | DKFZ-ODCF/FastqIndEx | e21ef731a1f3341e5ac4525146891689e0cbf9ce | [
"MIT"
] | 1 | 2019-05-21T13:04:08.000Z | 2019-05-21T13:04:08.000Z | test/common/CommonStuffTest.cpp | DKFZ-ODCF/FastqIndEx | e21ef731a1f3341e5ac4525146891689e0cbf9ce | [
"MIT"
] | 34 | 2019-03-13T07:42:00.000Z | 2019-09-19T12:46:28.000Z | test/common/CommonStuffTest.cpp | DKFZ-ODCF/FastqIndEx | e21ef731a1f3341e5ac4525146891689e0cbf9ce | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2019 DKFZ - ODCF
*
* Distributed under the MIT License (license terms are at https://github.com/dkfz-odcf/FastqIndEx/blob/master/LICENSE.txt).
*/
#include "common/CommonStructsAndConstants.h"
#include <UnitTest++/UnitTest++.h>
#include <string>
const char *const COMMONSTUFF_TESTS = "Test suite... | 26.542857 | 124 | 0.631862 | DKFZ-ODCF |
4494e46ae88985dd31ae26e71a52c917d44c6b35 | 1,337 | cpp | C++ | SDK/ARKSurvivalEvolved_Rug_Shag_BP_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Rug_Shag_BP_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Rug_Shag_BP_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | // ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Rug_Shag_BP_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//----------------------------------------------------------------------... | 23.45614 | 116 | 0.670157 | 2bite |
44969157de6542f9f46d380f7d122f254d903682 | 1,779 | cpp | C++ | squangle/mysql_client/OperationBatch.cpp | rkuris/squangle | 54b96ed20746aa8c74b1f520a19deda8a480c76b | [
"BSD-3-Clause"
] | 101 | 2015-02-17T01:20:10.000Z | 2022-02-22T06:17:20.000Z | squangle/mysql_client/OperationBatch.cpp | rkuris/squangle | 54b96ed20746aa8c74b1f520a19deda8a480c76b | [
"BSD-3-Clause"
] | 11 | 2015-02-19T06:29:37.000Z | 2021-09-10T16:51:10.000Z | squangle/mysql_client/OperationBatch.cpp | rkuris/squangle | 54b96ed20746aa8c74b1f520a19deda8a480c76b | [
"BSD-3-Clause"
] | 45 | 2015-02-19T06:08:24.000Z | 2022-02-18T02:07:49.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates..
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
*/
//
#include "squangle/mysql_client/OperationBatch.h"
#include <thread>
namespace facebook {
... | 25.056338 | 80 | 0.679595 | rkuris |
4498131534a477ec68520a009de4a32f05d07113 | 982 | cpp | C++ | HCore/CCore/src/Abort.cpp | SergeyStrukov/CCore-2-xx | 118aa4011ee7cc587298d6373b6587540e044a83 | [
"BSL-1.0"
] | 8 | 2017-12-21T07:00:16.000Z | 2020-04-02T09:05:55.000Z | HCore/CCore/src/Abort.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | null | null | null | HCore/CCore/src/Abort.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | 1 | 2020-03-30T09:54:18.000Z | 2020-03-30T09:54:18.000Z | /* Abort.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 2.00
//
// Tag: HCore Mini
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
//
// Copyrig... | 17.535714 | 90 | 0.494908 | SergeyStrukov |
449f87c14858f7385e509d7248fb43a538d64585 | 31,553 | cpp | C++ | src/external/Creo/part.cpp | earl-ducaine/brlcad-mirror | 402bd3542a10618d1f749b264cadf9b0bd723546 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | 1 | 2019-10-23T16:17:49.000Z | 2019-10-23T16:17:49.000Z | src/external/Creo/part.cpp | pombredanne/sf.net-brlcad | fb56f37c201b51241e8f3aa7b979436856f43b8c | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | src/external/Creo/part.cpp | pombredanne/sf.net-brlcad | fb56f37c201b51241e8f3aa7b979436856f43b8c | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | /* P A R T . C P P
* BRL-CAD
*
* Copyright (c) 2017-2019 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as publi... | 33.143908 | 247 | 0.672836 | earl-ducaine |
44a56b59351f25e8b2786e66accbcea00174a98b | 532 | cpp | C++ | src/noj_am/BOJ_1654.cpp | ginami0129g/my-problem-solving | b173b5df42354b206839711fa166fcd515c6a69c | [
"Beerware"
] | 1 | 2020-06-01T12:19:31.000Z | 2020-06-01T12:19:31.000Z | src/noj_am/BOJ_1654.cpp | ginami0129g/my-study-history | b173b5df42354b206839711fa166fcd515c6a69c | [
"Beerware"
] | 23 | 2020-11-08T07:14:02.000Z | 2021-02-11T11:16:00.000Z | src/noj_am/BOJ_1654.cpp | ginami0129g/my-problem-solving | b173b5df42354b206839711fa166fcd515c6a69c | [
"Beerware"
] | null | null | null | #include <bits/stdc++.h>
#define MAX 10000
using namespace std;
int k, n, arr[MAX];
int main(void) {
cin.tie(NULL);
ios_base::sync_with_stdio(false);
cin >> k >> n;
for (int i = 0; i < k; ++i) {
cin >> arr[i];
}
long long low = 1;
int high = INT_MAX;
while (low <= high) {
long long mid = ... | 16.625 | 37 | 0.468045 | ginami0129g |
44a62afb61e75d8bdd67e351ddd895bfe2da4c5a | 5,892 | cpp | C++ | src/modelinfo/ClumpModelInfo.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | 2 | 2021-03-24T22:11:27.000Z | 2021-05-07T06:51:04.000Z | src/modelinfo/ClumpModelInfo.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | null | null | null | src/modelinfo/ClumpModelInfo.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | null | null | null | #include "common.h"
#include "RwHelper.h"
#include "General.h"
#include "NodeName.h"
#include "VisibilityPlugins.h"
#include "ModelInfo.h"
#include "ModelIndices.h"
void
CClumpModelInfo::DeleteRwObject(void)
{
if(m_clump){
RpClumpDestroy(m_clump);
m_clump = nil;
RemoveTexDictionaryRef();
}
}
#ifdef PED_SKIN
... | 27.924171 | 125 | 0.758995 | gameblabla |
44a817b261bbe93d658a65cffb1d639ffdac642b | 19,645 | cc | C++ | mediapipe/framework/packet_test.cc | Amankumar1456/IC464_Sixth_Sense | 08ba64f0d94b2a7acb6b79eb2159cbdf493d1a65 | [
"Apache-2.0"
] | 6 | 2020-02-12T20:46:41.000Z | 2021-04-14T17:48:54.000Z | mediapipe/framework/packet_test.cc | Amankumar1456/IC464_Sixth_Sense | 08ba64f0d94b2a7acb6b79eb2159cbdf493d1a65 | [
"Apache-2.0"
] | null | null | null | mediapipe/framework/packet_test.cc | Amankumar1456/IC464_Sixth_Sense | 08ba64f0d94b2a7acb6b79eb2159cbdf493d1a65 | [
"Apache-2.0"
] | 2 | 2020-12-03T08:00:44.000Z | 2020-12-03T08:10:34.000Z | // Copyright 2019 The MediaPipe Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... | 38.519608 | 80 | 0.71265 | Amankumar1456 |
44a86707506c1ecc1fd8ed9172c30c51c72ba2a6 | 5,494 | cpp | C++ | opencv_contrib/src/+cv/private/GuidedFilter_.cpp | zsj0577/mexopencv | 678ced73615f3581a0fe09823758446ff4ca3197 | [
"BSD-3-Clause"
] | null | null | null | opencv_contrib/src/+cv/private/GuidedFilter_.cpp | zsj0577/mexopencv | 678ced73615f3581a0fe09823758446ff4ca3197 | [
"BSD-3-Clause"
] | null | null | null | opencv_contrib/src/+cv/private/GuidedFilter_.cpp | zsj0577/mexopencv | 678ced73615f3581a0fe09823758446ff4ca3197 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file GuidedFilter_.cpp
* @brief mex interface for cv::ximgproc::GuidedFilter
* @ingroup ximgproc
* @author Amro
* @date 2016
*/
#include "mexopencv.hpp"
#include "opencv2/ximgproc.hpp"
using namespace std;
using namespace cv;
using namespace cv::ximgproc;
// Persistent objects
namespace {
/// Last object ... | 32.702381 | 81 | 0.543138 | zsj0577 |
44a8a861f52b034e37148f1fc5fc7255034b47f2 | 1,095 | hpp | C++ | src/imageblit.hpp | jkesanen/txtratl | cf67412e251d7c89c3bfc332026b482352a42c24 | [
"MIT"
] | null | null | null | src/imageblit.hpp | jkesanen/txtratl | cf67412e251d7c89c3bfc332026b482352a42c24 | [
"MIT"
] | null | null | null | src/imageblit.hpp | jkesanen/txtratl | cf67412e251d7c89c3bfc332026b482352a42c24 | [
"MIT"
] | null | null | null | #pragma once
#include <cstddef>
#include <cstdint>
namespace imageblit
{
/**
* @brief Blits RGBA image (32-bit) into RGB image (24-bit) utilizing SSE3 intrinsics
*
* @param dest is a pointer to destination image
* @param src is a pointer to source image
* @param rows is the height of the sou... | 34.21875 | 127 | 0.705023 | jkesanen |
44a903df2d127def9c658b00c79f4a2ae64df695 | 537 | hpp | C++ | Siv3D/include/Siv3D/Demangle.hpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 2 | 2021-11-22T00:52:48.000Z | 2021-12-24T09:33:55.000Z | Siv3D/include/Siv3D/Demangle.hpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 32 | 2021-10-09T10:04:11.000Z | 2022-02-25T06:10:13.000Z | Siv3D/include/Siv3D/Demangle.hpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 1 | 2021-12-31T05:08:00.000Z | 2021-12-31T05:08:00.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include "Common.hpp"
# include... | 19.888889 | 50 | 0.553073 | tas9n |
44a9b505d0d5e49edd66067a6c7f42fff645ab21 | 60,041 | cpp | C++ | src/uti_phgrm/CPP_Malt.cpp | rumenmitrev/micmac | 065de918bb963a1c0f472504862c3060e180d48b | [
"CECILL-B"
] | 451 | 2016-11-25T09:40:28.000Z | 2022-03-30T04:20:42.000Z | src/uti_phgrm/CPP_Malt.cpp | rumenmitrev/micmac | 065de918bb963a1c0f472504862c3060e180d48b | [
"CECILL-B"
] | 143 | 2016-11-25T20:35:57.000Z | 2022-03-01T11:58:02.000Z | src/uti_phgrm/CPP_Malt.cpp | rumenmitrev/micmac | 065de918bb963a1c0f472504862c3060e180d48b | [
"CECILL-B"
] | 139 | 2016-12-02T10:26:21.000Z | 2022-03-10T19:40:29.000Z | /*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : Marc Pierrot Deseilligny
Contributors : Gregoire Maillet, ... | 36.655067 | 209 | 0.50677 | rumenmitrev |
44b16135bc8a806c90386e48fb7d3a11b59fa998 | 922 | cc | C++ | skiko/src/jvmMain/cpp/linux/awt.cc | sellmair/skiko | 9ccc6234799558386ccfa00630600e02c8eb62f9 | [
"Apache-2.0"
] | 842 | 2020-07-27T11:38:31.000Z | 2022-03-30T17:37:21.000Z | skiko/src/jvmMain/cpp/linux/awt.cc | sellmair/skiko | 9ccc6234799558386ccfa00630600e02c8eb62f9 | [
"Apache-2.0"
] | 127 | 2020-09-17T08:12:40.000Z | 2022-03-31T08:56:56.000Z | skiko/src/jvmMain/cpp/linux/awt.cc | sellmair/skiko | 9ccc6234799558386ccfa00630600e02c8eb62f9 | [
"Apache-2.0"
] | 49 | 2020-07-27T16:48:56.000Z | 2022-03-24T14:15:33.000Z | #include <jawt_md.h>
#include <GL/gl.h>
#include <GL/glx.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xresource.h>
#include <cstdlib>
#include <unistd.h>
#include <stdio.h>
#include "jni_helpers.h"
extern "C"
{
JNIEXPORT jlong JNICALL Java_org_jetbrains_skiko_AWTLinuxDrawingSurfaceKt_getDisplay(JNIEnv... | 32.928571 | 142 | 0.745119 | sellmair |
44b508bc1642f249629928ec0c43b1b9bc8978b2 | 3,573 | hpp | C++ | Taunus_Life.xcam_taunus/config/Config_Gather.hpp | littlefalcon/tnlife | 59dd7d53488f181128bd71fa3e799b5b6b359332 | [
"MIT"
] | null | null | null | Taunus_Life.xcam_taunus/config/Config_Gather.hpp | littlefalcon/tnlife | 59dd7d53488f181128bd71fa3e799b5b6b359332 | [
"MIT"
] | null | null | null | Taunus_Life.xcam_taunus/config/Config_Gather.hpp | littlefalcon/tnlife | 59dd7d53488f181128bd71fa3e799b5b6b359332 | [
"MIT"
] | null | null | null | class CfgGather {
class Resources {
class apple {
amount = 5;
zones[] = { "apple_1", "apple_2", "apple_3", "apple_4" };
item = "";
zoneSize = 30;
};
class peach {
amount = 5;
zones[] = { "peaches_1", "peaches_2", "peach... | 27.697674 | 106 | 0.447243 | littlefalcon |
44b7cb4fa7460c175486addca0871433b22d613a | 6,600 | cpp | C++ | tools/cmd/posit.cpp | AI-App/universal | a2e8eff7a1354faa8c9584e347414ee62b12e1be | [
"MIT"
] | 254 | 2017-05-24T16:51:57.000Z | 2022-03-22T13:07:29.000Z | tools/cmd/posit.cpp | jamesquinlan/universal | 3b7e6bf37cbb9123425b634d18af18a409c2eccc | [
"MIT"
] | 101 | 2017-11-09T22:57:24.000Z | 2022-03-17T12:44:59.000Z | tools/cmd/posit.cpp | jamesquinlan/universal | 3b7e6bf37cbb9123425b634d18af18a409c2eccc | [
"MIT"
] | 55 | 2017-06-09T10:04:38.000Z | 2022-02-01T16:54:56.000Z | // posit.cpp: components of a posit: cli to show the sign/scale/regime/exponent/fraction components of standard posit configurations
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <unive... | 50.769231 | 132 | 0.627273 | AI-App |
44b7e18ae20f1fe603676a64e382f14b26349577 | 10,591 | cpp | C++ | lib/regi/interfaces_2d_3d/xregIntensity2D3DRegiHillClimb.cpp | rg2/xreg | c06440d7995f8a441420e311bb7b6524452843d3 | [
"MIT"
] | 30 | 2020-09-29T18:36:13.000Z | 2022-03-28T09:25:13.000Z | lib/regi/interfaces_2d_3d/xregIntensity2D3DRegiHillClimb.cpp | gaocong13/Orthopedic-Robot-Navigation | bf36f7de116c1c99b86c9ba50f111c3796336af0 | [
"MIT"
] | 3 | 2020-10-09T01:21:27.000Z | 2020-12-10T15:39:44.000Z | lib/regi/interfaces_2d_3d/xregIntensity2D3DRegiHillClimb.cpp | rg2/xreg | c06440d7995f8a441420e311bb7b6524452843d3 | [
"MIT"
] | 8 | 2021-05-25T05:14:48.000Z | 2022-02-26T12:29:50.000Z | /*
* MIT License
*
* Copyright (c) 2020 Robert Grupp
*
* 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... | 34.054662 | 139 | 0.703994 | rg2 |
44ba46491ec33ae19c92091df016a6a11f266d9b | 1,836 | hh | C++ | tests/libtests/spatialdb/TestSpatialDB.hh | rwalkerlewis/spatialdata | 515c8d9dec21d261d0d654b5c30e6759565268d2 | [
"MIT"
] | 6 | 2017-09-19T11:05:33.000Z | 2019-09-26T08:18:30.000Z | tests/libtests/spatialdb/TestSpatialDB.hh | rwalkerlewis/spatialdata | 515c8d9dec21d261d0d654b5c30e6759565268d2 | [
"MIT"
] | 38 | 2017-06-28T15:44:50.000Z | 2022-02-17T04:04:02.000Z | tests/libtests/spatialdb/TestSpatialDB.hh | rwalkerlewis/spatialdata | 515c8d9dec21d261d0d654b5c30e6759565268d2 | [
"MIT"
] | 11 | 2015-11-09T06:29:35.000Z | 2021-06-02T14:13:59.000Z | // -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://geodynamics.org).
//
// Copyright (c) 2010-2017 University of California, Davis
/... | 23.844156 | 73 | 0.594227 | rwalkerlewis |
44baada6babfa27d4aad5253b1a121ba4166cc5f | 2,672 | hpp | C++ | libraries/chain/include/graphene/chain/protocol/contract_asset.hpp | my-graphene/core | 3959619043c06bd3f54a3e6897fab755801db464 | [
"MIT"
] | 264 | 2017-09-22T07:15:31.000Z | 2021-08-07T04:43:38.000Z | libraries/chain/include/graphene/chain/protocol/contract_asset.hpp | yoyow-org/bitshares-core | f4fe6e48844b0c01dc267a04c6ef61b39f1ea1c1 | [
"MIT"
] | 5 | 2017-09-10T08:09:05.000Z | 2020-03-30T05:26:07.000Z | libraries/chain/include/graphene/chain/protocol/contract_asset.hpp | yoyow-org/bitshares-core | f4fe6e48844b0c01dc267a04c6ef61b39f1ea1c1 | [
"MIT"
] | 90 | 2017-12-26T05:11:12.000Z | 2021-07-21T09:36:32.000Z | #pragma once
#include <tuple>
namespace graphene { namespace chain {
extern const int64_t scaled_precision_lut[];
struct contract_asset {
contract_asset(int64_t a = 0, uint64_t id = 0)
: amount(a)
, asset_id(id)
{
FC_ASSERT(is_amount_within_range(), "magnitude of asset amount must be ... | 30.022472 | 97 | 0.634356 | my-graphene |
44be39d8e6221b2e13f8442f558b347fe8dc5c87 | 3,918 | cpp | C++ | third_party/misc/def/cdef/xdefiGroup.cpp | milad621/livehd | 370b4274809ef95f880da07a603245bffcadf05e | [
"BSD-3-Clause"
] | 74 | 2017-10-19T03:10:52.000Z | 2022-03-28T17:51:54.000Z | third_party/misc/def/cdef/xdefiGroup.cpp | milad621/livehd | 370b4274809ef95f880da07a603245bffcadf05e | [
"BSD-3-Clause"
] | 25 | 2019-08-08T19:49:01.000Z | 2021-01-01T13:41:42.000Z | third_party/misc/def/cdef/xdefiGroup.cpp | milad621/livehd | 370b4274809ef95f880da07a603245bffcadf05e | [
"BSD-3-Clause"
] | 26 | 2017-11-07T10:32:54.000Z | 2021-10-02T02:22:37.000Z | // *****************************************************************************
// *****************************************************************************
// ATTENTION: THIS IS AN AUTO-GENERATED FILE. DO NOT CHANGE IT!
// *****************************************************************************
// **********... | 33.775862 | 108 | 0.607198 | milad621 |
44c15cc24590073b66586dd9104f9e5a09d53584 | 4,492 | cpp | C++ | build/linux-build/Sources/src/kha/_Assets/VideoList.cpp | 5Mixer/GGJ20 | a12a14d596ab150e8d96dda5a21defcd176f251f | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/kha/_Assets/VideoList.cpp | 5Mixer/GGJ20 | a12a14d596ab150e8d96dda5a21defcd176f251f | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/kha/_Assets/VideoList.cpp | 5Mixer/GGJ20 | a12a14d596ab150e8d96dda5a21defcd176f251f | [
"MIT"
] | null | null | null | // Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_Reflect
#include <hxinc/Reflect.h>
#endif
#ifndef INCLUDED_kha_Resource
#include <hxinc/kha/Resource.h>
#endif
#ifndef INCLUDED_kha_Video
#include <hxinc/kha/Video.h>
#endif
#ifndef INCLUDED_kha__Assets_VideoList
#include <hxinc/kha/_Assets/VideoList.h>
#e... | 30.557823 | 171 | 0.743989 | 5Mixer |
44c355f1cedc88b9acdae9ee84cef9405cd1bfac | 5,631 | hpp | C++ | src/include/factors/LidarPlaneFactor.hpp | Saki-Chen/W-LOAM | 39ad29da0db760401c06d17c22a0e43d8562efec | [
"BSD-3-Clause"
] | 19 | 2021-08-24T02:24:42.000Z | 2022-02-28T09:56:10.000Z | src/include/factors/LidarPlaneFactor.hpp | xingchengzhi/W-LOAM | eca5c1932fc48b0d4f47cfd7bc85c874afd09631 | [
"BSD-3-Clause"
] | 2 | 2021-11-01T03:41:16.000Z | 2022-01-24T12:33:35.000Z | src/include/factors/LidarPlaneFactor.hpp | xingchengzhi/W-LOAM | eca5c1932fc48b0d4f47cfd7bc85c874afd09631 | [
"BSD-3-Clause"
] | 6 | 2021-10-30T05:11:46.000Z | 2022-03-16T08:59:59.000Z | #pragma once
#include <Eigen/Core>
#include <gtsam/nonlinear/NonlinearFactor.h>
#include <gtsam/geometry/Pose3.h>
#include <gtsam/geometry/Point3.h>
namespace gtsam
{
class LidarPlaneFactor2 : public NoiseModelFactor2<Pose3, Pose3>
{
using X = Pose3;
using Base = NoiseModelFactor2<Pose3, Pose3>;
using... | 33.718563 | 136 | 0.560469 | Saki-Chen |
44c6cb5a3a7b2c6eb3447bfd4c6ffa8bb0956c71 | 11,684 | cpp | C++ | source/libsound/OpenAL/al_sound_source.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 113 | 2015-06-25T06:24:59.000Z | 2021-09-26T02:46:02.000Z | source/libsound/OpenAL/al_sound_source.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 2 | 2015-05-03T07:22:49.000Z | 2017-12-11T09:17:20.000Z | source/libsound/OpenAL/al_sound_source.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 17 | 2015-11-10T15:07:15.000Z | 2021-01-19T15:28:16.000Z | // +----------------------------------------------------------------------
// | Project : ray.
// | All rights reserved.
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2015.
// +----------------------------------------------------------------------
// | * Redistributi... | 22.170778 | 90 | 0.697107 | Lauvak |
44cbef1c5c4420b5f61dd40d6c39f7ff437c3acf | 123 | hxx | C++ | src/Providers/UNIXProviders/SuppliesPower/UNIX_SuppliesPower_DARWIN.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/SuppliesPower/UNIX_SuppliesPower_DARWIN.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/SuppliesPower/UNIX_SuppliesPower_DARWIN.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_DARWIN
#ifndef __UNIX_SUPPLIESPOWER_PRIVATE_H
#define __UNIX_SUPPLIESPOWER_PRIVATE_H
#endif
#endif
| 10.25 | 38 | 0.845528 | brunolauze |
44cd6a3d7feaec0155aafa9aca358c8afee20c0d | 660 | cpp | C++ | solutions-CODEUP/100000583-02.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | 1 | 2022-02-26T10:33:24.000Z | 2022-02-26T10:33:24.000Z | solutions-CODEUP/100000583-02.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | null | null | null | solutions-CODEUP/100000583-02.cpp | Ki-Seki/solutions | e4329712d664180d850e0a48d7d0f637215f13d0 | [
"MIT"
] | 1 | 2021-12-01T14:54:33.000Z | 2021-12-01T14:54:33.000Z | /*
* hint:
* 递归题的关键就是找清楚 递归边界 和 递归式
*/
#include <iostream>
#define MAXN 25
using namespace std;
const int capacity = 40;
int things[MAXN], cnt;
// 决策是否选择 things[index]
// 当前重量为 curr_weight
int choice(int index, int curr_weight)
{
// 递归边界
if (curr_weight == capacity)
return 1;
if (index > cnt || ... | 18.857143 | 91 | 0.563636 | Ki-Seki |
44d32d045260457efb32598cc7f7ad4f7db19bc5 | 657 | cpp | C++ | Arrays/maxsummatrix.cpp | sans712/SDE-Interview-Questions | 44f5bda60b9ed301b93a944e1c333d833c9b054b | [
"MIT"
] | null | null | null | Arrays/maxsummatrix.cpp | sans712/SDE-Interview-Questions | 44f5bda60b9ed301b93a944e1c333d833c9b054b | [
"MIT"
] | null | null | null | Arrays/maxsummatrix.cpp | sans712/SDE-Interview-Questions | 44f5bda60b9ed301b93a944e1c333d833c9b054b | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
#include<bits/stdc++.h>
int maxsum(int **arr,int n,int m){
int result=INT_MIN;
//col wise
for(int i=n-1;i>=0;i--){
for(int j=m-2;j>=0;j--){
arr[i][j]+=arr[i][j+1];
}
}
//row wise
for(int j=m-1;j>=0;j--)
{
for(int i=n-2;i>=0;i--){
arr[i][j]+=arr[i+1][j];
}
}
... | 17.289474 | 38 | 0.526636 | sans712 |
44dcc300899a5e46dce1e8e3ad2b6ee14bb82f58 | 1,358 | cpp | C++ | 3rdparty/rxcpp/Rx/v2/test/sources/create.cpp | wohaaitinciu/zpublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 50 | 2015-01-07T01:54:54.000Z | 2021-01-15T00:41:48.000Z | 3rdparty/rxcpp/Rx/v2/test/sources/create.cpp | sinmx/ZPublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 1 | 2015-05-26T07:40:19.000Z | 2015-05-26T07:40:19.000Z | 3rdparty/rxcpp/Rx/v2/test/sources/create.cpp | sinmx/ZPublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 39 | 2015-01-07T02:03:15.000Z | 2021-01-15T00:41:50.000Z | #include "rxcpp/rx.hpp"
namespace rx=rxcpp;
namespace rxu=rxcpp::util;
namespace rxsc=rxcpp::schedulers;
#include "rxcpp/rx-test.hpp"
#include "catch.hpp"
SCENARIO("create stops on completion", "[create][sources]"){
GIVEN("a test cold observable of ints"){
auto sc = rxsc::make_test();
auto w = sc.... | 28.893617 | 86 | 0.442563 | wohaaitinciu |
44dda893648584420d1f7994007334dfb7b6440a | 5,208 | hpp | C++ | sprout/algorithm/fixed/random_swap_result.hpp | kevcadieux/Sprout | 6b5addba9face0a6403e66e7db2aa94d87387f61 | [
"BSL-1.0"
] | 691 | 2015-01-15T18:52:23.000Z | 2022-03-15T23:39:39.000Z | sprout/algorithm/fixed/random_swap_result.hpp | kevcadieux/Sprout | 6b5addba9face0a6403e66e7db2aa94d87387f61 | [
"BSL-1.0"
] | 22 | 2015-03-11T01:22:56.000Z | 2021-03-29T01:51:45.000Z | sprout/algorithm/fixed/random_swap_result.hpp | kevcadieux/Sprout | 6b5addba9face0a6403e66e7db2aa94d87387f61 | [
"BSL-1.0"
] | 57 | 2015-03-11T07:52:29.000Z | 2021-12-16T09:15:33.000Z | /*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
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.tx... | 46.088496 | 131 | 0.719086 | kevcadieux |
44de97d73e9af9891091ec94a93e0570e9caf7c9 | 6,977 | cpp | C++ | tools/cpp/Profiler.cpp | Napoleon-Jm/MNN | 67f8bc94ef8227baca2ed8acb155693917cd57e8 | [
"Apache-2.0"
] | 6,958 | 2019-05-06T02:38:02.000Z | 2022-03-31T18:08:48.000Z | tools/cpp/Profiler.cpp | Napoleon-Jm/MNN | 67f8bc94ef8227baca2ed8acb155693917cd57e8 | [
"Apache-2.0"
] | 1,775 | 2019-05-06T04:40:19.000Z | 2022-03-30T15:39:24.000Z | tools/cpp/Profiler.cpp | Napoleon-Jm/MNN | 67f8bc94ef8227baca2ed8acb155693917cd57e8 | [
"Apache-2.0"
] | 1,511 | 2019-05-06T02:38:05.000Z | 2022-03-31T16:59:39.000Z | //
// Profiler.cpp
// MNN
//
// Created by MNN on 2019/01/15.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include <string.h>
#include <algorithm>
#include <string>
#if defined(_MSC_VER)
#include <Windows.h>
#undef min
#undef max
#else
#include <sys/time.h>
#endif
#include "Profiler.hpp"
#include "core/M... | 31.713636 | 161 | 0.607281 | Napoleon-Jm |
44dea6b02557c960a5f06c444105ccd867c9bfba | 2,072 | cc | C++ | impl/browser/renderer_host/touchpad_tap_suppression_controller_efl.cc | Jabawack/chromium-efl | 6d3a3accc8afba0aa0eff6461eb5c83138172e6e | [
"BSD-3-Clause"
] | null | null | null | impl/browser/renderer_host/touchpad_tap_suppression_controller_efl.cc | Jabawack/chromium-efl | 6d3a3accc8afba0aa0eff6461eb5c83138172e6e | [
"BSD-3-Clause"
] | null | null | null | impl/browser/renderer_host/touchpad_tap_suppression_controller_efl.cc | Jabawack/chromium-efl | 6d3a3accc8afba0aa0eff6461eb5c83138172e6e | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Copyright 2014 Samsung Electronics. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/renderer_host/input/touchpad_tap_suppression_controller.h"
#inc... | 33.967213 | 101 | 0.820463 | Jabawack |
44e2caa4f8e973e2ab607018a9e19f4655306c19 | 6,005 | cpp | C++ | sample_src/Grishagin/GrishaginOption.cpp | kabarkalov/GCGen | 7af4abd6079a89b3ea99efc6c054f0edeeb0ec9d | [
"MIT"
] | 3 | 2020-09-26T16:17:22.000Z | 2021-05-06T22:33:52.000Z | sample_src/Grishagin/GrishaginOption.cpp | kabarkalov/GCGen | 7af4abd6079a89b3ea99efc6c054f0edeeb0ec9d | [
"MIT"
] | 2 | 2019-11-14T12:07:27.000Z | 2021-03-12T11:00:11.000Z | sample_src/Grishagin/GrishaginOption.cpp | kabarkalov/GCGen | 7af4abd6079a89b3ea99efc6c054f0edeeb0ec9d | [
"MIT"
] | 3 | 2019-12-03T10:34:38.000Z | 2020-10-08T06:40:51.000Z | #include "GrishaginOption.hpp"
const double rand_minimums[] = {
0.603052, 0.408337, /*f(min1)=-13.51436*/
0.652988, 0.320592, /*f(min2)=-11.28447*/
1.000000, 0.000000, /*f(min3)=-13.20907*/
0.066182, 0.582587, /*f(min4)=-11.54117*/
0.904308, 0.872639, /*f(min5)=-9.969261*/
0.344375, 0.524932, /*f(min6)=-9... | 50.889831 | 140 | 0.532889 | kabarkalov |
44e2e2aa12060a4bcf4b4510016a45037e14b3c3 | 1,382 | cpp | C++ | N0228-Summary-Ranges/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | N0228-Summary-Ranges/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | null | null | null | N0228-Summary-Ranges/solution1.cpp | loyio/leetcode | 366393c29a434a621592ef6674a45795a3086184 | [
"CC0-1.0"
] | 2 | 2022-01-25T05:31:31.000Z | 2022-02-26T07:22:23.000Z | //
// main.cpp
// LeetCode-Solution
//
// Created by Loyio Hex on 2/27/22.
//
#include <iostream>
#include <stdio.h>
#include <chrono>
#include <vector>
#include <unordered_map>
using namespace std;
using namespace std::chrono;
class Solution {
public:
vector<string> summaryRanges(vector<int>& nums) {
... | 23.033333 | 74 | 0.518813 | loyio |
44e2fa50d740c62f5ed7a671e5312b8d0c0daff8 | 812 | hpp | C++ | SDK/ARKSurvivalEvolved_WeapRocketLauncher_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_WeapRocketLauncher_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_WeapRocketLauncher_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_WeapRocketLauncher_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//------------------------------------------------------... | 20.3 | 106 | 0.6367 | 2bite |
44e68c305b4e85f2d901851680ee968a410f6ca3 | 690 | cpp | C++ | max_min_arrange.cpp | ujjaldas1997/Competitive-programming | f8526161b3b14056633ec290b0c65ba762e8552e | [
"MIT"
] | null | null | null | max_min_arrange.cpp | ujjaldas1997/Competitive-programming | f8526161b3b14056633ec290b0c65ba762e8552e | [
"MIT"
] | null | null | null | max_min_arrange.cpp | ujjaldas1997/Competitive-programming | f8526161b3b14056633ec290b0c65ba762e8552e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
void show_max_min(vector<int> box){
int n = box.size(), l = 0, r = n - 1, maxm = box.back() + 1;
for(int i = 0; i < n; ++i){
if(i % 2 == 0){
box[i] += (box[r] % maxm) * maxm;
--r;
}
else{
box[i] += (box[l] % maxm) * maxm;
++l;
... | 19.166667 | 64 | 0.414493 | ujjaldas1997 |
44ea22a9e0e7870caa9235b015b524ad52be1c48 | 424 | hpp | C++ | nano/rpc/rpc_secure.hpp | Sukhmai/nano-node | d4b3e5473ed85366edbd91aebc698ccc28e018fb | [
"BSD-3-Clause"
] | 882 | 2018-02-13T22:06:38.000Z | 2019-01-02T19:43:34.000Z | nano/rpc/rpc_secure.hpp | Sukhmai/nano-node | d4b3e5473ed85366edbd91aebc698ccc28e018fb | [
"BSD-3-Clause"
] | 746 | 2018-02-13T19:44:54.000Z | 2019-01-02T15:09:36.000Z | nano/rpc/rpc_secure.hpp | Sukhmai/nano-node | d4b3e5473ed85366edbd91aebc698ccc28e018fb | [
"BSD-3-Clause"
] | 312 | 2018-02-14T00:25:33.000Z | 2019-01-02T08:03:27.000Z | #pragma once
#include <nano/rpc/rpc.hpp>
namespace boost
{
namespace asio
{
class io_context;
}
}
namespace nano
{
/**
* Specialization of nano::rpc with TLS support
*/
class rpc_secure : public rpc
{
public:
rpc_secure (boost::asio::io_context & context_a, nano::rpc_config const & config_a, nano::rpc_handler_int... | 16.307692 | 140 | 0.728774 | Sukhmai |
44ef1d55692822a38218355b1336f10e04162841 | 229 | cpp | C++ | Aplikasi-Version-1.6/server.cpp | Anangprasetya/SistemPembayaranUAD | 4ddaf60e1f4ccdf6597ca5db7b43c0493679d1e2 | [
"Apache-2.0"
] | 1 | 2021-06-24T12:45:47.000Z | 2021-06-24T12:45:47.000Z | Aplikasi-Version-1.6/server.cpp | Anangprasetya/SistemPembayaranUAD | 4ddaf60e1f4ccdf6597ca5db7b43c0493679d1e2 | [
"Apache-2.0"
] | null | null | null | Aplikasi-Version-1.6/server.cpp | Anangprasetya/SistemPembayaranUAD | 4ddaf60e1f4ccdf6597ca5db7b43c0493679d1e2 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include <iomanip>
#include <stdlib.h>
#include <sstream>
#include "Run/server_running.h"
using namespace std;
int main(){
Server * App;
App = new Server();
App->run();
return 0;
} | 12.052632 | 31 | 0.672489 | Anangprasetya |
6021c514e1bbe9fdead0bfd50a898ae5abc640cd | 399 | cpp | C++ | source/aufgabe113.cpp | lissylasagne/programmiersprachen-aufgabe-1 | 3c191fdfdfa7a6372ee0458d9bd33cd59bfc4d66 | [
"MIT"
] | null | null | null | source/aufgabe113.cpp | lissylasagne/programmiersprachen-aufgabe-1 | 3c191fdfdfa7a6372ee0458d9bd33cd59bfc4d66 | [
"MIT"
] | null | null | null | source/aufgabe113.cpp | lissylasagne/programmiersprachen-aufgabe-1 | 3c191fdfdfa7a6372ee0458d9bd33cd59bfc4d66 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_RUNNER
#include "catch.hpp"
#include <iostream>
int factorial (int num){
if (num <= 1){
return num;
} else {
return num * factorial(num - 1);
}
}
TEST_CASE ("factorials_work", "[factorial]"){
REQUIRE(factorial(1) == 1);
REQUIRE(factorial(4) ==24);
REQUIRE(factorial(7) == 5040);
}
int m... | 18.136364 | 46 | 0.641604 | lissylasagne |
6022d240a21eff86c6b79a399dce87327c85d174 | 2,292 | hpp | C++ | Queue.hpp | brandonlammey/Queue | 077718f6ad866cf6576f89cc00898ede68fd9092 | [
"MIT"
] | null | null | null | Queue.hpp | brandonlammey/Queue | 077718f6ad866cf6576f89cc00898ede68fd9092 | [
"MIT"
] | null | null | null | Queue.hpp | brandonlammey/Queue | 077718f6ad866cf6576f89cc00898ede68fd9092 | [
"MIT"
] | null | null | null | /*
* File Name: Queue.hpp
* Author: Brandon Lammey
* KUID: 2855296
* Email Address: archerlammey@ku.edu
* Homework: Lab 05
* Description: Implements Queue class.
*/
//#include "QueueInterface.h"
//#include "Node.h"
//#include "PreconditionViolationException.h"
//#include <iostream>
template<typename T>
Queu... | 19.930435 | 83 | 0.697208 | brandonlammey |
6023805dcb92ed493f42bd2e3ed5ff253edf5332 | 806 | cpp | C++ | pair.cpp | geronimoooooooo/arduino | b1e3db1f93c4f4abd7702fdcad0589741c7e3880 | [
"MIT"
] | null | null | null | pair.cpp | geronimoooooooo/arduino | b1e3db1f93c4f4abd7702fdcad0589741c7e3880 | [
"MIT"
] | null | null | null | pair.cpp | geronimoooooooo/arduino | b1e3db1f93c4f4abd7702fdcad0589741c7e3880 | [
"MIT"
] | 1 | 2019-09-06T12:51:17.000Z | 2019-09-06T12:51:17.000Z | GUTE ERKLÄRUNG MIT EXAMPLES: https://www.geeksforgeeks.org/pair-in-cpp-stl/
############################
+ pair ist ein container, defined im <utility> header
+ besteht aus 2 elementen. first und second. allows to combine 2 different types. Map, Hash_Map nutzen auch pair.
####################################
Tuple... | 28.785714 | 113 | 0.595533 | geronimoooooooo |
60252762fab2e5e5c48a2b4ae835daa60804389a | 370 | cpp | C++ | perft.cpp | kawgit/Bottomless-Blue | c6cf9c5b0be6de5d652035f1b0a92d36bc8bf387 | [
"MIT"
] | null | null | null | perft.cpp | kawgit/Bottomless-Blue | c6cf9c5b0be6de5d652035f1b0a92d36bc8bf387 | [
"MIT"
] | 2 | 2021-09-03T19:15:10.000Z | 2021-09-05T18:38:05.000Z | perft.cpp | kawgit/Bottomless-Blue | c6cf9c5b0be6de5d652035f1b0a92d36bc8bf387 | [
"MIT"
] | null | null | null | #include <string>
#include "src/ChessLibrary.hpp"
#include "src/board.hpp"
#include "src/move.hpp"
#include "src/search.hpp"
int main() {
ChessLibrary::init(0x9382);
Board board("r2qkb1r/ppp2ppp/4pn2/3p1b2/1n1P4/2N1PQ1P/PPP2PP1/R1BK1BNR w kq - 1 7 ");
for (int i = 1; i < 10; i++) {
cout<<to_string(b... | 20.555556 | 86 | 0.640541 | kawgit |
60259c1bb9d97364a954ee86566a2ce1ae160c08 | 150 | cpp | C++ | Code/Core/EntityManager.cpp | iceonepiece/scarcity | 2fed007b4fd36bb8a9cb73d9c7f396e03037b3e4 | [
"MIT"
] | null | null | null | Code/Core/EntityManager.cpp | iceonepiece/scarcity | 2fed007b4fd36bb8a9cb73d9c7f396e03037b3e4 | [
"MIT"
] | null | null | null | Code/Core/EntityManager.cpp | iceonepiece/scarcity | 2fed007b4fd36bb8a9cb73d9c7f396e03037b3e4 | [
"MIT"
] | null | null | null | #include "EntityManager.h"
#include "Entity.h"
Entity EntityManager::CreateEntity()
{
Entity entity(this, m_registry.create());
return entity;
}
| 16.666667 | 43 | 0.733333 | iceonepiece |
60289b48f520f0e4e6d740c1e155cc02719788b2 | 2,177 | hpp | C++ | source/Miscellaneous.hpp | MarcoGardini/PACMAN-SFML | 9576b770081f4ab20f5749e8d973d0b45f316ef1 | [
"MIT"
] | null | null | null | source/Miscellaneous.hpp | MarcoGardini/PACMAN-SFML | 9576b770081f4ab20f5749e8d973d0b45f316ef1 | [
"MIT"
] | null | null | null | source/Miscellaneous.hpp | MarcoGardini/PACMAN-SFML | 9576b770081f4ab20f5749e8d973d0b45f316ef1 | [
"MIT"
] | null | null | null | #pragma once
#include "Constants.hpp"
#include "GameObject.hpp"
class GameObject;
class GraphicComponent;
class AudioSystem;
class AudioComponent;
class PacmanGame;
class GhostGameObject;
class StandardTextObject;
class MazeGameObject : public GameObject
{
public:
MazeGameObject(PacmanGame* pacmanGame);
virtual v... | 22.677083 | 89 | 0.797428 | MarcoGardini |
602c6f02daa32311deb1c82b0a3de77d2cf6a727 | 3,981 | hpp | C++ | include/extractor/raster_source.hpp | jhermsmeier/osrm-backend | 7b11cd3a11c939c957eeff71af7feddaa86e7f82 | [
"BSD-2-Clause"
] | null | null | null | include/extractor/raster_source.hpp | jhermsmeier/osrm-backend | 7b11cd3a11c939c957eeff71af7feddaa86e7f82 | [
"BSD-2-Clause"
] | null | null | null | include/extractor/raster_source.hpp | jhermsmeier/osrm-backend | 7b11cd3a11c939c957eeff71af7feddaa86e7f82 | [
"BSD-2-Clause"
] | null | null | null | #ifndef RASTER_SOURCE_HPP
#define RASTER_SOURCE_HPP
#include "util/coordinate.hpp"
#include "util/exception.hpp"
#include <boost/algorithm/string/trim.hpp>
#include <boost/assert.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/... | 26.019608 | 99 | 0.609143 | jhermsmeier |
602ce99b654a9d85063293637e02a535191c360e | 2,650 | cpp | C++ | NewFormat/Population.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | NewFormat/Population.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | NewFormat/Population.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// Population.cpp - convert the population file
//*********************************************************
#include "NewFormat.hpp"
#include "Household_File.hpp"
#include "Population_File.hpp"
//---------------------------------------------------------
// ... | 24.537037 | 82 | 0.592453 | kravitz |
602d994c586d73e9222d05869caec36f164400ff | 1,711 | cpp | C++ | src/Splash.cpp | dgi09/Tower-Defence | 2edd53d50c9f913d00de26e7e2bdc5e8b950cc02 | [
"BSD-2-Clause"
] | 1 | 2021-07-28T15:24:00.000Z | 2021-07-28T15:24:00.000Z | src/Splash.cpp | dgi09/Tower-Defence | 2edd53d50c9f913d00de26e7e2bdc5e8b950cc02 | [
"BSD-2-Clause"
] | null | null | null | src/Splash.cpp | dgi09/Tower-Defence | 2edd53d50c9f913d00de26e7e2bdc5e8b950cc02 | [
"BSD-2-Clause"
] | null | null | null | #include "Splash.h"
#include "ArenaInternalMenager.h"
#include "ArenaHeap.h"
#include "Wave.h"
#include "GamePlayMediator.h"
#include <cmath>
#include "EnemyBase.h"
#include "ArenaHeap.h"
void Splash::removeFromHeap()
{
ArenaHeap::getPtr()->Splashes.Delete(this);
}
void Splash::onArenaAdd(ArenaInternalMenager * mgr)... | 16.61165 | 105 | 0.651081 | dgi09 |
602f88994c4a3170d680b03ade6a0dc2142cba99 | 9,425 | hpp | C++ | include/unique_function.hpp | Beyond-Engine/functions | dffbf99ad3c2d0eab5c3fe95f549188984e73fcc | [
"MIT"
] | 2 | 2020-01-01T01:13:34.000Z | 2020-06-03T03:13:14.000Z | include/unique_function.hpp | Beyond-Engine/unique_function | dffbf99ad3c2d0eab5c3fe95f549188984e73fcc | [
"MIT"
] | 2 | 2019-09-22T12:10:29.000Z | 2019-09-26T22:17:16.000Z | include/unique_function.hpp | LesleyLai/unique_function | dffbf99ad3c2d0eab5c3fe95f549188984e73fcc | [
"MIT"
] | 3 | 2019-12-29T22:36:49.000Z | 2020-08-04T16:57:08.000Z | #pragma once
#ifndef BEYOND_UNIQUE_FUNCTION_HPP
#define BEYOND_UNIQUE_FUNCTION_HPP
#include <functional>
#include <type_traits>
#ifndef BEYOND_FUNCTIONS_NAMESPACE
#define BEYOND_FUNCTIONS_NAMESPACE beyond
#endif
namespace BEYOND_FUNCTIONS_NAMESPACE {
template <typename R, typename... Args> class unique_function;
... | 29.453125 | 80 | 0.657507 | Beyond-Engine |
603026649f9ee1af250f79133659f4804e9ffaa9 | 2,963 | hpp | C++ | include/libtorrent/gzip.hpp | redchief/libtorrent | 42917790b1606b5ea0cf5385fde44536c7040a27 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | include/libtorrent/gzip.hpp | redchief/libtorrent | 42917790b1606b5ea0cf5385fde44536c7040a27 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | include/libtorrent/gzip.hpp | redchief/libtorrent | 42917790b1606b5ea0cf5385fde44536c7040a27 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2008-2009, 2014-2019, Arvid Norberg
All rights reserved.
You may use, distribute and modify this code under the terms of the BSD license,
see LICENSE file.
*/
#ifndef TORRENT_GZIP_HPP_INCLUDED
#define TORRENT_GZIP_HPP_INCLUDED
#include "libtorrent/config.hpp"
#include "libtorrent/error_code.hpp"
#i... | 25.765217 | 95 | 0.77489 | redchief |
6031626527543d958bac28675bb9f6ea6157608f | 13,219 | cpp | C++ | src/core/hw/gfxip/queryPool.cpp | dkorkmazturk/pal | 1e1f052a1614dae62ad98048d140a7d22e71b1a6 | [
"MIT"
] | 268 | 2017-12-22T11:03:10.000Z | 2022-03-31T15:37:31.000Z | src/core/hw/gfxip/queryPool.cpp | dkorkmazturk/pal | 1e1f052a1614dae62ad98048d140a7d22e71b1a6 | [
"MIT"
] | 79 | 2017-12-22T12:26:52.000Z | 2022-03-30T13:06:30.000Z | src/core/hw/gfxip/queryPool.cpp | dkorkmazturk/pal | 1e1f052a1614dae62ad98048d140a7d22e71b1a6 | [
"MIT"
] | 92 | 2017-12-22T12:21:16.000Z | 2022-03-29T22:34:17.000Z | /*
***********************************************************************************************************************
*
* Copyright (c) 2014-2021 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... | 36.617729 | 124 | 0.552084 | dkorkmazturk |
603d5407bc03bee60cfb30fbd81c50219424790f | 8,531 | cpp | C++ | src/plugins/aggregator/channelsmodel.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | 1 | 2017-01-12T07:05:45.000Z | 2017-01-12T07:05:45.000Z | src/plugins/aggregator/channelsmodel.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/plugins/aggregator/channelsmodel.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... | 27.698052 | 88 | 0.659946 | MellonQ |
603d8828c7e6994c9738ef076ee6e7b02f67ee47 | 465 | cpp | C++ | hackerrankimpcatandamouse.cpp | ap9891/hackerrank | 05fa0bc3a20ad736cd357775923b528254ec28ab | [
"MIT"
] | 1 | 2020-07-09T19:52:30.000Z | 2020-07-09T19:52:30.000Z | hackerrankimpcatandamouse.cpp | ap9891/hackerrank | 05fa0bc3a20ad736cd357775923b528254ec28ab | [
"MIT"
] | null | null | null | hackerrankimpcatandamouse.cpp | ap9891/hackerrank | 05fa0bc3a20ad736cd357775923b528254ec28ab | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
while(n--)
{
int arr[4];
for (int i = 0; i < 3; i++)
{
cin>>arr[i];
}
int x= abs(arr[0]-arr[2]);
int y=abs(arr[1]-arr[2]);
if (x<y)
{
cout<<"Cat A"<<endl;
... | 14.53125 | 32 | 0.363441 | ap9891 |
603f2cec30a923ddf4eba1adb7271dc59f6a1a5d | 1,187 | hpp | C++ | helpers/uni_ctor.hpp | DeeDonskih/commonplus | 753372bcb6129868991846ed9a66016a4948a3cd | [
"MIT"
] | null | null | null | helpers/uni_ctor.hpp | DeeDonskih/commonplus | 753372bcb6129868991846ed9a66016a4948a3cd | [
"MIT"
] | null | null | null | helpers/uni_ctor.hpp | DeeDonskih/commonplus | 753372bcb6129868991846ed9a66016a4948a3cd | [
"MIT"
] | null | null | null | /**
* @file uni_ctor.hpp
* @author Dmitry Donskikh (deedonskihdev@gmail.com)
* @brief
* @version 0.1
* @date 2018-03-24
*
* @copyright Copyright (c) 2018-2021 Dmitriy Donskikh
* All rights reserved.
*
*
*/
///Unified constructor/destructor (libc++) new_allocator.h
#if __cplusplus >= 201103L
... | 23.74 | 62 | 0.676495 | DeeDonskih |
604aba436f1474f987c1d4b4837f8b10c7722a78 | 4,294 | hpp | C++ | Engine/Core/Headers/Molten/Renderer/Shader/Visual/VisualShaderFunctions.hpp | jimmiebergmann/MoltenEngine | d39e1dc8f2e92bcac7936a5e283faa66f65118ab | [
"MIT"
] | 1 | 2020-10-05T05:24:47.000Z | 2020-10-05T05:24:47.000Z | Engine/Core/Headers/Molten/Renderer/Shader/Visual/VisualShaderFunctions.hpp | jimmiebergmann/MoltenEngine | d39e1dc8f2e92bcac7936a5e283faa66f65118ab | [
"MIT"
] | null | null | null | Engine/Core/Headers/Molten/Renderer/Shader/Visual/VisualShaderFunctions.hpp | jimmiebergmann/MoltenEngine | d39e1dc8f2e92bcac7936a5e283faa66f65118ab | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2020 Jimmie Bergmann
*
* 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, m... | 51.119048 | 102 | 0.764555 | jimmiebergmann |
604ba3590ae748826983cfb6a2d268738ef9f95a | 607 | cpp | C++ | src/Interpreters/replaceAliasColumnsInQuery.cpp | Srijan0519/ClickHouse | c0e1c42562c48d122a1dad4fea18b060d4805ae3 | [
"Apache-2.0"
] | 1 | 2021-08-11T21:51:53.000Z | 2021-08-11T21:51:53.000Z | src/Interpreters/replaceAliasColumnsInQuery.cpp | Srijan0519/ClickHouse | c0e1c42562c48d122a1dad4fea18b060d4805ae3 | [
"Apache-2.0"
] | 1 | 2021-06-28T15:03:05.000Z | 2021-06-28T15:03:05.000Z | src/Interpreters/replaceAliasColumnsInQuery.cpp | Srijan0519/ClickHouse | c0e1c42562c48d122a1dad4fea18b060d4805ae3 | [
"Apache-2.0"
] | 1 | 2021-11-17T16:55:57.000Z | 2021-11-17T16:55:57.000Z | #include <Interpreters/replaceAliasColumnsInQuery.h>
#include <Interpreters/ColumnAliasesVisitor.h>
#include <Storages/ColumnsDescription.h>
#include <Parsers/ASTSelectQuery.h>
namespace DB
{
bool replaceAliasColumnsInQuery(
ASTPtr & ast, const ColumnsDescription & columns, const NameToNameMap & array_join_result... | 31.947368 | 124 | 0.820428 | Srijan0519 |
604e65fd0feddc91bb48ebca80c62d9d7cfe8741 | 1,964 | cpp | C++ | src/core/BitmapFont.cpp | dalmirdasilva/ArduinoCube | b52f6ad027307ce7e1aaebd4d21a4cf257c05c19 | [
"Apache-2.0"
] | null | null | null | src/core/BitmapFont.cpp | dalmirdasilva/ArduinoCube | b52f6ad027307ce7e1aaebd4d21a4cf257c05c19 | [
"Apache-2.0"
] | null | null | null | src/core/BitmapFont.cpp | dalmirdasilva/ArduinoCube | b52f6ad027307ce7e1aaebd4d21a4cf257c05c19 | [
"Apache-2.0"
] | null | null | null | /**
* Arduino Cube Library
*
* BitmapFont.cpp
*
* The representation of a glcd font.
*
* @author Dalmir da Silva <dalmirdasilva@gmail.com>
*/
#ifndef __ARDUINO_CUBE_BITMAP_FONT_CPP__
#define __ARDUINO_CUBE_BITMAP_FONT_CPP__ 1
#include "BitmapFont.h"
BitmapFont::BitmapFont(SeekableInputStream* inputStream)... | 25.506494 | 71 | 0.653768 | dalmirdasilva |
6050317a3b0939bdadb2fef8a78d454cf2ad9509 | 41,575 | cpp | C++ | rmf_task/src/rmf_task/agv/TaskPlanner.cpp | Marcusttk/rmf_core | 28542c32fa6aaaccc570f6a8ea20bae27464669d | [
"Apache-2.0"
] | null | null | null | rmf_task/src/rmf_task/agv/TaskPlanner.cpp | Marcusttk/rmf_core | 28542c32fa6aaaccc570f6a8ea20bae27464669d | [
"Apache-2.0"
] | null | null | null | rmf_task/src/rmf_task/agv/TaskPlanner.cpp | Marcusttk/rmf_core | 28542c32fa6aaaccc570f6a8ea20bae27464669d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2020 Open Source Robotics Foundation
*
* 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 appl... | 28.476027 | 111 | 0.604041 | Marcusttk |
605284da1dcb7e89f5d513cb39e9a277a80df404 | 30,286 | cc | C++ | third_party/ceres-solver/internal/ceres/trust_region_minimizer.cc | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | 1 | 2020-07-06T06:03:23.000Z | 2020-07-06T06:03:23.000Z | third_party/ceres-solver/internal/ceres/trust_region_minimizer.cc | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | null | null | null | third_party/ceres-solver/internal/ceres/trust_region_minimizer.cc | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | 1 | 2019-02-18T09:49:32.000Z | 2019-02-18T09:49:32.000Z | // Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2014 Google Inc. All rights reserved.
// http://code.google.com/p/ceres-solver/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistr... | 42.239888 | 80 | 0.658258 | zyxrrr |
605817937d977cc11e32b1bfb6f43f7bd07dc117 | 30,512 | cpp | C++ | src/render/Credits.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | 2 | 2021-03-24T22:11:27.000Z | 2021-05-07T06:51:04.000Z | src/render/Credits.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | null | null | null | src/render/Credits.cpp | gameblabla/reeee3 | 1b6d0f742b1b6fb681756de702ed618e90361139 | [
"Unlicense"
] | null | null | null | #include "common.h"
#include "Timer.h"
#include "Font.h"
#include "Frontend.h"
#include "RwHelper.h"
#include "Camera.h"
#include "Text.h"
#include "Credits.h"
bool CCredits::bCreditsGoing;
uint32 CCredits::CreditsStartTime;
void
CCredits::Init(void)
{
Stop();
}
void
CCredits::Start(void)
{
bCreditsGoing = true;
... | 58.789981 | 106 | 0.752622 | gameblabla |
6058c970425a1751ea7738991f21a2bbc4a5f3e5 | 731 | hpp | C++ | include/generated/animation/layer_state_base.hpp | hermet/rive-cpp | d69378d97e7d987930c3764655153bf8ddc65966 | [
"MIT"
] | 2 | 2021-04-21T08:25:07.000Z | 2021-04-21T08:48:42.000Z | include/generated/animation/layer_state_base.hpp | hermet/rive-cpp | d69378d97e7d987930c3764655153bf8ddc65966 | [
"MIT"
] | null | null | null | include/generated/animation/layer_state_base.hpp | hermet/rive-cpp | d69378d97e7d987930c3764655153bf8ddc65966 | [
"MIT"
] | null | null | null | #ifndef _RIVE_LAYER_STATE_BASE_HPP_
#define _RIVE_LAYER_STATE_BASE_HPP_
#include "animation/state_machine_layer_component.hpp"
namespace rive
{
class LayerStateBase : public StateMachineLayerComponent
{
protected:
typedef StateMachineLayerComponent Super;
public:
static const uint16_t typeKey = 60;
/// Help... | 21.5 | 74 | 0.746922 | hermet |
605c22db5a92ef019db16d6ba403d3b0b751410d | 48,021 | cpp | C++ | inou/code_gen/code_gen.cpp | stnichol/livehd | 80a1b8a1afd74ed83cd7ba001557ca39879e27d2 | [
"BSD-3-Clause"
] | null | null | null | inou/code_gen/code_gen.cpp | stnichol/livehd | 80a1b8a1afd74ed83cd7ba001557ca39879e27d2 | [
"BSD-3-Clause"
] | null | null | null | inou/code_gen/code_gen.cpp | stnichol/livehd | 80a1b8a1afd74ed83cd7ba001557ca39879e27d2 | [
"BSD-3-Clause"
] | null | null | null |
#include "code_gen.hpp"
//#ifndef NDEBUG
//#define NDEBUG
//#endif
#include <algorithm>
#include <cassert>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "absl/strings/match.h"
//-------------------------------------------------------------------------------------
// Construc... | 40.455771 | 132 | 0.5816 | stnichol |
605c65152159f36c1fd0bcc3f11607c25d5cb52b | 55 | hpp | C++ | src/boost_xpressive_traits_cpp_regex_traits.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_xpressive_traits_cpp_regex_traits.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_xpressive_traits_cpp_regex_traits.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/xpressive/traits/cpp_regex_traits.hpp>
| 27.5 | 54 | 0.836364 | miathedev |
605ee7b60523fdb2c297873a7323ecce33d39bc0 | 1,061 | hpp | C++ | libraries/chain/include/eosio/chain/action_receipt.hpp | hawk-network/hawk-fullnode | cd7c4fb9b6e44a54f22314d61a72ce095e419c19 | [
"MIT"
] | 3 | 2019-05-16T16:33:16.000Z | 2019-07-04T04:33:35.000Z | libraries/chain/include/eosio/chain/action_receipt.hpp | hawk-network/hawk-fullnode | cd7c4fb9b6e44a54f22314d61a72ce095e419c19 | [
"MIT"
] | null | null | null | libraries/chain/include/eosio/chain/action_receipt.hpp | hawk-network/hawk-fullnode | cd7c4fb9b6e44a54f22314d61a72ce095e419c19 | [
"MIT"
] | null | null | null | /**
* @file
* @copyright defined in eos/LICENSE
*/
#pragma once
#include <hawknwk/chain/types.hpp>
namespace hawknwk { namespace chain {
/**
* For each action dispatched this receipt is generated
*/
struct action_receipt {
account_name receiver;
digest_type ... | 36.586207 | 144 | 0.62771 | hawk-network |
605f8009ca0268d0222af60c50112105f5ed49bc | 917 | cpp | C++ | test/ImageListBuilder.cpp | end2endzone/gtestbadge | cf277ecc8216bb7388f5a454b75bac48b01e52d2 | [
"MIT-0",
"MIT"
] | 2 | 2020-07-25T09:53:20.000Z | 2020-07-25T09:53:36.000Z | test/ImageListBuilder.cpp | end2endzone/gtestbadge | cf277ecc8216bb7388f5a454b75bac48b01e52d2 | [
"MIT-0",
"MIT"
] | 1 | 2018-09-05T17:31:27.000Z | 2018-09-08T17:14:49.000Z | test/ImageListBuilder.cpp | end2endzone/gtestbadge | cf277ecc8216bb7388f5a454b75bac48b01e52d2 | [
"MIT-0",
"MIT"
] | 2 | 2021-01-12T16:30:26.000Z | 2022-01-21T11:13:20.000Z | #include "ImageListBuilder.h"
#include <cstdio> //for fopen()
ImageListBuilder::ImageListBuilder()
{
}
ImageListBuilder::~ImageListBuilder()
{
}
bool ImageListBuilder::save(const std::string & iFilePath)
{
FILE * f = fopen(iFilePath.c_str(), "w");
if (!f)
return false;
//print header
fputs(""
"<html>\n"... | 17.634615 | 148 | 0.587786 | end2endzone |
6060bd524896da261792db85d761b845432b1f65 | 1,494 | hpp | C++ | libs/core/include/fcppt/mpl/map/has_key.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/core/include/fcppt/mpl/map/has_key.hpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/core/include/fcppt/mpl/map/has_key.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_MPL_MAP_HAS_KEY_HPP_INCLUDED
#define FCPPT_MPL_MAP_HAS_KEY_HPP_INCLUDED
#include <fc... | 26.210526 | 74 | 0.720214 | freundlich |
6063a259fe2c88b57236ae6c9ef69f4c87e2047a | 9,266 | cpp | C++ | example-ping-pong/ping_test.cpp | shuvalov-mdb/xstate-cpp-generator | b0983885216228474b47ff796e9cee3d142d783b | [
"MIT"
] | 35 | 2020-10-27T01:23:51.000Z | 2022-02-16T23:42:53.000Z | example-ping-pong/ping_test.cpp | shuvalov-mdb/xstate-cpp-generator | b0983885216228474b47ff796e9cee3d142d783b | [
"MIT"
] | 2 | 2020-11-02T02:18:40.000Z | 2021-11-01T15:22:03.000Z | example-ping-pong/ping_test.cpp | shuvalov-mdb/xstate-cpp-generator | b0983885216228474b47ff796e9cee3d142d783b | [
"MIT"
] | null | null | null | // This test is automatically generated, do not edit.
#include "example-ping-pong/ping_sm.h"
#include <gtest/gtest.h>
namespace mongo {
namespace {
TEST(StaticSMTests, TransitionsInfo) {
{
auto transitions = PingSMValidTransitionsFromInitState();
for (const auto& transition : transitions) {
... | 38.448133 | 113 | 0.642133 | shuvalov-mdb |
60643de77c8dc28d4715b28421b54acd5990749b | 34,764 | hpp | C++ | sparta/sparta/serialization/checkpoint/Checkpointer.hpp | debjyoti0891/map | abdae67964420d7d36255dcbf83e4240a1ef4295 | [
"MIT"
] | 44 | 2019-12-13T06:39:13.000Z | 2022-03-29T23:09:28.000Z | sparta/sparta/serialization/checkpoint/Checkpointer.hpp | debjyoti0891/map | abdae67964420d7d36255dcbf83e4240a1ef4295 | [
"MIT"
] | 222 | 2020-01-14T21:58:56.000Z | 2022-03-31T20:05:12.000Z | sparta/sparta/serialization/checkpoint/Checkpointer.hpp | debjyoti0891/map | abdae67964420d7d36255dcbf83e4240a1ef4295 | [
"MIT"
] | 19 | 2020-01-03T19:03:22.000Z | 2022-01-09T08:36:20.000Z | // <Checkpointer> -*- C++ -*-
#pragma once
#include <iostream>
#include <sstream>
#include <stack>
#include <queue>
#include <list>
#include <map>
#include <string>
#include <memory>
#include "sparta/simulation/TreeNode.hpp"
#include "sparta/functional/ArchData.hpp"
#include "sparta/utils/SpartaException.hpp"
#inclu... | 40.376307 | 131 | 0.568605 | debjyoti0891 |
6066662cb9de4612cfa47c290605eec691a81514 | 3,540 | cpp | C++ | Dependencies/IGraphics/AGG/agg-2.4/src/agg_line_profile_aa.cpp | dougbinks/iPlug2 | 6280171bd39ea94ee2fc6d789e8e19411e1721a3 | [
"Zlib"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | Dependencies/IGraphics/AGG/agg-2.4/src/agg_line_profile_aa.cpp | dougbinks/iPlug2 | 6280171bd39ea94ee2fc6d789e8e19411e1721a3 | [
"Zlib"
] | 337 | 2019-02-19T17:56:56.000Z | 2022-03-31T22:04:25.000Z | Dependencies/IGraphics/AGG/agg-2.4/src/agg_line_profile_aa.cpp | dougbinks/iPlug2 | 6280171bd39ea94ee2fc6d789e8e19411e1721a3 | [
"Zlib"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | //----------------------------------------------------------------------------
// Anti-Grain Geometry - Version 2.4
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all... | 30.25641 | 85 | 0.469492 | dougbinks |
6066714e5c761f6460efa6979de990f7e27ae820 | 1,492 | cpp | C++ | shirabeengine/shirabeengine/modules/math/code/source/math/geometric/rect.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 5 | 2019-12-02T12:28:57.000Z | 2021-04-07T21:21:13.000Z | shirabeengine/shirabeengine/modules/math/code/source/math/geometric/rect.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | null | null | null | shirabeengine/shirabeengine/modules/math/code/source/math/geometric/rect.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 1 | 2020-01-09T14:25:42.000Z | 2020-01-09T14:25:42.000Z | #include "math/geometric/rect.h"
namespace engine
{
namespace math
{
//<-----------------------------------------------------------------------------
//
//<-----------------------------------------------------------------------------
CRect::CRect()
: position({ 0, 0 ... | 34.697674 | 88 | 0.188338 | BoneCrasher |
606b7457b4d3cc9ddeafa292f2d8385c3701f038 | 230 | cpp | C++ | 2021/02. FirstSteps/20321029/Sum of Fife Digits/Sum of Fife Digits.cpp | RumiChausheva/CS104 | 95f4df990f1a9d1397fc7da7cf137aa092498ea1 | [
"MIT"
] | 7 | 2021-03-24T16:30:45.000Z | 2022-03-27T09:02:15.000Z | 2021/02. FirstSteps/20321029/Sum of Fife Digits/Sum of Fife Digits.cpp | RumiChausheva/CS104 | 95f4df990f1a9d1397fc7da7cf137aa092498ea1 | [
"MIT"
] | null | null | null | 2021/02. FirstSteps/20321029/Sum of Fife Digits/Sum of Fife Digits.cpp | RumiChausheva/CS104 | 95f4df990f1a9d1397fc7da7cf137aa092498ea1 | [
"MIT"
] | 17 | 2021-03-22T09:42:22.000Z | 2022-03-28T03:24:07.000Z | #include<iostream>
using namespace std;
int main()
{
int n, sum = 0, m;
cout << "Enter a number: ";
cin >> n;
while (n > 0)
{
m = n % 10;
sum = sum + m;
n = n / 10;
}
cout << "Sum is= " << sum << endl;
return 0;
} | 12.777778 | 35 | 0.491304 | RumiChausheva |
606bde4c3c85f2b8b2eadc9dd849a9612068897a | 831 | cpp | C++ | VSProject/LeetCodeSol/Src/ValidPerfectSquare.cpp | wangxiaotao1980/leetCodeCPP | 1806c00cd89eacddbdd20a7c33875f54400a20a8 | [
"MIT"
] | null | null | null | VSProject/LeetCodeSol/Src/ValidPerfectSquare.cpp | wangxiaotao1980/leetCodeCPP | 1806c00cd89eacddbdd20a7c33875f54400a20a8 | [
"MIT"
] | null | null | null | VSProject/LeetCodeSol/Src/ValidPerfectSquare.cpp | wangxiaotao1980/leetCodeCPP | 1806c00cd89eacddbdd20a7c33875f54400a20a8 | [
"MIT"
] | null | null | null | /*******************************************************************************************
* @file ValidPerfectSquare.cpp 2019\2\3 18:10:54 $
* @author Wang Xiaotao<wangxiaotao1980@gmail.com> (中文编码测试)
* @note summary
*********************************************************************************... | 28.655172 | 94 | 0.244284 | wangxiaotao1980 |
606c67fd2183e6f66b762f85ef03c2984ba9ab68 | 207 | cpp | C++ | framework/Problema.cpp | vanessavvp/DAA-pr04-DivideAndConquer-Framework | 4bfdbcb55ee9450ecced8dfcec387c37d80e5e2e | [
"MIT"
] | null | null | null | framework/Problema.cpp | vanessavvp/DAA-pr04-DivideAndConquer-Framework | 4bfdbcb55ee9450ecced8dfcec387c37d80e5e2e | [
"MIT"
] | null | null | null | framework/Problema.cpp | vanessavvp/DAA-pr04-DivideAndConquer-Framework | 4bfdbcb55ee9450ecced8dfcec387c37d80e5e2e | [
"MIT"
] | null | null | null |
#include "Problema.h"
Problema::Problema() {
}
Problema::~Problema() {
}
bool Problema::isCasoMinimo() {
}
pair<Problema*,Problema*> Problema::descomponer() {
}
void Problema::solver(Solucion* s) {
}
| 10.894737 | 51 | 0.666667 | vanessavvp |
606cfab26d401f505519dd0f9e177912f9549038 | 537 | cpp | C++ | ValidParentheses/ValidParentheses.cpp | yergen/leetcode | 7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab | [
"MIT"
] | null | null | null | ValidParentheses/ValidParentheses.cpp | yergen/leetcode | 7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab | [
"MIT"
] | null | null | null | ValidParentheses/ValidParentheses.cpp | yergen/leetcode | 7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
#include<stack>
using namespace::std;
class Solution {
public:
bool isValid(string s) {
stack<char> stk;
for (auto c : s)
{
if (c == '(' || c == '{' || c == '[')
stk.push(c);
else
{
if (stk.empty() || (c == ')' && stk.top() != '(') || (c == '}' && stk... | 17.322581 | 137 | 0.456238 | yergen |
606dd727e140ff4409f4700fc905159d5b33e319 | 967 | cpp | C++ | src/render/shapes.cpp | computerspieler/Minecraft-like | 18e83ab5cad366a6b07b0f838dd5499dd2678b0b | [
"MIT"
] | null | null | null | src/render/shapes.cpp | computerspieler/Minecraft-like | 18e83ab5cad366a6b07b0f838dd5499dd2678b0b | [
"MIT"
] | null | null | null | src/render/shapes.cpp | computerspieler/Minecraft-like | 18e83ab5cad366a6b07b0f838dd5499dd2678b0b | [
"MIT"
] | null | null | null | #include <GL/freeglut.h>
#include "shapes.h"
using namespace Render;
float depth;
void Shapes::Draw_Square(Vector2f v_pos, Vector2f v_size, Texture::Wrap_Format wrap_fmt){
Vector2f v_tex_start, v_tex_end;
switch(wrap_fmt){
case Texture::FILL: v_tex_end = Vector2f(1, 1); break;
case Texture::REPEAT:
v_tex_... | 22.488372 | 89 | 0.699069 | computerspieler |
606e0b8670239bcd03d968ff8dc8261187474556 | 2,048 | cpp | C++ | 0109_Convert_Sorted_List_to_Binary_Search_Tree.cpp | 21PIRLO21/LeetCode2020 | ccf318749067214ff3cdf9964a81d6b8422f986e | [
"MIT"
] | null | null | null | 0109_Convert_Sorted_List_to_Binary_Search_Tree.cpp | 21PIRLO21/LeetCode2020 | ccf318749067214ff3cdf9964a81d6b8422f986e | [
"MIT"
] | null | null | null | 0109_Convert_Sorted_List_to_Binary_Search_Tree.cpp | 21PIRLO21/LeetCode2020 | ccf318749067214ff3cdf9964a81d6b8422f986e | [
"MIT"
] | null | null | null | #include <ostream>
#include <vector>
#include <algorithm>
using namespace std;
/* medium */
/* Definition for singly-linked list. */
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
/* Definition for a binary tree node. */
struct TreeNode {
int val... | 28.054795 | 61 | 0.525391 | 21PIRLO21 |
606fe290d1410ab6f058d33b04c56f78e7884e36 | 4,627 | cpp | C++ | Bridges/xns.bridge.zenner-energy-logger/MBus.cpp | xnsense/xns-firmware | 807215e1e690dbaa2977464b360b668450755ddc | [
"MIT"
] | null | null | null | Bridges/xns.bridge.zenner-energy-logger/MBus.cpp | xnsense/xns-firmware | 807215e1e690dbaa2977464b360b668450755ddc | [
"MIT"
] | null | null | null | Bridges/xns.bridge.zenner-energy-logger/MBus.cpp | xnsense/xns-firmware | 807215e1e690dbaa2977464b360b668450755ddc | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include "Telegram.h"
#include "MBus.h"
byte sample_response[] = {
/* TELEGRAM HEADER */
0x68, // Start of long telegram
0x71, // Length
0x71, // Length repeated
0x68, // Confirm start of long telegram
0x08, // C-Field
0x00, // A-field
0x72, // CI-Field
/* FIXED DATA HEADER */
0x56... | 24.876344 | 90 | 0.562351 | xnsense |
6071f1033acfc7c1067c9c4882a1280bd58baa9a | 215 | cc | C++ | src/NestedBlock/SharpBlock/BinaryComparison/ComparisonGT.cc | khuebeo/scrape | 9706fad08041cac1864036916d8675ec8ad6f034 | [
"MIT"
] | 11 | 2020-06-01T02:26:07.000Z | 2022-03-24T09:12:49.000Z | src/NestedBlock/SharpBlock/BinaryComparison/ComparisonGT.cc | khuebeo/scrape | 9706fad08041cac1864036916d8675ec8ad6f034 | [
"MIT"
] | 4 | 2020-06-01T14:48:46.000Z | 2020-09-17T16:43:33.000Z | src/NestedBlock/SharpBlock/BinaryComparison/ComparisonGT.cc | khuebeo/scrape | 9706fad08041cac1864036916d8675ec8ad6f034 | [
"MIT"
] | 2 | 2020-06-05T18:14:44.000Z | 2021-08-13T03:48:17.000Z | #include <string>
#include <stdexcept>
#include <algorithm>
#include "NestedBlock/SharpBlock/BinaryComparison/ComparisonGT.h"
bool ComparisonGT::getBool() const
{
return left->getValue() > right->getValue();
}
| 21.5 | 65 | 0.748837 | khuebeo |
60781b71251100811687e5f1fd86f317c1b9bbe6 | 7,089 | cc | C++ | raft/cluster.cc | ipr0/sfdb | 1d4b96adf41324a399dbee30c804c35d4f1eecdd | [
"Apache-2.0"
] | 5 | 2020-03-21T19:41:00.000Z | 2022-03-09T20:24:02.000Z | raft/cluster.cc | ipr0/sfdb | 1d4b96adf41324a399dbee30c804c35d4f1eecdd | [
"Apache-2.0"
] | 9 | 2020-03-24T22:22:44.000Z | 2022-02-27T01:31:34.000Z | raft/cluster.cc | ipr0/sfdb | 1d4b96adf41324a399dbee30c804c35d4f1eecdd | [
"Apache-2.0"
] | 2 | 2020-03-25T22:55:48.000Z | 2020-04-26T14:35:41.000Z | /*
* Copyright (c) 2019 Google LLC.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License,... | 33.438679 | 94 | 0.67104 | ipr0 |
607bccc8de65ab06b12b8e81576c66a3a116e6f6 | 349 | hpp | C++ | library/ATF/_echo_send_msg.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_echo_send_msg.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_echo_send_msg.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
struct _echo_send_msg
{
unsigned int dwSerial;
unsigned int dwEchoCount;
unsigned int dwSize;
char sData[640... | 21.8125 | 108 | 0.69341 | lemkova |
607dcd7498ca0ab1e6779e4f8f8e8eb5d0ab187f | 851 | cpp | C++ | ffmpeg/src/webcam.cpp | vstanchevici/cmake_sandbox | 3b5e6bcfd282b027f01e8556065e72e5bdde8fac | [
"MIT"
] | null | null | null | ffmpeg/src/webcam.cpp | vstanchevici/cmake_sandbox | 3b5e6bcfd282b027f01e8556065e72e5bdde8fac | [
"MIT"
] | null | null | null | ffmpeg/src/webcam.cpp | vstanchevici/cmake_sandbox | 3b5e6bcfd282b027f01e8556065e72e5bdde8fac | [
"MIT"
] | null | null | null | #include <iostream>
#include <string.h>
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavdevice/avdevice.h>
}
//for linux
int CaptureCam()
{
avdevice_register_all(); // for device
avcodec_register_all();
av_register_all();
char* dev_name = "/dev/video0"; // here mine is video0 , it may va... | 20.756098 | 81 | 0.627497 | vstanchevici |
607de34268901cc91771dca00fc74499f5f66f6f | 30,408 | cc | C++ | src/cmdtab.cc | drollings/Phase3MUD | 9ab54a218ced7704f1ccc7bbaaf880d6393bbbfd | [
"MIT"
] | 1 | 2021-05-31T02:38:38.000Z | 2021-05-31T02:38:38.000Z | src/cmdtab.cc | drollings/Phase3MUD | 9ab54a218ced7704f1ccc7bbaaf880d6393bbbfd | [
"MIT"
] | null | null | null | src/cmdtab.cc | drollings/Phase3MUD | 9ab54a218ced7704f1ccc7bbaaf880d6393bbbfd | [
"MIT"
] | null | null | null | /* ************************************************************************
* File: cmdtab.c Part of CircleMUD *
* *
* Usage: The command table *
* ... | 46.14264 | 171 | 0.488523 | drollings |
607e36246666609dca0069c4b477faf0f9eb0055 | 1,211 | cpp | C++ | C++/problems/0119_longest_well_performing_interval.cpp | oxone-999/algorithms | 52dc527111e7422923a0e25684d8f4837e81a09b | [
"MIT"
] | 6 | 2019-03-20T22:23:26.000Z | 2020-08-28T03:10:27.000Z | C++/problems/0119_longest_well_performing_interval.cpp | oxone-999/algorithms | 52dc527111e7422923a0e25684d8f4837e81a09b | [
"MIT"
] | 15 | 2019-10-13T20:53:53.000Z | 2022-03-31T02:01:35.000Z | C++/problems/0119_longest_well_performing_interval.cpp | oxone-999/algorithms | 52dc527111e7422923a0e25684d8f4837e81a09b | [
"MIT"
] | 3 | 2019-03-11T10:57:46.000Z | 2020-02-26T21:13:21.000Z | // Problem Statement
// We are given hours, a list of the number of hours worked per day for a given employee.
// A day is considered to be a tiring day if and only if the number of hours worked is (strictly) greater than 8.
// A well-performing interval is an interval of days for which the number of tiring days is s... | 26.911111 | 113 | 0.545004 | oxone-999 |
607e880e2aa71ab56cd6bbb0677cf3acd565ce93 | 17,589 | cpp | C++ | wss/gameserver/src/wssserver.cpp | beyzend/wss | 2ce101d98a55872929ded95e5b30fe986efa6cae | [
"MIT"
] | null | null | null | wss/gameserver/src/wssserver.cpp | beyzend/wss | 2ce101d98a55872929ded95e5b30fe986efa6cae | [
"MIT"
] | null | null | null | wss/gameserver/src/wssserver.cpp | beyzend/wss | 2ce101d98a55872929ded95e5b30fe986efa6cae | [
"MIT"
] | null | null | null | /*
* wssserver.cpp
*
* Created on: Dec 20, 2014
* Author: beyzend
*/
#include "wss/wss.h"
#include <iostream>
#include <chrono>
#include <thread>
#include <tuple>
#include <unordered_map>
#include <zmqpp/zmqpp.hpp>
#include <tbb/flow_graph.h>
#include <tbb/concurrent_vector.h>
#include <tbb/concurrent_qu... | 30.696335 | 185 | 0.699699 | beyzend |
608139e9da2becde085b4abadc6d0b78da29de58 | 4,569 | cpp | C++ | src/fmi2/me_library.cpp | jmaximoff/FMI4cpp | 5e512e35d137c786c0553dd2a2bfe96e22c7d765 | [
"MIT"
] | null | null | null | src/fmi2/me_library.cpp | jmaximoff/FMI4cpp | 5e512e35d137c786c0553dd2a2bfe96e22c7d765 | [
"MIT"
] | null | null | null | src/fmi2/me_library.cpp | jmaximoff/FMI4cpp | 5e512e35d137c786c0553dd2a2bfe96e22c7d765 | [
"MIT"
] | null | null | null | /*
* The MIT License
*
* Copyright 2017-2018 Norwegian University of Technology
*
* 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 ... | 42.305556 | 114 | 0.793609 | jmaximoff |
6084ef0937bacf81ba5c887aa5fd118b25ce74a8 | 1,487 | cpp | C++ | Ventura/src/SpriteSheetReader.cpp | VictorAlvizo/Ventura | 57d2141f87534984acfd08ad49d91d177b8ffbe5 | [
"MIT"
] | null | null | null | Ventura/src/SpriteSheetReader.cpp | VictorAlvizo/Ventura | 57d2141f87534984acfd08ad49d91d177b8ffbe5 | [
"MIT"
] | 1 | 2020-11-22T23:34:04.000Z | 2020-11-22T23:34:04.000Z | Ventura/src/SpriteSheetReader.cpp | VictorAlvizo/Ventura | 57d2141f87534984acfd08ad49d91d177b8ffbe5 | [
"MIT"
] | null | null | null | #include "SpriteSheetReader.h"
SpriteSheetReader::SpriteSheetReader()
:m_Width(0.0f), m_Height(0.0f), m_SpriteSize(glm::vec2(0.0f))
{
//holder
}
SpriteSheetReader::SpriteSheetReader(std::shared_ptr<Texture> texture, glm::vec2 spriteSize) {
m_Width = static_cast<float>(texture->getWidth());
m_Height = static_cast<... | 35.404762 | 129 | 0.665098 | VictorAlvizo |
60855221be0e1b7309d6dd4fd498ddb49fb55cca | 28,470 | cpp | C++ | Graphics/GraphicsEngineVulkan/src/ShaderVariableManagerVk.cpp | crlf-code/DiligentCore | 754b17f054a15b136c3e565ffa243b5a40f8be9c | [
"Apache-2.0"
] | null | null | null | Graphics/GraphicsEngineVulkan/src/ShaderVariableManagerVk.cpp | crlf-code/DiligentCore | 754b17f054a15b136c3e565ffa243b5a40f8be9c | [
"Apache-2.0"
] | null | null | null | Graphics/GraphicsEngineVulkan/src/ShaderVariableManagerVk.cpp | crlf-code/DiligentCore | 754b17f054a15b136c3e565ffa243b5a40f8be9c | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019-2021 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* 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/LICENS... | 42.177778 | 169 | 0.62385 | crlf-code |
608d4b0d4e58cc0ea42bbbb24aab46debafbc483 | 12,802 | cc | C++ | server/modules/routing/replicator/replicator.cc | blylei/MaxScale | 2de10c9de12664e6d59f1ef879fd90d44b73d472 | [
"BSD-3-Clause"
] | null | null | null | server/modules/routing/replicator/replicator.cc | blylei/MaxScale | 2de10c9de12664e6d59f1ef879fd90d44b73d472 | [
"BSD-3-Clause"
] | null | null | null | server/modules/routing/replicator/replicator.cc | blylei/MaxScale | 2de10c9de12664e6d59f1ef879fd90d44b73d472 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2019 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2025-03-24
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... | 26.395876 | 110 | 0.559913 | blylei |
608de72079a1578a7fc051c3990042acb3463f52 | 7,640 | cpp | C++ | branch/old_angsys/angsys_beta1/angsys_android/source/angsys/angsys.shared/source/exceptions.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | branch/old_angsys/angsys_beta1/angsys_android/source/angsys/angsys.shared/source/exceptions.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | branch/old_angsys/angsys_beta1/angsys_android/source/angsys/angsys.shared/source/exceptions.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | /*********************************************************************************************************************/
/* File Name: exception.cpp */
/* Author: Ing. Jesus Rocha <chuyangel.rm@gmail.com>, July 2016. ... | 26.344828 | 122 | 0.670026 | ChuyX3 |
6092bc1de0458a372e05308014e2cb5dbe2e9723 | 22,201 | ipp | C++ | libs/math/test/acosh_data.ipp | zyiacas/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 11 | 2015-07-12T13:04:52.000Z | 2021-05-30T23:23:46.000Z | libs/math/test/acosh_data.ipp | sdfict/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | null | null | null | libs/math/test/acosh_data.ipp | sdfict/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 3 | 2015-12-23T01:51:57.000Z | 2019-08-25T04:58:32.000Z | // Copyright John Maddock 2008.
// Use, modification and distribution are subject to 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)
#define SC_(x) static_cast<T>(BOOST_JOIN(x, L))
static const boost::array<boost::arr... | 81.025547 | 92 | 0.736138 | zyiacas |
609486db9467d4a7ce6705e2e2c56159922684b1 | 1,453 | hpp | C++ | src/DartsDict.hpp | levindu/OpenCC | 345ea91303e5b3d9332dc51ea73370dac83e4c6b | [
"Apache-2.0"
] | 1,565 | 2016-07-12T17:11:28.000Z | 2022-03-31T07:43:53.000Z | src/DartsDict.hpp | levindu/OpenCC | 345ea91303e5b3d9332dc51ea73370dac83e4c6b | [
"Apache-2.0"
] | 21 | 2018-06-10T14:15:06.000Z | 2022-02-28T06:01:38.000Z | src/DartsDict.hpp | levindu/OpenCC | 345ea91303e5b3d9332dc51ea73370dac83e4c6b | [
"Apache-2.0"
] | 268 | 2016-07-11T07:05:55.000Z | 2022-02-18T01:49:11.000Z | /*
* Open Chinese Convert
*
* Copyright 2010-2014 BYVoid <byvoid@byvoid.com>
*
* 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
*
*... | 24.216667 | 75 | 0.73916 | levindu |
6097692e0ff8148b3187c6210eafa53f4245aff4 | 5,670 | cpp | C++ | src/os/windows/dir.cpp | grinapo/pwsafe | 73fcbb38318d2bab72ac7a9ac8ebe7b89c690493 | [
"Artistic-2.0"
] | null | null | null | src/os/windows/dir.cpp | grinapo/pwsafe | 73fcbb38318d2bab72ac7a9ac8ebe7b89c690493 | [
"Artistic-2.0"
] | null | null | null | src/os/windows/dir.cpp | grinapo/pwsafe | 73fcbb38318d2bab72ac7a9ac8ebe7b89c690493 | [
"Artistic-2.0"
] | null | null | null | /*
* Copyright (c) 2003-2017 Rony Shapiro <ronys@pwsafe.org>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
/**
* \file Windows-... | 27.259615 | 72 | 0.648677 | grinapo |
6097c345751470833aa162678d8cdc2bd6879f4e | 23,761 | cpp | C++ | src/MatrixClasses/Matrix_def.cpp | Rombur/ParrLO | 102aacbcd3768401f0b3be1c40d76124078184be | [
"BSD-2-Clause"
] | 3 | 2021-02-19T00:06:04.000Z | 2021-10-02T16:28:59.000Z | src/MatrixClasses/Matrix_def.cpp | Rombur/ParrLO | 102aacbcd3768401f0b3be1c40d76124078184be | [
"BSD-2-Clause"
] | 2 | 2020-10-01T20:25:34.000Z | 2020-10-01T21:01:42.000Z | src/MatrixClasses/Matrix_def.cpp | Rombur/ParrLO | 102aacbcd3768401f0b3be1c40d76124078184be | [
"BSD-2-Clause"
] | 2 | 2020-10-01T16:01:45.000Z | 2020-12-13T02:42:04.000Z | #include "Matrix_decl.hpp"
#include <cassert>
#include <cmath>
#include <iostream>
#include <random>
Timer Matrix::compute_aTa_tm_("Matrix::compute_aTa");
Timer Matrix::matrix_matrix_multiply_tm_("Matrix::matrix_matrix_multiply");
Timer Matrix::allocate_tm_("Matrix::allocate");
Timer Matrix::free_tm_("Matrix::free");
... | 28.558894 | 80 | 0.630192 | Rombur |
60986fbaff56f0d60603ed90be6ce4bef86ee959 | 13,488 | cpp | C++ | src/islice.cpp | nporsche/fastbit | 91d06c68b9f4a0a0cc39da737d1c880ab21fe947 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/islice.cpp | nporsche/fastbit | 91d06c68b9f4a0a0cc39da737d1c880ab21fe947 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/islice.cpp | nporsche/fastbit | 91d06c68b9f4a0a0cc39da737d1c880ab21fe947 | [
"BSD-3-Clause-LBNL"
] | null | null | null | // $Id$
// Author: John Wu <John.Wu at ACM.org>
// Copyright (c) 2012-2015 the Regents of the University of California
//
// This file contains the implementation of the class called ibis::slice.
//
#if defined(_WIN32) && defined(_MSC_VER)
#pragma warning(disable:4786) // some identifier longer than 256 characters
#end... | 29.194805 | 79 | 0.561907 | nporsche |
609985c6b720bb77b0f8c835754c87345c141bb7 | 11,245 | cpp | C++ | tag_detector/src/tag_detector_node_beck.cpp | KerryWu16/src | bed672dc1732cd6af1752bb54ab0abde015bb93a | [
"MIT"
] | 2 | 2017-12-17T11:07:56.000Z | 2021-08-19T09:35:11.000Z | tag_detector/src/tag_detector_node_beck.cpp | KerryWu16/src | bed672dc1732cd6af1752bb54ab0abde015bb93a | [
"MIT"
] | null | null | null | tag_detector/src/tag_detector_node_beck.cpp | KerryWu16/src | bed672dc1732cd6af1752bb54ab0abde015bb93a | [
"MIT"
] | 1 | 2021-08-19T07:41:48.000Z | 2021-08-19T07:41:48.000Z | #include <iostream>
#include <ros/ros.h>
#include <ros/console.h>
#include <sensor_msgs/Image.h>
#include <sensor_msgs/image_encodings.h>
#include <cv_bridge/cv_bridge.h>
#include <nav_msgs/Odometry.h>
#include <aruco/aruco.h>
#include <aruco/cvdrawingutils.h>
#include <opencv2/opencv.hpp>
#include <Eigen/Eigen>
#incl... | 34.388379 | 136 | 0.606225 | KerryWu16 |
6099e6028da61d46e47ec2e7de6e38db786a8d4d | 430 | cpp | C++ | 0513-Perfect Squares/0513-Perfect Squares.cpp | nmdis1999/LintCode-1 | 316fa395c9a6de9bfac1d9c9cf58acb5ffb384a6 | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 0501-0600/0513-Perfect Squares/0513-Perfect Squares.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 0501-0600/0513-Perfect Squares/0513-Perfect Squares.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class Solution {
public:
/**
* @param n a positive integer
* @return an integer
*/
int numSquares(int n) {
// Write your code here
vector<int> dp(1 + n);
for (int i = 1; i <= n; ++i) {
dp[i] = i;
for (int j = 1; j * j <= i; ++j) {
... | 20.47619 | 54 | 0.35814 | nmdis1999 |
609a4778c79eeaf3a1ccbd6cb1dfcd1273502ba4 | 745 | cpp | C++ | LeetCode/Problems/Algorithms/#779_KThSymbolInGrammar_sol1_recursive_approach_O(N)_time_O(N)_extra_space.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#779_KThSymbolInGrammar_sol1_recursive_approach_O(N)_time_O(N)_extra_space.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#779_KThSymbolInGrammar_sol1_recursive_approach_O(N)_time_O(N)_extra_space.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
private:
const int STATE_01 = 0;
const int STATE_10 = 1;
int solve(int k, int pow2, int state){
if(k == 1){
return (state == STATE_10);
}
int stateIdx = -1;
if(k <= pow2 / 2){
stateIdx = 0;
}else{
... | 22.575758 | 51 | 0.391946 | Tudor67 |
609aa1307caf18b5ea82eddea22568fdd7166ae6 | 2,604 | cc | C++ | src/atlas/grid/Grid.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 67 | 2018-03-01T06:56:49.000Z | 2022-03-08T18:44:47.000Z | src/atlas/grid/Grid.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 93 | 2018-12-07T17:38:04.000Z | 2022-03-31T10:04:51.000Z | src/atlas/grid/Grid.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 33 | 2018-02-28T17:06:19.000Z | 2022-01-20T12:12:27.000Z | /*
* (C) Copyright 2013 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergo... | 23.889908 | 93 | 0.642089 | twsearle |
609c3eef0ecd8bbc515fdd31b2235c686273fecd | 2,406 | hpp | C++ | include/nbla/solver/adam.hpp | kodavatimahendra/nnabla | 72009f670af075f17ffca9c809b07d48cca30bd9 | [
"Apache-2.0"
] | null | null | null | include/nbla/solver/adam.hpp | kodavatimahendra/nnabla | 72009f670af075f17ffca9c809b07d48cca30bd9 | [
"Apache-2.0"
] | null | null | null | include/nbla/solver/adam.hpp | kodavatimahendra/nnabla | 72009f670af075f17ffca9c809b07d48cca30bd9 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2017 Sony Corporation. 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 ... | 31.657895 | 78 | 0.715711 | kodavatimahendra |
609e55b34d4037e123bcc1d42b42061c904f54dd | 675 | cpp | C++ | src/pddl_solver_node.cpp | ysl208/iRoPro | 72a8b023755b6396239c24fabef79458bcdc3215 | [
"MIT"
] | 5 | 2020-11-11T10:51:53.000Z | 2022-01-13T01:32:11.000Z | src/pddl_solver_node.cpp | ysl208/rapid_pbd | 72a8b023755b6396239c24fabef79458bcdc3215 | [
"MIT"
] | 24 | 2018-05-02T17:33:04.000Z | 2018-12-19T13:06:52.000Z | src/pddl_solver_node.cpp | ysl208/rapid_pbd | 72a8b023755b6396239c24fabef79458bcdc3215 | [
"MIT"
] | 2 | 2018-05-03T07:02:09.000Z | 2018-05-03T11:36:53.000Z | #include <string>
#include "pddl_msgs/PDDLPlannerAction.h"
#include "rapid_pbd/action_names.h"
#include "rapid_pbd/pddl_solver_action.h"
#include "ros/ros.h"
namespace pbd = rapid::pbd;
int main(int argc, char** argv) {
ros::init(argc, argv, "pddl_solver_node");
ros::NodeHandle nh;
if (argc < 2) {
ROS_ERRO... | 27 | 109 | 0.697778 | ysl208 |
609f86cd370a8dd0cc4feb3cdb152cf112d9b694 | 2,229 | cpp | C++ | snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.TrackBar/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 834 | 2017-06-24T10:40:36.000Z | 2022-03-31T19:48:51.000Z | snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.TrackBar/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 7,042 | 2017-06-23T22:34:47.000Z | 2022-03-31T23:05:23.000Z | snippets/cpp/VS_Snippets_Winforms/System.Windows.Forms.TrackBar/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 1,640 | 2017-06-23T22:31:39.000Z | 2022-03-31T02:45:37.000Z |
#using <System.dll>
#using <System.Drawing.dll>
#using <System.Windows.Forms.dll>
//<Snippet1>
using namespace System;
using namespace System::Drawing;
using namespace System::Windows::Forms;
public ref class Form1: public System::Windows::Forms::Form
{
private:
System::Windows::Forms::TrackBar^ trackBar1;
Sys... | 30.121622 | 94 | 0.646478 | BohdanMosiyuk |
60a4c31f9ddf6b0aa36021f0f497ec38ffa91028 | 20,602 | cpp | C++ | openstudiocore/src/model_editor/modeltest.cpp | hongyuanjia/OpenStudio | 6cc52f1b66c069cf13f2b6ca2a0cc3c137c37cf0 | [
"MIT"
] | 1 | 2019-04-21T15:38:54.000Z | 2019-04-21T15:38:54.000Z | openstudiocore/src/model_editor/modeltest.cpp | hongyuanjia/OpenStudio | 6cc52f1b66c069cf13f2b6ca2a0cc3c137c37cf0 | [
"MIT"
] | null | null | null | openstudiocore/src/model_editor/modeltest.cpp | hongyuanjia/OpenStudio | 6cc52f1b66c069cf13f2b6ca2a0cc3c137c37cf0 | [
"MIT"
] | 1 | 2019-07-18T06:52:29.000Z | 2019-07-18T06:52:29.000Z | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... | 38.798493 | 120 | 0.638967 | hongyuanjia |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.