hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c452f423deb6313cd02bcba1fc8e104f0091c11e | 30 | hpp | C++ | src/boost_mpl_next.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_mpl_next.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_mpl_next.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/mpl/next.hpp>
| 15 | 29 | 0.733333 | miathedev |
c4545d26f42e20282c276664e20c31c163072b06 | 10,794 | cc | C++ | lite/kernels/apu/bridges/elementwise_ops.cc | wanglei91/Paddle-Lite | 8b2479f4cdd6970be507203d791bede5a453c09d | [
"Apache-2.0"
] | 1,799 | 2019-08-19T03:29:38.000Z | 2022-03-31T14:30:50.000Z | lite/kernels/apu/bridges/elementwise_ops.cc | wanglei91/Paddle-Lite | 8b2479f4cdd6970be507203d791bede5a453c09d | [
"Apache-2.0"
] | 3,767 | 2019-08-19T03:36:04.000Z | 2022-03-31T14:37:26.000Z | lite/kernels/apu/bridges/elementwise_ops.cc | wanglei91/Paddle-Lite | 8b2479f4cdd6970be507203d791bede5a453c09d | [
"Apache-2.0"
] | 798 | 2019-08-19T02:28:23.000Z | 2022-03-31T08:31:54.000Z | // Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 35.98 | 78 | 0.55642 | wanglei91 |
c459882e7b80214d0930a4a7dea9843803f5011d | 6,872 | hpp | C++ | examples/select/select.hpp | stevenybw/thrill | a2dc05035f4e24f64af0a22b60155e80843a5ba9 | [
"BSD-2-Clause"
] | 609 | 2015-08-27T11:09:24.000Z | 2022-03-28T21:34:05.000Z | examples/select/select.hpp | tim3z/thrill | f0e5aa2326a55af3c9a92fc418f8eb8e3cf8c5fa | [
"BSD-2-Clause"
] | 109 | 2015-09-10T21:34:42.000Z | 2022-02-15T14:46:26.000Z | examples/select/select.hpp | tim3z/thrill | f0e5aa2326a55af3c9a92fc418f8eb8e3cf8c5fa | [
"BSD-2-Clause"
] | 114 | 2015-08-27T14:54:13.000Z | 2021-12-08T07:28:35.000Z | /*******************************************************************************
* examples/select/select.hpp
*
* Part of Project Thrill - http://project-thrill.org
*
* Copyright (C) 2016 Lorenz Hübschle-Schneider <lorenz@4z2.de>
*
* All rights reserved. Published under the BSD-2 license in the LICENSE file.
**... | 34.532663 | 80 | 0.565192 | stevenybw |
c45ee3716591668e7b603a33eb3bd334e2661b35 | 5,348 | cpp | C++ | lib/src/platform/linux/user_accounting_database.cpp | jasonivey/mmotd | dfde0e37e1515dd9c47ce2af25d1631c01a44773 | [
"MIT"
] | null | null | null | lib/src/platform/linux/user_accounting_database.cpp | jasonivey/mmotd | dfde0e37e1515dd9c47ce2af25d1631c01a44773 | [
"MIT"
] | 49 | 2020-10-30T09:26:11.000Z | 2022-03-21T04:40:06.000Z | lib/src/platform/linux/user_accounting_database.cpp | jasonivey/mmotd | dfde0e37e1515dd9c47ce2af25d1631c01a44773 | [
"MIT"
] | null | null | null | // vim: awa:sts=4:ts=4:sw=4:et:cin:fdm=manual:tw=120:ft=cpp
#if defined(__linux__)
#include "common/include/chrono_io.h"
#include "common/include/logging.h"
#include "common/include/posix_error.h"
#include "lib/include/platform/user_accounting_database.h"
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include... | 34.503226 | 116 | 0.631264 | jasonivey |
c46636ba7931107aa21b40388ac3342be1672f56 | 5,064 | cpp | C++ | src/RageSurface_Load.cpp | graemephi/etterna | b984fe493d9f7ac84a35af3e6f80f16607aceb09 | [
"MIT"
] | null | null | null | src/RageSurface_Load.cpp | graemephi/etterna | b984fe493d9f7ac84a35af3e6f80f16607aceb09 | [
"MIT"
] | null | null | null | src/RageSurface_Load.cpp | graemephi/etterna | b984fe493d9f7ac84a35af3e6f80f16607aceb09 | [
"MIT"
] | null | null | null | #include "global.h"
#include "ActorUtil.h"
#include "RageFile.h"
#include "RageLog.h"
#include "RageSurface_Load.h"
#include "RageSurface_Load_BMP.h"
#include "RageSurface_Load_GIF.h"
#include "RageSurface_Load_JPEG.h"
#include "RageSurface_Load_PNG.h"
#include "RageUtil.h"
#include <set>
static RageSurface*
TryOpenF... | 32.883117 | 77 | 0.720577 | graemephi |
c47171f2c1440e31b553a7d616ac860c2d1647e9 | 1,840 | cc | C++ | content/browser/ssl/ssl_host_state.cc | Crystalnix/BitPop | 1fae4ecfb965e163f6ce154b3988b3181678742a | [
"BSD-3-Clause"
] | 7 | 2015-05-20T22:41:35.000Z | 2021-11-18T19:07:59.000Z | content/browser/ssl/ssl_host_state.cc | quisquous/chromium | b25660e05cddc9d0c3053b3514f07037acc69a10 | [
"BSD-3-Clause"
] | 1 | 2015-02-02T06:55:08.000Z | 2016-01-20T06:11:59.000Z | content/browser/ssl/ssl_host_state.cc | quisquous/chromium | b25660e05cddc9d0c3053b3514f07037acc69a10 | [
"BSD-3-Clause"
] | 2 | 2015-12-08T00:37:41.000Z | 2017-04-06T05:34:05.000Z | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/ssl/ssl_host_state.h"
#include "base/logging.h"
#include "base/lazy_instance.h"
#include "content/public/browser/browser_co... | 28.307692 | 80 | 0.707065 | Crystalnix |
c47621d6b4f0c61a6c33fc2c834f9f42419536c9 | 5,217 | cpp | C++ | OGDF/src/ogdf/fileformats/xml/Lexer.cpp | shahnidhi/MetaCarvel | f3bea5fdbbecec4c9becc6bbdc9585a939eb5481 | [
"MIT"
] | 13 | 2017-12-21T03:35:41.000Z | 2022-01-31T13:45:25.000Z | OGDF/src/ogdf/fileformats/xml/Lexer.cpp | shahnidhi/MetaCarvel | f3bea5fdbbecec4c9becc6bbdc9585a939eb5481 | [
"MIT"
] | 7 | 2017-09-13T01:31:24.000Z | 2021-12-14T00:31:50.000Z | OGDF/src/ogdf/fileformats/xml/Lexer.cpp | shahnidhi/MetaCarvel | f3bea5fdbbecec4c9becc6bbdc9585a939eb5481 | [
"MIT"
] | 15 | 2017-09-07T18:28:55.000Z | 2022-01-18T14:17:43.000Z | /** \file
* \brief Implementation of simple XML lexer.
*
* \author Łukasz Hanuszczak
*
* \par License:
* This file is part of the Open Graph Drawing Framework (OGDF).
*
* \par
* Copyright (C)<br>
* See README.txt in the root directory of the OGDF installation for details.
*
* \par
* This program is free so... | 17.989655 | 77 | 0.608396 | shahnidhi |
c476b9e173ab8d68f2fbd673567f74289990e62d | 10,017 | cc | C++ | src/ir/auth_logic/souffle_emitter_test.cc | Cypher1/raksha | 0f52f108ceb8bc7b8be36a7bf8e9662188c57551 | [
"Apache-2.0"
] | null | null | null | src/ir/auth_logic/souffle_emitter_test.cc | Cypher1/raksha | 0f52f108ceb8bc7b8be36a7bf8e9662188c57551 | [
"Apache-2.0"
] | null | null | null | src/ir/auth_logic/souffle_emitter_test.cc | Cypher1/raksha | 0f52f108ceb8bc7b8be36a7bf8e9662188c57551 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2022 Google LLC.
*
* 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 ... | 37.943182 | 193 | 0.745932 | Cypher1 |
c47871a5d8133a4a65f916b37349926ab5def4aa | 5,139 | cpp | C++ | base/fs/sis/groveler/pathlist.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/fs/sis/groveler/pathlist.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/fs/sis/groveler/pathlist.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1998 Microsoft Corporation
Module Name:
pathlist.cpp
Abstract:
SIS Groveler path list manager
Authors:
John Douceur, 1998
Environment:
User Mode
Revision History:
--*/
#include "all.hxx"
static const _TCHAR *paths_ini_filename = _T("grovel.i... | 28.870787 | 85 | 0.615684 | npocmaka |
c47bb1b899688d92bd0727ca8cfe6e5159f48e7a | 5,428 | cpp | C++ | emulator/src/lib/util/strformat.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/lib/util/strformat.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/lib/util/strformat.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:BSD-3-Clause
// copyright-holders:Vas Crabb
/***************************************************************************
strformat.h
type-safe printf substitutes
***************************************************************************/
#include "strformat.h"
#include "vecstream.h"
#include <i... | 57.744681 | 127 | 0.792373 | rjw57 |
c47dd1920ebc401e7714ad43dcd2773e70a57d3d | 4,424 | cc | C++ | DQMOffline/L1Trigger/src/L1TCommon.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | DQMOffline/L1Trigger/src/L1TCommon.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | DQMOffline/L1Trigger/src/L1TCommon.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | #include "DQMOffline/L1Trigger/interface/L1TCommon.h"
#include "DataFormats/Math/interface/deltaR.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iostream>
namespace dqmoffline {
namespace l1t {
std::vector<unsigned int>
getTriggerIndices(const std::vector<std::string> &requestedTriggers,
... | 32.529412 | 80 | 0.667043 | nistefan |
c47eff3d038eac49c6ebcbd7d03ce34182bdc98b | 296 | cpp | C++ | test/suits/nav/test_atcproceduresid.cpp | ignmiz/ATC_Console | 549dd67a007cf54b976e33fed1581f30beb08b06 | [
"Intel",
"MIT"
] | 5 | 2018-01-08T22:20:07.000Z | 2021-06-19T17:42:29.000Z | test/suits/nav/test_atcproceduresid.cpp | ignmiz/ATC_Console | 549dd67a007cf54b976e33fed1581f30beb08b06 | [
"Intel",
"MIT"
] | null | null | null | test/suits/nav/test_atcproceduresid.cpp | ignmiz/ATC_Console | 549dd67a007cf54b976e33fed1581f30beb08b06 | [
"Intel",
"MIT"
] | 2 | 2017-08-07T23:07:42.000Z | 2021-05-09T13:02:39.000Z |
#include "test_atcproceduresid.h"
void Test_ATCProcedureSID::test_constructObject()
{
ATCProcedureSID foo("NAME", "CODE", "01");
QVERIFY(foo.getName() == "NAME");
QVERIFY(foo.getAirport() == "CODE");
QVERIFY(foo.getRunwayID() == "01");
QVERIFY(foo.getFixListSize() == 0);
}
| 24.666667 | 49 | 0.652027 | ignmiz |
c47f8acd78f5f6aeff4c10ffae4bba33d5089c6f | 2,623 | cpp | C++ | qt/qt_common/qtoglcontext.cpp | keksikex/omim | cf75e55bc6d96f3488af9d5977c4bee422a366c3 | [
"Apache-2.0"
] | null | null | null | qt/qt_common/qtoglcontext.cpp | keksikex/omim | cf75e55bc6d96f3488af9d5977c4bee422a366c3 | [
"Apache-2.0"
] | null | null | null | qt/qt_common/qtoglcontext.cpp | keksikex/omim | cf75e55bc6d96f3488af9d5977c4bee422a366c3 | [
"Apache-2.0"
] | null | null | null | #include "qt/qt_common/qtoglcontext.hpp"
#include "base/assert.hpp"
#include "base/logging.hpp"
#include "base/macros.hpp"
#include "base/math.hpp"
#include "base/stl_add.hpp"
#include "drape/glfunctions.hpp"
namespace qt
{
namespace common
{
// QtRenderOGLContext ----------------------------------------------------... | 21.325203 | 100 | 0.682043 | keksikex |
c48275d7bd69f5f138c89b4a20251267a824a99d | 290 | cpp | C++ | sand_box_6.cpp | gwamoniak/Cpp | b1815464412f8d282f578cbf3ecc4b07a480b7d3 | [
"MIT"
] | null | null | null | sand_box_6.cpp | gwamoniak/Cpp | b1815464412f8d282f578cbf3ecc4b07a480b7d3 | [
"MIT"
] | null | null | null | sand_box_6.cpp | gwamoniak/Cpp | b1815464412f8d282f578cbf3ecc4b07a480b7d3 | [
"MIT"
] | 1 | 2022-01-16T16:29:05.000Z | 2022-01-16T16:29:05.000Z | #include <utility>
#include <iostream>
#include <algorithm>
#include <vector>
#include <memory_resource>
constexpr double pow(const double x, std::size_t y)
{
return y!= 1 ? x*pow(x,y-1) :x;
}
int main()
{
auto out = pow(3.0,6);
std::cout << out << '\n';
return 0;
} | 13.181818 | 52 | 0.6 | gwamoniak |
c486e90f47875c249117d6c3e1da8fb11597e22f | 1,437 | hpp | C++ | vize/include/vize/factory/async_volume_factory.hpp | oprogramadorreal/vize | 042c16f96d8790303563be6787200558e1ec00b2 | [
"MIT"
] | 47 | 2020-03-30T14:36:46.000Z | 2022-03-06T07:44:54.000Z | vize/include/vize/factory/async_volume_factory.hpp | oprogramadorreal/vize | 042c16f96d8790303563be6787200558e1ec00b2 | [
"MIT"
] | null | null | null | vize/include/vize/factory/async_volume_factory.hpp | oprogramadorreal/vize | 042c16f96d8790303563be6787200558e1ec00b2 | [
"MIT"
] | 8 | 2020-04-01T01:22:45.000Z | 2022-01-02T13:06:09.000Z | #ifndef VIZE_ASYNC_VOLUME_FACTORY_HPP
#define VIZE_ASYNC_VOLUME_FACTORY_HPP
#include "vize/config.hpp"
#include <boost/signals2.hpp>
#include <vector>
namespace lucca_qt {
class Async;
}
namespace vize {
class Volume;
class VolumeFactory;
/**
* @author O Programador
*/
class AsyncVolumeFactory final {
public:... | 22.453125 | 127 | 0.776618 | oprogramadorreal |
c4887840eda54fb39ad0b0b401ccf2d928813001 | 2,945 | cpp | C++ | src/test_hierarchical_clustering.cpp | UM-ARM-Lab/arc_utilities | e21bd5062983b25e61e33f832ec66b937540ba10 | [
"BSD-2-Clause"
] | 10 | 2017-01-09T14:37:14.000Z | 2022-03-16T08:02:08.000Z | src/test_hierarchical_clustering.cpp | UM-ARM-Lab/arc_utilities | e21bd5062983b25e61e33f832ec66b937540ba10 | [
"BSD-2-Clause"
] | 62 | 2017-05-25T16:52:38.000Z | 2022-03-08T20:05:09.000Z | src/test_hierarchical_clustering.cpp | UM-ARM-Lab/arc_utilities | e21bd5062983b25e61e33f832ec66b937540ba10 | [
"BSD-2-Clause"
] | 7 | 2017-08-04T13:06:17.000Z | 2022-03-16T08:02:11.000Z | #include <stdio.h>
#include <stdlib.h>
#include <arc_utilities/abb_irb1600_145_fk_fast.hpp>
#include <arc_utilities/arc_helpers.hpp>
#include <arc_utilities/eigen_helpers.hpp>
#include <arc_utilities/pretty_print.hpp>
#include <arc_utilities/simple_hierarchical_clustering.hpp>
#include <chrono>
#include <fstream>
#inc... | 46.746032 | 118 | 0.678778 | UM-ARM-Lab |
c48b98599f5edb14b0f9b2711498878829315744 | 167,604 | cpp | C++ | src/parser.cpp | giag3/peng-utils | f0883ffbf3b422de2e0ea326861114b1f5809037 | [
"MIT"
] | 1 | 2022-03-28T11:20:50.000Z | 2022-03-28T11:20:50.000Z | src/parser.cpp | giag3/peng-utils | f0883ffbf3b422de2e0ea326861114b1f5809037 | [
"MIT"
] | null | null | null | src/parser.cpp | giag3/peng-utils | f0883ffbf3b422de2e0ea326861114b1f5809037 | [
"MIT"
] | null | null | null | #include "parser/parser.hpp"
#include "error_handler/error_handler.hpp"
#include "assembler/assembler.hpp"
#include "error_handler/console.hpp"
#include "compiler/assembly_shortcuts.hpp"
#if (UTILITY == COMPILER)
#include "compiler/assembly_shortcuts.hpp"
#include "compiler/variable.hpp"
#endif
// Use assembl... | 39.5479 | 288 | 0.468545 | giag3 |
c48cfba9d42cfb4716984d276820d78152cc8c38 | 10,864 | cpp | C++ | src/megaobd.cpp | ConnorRigby/megaobd | b1434444991e512237a81a54ee39f87fc3dd063d | [
"MIT"
] | null | null | null | src/megaobd.cpp | ConnorRigby/megaobd | b1434444991e512237a81a54ee39f87fc3dd063d | [
"MIT"
] | null | null | null | src/megaobd.cpp | ConnorRigby/megaobd | b1434444991e512237a81a54ee39f87fc3dd063d | [
"MIT"
] | 1 | 2021-04-16T09:56:13.000Z | 2021-04-16T09:56:13.000Z | #include "OBD9141sim.h"
#include <AltSoftSerial.h>
#include <CRC32.h>
// OBD constants
#define OBD_TX_PIN 9
#define OBD_RX_PIN 8
AltSoftSerial OBD_SERIAL;
OBD9141sim OBD;
CRC32 CRC;
// Megasquirt Constants
#define MEGASQUIRT_SERIAL Serial
const uint8_t CMD_A_PAYLOAD[7] = {0x0, 0x1, 0x41, 0xD3, 0xD9, 0x9E, 0x8B};
enu... | 25.928401 | 195 | 0.657861 | ConnorRigby |
c48e2c67895bfaf6a4505b02335a24157fb46692 | 7,949 | cpp | C++ | LTSketchbook/libraries/LT_PMBUS/LT_FaultLog.cpp | LinduinoBob/Linduino | a6465b549ee8daee4eec11c36cabf5487bd2a3bc | [
"FSFAP"
] | null | null | null | LTSketchbook/libraries/LT_PMBUS/LT_FaultLog.cpp | LinduinoBob/Linduino | a6465b549ee8daee4eec11c36cabf5487bd2a3bc | [
"FSFAP"
] | null | null | null | LTSketchbook/libraries/LT_PMBUS/LT_FaultLog.cpp | LinduinoBob/Linduino | a6465b549ee8daee4eec11c36cabf5487bd2a3bc | [
"FSFAP"
] | null | null | null | /*!
LTC PMBus Support: API for a shared LTC Fault Log
@verbatim
This API is shared with Linduino and RTOS code. End users should code to this
API to enable use of the PMBus code without modifications.
@endverbatim
Copyright 2018(c) Analog Devices, Inc.
All rights reserved.
Redistribution and u... | 25.977124 | 116 | 0.662473 | LinduinoBob |
c48efe9fe55ce710f8798cae5f040f4587aa5cf1 | 6,387 | hh | C++ | src/grid.hh | lanl/libparty | ae0ee61e23f4335a820d0aee04be58944450d251 | [
"Apache-2.0"
] | 2 | 2020-03-19T08:28:37.000Z | 2020-06-29T08:05:12.000Z | src/grid.hh | lanl/libparty | ae0ee61e23f4335a820d0aee04be58944450d251 | [
"Apache-2.0"
] | null | null | null | src/grid.hh | lanl/libparty | ae0ee61e23f4335a820d0aee04be58944450d251 | [
"Apache-2.0"
] | 3 | 2017-06-21T20:49:57.000Z | 2020-03-19T08:28:38.000Z | /*
* Copyright 2014. Los Alamos National Security, LLC. This material was produced
* under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National
* Laboratory (LANL), which is operated by Los Alamos National Security, LLC
* for the U.S. Department of Energy. The U.S. Government has rights to use,
... | 38.945122 | 114 | 0.567716 | lanl |
c48f8537943766823af0757390ae7330b5a663fc | 1,604 | hpp | C++ | include/dish2/viz/artists/TaxaArtist.hpp | schregardusc/dishtiny | b0b1841a457a955fa4c22f36a050d91f12484f9e | [
"MIT"
] | 1 | 2021-02-12T23:53:55.000Z | 2021-02-12T23:53:55.000Z | include/dish2/viz/artists/TaxaArtist.hpp | schregardusc/dishtiny | b0b1841a457a955fa4c22f36a050d91f12484f9e | [
"MIT"
] | null | null | null | include/dish2/viz/artists/TaxaArtist.hpp | schregardusc/dishtiny | b0b1841a457a955fa4c22f36a050d91f12484f9e | [
"MIT"
] | null | null | null | #pragma once
#ifndef DISH2_VIZ_ARTISTS_TAXAARTIST_HPP_INCLUDE
#define DISH2_VIZ_ARTISTS_TAXAARTIST_HPP_INCLUDE
#include <string>
#include "../../spec/Spec.hpp"
#include "../border_colormaps/TaxaBorderColorMap.hpp"
#include "../fill_colormaps/IsAliveColorMap.hpp"
#include "../fill_colormaps/KinGroupIDGrayscaleFillCol... | 22.277778 | 64 | 0.747506 | schregardusc |
c490e76884dcc19d44bbdc4fee5099ed5becb757 | 5,990 | cc | C++ | servlib/cmd/DiscoveryCommand.cc | LeoIannacone/dtn | b7ee725bb147e29cc05ac8790b1d24efcd9f841e | [
"Apache-2.0"
] | 2 | 2017-10-29T11:15:47.000Z | 2019-09-15T13:43:25.000Z | servlib/cmd/DiscoveryCommand.cc | LeoIannacone/dtn | b7ee725bb147e29cc05ac8790b1d24efcd9f841e | [
"Apache-2.0"
] | null | null | null | servlib/cmd/DiscoveryCommand.cc | LeoIannacone/dtn | b7ee725bb147e29cc05ac8790b1d24efcd9f841e | [
"Apache-2.0"
] | 3 | 2015-03-27T05:56:05.000Z | 2020-01-02T22:18:02.000Z | /*
* Copyright 2006 Baylor University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 27.603687 | 82 | 0.539399 | LeoIannacone |
c491824e4c2d94f6e0cb1902c7fb9ca02e48d2c9 | 2,293 | hpp | C++ | private/inc/avb_watchdog/IasWatchdogResult.hpp | tnishiok/AVBStreamHandler | 7621daf8c9238361e030fe35188b921ee8ea2466 | [
"BSL-1.0",
"BSD-3-Clause"
] | 13 | 2018-09-26T13:32:35.000Z | 2021-05-20T10:01:12.000Z | private/inc/avb_watchdog/IasWatchdogResult.hpp | tnishiok/AVBStreamHandler | 7621daf8c9238361e030fe35188b921ee8ea2466 | [
"BSL-1.0",
"BSD-3-Clause"
] | 23 | 2018-10-03T22:45:21.000Z | 2020-03-05T23:40:12.000Z | private/inc/avb_watchdog/IasWatchdogResult.hpp | tnishiok/AVBStreamHandler | 7621daf8c9238361e030fe35188b921ee8ea2466 | [
"BSL-1.0",
"BSD-3-Clause"
] | 22 | 2018-09-14T03:55:34.000Z | 2021-12-07T01:13:27.000Z | /*
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef IAS_MONITORING_AND_LIFECYCLE_WATCHDOG_IAS_WATCHDOG_RESULT_HPP
#define IAS_MONITORING_AND_LIFECYCLE_WATCHDOG_IAS_WATCHDOG_RESULT_HPP
#include "media_transport/avb_streamhandler_api/IasAvbStreamHa... | 32.295775 | 115 | 0.764065 | tnishiok |
c4941f0b4f462904d7d7964e0d3545b8bf9ce5da | 3,111 | cpp | C++ | vegastrike/src/universe_util_server.cpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | vegastrike/src/universe_util_server.cpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | vegastrike/src/universe_util_server.cpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | #include "cmd/script/mission.h"
#include "universe_util.h"
#include "universe_generic.h"
#include "cmd/unit_generic.h"
#include "cmd/unit_factory.h" //for UnitFactory::getMasterPartList()
#include "cmd/collection.h"
#include "networking/netserver.h"
#include "star_system_generic.h"
#include <string>
#include "lin_ti... | 29.913462 | 87 | 0.681131 | Ezeer |
c497352f239e93012d3d811519f38cd17a7264a1 | 17,127 | cpp | C++ | src/shogun/io/HDF5File.cpp | rka97/shogun | 93d7afa8073fcb5a9f3d9e6492a6fd3c8a2e48be | [
"BSD-3-Clause"
] | null | null | null | src/shogun/io/HDF5File.cpp | rka97/shogun | 93d7afa8073fcb5a9f3d9e6492a6fd3c8a2e48be | [
"BSD-3-Clause"
] | null | null | null | src/shogun/io/HDF5File.cpp | rka97/shogun | 93d7afa8073fcb5a9f3d9e6492a6fd3c8a2e48be | [
"BSD-3-Clause"
] | null | null | null | /*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: Soeren Sonnenburg, Soumyajit De, Viktor Gal, Thoralf Klein,
* Evan Shelhamer, Bjoern Esser, Abhinav Agarwalla
*/
#include <shogun/lib/config.h>
#ifdef HAVE_HDF5
#include <stdio.h>
#include <string.h>
#include ... | 38.144766 | 96 | 0.688795 | rka97 |
7bca2dbc1ca7552e5f6978fcb64478f85881a998 | 110 | cpp | C++ | src/UIKit/UIEvent.cpp | jjzhang166/uikit-cpp-win32 | 6887cef72334214c00cae95a671415f0e91dd886 | [
"MIT"
] | 4 | 2015-06-05T03:06:21.000Z | 2021-02-13T18:07:58.000Z | src/UIKit/UIEvent.cpp | jjzhang166/uikit-cpp-win32 | 6887cef72334214c00cae95a671415f0e91dd886 | [
"MIT"
] | null | null | null | src/UIKit/UIEvent.cpp | jjzhang166/uikit-cpp-win32 | 6887cef72334214c00cae95a671415f0e91dd886 | [
"MIT"
] | 4 | 2015-06-05T03:06:22.000Z | 2022-03-25T01:03:05.000Z | #include "UIEvent.h"
UIEvent::UIEvent()
: x(0)
, y(0)
, view(NULL) {
}
UIEvent::~UIEvent() {
} | 9.166667 | 21 | 0.5 | jjzhang166 |
7bcaa7dab52e901730b34cc0f6c1d474f25ac60f | 129 | cc | C++ | Blob_Lib/assimp-5.2.3/assimp/contrib/draco/src/draco/compression/mesh/mesh_encoder.cc | antholuo/Blob_Traffic | 5d6acf88044e9abc63c0ff356714179eaa4b75bf | [
"MIT"
] | null | null | null | Blob_Lib/assimp-5.2.3/assimp/contrib/draco/src/draco/compression/mesh/mesh_encoder.cc | antholuo/Blob_Traffic | 5d6acf88044e9abc63c0ff356714179eaa4b75bf | [
"MIT"
] | null | null | null | Blob_Lib/assimp-5.2.3/assimp/contrib/draco/src/draco/compression/mesh/mesh_encoder.cc | antholuo/Blob_Traffic | 5d6acf88044e9abc63c0ff356714179eaa4b75bf | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:8c8bd90ea92d058b67832d126b5441f74ba246aed3a678bf4d3dd60d66de283a
size 1068
| 32.25 | 75 | 0.883721 | antholuo |
7bce22766185f7a2e5cf180f54fecab8eb7d57fa | 443 | cpp | C++ | baekjoon/stack/10799-iron-stick.cpp | honux77/algorithm | 2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee | [
"MIT"
] | 2 | 2019-02-08T01:23:07.000Z | 2020-11-19T12:23:52.000Z | baekjoon/stack/10799-iron-stick.cpp | honux77/algorithm | 2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee | [
"MIT"
] | null | null | null | baekjoon/stack/10799-iron-stick.cpp | honux77/algorithm | 2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee | [
"MIT"
] | null | null | null | #include <iostream>
#include <stack>
using namespace std;
int main() {
int res = 0;
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
stack<char> st;
string p;
cin >> p;
bool prev = false;
for (auto c: p) {
if (c=='(') {
st.push(c);
prev = true;
} else if (c == ')' && prev) {
st.pop();
res +... | 14.766667 | 34 | 0.528217 | honux77 |
7bcf92faf4120d40cff902712e7f64451cdc89aa | 93 | cpp | C++ | tools/stb_image.cpp | ShirokoSama/ShadingSandbox | b407aea1c018bcb46061f3d165c9671d2cb3c139 | [
"MIT"
] | null | null | null | tools/stb_image.cpp | ShirokoSama/ShadingSandbox | b407aea1c018bcb46061f3d165c9671d2cb3c139 | [
"MIT"
] | null | null | null | tools/stb_image.cpp | ShirokoSama/ShadingSandbox | b407aea1c018bcb46061f3d165c9671d2cb3c139 | [
"MIT"
] | 1 | 2019-12-05T11:50:24.000Z | 2019-12-05T11:50:24.000Z | //
// Created by Srf on 2017/10/5.
//
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h" | 18.6 | 32 | 0.731183 | ShirokoSama |
7bd161d94216488999bf33ab627feddf42b5fb37 | 5,785 | cpp | C++ | KFPlugin/KFMongo/KFMongoReadExecute.cpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | 1 | 2021-04-26T09:31:32.000Z | 2021-04-26T09:31:32.000Z | KFPlugin/KFMongo/KFMongoReadExecute.cpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | KFPlugin/KFMongo/KFMongoReadExecute.cpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | #include "KFMongoReadExecute.hpp"
namespace KFrame
{
KFResult< uint64 >::UniqueType KFMongoReadExecute::Count( const std::string& table )
{
Poco::MongoDB::Database db( _database );
auto request = db.createQueryRequest( "$cmd" );
request->setNumberToReturn( 1 );
request->selecto... | 37.322581 | 149 | 0.429213 | 282951387 |
7bd412bb28a07a8106fed187fdc54dffd0c6f1db | 10,601 | cpp | C++ | Crisp/ShadingLanguage/Reflection.cpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | 6 | 2017-09-14T03:26:49.000Z | 2021-09-18T05:40:59.000Z | Crisp/ShadingLanguage/Reflection.cpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | null | null | null | Crisp/ShadingLanguage/Reflection.cpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | null | null | null | #include "Reflection.hpp"
#include <optional>
#include <fstream>
#include <IO/FileUtils.hpp>
#include "Lexer.hpp"
#include "Parser.hpp"
#include <spdlog/spdlog.h>
namespace crisp::sl
{
namespace
{
uint32_t getPushConstantFieldOffset(const StructFieldDeclaration& field)
{
for (con... | 42.06746 | 150 | 0.541175 | FallenShard |
7bd504d6d506758db9a3b977f982ca32290ce900 | 12,170 | cpp | C++ | src/common/pfs.cpp | xackery/eqx | 777685a6f793014116855805d719899cfa4169d8 | [
"MIT"
] | null | null | null | src/common/pfs.cpp | xackery/eqx | 777685a6f793014116855805d719899cfa4169d8 | [
"MIT"
] | null | null | null | src/common/pfs.cpp | xackery/eqx | 777685a6f793014116855805d719899cfa4169d8 | [
"MIT"
] | null | null | null | #include "pfs.h"
#include "pfs_crc.h"
#include "compression.h"
#include <algorithm>
#include <cctype>
#include <cstring>
#include <tuple>
#include <errno.h>
#include "log_macros.h"
#define MAX_BLOCK_SIZE 8192 // the client will crash if you make this bigger, so don't.
#define ReadFromBuffer(type, var, buffer, idx) if... | 28.635294 | 153 | 0.694577 | xackery |
7bd77c37429090f62d3db356b42a313c37f22fee | 10,358 | cpp | C++ | third party/openRTMFP-Cumulus/CumulusLib/sources/RTMFPServer.cpp | Patrick-Bay/SocialCastr | 888a57ca63037e566f6c0bf03a646ae91b484086 | [
"MIT"
] | 5 | 2015-04-30T09:08:30.000Z | 2018-08-13T05:00:39.000Z | third party/openRTMFP-Cumulus/CumulusLib/sources/RTMFPServer.cpp | Patrick-Bay/SocialCastr | 888a57ca63037e566f6c0bf03a646ae91b484086 | [
"MIT"
] | null | null | null | third party/openRTMFP-Cumulus/CumulusLib/sources/RTMFPServer.cpp | Patrick-Bay/SocialCastr | 888a57ca63037e566f6c0bf03a646ae91b484086 | [
"MIT"
] | null | null | null | /*
Copyright 2010 OpenRTMFP
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in... | 28.070461 | 187 | 0.708728 | Patrick-Bay |
7bd884dec92acb411f2637e8a6f065244c1475ca | 170 | cpp | C++ | 20181001/B.cpp | webturing/NOIP2018FinalCamp | aef2945377fab154a916edcde6f300b53619430d | [
"MIT"
] | null | null | null | 20181001/B.cpp | webturing/NOIP2018FinalCamp | aef2945377fab154a916edcde6f300b53619430d | [
"MIT"
] | null | null | null | 20181001/B.cpp | webturing/NOIP2018FinalCamp | aef2945377fab154a916edcde6f300b53619430d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
while (N--) {
string str;
cin >> str;
cout << str << endl;
}
return 0;
} | 14.166667 | 24 | 0.511765 | webturing |
7bda7b8671161a60717056e8b9f149dda12325a8 | 495 | cpp | C++ | DisjoinSetUnion/CPP/DSU.cpp | riship99/codeWith-hacktoberfest | f16fa9dc9a2af0009dea3dea3220e3eaa43d3d2b | [
"MIT"
] | 29 | 2020-10-03T17:41:46.000Z | 2021-10-04T17:59:22.000Z | DisjoinSetUnion/CPP/DSU.cpp | riship99/codeWith-hacktoberfest | f16fa9dc9a2af0009dea3dea3220e3eaa43d3d2b | [
"MIT"
] | 117 | 2020-10-03T15:39:39.000Z | 2021-10-06T08:21:37.000Z | DisjoinSetUnion/CPP/DSU.cpp | riship99/codeWith-hacktoberfest | f16fa9dc9a2af0009dea3dea3220e3eaa43d3d2b | [
"MIT"
] | 160 | 2020-10-03T15:39:23.000Z | 2021-10-13T09:07:05.000Z | #include <bits/stdc++.h>
using namespace std;
#define rank rnk
const int N = 1e5 + 5;
int rank[N], p[N];
void init() {
for (int i = 0; i < N; i++)
rank[i] = 0, p[i] = i;
}
int findp(int n) {
return n == p[n] ? n : p[n] = findp(p[n]);
}
bool merge(int u, int v) {
u = findp(u);
v = findp(v);
if (u == v)
retu... | 13.378378 | 43 | 0.527273 | riship99 |
7bdfa2ec3130d4e3e8222b483dd1c4cb342182f5 | 20,482 | cpp | C++ | Common/CoordinateSystem/CoordSysGeodeticTransformDef.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Common/CoordinateSystem/CoordSysGeodeticTransformDef.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Common/CoordinateSystem/CoordSysGeodeticTransformDef.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// Copyright (C) 2004-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... | 42.939203 | 158 | 0.761303 | achilex |
7be001f583ac88d094026d147a65c3162eb98336 | 948 | hpp | C++ | mpllibs/metamonad/v1/do_.hpp | sabel83/mpllibs | 8e245aedcf658fe77bb29537aeba1d4e1a619a19 | [
"BSL-1.0"
] | 70 | 2015-01-15T09:05:15.000Z | 2021-12-08T15:49:31.000Z | mpllibs/metamonad/v1/do_.hpp | sabel83/mpllibs | 8e245aedcf658fe77bb29537aeba1d4e1a619a19 | [
"BSL-1.0"
] | 4 | 2015-06-18T19:25:34.000Z | 2016-05-13T19:49:51.000Z | mpllibs/metamonad/v1/do_.hpp | sabel83/mpllibs | 8e245aedcf658fe77bb29537aeba1d4e1a619a19 | [
"BSL-1.0"
] | 5 | 2015-07-10T08:18:09.000Z | 2021-12-01T07:17:57.000Z | #ifndef MPLLIBS_METAMONAD_V1_DO__HPP
#define MPLLIBS_METAMONAD_V1_DO__HPP
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2010.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <mpllibs/met... | 24.307692 | 78 | 0.682489 | sabel83 |
7be17250bb5a5867e9d12b70e22cd0236963a20c | 944 | cpp | C++ | Duet Editor/Particle.cpp | mvandevander/duetgame | 6fd083d22b0eab9e7988e0ba46a6ec10757b7720 | [
"MIT"
] | 9 | 2016-03-18T23:59:24.000Z | 2022-02-09T01:09:56.000Z | Duet Editor/Particle.cpp | mvandevander/duetgame | 6fd083d22b0eab9e7988e0ba46a6ec10757b7720 | [
"MIT"
] | null | null | null | Duet Editor/Particle.cpp | mvandevander/duetgame | 6fd083d22b0eab9e7988e0ba46a6ec10757b7720 | [
"MIT"
] | null | null | null | #include "Particle.hpp"
#include <math.h>
Particle::Particle(float x, float y, float w, float h, float rot, int max_life, float xv, float yv, float xa, float ya, float rotv, float rota, float widthv, float widtha, float heightv, float heighta)
{
this->x = x;
this->y = y;
this->w = w;
this->h = ... | 20.977778 | 202 | 0.551907 | mvandevander |
7be21384a3b260f692196cd770af695389efdf5b | 7,885 | cpp | C++ | lib/logic/factpp/data_range.cpp | GreyMerlin/owl_cpp | ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6 | [
"BSL-1.0"
] | null | null | null | lib/logic/factpp/data_range.cpp | GreyMerlin/owl_cpp | ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6 | [
"BSL-1.0"
] | null | null | null | lib/logic/factpp/data_range.cpp | GreyMerlin/owl_cpp | ccc6128dbd08dcf7fcbe6679ec6acd714732bbb6 | [
"BSL-1.0"
] | null | null | null | /** @file "/owlcpp/lib/logic/factpp/data_range.cpp"
part of owlcpp project.
@n @n Distributed under the Boost Software License, Version 1.0; see doc/license.txt.
@n Copyright Mikhail K Levin 2013
*******************************************************************************/
#include "data_range.hpp"
#include "data_in... | 32.582645 | 85 | 0.554344 | GreyMerlin |
7be24e7ed66ad99bc669d42a4ad779741098c477 | 24 | cpp | C++ | src/grape/tensor.cpp | sunnythree/JaverNN | 8c5dc803ac3e49b569a89118fcaf5d4ca6ec673b | [
"BSD-2-Clause"
] | 19 | 2019-11-09T08:51:21.000Z | 2022-03-25T07:55:45.000Z | src/grape/tensor.cpp | sunnythree/JaverNN | 8c5dc803ac3e49b569a89118fcaf5d4ca6ec673b | [
"BSD-2-Clause"
] | null | null | null | src/grape/tensor.cpp | sunnythree/JaverNN | 8c5dc803ac3e49b569a89118fcaf5d4ca6ec673b | [
"BSD-2-Clause"
] | 7 | 2019-11-19T14:20:43.000Z | 2022-03-25T18:36:34.000Z |
namespace Grape{
}
| 3 | 16 | 0.583333 | sunnythree |
7be2d2e4bac98b67b31bada4699c8f102f0f9bea | 2,696 | cpp | C++ | Projects/Demo/source/Common/SpawnComponent.cpp | asheraryam/ETEngine | cac9b62146bfd2fe249a53eb8031cbbbd1db0931 | [
"MIT"
] | 552 | 2017-08-21T18:12:52.000Z | 2022-03-31T15:41:56.000Z | Projects/Demo/source/Common/SpawnComponent.cpp | asheraryam/ETEngine | cac9b62146bfd2fe249a53eb8031cbbbd1db0931 | [
"MIT"
] | 14 | 2017-08-07T23:36:13.000Z | 2021-05-10T08:41:19.000Z | Projects/Demo/source/Common/SpawnComponent.cpp | asheraryam/ETEngine | cac9b62146bfd2fe249a53eb8031cbbbd1db0931 | [
"MIT"
] | 40 | 2017-10-10T14:42:22.000Z | 2022-03-10T07:14:33.000Z | #include "stdafx.h"
#include "SpawnComponent.h"
#include <EtCore/Reflection/Registration.h>
#include <EtCore/Content/ResourceManager.h>
#include <EtRendering/GraphicsTypes/Mesh.h>
#include <EtRendering/MaterialSystem/MaterialInstance.h>
#include <EtRendering/MaterialSystem/MaterialData.h>
namespace et {
namespace d... | 21.918699 | 110 | 0.676929 | asheraryam |
7be6271680c2f2a74713506038e3bf698dc70ccd | 3,239 | cpp | C++ | Cpp-C/Ema/Src/Access/Impl/OmmIProviderActiveConfig.cpp | krico/Real-Time-SDK | 534534199f1595f0dea121f02a57db4b2c0aeae2 | [
"Apache-2.0"
] | 107 | 2015-07-27T23:43:04.000Z | 2019-01-03T07:11:27.000Z | Cpp-C/Ema/Src/Access/Impl/OmmIProviderActiveConfig.cpp | krico/Real-Time-SDK | 534534199f1595f0dea121f02a57db4b2c0aeae2 | [
"Apache-2.0"
] | 91 | 2015-07-28T15:40:43.000Z | 2018-12-31T09:37:19.000Z | Cpp-C/Ema/Src/Access/Impl/OmmIProviderActiveConfig.cpp | krico/Real-Time-SDK | 534534199f1595f0dea121f02a57db4b2c0aeae2 | [
"Apache-2.0"
] | 68 | 2015-07-27T08:35:47.000Z | 2019-01-01T07:59:39.000Z | #include "OmmIProviderActiveConfig.h"
using namespace refinitiv::ema::access;
#define DEFAULT_USER_DISPATCH OmmNiProviderConfig::ApiDispatchEnum
#define DEFAULT_REFRESH_FIRST_REQUIRED true
#define DEFAULT_ENFORCE_ACK_ID_VALIDATION false
#define DEFAULT_DIRECTORY_ADMIN_CONTROL OmmNiProviderConfig::Api... | 28.919643 | 86 | 0.820315 | krico |
7be6cda482acbf4120e764d2e5b3621154112962 | 1,390 | cpp | C++ | src/cpp/226. Invert Binary Tree.cpp | yjjnls/D.S.A-Leet | be19c3ccc1f704e75590786fdfd4cd3ab4818d4f | [
"MIT"
] | 222 | 2018-09-25T08:46:31.000Z | 2022-02-07T12:33:42.000Z | src/cpp/226. Invert Binary Tree.cpp | yjjnls/D.S.A-Leet | be19c3ccc1f704e75590786fdfd4cd3ab4818d4f | [
"MIT"
] | 1 | 2017-11-23T04:39:48.000Z | 2017-11-23T04:39:48.000Z | src/cpp/226. Invert Binary Tree.cpp | yjjnls/D.S.A-Leet | be19c3ccc1f704e75590786fdfd4cd3ab4818d4f | [
"MIT"
] | 12 | 2018-10-05T03:16:05.000Z | 2020-12-19T04:25:33.000Z | /*
Invert a binary tree.
4
/ \
2 7
/ \ / \
1 3 6 9
to
4
/ \
7 2
/ \ / \
9 6 3 1
Trivia:
This problem was inspired by this original tweet by Max Howell:
Google: 90% of our engineers use the software you wrote (Homebrew), but you can’t invert a binary tree on a whiteboard so... | 18.533333 | 131 | 0.5 | yjjnls |
7be6ea2e235a3c7e1f21663f18f5768eefa94172 | 1,936 | cpp | C++ | Source/FactoryGame/Buildables/FGBuildableTradingPost.cpp | iam-Legend/Project-Assembly | 1ff3587704232d5e330515bc0d2aceb64ff09a7f | [
"MIT"
] | null | null | null | Source/FactoryGame/Buildables/FGBuildableTradingPost.cpp | iam-Legend/Project-Assembly | 1ff3587704232d5e330515bc0d2aceb64ff09a7f | [
"MIT"
] | null | null | null | Source/FactoryGame/Buildables/FGBuildableTradingPost.cpp | iam-Legend/Project-Assembly | 1ff3587704232d5e330515bc0d2aceb64ff09a7f | [
"MIT"
] | null | null | null | // This file has been automatically generated by the Unreal Header Implementation tool
#include "FGBuildableTradingPost.h"
AFGBuildableTradingPost::AFGBuildableTradingPost(){ }
void AFGBuildableTradingPost::GetLifetimeReplicatedProps( TArray<FLifetimeProperty>& OutLifetimeProps) const{ }
void AFGBuildableTradingPost:... | 69.142857 | 112 | 0.845558 | iam-Legend |
7be76930a2d6cbc28e5a47e0443d13cee4afb2a2 | 1,219 | cpp | C++ | EntityComponentSystem/PbrRenderer/Material.cpp | Spheya/Slamanander-Engine | d0708399eacab26b243045b33b51ff30d614b7bd | [
"MIT"
] | null | null | null | EntityComponentSystem/PbrRenderer/Material.cpp | Spheya/Slamanander-Engine | d0708399eacab26b243045b33b51ff30d614b7bd | [
"MIT"
] | null | null | null | EntityComponentSystem/PbrRenderer/Material.cpp | Spheya/Slamanander-Engine | d0708399eacab26b243045b33b51ff30d614b7bd | [
"MIT"
] | null | null | null | #include "Material.hpp"
renderer::MaterialTexture::MaterialTexture(const Texture* texture) :
_texture(texture)
{}
renderer::MaterialTexture::MaterialTexture(float value) :
_textureOwner(true)
{
auto tex = new Texture();
const uint8_t byteVal = uint8_t(value * 255.0f);
tex->loadFromMemory(&byteVal, 1, 1, 1);
_te... | 25.395833 | 111 | 0.73913 | Spheya |
7be7e3a9791d159ff8ed1d8d403e49dc34097259 | 4,029 | cc | C++ | cc/test-settings-v1.cc | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | cc/test-settings-v1.cc | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | cc/test-settings-v1.cc | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | #include <iostream>
#include "acmacs-base/settings-v1.hh"
// ----------------------------------------------------------------------
struct AAAtPos : public acmacs::settings::v1::object
{
acmacs::settings::v1::field<size_t> diverse_index_threshold{this, "diverse_index_threshold", 3};
acmacs::settings::v1... | 41.96875 | 137 | 0.542318 | acorg |
7be7e64476cd97a7a8a935625fc1d6b4b1e345a0 | 21,222 | cpp | C++ | libraries/mne/c/mne_proj_op.cpp | Andrey1994/mne-cpp | 6264b1107b9447b7db64309f73f09e848fd198c4 | [
"BSD-3-Clause"
] | 2 | 2021-11-16T19:38:12.000Z | 2021-11-18T20:52:08.000Z | libraries/mne/c/mne_proj_op.cpp | Andrey1994/mne-cpp | 6264b1107b9447b7db64309f73f09e848fd198c4 | [
"BSD-3-Clause"
] | null | null | null | libraries/mne/c/mne_proj_op.cpp | Andrey1994/mne-cpp | 6264b1107b9447b7db64309f73f09e848fd198c4 | [
"BSD-3-Clause"
] | 1 | 2021-11-16T19:39:01.000Z | 2021-11-16T19:39:01.000Z | //=============================================================================================================
/**
* @file mne_proj_op.cpp
* @author Lorenz Esch <lesch@mgh.harvard.edu>;
* Matti Hamalainen <msh@nmr.mgh.harvard.edu>;
* Christoph Dinh <chdinh@nmr.mgh.harvard.edu>
* @version... | 27.66884 | 127 | 0.499105 | Andrey1994 |
7beb2cb601e9c1c7329936e53f4a86066dfeea24 | 8,301 | cpp | C++ | src/solver/LevMarqGaussNewtonSolver.cpp | neophack/steam | 28f0637e3ae4ff2c21ad12b2331c535e9873c997 | [
"BSD-3-Clause"
] | null | null | null | src/solver/LevMarqGaussNewtonSolver.cpp | neophack/steam | 28f0637e3ae4ff2c21ad12b2331c535e9873c997 | [
"BSD-3-Clause"
] | null | null | null | src/solver/LevMarqGaussNewtonSolver.cpp | neophack/steam | 28f0637e3ae4ff2c21ad12b2331c535e9873c997 | [
"BSD-3-Clause"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////////////////////
/// \file LevMarqGaussNewtonSolver.cpp
///
/// \author Sean Anderson, ASRL
//////////////////////////////////////////////////////////////////////////////////////////////
#include <steam/solver/LevMarqGaussNewtonSolver.hpp>
... | 40.691176 | 170 | 0.54909 | neophack |
7bee476661433ad3fc5b8240c3051a8850334747 | 2,318 | cpp | C++ | src/ast_dumper.cpp | steakhal/wcomp | b52c1b77edc8f5242fd08338a9c72e5a9a709a46 | [
"MIT"
] | null | null | null | src/ast_dumper.cpp | steakhal/wcomp | b52c1b77edc8f5242fd08338a9c72e5a9a709a46 | [
"MIT"
] | null | null | null | src/ast_dumper.cpp | steakhal/wcomp | b52c1b77edc8f5242fd08338a9c72e5a9a709a46 | [
"MIT"
] | null | null | null | #include "ast_dumper.h"
#include "utility.h"
#include <cassert>
#include <iostream>
#include <variant>
std::ostream &ast_dumper::operator()(const ast &x) const noexcept {
ast_dumper sub_dumper{os, indent + 2};
os << "program " << x.prog_name << '\n';
sub_dumper(x.syms);
os << "begin\n";
sub_dump... | 27.595238 | 81 | 0.599655 | steakhal |
7bf07c22a67edd7d4b8d6b643289a500931acee5 | 1,963 | hpp | C++ | include/xul/lua/io/lua_message_packet_pipe.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | 2 | 2018-03-16T07:06:48.000Z | 2018-04-02T03:02:14.000Z | include/xul/lua/io/lua_message_packet_pipe.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | null | null | null | include/xul/lua/io/lua_message_packet_pipe.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | 1 | 2019-08-12T05:15:29.000Z | 2019-08-12T05:15:29.000Z | #pragma once
#include <xul/io/codec/message_packet_pipe.hpp>
#include <xul/lua/lua_utility.hpp>
#include <xul/log/log.hpp>
namespace xul {
class lua_message_packet_pipe
{
public:
static const luaL_Reg* get_methods()
{
static const luaL_Reg url_request_functions[] =
{
{ "new", &... | 26.527027 | 91 | 0.669384 | hindsights |
7bf1e848e0abb491cc33d48d9f674e40421a4bb1 | 1,303 | cpp | C++ | DesignPattern/Creational/Builder/Builder.cpp | lostcoder0812/DesignPattern | c2ddee1ad7f4996ce6cb101a994ebaa192b7d3ce | [
"MIT"
] | null | null | null | DesignPattern/Creational/Builder/Builder.cpp | lostcoder0812/DesignPattern | c2ddee1ad7f4996ce6cb101a994ebaa192b7d3ce | [
"MIT"
] | null | null | null | DesignPattern/Creational/Builder/Builder.cpp | lostcoder0812/DesignPattern | c2ddee1ad7f4996ce6cb101a994ebaa192b7d3ce | [
"MIT"
] | null | null | null | #include "Builder.h"
#include <iostream>
using namespace std;
Product::Product()
{
ProducePart();
cout<<"return a product"<<endl;
}
Product::~Product()
{
}
void Product::ProducePart()
{
cout<<"build part of product.."<<endl;
}
ProductPart::ProductPart()
{
//cout<<"build productpart.."<<endl;
}
Produ... | 15.890244 | 58 | 0.679969 | lostcoder0812 |
7bf5d81cb14983955e18bd915974857ed5462277 | 10,598 | cc | C++ | google/cloud/servicedirectory/internal/registration_logging_decorator.cc | LaudateCorpus1/google-cloud-cpp | a9575c5af5e3938efc71bf5822e79b73027d1f3b | [
"Apache-2.0"
] | 80 | 2017-11-24T00:19:45.000Z | 2019-01-25T10:24:33.000Z | google/cloud/servicedirectory/internal/registration_logging_decorator.cc | LaudateCorpus1/google-cloud-cpp | a9575c5af5e3938efc71bf5822e79b73027d1f3b | [
"Apache-2.0"
] | 1,579 | 2017-11-24T01:01:21.000Z | 2019-01-28T23:41:21.000Z | google/cloud/servicedirectory/internal/registration_logging_decorator.cc | LaudateCorpus1/google-cloud-cpp | a9575c5af5e3938efc71bf5822e79b73027d1f3b | [
"Apache-2.0"
] | 51 | 2017-11-24T00:56:11.000Z | 2019-01-18T20:35:02.000Z | // Copyright 2022 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 44.158333 | 82 | 0.723816 | LaudateCorpus1 |
7bf5f708382ae8e594df3687f8fdd31bf1b71cf0 | 6,652 | cpp | C++ | examples/lite/cv/test_lite_fsanet.cpp | IgiArdiyanto/litehub | 54a43690d80e57f16bea1efc698e7d30f06b9d4f | [
"MIT"
] | null | null | null | examples/lite/cv/test_lite_fsanet.cpp | IgiArdiyanto/litehub | 54a43690d80e57f16bea1efc698e7d30f06b9d4f | [
"MIT"
] | null | null | null | examples/lite/cv/test_lite_fsanet.cpp | IgiArdiyanto/litehub | 54a43690d80e57f16bea1efc698e7d30f06b9d4f | [
"MIT"
] | null | null | null | //
// Created by DefTruth on 2021/6/24.
//
#include "lite/lite.h"
static void test_default()
{
std::string var_onnx_path = "../../../hub/onnx/cv/fsanet-var.onnx";
std::string conv_onnx_path = "../../../hub/onnx/cv/fsanet-1x1.onnx";
std::string test_img_path = "../../../examples/lite/resources/test_lite_fsanet.j... | 34.112821 | 95 | 0.683403 | IgiArdiyanto |
7bf66aa3fc73f2f32b1e1f7988a03ac0d00df831 | 4,256 | cc | C++ | arcane/src/arcane/mesh/GhostLayerMng.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | arcane/src/arcane/mesh/GhostLayerMng.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | arcane/src/arcane/mesh/GhostLayerMng.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2021 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2... | 35.466667 | 102 | 0.390038 | JeromeDuboisPro |
7bf8bdbb2422e2230a356459c9ca154c7515aae5 | 1,851 | cc | C++ | zircon/system/ulib/storage/operation/operation.cc | wwjiang007/fuchsia-1 | 0db66b52b5bcd3e27c8b8c2163925309e8522f94 | [
"BSD-2-Clause"
] | 210 | 2019-02-05T12:45:09.000Z | 2022-03-28T07:59:06.000Z | zircon/system/ulib/storage/operation/operation.cc | wwjiang007/fuchsia-1 | 0db66b52b5bcd3e27c8b8c2163925309e8522f94 | [
"BSD-2-Clause"
] | 56 | 2021-06-03T03:16:25.000Z | 2022-03-20T01:07:44.000Z | zircon/system/ulib/storage/operation/operation.cc | wwjiang007/fuchsia-1 | 0db66b52b5bcd3e27c8b8c2163925309e8522f94 | [
"BSD-2-Clause"
] | 73 | 2019-03-06T18:55:23.000Z | 2022-03-26T12:04:51.000Z | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <safemath/checked_math.h>
#include <storage/operation/operation.h>
#ifdef __Fuchsia__
#include <storage/operation/unbuffered_operation.h>
#endif
... | 27.220588 | 100 | 0.680173 | wwjiang007 |
7bfa4757f6bc63cc5625b6fd0d9ef1b0bb824b29 | 2,830 | cc | C++ | src/main/bandlog.cc | bandprotocol/bandprotocol | 4a5861d14dba6a69af0e7ce9fc142beb9315dcb4 | [
"Apache-2.0"
] | 2 | 2020-02-13T17:50:46.000Z | 2020-07-21T15:18:14.000Z | src/main/bandlog.cc | bandprotocol/bandchain-legacy | 4a5861d14dba6a69af0e7ce9fc142beb9315dcb4 | [
"Apache-2.0"
] | null | null | null | src/main/bandlog.cc | bandprotocol/bandchain-legacy | 4a5861d14dba6a69af0e7ce9fc142beb9315dcb4 | [
"Apache-2.0"
] | null | null | null | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the LICENSE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you ma... | 25.267857 | 76 | 0.711661 | bandprotocol |
7bfa51cd85ab7ce66cf0773192b7639a6a65b034 | 9,917 | cc | C++ | application/common/application_file_util.cc | shaochangbin/crosswalk | a4e189b2ab8ca33555a90601476d59c9c291942f | [
"BSD-3-Clause"
] | 1 | 2019-01-16T06:49:57.000Z | 2019-01-16T06:49:57.000Z | application/common/application_file_util.cc | shaochangbin/crosswalk | a4e189b2ab8ca33555a90601476d59c9c291942f | [
"BSD-3-Clause"
] | null | null | null | application/common/application_file_util.cc | shaochangbin/crosswalk | a4e189b2ab8ca33555a90601476d59c9c291942f | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/application/common/application_file_util.h"
#include <algorithm>
#include <map>
#include <vector>
#include "base/command_line.h"
#in... | 32.837748 | 78 | 0.628618 | shaochangbin |
7bfb31c23111aa6afa3fb5e2af8b708873ef2520 | 8,880 | cpp | C++ | Controller/Old versions/Controller_v3.0/Controller.cpp | RickVM/Trees_of_Life | 382d23ed49edaafee923d1acc85e562fb7f12111 | [
"Apache-2.0"
] | null | null | null | Controller/Old versions/Controller_v3.0/Controller.cpp | RickVM/Trees_of_Life | 382d23ed49edaafee923d1acc85e562fb7f12111 | [
"Apache-2.0"
] | null | null | null | Controller/Old versions/Controller_v3.0/Controller.cpp | RickVM/Trees_of_Life | 382d23ed49edaafee923d1acc85e562fb7f12111 | [
"Apache-2.0"
] | 1 | 2018-06-21T13:12:44.000Z | 2018-06-21T13:12:44.000Z | /*
Main class for the logic of the program
Cycle time for a loop with ultrasoon is ~500 millis
Cycle time with buttons is ~75 millis
*/
#include "Controller.h"
#define SYNC_DELAY 1000
#define PULSE_TIME 2500
#define CYCLES 5
/*
Controller constructor
Expects an Input object for acces to the value of t... | 22.769231 | 164 | 0.574212 | RickVM |
7bfc9c9692accf77ebdcced6a2db22ba8979b873 | 5,356 | cpp | C++ | Cpp/SDK/W_Marker_Request_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 1 | 2020-08-15T08:31:55.000Z | 2020-08-15T08:31:55.000Z | Cpp/SDK/W_Marker_Request_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 2 | 2020-08-15T08:43:56.000Z | 2021-01-15T05:04:48.000Z | Cpp/SDK/W_Marker_Request_functions.cpp | MrManiak/Squad-SDK | 742feb5991ae43d6f0cedd2d6b32b949923ca4f9 | [
"Apache-2.0"
] | 2 | 2020-08-10T12:05:42.000Z | 2021-02-12T19:56:10.000Z | // Name: S, Version: b
#include "../SDK.h"
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
/*!!HELPER_DEF!!*/
/*!!DEFINE!!*/
namespace UFT
{
//---------------------------------------------------------------------------
// Functions
//---------------------------------------------------------------------------
// ... | 31.321637 | 176 | 0.740291 | MrManiak |
d00b9d8d7344ff904c32a720495edaf7a4c57d70 | 20,026 | cpp | C++ | Platformer 2D/Motor2D/j1Player.cpp | Scarzard/Game_Development_HO | fe3441c23df03c15120d159671f0cd41d7b8c370 | [
"MIT"
] | null | null | null | Platformer 2D/Motor2D/j1Player.cpp | Scarzard/Game_Development_HO | fe3441c23df03c15120d159671f0cd41d7b8c370 | [
"MIT"
] | null | null | null | Platformer 2D/Motor2D/j1Player.cpp | Scarzard/Game_Development_HO | fe3441c23df03c15120d159671f0cd41d7b8c370 | [
"MIT"
] | 1 | 2018-11-18T21:30:45.000Z | 2018-11-18T21:30:45.000Z | #include "p2Log.h"
#include "j1Player.h"
#include "j1App.h"
#include "j1Render.h"
#include "j1Window.h"
#include "j1Textures.h"
#include "j1Map.h"
#include "p2Log.h"
#include <string>
#include "j1Input.h"
#include "j1Collision.h"
#include "j1Scene.h"
#include "Brofiler/Brofiler.h"
#include <math.h>
j1Player::j1Player... | 28.897547 | 195 | 0.647159 | Scarzard |
d013345da77aeed792c509e8cbeb89bc35f8c658 | 26,314 | cpp | C++ | tests/test_metadata.cpp | ekg/gbwt | 52229f7402467762e73a032f70614adc17c97392 | [
"MIT"
] | null | null | null | tests/test_metadata.cpp | ekg/gbwt | 52229f7402467762e73a032f70614adc17c97392 | [
"MIT"
] | null | null | null | tests/test_metadata.cpp | ekg/gbwt | 52229f7402467762e73a032f70614adc17c97392 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2019 Jouni Siren
Author: Jouni Siren <jouni.siren@iki.fi>
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
... | 39.80938 | 180 | 0.650984 | ekg |
d01616fcd8ada5730cbf95a7701f9ee717d7d94f | 779 | cpp | C++ | src/planner/binder/statement/bind_create_view.cpp | rainmaple/duckdb | d3df77ba6740b8b089bddbfef77e2b969245b5cf | [
"MIT"
] | null | null | null | src/planner/binder/statement/bind_create_view.cpp | rainmaple/duckdb | d3df77ba6740b8b089bddbfef77e2b969245b5cf | [
"MIT"
] | null | null | null | src/planner/binder/statement/bind_create_view.cpp | rainmaple/duckdb | d3df77ba6740b8b089bddbfef77e2b969245b5cf | [
"MIT"
] | null | null | null | #include "duckdb/planner/binder.hpp"
#include "duckdb/parser/parsed_data/create_view_info.hpp"
#include "duckdb/planner/parsed_data/bound_create_info.hpp"
#include "duckdb/planner/bound_query_node.hpp"
using namespace duckdb;
using namespace std;
unique_ptr<BoundCreateInfo> Binder::BindCreateViewInfo(unique_ptr<Creat... | 35.409091 | 85 | 0.761232 | rainmaple |
d0170188157eab7993fe3f2abc6975a63324cf66 | 3,629 | hpp | C++ | smacc2_client_library/nav2z_client/custom_planners/pure_spinning_local_planner/include/pure_spinning_local_planner/pure_spinning_local_planner.hpp | droidware-ai/SMACC2 | 1aa0680f71c1b22f06e1a9b129a0a42b36911139 | [
"Apache-2.0"
] | 48 | 2021-05-28T01:33:20.000Z | 2022-03-24T03:16:03.000Z | smacc2_client_library/nav2z_client/custom_planners/pure_spinning_local_planner/include/pure_spinning_local_planner/pure_spinning_local_planner.hpp | droidware-ai/SMACC2 | 1aa0680f71c1b22f06e1a9b129a0a42b36911139 | [
"Apache-2.0"
] | 75 | 2021-06-25T22:11:21.000Z | 2022-03-30T13:05:38.000Z | smacc2_client_library/nav2z_client/custom_planners/pure_spinning_local_planner/include/pure_spinning_local_planner/pure_spinning_local_planner.hpp | droidware-ai/SMACC2 | 1aa0680f71c1b22f06e1a9b129a0a42b36911139 | [
"Apache-2.0"
] | 14 | 2021-06-16T12:10:57.000Z | 2022-03-01T18:23:27.000Z | // 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.990909 | 116 | 0.712869 | droidware-ai |
d018b1683a2f79ab756a843d34e3d70cb55aed71 | 1,542 | cpp | C++ | src/nxcraft/protocol/socket.cpp | ConsoleLogLuke/NXCraft | 9d53df6143c050d3e8be8d7a717f0dc6069bc00a | [
"MIT"
] | 4 | 2020-08-29T10:20:18.000Z | 2022-01-18T23:03:44.000Z | src/nxcraft/protocol/socket.cpp | ConsoleLogLuke/NXCraft | 9d53df6143c050d3e8be8d7a717f0dc6069bc00a | [
"MIT"
] | null | null | null | src/nxcraft/protocol/socket.cpp | ConsoleLogLuke/NXCraft | 9d53df6143c050d3e8be8d7a717f0dc6069bc00a | [
"MIT"
] | null | null | null | #include "socket.hpp"
#include <vector>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
namespace nxcraft {
namespace protocol {
bool Socket::init() {
sockfd = socket(AF_INET, SOCK_STREAM, 0);
return sockfd >= 0;
}
bool Socket::connect(std::string address, int port) {
struct socka... | 23.723077 | 83 | 0.616732 | ConsoleLogLuke |
d01ba605563cc5e9f1652e2bf91b435a0c79c0d7 | 93,629 | cpp | C++ | core.cpp | harshmittal2210/FPGA-Implementation-of-Handnumber-Recognition-Using-ANN | 1533df8ab295da9295ba6551c7014e28d464b697 | [
"MIT"
] | null | null | null | core.cpp | harshmittal2210/FPGA-Implementation-of-Handnumber-Recognition-Using-ANN | 1533df8ab295da9295ba6551c7014e28d464b697 | [
"MIT"
] | null | null | null | core.cpp | harshmittal2210/FPGA-Implementation-of-Handnumber-Recognition-Using-ANN | 1533df8ab295da9295ba6551c7014e28d464b697 | [
"MIT"
] | null | null | null | // Include HLS Math Lib to use calculate exponential function
#include "hls_math.h"
// This is the top function defined during project initialization
int hand_num_nn(float X[401],int y){
/*Define PRAGMA
* Input is taken form port X via BRAM
* AXI_LITE Interface is used to control IP core
*/
#pragma HLS INTERFA... | 1,800.557692 | 90,562 | 0.720247 | harshmittal2210 |
d024d1fc9dcb16580496307490682952fe8af3cf | 10,233 | cpp | C++ | Algorithm/cloth/graph/GraphsSewing.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 32 | 2016-12-13T05:49:12.000Z | 2022-02-04T06:15:47.000Z | Algorithm/cloth/graph/GraphsSewing.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 2 | 2019-07-30T02:01:16.000Z | 2020-03-12T15:06:51.000Z | Algorithm/cloth/graph/GraphsSewing.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 18 | 2017-11-16T13:37:06.000Z | 2022-03-11T08:13:46.000Z | #include "GraphsSewing.h"
#include "AbstractGraphCurve.h"
#include "tinyxml\tinyxml.h"
namespace ldp
{
GraphsSewing::GraphsSewing() : AbstractGraphObject()
{
}
GraphsSewing::~GraphsSewing()
{
clear();
}
void GraphsSewing::clear()
{
auto tmp = m_firsts;
tmp.insert(tmp.end(), m_seconds.begin(), m_second... | 23.853147 | 115 | 0.637545 | dolphin-li |
d025f68139eeaa0b982334abd7b1084ec24cbb98 | 9,136 | cc | C++ | worker.cc | reedacartwright/sim1942 | 849a5da67c3925a448c0aaf02736067a8fd240a6 | [
"MIT"
] | null | null | null | worker.cc | reedacartwright/sim1942 | 849a5da67c3925a448c0aaf02736067a8fd240a6 | [
"MIT"
] | null | null | null | worker.cc | reedacartwright/sim1942 | 849a5da67c3925a448c0aaf02736067a8fd240a6 | [
"MIT"
] | null | null | null | #include "worker.h"
#include "sim1942.h"
#include "rexp.h"
#include <glibmm/timer.h>
#include <iostream>
#include <cassert>
#include <array>
Worker::Worker(int width, int height, double mu,int delay) :
grid_width_{width}, grid_height_{height}, mu_{mu},
pop_a_{new pop_t(width*height)},
pop_b_{new pop_t(width*hei... | 33.465201 | 130 | 0.50613 | reedacartwright |
d029db8f1e67ea83c4f02d187a9c7e822bed729e | 10,375 | cpp | C++ | myodd/log/logfile.cpp | FFMG/myoddweb.piger | 6c5e9dff6ab8e2e02d6990c1959450f087acf371 | [
"MIT"
] | 18 | 2016-03-04T15:44:24.000Z | 2021-12-31T11:06:25.000Z | myodd/log/logfile.cpp | FFMG/myoddweb.piger | 6c5e9dff6ab8e2e02d6990c1959450f087acf371 | [
"MIT"
] | 49 | 2016-02-29T17:59:52.000Z | 2019-05-05T04:59:26.000Z | myodd/log/logfile.cpp | FFMG/myoddweb.piger | 6c5e9dff6ab8e2e02d6990c1959450f087acf371 | [
"MIT"
] | 2 | 2016-07-30T10:17:12.000Z | 2016-08-11T20:31:46.000Z | #include "stdafx.h"
#include "log.h"
#include "logfile.h"
#include <io.h>
#include <chrono>
#include "../math/math.h"
#include "../files/files.h"
// the maxfile size we want to use.
static size_t MAX_FILE_SIZE_IN_MEGABYTES = 5;
static const MYODD_CHAR* LogFile_default_Prefix = _T("myodd");
static const MYODD_CHAR* ... | 24.880096 | 134 | 0.586602 | FFMG |
d02abc89cb014d4c0f855ffb737f5786d45a8535 | 2,132 | cpp | C++ | NITIKA.cpp | yashji9/COMPETITIVE-PROGRAMMING | 5c7a255be9b01001ddcde8ca4e6ff4bcb1c62f0f | [
"MIT"
] | 2 | 2018-01-18T13:39:48.000Z | 2018-09-18T09:27:07.000Z | NITIKA.cpp | yashji9/COMPETITIVE-PROGRAMMING | 5c7a255be9b01001ddcde8ca4e6ff4bcb1c62f0f | [
"MIT"
] | null | null | null | NITIKA.cpp | yashji9/COMPETITIVE-PROGRAMMING | 5c7a255be9b01001ddcde8ca4e6ff4bcb1c62f0f | [
"MIT"
] | 2 | 2018-09-30T19:12:02.000Z | 2018-10-01T09:31:55.000Z | #include<iostream>
#include<string.h>
#include<ctype.h>
using namespace std;
int main()
{
int t;
cin>>t;
cin.ignore();
while(t--)
{
string s;
getline(cin,s);
char name[12],c,ch1,ch2;
int c1=0;
for(int i=0;s[i]!='\0';i++)
{
... | 21.535354 | 52 | 0.229362 | yashji9 |
d02fa762e7c129999f73e53a95ced23af429a711 | 34,360 | cpp | C++ | src/algorithms/three_edge_connected_components.cpp | meredith705/libsnarls | 1ebeb57a56a5bcd311055ee79ac008bbfa7b0adf | [
"MIT"
] | null | null | null | src/algorithms/three_edge_connected_components.cpp | meredith705/libsnarls | 1ebeb57a56a5bcd311055ee79ac008bbfa7b0adf | [
"MIT"
] | null | null | null | src/algorithms/three_edge_connected_components.cpp | meredith705/libsnarls | 1ebeb57a56a5bcd311055ee79ac008bbfa7b0adf | [
"MIT"
] | 1 | 2021-10-06T19:09:58.000Z | 2021-10-06T19:09:58.000Z | #include "snarls/algorithms/three_edge_connected_components.hpp"
#include <structures/union_find.hpp>
#include <limits>
#include <cassert>
#include <iostream>
#include <sstream>
//#define debug
namespace snarls {
namespace algorithms {
using namespace std;
void three_edge_connected_component_merges_dense(size_t n... | 47.855153 | 138 | 0.472934 | meredith705 |
d035a85216f35451abf857aec3f1e70f4c974c4e | 2,663 | cpp | C++ | CodechefCodes/MSTICK.cpp | debashish05/competitive_programming | e2c0a7a741ac988e4393eda3b5006d6b8c88a5a9 | [
"MIT"
] | null | null | null | CodechefCodes/MSTICK.cpp | debashish05/competitive_programming | e2c0a7a741ac988e4393eda3b5006d6b8c88a5a9 | [
"MIT"
] | null | null | null | CodechefCodes/MSTICK.cpp | debashish05/competitive_programming | e2c0a7a741ac988e4393eda3b5006d6b8c88a5a9 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define ll long long int
#define loop(k) for(i=0;i<k;++i)
#define loop2(k,l) for(j=k;j<l;++j)
#define mod 100000000
using namespace std;
int main()
{
std::ios_base::sync_with_stdio(false);//cin.tie(NULL);
ll t=1,i=0,j=0;
//cin>>t;
while(t--){
int n;cin>>n;
ll a[n];
... | 25.605769 | 68 | 0.38528 | debashish05 |
d03813c0a96da1a770e70bf10fc0e8e94b666430 | 1,913 | hpp | C++ | C++ Development Root/SourceCode/Domain/Subscription/SubscriptionHandler.hpp | Dpham181/CPSC-462-GROUP-2 | 36f55ec4980e2e98d58f1f0a63ecc5070d7faa47 | [
"MIT"
] | 1 | 2021-05-19T06:35:15.000Z | 2021-05-19T06:35:15.000Z | C++ Development Root/SourceCode/Domain/Subscription/SubscriptionHandler.hpp | Dpham181/CPSC-462-GROUP-2 | 36f55ec4980e2e98d58f1f0a63ecc5070d7faa47 | [
"MIT"
] | null | null | null | C++ Development Root/SourceCode/Domain/Subscription/SubscriptionHandler.hpp | Dpham181/CPSC-462-GROUP-2 | 36f55ec4980e2e98d58f1f0a63ecc5070d7faa47 | [
"MIT"
] | null | null | null | #pragma once
#include <any>
#include <memory> // unique_ptr
#include <stdexcept> // runtime_error
#include <string>
#include <vector> // domain_error, runtime_error
#include "TechnicalServices/Persistence/PersistenceHandler.hpp"
namespace Domain::Subscription
{
using TechnicalServices::Persistence::UserCr... | 39.854167 | 177 | 0.723471 | Dpham181 |
d03816ec0b0945bc98e9139da6daa3df998bcf13 | 4,617 | cpp | C++ | common/filesystem.cpp | Thalhammer/pve-simple-container | bfe7e72961fe6ae350587c71c71ef1be8e5fd5f5 | [
"MIT"
] | 1 | 2020-05-12T03:17:51.000Z | 2020-05-12T03:17:51.000Z | common/filesystem.cpp | Thalhammer/pve-simple-container | bfe7e72961fe6ae350587c71c71ef1be8e5fd5f5 | [
"MIT"
] | 6 | 2018-09-08T13:00:49.000Z | 2019-02-12T13:43:23.000Z | common/filesystem.cpp | Thalhammer/pve-simple-container | bfe7e72961fe6ae350587c71c71ef1be8e5fd5f5 | [
"MIT"
] | null | null | null | #include "filesystem.h"
#include <cstdlib>
#include <experimental/filesystem>
#include <fstream>
#include <unistd.h>
#include <sys/types.h>
#include <pwd.h>
#include "string_helper.h"
#include <regex>
namespace fs = std::experimental::filesystem;
namespace pvesc {
namespace common {
std::string filesystem::create_... | 31.408163 | 150 | 0.632012 | Thalhammer |
d039ca11426a50f4bee6054978cd1ce62fe85286 | 577 | cpp | C++ | sketches/libraries/AUnit/tests/FailingTest/ExternalTests.cpp | gtraines/Robot1 | 2dfd20dd574aa1ee53b37ce885769d7265d4934b | [
"MIT"
] | 113 | 2018-04-25T12:42:28.000Z | 2022-03-26T23:20:17.000Z | sketches/libraries/AUnit/tests/FailingTest/ExternalTests.cpp | gtraines/Robot1 | 2dfd20dd574aa1ee53b37ce885769d7265d4934b | [
"MIT"
] | 47 | 2018-03-29T21:02:19.000Z | 2022-01-10T15:22:40.000Z | sketches/libraries/AUnit/tests/FailingTest/ExternalTests.cpp | gtraines/Robot1 | 2dfd20dd574aa1ee53b37ce885769d7265d4934b | [
"MIT"
] | 11 | 2018-07-16T16:42:42.000Z | 2022-02-20T15:47:35.000Z | #line 2 "ExternalTests.cpp"
#include "ExternalTests.h"
testing(slow_fail) {
static unsigned long start = millis();
if (millis() - start > 1000) fail();
}
testing(slow_expire) {
static unsigned long start = millis();
if (millis() - start > 1000) expire();
}
testingF(CustomAgainFixture, fixture_slow_fail) {
... | 21.37037 | 51 | 0.682842 | gtraines |
d03b4fa828cf3f58853c1f36b32e379562622a20 | 755 | cpp | C++ | C_C++_Projects/BAPS Contest/charlie/drunkenbinary.cpp | sunjerry019/RandomCodes | 4402604aaeee63bb1ce6fa962c496b438bb17e50 | [
"MIT"
] | null | null | null | C_C++_Projects/BAPS Contest/charlie/drunkenbinary.cpp | sunjerry019/RandomCodes | 4402604aaeee63bb1ce6fa962c496b438bb17e50 | [
"MIT"
] | null | null | null | C_C++_Projects/BAPS Contest/charlie/drunkenbinary.cpp | sunjerry019/RandomCodes | 4402604aaeee63bb1ce6fa962c496b438bb17e50 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
long long arr[1000000];
int r(int x){
long long ans;
if(x==0)
ans=1;
else if(x<1000000&&arr[x]!=-1)
return arr[x];
else if(x%2==1)
ans=r(x/2);
else ans=r(x/2)+r(x/2-1);
if(x<1000000)
arr[x]=ans;
return ans;
}
int main(){
int n,tc;... | 18.414634 | 47 | 0.490066 | sunjerry019 |
d03bb81d8ae81df9c7ffa78f6931d124b66881d9 | 1,542 | hpp | C++ | include/Framework/Button.hpp | AdlanSADOU/SDL_Space | b8c72b50942b939be0207d8ecd9c924d1124ceb7 | [
"Unlicense"
] | 1 | 2020-08-20T17:42:11.000Z | 2020-08-20T17:42:11.000Z | include/Framework/Button.hpp | AdlanSADOU/SDL_Space | b8c72b50942b939be0207d8ecd9c924d1124ceb7 | [
"Unlicense"
] | null | null | null | include/Framework/Button.hpp | AdlanSADOU/SDL_Space | b8c72b50942b939be0207d8ecd9c924d1124ceb7 | [
"Unlicense"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** SDL_Space
** File description:
** Button
*/
#ifndef BUTTON_HPP_
#define BUTTON_HPP_
#include "Entity.hpp"
enum buttonState {
IDLE,
HOVER,
CLICKED
};
class Button : public Entity {
public:
Button();
Button(SDL_Renderer *renderer);... | 25.7 | 96 | 0.568093 | AdlanSADOU |
d03d2b6fa92b70c9105d3bad279769bb501d12ba | 3,519 | cxx | C++ | main/oox/source/ppt/customshowlistcontext.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/oox/source/ppt/customshowlistcontext.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/oox/source/ppt/customshowlistcontext.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* 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 y... | 30.6 | 157 | 0.693379 | Grosskopf |
d03e365c096704d2170a00459cf6bb1fb6dde5d3 | 557 | cpp | C++ | Implementation/Project/src/AST/ASTSTMT/ASTWhileNode.cpp | migueldingli1997/CPS2000-Compiler-Theory-and-Practice-Assignment | 6843fc5822d6faedb2970ebc260f1adaacb4b3c8 | [
"MIT"
] | null | null | null | Implementation/Project/src/AST/ASTSTMT/ASTWhileNode.cpp | migueldingli1997/CPS2000-Compiler-Theory-and-Practice-Assignment | 6843fc5822d6faedb2970ebc260f1adaacb4b3c8 | [
"MIT"
] | null | null | null | Implementation/Project/src/AST/ASTSTMT/ASTWhileNode.cpp | migueldingli1997/CPS2000-Compiler-Theory-and-Practice-Assignment | 6843fc5822d6faedb2970ebc260f1adaacb4b3c8 | [
"MIT"
] | null | null | null | #include "ASTWhileNode.h"
#include "../ASTExprNode.h"
#include "ASTBlockNode.h"
namespace AST {
ASTWhileNode::ASTWhileNode(const ASTExprNode *expr, const ASTBlockNode *block) : expr(expr), block(block) {}
const ASTExprNode *ASTWhileNode::getExpr() const {
return expr;
}
const ASTBlockNode *A... | 22.28 | 112 | 0.637343 | migueldingli1997 |
d03f76e910670f9995f26b62b4df01f19536b184 | 1,288 | cpp | C++ | src/test/current/source/NativeReplicatorStack/RCQNightWatchTXRService/RCQService.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/test/current/source/NativeReplicatorStack/RCQNightWatchTXRService/RCQService.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/test/current/source/NativeReplicatorStack/RCQNightWatchTXRService/RCQService.cpp | gridgentoo/ServiceFabricAzure | c3e7a07617e852322d73e6cc9819d266146866a4 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | //------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
#include "stdafx.h"
using namespace std;
using namespace ktl;
using namespace Common;
using nam... | 33.894737 | 101 | 0.696429 | gridgentoo |
d04040dee2c4d38af49b4f205f073a872d53cc66 | 2,548 | cpp | C++ | src/parser/mode/createCoroutine.cpp | tositeru/watagashi | d4fcfbb4a7f44fcbf68652e7d99a4b13c6e035d4 | [
"MIT"
] | null | null | null | src/parser/mode/createCoroutine.cpp | tositeru/watagashi | d4fcfbb4a7f44fcbf68652e7d99a4b13c6e035d4 | [
"MIT"
] | null | null | null | src/parser/mode/createCoroutine.cpp | tositeru/watagashi | d4fcfbb4a7f44fcbf68652e7d99a4b13c6e035d4 | [
"MIT"
] | null | null | null | #include "createCoroutine.h"
#include "../line.h"
#include "../enviroment.h"
#include "normal.h"
namespace parser
{
IParseMode::Result CreateCoroutineParseMode::parse(Enviroment& env, Line& line)
{
if (line.length() <= 0) {
return Result::Continue;
}
switch (env.currentScope().type()) {
cas... | 32.666667 | 127 | 0.658163 | tositeru |
d040714ae77a278f6f017b2acb45ef7ed008355e | 546 | cc | C++ | src/prototools/commit.cc | imdea-software/legosnark | 3f4a137c050371cf4dd51c3fe2d46a8eee60f8ee | [
"Apache-2.0",
"MIT"
] | 23 | 2019-09-09T15:11:48.000Z | 2022-02-11T06:11:10.000Z | src/prototools/commit.cc | imdea-software/legosnark | 3f4a137c050371cf4dd51c3fe2d46a8eee60f8ee | [
"Apache-2.0",
"MIT"
] | 1 | 2020-10-08T04:19:50.000Z | 2020-10-08T20:37:13.000Z | src/prototools/commit.cc | imdea-software/legosnark | 3f4a137c050371cf4dd51c3fe2d46a8eee60f8ee | [
"Apache-2.0",
"MIT"
] | 2 | 2021-05-29T09:13:29.000Z | 2021-11-11T06:50:11.000Z | #include "commit.h"
using namespace std;
CommOut operator+(const CommOut& a, const CommOut& b) {
if (a.lenXs != 1 || b.lenXs != 1) {
throw runtime_error("Operations CommOut are only for commitments of single elements.");
}
return CommOut(a.c+b.c, a.r+b.r, a.xs[0]+b.xs[0]);
}
CommOut operator-(const... | 28.736842 | 92 | 0.635531 | imdea-software |
d040ad32d8e9a8dd8265530692d9ab8983b35d8c | 3,410 | cpp | C++ | library/Java/Lang/ArithmeticException/ArithmeticExceptionTest.cpp | VietAnh14/native | 8f9f23c2ff21ac14c69745556e04aaec36dbcd13 | [
"Zlib"
] | 1 | 2018-12-12T13:04:09.000Z | 2018-12-12T13:04:09.000Z | library/Java/Lang/ArithmeticException/ArithmeticExceptionTest.cpp | vothaosontlu/native | 2b8d062ce6db66dfdaa8b17087ba32455c9531e8 | [
"Zlib"
] | null | null | null | library/Java/Lang/ArithmeticException/ArithmeticExceptionTest.cpp | vothaosontlu/native | 2b8d062ce6db66dfdaa8b17087ba32455c9531e8 | [
"Zlib"
] | null | null | null | /**
* Copyright (c) 2016 Food Tiny Project. 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 condition... | 50.147059 | 88 | 0.758651 | VietAnh14 |
d04267cbcfaddd0dc0bef5714ec0988d668d1593 | 9,854 | cpp | C++ | src/d3d10/d3d10_texture.cpp | lacc97/dxvk | 5fe8d823a03cc1c90361a4e89c385cefee8cbcf6 | [
"Zlib"
] | 8,148 | 2017-10-29T10:51:20.000Z | 2022-03-31T12:52:51.000Z | src/d3d10/d3d10_texture.cpp | lacc97/dxvk | 5fe8d823a03cc1c90361a4e89c385cefee8cbcf6 | [
"Zlib"
] | 2,270 | 2017-12-04T12:08:13.000Z | 2022-03-31T19:56:41.000Z | src/d3d10/d3d10_texture.cpp | lacc97/dxvk | 5fe8d823a03cc1c90361a4e89c385cefee8cbcf6 | [
"Zlib"
] | 732 | 2017-11-28T13:08:15.000Z | 2022-03-31T21:05:59.000Z | #include "d3d10_texture.h"
#include "d3d10_device.h"
#include "../d3d11/d3d11_device.h"
#include "../d3d11/d3d11_context.h"
#include "../d3d11/d3d11_texture.h"
namespace dxvk {
HRESULT STDMETHODCALLTYPE D3D10Texture1D::QueryInterface(
REFIID riid,
void** pp... | 28.562319 | 76 | 0.608382 | lacc97 |
d043f0dce85f1f9137d6821d5215a3bbe781b19e | 620 | cpp | C++ | src/libtoast/tests/toast_test_env.cpp | jrs584/toast | c0e2a9296348a22075271236457ad5c23713af82 | [
"BSD-2-Clause"
] | 29 | 2017-03-23T04:51:32.000Z | 2022-02-10T13:17:42.000Z | src/libtoast/tests/toast_test_env.cpp | jrs584/toast | c0e2a9296348a22075271236457ad5c23713af82 | [
"BSD-2-Clause"
] | 362 | 2016-05-06T18:26:35.000Z | 2022-03-30T16:39:46.000Z | src/libtoast/tests/toast_test_env.cpp | jrs584/toast | c0e2a9296348a22075271236457ad5c23713af82 | [
"BSD-2-Clause"
] | 37 | 2016-05-20T09:31:03.000Z | 2022-02-24T13:56:27.000Z |
// Copyright (c) 2015-2020 by the parties listed in the AUTHORS file.
// All rights reserved. Use of this source code is governed by
// a BSD-style license that can be found in the LICENSE file.
#include <toast_test.hpp>
TEST_F(TOASTenvTest, print) {
auto & env = toast::Environment::get();
env.print();
}
... | 25.833333 | 69 | 0.670968 | jrs584 |
d0457573445856636cd6e94e29860fd552c2194e | 479 | cpp | C++ | RedWolfTests/src/FixedQueueTest.cpp | DavidePistilli173/RedWolf | 1ca752c8e4c6becfb9de942d6059f6076384f3af | [
"Apache-2.0"
] | null | null | null | RedWolfTests/src/FixedQueueTest.cpp | DavidePistilli173/RedWolf | 1ca752c8e4c6becfb9de942d6059f6076384f3af | [
"Apache-2.0"
] | null | null | null | RedWolfTests/src/FixedQueueTest.cpp | DavidePistilli173/RedWolf | 1ca752c8e4c6becfb9de942d6059f6076384f3af | [
"Apache-2.0"
] | null | null | null | #include "RedWolf/utility.hpp"
#include <RedWolf/gl/Buffer.hpp>
#include <gtest/gtest.h>
constexpr size_t fqt_max_queue_size{ 1024 };
constexpr size_t fqt_max_iterations{ 2 * fqt_max_queue_size };
TEST(FixedQueue, SizeAfterPush)
{
/* Create a queue. */
rw::FixedQueue<int, fqt_max_queue_size> q;
/* Push mor... | 23.95 | 62 | 0.688935 | DavidePistilli173 |
d046219048613d784aa0c0cdc68adf8af518af96 | 18,852 | cc | C++ | wrappers/7.0.0/vtkImageBlendWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 6 | 2016-02-03T12:48:36.000Z | 2020-09-16T15:07:51.000Z | wrappers/7.0.0/vtkImageBlendWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 4 | 2016-02-13T01:30:43.000Z | 2020-03-30T16:59:32.000Z | wrappers/7.0.0/vtkImageBlendWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | null | null | null | /* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtkThreadedImageAlgorithmWrap.h"
#include "vtkImageBlendWrap.h"
#include "vtkObjectWrap.h"
#include "vtkAlgorithmOutputWrap.h"
#include "vtkDat... | 31.36772 | 112 | 0.719977 | axkibe |
d0496f8337a0e95da8a1d22831111358380bbbea | 4,270 | hpp | C++ | third_party/omr/gc/base/standard/ConfigurationStandard.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/gc/base/standard/ConfigurationStandard.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/gc/base/standard/ConfigurationStandard.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 1991, 2017 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... | 37.130435 | 161 | 0.759016 | xiacijie |
d04cabc98f292b5118db2465877acdb1ec1fb338 | 13,727 | cpp | C++ | Source/Scripting/bsfScript/Generated/BsScriptDepthOfFieldSettings.generated.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 1,745 | 2018-03-16T02:10:28.000Z | 2022-03-26T17:34:21.000Z | Source/Scripting/bsfScript/Generated/BsScriptDepthOfFieldSettings.generated.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 395 | 2018-03-16T10:18:20.000Z | 2021-08-04T16:52:08.000Z | Source/Scripting/bsfScript/Generated/BsScriptDepthOfFieldSettings.generated.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 267 | 2018-03-17T19:32:54.000Z | 2022-02-17T16:55:50.000Z | //********************************* bs::framework - Copyright 2018-2019 Marko Pintera ************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "BsScriptDepthOfFieldSettings.generated.h"
#include "BsMonoMe... | 38.45098 | 152 | 0.810811 | bsf2dev |
d050bad08ff6baef46c9ae0185335ff561245b97 | 2,077 | cpp | C++ | PrettyEngine/src/engine/Events/Input.cpp | cristi191096/Pretty_Engine | 53a5d305b3de5786223e3ad6775199dbc7b5e90c | [
"Apache-2.0"
] | null | null | null | PrettyEngine/src/engine/Events/Input.cpp | cristi191096/Pretty_Engine | 53a5d305b3de5786223e3ad6775199dbc7b5e90c | [
"Apache-2.0"
] | null | null | null | PrettyEngine/src/engine/Events/Input.cpp | cristi191096/Pretty_Engine | 53a5d305b3de5786223e3ad6775199dbc7b5e90c | [
"Apache-2.0"
] | 1 | 2021-04-16T09:10:46.000Z | 2021-04-16T09:10:46.000Z | #include "pepch.h"
#include "Input.h"
#include "engine\Core\Context.h"
#include "Platform\OpenGL\GLInput.h"
namespace PrettyEngine {
bool InternalInput::m_Keys[MAX_KEYS];
bool InternalInput::m_MouseButtons[MAX_BUTTONS];
uint InternalInput::m_Mods = 0;
Vector2 InternalInput::m_MousePosition = Vector2(0, 0);
n... | 14.423611 | 58 | 0.649013 | cristi191096 |
d0528e7cfae17c057ff549395fe11c7e5edfe1e2 | 7,274 | cpp | C++ | testing/Traffic_Map_Decomposition_Eclipse/mapdecompose.cpp | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 50 | 2018-12-21T08:21:38.000Z | 2022-01-24T09:47:59.000Z | testing/Traffic_Map_Decomposition_Eclipse/mapdecompose.cpp | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 2 | 2018-12-19T13:42:47.000Z | 2019-05-13T04:11:45.000Z | testing/Traffic_Map_Decomposition_Eclipse/mapdecompose.cpp | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 27 | 2018-11-28T07:30:34.000Z | 2022-02-05T02:22:26.000Z | /* Copyright Singapore-MIT Alliance for Research and Technology */
/**
* argv[1] : node.weight
* argv[2] : flow.data.size
* argv[3] : infor.data.size
* argv[4] : output folder
* argv[5] : nparts (>=2)
* argv[6] : load imbalance (>1)
*/
#include "all_includes.hpp"
#include "algorithms/Configurations.hp... | 30.822034 | 173 | 0.688617 | gusugusu1018 |
d052a85a353cc0d92ab2f297471868b8907d4e6e | 562 | cpp | C++ | examples/q0_basics/src/objects/Cat.cpp | ubc333/library | 069d68e822992950739661f5f7a7bdffe8d425d4 | [
"MIT"
] | null | null | null | examples/q0_basics/src/objects/Cat.cpp | ubc333/library | 069d68e822992950739661f5f7a7bdffe8d425d4 | [
"MIT"
] | null | null | null | examples/q0_basics/src/objects/Cat.cpp | ubc333/library | 069d68e822992950739661f5f7a7bdffe8d425d4 | [
"MIT"
] | null | null | null | #include "Cat.h"
#include <string>
Cat::Cat(std::string name, int age) : Animal(name, age) { // pass the name and age to the parent constructor
// initialize anything else unique to Cat
}
Cat::~Cat() {
// clear any dynamic memory unique to Cat
}
// Override "Speak"
std::string Cat::speak() {
retur... | 22.48 | 109 | 0.624555 | ubc333 |
d053cde7f47f41ecae161805137b82bd4fdc4c9a | 1,439 | cpp | C++ | tests/stopwatch_test.cpp | cameronbroe/libstopwatch | e050a2f20caf66d18c9473d2a31f501e783ab679 | [
"MIT"
] | null | null | null | tests/stopwatch_test.cpp | cameronbroe/libstopwatch | e050a2f20caf66d18c9473d2a31f501e783ab679 | [
"MIT"
] | null | null | null | tests/stopwatch_test.cpp | cameronbroe/libstopwatch | e050a2f20caf66d18c9473d2a31f501e783ab679 | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include <iostream>
#include "stopwatch.h"
TEST_CASE("Testing single task stopwatch", "[multi-file:stopwatch]") {
stopwatch::Stopwatch stopwatch;
SECTION("should execute a task at 5 ticks") {
bool five_ticks_ran = false;
auto five_ticks = [&five_ticks_ran]() {
... | 30.617021 | 73 | 0.608756 | cameronbroe |
d05726041161b0a56f6c0fcaf1a4fb75ec047fea | 571 | cpp | C++ | src/ndhist/stats/mean.cpp | martwo/ndhist | 193cef3585b5d0277f0721bb9c3a1e78cc67cf1f | [
"BSD-2-Clause"
] | null | null | null | src/ndhist/stats/mean.cpp | martwo/ndhist | 193cef3585b5d0277f0721bb9c3a1e78cc67cf1f | [
"BSD-2-Clause"
] | null | null | null | src/ndhist/stats/mean.cpp | martwo/ndhist | 193cef3585b5d0277f0721bb9c3a1e78cc67cf1f | [
"BSD-2-Clause"
] | null | null | null | /**
* $Id$
*
* Copyright (C)
* 2015 - $Date$
* Martin Wolf <ndhist@martin-wolf.org>
*
* This file is distributed under the BSD 2-Clause Open Source License
* (See LICENSE file).
*
*/
#include <boost/python.hpp>
#include <ndhist/stats/expectation.hpp>
#include <ndhist/stats/mean.hpp>
namespace bp = boost... | 17.30303 | 70 | 0.672504 | martwo |
d05a883ddf9c9707c89ad87fd2660c45d3b9ae24 | 10,981 | cc | C++ | src/tools/detector_repeatability.cc | jackyspeed/libmv | aae2e0b825b1c933d6e8ec796b8bb0214a508a84 | [
"MIT"
] | 160 | 2015-01-16T19:35:28.000Z | 2022-03-16T02:55:30.000Z | src/tools/detector_repeatability.cc | rgkoo/libmv-blender | cdf65edbb80d8904e2df9a20116d02546df93a81 | [
"MIT"
] | 3 | 2015-04-04T17:54:35.000Z | 2015-12-15T18:09:03.000Z | src/tools/detector_repeatability.cc | rgkoo/libmv-blender | cdf65edbb80d8904e2df9a20116d02546df93a81 | [
"MIT"
] | 51 | 2015-01-12T08:38:12.000Z | 2022-02-19T06:37:25.000Z | // Copyright (c) 2010 libmv authors.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish... | 34.315625 | 79 | 0.63282 | jackyspeed |
d0652089a44a2e967f114c79d7184a24b5410986 | 1,310 | cpp | C++ | problems/592.fraction-addition-and-subtraction.cpp | bigfishi/leetcode | 3e512f2822a742349384a0bdd7954696f5867683 | [
"MIT"
] | null | null | null | problems/592.fraction-addition-and-subtraction.cpp | bigfishi/leetcode | 3e512f2822a742349384a0bdd7954696f5867683 | [
"MIT"
] | null | null | null | problems/592.fraction-addition-and-subtraction.cpp | bigfishi/leetcode | 3e512f2822a742349384a0bdd7954696f5867683 | [
"MIT"
] | null | null | null | // 中等 需要用到求最大公约数,需要注意越界,另外,提交错了一次,因为没考虑分子分母为10的情况
typedef long long llong;
class Solution {
int calcGcd(llong x, llong y) {
int z = y;
while (z)
{
y = x%y;
x = z;
z = y;
}
return x;
}
void calcFraction(int& x, int& y, int x2, int y2) {
llong tx = x*y2 + x2*y;
llong ty = y*y2;
int c = calcGcd... | 20.793651 | 75 | 0.478626 | bigfishi |
d07022082e37b48f77f637b644b8a76809b71b91 | 5,284 | hpp | C++ | libahafront/aha/front/lexer.hpp | dlarudgus20/newly-aha | 4d80bf992af3d8e7a6ddcca3c38d5959059ec66f | [
"MIT"
] | 2 | 2017-08-12T11:23:37.000Z | 2017-08-12T17:11:52.000Z | libahafront/aha/front/lexer.hpp | dlarudgus20/newly-aha | 4d80bf992af3d8e7a6ddcca3c38d5959059ec66f | [
"MIT"
] | null | null | null | libahafront/aha/front/lexer.hpp | dlarudgus20/newly-aha | 4d80bf992af3d8e7a6ddcca3c38d5959059ec66f | [
"MIT"
] | null | null | null | // The MIT License (MIT)
//
// Copyright (c) 2016 Im Kyeong-Hyeon (dlarudgus20@naver.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitati... | 25.282297 | 81 | 0.603331 | dlarudgus20 |
d075e389e5d1cce583be41b567b3f6b92397a942 | 6,831 | cc | C++ | CalibCalorimetry/CastorCalib/plugins/CastorDbProducer.cc | Nik-Menendez/L1Trigger | 5336631cc0a517495869279ed7d3a4cac8d4e5e5 | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | CalibCalorimetry/CastorCalib/plugins/CastorDbProducer.cc | Nik-Menendez/L1Trigger | 5336631cc0a517495869279ed7d3a4cac8d4e5e5 | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | CalibCalorimetry/CastorCalib/plugins/CastorDbProducer.cc | Nik-Menendez/L1Trigger | 5336631cc0a517495869279ed7d3a4cac8d4e5e5 | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | // -*- C++ -*-
//
// Package: CastorDbProducer
// Class: CastorDbProducer
//
/**\class CastorDbProducer CastorDbProducer.h CalibFormats/CastorDbProducer/interface/CastorDbProducer.h
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original Author: Fedor Ratnikov... | 38.8125 | 117 | 0.693456 | Nik-Menendez |
d07799f859fdd5946f514a4a8014043e145777cf | 4,468 | cc | C++ | src/planereel/main.cc | grendello/notcursespp | bc04b1445c7e50fc3cb7b3c7f0fc15b8781d2f31 | [
"BSD-3-Clause"
] | null | null | null | src/planereel/main.cc | grendello/notcursespp | bc04b1445c7e50fc3cb7b3c7f0fc15b8781d2f31 | [
"BSD-3-Clause"
] | null | null | null | src/planereel/main.cc | grendello/notcursespp | bc04b1445c7e50fc3cb7b3c7f0fc15b8781d2f31 | [
"BSD-3-Clause"
] | 1 | 2020-02-13T02:00:06.000Z | 2020-02-13T02:00:06.000Z | #include <cstdlib>
#include <clocale>
#include <sstream>
#include <getopt.h>
#include <iostream>
#include <ncpp/NotCurses.hh>
#include <ncpp/PanelReel.hh>
#include <ncpp/NCKey.hh>
using namespace ncpp;
// FIXME ought be able to get pr from tablet, methinks?
static PanelReel* PR;
class TabletCtx {
public:
Tablet... | 21.68932 | 104 | 0.591316 | grendello |
d07a4890c416de6063c444d8d564eee1b8990a9d | 4,544 | cc | C++ | crawl-ref/source/misc.cc | ricobadico/crawl | 4b524a92c8bf23403f40adf829a1419efde1a0ee | [
"CC0-1.0"
] | 5 | 2019-11-18T11:05:13.000Z | 2021-04-08T15:49:06.000Z | crawl-ref/source/misc.cc | ricobadico/crawl | 4b524a92c8bf23403f40adf829a1419efde1a0ee | [
"CC0-1.0"
] | null | null | null | crawl-ref/source/misc.cc | ricobadico/crawl | 4b524a92c8bf23403f40adf829a1419efde1a0ee | [
"CC0-1.0"
] | 5 | 2019-11-20T14:28:02.000Z | 2021-09-17T14:47:55.000Z | /**
* @file
* @brief Misc functions.
**/
#include "AppHdr.h"
#include "misc.h"
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#ifdef UNIX
#include <unistd.h>
#endif
#include "database.h"
#include "english.h"
#include "items.h"
#include "libutil.h"
#include "monster.h"
#include "state... | 22.49505 | 79 | 0.578345 | ricobadico |
d07b45dc7241c183b2c63a07269928fb073f42e5 | 1,405 | cpp | C++ | libhext/src/ContainsWordsTest.cpp | brandonrobertz/hext | 3b680096a7ab121bfd3cc728027e7fa9bcfae663 | [
"Apache-2.0"
] | 27 | 2019-06-23T21:31:44.000Z | 2022-03-05T17:17:54.000Z | libhext/src/ContainsWordsTest.cpp | brandonrobertz/hext | 3b680096a7ab121bfd3cc728027e7fa9bcfae663 | [
"Apache-2.0"
] | 15 | 2019-06-23T11:05:13.000Z | 2021-12-29T12:51:48.000Z | libhext/src/ContainsWordsTest.cpp | brandonrobertz/hext | 3b680096a7ab121bfd3cc728027e7fa9bcfae663 | [
"Apache-2.0"
] | 3 | 2021-03-20T10:08:25.000Z | 2021-07-23T17:51:32.000Z | // Copyright 2015 Thomas Trapp
//
// 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... | 23.813559 | 77 | 0.694662 | brandonrobertz |