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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
973c113401f4674b562d4ebf3724e179531270e7 | 185 | cpp | C++ | src/stan/language/grammars/expression07_grammar_inst.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | src/stan/language/grammars/expression07_grammar_inst.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | src/stan/language/grammars/expression07_grammar_inst.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #include "expression07_grammar_def.hpp"
#include "iterator_typedefs.hpp"
namespace stan {
namespace lang {
template struct expression07_grammar<pos_iterator_t>;
}
} // namespace stan
| 20.555556 | 53 | 0.8 | alashworth |
973c1d1aef3085b665141d6b9dfc1f5600ed76b1 | 838 | cpp | C++ | Classes/Device.cpp | Tang1705/Happy-Reconstruction | 2040310be4475deff0a8d251feaf32d7ba82d0ff | [
"Apache-2.0"
] | 5 | 2021-12-13T08:48:07.000Z | 2022-01-04T01:28:40.000Z | Classes/Device.cpp | xmtc56606/Reconstruction | 7eadf91b397fa2067b983be1a31c9603043d1360 | [
"Apache-2.0"
] | null | null | null | Classes/Device.cpp | xmtc56606/Reconstruction | 7eadf91b397fa2067b983be1a31c9603043d1360 | [
"Apache-2.0"
] | 1 | 2022-03-28T06:04:34.000Z | 2022-03-28T06:04:34.000Z | #include "Device.h"
#include <QDebug>
Device* Device::instance = nullptr;
Device::Device()
{
vector<CameraInfo> cams = CameraPointGrey::getCameraList();
if (cams.size() != 0)
{
hasCamera = true;
camera = Camera::NewCamera(0, cams[0].busID, triggerModeSoftware);
CameraSettings camSettings;
camSettings.shutte... | 17.458333 | 68 | 0.711217 | Tang1705 |
9741c086d1b97a36b72febad8eb1f70578664ab7 | 2,492 | cpp | C++ | src/args_test.cpp | JoelSjogren/video-organizer | fc5a5c1a2fce39f2b9d8343c07c53108321ef260 | [
"Apache-2.0"
] | 2 | 2015-04-17T11:28:57.000Z | 2016-11-13T13:03:08.000Z | src/args_test.cpp | JoelSjogren/video-organizer | fc5a5c1a2fce39f2b9d8343c07c53108321ef260 | [
"Apache-2.0"
] | null | null | null | src/args_test.cpp | JoelSjogren/video-organizer | fc5a5c1a2fce39f2b9d8343c07c53108321ef260 | [
"Apache-2.0"
] | null | null | null | /**********************************
* args_test.cpp *
**********************************/
#include "args_test.h"
#include "args.h"
#include "fileman.h"
#include <string>
using std::string;
ArgsTest::ArgsTest() : Test("Args") {
const char* files[] = {
"Chuck.S05E01.HDTV.XviD-LOL.avi",
... | 26.795699 | 58 | 0.554575 | JoelSjogren |
97466246b549d44e5bfbfba129449c424b573d6e | 2,501 | cpp | C++ | test/test_timer.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 71 | 2017-12-18T10:35:41.000Z | 2021-12-11T19:57:34.000Z | test/test_timer.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 1 | 2017-12-19T09:31:46.000Z | 2017-12-20T07:08:01.000Z | test/test_timer.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 7 | 2017-12-20T01:55:44.000Z | 2019-12-06T12:25:55.000Z | #include <gtest/gtest.h>
#include <futures/EventExecutor.h>
#include <futures/Timeout.h>
#include <futures/Timer.h>
#include <futures/Future.h>
using namespace futures;
TEST(Executor, Timer) {
EventExecutor ev;
auto f = TimerFuture(&ev, 1)
.andThen([&ev] (Unit) {
std::cerr << "DONE" << std::endl;
return ma... | 21.376068 | 102 | 0.580968 | chyh1990 |
974aa1b66be0b4d7e57c440ac9130fdb6c4d7a61 | 960 | cpp | C++ | lib/Food.cpp | prakashutoledo/pacman-cpp | 0d3e46bd79970d722bc83fd5aeb52a34ad6c27e5 | [
"Apache-2.0"
] | 1 | 2021-04-19T12:10:01.000Z | 2021-04-19T12:10:01.000Z | lib/Food.cpp | prakashutoledo/pacman-cpp | 0d3e46bd79970d722bc83fd5aeb52a34ad6c27e5 | [
"Apache-2.0"
] | null | null | null | lib/Food.cpp | prakashutoledo/pacman-cpp | 0d3e46bd79970d722bc83fd5aeb52a34ad6c27e5 | [
"Apache-2.0"
] | null | null | null | #include "Food.h"
void Food::Initilize(Position * position)
{
this->position = position;
drawing = CreateBitmap(position);
CollisionDetection::Instance()->Add(this);
}
Food::Food(int x, int y)
{
Initilize(new Position(x - FOOD_RADIUS, y - FOOD_RADIUS));
}
Food::Food(Position * positio... | 22.857143 | 106 | 0.628125 | prakashutoledo |
974c5c2a8c7403ab4d50628b70c73d0b2bb150e3 | 2,200 | hpp | C++ | srcs/boxpp/boxpp/base/systems/Barrior.hpp | whoamiho1006/boxpp | 5de2c5f9b2303ac6f539192f6407e9acf9144f8b | [
"MIT"
] | 2 | 2019-11-13T13:57:37.000Z | 2019-11-25T09:55:17.000Z | srcs/boxpp/boxpp/base/systems/Barrior.hpp | whoamiho1006/boxpp | 5de2c5f9b2303ac6f539192f6407e9acf9144f8b | [
"MIT"
] | null | null | null | srcs/boxpp/boxpp/base/systems/Barrior.hpp | whoamiho1006/boxpp | 5de2c5f9b2303ac6f539192f6407e9acf9144f8b | [
"MIT"
] | null | null | null | #pragma once
#include <boxpp/base/BaseMacros.hpp>
#include <boxpp/base/BaseTypes.hpp>
#include <boxpp/base/opacities/posix.hpp>
#include <boxpp/base/opacities/windows.hpp>
namespace boxpp {
/* Barrior is for guarding specific blocks. */
class BOXPP FBarrior
{
public:
FASTINLINE FBarrior() {
#if PLATFORM_WINDOWS... | 20.754717 | 73 | 0.735 | whoamiho1006 |
9752b0ceb7349ca95afc55b5ed16da2d464af0a3 | 3,746 | cpp | C++ | test/core/vector_specialisation_test.cpp | marovira/apollo | 79920864839066c4e24d87de92c36dde4a315b10 | [
"BSD-3-Clause"
] | 1 | 2020-05-02T14:33:42.000Z | 2020-05-02T14:33:42.000Z | test/core/vector_specialisation_test.cpp | marovira/apollo | 79920864839066c4e24d87de92c36dde4a315b10 | [
"BSD-3-Clause"
] | null | null | null | test/core/vector_specialisation_test.cpp | marovira/apollo | 79920864839066c4e24d87de92c36dde4a315b10 | [
"BSD-3-Clause"
] | null | null | null | #include <core/vector.hpp>
#include <catch2/catch.hpp>
TEMPLATE_TEST_CASE(
"[Vector] - specialised constructors", "[core]", float, double, int)
{
SECTION("Empty constructor: size 2")
{
core::Vector2<TestType> v;
REQUIRE(v.x == TestType{0});
REQUIRE(v.y == TestType{0});
}
... | 24.973333 | 79 | 0.533102 | marovira |
97530a740cbd510778a20901f769a6207c46fb76 | 2,688 | cpp | C++ | cpp/cpp/685. Redundant Connection II.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | 3 | 2021-08-07T07:01:34.000Z | 2021-08-07T07:03:02.000Z | cpp/cpp/685. Redundant Connection II.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | null | null | null | cpp/cpp/685. Redundant Connection II.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | null | null | null | // https://leetcode.com/problems/redundant-connection-ii/
// In this problem, a rooted tree is a directed graph such that, there is exactly
// one node (the root) for which all other nodes are descendants of this node, plus
// every node has exactly one parent, except for the root node which has no
// parents.
// The... | 38.4 | 83 | 0.579241 | longwangjhu |
97545d9fcf31e1ca0b370f0a32ea117b6cfedd49 | 3,899 | cpp | C++ | src/astra/astra_point.cpp | Delicode/astra | 2654b99102b999a15d3221b0e5a11bb5291f7689 | [
"Apache-2.0"
] | 170 | 2015-10-20T08:31:16.000Z | 2021-12-01T01:47:32.000Z | src/astra/astra_point.cpp | Delicode/astra | 2654b99102b999a15d3221b0e5a11bb5291f7689 | [
"Apache-2.0"
] | 42 | 2015-10-20T23:20:17.000Z | 2022-03-18T05:47:08.000Z | src/astra/astra_point.cpp | Delicode/astra | 2654b99102b999a15d3221b0e5a11bb5291f7689 | [
"Apache-2.0"
] | 83 | 2015-10-22T14:53:00.000Z | 2021-11-04T03:09:48.000Z | // This file is part of the Orbbec Astra SDK [https://orbbec3d.com]
// Copyright (c) 2015 Orbbec 3D
//
// 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/LI... | 41.478723 | 108 | 0.595794 | Delicode |
97545f1944b626487fa100e059cfbcfc2a64195d | 129 | cpp | C++ | dependencies/physx-4.1/source/geomutils/src/pcm/GuPCMContactSphereSphere.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/physx-4.1/source/geomutils/src/pcm/GuPCMContactSphereSphere.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/physx-4.1/source/geomutils/src/pcm/GuPCMContactSphereSphere.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:d16864b0d69d3a425328f013d6bb2842892c448c6a7cdc5077078ae6564113f8
size 3329
| 32.25 | 75 | 0.883721 | realtehcman |
975467ff92a3e30d15262dd5d6e95dc133ef5092 | 1,795 | cpp | C++ | ysu/test_common/testutil.cpp | lik2129/ysu_coin | 47e40ed5d4000fc59566099929bd08a9ae16a4c1 | [
"BSD-3-Clause"
] | null | null | null | ysu/test_common/testutil.cpp | lik2129/ysu_coin | 47e40ed5d4000fc59566099929bd08a9ae16a4c1 | [
"BSD-3-Clause"
] | null | null | null | ysu/test_common/testutil.cpp | lik2129/ysu_coin | 47e40ed5d4000fc59566099929bd08a9ae16a4c1 | [
"BSD-3-Clause"
] | null | null | null | #include <ysu/crypto_lib/random_pool.hpp>
#include <ysu/node/testing.hpp>
#include <ysu/test_common/testutil.hpp>
#include <gtest/gtest.h>
#include <cstdlib>
#include <numeric>
using namespace std::chrono_literals;
/* Convenience constants for tests which are always on the test network */
namespace
{
ysu::ledger_co... | 33.240741 | 145 | 0.732591 | lik2129 |
975504aa4082edaf5699b688a1441696cf8721dc | 24,484 | cpp | C++ | src/qt/transactiontablemodel.cpp | yinchengtsinghua/BitCoinCppChinese | 76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a | [
"MIT"
] | 13 | 2019-01-23T04:36:05.000Z | 2022-02-21T11:20:25.000Z | src/qt/transactiontablemodel.cpp | yinchengtsinghua/BitCoinCppChinese | 76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a | [
"MIT"
] | null | null | null | src/qt/transactiontablemodel.cpp | yinchengtsinghua/BitCoinCppChinese | 76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a | [
"MIT"
] | 3 | 2019-01-24T07:48:15.000Z | 2021-06-11T13:34:44.000Z |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//版权所有(c)2011-2018比特币核心开发者
//根据MIT软件许可证分发,请参见随附的
//文件复制或http://www.opensource.org/licenses/mit-license.php。
#include <qt/... | 31.592258 | 172 | 0.628247 | yinchengtsinghua |
97562bbcc8ce6931c6929edab6d5e82527117d3a | 4,330 | cpp | C++ | test/MutationTest.cpp | ATsahikian/PeProtector | 4e005ea636a5679b82c9e58e09a0de53618896c5 | [
"MIT"
] | 43 | 2016-07-30T13:50:21.000Z | 2021-06-17T22:45:00.000Z | test/MutationTest.cpp | ATsahikian/pe-protector | 4e005ea636a5679b82c9e58e09a0de53618896c5 | [
"MIT"
] | null | null | null | test/MutationTest.cpp | ATsahikian/pe-protector | 4e005ea636a5679b82c9e58e09a0de53618896c5 | [
"MIT"
] | 16 | 2016-09-08T09:10:27.000Z | 2020-06-14T00:30:59.000Z | #define BOOST_TEST_MODULE mutation test
#include <boost/test/included/unit_test.hpp>
#include "pe-protector/Mutation.h"
using namespace NPeProtector;
BOOST_AUTO_TEST_SUITE(MutationTest);
// method for testing mutateCommands with Mov instruction
BOOST_AUTO_TEST_CASE(testMutateCommandsMov) {
// create command for t... | 34.365079 | 73 | 0.748037 | ATsahikian |
9759ce0c8aec21542ab1727ba287d9376bdd192c | 606 | cpp | C++ | src/vkfw_core/gfx/vk/pipeline/ComputePipeline.cpp | dasmysh/VulkanFramework_Lib | baeaeb3158d23187f2ffa5044e32d8a5145284aa | [
"MIT"
] | null | null | null | src/vkfw_core/gfx/vk/pipeline/ComputePipeline.cpp | dasmysh/VulkanFramework_Lib | baeaeb3158d23187f2ffa5044e32d8a5145284aa | [
"MIT"
] | null | null | null | src/vkfw_core/gfx/vk/pipeline/ComputePipeline.cpp | dasmysh/VulkanFramework_Lib | baeaeb3158d23187f2ffa5044e32d8a5145284aa | [
"MIT"
] | null | null | null | /**
* @file ComputePipeline.cpp
* @author Sebastian Maisch <sebastian.maisch@googlemail.com>
* @date 2016.10.30
*
* @brief Implementation of a vulkan compute pipeline object.
*/
#include "gfx/vk/pipeline/ComputePipeline.h"
#include "gfx/vk/LogicalDevice.h"
#include "core/resources/ShaderManager.h"
namespac... | 25.25 | 100 | 0.709571 | dasmysh |
975cebfc63316babaaa98c51f6a47676e5c47673 | 169 | cpp | C++ | Generic/VSC.cpp | jbat100/VirtualSoundControl | f84ba15bba4bfce579c185e04df0e1be4f419cd7 | [
"MIT"
] | null | null | null | Generic/VSC.cpp | jbat100/VirtualSoundControl | f84ba15bba4bfce579c185e04df0e1be4f419cd7 | [
"MIT"
] | null | null | null | Generic/VSC.cpp | jbat100/VirtualSoundControl | f84ba15bba4bfce579c185e04df0e1be4f419cd7 | [
"MIT"
] | null | null | null |
#include "VSC.h"
#include <boost/date_time/posix_time/posix_time.hpp>
VSC::Time VSC::CurrentTime()
{
return boost::posix_time::microsec_clock::universal_time();
} | 18.777778 | 63 | 0.739645 | jbat100 |
975e930eb1006c6956faf01e14b61bb51426f222 | 6,452 | hpp | C++ | include/cbr_drivers/v4l2_driver.hpp | yamaha-bps/cbr_drivers | 64e971c0a7e79c414e81fe2ac32e6360adb266eb | [
"MIT"
] | null | null | null | include/cbr_drivers/v4l2_driver.hpp | yamaha-bps/cbr_drivers | 64e971c0a7e79c414e81fe2ac32e6360adb266eb | [
"MIT"
] | null | null | null | include/cbr_drivers/v4l2_driver.hpp | yamaha-bps/cbr_drivers | 64e971c0a7e79c414e81fe2ac32e6360adb266eb | [
"MIT"
] | null | null | null | // Copyright Yamaha 2021
// MIT License
// https://github.com/yamaha-bps/cbr_drivers/blob/master/LICENSE
#ifndef CBR_DRIVERS__V4L2_DRIVER_HPP_
#define CBR_DRIVERS__V4L2_DRIVER_HPP_
#include <linux/videodev2.h>
#include <atomic>
#include <functional>
#include <memory>
#include <mutex>
#include <string>
#include <thre... | 23.720588 | 94 | 0.6677 | yamaha-bps |
975ed7bf6d419192ca9632a124ac2c327956a8d4 | 3,797 | cpp | C++ | tests/ModulesFactoryTest.cpp | transdz/mesos-command-modules | 5eba42137e33a1001fd1e1de9a2086f60eebe5bb | [
"Apache-2.0"
] | 3 | 2018-05-18T19:06:27.000Z | 2020-07-07T17:17:51.000Z | tests/ModulesFactoryTest.cpp | transdz/mesos-command-modules | 5eba42137e33a1001fd1e1de9a2086f60eebe5bb | [
"Apache-2.0"
] | 15 | 2018-04-25T17:41:36.000Z | 2019-11-20T16:06:20.000Z | tests/ModulesFactoryTest.cpp | transdz/mesos-command-modules | 5eba42137e33a1001fd1e1de9a2086f60eebe5bb | [
"Apache-2.0"
] | 5 | 2018-04-03T09:12:29.000Z | 2022-02-21T11:37:04.000Z | #include "ModulesFactory.hpp"
#include <gtest/gtest.h>
#include "CommandHook.hpp"
#include "CommandIsolator.hpp"
using namespace criteo::mesos;
// ***************************************
// **************** Hook *****************
// ***************************************
TEST(ModulesFactoryTest, should_create_hook_w... | 35.485981 | 78 | 0.709244 | transdz |
975fadcee50dd19822b817bae9019daf61fc3ee1 | 788 | cc | C++ | examples/omnet_module/src/AvensClient.cc | Hyodar/pairsim-cpp | 86c1613b9bc2b0043e468abfe59fc1355619164c | [
"MIT"
] | null | null | null | examples/omnet_module/src/AvensClient.cc | Hyodar/pairsim-cpp | 86c1613b9bc2b0043e468abfe59fc1355619164c | [
"MIT"
] | null | null | null | examples/omnet_module/src/AvensClient.cc | Hyodar/pairsim-cpp | 86c1613b9bc2b0043e468abfe59fc1355619164c | [
"MIT"
] | null | null | null |
#include "./XPlaneModel.h"
#include "PairsimClient.h"
Define_Module(PairsimClient);
PairsimClient::PairsimClient() {
tickTimeout = nullptr;
}
PairsimClient::~PairsimClient() {
cancelAndDelete(tickTimeout);
}
void PairsimClient::initialize() {
tickTimeout = new cMessage("tick");
client.setServerAdd... | 24.625 | 104 | 0.694162 | Hyodar |
9765efe8e7544ab882e9e5264173796a133f3e0d | 2,114 | hpp | C++ | include/felspar/coro/cancellable.hpp | Felspar/coro | 67028cc10d7f66edc75229d4f4207cd8f6b82147 | [
"BSL-1.0"
] | 27 | 2021-02-15T00:02:12.000Z | 2022-03-24T04:34:17.000Z | include/felspar/coro/cancellable.hpp | Felspar/coro | 67028cc10d7f66edc75229d4f4207cd8f6b82147 | [
"BSL-1.0"
] | 2 | 2021-02-23T01:04:19.000Z | 2022-03-24T04:38:10.000Z | include/felspar/coro/cancellable.hpp | Felspar/coro | 67028cc10d7f66edc75229d4f4207cd8f6b82147 | [
"BSL-1.0"
] | 1 | 2022-02-20T09:41:09.000Z | 2022-02-20T09:41:09.000Z | #pragma once
#include <felspar/coro/coroutine.hpp>
namespace felspar::coro {
/**
* Wait at the suspension point until resumed from an external location.
*/
class cancellable {
coroutine_handle<> continuation = {};
bool signalled = false;
void resume_if_needed() {
... | 28.958904 | 76 | 0.487228 | Felspar |
97660134541a53225eb378fe906c3d3842bd97d8 | 9,027 | hpp | C++ | src/common/channel/codec/redis_reply.hpp | vorjdux/ardb | 8d32d36243dc2a8cbdc218f4218aa988fbcb5eae | [
"BSD-3-Clause"
] | 1,513 | 2015-01-02T17:36:20.000Z | 2022-03-21T00:10:17.000Z | src/common/channel/codec/redis_reply.hpp | vorjdux/ardb | 8d32d36243dc2a8cbdc218f4218aa988fbcb5eae | [
"BSD-3-Clause"
] | 335 | 2015-01-02T21:48:21.000Z | 2022-01-31T23:10:46.000Z | src/common/channel/codec/redis_reply.hpp | vorjdux/ardb | 8d32d36243dc2a8cbdc218f4218aa988fbcb5eae | [
"BSD-3-Clause"
] | 281 | 2015-01-08T01:23:41.000Z | 2022-03-26T12:31:41.000Z | /*
*Copyright (c) 2013-2013, yinqiwen <yinqiwen@gmail.com>
*All rights reserved.
*
*Redistribution and use in source and binary forms, with or without
*modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* ... | 32.825455 | 100 | 0.484657 | vorjdux |
976ba55f7c4e4a84dc80156378219097dd50d09b | 952 | cpp | C++ | Medium/1286_Iterator_For_Combination.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | 1 | 2021-03-15T10:02:10.000Z | 2021-03-15T10:02:10.000Z | Medium/1286_Iterator_For_Combination.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | Medium/1286_Iterator_For_Combination.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | class CombinationIterator {
private:
int len, mask;
string s;
public:
CombinationIterator(string characters, int combinationLength) : s(characters), len(combinationLength) {
mask = (1 << characters.length()) - 1;
}
string next() {
while(mask && __builtin_popcount(mask) != len) {... | 28.848485 | 107 | 0.578782 | ShehabMMohamed |
976ca940c560635702dfc2c725418346a5e9e5de | 3,196 | cxx | C++ | Examples/InSar/BaselineComputation.cxx | jmichel-otb/otb-insar | b6f8a7d80547ffdcf7c4d2359505ce68107cdb85 | [
"Apache-2.0"
] | 1 | 2022-02-16T03:48:29.000Z | 2022-02-16T03:48:29.000Z | Examples/InSar/BaselineComputation.cxx | jmichel-otb/otb-insar | b6f8a7d80547ffdcf7c4d2359505ce68107cdb85 | [
"Apache-2.0"
] | null | null | null | Examples/InSar/BaselineComputation.cxx | jmichel-otb/otb-insar | b6f8a7d80547ffdcf7c4d2359505ce68107cdb85 | [
"Apache-2.0"
] | null | null | null |
/*=========================================================================
Copyright 2011 Emmanuel Christophe
Contributed to ORFEO Toolbox under license Apache 2
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may ob... | 39.45679 | 310 | 0.731852 | jmichel-otb |
977424df8367635d711cef34f5ced409cc8ceeca | 38,699 | cpp | C++ | src/saiga/opengl/glbinding/source/gl/functions-patches.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 114 | 2017-08-13T22:37:32.000Z | 2022-03-25T12:28:39.000Z | src/saiga/opengl/glbinding/source/gl/functions-patches.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 7 | 2019-10-14T18:19:11.000Z | 2021-06-11T09:41:52.000Z | src/saiga/opengl/glbinding/source/gl/functions-patches.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 18 | 2017-08-14T01:22:05.000Z | 2022-03-12T12:35:07.000Z |
#include <glbinding/gl/functions.h>
#include <vector>
#include <glbinding/gl/functions-patches.h>
namespace gl
{
void glConvolutionParameteri(GLenum target, GLenum pname, GLenum params)
{
glConvolutionParameteri(target, pname, static_cast<GLint>(params));
}
void glConvolutionParameteriEXT(GLenum target, GLenum... | 29.86034 | 120 | 0.733404 | no33fewi |
97747fcdd08eedf08f3e44b1c0025a9411d18f4a | 9,657 | cpp | C++ | test/actionsTest/actionForm.cpp | perara-libs/FakeInput | 13d7b260634c33ced95d9e3b37780705e4036ab5 | [
"MIT"
] | 40 | 2016-11-18T06:14:47.000Z | 2022-03-16T14:36:21.000Z | test/actionsTest/actionForm.cpp | perara-libs/FakeInput | 13d7b260634c33ced95d9e3b37780705e4036ab5 | [
"MIT"
] | null | null | null | test/actionsTest/actionForm.cpp | perara-libs/FakeInput | 13d7b260634c33ced95d9e3b37780705e4036ab5 | [
"MIT"
] | 9 | 2017-01-23T01:49:41.000Z | 2020-11-05T13:09:56.000Z | /**
* This file is part of the FakeInput library (https://github.com/uiii/FakeInput)
*
* Copyright (C) 2011 by Richard Jedlicka <uiii.dev@gmail.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
* ... | 40.57563 | 122 | 0.678264 | perara-libs |
977517e8392b771d384ba89083fc3b3c82cb0e5d | 1,058 | cpp | C++ | src/Compiler/code_gen/builders/array_initializer_list_expression_builder.cpp | joakimthun/Elsa | 3be901149c1102d190dda1c7f3340417f03666c7 | [
"MIT"
] | 16 | 2015-10-12T14:24:45.000Z | 2021-07-20T01:56:04.000Z | src/Compiler/code_gen/builders/array_initializer_list_expression_builder.cpp | haifenghuang/Elsa | 3be901149c1102d190dda1c7f3340417f03666c7 | [
"MIT"
] | null | null | null | src/Compiler/code_gen/builders/array_initializer_list_expression_builder.cpp | haifenghuang/Elsa | 3be901149c1102d190dda1c7f3340417f03666c7 | [
"MIT"
] | 2 | 2017-11-12T01:39:09.000Z | 2021-07-20T01:56:09.000Z | #include "array_initializer_list_expression_builder.h"
#include "../vm_expression_visitor.h"
namespace elsa {
namespace compiler {
void ArrayInitializerListExpressionBuilder::build(VMProgram* program, VMExpressionVisitor* visitor, ArrayInitializerListExpression* expression)
{
program->emit(OpCode::iconst);
... | 27.128205 | 145 | 0.721172 | joakimthun |
977b9dcb68ea985497728997aedecb96580026b4 | 8,291 | cpp | C++ | solver.cpp | sapirp/systemPrograming-task3B | f84f4a6021537bb1e3049035a30de20640b87847 | [
"MIT"
] | null | null | null | solver.cpp | sapirp/systemPrograming-task3B | f84f4a6021537bb1e3049035a30de20640b87847 | [
"MIT"
] | null | null | null | solver.cpp | sapirp/systemPrograming-task3B | f84f4a6021537bb1e3049035a30de20640b87847 | [
"MIT"
] | null | null | null | #include<iostream>
#include "solver.hpp"
using namespace solver;
using namespace std;
double RealVariable::solveEquation(RealVariable& eq){
if(eq.a==0 && eq.b==0) throw std::exception();
if(!eq.power){
return -eq.c/eq.b;
}
else{
double SquareRoot = eq.b*eq.b - 4*eq.a*eq.c;
d... | 25.589506 | 102 | 0.624894 | sapirp |
977fc28e9f8f2c462a97235442bee7fc1b39503f | 1,523 | cpp | C++ | cppcheck/data/c_files/35.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | 2 | 2022-03-23T12:16:20.000Z | 2022-03-31T06:19:40.000Z | cppcheck/data/c_files/35.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | cppcheck/data/c_files/35.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | bool Plugin::LoadNaClModuleCommon(nacl::DescWrapper* wrapper,
NaClSubprocess* subprocess,
const Manifest* manifest,
bool should_report_uma,
ErrorInfo* error_info,
pp::CompletionCallback init_done_cb,
pp::CompletionCallback crash_cb) {
ServiceRuntime* new_service_runtime =
new ServiceRuntime(this, manifest, should_repor... | 37.146341 | 77 | 0.74327 | awsm-research |
97800b9046f54f846dc4fdb8d5c33f66a9b324f2 | 1,770 | cpp | C++ | atcoder/abc/abc_114/c.cpp | hsmtknj/programming-contest | b0d7f8a2d12fb031d3a802e6a4769cd6d2defcab | [
"MIT"
] | null | null | null | atcoder/abc/abc_114/c.cpp | hsmtknj/programming-contest | b0d7f8a2d12fb031d3a802e6a4769cd6d2defcab | [
"MIT"
] | null | null | null | atcoder/abc/abc_114/c.cpp | hsmtknj/programming-contest | b0d7f8a2d12fb031d3a802e6a4769cd6d2defcab | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
void dfs753(std::vector<int> &list, int N, std::string s);
int main()
{
int N;
int cnt = 0;
std::cin >> N;
// find number including only 7, 5, 3
std::vector<int> list;
dfs753(list, N, "");
// find answer
for (int i = 0; i < list.size(); i++)
... | 19.450549 | 64 | 0.388136 | hsmtknj |
978137d0c0dbfb68443bae856077cccbb6774a70 | 758 | hpp | C++ | Firmware/service_providers/headers/ih/sp_ibattery_service.hpp | ValentiWorkLearning/GradWork | 70bb5a629df056a559bae3694b47a2e5dc98c23b | [
"MIT"
] | 39 | 2019-10-23T12:06:16.000Z | 2022-01-26T04:28:29.000Z | Firmware/service_providers/headers/ih/sp_ibattery_service.hpp | ValentiWorkLearning/GradWork | 70bb5a629df056a559bae3694b47a2e5dc98c23b | [
"MIT"
] | 20 | 2020-03-21T20:21:46.000Z | 2021-11-19T14:34:03.000Z | Firmware/service_providers/headers/ih/sp_ibattery_service.hpp | ValentiWorkLearning/GradWork | 70bb5a629df056a559bae3694b47a2e5dc98c23b | [
"MIT"
] | 7 | 2019-10-18T09:44:10.000Z | 2021-06-11T13:05:16.000Z | #pragma once
#include "utils/SimpleSignal.hpp"
#include <chrono>
namespace ServiceProviders::BatteryService::Settings
{
using namespace std::chrono_literals;
constexpr std::chrono::seconds MeasurmentPeriod = 1s;
constexpr std::uint8_t MinBatteryLevel = 0;
constexpr std::uint8_t MaxBatteryLevel = 100;
} // namespace... | 22.294118 | 74 | 0.779683 | ValentiWorkLearning |
97833df0227057c09fa51fbf52d1ba81477f4cff | 5,366 | hpp | C++ | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/proto/spp/packer.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/proto/spp/packer.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/proto/spp/packer.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | #pragma once
#include <limits>
#include <exception>
#include <functional>
#include <type_traits>
#include <msw/config.hpp>
#include <msw/buffer.hpp>
#include <msw/noncopyable.hpp>
#include <msw/throw_runtime_error.hpp>
namespace msw {
namespace spp {
template <typename SizeType = wbyte>
struct packer
... | 30.488636 | 151 | 0.533545 | yklishevich |
9791022486471675cd10515f685393c43850bd56 | 134 | cpp | C++ | src/examples/01_module/01_hello_world/hello.cpp | acc-cosc-1337-summer-2020-classroom/acc-cosc-1337-summer-2020-justinpesz | 44adcb5fb1a307c6b5f59b4235fe83a7eb363002 | [
"MIT"
] | null | null | null | src/examples/01_module/01_hello_world/hello.cpp | acc-cosc-1337-summer-2020-classroom/acc-cosc-1337-summer-2020-justinpesz | 44adcb5fb1a307c6b5f59b4235fe83a7eb363002 | [
"MIT"
] | null | null | null | src/examples/01_module/01_hello_world/hello.cpp | acc-cosc-1337-summer-2020-classroom/acc-cosc-1337-summer-2020-justinpesz | 44adcb5fb1a307c6b5f59b4235fe83a7eb363002 | [
"MIT"
] | null | null | null | #include "hello.h"
double calculate_paycheck(double num1, double num2)
{
auto payrate = num1 / num2;
return payrate;
}
| 13.4 | 51 | 0.664179 | acc-cosc-1337-summer-2020-classroom |
97a2bce42566f20ad356ce2a39e84587bb5959a0 | 4,287 | cc | C++ | src/webpage.cc | mistydew/RSSearch | 52e597aeb495fe35f2f6069741ef19c9d0bfe2bb | [
"MIT"
] | 2 | 2019-03-13T14:47:16.000Z | 2019-07-22T09:17:43.000Z | src/webpage.cc | mistydew/RSSearch | 52e597aeb495fe35f2f6069741ef19c9d0bfe2bb | [
"MIT"
] | null | null | null | src/webpage.cc | mistydew/RSSearch | 52e597aeb495fe35f2f6069741ef19c9d0bfe2bb | [
"MIT"
] | 1 | 2019-07-22T09:17:44.000Z | 2019-07-22T09:17:44.000Z | ///
/// @file webpage.cc
/// @author mistydew(mistydew@qq.com)
/// @date 2017-12-02 15:36:06
///
#include "webpage.h"
#include "configuration.h"
#include "wordsegmentation.h"
#include <queue>
#include <sstream>
namespace md
{
WebPage::WebPage(const std::string & doc)
{
std::cout << "WebPage(const st... | 24.637931 | 128 | 0.559132 | mistydew |
97a453e833e798b0117112d4759e7c3e46460faf | 606 | cpp | C++ | test/src/algorithm/suffix.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 9 | 2020-07-04T16:46:13.000Z | 2022-01-09T21:59:31.000Z | test/src/algorithm/suffix.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | null | null | null | test/src/algorithm/suffix.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 1 | 2021-05-23T13:37:40.000Z | 2021-05-23T13:37:40.000Z | #include "test.hpp"
#include "test/numbers.hpp"
#include "jln/mp/smp/algorithm/suffix.hpp"
TEST_SUITE_BEGIN()
TEST()
{
using namespace jln::mp;
using namespace ut::ints;
test_pack2<suffix, int>();
ut::same<list<>, emp::suffix<list<>, int>>();
ut::same<list<_0, int>, emp::suffix<seq_0, int>>();
test_co... | 20.896552 | 67 | 0.612211 | jonathanpoelen |
97aa1b3005b136dd27e3bffc6af997679b487c9f | 4,727 | cpp | C++ | Assignment 3/AVL_TreeOperations.cpp | Raghav1806/Data-Structures-CSL-201- | 2e4e3c67e3ff28ac6a9e1f06fe12a2864b17d177 | [
"MIT"
] | null | null | null | Assignment 3/AVL_TreeOperations.cpp | Raghav1806/Data-Structures-CSL-201- | 2e4e3c67e3ff28ac6a9e1f06fe12a2864b17d177 | [
"MIT"
] | null | null | null | Assignment 3/AVL_TreeOperations.cpp | Raghav1806/Data-Structures-CSL-201- | 2e4e3c67e3ff28ac6a9e1f06fe12a2864b17d177 | [
"MIT"
] | null | null | null | // program for basic operations in AVL Tree
#include <iostream>
#include <cstdlib>
using namespace std;
struct Node{
int data;
struct Node *left;
struct Node *right;
int height;
}*root;
struct Node *createNewNode(int x){
struct Node *newptr = new Node;
newptr->data = x;
newptr->left = NULL;
newptr->right = NU... | 19.861345 | 65 | 0.642268 | Raghav1806 |
97ab322573a6865d8a85ff34c4ad426f4104757c | 1,381 | cpp | C++ | IOCP4Http/IOCP/PerSocketContext.cpp | Joyce-Qu/IOCPServer-Client- | b1c1a76e6bffe3b67340614ba8e36e197198302e | [
"MIT"
] | 42 | 2019-11-13T06:39:31.000Z | 2021-12-28T18:55:27.000Z | IOCP4Http/IOCP/PerSocketContext.cpp | 124327288/IOCPServer | b1c1a76e6bffe3b67340614ba8e36e197198302e | [
"MIT"
] | null | null | null | IOCP4Http/IOCP/PerSocketContext.cpp | 124327288/IOCPServer | b1c1a76e6bffe3b67340614ba8e36e197198302e | [
"MIT"
] | 31 | 2019-11-14T09:58:15.000Z | 2022-03-25T08:30:41.000Z | #include <ws2tcpip.h>
#include <assert.h>
#include "Network.h"
#include "PerIoContext.h"
#include "PerSocketContext.h"
#include <iostream>
using namespace std;
ListenContext::ListenContext(short port, const std::string& ip)
{
SecureZeroMemory(&m_addr, sizeof(SOCKADDR_IN));
m_addr.sin_family = AF_INET;
inet... | 24.660714 | 63 | 0.717596 | Joyce-Qu |
97ad3e092974dd1d58c4f30432cd174a86fdc87e | 2,333 | cpp | C++ | Engine/Renderer/Gfx/src/GfxCamera.cpp | LiangYue1981816/AresEngine | c1cf040a1dffaf2bc585ed75e70ddd9322fe3f67 | [
"BSD-2-Clause"
] | 3 | 2018-12-08T16:32:05.000Z | 2020-06-02T11:07:15.000Z | Engine/Renderer/Gfx/src/GfxCamera.cpp | LiangYue1981816/AresEngine | c1cf040a1dffaf2bc585ed75e70ddd9322fe3f67 | [
"BSD-2-Clause"
] | null | null | null | Engine/Renderer/Gfx/src/GfxCamera.cpp | LiangYue1981816/AresEngine | c1cf040a1dffaf2bc585ed75e70ddd9322fe3f67 | [
"BSD-2-Clause"
] | 1 | 2019-09-12T00:26:05.000Z | 2019-09-12T00:26:05.000Z | #include "GfxHeader.h"
CGfxCamera::CGfxCamera(void)
{
}
CGfxCamera::~CGfxCamera(void)
{
}
void CGfxCamera::SetScissor(float x, float y, float width, float height)
{
m_camera.setScissor(x, y, width, height);
}
void CGfxCamera::SetViewport(float x, float y, float width, float height)
{
m_camera.setViewport(x, y,... | 20.646018 | 140 | 0.753536 | LiangYue1981816 |
97adcb71b727d993f3f48ec0c431b358a65b8a0a | 1,349 | hpp | C++ | Yannq/Basis/Basis.hpp | cecri/yannq | b78c1f86a255059f06b34dd5e538449e7261d0ee | [
"BSD-3-Clause"
] | null | null | null | Yannq/Basis/Basis.hpp | cecri/yannq | b78c1f86a255059f06b34dd5e538449e7261d0ee | [
"BSD-3-Clause"
] | null | null | null | Yannq/Basis/Basis.hpp | cecri/yannq | b78c1f86a255059f06b34dd5e538449e7261d0ee | [
"BSD-3-Clause"
] | null | null | null | #pragma once
//! \defgroup Basis Basis for a spin-1/2 system
#include "BasisJz.hpp"
#include "BasisFull.hpp"
#include <iterator>
#include <type_traits>
#include <tbb/concurrent_vector.h>
#include <tbb/parallel_for_each.h>
#include <tbb/parallel_sort.h>
/**
* Enable if Iterable is not random access iterable
*/
templa... | 28.702128 | 107 | 0.75315 | cecri |
97af8f553fd0ca2d14f6905218236556ec82f11a | 5,132 | tcc | C++ | include/lvr2/util/ClusterBiMap.tcc | uos/lvr | 9bb03a30441b027c39db967318877e03725112d5 | [
"BSD-3-Clause"
] | 38 | 2019-06-19T15:10:35.000Z | 2022-02-16T03:08:24.000Z | include/lvr2/util/ClusterBiMap.tcc | jtpils/lvr2 | b1010dfcc930d9ae0ff5cfa5c88d0810d65368ce | [
"BSD-3-Clause"
] | 9 | 2019-06-19T16:19:51.000Z | 2021-09-17T08:31:25.000Z | include/lvr2/util/ClusterBiMap.tcc | jtpils/lvr2 | b1010dfcc930d9ae0ff5cfa5c88d0810d65368ce | [
"BSD-3-Clause"
] | 13 | 2019-04-16T11:50:32.000Z | 2020-11-26T07:47:44.000Z | /**
* Copyright (c) 2018, University Osnabrück
* 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 li... | 27.891304 | 99 | 0.75039 | uos |
b632914d2592fde88b55410d451e1a343d27e425 | 8,097 | cpp | C++ | sdl1/VisualBoyAdvance/src/win32/AccelEditor.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/VisualBoyAdvance/src/win32/AccelEditor.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/VisualBoyAdvance/src/win32/AccelEditor.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
// Copyright (C) 1999-2003 Forgotten
// Copyright (C) 2004 Forgotten and the VBA development team
// 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 F... | 27.824742 | 85 | 0.681116 | pdpdds |
b63479c43fe8c989fc03537f6a2975891c2d8806 | 124 | hpp | C++ | include/litmus/details/verbosity.hpp | JessyDL/litmus | 156814116d83ee7884c76adda327bf7a9ef0cb14 | [
"MIT"
] | 1 | 2021-04-03T00:18:45.000Z | 2021-04-03T00:18:45.000Z | include/litmus/details/verbosity.hpp | JessyDL/litmus | 156814116d83ee7884c76adda327bf7a9ef0cb14 | [
"MIT"
] | null | null | null | include/litmus/details/verbosity.hpp | JessyDL/litmus | 156814116d83ee7884c76adda327bf7a9ef0cb14 | [
"MIT"
] | null | null | null | #pragma once
namespace litmus
{
enum class verbosity_t
{
NONE = 0,
COMPACT = 1,
NORMAL = 2,
DETAILED = 3
};
} | 10.333333 | 23 | 0.596774 | JessyDL |
b63514f9432f7c5ca3f8514c9e50581e878cb984 | 1,005 | hpp | C++ | DifferentialEvolution/DifferentialEvolution.hpp | nottu/LinearSVM | 7f5ce05b0691e03a12377dd1f177768f59a91e30 | [
"MIT"
] | null | null | null | DifferentialEvolution/DifferentialEvolution.hpp | nottu/LinearSVM | 7f5ce05b0691e03a12377dd1f177768f59a91e30 | [
"MIT"
] | null | null | null | DifferentialEvolution/DifferentialEvolution.hpp | nottu/LinearSVM | 7f5ce05b0691e03a12377dd1f177768f59a91e30 | [
"MIT"
] | null | null | null | //
// Created by Javier Peralta on 5/31/18.
//
#ifndef SVM_DIFFERENTIALEVOLUTION_HPP
#define SVM_DIFFERENTIALEVOLUTION_HPP
#include "../Data.hpp"
#include "../OptimizationProblem.hpp"
class DifferentialEvolution {
public:
friend class Individual;
class Individual;
private:
unsigned max_evals;
unsigned num_va... | 22.840909 | 167 | 0.759204 | nottu |
b637fe4d30b266db56418882aa4a463fc1d8b7cc | 1,704 | hpp | C++ | actan_tools/core/sensors.hpp | oliver-peoples/ACTAN | 5ed78c8e88232dab92fb934d0f85c007d4e98596 | [
"Unlicense"
] | null | null | null | actan_tools/core/sensors.hpp | oliver-peoples/ACTAN | 5ed78c8e88232dab92fb934d0f85c007d4e98596 | [
"Unlicense"
] | null | null | null | actan_tools/core/sensors.hpp | oliver-peoples/ACTAN | 5ed78c8e88232dab92fb934d0f85c007d4e98596 | [
"Unlicense"
] | null | null | null | #ifndef ACTAN_TOOLS_SENSORS_HPP
#define ACTAN_TOOLS_SENSORS_HPP
#if defined(__float128)
#define depth_level __float128
#elif defined(_Float128)
#define depth_level _Float128
#else
#define depth_level long double
#endif
#include <hmath/core.hpp>
namespace actan
{
namespace sensor
{
class Sensor
... | 24.342857 | 98 | 0.619131 | oliver-peoples |
b64307fb369aa01cc588abc7842c0b68c5383a69 | 61,868 | cpp | C++ | src/modules/rppi_filter_operations.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 26 | 2019-09-04T17:48:41.000Z | 2022-02-23T17:04:24.000Z | src/modules/rppi_filter_operations.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 57 | 2019-09-06T21:37:34.000Z | 2022-03-09T02:13:46.000Z | src/modules/rppi_filter_operations.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 24 | 2019-09-04T23:12:07.000Z | 2022-03-30T02:06:22.000Z | #include <rppi_filter_operations.h>
#include <rppdefs.h>
#include "rppi_validate.hpp"
#ifdef HIP_COMPILE
#include <hip/rpp_hip_common.hpp>
#include "hip/hip_declarations.hpp"
#elif defined(OCL_COMPILE)
#include <cl/rpp_cl_common.hpp>
#include "cl/cl_declarations.hpp"
#endif //backend
#include <stdio.h>
#include <iost... | 37.816626 | 101 | 0.457749 | shobana-mcw |
b6440496a92b62f842701964c833da19c16803e3 | 906 | cpp | C++ | src/parser/transform/statement/transform_transaction.cpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-04-22T05:41:54.000Z | 2021-04-22T05:41:54.000Z | src/parser/transform/statement/transform_transaction.cpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | null | null | null | src/parser/transform/statement/transform_transaction.cpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-12-12T10:24:57.000Z | 2021-12-12T10:24:57.000Z | #include "guinsoodb/parser/statement/transaction_statement.hpp"
#include "guinsoodb/parser/transformer.hpp"
namespace guinsoodb {
unique_ptr<TransactionStatement> Transformer::TransformTransaction(guinsoodb_libpgquery::PGNode *node) {
auto stmt = reinterpret_cast<guinsoodb_libpgquery::PGTransactionStmt *>(node);
D_... | 39.391304 | 104 | 0.825607 | GuinsooLab |
b6474bdf4746d833e16134adc8dfd774567d6580 | 4,735 | cpp | C++ | tools/extras/irstlm/src/doc.cpp | scscscscscsc/kaldi-trunk | aa9a8143e0fee12d85562ccc1d06e0e99f630029 | [
"Apache-2.0"
] | 4 | 2016-06-05T14:19:32.000Z | 2016-06-07T09:21:10.000Z | tools/extras/irstlm/src/doc.cpp | MistSC/kaldi-trunk | aa9a8143e0fee12d85562ccc1d06e0e99f630029 | [
"Apache-2.0"
] | null | null | null | tools/extras/irstlm/src/doc.cpp | MistSC/kaldi-trunk | aa9a8143e0fee12d85562ccc1d06e0e99f630029 | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
IrstLM: IRST Language Model Toolkit, compile LM
Copyright (C) 2006 Marcello Federico, ITC-irst Trento, Italy
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Lice... | 19.729167 | 79 | 0.530729 | scscscscscsc |
b64993be7464496ca9e61403286e83785c0c32b5 | 8,796 | cpp | C++ | source/variables/Variant.cpp | alijenabi/RelationBasedSoftware | f26f163d8d3e74e134a33512ae49fb24edb8b3b7 | [
"MIT"
] | 2 | 2021-08-06T19:40:34.000Z | 2021-09-06T23:07:47.000Z | source/variables/Variant.cpp | alijenabi/RelationBasedSoftware | f26f163d8d3e74e134a33512ae49fb24edb8b3b7 | [
"MIT"
] | null | null | null | source/variables/Variant.cpp | alijenabi/RelationBasedSoftware | f26f163d8d3e74e134a33512ae49fb24edb8b3b7 | [
"MIT"
] | null | null | null | //
// Variant.cpp
// Relation-Based Simulator (RBS)
//
// Created by Ali Jenabidehkordi on 19.08.18.
// Copyright © 2018 Ali Jenabidehkordi. All rights reserved.
//
#include "Variant.h"
namespace rbs::variables {
Variant::Variant()
: p_id{ TypeID::None }
, p_value{}
{
}
Variant::Variant(const Variant &o... | 52.357143 | 135 | 0.593565 | alijenabi |
b649f164b0f698ac856b600e19c2c775a25ace8b | 2,575 | cpp | C++ | imctrans/cpp/assets/tests/test_InlineMessage.cpp | paulosousadias/imctrans | cfa2a12ea577d9aa214c2bbb23f3561e8b50ee8f | [
"Apache-2.0"
] | null | null | null | imctrans/cpp/assets/tests/test_InlineMessage.cpp | paulosousadias/imctrans | cfa2a12ea577d9aa214c2bbb23f3561e8b50ee8f | [
"Apache-2.0"
] | 1 | 2019-05-23T18:36:57.000Z | 2019-05-23T18:58:32.000Z | imctrans/cpp/assets/tests/test_InlineMessage.cpp | paulosousadias/imctrans | cfa2a12ea577d9aa214c2bbb23f3561e8b50ee8f | [
"Apache-2.0"
] | 6 | 2018-11-22T18:10:58.000Z | 2020-06-26T16:55:35.000Z | //***************************************************************************
// Copyright 2017 OceanScan - Marine Systems & Technology, Lda. *
//***************************************************************************
// Licensed under the Apache License, Version 2.0 (the "License"); *
// you m... | 32.1875 | 77 | 0.528155 | paulosousadias |
b64a0ca2541b8c7a1eb67199fe1d100f536c2f4d | 10,723 | cpp | C++ | ToolKit/ReportControl/XTPReportColumns.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 2 | 2018-03-30T06:40:08.000Z | 2022-02-23T12:40:13.000Z | ToolKit/ReportControl/XTPReportColumns.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | null | null | null | ToolKit/ReportControl/XTPReportColumns.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 1 | 2020-08-11T05:48:02.000Z | 2020-08-11T05:48:02.000Z | // XTPReportColumns.cpp : implementation of the CXTPReportColumns class.
//
// This file is a part of the XTREME REPORTCONTROL MFC class library.
// (c)1998-2011 Codejock Software, All Rights Reserved.
//
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
// RE-DISTRIBUTED BY ANY MEANS WHATSOEVER... | 22.246888 | 101 | 0.69654 | 11Zero |
b64aa8d9436b0552bbce48e8c47f37dbf5e429c0 | 1,248 | cpp | C++ | depth_breadth_search/leetcode_dfs/366_find_leaves_of_bianry_tree.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | 1 | 2020-10-12T19:18:19.000Z | 2020-10-12T19:18:19.000Z | depth_breadth_search/leetcode_dfs/366_find_leaves_of_bianry_tree.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | null | null | null | depth_breadth_search/leetcode_dfs/366_find_leaves_of_bianry_tree.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | 1 | 2020-10-12T19:18:04.000Z | 2020-10-12T19:18:04.000Z | //
// 366_find_leaves_of_bianry_tree.cpp
// leetcode_dfs
//
// Created by Hadley on 26.08.20.
// Copyright © 2020 Hadley. All rights reserved.
//
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
#include ... | 22.285714 | 91 | 0.634615 | Hadleyhzy |
b64be8ad8172ca61b4bd07a4e0923083f1e615f6 | 601 | cpp | C++ | Game/Source/Entity.cpp | Paideieitor/PlatformerGame | e00602171807c694b0c5f4afac50157ce9cd23b1 | [
"MIT"
] | null | null | null | Game/Source/Entity.cpp | Paideieitor/PlatformerGame | e00602171807c694b0c5f4afac50157ce9cd23b1 | [
"MIT"
] | null | null | null | Game/Source/Entity.cpp | Paideieitor/PlatformerGame | e00602171807c694b0c5f4afac50157ce9cd23b1 | [
"MIT"
] | null | null | null | #include "Collisions.h"
#include "Entity.h"
Entity::Entity(EntityType type, fPoint position, bool flip, Player* parent)
{
this->type = type;
this->position = position;
this->flip = flip;
this->parent = parent;
toDelete = false;
toRemove = false;
flip = false;
}
Entity::~Entity()
{
}
bool Entity::Update(float... | 14.309524 | 75 | 0.678869 | Paideieitor |
b6551c3c68b0bc35a21af4fd16c77fa72cfc1c35 | 1,413 | hpp | C++ | src/snabl/bset.hpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 22 | 2018-08-27T15:28:10.000Z | 2022-02-13T08:18:00.000Z | src/snabl/bset.hpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 3 | 2018-08-27T01:44:51.000Z | 2020-06-28T20:07:42.000Z | src/snabl/bset.hpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 2 | 2018-08-26T18:55:47.000Z | 2018-09-29T01:04:36.000Z | #ifndef SNABL_BSET_HPP
#define SNABL_BSET_HPP
#include "snabl/cmp.hpp"
#include "snabl/std.hpp"
#include "snabl/types.hpp"
namespace snabl {
template <typename KeyT, typename ValT>
struct BSet {
using Vals = vector<ValT>;
Vals vals;
KeyT ValT::*key_ptr;
BSet(KeyT ValT::*key_ptr): key_ptr(key_... | 22.428571 | 69 | 0.530078 | codr4life |
b65aed50316ad423ff5b0889dbc0247d96bbee14 | 865 | cpp | C++ | src/lfilesaver/server/util/DefaultStatsProvider.cpp | yamadapc/filesaver | 9665cb30615530fb4aeeb775efb92092c7a51eb1 | [
"MIT"
] | 28 | 2019-09-09T08:13:25.000Z | 2022-02-09T06:20:31.000Z | src/lfilesaver/server/util/DefaultStatsProvider.cpp | yamadapc/filesaver | 9665cb30615530fb4aeeb775efb92092c7a51eb1 | [
"MIT"
] | 2 | 2020-05-26T02:06:42.000Z | 2021-04-08T08:16:03.000Z | src/lfilesaver/server/util/DefaultStatsProvider.cpp | yamadapc/filesaver | 9665cb30615530fb4aeeb775efb92092c7a51eb1 | [
"MIT"
] | 1 | 2020-06-09T23:40:04.000Z | 2020-06-09T23:40:04.000Z | //
// Created by Pedro Tacla Yamada on 14/7/20.
//
#include "DefaultStatsProvider.h"
namespace filesaver::server
{
static const double MILLISECONDS_IN_SECOND = 1000.;
DefaultStatsProvider::DefaultStatsProvider (services::stats::ThroughputTracker* throughputTracker,
servi... | 30.892857 | 112 | 0.738728 | yamadapc |
b65b8a8657c4a8f38124f9ad71297f1732e7f9ad | 396 | cpp | C++ | source/ShaderAST/Expr/ExprModulo.cpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | 148 | 2018-10-11T16:51:37.000Z | 2022-03-26T13:55:08.000Z | source/ShaderAST/Expr/ExprModulo.cpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | 30 | 2019-11-30T11:43:07.000Z | 2022-01-25T21:09:47.000Z | source/ShaderAST/Expr/ExprModulo.cpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | 8 | 2020-04-17T13:18:30.000Z | 2021-11-20T06:24:44.000Z | /*
See LICENSE file in root folder
*/
#include "ShaderAST/Expr/ExprModulo.hpp"
#include "ShaderAST/Expr/ExprVisitor.hpp"
namespace ast::expr
{
Modulo::Modulo( type::TypePtr type
, ExprPtr lhs
, ExprPtr rhs )
: Binary{ std::move( type )
, std::move( lhs )
, std::move( rhs )
, Kind::eModulo }
{
}
vo... | 15.84 | 41 | 0.643939 | Praetonus |
b65c5929e2e4a41de1bc85f2e30e137110bcc2d8 | 1,487 | cpp | C++ | cpp/app.cpp | yorung/dx12playground | 760bbd9b3dedf26a4c00219628c58721a70d4446 | [
"MIT"
] | 2 | 2016-06-16T14:00:40.000Z | 2020-04-26T12:11:34.000Z | cpp/app.cpp | yorung/dx12playground | 760bbd9b3dedf26a4c00219628c58721a70d4446 | [
"MIT"
] | null | null | null | cpp/app.cpp | yorung/dx12playground | 760bbd9b3dedf26a4c00219628c58721a70d4446 | [
"MIT"
] | null | null | null | #include "stdafx.h"
App app;
App::App()
{
}
void App::Draw()
{
const IVec2 scrSize = systemMisc.GetScreenSize();
constexpr float f = 1000;
constexpr float n = 1;
const float aspect = (float)scrSize.x / scrSize.y;
Mat proj = perspectiveLH(45.0f * (float)M_PI / 180.0f, aspect, n, f);
matrixMan.Set... | 23.234375 | 135 | 0.677875 | yorung |
b65ddc6dec39b505392574d96c345095e856a9ef | 6,408 | cpp | C++ | src/physics/operators/nonlinear_solid_operators.cpp | joshessman-llnl/serac | 1365a8f9ca372f0c50008b4b8f5f718955e4b80c | [
"BSD-3-Clause"
] | null | null | null | src/physics/operators/nonlinear_solid_operators.cpp | joshessman-llnl/serac | 1365a8f9ca372f0c50008b4b8f5f718955e4b80c | [
"BSD-3-Clause"
] | null | null | null | src/physics/operators/nonlinear_solid_operators.cpp | joshessman-llnl/serac | 1365a8f9ca372f0c50008b4b8f5f718955e4b80c | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2019, Lawrence Livermore National Security, LLC and
// other Serac Project Developers. See the top-level LICENSE file for
// details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#include "physics/operators/nonlinear_solid_operators.hpp"
#include "infrastructure/logger.hpp"
#include "numerics/expr_t... | 38.142857 | 116 | 0.637953 | joshessman-llnl |
b662f049c445959516d9d4dbcce5744975b15c84 | 2,387 | cpp | C++ | Source/Editctrl/window.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | 2 | 2022-02-11T11:59:44.000Z | 2022-02-16T20:33:25.000Z | Source/Editctrl/window.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | null | null | null | Source/Editctrl/window.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | null | null | null | #include "all.h"
#include "ectrl_i.h"
void DrawLineColumn(int x, int y);
//----------------------------
C_window::C_window():
scroll_x(0),
scroll_y(0),
overwrite(false),
hwnd(NULL),
redraw(true)
{
undo[0].Add(C_undo_element::MARK);
}
//----------------------------
void C_window::Activate(){
... | 22.308411 | 91 | 0.51571 | mice777 |
b668260f577763c195ed675b033a0508f6143c98 | 2,095 | hpp | C++ | ODFAEG/include/odfaeg/Graphics/particleSystemUpdater.hpp | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | null | null | null | ODFAEG/include/odfaeg/Graphics/particleSystemUpdater.hpp | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | 1 | 2020-02-14T14:19:44.000Z | 2020-12-04T17:39:17.000Z | ODFAEG/include/odfaeg/Graphics/particleSystemUpdater.hpp | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | 2 | 2021-05-23T13:45:28.000Z | 2021-07-24T13:36:13.000Z |
#ifndef ODFAEG_PARTICLES_UPDATER_HPP
#define ODFAEG_PARTICLES_UPDATER_HPP
#include "../Physics/particuleSystem.h"
#include "../Graphics/world.h"
#include "export.hpp"
/**
*\namespace odfaeg
* the namespace of the Opensource Development Framework Adapted for Every Games.
*/
namespace odfaeg {
namespace graphic {
... | 35.508475 | 122 | 0.521718 | Mechap |
b6688abaa85db28771b30ef347123aa7d8eef7b2 | 589 | cpp | C++ | Chapter07/Source_Code/fifth.cpp | ngdzu/CPP-Reactive-Programming | e1a19feb40be086d47227587b8ed3d509b7518ca | [
"MIT"
] | 98 | 2018-07-03T08:55:31.000Z | 2022-03-21T22:16:58.000Z | Chapter07/Source_Code/fifth.cpp | ngdzu/CPP-Reactive-Programming | e1a19feb40be086d47227587b8ed3d509b7518ca | [
"MIT"
] | 1 | 2020-11-30T10:38:58.000Z | 2020-12-15T06:56:20.000Z | Chapter07/Source_Code/fifth.cpp | ngdzu/CPP-Reactive-Programming | e1a19feb40be086d47227587b8ed3d509b7518ca | [
"MIT"
] | 54 | 2018-07-06T02:09:27.000Z | 2021-11-10T08:42:50.000Z | #include "rxcpp/rx.hpp"
#include "rxcpp/rx-test.hpp"
#include <iostream>
#include <array>
int main() {
auto values = rxcpp::observable<>::range(1); // infinite (until overflow) stream of integers
auto s1 = values.
take(3).
map([](int prime) { return std::make_tuple("1:", prime);});
auto ... | 19.633333 | 93 | 0.521222 | ngdzu |
b66c3580439d08af4319f8072336ef728b6ec2b6 | 7,276 | cpp | C++ | gme/src/v20180711/model/CreateAppRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | gme/src/v20180711/model/CreateAppRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | gme/src/v20180711/model/CreateAppRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... | 27.456604 | 104 | 0.708356 | suluner |
b66fd0f8780dc04af689585987afb0d94d5036cc | 421 | cpp | C++ | docker/cytnx/src/utils/is.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 11 | 2020-04-14T15:45:42.000Z | 2022-03-31T14:37:03.000Z | docker/cytnx/src/utils/is.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 38 | 2019-08-02T15:15:51.000Z | 2022-03-04T19:07:02.000Z | docker/cytnx/src/utils/is.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 7 | 2019-07-17T07:50:55.000Z | 2021-07-03T06:44:52.000Z | #include "utils/is.hpp"
namespace cytnx{
bool is(const Tensor &L, const Tensor &R){
return (L._impl == R._impl);
}
bool is(const Storage &L, const Storage &R){
return (L._impl == R._impl);
}
bool is(const Bond &L, const Bond &R){
return (L._impl == R._impl);
}... | 17.541667 | 50 | 0.534442 | j9263178 |
b6743871ee08c8b53fa206d97ec911fbcce81f84 | 307 | cpp | C++ | kmerInput/Statistic.cpp | Lw-Cui/kmer-exp | cc9df6339c6a07d63483e6a6dd8f2c13e9865b0e | [
"MIT"
] | null | null | null | kmerInput/Statistic.cpp | Lw-Cui/kmer-exp | cc9df6339c6a07d63483e6a6dd8f2c13e9865b0e | [
"MIT"
] | null | null | null | kmerInput/Statistic.cpp | Lw-Cui/kmer-exp | cc9df6339c6a07d63483e6a6dd8f2c13e9865b0e | [
"MIT"
] | null | null | null | #include <cstring>
#include <map>
#include <cstdio>
using namespace std;
int main() {
map<int, int> count;
int num;
while (scanf("%*s%d", &num) != EOF)
count[num]++;
for (map<int, int>::iterator p = count.begin();
p != count.end(); p++)
printf("%5d: %10d\n", p->first, p->second);
return 0;
}
| 18.058824 | 48 | 0.586319 | Lw-Cui |
b67541f04f69aeaa74a34629e928bf51df5a3ca3 | 273 | hpp | C++ | include/cpu/cpu.hpp | anthony-benavente/chip8emu | 5ffe96ac252d15bfe0242fc6e1a550844510b31b | [
"MIT"
] | null | null | null | include/cpu/cpu.hpp | anthony-benavente/chip8emu | 5ffe96ac252d15bfe0242fc6e1a550844510b31b | [
"MIT"
] | null | null | null | include/cpu/cpu.hpp | anthony-benavente/chip8emu | 5ffe96ac252d15bfe0242fc6e1a550844510b31b | [
"MIT"
] | null | null | null | #ifndef CPU_H
#define CPU_H
#include "program/program.hpp"
class Cpu {
public:
bool drawFlag;
Cpu() : drawFlag(false) {}
virtual void emulateCycle() = 0;
virtual unsigned char getPixel(int x, int y) = 0;
virtual void loadProgram(program_t *program) = 0;
};
#endif
| 16.058824 | 50 | 0.703297 | anthony-benavente |
b679acd2c820753b72efd9f2494a17c0b9797a10 | 250 | cpp | C++ | Game/Client/WXClient/Network/PacketHandler/CGAskActiveTimeUpdateHandler.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Client/WXClient/Network/PacketHandler/CGAskActiveTimeUpdateHandler.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Client/WXClient/Network/PacketHandler/CGAskActiveTimeUpdateHandler.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "StdAfx.h"
#include "CGAskActiveTimeUpdate.h"
uint CGAskActiveTimeUpdateHandler::Execute( CGAskActiveTimeUpdate* pPacket, Player* pPlayer )
{
__ENTER_FUNCTION
return PACKET_EXE_CONTINUE ;
__LEAVE_FUNCTION
return PACKET_EXE_ERROR ;
}
| 17.857143 | 93 | 0.808 | hackerlank |
b67a171f12c52a9659fcb57e4c506286c0195d73 | 1,337 | cpp | C++ | Source/KPokemon_DX11/KSpriteEffect.cpp | jiwonchoidd/PokemonDP_DX11 | 828ef195c7c66b4c5489944e930acee96940c816 | [
"BSD-2-Clause"
] | 1 | 2022-03-25T08:55:53.000Z | 2022-03-25T08:55:53.000Z | Source/KPokemon_DX11/KSpriteEffect.cpp | jiwonchoidd/PokemonDP_DX11 | 828ef195c7c66b4c5489944e930acee96940c816 | [
"BSD-2-Clause"
] | null | null | null | Source/KPokemon_DX11/KSpriteEffect.cpp | jiwonchoidd/PokemonDP_DX11 | 828ef195c7c66b4c5489944e930acee96940c816 | [
"BSD-2-Clause"
] | null | null | null | #include "KSpriteEffect.h"
bool KSpriteEffect::Init(ID3D11DeviceContext* context, std::wstring vs, std::wstring ps, std::wstring tex, std::wstring mask)
{
m_pContext = context;
m_Current_Index=0;
m_Timer=0.0f;
m_bEnd = false;
m_Color = { 1,1,1,1 };
m_cbData.vLightDir = m_Color;
K2DAsset::CreateObject_Mask(vs,ps,... | 19.955224 | 125 | 0.694091 | jiwonchoidd |
b67d83c5ba68070fd07f4d78be656de6227e3c02 | 1,291 | cpp | C++ | src/main/cpp/lemon/test/runner.cpp | lemonkit/lemon | ad34410586659fc650898b60d7e168797a3d9e5b | [
"MIT"
] | 1 | 2018-01-12T05:13:58.000Z | 2018-01-12T05:13:58.000Z | src/main/cpp/lemon/test/runner.cpp | lemonkit/lemon | ad34410586659fc650898b60d7e168797a3d9e5b | [
"MIT"
] | null | null | null | src/main/cpp/lemon/test/runner.cpp | lemonkit/lemon | ad34410586659fc650898b60d7e168797a3d9e5b | [
"MIT"
] | null | null | null | #include <iostream>
#include <lemon/log/log.hpp>
#include <lemon/test/unit.hpp>
#include <lemon/test/macro.hpp>
#include <lemon/test/runner.hpp>
namespace lemon {namespace test{
runner& runner::instance()
{
static runner global;
return global;
}
void runner::run() {
runne... | 23.053571 | 144 | 0.490318 | lemonkit |
b67ea9453867e82b38a780ba2df51899ae01d5ea | 10,108 | hpp | C++ | include/GlobalNamespace/BeatmapDataSO_-GetBeatmapDataAsync-d__2.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/BeatmapDataSO_-GetBeatmapDataAsync-d__2.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/BeatmapDataSO_-GetBeatmapDataAsync-d__2.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: BeatmapDataSO
#include "GlobalNames... | 58.767442 | 1,111 | 0.757618 | RedBrumbler |
b68060e67087fb74d7b0d88cd62ff5cce855465a | 1,237 | hpp | C++ | src/graphics/TypeNames.hpp | Sam-Belliveau/MKS66-Graphics-Library | 4ccf04f977a15007e32bdb5a238704eaaff0c895 | [
"MIT"
] | null | null | null | src/graphics/TypeNames.hpp | Sam-Belliveau/MKS66-Graphics-Library | 4ccf04f977a15007e32bdb5a238704eaaff0c895 | [
"MIT"
] | null | null | null | src/graphics/TypeNames.hpp | Sam-Belliveau/MKS66-Graphics-Library | 4ccf04f977a15007e32bdb5a238704eaaff0c895 | [
"MIT"
] | null | null | null | #pragma once
/**
* Copyright (c) 2022 Sam Belliveau
*
* 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, modi... | 26.891304 | 81 | 0.689572 | Sam-Belliveau |
b683049cc1444a2f3f1fc814d6788c56abee532f | 32,602 | cpp | C++ | src/shape.cpp | yenyi/kicadPcb | f624156f59829554cb9fbf9b0438e7b84a42ee94 | [
"BSD-3-Clause"
] | 6 | 2020-02-08T07:29:42.000Z | 2020-11-25T03:09:13.000Z | src/shape.cpp | yenyi/kicadPcb | f624156f59829554cb9fbf9b0438e7b84a42ee94 | [
"BSD-3-Clause"
] | 2 | 2019-12-23T17:19:41.000Z | 2020-01-09T00:10:50.000Z | src/shape.cpp | yenyi/kicadPcb | f624156f59829554cb9fbf9b0438e7b84a42ee94 | [
"BSD-3-Clause"
] | 5 | 2020-10-16T23:59:42.000Z | 2021-04-28T05:49:22.000Z | #include "shape.h"
points_2d rotateShapeCoordsByAngles(const points_2d &shape, double instAngle, double padAngle)
{
auto cords = points_2d{};
auto rads = fmod((instAngle + padAngle) * -M_PI / 180, 2 * M_PI);
auto s = sin(rads);
auto c = cos(rads);
for (auto &p : shape)
{
auto px = doubl... | 33.995829 | 171 | 0.518833 | yenyi |
b687f2f402173eb1b7d32c6a6085eb022306d9a1 | 17,558 | cc | C++ | src/driver/parser.cc | cforall/resolv-proto | 4eb7c0b9f4e75b940205e808e14fa57f13541246 | [
"BSD-3-Clause"
] | 2 | 2019-05-13T10:26:02.000Z | 2019-05-13T15:04:42.000Z | src/driver/parser.cc | cforall/resolv-proto | 4eb7c0b9f4e75b940205e808e14fa57f13541246 | [
"BSD-3-Clause"
] | null | null | null | src/driver/parser.cc | cforall/resolv-proto | 4eb7c0b9f4e75b940205e808e14fa57f13541246 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2015 University of Waterloo
//
// The contents of this file are covered under the licence agreement in
// the file "LICENCE" distributed with this repository.
#include "parser.h"
#include <cstdlib>
#include <iostream>
#include <string>
#include "args.h"
#include "parser_common.h"
#include "ast/dec... | 28.319355 | 99 | 0.650644 | cforall |
b692bd9f43bf79f36ad69388ce178bf388749810 | 873 | cpp | C++ | examples/priority_queue.cpp | miachm/STL-Threadsafe | 08b2d9e7f487121088a817071d1d42b2736996e9 | [
"Apache-2.0"
] | 9 | 2017-07-25T23:22:54.000Z | 2021-07-06T06:24:46.000Z | examples/priority_queue.cpp | miachm/STL-Threadsafe | 08b2d9e7f487121088a817071d1d42b2736996e9 | [
"Apache-2.0"
] | null | null | null | examples/priority_queue.cpp | miachm/STL-Threadsafe | 08b2d9e7f487121088a817071d1d42b2736996e9 | [
"Apache-2.0"
] | 3 | 2020-12-11T03:02:35.000Z | 2021-08-22T17:01:28.000Z | #include <iostream>
#include <thread>
#include "priority_queue-threadsafe.hpp"
int main(){
std::threadsafe::priority_queue<int> bids;
std::thread producer([&]{
int randomBids[20] = {3,19,11,2,4,12,1,20,14,5,18,10,15,8,17,6,16,7,9,13};
for (int i = 0;i < 20;i++){
bids.push(randomBids[i]);
std::this_thread:... | 22.973684 | 76 | 0.610538 | miachm |
b699379d09377d60e623f06ea2d6dbdfac24156e | 2,339 | cpp | C++ | day2/main.cpp | fardragon/AdventOfCode2021 | 16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea | [
"MIT"
] | 1 | 2021-12-02T14:11:37.000Z | 2021-12-02T14:11:37.000Z | day2/main.cpp | fardragon/AdventOfCode2021 | 16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea | [
"MIT"
] | null | null | null | day2/main.cpp | fardragon/AdventOfCode2021 | 16f31bcf2e7ff3a1c943e6dfb8b9e791f029dbea | [
"MIT"
] | null | null | null |
#include "shared.hpp"
#include <iostream>
#include <numeric>
#include <chrono>
std::uint32_t SolvePart1(const std::vector<std::pair<std::string, std::uint16_t>> &input);
std::uint32_t SolvePart2(const std::vector<std::pair<std::string, std::uint16_t>> &input);
//std::uint16_t SolvePart2(const std::vector<uint16_t> &... | 22.066038 | 111 | 0.626764 | fardragon |
b6a26a510f6b78583d7ef149fb455db65ac8d300 | 458 | hpp | C++ | tools/stopwatch.hpp | matumoto1234/library | a2c80516a8afe5876696c139fe0e837d8a204f69 | [
"Unlicense"
] | 2 | 2021-06-24T11:21:08.000Z | 2022-03-15T05:57:25.000Z | tools/stopwatch.hpp | matumoto1234/library | a2c80516a8afe5876696c139fe0e837d8a204f69 | [
"Unlicense"
] | 102 | 2021-10-30T21:30:00.000Z | 2022-03-26T18:39:47.000Z | tools/stopwatch.hpp | matumoto1234/library | a2c80516a8afe5876696c139fe0e837d8a204f69 | [
"Unlicense"
] | null | null | null | #pragma once
#include "./base.hpp"
#include <chrono>
namespace tools {
struct Stopwatch {
chrono::high_resolution_clock::time_point start;
Stopwatch() { restart(); }
void restart() { start = chrono::high_resolution_clock::now(); }
chrono::milliseconds::rep elapsed() {
auto end = chrono::hi... | 22.9 | 78 | 0.665939 | matumoto1234 |
b6a95c64cfaa3b62665f75129a8ddd8523dfcb24 | 1,402 | hpp | C++ | src/ivorium_graphics/Rendering/Shader.hpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | 3 | 2021-02-26T02:59:09.000Z | 2022-02-08T16:44:21.000Z | src/ivorium_graphics/Rendering/Shader.hpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | null | null | null | src/ivorium_graphics/Rendering/Shader.hpp | ivorne/ivorium | 1d876b6dcabe29b3110d3058f997e59c40cd6a2b | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "../OpenGL/GlTexture.hpp"
#include "../OpenGL/GlProgram.hpp"
#include "../OpenGL/gl.h"
#include "GlSystem.hpp"
#include <ivorium_systems/ivorium_systems.hpp>
#include <ivorium_core/ivorium_core.hpp>
namespace iv
{
/**
To create shader using VirtualResourceProvider method, construct it from... | 29.208333 | 174 | 0.524964 | ivorne |
b6b4d64f46c26a28f0216235aade202182e0cfe5 | 15,740 | cpp | C++ | src/Organism.cpp | Sn0wFox/ot3-pro2017 | 889dcbb1ad0203a916e7431c6525fded49ef57dd | [
"MIT"
] | 1 | 2017-11-13T07:23:52.000Z | 2017-11-13T07:23:52.000Z | src/Organism.cpp | Sn0wFox/ot3-pro2017 | 889dcbb1ad0203a916e7431c6525fded49ef57dd | [
"MIT"
] | null | null | null | src/Organism.cpp | Sn0wFox/ot3-pro2017 | 889dcbb1ad0203a916e7431c6525fded49ef57dd | [
"MIT"
] | null | null | null | //
// Created by arrouan on 28/09/16.
//
#include "Organism.h"
#include "DNA.h"
#include "Common.h"
#include <map>
void Organism::translate_RNA() {
RNA* current_rna = nullptr;
for (auto it = dna_->bp_list_.begin(); it != dna_->bp_list_.end(); it++) {
if ((*it)->type_ == (int)BP::BP_Type::START_RNA) {
c... | 33.99568 | 148 | 0.621283 | Sn0wFox |
b6b5fe4613ca8b0c02dd1317846a4aa778714896 | 8,263 | cxx | C++ | Temporary/itkDijkstrasAlgorithm.cxx | KevinScholtes/ANTsX | 5462269c0c32e5d65560bae4014c5a05cb02588d | [
"BSD-3-Clause"
] | null | null | null | Temporary/itkDijkstrasAlgorithm.cxx | KevinScholtes/ANTsX | 5462269c0c32e5d65560bae4014c5a05cb02588d | [
"BSD-3-Clause"
] | null | null | null | Temporary/itkDijkstrasAlgorithm.cxx | KevinScholtes/ANTsX | 5462269c0c32e5d65560bae4014c5a05cb02588d | [
"BSD-3-Clause"
] | 1 | 2019-10-06T07:31:58.000Z | 2019-10-06T07:31:58.000Z | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit (ITK)
=========================================================================*/
#ifndef _itkDijkstrasAlgorithm_cxx_
#define _itkDijkstrasAlgorithm_cxx_
#include "itkDijkstrasAlgorith... | 29.510714 | 102 | 0.634394 | KevinScholtes |
b6b9685cab98a2ba3d1d8883d8142265d8a14a78 | 1,601 | hpp | C++ | libbio/include/bio/crypto/crypto_Sha256.hpp | biosphere-switch/libbio | 7c892ff1e0f47e4612f3b66fdf043216764dfd1b | [
"MIT"
] | null | null | null | libbio/include/bio/crypto/crypto_Sha256.hpp | biosphere-switch/libbio | 7c892ff1e0f47e4612f3b66fdf043216764dfd1b | [
"MIT"
] | null | null | null | libbio/include/bio/crypto/crypto_Sha256.hpp | biosphere-switch/libbio | 7c892ff1e0f47e4612f3b66fdf043216764dfd1b | [
"MIT"
] | null | null | null |
#pragma once
#include <bio/mem/mem_Memory.hpp>
namespace bio::crypto {
// Grabbed from libnx, hardware-accelerated impl
class Sha256Context {
public:
static constexpr u64 HashSize = 0x20;
static constexpr u64 HashSize32 = HashSize / sizeof(u32);
static constexpr ... | 29.648148 | 113 | 0.564022 | biosphere-switch |
b6baf75f42c6a0f942ec07d8a30159d3dc2b9ad6 | 935 | hpp | C++ | libraries/plugins/apis/account_by_key_api/include/delta/plugins/account_by_key_api/account_by_key_api.hpp | yashbhavsar007/Delta-Blockchain | 602dd5335d2cd51303e953e4c233c8f099da0b07 | [
"MIT"
] | null | null | null | libraries/plugins/apis/account_by_key_api/include/delta/plugins/account_by_key_api/account_by_key_api.hpp | yashbhavsar007/Delta-Blockchain | 602dd5335d2cd51303e953e4c233c8f099da0b07 | [
"MIT"
] | null | null | null | libraries/plugins/apis/account_by_key_api/include/delta/plugins/account_by_key_api/account_by_key_api.hpp | yashbhavsar007/Delta-Blockchain | 602dd5335d2cd51303e953e4c233c8f099da0b07 | [
"MIT"
] | null | null | null | #pragma once
#include <delta/plugins/json_rpc/utility.hpp>
#include <delta/protocol/types.hpp>
#include <fc/optional.hpp>
#include <fc/variant.hpp>
#include <fc/vector.hpp>
namespace delta { namespace plugins { namespace account_by_key {
namespace detail
{
class account_by_key_api_impl;
}
struct get_key_referen... | 20.326087 | 77 | 0.735829 | yashbhavsar007 |
b6bc263a733e9f6bbb8635aa9d1df83ca167e057 | 2,191 | cpp | C++ | libs/RFType/TypeDatabase.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | 3 | 2019-10-27T22:32:44.000Z | 2020-05-21T04:00:46.000Z | libs/RFType/TypeDatabase.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | libs/RFType/TypeDatabase.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | #include "stdafx.h"
#include "TypeDatabase.h"
#include "core/macros.h"
#include "core/meta/LazyInitSingleton.h"
#include "core_rftype/Identifier.h"
#include "rftl/memory"
namespace RF::rftype {
///////////////////////////////////////////////////////////////////////////////
bool TypeDatabase::RegisterNewClassByName... | 22.357143 | 127 | 0.664537 | max-delta |
b6bd8fd53c78a5c0df38d175650861eff65c98dc | 608 | hpp | C++ | libs/opencl/include/sge/opencl/context/error_callback_type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/opencl/include/sge/opencl/context/error_callback_type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/opencl/include/sge/opencl/context/error_callback_type.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 SGE_OPENCL_CONTEXT_ERROR_CALLBACK_TYPE_HPP_INCLUDED
#define SGE_OPENCL_CONTEXT_ERROR_CALLBA... | 28.952381 | 96 | 0.771382 | cpreh |
b6bfb73351dc46f7693a02b53a3be53b5f550e1b | 745 | hpp | C++ | app/src/main/cpp/common/src/common/Mesh.hpp | pehg/Break_it_all | dab56d82dd4541a710f16b1e6f61ee214059a1a9 | [
"MIT"
] | null | null | null | app/src/main/cpp/common/src/common/Mesh.hpp | pehg/Break_it_all | dab56d82dd4541a710f16b1e6f61ee214059a1a9 | [
"MIT"
] | null | null | null | app/src/main/cpp/common/src/common/Mesh.hpp | pehg/Break_it_all | dab56d82dd4541a710f16b1e6f61ee214059a1a9 | [
"MIT"
] | null | null | null | //
// Created by simonppg on 4/22/19.
//
#ifndef BREAK_IT_ALL_MESH_HPP
#define BREAK_IT_ALL_MESH_HPP
#include "Camera.hpp"
using glm::vec3;
#define NUM_ARRAY_ELEMENTS(a) (sizeof(a) / sizeof(*a))
#define INDEX_BUFFER_SIZE(numIndices) ((GLsizeiptr)((numIndices) * (sizeof(GLushort))))
#define VERTEX_BUFFER_SIZE(numInd... | 22.575758 | 89 | 0.702013 | pehg |
b6c58b4a719ddc165a4c06e1369168ee4029fd34 | 1,138 | cpp | C++ | src/db/db_impl.cpp | rickard1117/PidanDB | 6955f6913cb404a0f09a5e44c07f36b0729c0a78 | [
"MIT"
] | 7 | 2020-08-01T04:09:15.000Z | 2021-08-08T17:26:19.000Z | src/db/db_impl.cpp | rickard1117/PidanDB | 6955f6913cb404a0f09a5e44c07f36b0729c0a78 | [
"MIT"
] | null | null | null | src/db/db_impl.cpp | rickard1117/PidanDB | 6955f6913cb404a0f09a5e44c07f36b0729c0a78 | [
"MIT"
] | 2 | 2020-09-16T02:29:52.000Z | 2020-09-28T10:51:38.000Z | #include "db/db_impl.h"
namespace pidan {
Status DBImpl::Put(const Slice &key, const Slice &value) {
Transaction *txn = txn_manager_.BeginWriteTransaction();
DataHeader *dh = new DataHeader(txn);
DataHeader *old_dh = nullptr;
auto result = index_.InsertUnique(key, dh, &old_dh);
if (!result) {
delete dh... | 23.708333 | 64 | 0.665202 | rickard1117 |
b6c7c92e3bfa79f0066631365f7853bef96538d9 | 670 | cpp | C++ | binary tree/flattenTreeToLinkedList.cpp | Gooner1886/DSA-101 | 44092e10ad39bebbf7da93e897927106d5a45ae7 | [
"MIT"
] | 20 | 2022-01-04T19:36:14.000Z | 2022-03-21T15:35:09.000Z | binary tree/flattenTreeToLinkedList.cpp | Gooner1886/DSA-101 | 44092e10ad39bebbf7da93e897927106d5a45ae7 | [
"MIT"
] | null | null | null | binary tree/flattenTreeToLinkedList.cpp | Gooner1886/DSA-101 | 44092e10ad39bebbf7da93e897927106d5a45ae7 | [
"MIT"
] | null | null | null | // Leetcode - 114 - Flatten Binary Tree to Linked List
void solve(TreeNode *root, vector<int> &preorder)
{
root->left = NULL;
root->right = NULL;
for (int i = 1; i < preorder.size(); i++)
{
root->right = new TreeNode(preorder[i]);
root = root->right;
}
}
void preorderTraversal(TreeN... | 23.928571 | 61 | 0.623881 | Gooner1886 |
b6c9ac73c37b5204639c27d37f0655122c11a714 | 8,505 | hpp | C++ | Vesper/Vesper/BSSRDFs/IrradianceTree.hpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | 6 | 2017-09-14T03:26:49.000Z | 2021-09-18T05:40:59.000Z | Vesper/Vesper/BSSRDFs/IrradianceTree.hpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | null | null | null | Vesper/Vesper/BSSRDFs/IrradianceTree.hpp | FallenShard/Crisp | d4cf22c0f9af73a6c4ba2b7d67696f1a188fd423 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <array>
#include <vector>
#include <CrispCore/Math/BoundingBox.hpp>
#include "Spectrums/Spectrum.hpp"
namespace crisp
{
struct SurfacePoint
{
SurfacePoint() {}
SurfacePoint(const glm::vec3& p, const glm::vec3& n, float a)
: p(p)
... | 28.444816 | 102 | 0.388595 | FallenShard |
b6d63ff87ed03714a1fa7cf95cc74d0f65869208 | 3,577 | cpp | C++ | android-30/android/widget/SimpleAdapter.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-30/android/widget/SimpleAdapter.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/widget/SimpleAdapter.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JIntArray.hpp"
#include "../../JArray.hpp"
#include "../content/Context.hpp"
#include "../content/res/Resources_Theme.hpp"
#include "../view/View.hpp"
#include "../view/ViewGroup.hpp"
#include "./Filter.hpp"
#include "./ImageView.hpp"
#include "./TextView.hpp"
#include "../../JObject.hpp"
#include "../.... | 23.688742 | 125 | 0.689405 | YJBeetle |
b6d962121987bcab856a0318aa250dcd1a68fb2d | 1,552 | cpp | C++ | src/lib/classification/poset_classification/extension.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-10-27T15:18:28.000Z | 2022-02-09T11:13:07.000Z | src/lib/classification/poset_classification/extension.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 4 | 2019-12-09T11:49:11.000Z | 2020-07-30T17:34:45.000Z | src/lib/classification/poset_classification/extension.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-06-10T20:05:30.000Z | 2020-12-18T04:59:19.000Z | // extension.cpp
//
// Anton Betten
// Dec 19, 2011
#include "foundations/foundations.h"
#include "group_actions/group_actions.h"
#include "classification/classification.h"
using namespace std;
namespace orbiter {
namespace classification {
extension::extension()
{
pt = -1;
orbit_len = 0;
type = EXTENSION_TYPE_U... | 13.37931 | 46 | 0.664948 | abetten |
b6e5b96b3b9a80bf364e304c2adacf3ba49033fd | 554 | hpp | C++ | chratos/chratos_node/daemon.hpp | chratos-system/chratos | caf1b608a21ccc7b13726a64497036ab53f837b3 | [
"BSD-2-Clause"
] | 2 | 2018-09-10T16:28:16.000Z | 2020-02-13T17:44:43.000Z | chratos/chratos_node/daemon.hpp | chratos-system/chratos | caf1b608a21ccc7b13726a64497036ab53f837b3 | [
"BSD-2-Clause"
] | null | null | null | chratos/chratos_node/daemon.hpp | chratos-system/chratos | caf1b608a21ccc7b13726a64497036ab53f837b3 | [
"BSD-2-Clause"
] | 2 | 2018-08-27T13:00:56.000Z | 2018-10-16T21:54:13.000Z | #include <chratos/node/node.hpp>
#include <chratos/node/rpc.hpp>
namespace chratos_daemon
{
class daemon
{
public:
void run (boost::filesystem::path const &);
};
class daemon_config
{
public:
daemon_config (boost::filesystem::path const &);
bool deserialize_json (bool &, boost::property_tree::ptree &);
void serial... | 22.16 | 63 | 0.749097 | chratos-system |
b6eb39ef45bc5c2f56339e4c9849eee6c477b6e3 | 1,711 | cxx | C++ | src/converter/fix_helper.cxx | abdelkaderamar/fix2xml | fa781b747a8e40ed4c2d3dee8294fb51654f7428 | [
"MIT"
] | 1 | 2019-09-26T12:08:19.000Z | 2019-09-26T12:08:19.000Z | src/converter/fix_helper.cxx | abdelkaderamar/fix2xml | fa781b747a8e40ed4c2d3dee8294fb51654f7428 | [
"MIT"
] | null | null | null | src/converter/fix_helper.cxx | abdelkaderamar/fix2xml | fa781b747a8e40ed4c2d3dee8294fb51654f7428 | [
"MIT"
] | 1 | 2020-12-11T04:11:44.000Z | 2020-12-11T04:11:44.000Z | #include "fix_helper.hxx"
#include <quickfix/FixFieldNumbers.h>
#include <algorithm>
#include <functional>
#include <vector>
namespace fix2xml {
using namespace std;
//-----------------------------------------------------------------------------
void msg_to_list(const FIX::Message &fix_msg,
const ... | 34.22 | 79 | 0.548802 | abdelkaderamar |
b6f2464ac1f220f4d92948ee29510bccaf768fc8 | 2,030 | cpp | C++ | DS/DS/graph/bellman_ford.cpp | puneet222/Data-Structures | c5c460739c7423cce53685c5557c97c70ca1d171 | [
"Apache-2.0"
] | null | null | null | DS/DS/graph/bellman_ford.cpp | puneet222/Data-Structures | c5c460739c7423cce53685c5557c97c70ca1d171 | [
"Apache-2.0"
] | null | null | null | DS/DS/graph/bellman_ford.cpp | puneet222/Data-Structures | c5c460739c7423cce53685c5557c97c70ca1d171 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<stdio.h>
#include<queue>
#include<malloc.h>
#include<limits.h>
using namespace std ;
struct graph{
int v ;
int e ;
int **wgh ;
} ;
struct graph *weightMatrix(int vertices , int edges)
{
struct graph *g = new graph ;
g -> v = vertices ;
g -> e = edges ;
g -> wgh = (int **)malloc(siz... | 17.964602 | 96 | 0.484236 | puneet222 |
b6f7f2f06130d095c5b2a916d993ecd6bd4f62f6 | 833 | cpp | C++ | 机试/动态规划/leetcode123.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | 机试/动态规划/leetcode123.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | 机试/动态规划/leetcode123.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | class Solution {
public:
int maxProfit(vector<int>& prices) {
if(prices.size() == 0){
return 0;
}
int len = prices.size();
vector<vector<int>> dp(len, vector<int>(5));
dp[0][0] = 0;
dp[0][1] = -prices[0];
dp[0][2] = 0;
dp[0][3] = -prices[0];
... | 36.217391 | 105 | 0.421369 | codehuanglei |
b6fb19c28ec6bab8291643f67434843fb09d55bf | 3,231 | cpp | C++ | docs/tests/graph.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | 23 | 2019-07-11T14:47:39.000Z | 2021-12-24T09:56:24.000Z | docs/tests/graph.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | null | null | null | docs/tests/graph.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | 4 | 2021-04-06T18:20:43.000Z | 2022-01-15T09:20:45.000Z | #include "bugged.hpp"
#include <deferred/graph.hpp>
TEST(basic) {
FrameGraph graph;
auto& pass1 = graph.addPass();
vk::Image img1;
vk::Image img2;
auto& out1 = pass1.addOut(syncScopeFlex, img1);
auto& out2 = pass1.addOut(syncScopeFlex, img2);
auto scope2 = SyncScope {
vk::PipelineStageBits::computeShader,
... | 23.078571 | 58 | 0.692974 | nyorain |
8e088785a57c9cdd56c5d1336d4b561c74e6883d | 5,064 | cxx | C++ | TOF/TOFbase/AliTOFRawMap.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | TOF/TOFbase/AliTOFRawMap.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | TOF/TOFbase/AliTOFRawMap.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 28.772727 | 76 | 0.463073 | AllaMaevskaya |
8e09c3050af11576e808b35c4254aa250b22992a | 3,437 | cpp | C++ | Trees/BinaryTree/foldablebinarytree/foldablebinarytree.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | Trees/BinaryTree/foldablebinarytree/foldablebinarytree.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | 3 | 2020-05-08T18:02:51.000Z | 2020-05-09T08:37:35.000Z | Trees/BinaryTree/foldablebinarytree/foldablebinarytree.cpp | UltraProton/PlacementPrep | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
/* You would want to remove below 3 lines if your compiler
supports bool, true and false */
#define bool int
#define true 1
#define false 0
/* A binary tree node has data, pointer to left child
and a pointer to right child */
struct node
{
int data;
struct node* left... | 21.347826 | 81 | 0.551644 | UltraProton |
8e0a7e06d8dc19dff9e3ddc30d095372b9ce0452 | 26 | cpp | C++ | tests/environment.cpp | TheQuantumPhysicist/HttpRpcRelay | 810d9ed8907b4c769faa432ba7f829445b8d6f9f | [
"MIT"
] | null | null | null | tests/environment.cpp | TheQuantumPhysicist/HttpRpcRelay | 810d9ed8907b4c769faa432ba7f829445b8d6f9f | [
"MIT"
] | null | null | null | tests/environment.cpp | TheQuantumPhysicist/HttpRpcRelay | 810d9ed8907b4c769faa432ba7f829445b8d6f9f | [
"MIT"
] | null | null | null | #include "environment.h"
| 13 | 25 | 0.730769 | TheQuantumPhysicist |
8e0b9590dd090921dfd51bf8831426402488f77c | 1,115 | hpp | C++ | src/volt/gpu/d3d12/d3d12.hpp | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | src/volt/gpu/d3d12/d3d12.hpp | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | src/volt/gpu/d3d12/d3d12.hpp | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | #pragma once
#include <volt/gpu/enums.hpp>
namespace volt::gpu::d3d12 {
extern std::unordered_map<HRESULT, std::string> result_messages;
extern std::unordered_map<command_types, D3D12_COMMAND_LIST_TYPE> command_list_types;
template<command_types T>
constexpr D3D12_COMMAND_LIST_TYPE command_list_type;
template<>
co... | 30.135135 | 114 | 0.821525 | voltengine |
8e0f910636ef878151394c403e6a3de3879d1de8 | 401 | cpp | C++ | exemplos/5_Repeticao/soma-ate-0.cpp | danielgs83/cpe-unb | f958d2a4899a8d4d5c1465637d1d1b10610661e4 | [
"CC0-1.0"
] | 1 | 2022-02-04T17:16:50.000Z | 2022-02-04T17:16:50.000Z | exemplos/5_Repeticao/soma-ate-0.cpp | danielgs83/cpe-unb | f958d2a4899a8d4d5c1465637d1d1b10610661e4 | [
"CC0-1.0"
] | null | null | null | exemplos/5_Repeticao/soma-ate-0.cpp | danielgs83/cpe-unb | f958d2a4899a8d4d5c1465637d1d1b10610661e4 | [
"CC0-1.0"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int soma, parcela;
soma = 0;
cout << "numero a ser somado (0 para sair): ";
cin >> parcela; //leitura do primeiro numero
while (parcela != 0) {
soma += parcela; //acumula
cout << "numero a ser somado (0 para sair): ";
cin >> parcela; //l... | 17.434783 | 50 | 0.586035 | danielgs83 |
8e11f514fbf9d3a021bc436e68abee51dd29ae11 | 3,955 | cpp | C++ | tests/TestWord.cpp | SergioRosello/OSO | bbd3c6a95b1c2388732babc6a540c07034cce026 | [
"MIT"
] | 1 | 2019-10-14T07:25:32.000Z | 2019-10-14T07:25:32.000Z | tests/TestWord.cpp | SergioRosello/OSO | bbd3c6a95b1c2388732babc6a540c07034cce026 | [
"MIT"
] | null | null | null | tests/TestWord.cpp | SergioRosello/OSO | bbd3c6a95b1c2388732babc6a540c07034cce026 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "../include/Selection.h"
namespace OSO {
// The fixture for testing class Foo.
class WordTest : public ::testing::Test {
protected:
// You can remove any or all of the following functions if its body
// is empty.
WordTest() {
// You can do set-up wo... | 34.692982 | 84 | 0.672566 | SergioRosello |
8e162cb1124cae1e7130e2f70a1789d04925c119 | 448 | cc | C++ | example/linux/flutter/generated_plugin_registrant.cc | jainris/flutter_audio_desktop | 63d5823facbab34358875c6722874f950eb10393 | [
"MIT"
] | 50 | 2020-09-13T12:13:40.000Z | 2022-02-26T03:36:45.000Z | example/linux/flutter/generated_plugin_registrant.cc | jainris/flutter_audio_desktop | 63d5823facbab34358875c6722874f950eb10393 | [
"MIT"
] | 28 | 2020-09-23T05:29:26.000Z | 2021-03-17T11:21:11.000Z | example/linux/flutter/generated_plugin_registrant.cc | jainris/flutter_audio_desktop | 63d5823facbab34358875c6722874f950eb10393 | [
"MIT"
] | 16 | 2020-09-14T07:12:29.000Z | 2021-10-13T23:52:12.000Z | //
// Generated file. Do not edit.
//
#include "generated_plugin_registrant.h"
#include <flutter_audio_desktop/flutter_audio_desktop_plugin.h>
void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) flutter_audio_desktop_registrar =
fl_plugin_registry_get_registrar_for_plugin(reg... | 32 | 89 | 0.841518 | jainris |
8e1788ea9d52b0333d00766225789530cdb08ec7 | 19,774 | hpp | C++ | library/grammar/string.hpp | grandquista/chimera | 2a5326afc866d878517f2b0f5df2bf6cba20f4eb | [
"MIT"
] | 2 | 2017-12-14T07:05:06.000Z | 2021-02-07T03:31:27.000Z | library/grammar/string.hpp | grandquista/chimera | 2a5326afc866d878517f2b0f5df2bf6cba20f4eb | [
"MIT"
] | 149 | 2018-08-06T13:14:46.000Z | 2019-11-19T02:00:56.000Z | library/grammar/string.hpp | grandquista/chimera | 2a5326afc866d878517f2b0f5df2bf6cba20f4eb | [
"MIT"
] | null | null | null | // Copyright (c) 2017 Adam Grandquist <grandquista@gmail.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 limitation the rights
// to use, cop... | 40.02834 | 80 | 0.51148 | grandquista |
8e19451dbab2934f8cf55793fc1999021ad77ba2 | 23,113 | cxx | C++ | TUHKMgen/AliGenUHKM.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | TUHKMgen/AliGenUHKM.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | TUHKMgen/AliGenUHKM.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /////////////////////////////////////////////////////////////////////////////
// Generator using UHKM 3.0 as an external generator. //
// ( only the HYDJET++ part is implemented for a moment) //
// temporary link: //
// http:... | 35.287023 | 109 | 0.637304 | AllaMaevskaya |
8e19f72fb5aa9c9e2c6dcc6fd006fdb906053580 | 321 | cpp | C++ | CodeChef/Begginer-Problems/FACTRL2.cpp | annukamat/My-Competitive-Journey | adb13a5723483cde13e5f3859b3a7ad840b86c97 | [
"MIT"
] | 7 | 2018-11-08T11:39:27.000Z | 2020-09-10T17:50:57.000Z | CodeChef/Begginer-Problems/FACTRL2.cpp | annukamat/My-Competitive-Journey | adb13a5723483cde13e5f3859b3a7ad840b86c97 | [
"MIT"
] | null | null | null | CodeChef/Begginer-Problems/FACTRL2.cpp | annukamat/My-Competitive-Journey | adb13a5723483cde13e5f3859b3a7ad840b86c97 | [
"MIT"
] | 2 | 2019-09-16T14:34:03.000Z | 2019-10-12T19:24:00.000Z | #include <iostream>
#include <vector>
using namespace std;
long long int fact(int n){
if(n==1 || n==0){
return 1;
}else{
return n*fact(n-1);
}
}
int main(){
int t,n;
cin>>t;
vector<int>a;
while(t--){
cin>>n;
cout<<fact(n)<<"\n";
}
return 0;
... | 13.956522 | 28 | 0.457944 | annukamat |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.