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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bd863a4e1b341441b3700fe3931c9bb78c159ee6 | 1,862 | cpp | C++ | mmcv/ops/csrc/parrots/pixel_group_parrots.cpp | BIGWangYuDong/mmcv | c46deb0576edaff5cd5a7d384c617478c7a73a70 | [
"Apache-2.0"
] | 3,748 | 2018-10-12T08:39:46.000Z | 2022-03-31T17:22:55.000Z | mmcv/ops/csrc/parrots/pixel_group_parrots.cpp | BIGWangYuDong/mmcv | c46deb0576edaff5cd5a7d384c617478c7a73a70 | [
"Apache-2.0"
] | 1,637 | 2018-10-12T06:06:18.000Z | 2022-03-31T02:20:53.000Z | mmcv/ops/csrc/parrots/pixel_group_parrots.cpp | BIGWangYuDong/mmcv | c46deb0576edaff5cd5a7d384c617478c7a73a70 | [
"Apache-2.0"
] | 1,234 | 2018-10-12T09:28:20.000Z | 2022-03-31T15:56:24.000Z | // Copyright (c) OpenMMLab. All rights reserved
#include <parrots/compute/aten.hpp>
#include <parrots/extension.hpp>
#include <parrots/foundation/ssattrs.hpp>
#include "pixel_group_pytorch.h"
using namespace parrots;
using namespace std;
template <typename T>
void pixel_group_parrots(T& ctx, const SSElement& attr,
... | 33.854545 | 78 | 0.679914 | BIGWangYuDong |
bd8cb4c8d122a1aebe81e79a9f19b7fe39a5a6a8 | 8,467 | cpp | C++ | src/apps/ojph_expand/ojph_expand.cpp | jpambrun/OpenJPH | 9cce6ed4a74b3dd0f0cdc48d90b595cd0b8d9030 | [
"BSD-2-Clause"
] | null | null | null | src/apps/ojph_expand/ojph_expand.cpp | jpambrun/OpenJPH | 9cce6ed4a74b3dd0f0cdc48d90b595cd0b8d9030 | [
"BSD-2-Clause"
] | null | null | null | src/apps/ojph_expand/ojph_expand.cpp | jpambrun/OpenJPH | 9cce6ed4a74b3dd0f0cdc48d90b595cd0b8d9030 | [
"BSD-2-Clause"
] | null | null | null | /****************************************************************************/
// This software is released under the 2-Clause BSD license, included
// below.
//
// Copyright (c) 2019, Aous Naman
// Copyright (c) 2019, Kakadu Software Pty Ltd, Australia
// Copyright (c) 2019, The University of New South Wales, Austral... | 34.70082 | 79 | 0.590292 | jpambrun |
bd922daaccc417ac15d3a99e42e68c33da917872 | 5,404 | cpp | C++ | Libs/Widgets/Testing/Cpp/ctkMenuComboBoxEventTranslatorPlayerTest1.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 515 | 2015-01-13T05:42:10.000Z | 2022-03-29T03:10:01.000Z | Libs/Widgets/Testing/Cpp/ctkMenuComboBoxEventTranslatorPlayerTest1.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 425 | 2015-01-06T05:28:38.000Z | 2022-03-08T19:42:18.000Z | Libs/Widgets/Testing/Cpp/ctkMenuComboBoxEventTranslatorPlayerTest1.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 341 | 2015-01-08T06:18:17.000Z | 2022-03-29T21:47:49.000Z | /*=========================================================================
Library: CTK
Copyright (c) Kitware Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.ap... | 30.531073 | 87 | 0.6547 | kraehlit |
bd940e7c4b6d7610e3e7bab80961b0b6adbb6e7f | 85 | cpp | C++ | src/Luddite/ECS/Reflection.cpp | Aquaticholic/Luddite-Engine | 66584fa31ee75b0cdebabe88cdfa2431d0e0ac2f | [
"Apache-2.0"
] | 1 | 2021-06-03T05:46:46.000Z | 2021-06-03T05:46:46.000Z | src/Luddite/ECS/Reflection.cpp | Aquaticholic/Luddite-Engine | 66584fa31ee75b0cdebabe88cdfa2431d0e0ac2f | [
"Apache-2.0"
] | null | null | null | src/Luddite/ECS/Reflection.cpp | Aquaticholic/Luddite-Engine | 66584fa31ee75b0cdebabe88cdfa2431d0e0ac2f | [
"Apache-2.0"
] | null | null | null | #include "Luddite/ECS/Reflection.hpp"
#include "Luddite/ECS/Modules/Transform3D.hpp"
| 28.333333 | 46 | 0.8 | Aquaticholic |
bd95838fa9cb565302869384616a7dd0189fb56a | 11,570 | cpp | C++ | WinUSBFTDI/WinUSBFTDI-C/EnOceanSample/main.cpp | ahidaka/WinUSB_Collection | 4a8362707272444a11aacb7d869da32a63baa5e8 | [
"Apache-2.0"
] | null | null | null | WinUSBFTDI/WinUSBFTDI-C/EnOceanSample/main.cpp | ahidaka/WinUSB_Collection | 4a8362707272444a11aacb7d869da32a63baa5e8 | [
"Apache-2.0"
] | null | null | null | WinUSBFTDI/WinUSBFTDI-C/EnOceanSample/main.cpp | ahidaka/WinUSB_Collection | 4a8362707272444a11aacb7d869da32a63baa5e8 | [
"Apache-2.0"
] | 4 | 2020-12-13T07:28:40.000Z | 2022-01-18T05:55:05.000Z | #include "pch.h"
#include <stdio.h>
#include <stdlib.h>
typedef struct _eep_data
{
UCHAR ROrg;
UCHAR Func;
UCHAR Type;
USHORT ManID;
}
EEP_DATA, *PEEP_DATA;
enum PacketType
{
Radio = 0x01,
Response = 0x02,
RadioSubTel = 0x03,
Event = 0x04,
CommonCommand = 0x05,
SmartAckComman... | 26.235828 | 86 | 0.51599 | ahidaka |
bd97657c4e1e7d4a0033b492126f2609bd309c34 | 639 | cc | C++ | src/core/imap/MCIMAPMessagePart.cc | zhanleewo/mailcore2 | a6c2d0465b25351689a1b4761f191201275f2b52 | [
"BSD-3-Clause"
] | 1 | 2020-10-14T21:44:57.000Z | 2020-10-14T21:44:57.000Z | src/core/imap/MCIMAPMessagePart.cc | zhanleewo/mailcore2 | a6c2d0465b25351689a1b4761f191201275f2b52 | [
"BSD-3-Clause"
] | null | null | null | src/core/imap/MCIMAPMessagePart.cc | zhanleewo/mailcore2 | a6c2d0465b25351689a1b4761f191201275f2b52 | [
"BSD-3-Clause"
] | null | null | null | #include "MCIMAPMessagePart.h"
using namespace mailcore;
IMAPMessagePart::IMAPMessagePart()
{
init();
}
IMAPMessagePart::IMAPMessagePart(IMAPMessagePart * other) : AbstractMessagePart(other)
{
init();
MC_SAFE_REPLACE_COPY(String, mPartID, other->mPartID);
}
IMAPMessagePart::~IMAPMessagePart()
{
MC_S... | 15.975 | 86 | 0.723005 | zhanleewo |
bd97fd78f6dce58444152e74d0fc4c93d312b2b5 | 4,120 | cpp | C++ | firmware/modules/core/cSound.cpp | klaus-liebler/sensact | b8fc05eff67f23cf58c4fdf53e0026aab0966f6b | [
"Apache-2.0"
] | 2 | 2021-02-09T16:17:43.000Z | 2021-08-09T04:02:44.000Z | firmware/modules/core/cSound.cpp | klaus-liebler/sensact | b8fc05eff67f23cf58c4fdf53e0026aab0966f6b | [
"Apache-2.0"
] | 2 | 2016-05-17T20:45:10.000Z | 2020-03-10T07:03:39.000Z | firmware/modules/core/cSound.cpp | klaus-liebler/sensact | b8fc05eff67f23cf58c4fdf53e0026aab0966f6b | [
"Apache-2.0"
] | 1 | 2020-05-24T13:37:55.000Z | 2020-05-24T13:37:55.000Z | #include "cMaster.h"
#include "cModel.h"
#include "cSound.h"
#include <chrono>
#define LOGLEVEL LEVEL_DEBUG
#define LOGNAME "SOUND"
#include "cLog.h"
namespace sensact {
static uint8_t send_buf[10] = {0x7E, 0xFF,0x06,0,0,0,0,0,0,0xEF};
//static bool is_reply = false;
//
static void fill_uint16_bigend (uint8_t *th... | 15.147059 | 104 | 0.699757 | klaus-liebler |
bd9804ea6a73b6f6b363e71c0180dc839459bacb | 4,670 | cpp | C++ | CrossApp/cocoa/CACalendar.cpp | gohopo/nineck.ca | 9601f5ae4c20f8a3ea27b06551556fa5e1eecce3 | [
"MIT"
] | 794 | 2015-01-01T04:59:48.000Z | 2022-03-09T03:31:13.000Z | CrossApp/cocoa/CACalendar.cpp | gohopo/nineck.ca | 9601f5ae4c20f8a3ea27b06551556fa5e1eecce3 | [
"MIT"
] | 83 | 2015-01-04T06:00:35.000Z | 2021-05-20T08:48:38.000Z | CrossApp/cocoa/CACalendar.cpp | gohopo/nineck.ca | 9601f5ae4c20f8a3ea27b06551556fa5e1eecce3 | [
"MIT"
] | 598 | 2015-01-02T02:38:13.000Z | 2022-03-09T03:31:37.000Z | //
// CACalendar.cpp
// CrossApp
//
// Created by dai xinping on 14-8-5.
// Copyright (c) 2014年 CrossApp. All rights reserved.
//
#include "CACalendar.h"
#include <cstdlib>
#include <iostream>
#include <stdio.h>
#include <iomanip>
#include <ctime>
#include <chrono>
NS_CC_BEGIN
CACalendar::CACalendar()
{
... | 20.482456 | 88 | 0.588223 | gohopo |
bd990bd8964c2c1c933f7886b7adf94fe51bc1b1 | 1,384 | cpp | C++ | src/EPI/ch4/bit_swap.cpp | j-haj/interview-prep | 7d9f0ca4c321cf1d2393aea17bcd375119005e5d | [
"MIT"
] | null | null | null | src/EPI/ch4/bit_swap.cpp | j-haj/interview-prep | 7d9f0ca4c321cf1d2393aea17bcd375119005e5d | [
"MIT"
] | null | null | null | src/EPI/ch4/bit_swap.cpp | j-haj/interview-prep | 7d9f0ca4c321cf1d2393aea17bcd375119005e5d | [
"MIT"
] | null | null | null | #include <bitset>
#include <iostream>
#include <random>
/**
* Returns a random integer from the interval [low, high]
*
* @param low left end of the range (inclusive)
* @param high right end of the range (inclusive)
*
* @return random integer from specified interval [low, high]
*/
int random_int(const int low, c... | 27.137255 | 80 | 0.601879 | j-haj |
bd9d690dd1d6077aaa7c163f269a9400ed90aea8 | 1,700 | cpp | C++ | CODEFORCES/B.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | CODEFORCES/B.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | CODEFORCES/B.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <sstream>
#include <vector>
#include <iomanip>
#include <cmath>
using namespace std;
typedef long long LL;
typedef pair<int,int> pii;
namespace sieve
{
#define MAX 10000010
#define LIM 3163
#define PRM 78500
typedef... | 20.481928 | 58 | 0.425294 | aqfaridi |
bda30c72a1f7fb86c14a32778fa985f41e3fb6b2 | 29,822 | cc | C++ | net/quic/quic_sent_packet_manager.cc | SlimKatLegacy/android_external_chromium_org | ee480ef5039d7c561fc66ccf52169ead186f1bea | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-03-04T02:36:53.000Z | 2016-06-25T11:22:17.000Z | net/quic/quic_sent_packet_manager.cc | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | net/quic/quic_sent_packet_manager.cc | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 4 | 2015-02-09T08:49:30.000Z | 2017-08-26T02:03:34.000Z | // Copyright 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 "net/quic/quic_sent_packet_manager.h"
#include "base/logging.h"
#include "base/stl_util.h"
#include "net/quic/congestion_control/pacing_sender.h... | 38.33162 | 80 | 0.744652 | SlimKatLegacy |
bda39f758570a4cdcba2ed24ccb3bef6f85cd6a2 | 1,369 | cpp | C++ | tests/char_utils_test.cpp | KOLANICH/octargs | e2dfb9715a676c6a7a49b7dac7b2b71bfd9143ef | [
"MIT"
] | 4 | 2020-03-23T16:30:11.000Z | 2021-12-21T10:07:38.000Z | tests/char_utils_test.cpp | KOLANICH/octargs | e2dfb9715a676c6a7a49b7dac7b2b71bfd9143ef | [
"MIT"
] | 32 | 2020-01-28T22:29:59.000Z | 2021-12-21T10:05:36.000Z | tests/char_utils_test.cpp | KOLANICH/octargs | e2dfb9715a676c6a7a49b7dac7b2b71bfd9143ef | [
"MIT"
] | 1 | 2021-07-22T16:50:08.000Z | 2021-07-22T16:50:08.000Z | #include "gtest/gtest.h"
#include <array>
#include "../include/octargs/internal/char_utils.hpp"
namespace oct
{
namespace args
{
TEST(char_utils_test, test_char_is_space)
{
ASSERT_TRUE(internal::is_space(' '));
ASSERT_TRUE(internal::is_space('\t'));
ASSERT_TRUE(internal::is_space('\r'));
ASSERT_TRUE... | 26.326923 | 53 | 0.659606 | KOLANICH |
bda81d8e98e07b3227e819c1b0ba88bf7e7d2064 | 1,713 | cpp | C++ | sleepy_discord/asio_udp.cpp | qualk/sleepy-discord | 1a4045326c15b3e3a7461043e29769f8ccb8a2a9 | [
"MIT"
] | 830 | 2017-05-29T21:00:17.000Z | 2022-03-26T16:07:28.000Z | sleepy_discord/asio_udp.cpp | qualk/sleepy-discord | 1a4045326c15b3e3a7461043e29769f8ccb8a2a9 | [
"MIT"
] | 200 | 2017-06-27T20:08:49.000Z | 2022-03-05T14:37:59.000Z | sleepy_discord/asio_udp.cpp | qualk/sleepy-discord | 1a4045326c15b3e3a7461043e29769f8ccb8a2a9 | [
"MIT"
] | 212 | 2017-06-27T00:16:27.000Z | 2022-03-13T15:48:42.000Z | #include "asio_udp.h"
#ifndef NONEXISTENT_ASIO
#include "client.h"
namespace SleepyDiscord {
//Note: you need to be using a ASIOBasedScheduleHandler for this to work
ASIOUDPClient::ASIOUDPClient(BaseDiscordClient& client) :
ASIOUDPClient(static_cast<ASIOBasedScheduleHandler&>(client.getScheduleHandler()).getIOSer... | 26.765625 | 99 | 0.718622 | qualk |
bdb3a5fa2ec3f063fa908dfde6fee079cfff599c | 141 | cpp | C++ | cpp/linker-generated-array/ArrayEntry2.cpp | so61pi/examples | 38e2831cd6517864fc05f499f72fbb4ff6ae27c0 | [
"MIT"
] | 4 | 2019-05-01T07:23:53.000Z | 2022-03-05T00:05:06.000Z | cpp/linker-generated-array/ArrayEntry2.cpp | so61pi/examples | 38e2831cd6517864fc05f499f72fbb4ff6ae27c0 | [
"MIT"
] | 16 | 2020-02-24T13:04:12.000Z | 2022-02-26T10:19:48.000Z | cpp/linker-generated-array/ArrayEntry2.cpp | so61pi/examples | 38e2831cd6517864fc05f499f72fbb4ff6ae27c0 | [
"MIT"
] | 1 | 2019-03-30T07:29:58.000Z | 2019-03-30T07:29:58.000Z | #include "Entry.h"
static Entry const ArrayEntry2 __attribute__((unused, used, section(".array-2-entry-2"))) = {
"Entry-2",
200
};
| 17.625 | 93 | 0.64539 | so61pi |
bdb42deba85d26844a6075972a4d8444b1decc59 | 13,716 | cpp | C++ | tests/HandwrittenRuntime/Test_Database2.cpp | ankurvdev/stencil | b6429f8b92947273a5e66d5f10210b960616a89d | [
"BSD-3-Clause"
] | null | null | null | tests/HandwrittenRuntime/Test_Database2.cpp | ankurvdev/stencil | b6429f8b92947273a5e66d5f10210b960616a89d | [
"BSD-3-Clause"
] | null | null | null | tests/HandwrittenRuntime/Test_Database2.cpp | ankurvdev/stencil | b6429f8b92947273a5e66d5f10210b960616a89d | [
"BSD-3-Clause"
] | null | null | null | #include "Test_Database2.h"
#include "TestUtils.h"
#include <thread>
using namespace std::string_literals;
using namespace std::chrono_literals;
namespace Catch
{
template <> struct StringMaker<std::filesystem::file_time_type>
{
static std::string convert(std::filesystem::file_time_type const& ftime) { return st... | 32.657143 | 137 | 0.63014 | ankurvdev |
bdc35da01134734ff93efdc130cb82494fade819 | 8,169 | cpp | C++ | src/slider.cpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | src/slider.cpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | src/slider.cpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | /*
Copyright (C) 2003-2014 by David White <davewx7@gmail.com>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
incl... | 29.813869 | 118 | 0.667524 | gamobink |
bdc594d2bcb8a9dd1c4b649c1faab9278d4d980e | 20,614 | cc | C++ | extensions/pyre/grid/grids.cc | PyreFramework/pyre | 345c7449a3416eea1c1affa74fb32faff30a6aaa | [
"BSD-3-Clause"
] | null | null | null | extensions/pyre/grid/grids.cc | PyreFramework/pyre | 345c7449a3416eea1c1affa74fb32faff30a6aaa | [
"BSD-3-Clause"
] | null | null | null | extensions/pyre/grid/grids.cc | PyreFramework/pyre | 345c7449a3416eea1c1affa74fb32faff30a6aaa | [
"BSD-3-Clause"
] | null | null | null | // -*- c++ -*-
//
// michael a.g. aïvázis <michael.aivazis@para-sim.com>
// (c) 1998-2022 all rights reserved
// externals
#include "external.h"
// namespace setup
#include "forward.h"
// my instantiations
#include "grids.h"
// wrappers over {pyre::grid::grid_t} template expansions
// build the submodule
void
pyre... | 23.886443 | 98 | 0.608518 | PyreFramework |
bdc9f53a41d25d29c68ac43c89e298c78de3f1cc | 13,138 | cpp | C++ | Antario/Features/Aimbot.cpp | NoelWriter/mirrorcsgo | bb527561df68cff5283472d5fed0492c58c2a078 | [
"MIT"
] | 1 | 2020-02-23T17:35:51.000Z | 2020-02-23T17:35:51.000Z | Antario/Features/Aimbot.cpp | NoelWriter/mirrorcsgo | bb527561df68cff5283472d5fed0492c58c2a078 | [
"MIT"
] | null | null | null | Antario/Features/Aimbot.cpp | NoelWriter/mirrorcsgo | bb527561df68cff5283472d5fed0492c58c2a078 | [
"MIT"
] | null | null | null | #include "Aimbot.h"
#include <Windows.h>
#include "..\Utils\Utils.h"
#include "..\Utils\GlobalVars.h"
#include "..\Hooks.h"
#include "..\SDK\Studio.hpp"
#include "..\Utils\Interfaces.h"
#include "Backtrack.h"
#include "Ragewall.h"
#include "..\SDK\CGlobalVarsBase.h"
// Declare classes
Aimbot g_Aimbot;
// Movefix vari... | 25.560311 | 212 | 0.702923 | NoelWriter |
bdcf0f01282935ff7d2ab422e5bd939e63177e61 | 168 | hpp | C++ | samples/dependency/mod1.hpp | tlammi/rtfw | 7a993e83b4d4e6ba7179219fd3667f42a2ae07e6 | [
"MIT"
] | null | null | null | samples/dependency/mod1.hpp | tlammi/rtfw | 7a993e83b4d4e6ba7179219fd3667f42a2ae07e6 | [
"MIT"
] | null | null | null | samples/dependency/mod1.hpp | tlammi/rtfw | 7a993e83b4d4e6ba7179219fd3667f42a2ae07e6 | [
"MIT"
] | null | null | null | #pragma once
#include "rtfw/module.hpp"
struct Mod1{
static rtfw::Config config(){
return {};
}
Mod1(const rtfw::Config& conf);
~Mod1();
int foo() const;
};
| 11.2 | 32 | 0.630952 | tlammi |
bdcf8103512a939066841b0b34a20d00468ab4d8 | 426 | cpp | C++ | Codigos de ejercicios en cpp/Programa 7.cpp | EulisesBrazon/ejercicios-c- | 700235bced91bc6f508ca6d203ea7ee7c241006c | [
"Apache-2.0"
] | null | null | null | Codigos de ejercicios en cpp/Programa 7.cpp | EulisesBrazon/ejercicios-c- | 700235bced91bc6f508ca6d203ea7ee7c241006c | [
"Apache-2.0"
] | null | null | null | Codigos de ejercicios en cpp/Programa 7.cpp | EulisesBrazon/ejercicios-c- | 700235bced91bc6f508ca6d203ea7ee7c241006c | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int numi,i=0,j,d=1;
double numf;
cout<<"introdusca el numero con decimales"<<endl;
cin>>numf;
numi=numf;
cout<<"los decimales son: "<<numf-numi<<endl;
while(numi!=numf)
{
numf=numf*10;
numi=numf;
i++;
}
for(j=0;j<i;j++)
{
d=d*10;
... | 14.689655 | 50 | 0.617371 | EulisesBrazon |
bdcfaa5bf8f2dcc3f0fbd772617a3b1ccf2e1d73 | 278 | cpp | C++ | acmicpc.net/source/1094.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | 7 | 2019-06-26T07:03:32.000Z | 2020-11-21T16:12:51.000Z | acmicpc.net/source/1094.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | null | null | null | acmicpc.net/source/1094.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | 9 | 2019-02-28T03:34:54.000Z | 2020-12-18T03:02:40.000Z | // 1094. 막대기
// 2019.05.14
// 수학, 시뮬레이션
#include<iostream>
using namespace std;
int ans;
int main()
{
int x;
cin >> x;
// 주어진 수를 이진법으로 나타냈을 때 1의 갯수가 정답이 된다.
for (int i = 0; i < 7; i++)
{
if (x % 2 == 1)
{
ans++;
}
x /= 2;
}
cout << ans << endl;
return 0;
}
| 11.12 | 38 | 0.5 | tdm1223 |
bdcfb0daf2af74f715cf7c4e3cc6754f2282e048 | 2,578 | cpp | C++ | src/test/scalar/functions/nonsmooth_functions/fmax_test.cpp | stan-dev/nomad | a21149ef9f4d53a198e6fdb06cfd0363d3df69e7 | [
"BSD-3-Clause"
] | 23 | 2015-12-11T20:06:57.000Z | 2021-01-15T18:59:58.000Z | src/test/scalar/functions/nonsmooth_functions/fmax_test.cpp | stan-dev/nomad | a21149ef9f4d53a198e6fdb06cfd0363d3df69e7 | [
"BSD-3-Clause"
] | 2 | 2015-12-15T08:12:01.000Z | 2016-07-17T01:36:56.000Z | src/test/scalar/functions/nonsmooth_functions/fmax_test.cpp | stan-dev/nomad | a21149ef9f4d53a198e6fdb06cfd0363d3df69e7 | [
"BSD-3-Clause"
] | 2 | 2017-10-13T17:40:34.000Z | 2021-03-08T19:17:51.000Z | #include <gtest/gtest.h>
#include <math.h>
#include <string>
#include <src/autodiff/base_functor.hpp>
#include <src/scalar/functions.hpp>
#include <src/test/io_validation.hpp>
#include <src/test/finite_difference.hpp>
template <typename T>
class fmax_vv_eval_func: public nomad::base_functor<T> {
public:
T operator... | 26.57732 | 61 | 0.674166 | stan-dev |
bdd07f3e25045c2a320767f0cc7ebb9dd36c64db | 1,349 | cpp | C++ | Olympiad Solutions/URI/2155.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | Olympiad Solutions/URI/2155.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | Olympiad Solutions/URI/2155.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | // Ivan Carvalho
// Solution to https://www.urionlinejudge.com.br/judge/problems/view/2155
#include <cstdio>
#include <cmath>
#include <vector>
#include <algorithm>
using namespace std;
const double EPS = 1e-5;
vector<int> resposta;
double menor;
int TC,X[10],Y[10];
int main(){
scanf("%d",&TC);
for(int tc = 1;tc <= T... | 22.864407 | 111 | 0.547813 | Ashwanigupta9125 |
7524e0acb600b2a45b765da97e5fdbbbe1ba34c3 | 780 | hpp | C++ | OracleSolaris_OpenJDK_Builder/patches-17/patch-src_hotspot_os__cpu_solaris__x86_prefetch__solaris__x86.inline.hpp | gco/oraclesolaris-contrib | f9905a8758a50a44720f5500e19b5f2528c6b6c8 | [
"UPL-1.0"
] | null | null | null | OracleSolaris_OpenJDK_Builder/patches-17/patch-src_hotspot_os__cpu_solaris__x86_prefetch__solaris__x86.inline.hpp | gco/oraclesolaris-contrib | f9905a8758a50a44720f5500e19b5f2528c6b6c8 | [
"UPL-1.0"
] | null | null | null | OracleSolaris_OpenJDK_Builder/patches-17/patch-src_hotspot_os__cpu_solaris__x86_prefetch__solaris__x86.inline.hpp | gco/oraclesolaris-contrib | f9905a8758a50a44720f5500e19b5f2528c6b6c8 | [
"UPL-1.0"
] | null | null | null | $NetBSD$
Support SunOS/gcc.
--- src/hotspot/os_cpu/solaris_x86/prefetch_solaris_x86.inline.hpp.orig 2019-01-08 12:44:56.000000000 +0000
+++ src/hotspot/os_cpu/solaris_x86/prefetch_solaris_x86.inline.hpp
@@ -34,14 +34,22 @@ extern "C" {
inline void Prefetch::read (void *loc, intx interval) {
#ifdef AMD64
+# ifdef... | 26 | 107 | 0.669231 | gco |
75257ec45114719315a6b0b30fe555553cb0b65e | 1,492 | cpp | C++ | UtilityAdapter.cpp | RideReport/ActivityPredictionPipeline | 6a018c0e1d6313628f15848abad3cf67d7bb89b3 | [
"MIT"
] | 1 | 2021-03-02T22:46:49.000Z | 2021-03-02T22:46:49.000Z | UtilityAdapter.cpp | RideReport/ActivityPredictionPipeline | 6a018c0e1d6313628f15848abad3cf67d7bb89b3 | [
"MIT"
] | 1 | 2021-03-25T23:31:37.000Z | 2021-03-25T23:31:37.000Z | UtilityAdapter.cpp | RideReport/ActivityPredictionPipeline | 6a018c0e1d6313628f15848abad3cf67d7bb89b3 | [
"MIT"
] | null | null | null | #include "UtilityAdapter.hpp"
#include "util.hpp"
#include "ActivityPredictor/Utility.cpp"
#include <vector>
using namespace std;
UtilityAdapter::UtilityAdapter() {
}
UtilityAdapter::~UtilityAdapter() {
}
py::object UtilityAdapter::interpolateSplineRegular(
py::list& inputX, py::list& inputY,
float n... | 29.84 | 138 | 0.691689 | RideReport |
7525cd500fbb8b24fd11dcd145610a42237a65ea | 602 | cpp | C++ | 1518_num_water_bottles/num_water_bottles.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | 1518_num_water_bottles/num_water_bottles.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | 1518_num_water_bottles/num_water_bottles.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | /*
* @Date: 2021-12-17 08:27:08
* @Author: Mengsen Wang
* @LastEditors: Mengsen Wang
* @LastEditTime: 2021-12-17 08:28:14
*/
#include <cassert>
class Solution {
public:
int numWaterBottles(int numBottles, int numExchange) {
return numBottles >= numExchange
? (numBottles - numExchange) / (nu... | 25.083333 | 80 | 0.631229 | Mengsen-W |
7525d8877b6baa99806313d5b32e5d590cddfc32 | 1,714 | cpp | C++ | PAT-Advanced/PAT1067-SortWithSwap(0,i).cpp | Ad147/LeetCode-Solutions | 2ddbaef7387887f030825616cafde87db7d2022e | [
"MIT"
] | null | null | null | PAT-Advanced/PAT1067-SortWithSwap(0,i).cpp | Ad147/LeetCode-Solutions | 2ddbaef7387887f030825616cafde87db7d2022e | [
"MIT"
] | null | null | null | PAT-Advanced/PAT1067-SortWithSwap(0,i).cpp | Ad147/LeetCode-Solutions | 2ddbaef7387887f030825616cafde87db7d2022e | [
"MIT"
] | null | null | null | // PAT1067-SortWithSwap(0,i).cpp
// Ad
// Init: 19Sep07
// Score: 19/25
// Time: 60'
// Runtime: 3 ms
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
size_t sortBySwap0(vector<int> &numbers);
bool isSorted(vector<int> &numbers, vector<int>::iterator &next);
// Main -----------------... | 19.930233 | 74 | 0.476663 | Ad147 |
7525ee335dccc6d83d77e2e2b127f5e275e24764 | 1,140 | hpp | C++ | graphseg/include/graphseg/graph/segment_graph.hpp | Shikugawa/graphseg-cpp | 9415b768b9e5d903e1a7eb37c81a777e4fe178b6 | [
"MIT"
] | 3 | 2019-09-22T02:53:25.000Z | 2021-09-11T00:11:02.000Z | graphseg/include/graphseg/graph/segment_graph.hpp | Shikugawa/graphseg-cpp | 9415b768b9e5d903e1a7eb37c81a777e4fe178b6 | [
"MIT"
] | 12 | 2019-06-18T15:24:13.000Z | 2020-01-13T01:28:43.000Z | graphseg/include/graphseg/graph/segment_graph.hpp | Shikugawa/graphseg-cpp | 9415b768b9e5d903e1a7eb37c81a777e4fe178b6 | [
"MIT"
] | 1 | 2019-09-21T12:33:40.000Z | 2019-09-21T12:33:40.000Z | #ifndef GRAPHSEG_CPP_GRAPHSEG_GRAPH_SEGMENT_GRAPH_HPP
#define GRAPHSEG_CPP_GRAPHSEG_GRAPH_SEGMENT_GRAPH_HPP
#include "graphseg/language.hpp"
#include "graphseg/sentence.hpp"
#include <vector>
namespace GraphSeg::graph {
using namespace GraphSeg;
/// <summary>
/// This abstruct class must be inherited if graph handl... | 23.75 | 71 | 0.711404 | Shikugawa |
7525f6edd892f2295f908348079655f1af062b87 | 3,904 | cpp | C++ | unittests/test_description_t.cpp | lysevi/solidarity | c4febebce2247b5ab628bea226aa5e7e4805a1e5 | [
"Apache-2.0"
] | 1 | 2019-08-16T06:52:10.000Z | 2019-08-16T06:52:10.000Z | unittests/test_description_t.cpp | lysevi/solidarity | c4febebce2247b5ab628bea226aa5e7e4805a1e5 | [
"Apache-2.0"
] | 10 | 2019-05-14T13:25:41.000Z | 2019-08-19T07:05:07.000Z | unittests/test_description_t.cpp | lysevi/solidarity | c4febebce2247b5ab628bea226aa5e7e4805a1e5 | [
"Apache-2.0"
] | null | null | null | #include "test_description_t.h"
void test_description_t::init(size_t cluster_size, bool add_listener_handler) {
std::vector<unsigned short> ports(cluster_size);
std::iota(ports.begin(), ports.end(), (unsigned short)(8000));
std::cerr << "start nodes" << std::endl;
unsigned short client_port = 10000;
for (au... | 34.245614 | 85 | 0.605533 | lysevi |
75281987192fa1e36b360f492c8b9003ad1f48e8 | 1,657 | cpp | C++ | src/glstates.cpp | praxik/mapgen | 1073b48973811b167fd1e765f0c2a4704312ed0e | [
"Apache-2.0"
] | null | null | null | src/glstates.cpp | praxik/mapgen | 1073b48973811b167fd1e765f0c2a4704312ed0e | [
"Apache-2.0"
] | null | null | null | src/glstates.cpp | praxik/mapgen | 1073b48973811b167fd1e765f0c2a4704312ed0e | [
"Apache-2.0"
] | null | null | null | #include "glstates.h"
//============================================================================
//============================================================================
GlStates::GlStates()
{
}
//============================================================================
//================================... | 26.301587 | 78 | 0.244418 | praxik |
752bef9c0139ec3a06c1ccbe5a86cc96d62f4f75 | 1,468 | cpp | C++ | generator_kf/kanonizator_gen.cpp | tomasbrod/tbboinc | c125cc355b2dc9a1e536b5e5ded028d4e7f4613a | [
"MIT"
] | null | null | null | generator_kf/kanonizator_gen.cpp | tomasbrod/tbboinc | c125cc355b2dc9a1e536b5e5ded028d4e7f4613a | [
"MIT"
] | 4 | 2020-09-07T15:54:45.000Z | 2020-09-27T16:47:16.000Z | generator_kf/kanonizator_gen.cpp | tomasbrod/tbboinc | c125cc355b2dc9a1e536b5e5ded028d4e7f4613a | [
"MIT"
] | null | null | null | #include "kanonizator_gen.h"
#include "massivy_gen.h"
int kanonizator::chform;
kvadrat kanonizator::formy[];
bool kanonizator::operator()(const int X[]){
for(int i = 0; i < por; i++){
formy[0][i * (por + 1)] = i;
formy[0][ (i + 1) * (por - 1)] = diag[lin][i];
}
for(int i = 0, t; i < n; i++){
t = ... | 29.959184 | 85 | 0.523842 | tomasbrod |
752c533e5117d7424a117759df77b30c9b5487e8 | 14,123 | hpp | C++ | Tools/bjs.u/External/include/stratosphere/ipc/ipc_service_session.hpp | BrewJS/HAC.js | 998f82cbfe5ed245825b0ad8252f09691788dc6c | [
"MIT"
] | 103 | 2018-07-10T10:51:36.000Z | 2022-03-24T15:55:35.000Z | Tools/bjs.u/External/include/stratosphere/ipc/ipc_service_session.hpp | BrewJS/HAC.js | 998f82cbfe5ed245825b0ad8252f09691788dc6c | [
"MIT"
] | 5 | 2018-07-10T10:55:24.000Z | 2019-04-12T13:04:46.000Z | Tools/bjs.u/External/include/stratosphere/ipc/ipc_service_session.hpp | BrewJS/HAC.js | 998f82cbfe5ed245825b0ad8252f09691788dc6c | [
"MIT"
] | 15 | 2018-07-10T10:16:25.000Z | 2022-03-31T12:50:12.000Z | /*
* Copyright (c) 2018 Atmosphère-NX
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHO... | 39.560224 | 162 | 0.509311 | BrewJS |
752eaa39f006be3d52a790b98bde796b2ff5940c | 1,074 | cpp | C++ | src/output_files.cpp | KevinBoxuGao/temperatureTimeAdjustor | 2e8941bf7217d21afdc21c9ce217cd30d6b85238 | [
"MIT"
] | null | null | null | src/output_files.cpp | KevinBoxuGao/temperatureTimeAdjustor | 2e8941bf7217d21afdc21c9ce217cd30d6b85238 | [
"MIT"
] | null | null | null | src/output_files.cpp | KevinBoxuGao/temperatureTimeAdjustor | 2e8941bf7217d21afdc21c9ce217cd30d6b85238 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <fstream>
#include "output_files.h"
OutputFiles::OutputFiles(std::vector<std::string> base_data) {
base_data_template = base_data;
}
void OutputFiles::Adjust(const std::string file_name) {
std::ofstream output("output/"+file_n... | 29.027027 | 76 | 0.588454 | KevinBoxuGao |
752ef4801fa2b7e66302ee2220b535a4e80006c4 | 18,894 | cpp | C++ | ugene/src/plugins_3rdparty/hmm3/src/hmmer3/easel/esl_stats.cpp | iganna/lspec | c75cba3e4fa9a46abeecbf31b5d467827cf4fec0 | [
"MIT"
] | null | null | null | ugene/src/plugins_3rdparty/hmm3/src/hmmer3/easel/esl_stats.cpp | iganna/lspec | c75cba3e4fa9a46abeecbf31b5d467827cf4fec0 | [
"MIT"
] | null | null | null | ugene/src/plugins_3rdparty/hmm3/src/hmmer3/easel/esl_stats.cpp | iganna/lspec | c75cba3e4fa9a46abeecbf31b5d467827cf4fec0 | [
"MIT"
] | null | null | null | /* Foundation for the statistics modules.
*
* Contents:
* 1. The stats API.
* 5. License and copyright information.
*
* SRE, Tue Jul 19 10:57:44 2005
* SVN $Id: esl_stats.c 341 2009-06-01 12:21:15Z eddys $
*/
#include <hmmer3/easel/esl_config.h>
#include <math.h>
#include <hmmer3/easel/easel.h>
#include "esl_st... | 33.921005 | 99 | 0.502011 | iganna |
7530917c3844fce27baf17f6adea6b26be9d4b49 | 711 | hh | C++ | pes.timed/utilities.hh | petercfontana/TimeSolver | fb3bc660af90f58255e2526bee9a36fc9357deb0 | [
"MIT"
] | 4 | 2018-12-19T14:30:27.000Z | 2022-03-20T20:19:20.000Z | pes.timed/utilities.hh | petercfontana/TimeSolver | fb3bc660af90f58255e2526bee9a36fc9357deb0 | [
"MIT"
] | null | null | null | pes.timed/utilities.hh | petercfontana/TimeSolver | fb3bc660af90f58255e2526bee9a36fc9357deb0 | [
"MIT"
] | 2 | 2019-04-24T03:18:20.000Z | 2019-09-13T07:49:00.000Z | /**
* Utility functions.
*
* @author Jeroen Keiren
* @copyright MIT Licence, see the accompanying LICENCE.txt.
*/
#ifndef UTILITIES_HH
#define UTILITIES_HH
#include <algorithm>
#include <vector>
inline bool is_power_of_two(std::size_t n) {
if (n == 0) {
return false;
} else {
return (n & (n - ... | 19.216216 | 82 | 0.625879 | petercfontana |
75322367403aaca015a42f6e39d6753e1577dc63 | 523 | cpp | C++ | cf/1076-A.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | cf/1076-A.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | cf/1076-A.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define inf 0x3f3f3f
#define mem(a,b) memset( a,b,sizeof a)
int main()
{
std::ios::sync_with_stdio(false);
int n;
cin>>n;
{
string s;
int flag=0;
cin>>s;
for(int i=1;i<n;i++)
{
if(s[i]<s[... | 16.870968 | 39 | 0.422562 | PIPIKAI |
753684b0b912c8ed8363f4832c72102bf0f02363 | 286 | cpp | C++ | 04_coding_tasks/test/test_015_3Sum.cpp | JWidder/CodingCPP | 00dbf5b0b201299597dfca5c4566d160f780db4f | [
"MIT"
] | null | null | null | 04_coding_tasks/test/test_015_3Sum.cpp | JWidder/CodingCPP | 00dbf5b0b201299597dfca5c4566d160f780db4f | [
"MIT"
] | 2 | 2021-09-27T04:15:22.000Z | 2021-10-09T04:53:33.000Z | 04_coding_tasks/test/test_015_3Sum.cpp | JWidder/CodingCPP | 00dbf5b0b201299597dfca5c4566d160f780db4f | [
"MIT"
] | 1 | 2021-09-08T14:18:28.000Z | 2021-09-08T14:18:28.000Z | #include <vector>
#include "pch.h"
#include "LibSolution.h"
using namespace std;
using namespace leetcode;
TEST(Test_015_3Sum,test_input) {
auto test_value = std::vector<vector<int>>();
std::vector<vector<int>> result = threeSum(vector<int>());
EXPECT_EQ(result, test_value);
}
| 17.875 | 59 | 0.723776 | JWidder |
7537688857c28cfdf4f8e8a83ed13a9e75d4d8f7 | 2,646 | cpp | C++ | underworld/libUnderworld/Underworld/Function/src/FEMCoordinate.cpp | rbeucher/underworld2 | 76991c475ac565e092e99a364370fbae15bb40ac | [
"CC-BY-4.0"
] | null | null | null | underworld/libUnderworld/Underworld/Function/src/FEMCoordinate.cpp | rbeucher/underworld2 | 76991c475ac565e092e99a364370fbae15bb40ac | [
"CC-BY-4.0"
] | null | null | null | underworld/libUnderworld/Underworld/Function/src/FEMCoordinate.cpp | rbeucher/underworld2 | 76991c475ac565e092e99a364370fbae15bb40ac | [
"CC-BY-4.0"
] | null | null | null | /*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
** **
** This file forms part of the Underworld geophysics modelling application. **
** ... | 31.879518 | 156 | 0.584278 | rbeucher |
753fa5393f2d98fc97880bd2303ab884c682b90e | 14,527 | cc | C++ | test/rebuild_graphs.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 40 | 2015-03-10T07:55:39.000Z | 2021-06-11T10:13:56.000Z | test/rebuild_graphs.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 297 | 2015-04-30T10:02:04.000Z | 2022-03-09T13:31:54.000Z | test/rebuild_graphs.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 29 | 2015-08-03T10:04:15.000Z | 2021-11-25T12:21:00.000Z | /*
** Copyright 2013-2015 Centreon
**
** 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 t... | 37.634715 | 80 | 0.560129 | centreon-lab |
7545c681e53b1ebe28e8935987ae09cadcf6336a | 272 | cc | C++ | src/sampler/smart_random_sampler.cc | TheTimmy/decord | 67bfd14e4ae50b2751e7b92b73c6d73df35cbdaf | [
"Apache-2.0"
] | 762 | 2020-01-16T02:44:50.000Z | 2022-03-30T10:03:36.000Z | src/sampler/smart_random_sampler.cc | TheTimmy/decord | 67bfd14e4ae50b2751e7b92b73c6d73df35cbdaf | [
"Apache-2.0"
] | 161 | 2020-01-20T07:47:38.000Z | 2022-03-11T15:19:10.000Z | src/sampler/smart_random_sampler.cc | TheTimmy/decord | 67bfd14e4ae50b2751e7b92b73c6d73df35cbdaf | [
"Apache-2.0"
] | 77 | 2020-01-23T17:47:20.000Z | 2022-03-28T10:12:19.000Z | /*!
* Copyright (c) 2019 by Contributors if not otherwise specified
* \file smart_random_sampler.cc
* \brief Smart random sampler for faster video random access
*/
#include "smart_random_sampler.h"
namespace decord {
namespace sampler {
} // sampler
} // decord
| 19.428571 | 65 | 0.727941 | TheTimmy |
7548b8d28cfaf93f262dc4fb920fd71abdd5f27c | 72,073 | cpp | C++ | libnd4j/tests_cpu/layers_tests/DeclarableOpsTests8.cpp | DongJiHui/deeplearning4j | bd9d42d946d6c99f04b9ea1b99c9f703d5b7b854 | [
"Apache-2.0"
] | null | null | null | libnd4j/tests_cpu/layers_tests/DeclarableOpsTests8.cpp | DongJiHui/deeplearning4j | bd9d42d946d6c99f04b9ea1b99c9f703d5b7b854 | [
"Apache-2.0"
] | null | null | null | libnd4j/tests_cpu/layers_tests/DeclarableOpsTests8.cpp | DongJiHui/deeplearning4j | bd9d42d946d6c99f04b9ea1b99c9f703d5b7b854 | [
"Apache-2.0"
] | null | null | null | //
// @author Yurii Shyrma (iuriish@yahoo.com), created on 10.06.2018
//
#include "testlayers.h"
#include <ops/declarable/CustomOperations.h>
#include <NDArray.h>
// #include <array/NDArrayList.h>
using namespace nd4j;
class DeclarableOpsTests8 : public testing::Test {
public:
DeclarableOpsTests8() {
... | 32.83508 | 218 | 0.537316 | DongJiHui |
754db7453767ee9b479c44bcdf3863c1d8d05b5a | 2,674 | cpp | C++ | engine/src/Component/MeshComponents/Skeleton.cpp | kyle-piddington/MoonEngine | 243cce7988ee089d0fc51d817e2736501e019702 | [
"MIT",
"BSD-3-Clause"
] | 5 | 2017-01-20T00:23:23.000Z | 2018-07-17T07:48:04.000Z | engine/src/Component/MeshComponents/Skeleton.cpp | kyle-piddington/MoonEngine | 243cce7988ee089d0fc51d817e2736501e019702 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | engine/src/Component/MeshComponents/Skeleton.cpp | kyle-piddington/MoonEngine | 243cce7988ee089d0fc51d817e2736501e019702 | [
"MIT",
"BSD-3-Clause"
] | 2 | 2017-01-24T05:09:37.000Z | 2021-02-18T14:42:00.000Z | #include "Skeleton.h"
#include "Util/Logger.h"
#include <glm/gtc/type_ptr.hpp>
using namespace MoonEngine;
Bone::Bone(std::string name, int boneIdx, glm::mat4 offsetTransform):
name(name),
offsetTransform(offsetTransform),
localAnimTransform(1.0),
animTransform(1.0),
idx(boneId... | 23.051724 | 110 | 0.677636 | kyle-piddington |
75509c46638cb4b7864fb3e59fdd4b16bb0b3c22 | 2,894 | cpp | C++ | qlo/objects/obj_correlation_hw.cpp | eehlers/QuantLibAddin | bcbd9d1c0e7a4f4ce608470c6576d6e772305980 | [
"BSD-3-Clause"
] | 5 | 2016-07-13T14:05:01.000Z | 2022-01-24T15:15:17.000Z | qlo/objects/obj_correlation_hw.cpp | eehlers/QuantLibAddin | bcbd9d1c0e7a4f4ce608470c6576d6e772305980 | [
"BSD-3-Clause"
] | null | null | null | qlo/objects/obj_correlation_hw.cpp | eehlers/QuantLibAddin | bcbd9d1c0e7a4f4ce608470c6576d6e772305980 | [
"BSD-3-Clause"
] | 12 | 2016-01-28T07:18:28.000Z | 2021-11-15T03:48:52.000Z |
// BEGIN buffer b_lib_grp_cpp
#include <qlo/objects/obj_correlation.hpp>
#include <ql/legacy/libormarketmodels/lmlinexpcorrmodel.hpp>
#include <ql/models/marketmodels/correlations/cotswapfromfwdcorrelation.hpp>
#include <ql/models/marketmodels/correlations/timehomogeneousforwardcorrelation.hpp>
#include <ql/models... | 40.760563 | 127 | 0.681064 | eehlers |
7550c1f3aa84e96d53e506d0a5367d6d41ef9d00 | 3,475 | cpp | C++ | Visual Mercutio/zBaseLib/PSS_CommandLine.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 1 | 2022-01-31T06:24:24.000Z | 2022-01-31T06:24:24.000Z | Visual Mercutio/zBaseLib/PSS_CommandLine.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-04-11T15:50:42.000Z | 2021-06-05T08:23:04.000Z | Visual Mercutio/zBaseLib/PSS_CommandLine.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-01-08T00:55:18.000Z | 2022-01-31T06:24:18.000Z | /****************************************************************************
* ==> PSS_CommandLine -----------------------------------------------------*
****************************************************************************
* Description : Provides an encapsulated command line *
* Devel... | 35.10101 | 106 | 0.410072 | Jeanmilost |
75549c50168b16f8a7826162a16824d7a2a3f06b | 3,513 | cc | C++ | RecoVertex/KinematicFitPrimitives/src/TransientTrackKinematicParticle.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | RecoVertex/KinematicFitPrimitives/src/TransientTrackKinematicParticle.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | RecoVertex/KinematicFitPrimitives/src/TransientTrackKinematicParticle.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | #include "RecoVertex/KinematicFitPrimitives/interface/TransientTrackKinematicParticle.h"
#include "TrackingTools/TrajectoryState/interface/FreeTrajectoryState.h"
using namespace reco;
TransientTrackKinematicParticle::TransientTrackKinematicParticle
(const KinematicState& kineState, float& chiSquared,
float& degrees... | 35.846939 | 122 | 0.769143 | nistefan |
7555fbe32477355e35b71e315e4754e44783a59b | 4,357 | cpp | C++ | libnaucrates/src/parser/CParseHandlerQueryOutput.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-03-05T10:08:56.000Z | 2019-03-05T10:08:56.000Z | libnaucrates/src/parser/CParseHandlerQueryOutput.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | libnaucrates/src/parser/CParseHandlerQueryOutput.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 EMC Corp.
//
// @filename:
// CParseHandlerQueryOutput.cpp
//
// @doc:
// Implementation of the SAX parse handler class parsing the list of
// output column references in a DXL query.
//---------... | 27.402516 | 126 | 0.585495 | khannaekta |
755ad07141cddf984ead1963498ce2c26f79700d | 506 | hpp | C++ | src/hashes/PCompressG.hpp | funkysash/catena-variants | 5baf9c34b96e495a52f8ded6612187c7f0033efb | [
"MIT"
] | 4 | 2015-04-18T14:33:27.000Z | 2016-02-20T11:11:25.000Z | src/hashes/PCompressG.hpp | funkysash/catena-variants | 5baf9c34b96e495a52f8ded6612187c7f0033efb | [
"MIT"
] | null | null | null | src/hashes/PCompressG.hpp | funkysash/catena-variants | 5baf9c34b96e495a52f8ded6612187c7f0033efb | [
"MIT"
] | 3 | 2015-04-18T07:10:43.000Z | 2018-03-26T13:55:16.000Z | #pragma once
#include "../hashfast.hpp"
namespace Catena_Variants{
class PCompressG : public HashFast<PCompressG>
{
public:
PCompressG();
~PCompressG() = default;
PCompressG(PCompressG const&) = default;
PCompressG& operator=(PCompressG const&) = default;
virtual void Hash(int vindex, const uint8_t* i1... | 16.866667 | 70 | 0.699605 | funkysash |
755cd3720a4409d5bb29bba57511e2c3d301de1e | 36,420 | cpp | C++ | src/llbox.cpp | pullmoll/lualept | bfe6da74088e23fc895faa30dfb1cbde9d42a53d | [
"BSD-3-Clause"
] | 2 | 2018-05-17T12:05:43.000Z | 2018-11-22T14:59:23.000Z | src/llbox.cpp | pullmoll/lualept | bfe6da74088e23fc895faa30dfb1cbde9d42a53d | [
"BSD-3-Clause"
] | null | null | null | src/llbox.cpp | pullmoll/lualept | bfe6da74088e23fc895faa30dfb1cbde9d42a53d | [
"BSD-3-Clause"
] | null | null | null | /************************************************************************
* Copyright (c) Jürgen Buchmüller <pullmoll@t-online.de>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of sourc... | 31.947368 | 99 | 0.602663 | pullmoll |
755df6c09e2897a81c198066f2d04534be599859 | 464 | hpp | C++ | src/xpcc/communication/ros.hpp | roboterclubaachen/xpcc | 010924901947381d20e83b838502880eb2ffea72 | [
"BSD-3-Clause"
] | 161 | 2015-01-13T15:52:06.000Z | 2020-02-13T01:26:04.000Z | src/xpcc/communication/ros.hpp | salkinium/xpcc | 010924901947381d20e83b838502880eb2ffea72 | [
"BSD-3-Clause"
] | 281 | 2015-01-06T12:46:40.000Z | 2019-01-06T13:06:57.000Z | src/xpcc/communication/ros.hpp | salkinium/xpcc | 010924901947381d20e83b838502880eb2ffea72 | [
"BSD-3-Clause"
] | 51 | 2015-03-03T19:56:12.000Z | 2020-03-22T02:13:36.000Z | // coding: utf-8
/* Copyright (c) 2017, Sascha Schade (strongly-typed)
* All Rights Reserved.
*
* The file is part of the xpcc library and is released under the 3-clause BSD
* license. See the file `LICENSE` for the full license governing this code.
*/
// -----------------------------------------------------------... | 29 | 79 | 0.592672 | roboterclubaachen |
755e6cbfc63ea35c5b2feac071c653d0304a3916 | 1,685 | cpp | C++ | Year2/S1/DataStructureClass/1/magic.cpp | Avvco/myRepository | ae369c9a8161f6bef3c19fd00ee4b04e186a8bcc | [
"BSD-3-Clause"
] | null | null | null | Year2/S1/DataStructureClass/1/magic.cpp | Avvco/myRepository | ae369c9a8161f6bef3c19fd00ee4b04e186a8bcc | [
"BSD-3-Clause"
] | null | null | null | Year2/S1/DataStructureClass/1/magic.cpp | Avvco/myRepository | ae369c9a8161f6bef3c19fd00ee4b04e186a8bcc | [
"BSD-3-Clause"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
void magic (int n)
// create a magic square of size n, n is odd
{
const int MaxSize = 51; // maximum square size
int square[MaxSize][MaxSize], k, l;
// check correctness of n
if ((n > MaxSize) || (n < 1)) {cerr << "Error!..n out of range \n"; return;}
else if (... | 25.923077 | 98 | 0.523442 | Avvco |
7561fb5f651de22dd8052cf17263ddc627770736 | 1,404 | hpp | C++ | code/editors/xrWeatherEditor/property_editor_color.hpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 7 | 2018-03-27T12:36:07.000Z | 2020-06-26T11:31:52.000Z | code/editors/xrWeatherEditor/property_editor_color.hpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 2 | 2018-05-26T23:17:14.000Z | 2019-04-14T18:33:27.000Z | code/editors/xrWeatherEditor/property_editor_color.hpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 5 | 2020-10-18T11:55:26.000Z | 2022-03-28T07:21:35.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : property_editor_color.hpp
// Created : 12.12.2007
// Modified : 12.12.2007
// Author : Dmitriy Iassenev
// Description : property editor color class
////////////////////////////////////////////////////////////////////////////... | 40.114286 | 87 | 0.698006 | Rikoshet-234 |
7563163af8aa1eb81c91b01fbda4c734f33d5f9b | 5,114 | cpp | C++ | src/MyMeshFactory.cpp | nicholaschiasson/N3DIL | 5b598b340c4850cb06f92194f48aa10c76a578aa | [
"MIT"
] | null | null | null | src/MyMeshFactory.cpp | nicholaschiasson/N3DIL | 5b598b340c4850cb06f92194f48aa10c76a578aa | [
"MIT"
] | 5 | 2015-10-19T03:35:56.000Z | 2015-11-03T22:19:26.000Z | src/MyMeshFactory.cpp | nicholaschiasson/N3DIL | 5b598b340c4850cb06f92194f48aa10c76a578aa | [
"MIT"
] | null | null | null | #include "MyMeshFactory.h"
#include "MyIncludes.h"
#include "MyShaderManager.h"
#include <GL/glew.h>
#include <vector>
std::map<const char *, MyIndexedVertexArray *> *MyMeshFactory::meshes = new std::map<const char *, MyIndexedVertexArray *>();
MyIndexedVertexArray * MyMeshFactory::CreateQuad(const char * meshName... | 30.440476 | 155 | 0.655847 | nicholaschiasson |
75651d4ca257edd91258e6281cbc0b49b6f8543c | 718 | cpp | C++ | leetcode.com/Weekly Contest 217/3/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2020-08-20T11:02:49.000Z | 2020-08-20T11:02:49.000Z | leetcode.com/Weekly Contest 217/3/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | null | null | null | leetcode.com/Weekly Contest 217/3/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2022-01-01T23:23:13.000Z | 2022-01-01T23:23:13.000Z | #include <bits/stdc++.h>
using namespace std;
static int x = []() {
ios::sync_with_stdio(false);
cin.tie(0);
return 0;
}();
typedef long long ll;
int d[200100];
class Solution {
public:
int minMoves(vector<int>& nums, int limit) {
memset(d, 0, sizeof(d));
int n = nums.size();
for (int i = 0; i ... | 19.405405 | 52 | 0.456825 | sky-bro |
7566112585d82dcc28f739100d28e45b5eb655f6 | 659 | cpp | C++ | C++/scope/initializer/factor/Factor.cpp | fantaosha/SCOPE | 30519b52822d04fb7b5bf6f45e73227ad4260738 | [
"MIT"
] | 26 | 2021-10-10T18:34:38.000Z | 2022-03-03T03:00:40.000Z | C++/scope/initializer/factor/Factor.cpp | fantaosha/SCOPE | 30519b52822d04fb7b5bf6f45e73227ad4260738 | [
"MIT"
] | 3 | 2021-12-24T07:28:11.000Z | 2022-02-02T21:26:55.000Z | C++/scope/initializer/factor/Factor.cpp | fantaosha/SCOPE | 30519b52822d04fb7b5bf6f45e73227ad4260738 | [
"MIT"
] | 7 | 2021-11-06T15:23:08.000Z | 2022-02-28T03:40:03.000Z | #include <scope/initializer/factor/Factor.h>
namespace scope {
namespace Initializer {
Factor::Evaluation::Evaluation() : status(Status::INVALID) {}
int Factor::Evaluation::reset() {
status = Status::INVALID;
return 0;
}
int Factor::Evaluation::clear() {
reset();
error.resize(0);
return 0;
}
Factor::Li... | 16.897436 | 67 | 0.679818 | fantaosha |
7566b292f5f7309c950ee83a1a94b9ae354b8e38 | 709 | cpp | C++ | C++/CheckPalindrome.cpp | keshavgbpecdelhi/HacktoberFest-2021 | 0ac2ed4c575750bb5ceb79e0d1fc519d7e6054f8 | [
"MIT"
] | 7 | 2021-10-01T05:10:17.000Z | 2021-10-30T07:19:27.000Z | C++/CheckPalindrome.cpp | keshavgbpecdelhi/HacktoberFest-2021 | 0ac2ed4c575750bb5ceb79e0d1fc519d7e6054f8 | [
"MIT"
] | 32 | 2021-10-01T06:08:04.000Z | 2021-11-03T11:12:22.000Z | C++/CheckPalindrome.cpp | keshavgbpecdelhi/HacktoberFest-2021 | 0ac2ed4c575750bb5ceb79e0d1fc519d7e6054f8 | [
"MIT"
] | 20 | 2021-10-01T06:06:44.000Z | 2021-10-31T05:31:49.000Z | #include <iostream>
#include <cstring>
using namespace std;
#include <cstring>
bool helper(char input[], int start, int end)
{
if (start >= end)
{
return true;
}
if (input[start] != input[end])
{
return false;
}
bool smallcheck = helper(input, start + 1, end... | 17.292683 | 57 | 0.507757 | keshavgbpecdelhi |
7568d34b86c115cac9c3fc9bc91f05f92c81063a | 9,568 | cxx | C++ | ltnc/compiler/LtncStmtCompiler.cxx | JeneLitsch/LitanCompiler | be11dfd6f1a31a41a3bda2d41b1bfaa5066c9f18 | [
"MIT"
] | null | null | null | ltnc/compiler/LtncStmtCompiler.cxx | JeneLitsch/LitanCompiler | be11dfd6f1a31a41a3bda2d41b1bfaa5066c9f18 | [
"MIT"
] | null | null | null | ltnc/compiler/LtncStmtCompiler.cxx | JeneLitsch/LitanCompiler | be11dfd6f1a31a41a3bda2d41b1bfaa5066c9f18 | [
"MIT"
] | null | null | null | #include "LtncStmtCompiler.hxx"
#include <iostream>
std::string ltnc::StmtCompiler::compileProgram(CompilerPack & compPkg, std::shared_ptr<Program> program){
compPkg.getScopes().addFunctionScope(FxSignature(Type::VOI, "", {}));
for(const auto & function : program->functions) {
compPkg.registerFunction(function);
}... | 31.166124 | 176 | 0.670778 | JeneLitsch |
7569814fe03bd52b1f908481feb674ec9ab60a40 | 431 | hpp | C++ | src/queries/decl_inserter.hpp | wojtex/dragon-cxx | 3aa4a200d2e9826d9ab9d8dd5823891fbed9b563 | [
"MIT"
] | null | null | null | src/queries/decl_inserter.hpp | wojtex/dragon-cxx | 3aa4a200d2e9826d9ab9d8dd5823891fbed9b563 | [
"MIT"
] | null | null | null | src/queries/decl_inserter.hpp | wojtex/dragon-cxx | 3aa4a200d2e9826d9ab9d8dd5823891fbed9b563 | [
"MIT"
] | null | null | null | #pragma once
#include "../node.hpp"
#include "../visitor.hpp"
namespace dragon {
class DeclarationToContainerInserter : public Visitor
{
Root decl;
public:
void insert(Handle declaration, Handle container)
{
assert(declaration.valid());
decl = declaration;
container->accept(*this);
assert(!decl.v... | 18.73913 | 54 | 0.677494 | wojtex |
756a61b072edec80aaafb8086774d89542624af5 | 4,260 | cc | C++ | packager/media/crypto/sample_aes_ec3_cryptor_unittest.cc | Videofy/shaka-packager | 33792ca2daae5d3fdcd7a8f72ddb3d2455db2ece | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-01-13T03:50:58.000Z | 2021-01-13T03:50:58.000Z | packager/media/crypto/sample_aes_ec3_cryptor_unittest.cc | Videofy/shaka-packager | 33792ca2daae5d3fdcd7a8f72ddb3d2455db2ece | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | packager/media/crypto/sample_aes_ec3_cryptor_unittest.cc | Videofy/shaka-packager | 33792ca2daae5d3fdcd7a8f72ddb3d2455db2ece | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "packager/media/crypto/sample_aes_ec3_cryptor.h"
#include <gmock/gmock.h>
#include <gtes... | 35.5 | 79 | 0.634507 | Videofy |
756b02f53e20da847b4df56d9776986cb471d084 | 615 | cpp | C++ | sort/shellSort.cpp | auniquesun/Data-Structure-and-Algorithms | 10baee11e8e0ff84873d37e91a7b360e22a5d9a0 | [
"Apache-2.0"
] | 1 | 2018-05-09T03:12:06.000Z | 2018-05-09T03:12:06.000Z | sort/shellSort.cpp | auniquesun/Data-Structure-and-Algorithms | 10baee11e8e0ff84873d37e91a7b360e22a5d9a0 | [
"Apache-2.0"
] | null | null | null | sort/shellSort.cpp | auniquesun/Data-Structure-and-Algorithms | 10baee11e8e0ff84873d37e91a7b360e22a5d9a0 | [
"Apache-2.0"
] | 1 | 2021-04-23T13:37:41.000Z | 2021-04-23T13:37:41.000Z | #include <vector>
/*
introduction: 希尔排序是对直接插入排序的改进
problem: 用希尔排序法,将数组nums从小到大排序
idea: 首先要理解直接插入排序的过程,当需要做很多次移动时,
直接插入排序的效率和嵌套循环法接近
其次,避免这种大量移动操作,希尔排序把数组切分成多个片段,
每次排序使得每个片段内部有序;大的片段再做插入排序的时候,
就不需要大量移动,当然少量移动是必须的
*/
void shellSort(vector<int> &nums){
int n = nums.size();
// 最外层的循环,变量gap可以来自用... | 20.5 | 61 | 0.557724 | auniquesun |
756cc73054eed2306d800f1605884d9d15d4f5c5 | 21,664 | cpp | C++ | tinyxml/ticpp.cpp | blazeroni/foxc | c143edb63b90a6c500193ea5eac95f9c89e3c4ff | [
"MIT"
] | null | null | null | tinyxml/ticpp.cpp | blazeroni/foxc | c143edb63b90a6c500193ea5eac95f9c89e3c4ff | [
"MIT"
] | null | null | null | tinyxml/ticpp.cpp | blazeroni/foxc | c143edb63b90a6c500193ea5eac95f9c89e3c4ff | [
"MIT"
] | null | null | null | /*
http://code.google.com/p/ticpp/
Copyright (c) 2006 Ryan Pusztai, Ryan Mulder
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 t... | 21.816717 | 121 | 0.627723 | blazeroni |
756cd09cc0f9cd3a7c6976d9afe11ce8c618ec29 | 2,448 | cpp | C++ | src/CMacierzKw.cpp | MarutTomasz/ZadanieSzablonDlaRownan | 17e311c18d6cc999896d1d0612ee21c79cae3ec5 | [
"MIT"
] | null | null | null | src/CMacierzKw.cpp | MarutTomasz/ZadanieSzablonDlaRownan | 17e311c18d6cc999896d1d0612ee21c79cae3ec5 | [
"MIT"
] | null | null | null | src/CMacierzKw.cpp | MarutTomasz/ZadanieSzablonDlaRownan | 17e311c18d6cc999896d1d0612ee21c79cae3ec5 | [
"MIT"
] | null | null | null | #include "SMacierzKw.cpp"
// NA STALE RZECZYWISTE
template class MacierzKw<Wektor,double,5>;
template std::istream & operator >> (std::istream &strm, MacierzKw<Wektor,double,5> &M);
template std::ostream & operator << (std::ostream &strm, const MacierzKw<Wektor,double,5> &M);
template MacierzKw<Wektor,double,5> oper... | 56.930233 | 141 | 0.786356 | MarutTomasz |
756e2ee22783eb8f303db5cce4e715651441929c | 2,251 | hpp | C++ | Sockets/include/Sockets/TcpClientSocket.hpp | sanjeev-kumar-m/BrokerDataServer | 2db8a1bd4bd04a9dadcb4c1762f11a8e1e52d46e | [
"MIT"
] | null | null | null | Sockets/include/Sockets/TcpClientSocket.hpp | sanjeev-kumar-m/BrokerDataServer | 2db8a1bd4bd04a9dadcb4c1762f11a8e1e52d46e | [
"MIT"
] | null | null | null | Sockets/include/Sockets/TcpClientSocket.hpp | sanjeev-kumar-m/BrokerDataServer | 2db8a1bd4bd04a9dadcb4c1762f11a8e1e52d46e | [
"MIT"
] | null | null | null | #pragma once
/**
* @file TcpClientSocket.hpp
*
* This file declare Sockets::TcpClientSocket class
*/
#define SNJ_MAKE_NONCOPYABLE(c)\
private: \
c(const c&) noexcept = delete;\
c& operator=(const c&) noexcept = delete
#define SNJ_MAKE_NONMOVABLE(c)\
private: \
c(... | 22.068627 | 54 | 0.594847 | sanjeev-kumar-m |
756f670964911aa43db3ffecb19b90d49ec24ce8 | 3,163 | hpp | C++ | Contrib-Intel/RSD-PSME-RMM/common/ipmi/include/ipmi/command/sdv/rsd/get_mdr_data_region_status.hpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 5 | 2019-11-11T07:57:26.000Z | 2022-03-28T08:26:53.000Z | Contrib-Intel/RSD-PSME-RMM/common/ipmi/include/ipmi/command/sdv/rsd/get_mdr_data_region_status.hpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 3 | 2019-09-05T21:47:07.000Z | 2019-09-17T18:10:45.000Z | Contrib-Intel/RSD-PSME-RMM/common/ipmi/include/ipmi/command/sdv/rsd/get_mdr_data_region_status.hpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 11 | 2019-07-20T00:16:32.000Z | 2022-01-11T14:17:48.000Z | /*!
* @copyright Copyright (c) 2017-2019 Intel Corporation.
*
* 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 applicabl... | 31.949495 | 108 | 0.751502 | opencomputeproject |
75719231b1fba36f05c18ad5341bd59d35278aa9 | 1,720 | cpp | C++ | apal_cxx/src/cahn_hilliard.cpp | davidkleiven/APAL | f3d549498d312b98f55aad5db7c4ad061785ecbf | [
"MIT"
] | null | null | null | apal_cxx/src/cahn_hilliard.cpp | davidkleiven/APAL | f3d549498d312b98f55aad5db7c4ad061785ecbf | [
"MIT"
] | 15 | 2019-05-23T07:18:19.000Z | 2019-12-17T08:01:10.000Z | apal_cxx/src/cahn_hilliard.cpp | davidkleiven/APAL | f3d549498d312b98f55aad5db7c4ad061785ecbf | [
"MIT"
] | null | null | null | #include "cahn_hilliard.hpp"
#include <cmath>
using namespace std;
CahnHilliard::CahnHilliard(const vector<double> &coefficients): coeff(coefficients){};
double CahnHilliard::evaluate(double x) const{
double res = 0.0;
unsigned int N = coeff.size();
for (unsigned int i=0;i<coeff.size();i++){
res ... | 22.933333 | 86 | 0.619186 | davidkleiven |
7573d27b822f9ed4aafa3b1abcb6da87c02d5fbe | 3,759 | cxx | C++ | Code/Applications/Utilities/DiffOperMain.cxx | NIRALUser/AtlasWerks | a074ca208ab41a6ed89c1f0b70004998f7397681 | [
"BSD-3-Clause"
] | 3 | 2016-04-26T05:06:06.000Z | 2020-08-01T09:46:54.000Z | Code/Applications/Utilities/DiffOperMain.cxx | scalphunters/AtlasWerks | 9d224bf8db628805368fcb7973ac578937b6b595 | [
"BSD-3-Clause"
] | 1 | 2018-11-27T21:53:48.000Z | 2019-05-13T15:21:31.000Z | Code/Applications/Utilities/DiffOperMain.cxx | scalphunters/AtlasWerks | 9d224bf8db628805368fcb7973ac578937b6b595 | [
"BSD-3-Clause"
] | 2 | 2019-01-24T02:07:17.000Z | 2019-12-11T17:27:42.000Z | /* ================================================================
*
* AtlasWerks Project
*
* Copyright (c) Sarang C. Joshi, Bradley C. Davis, J. Samuel Preston,
* Linh K. Ha. All rights reserved. See Copyright.txt or for details.
*
* This software is distributed WITHOUT ANY WARRANTY; without even the
* impli... | 30.811475 | 152 | 0.675712 | NIRALUser |
75767d931443362c32668b37eea2f87147f4bf51 | 1,467 | hpp | C++ | vgl_compute_api/template/advance.hpp | afanasyev-ilya/VectorGraphLibrary | caf2013260fc89b3afd0a5f5006a2aa85fc290e7 | [
"Apache-2.0"
] | 8 | 2020-11-27T15:43:52.000Z | 2021-09-28T14:22:04.000Z | vgl_compute_api/template/advance.hpp | afanasyev-ilya/VectorGraphLibrary | caf2013260fc89b3afd0a5f5006a2aa85fc290e7 | [
"Apache-2.0"
] | 1 | 2021-03-04T18:55:12.000Z | 2021-03-04T18:55:12.000Z | vgl_compute_api/template/advance.hpp | afanasyev-ilya/VectorGraphLibrary | caf2013260fc89b3afd0a5f5006a2aa85fc290e7 | [
"Apache-2.0"
] | null | null | null | #pragma once
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
template <typename EdgeOperation, typename VertexPreprocessOperation,
typename VertexPostprocessOperation, typename CollectiveEdgeOperation, typename CollectiveVertexPreprocessOpe... | 66.681818 | 124 | 0.504431 | afanasyev-ilya |
757694c82c162d4ec357dbe70e8f57109ac12453 | 19,209 | cpp | C++ | mainwindow.cpp | adricatena/EA3-ControlHorno- | fcb0c8a6edddc09f2b03c83e97331ceddac9987e | [
"MIT"
] | null | null | null | mainwindow.cpp | adricatena/EA3-ControlHorno- | fcb0c8a6edddc09f2b03c83e97331ceddac9987e | [
"MIT"
] | null | null | null | mainwindow.cpp | adricatena/EA3-ControlHorno- | fcb0c8a6edddc09f2b03c83e97331ceddac9987e | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "qcustomplot.h"
//------------Variables generales----------
QByteArray pedido_com, datos_com;
QString SetPoint;
int n = 0, h = 0, l = 0, j = 0, r = 0, k = 0, w = 0, q = 0, f = 0;
float i = 0;
bool ok, Boton = false, SP_Send = false, SP_Seted = false,... | 36.728489 | 165 | 0.544641 | adricatena |
757c539a328d5eea7fef40c39262bb64741accd5 | 1,257 | cpp | C++ | C++/1679.MaxNumberOfK-SumPairs.cpp | SSKale1/LeetCode-Solutions | dd6ff16f6af1e96acd036b6e9c2a5cc11f0e330b | [
"MIT"
] | null | null | null | C++/1679.MaxNumberOfK-SumPairs.cpp | SSKale1/LeetCode-Solutions | dd6ff16f6af1e96acd036b6e9c2a5cc11f0e330b | [
"MIT"
] | null | null | null | C++/1679.MaxNumberOfK-SumPairs.cpp | SSKale1/LeetCode-Solutions | dd6ff16f6af1e96acd036b6e9c2a5cc11f0e330b | [
"MIT"
] | null | null | null | /*class Solution {
public:
int maxOperations(vector<int>& nums, int k) {
int ops = 0;
sort(begin(nums), end(nums));
int start = 0;
int end = nums.size()-1;
while(start<end)
{
int temp = nums[start]+nums[end];
if(temp==k)
{
... | 20.274194 | 104 | 0.405728 | SSKale1 |
757d59b96b2afcc57f24535990100505d52adc8e | 6,238 | cpp | C++ | Test/Automation/ResourceTest/Helper_dll/Helper_dll.cpp | SecurityInnovation/Holodeck | 54b97675a73b668f8eec8d9c8a8c7733e1a53db3 | [
"MIT"
] | 35 | 2015-05-16T06:36:47.000Z | 2021-08-31T15:32:09.000Z | Test/Automation/ResourceTest/Helper_dll/Helper_dll.cpp | crypticterminal/Holodeck | 54b97675a73b668f8eec8d9c8a8c7733e1a53db3 | [
"MIT"
] | 3 | 2015-06-18T06:16:51.000Z | 2017-11-16T23:23:59.000Z | Test/Automation/ResourceTest/Helper_dll/Helper_dll.cpp | crypticterminal/Holodeck | 54b97675a73b668f8eec8d9c8a8c7733e1a53db3 | [
"MIT"
] | 10 | 2015-04-07T14:45:48.000Z | 2021-11-14T15:14:45.000Z | // Helper_dll.cpp : Defines the entry point for the DLL application.
//
#include "Helper_dll.h"
#include <commctrl.h>
#include <string>
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DL... | 33.718919 | 201 | 0.730683 | SecurityInnovation |
757d70ec3f31ffdac6aeb7da598032de7bdd2dd0 | 3,344 | cpp | C++ | src/concepts.cpp | WillCoates/QuickCalc | 49a4946c5c9b3781d1d5820815bda8395a8ed0dd | [
"MIT"
] | null | null | null | src/concepts.cpp | WillCoates/QuickCalc | 49a4946c5c9b3781d1d5820815bda8395a8ed0dd | [
"MIT"
] | null | null | null | src/concepts.cpp | WillCoates/QuickCalc | 49a4946c5c9b3781d1d5820815bda8395a8ed0dd | [
"MIT"
] | null | null | null | #include "concepts.hpp"
#include <unordered_map>
#include <cmath>
using namespace quickcalc;
namespace {
constexpr double QC_FALSE = 0.0;
constexpr double QC_TRUE = 1.0;
constexpr double QC_EPSILON = 1e-15;
// C++17 doesn't define a pi constant, so we'll use our own
constexpr double QC_PI = 3.1415... | 29.857143 | 105 | 0.546651 | WillCoates |
757f61db691e31831d70cb2a3caf1aecd9bc9107 | 1,954 | cpp | C++ | fboss/agent/hw/switch_asics/CredoF104Asic.cpp | ekmixon/fboss | 56de7da7763bae1b67e28f92323534b21abc129b | [
"BSD-3-Clause"
] | 834 | 2015-03-10T18:12:28.000Z | 2022-03-31T20:16:17.000Z | fboss/agent/hw/switch_asics/CredoF104Asic.cpp | ekmixon/fboss | 56de7da7763bae1b67e28f92323534b21abc129b | [
"BSD-3-Clause"
] | 82 | 2015-04-07T08:48:29.000Z | 2022-03-11T21:56:58.000Z | fboss/agent/hw/switch_asics/CredoF104Asic.cpp | ekmixon/fboss | 56de7da7763bae1b67e28f92323534b21abc129b | [
"BSD-3-Clause"
] | 296 | 2015-03-11T03:45:37.000Z | 2022-03-14T22:54:22.000Z | // Copyright 2004-present Facebook. All Rights Reserved.
#include "fboss/agent/hw/switch_asics/CredoF104Asic.h"
#include "fboss/agent/FbossError.h"
namespace facebook::fboss {
bool CredoF104Asic::isSupported(Feature feature) const {
switch (feature) {
case HwAsic::Feature::MACSEC:
case HwAsic::Feature::REM... | 32.566667 | 74 | 0.748209 | ekmixon |
7581db2587f589f531c5f9eadccdbc415a036ec9 | 904 | cpp | C++ | tests/test_main.cpp | dvetutnev/tst_concurrent_fs_access | ed7d218c3031e016765fb6a67489c49baf794fdd | [
"MIT"
] | null | null | null | tests/test_main.cpp | dvetutnev/tst_concurrent_fs_access | ed7d218c3031e016765fb6a67489c49baf794fdd | [
"MIT"
] | null | null | null | tests/test_main.cpp | dvetutnev/tst_concurrent_fs_access | ed7d218c3031e016765fb6a67489c49baf794fdd | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <boost/locale/generator.hpp>
#include <boost/filesystem/path.hpp>
#include <iostream>
#include <locale>
#include <cstdlib>
#include <ctime>
struct separated : std::numpunct<char>
{
virtual std::string do_grouping() const {
return "\03";
}
};
int m... | 23.179487 | 68 | 0.608407 | dvetutnev |
7583b3a28127b9261c8fffb0e9d0d738586a89a8 | 3,133 | cpp | C++ | test/client_performance_test.cpp | penggan666/miniob | 23a3c30e06b06958f70aa9dc2c31e70354e2b708 | [
"Apache-2.0"
] | 1 | 2022-03-02T03:41:13.000Z | 2022-03-02T03:41:13.000Z | test/client_performance_test.cpp | Wind-Gone/OceanBase-Contest-Miniob | b16d6b2c6785abf99eb816ff8c7417bafd1ddf96 | [
"MIT"
] | null | null | null | test/client_performance_test.cpp | Wind-Gone/OceanBase-Contest-Miniob | b16d6b2c6785abf99eb816ff8c7417bafd1ddf96 | [
"MIT"
] | null | null | null | /* Copyright (c) 2021 Xie Meiyi(xiemeiyi@hust.edu.cn) and OceanBase and/or its affiliates. All rights reserved.
miniob is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/Mulan... | 25.471545 | 111 | 0.673795 | penggan666 |
758a31c0af23360e53d7a26e9beb6315892c4cb9 | 548 | cpp | C++ | Interview Preparation Kit - CPP/01. Warm-up Challenges/002. Counting Valleys.cpp | atul070/interview | 505444570bba6e9d5672272eea5f3784834d2d9e | [
"Apache-2.0"
] | 1 | 2020-10-18T22:06:12.000Z | 2020-10-18T22:06:12.000Z | Interview Preparation Kit - CPP/01. Warm-up Challenges/002. Counting Valleys.cpp | atul070/interview | 505444570bba6e9d5672272eea5f3784834d2d9e | [
"Apache-2.0"
] | null | null | null | Interview Preparation Kit - CPP/01. Warm-up Challenges/002. Counting Valleys.cpp | atul070/interview | 505444570bba6e9d5672272eea5f3784834d2d9e | [
"Apache-2.0"
] | null | null | null | // Problem: https://www.hackerrank.com/challenges/counting-valleys/problem
// Score: 15
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
string str;
cin >> str;
int ans = 0;
int current_level = 0;
for (char c: str){
if ... | 15.657143 | 75 | 0.452555 | atul070 |
758dabfa6a951d27c84c1942f757adac38e03b30 | 6,531 | cpp | C++ | iOS/CustomAudioUnit.cpp | DaCao/Sonic | 0bc327b97560c83cb6cc22b2b2a1e399554194d8 | [
"MIT"
] | null | null | null | iOS/CustomAudioUnit.cpp | DaCao/Sonic | 0bc327b97560c83cb6cc22b2b2a1e399554194d8 | [
"MIT"
] | null | null | null | iOS/CustomAudioUnit.cpp | DaCao/Sonic | 0bc327b97560c83cb6cc22b2b2a1e399554194d8 | [
"MIT"
] | null | null | null | //
// CustomAudioUnit.cpp
// Demo
//
// Created by Philadelphia Game Lab on 6/11/14.
// Copyright (c) 2014 Philadelphia Game Lab. All rights reserved.
//
#include "CustomAudioUnit.h"
#define BUF_SIZE 512
#define BIT_DEPTH 16
#define SAMPLE_RATE 44100
static OSStatus recordingCallback (void *inRefCon, AudioUnitRe... | 37.32 | 203 | 0.740009 | DaCao |
759013fd7f21515fac3ea4e693f277b4004598b3 | 9,994 | cpp | C++ | common/quote.cpp | chwash/wwiv | 0d67acdede788f8a4fd2b442e92caeb411552359 | [
"Apache-2.0"
] | null | null | null | common/quote.cpp | chwash/wwiv | 0d67acdede788f8a4fd2b442e92caeb411552359 | [
"Apache-2.0"
] | null | null | null | common/quote.cpp | chwash/wwiv | 0d67acdede788f8a4fd2b442e92caeb411552359 | [
"Apache-2.0"
] | null | null | null | /**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)1998-2022, WWIV Software Services */
/* ... | 32.553746 | 100 | 0.555033 | chwash |
759518dc8b02f8bb90fc9519b95b32ce60120ca1 | 3,433 | cpp | C++ | pod/DekrispatorDroneBox/drifter.cpp | MrBlueXav/DaisyExamples | 41f5e3a646c24b2bab8bcbc9bbe5b36efd7f6400 | [
"MIT"
] | 1 | 2021-11-05T19:04:32.000Z | 2021-11-05T19:04:32.000Z | pod/DekrispatorDroneBox/drifter.cpp | MrBlueXav/DaisyExamples | 41f5e3a646c24b2bab8bcbc9bbe5b36efd7f6400 | [
"MIT"
] | null | null | null | pod/DekrispatorDroneBox/drifter.cpp | MrBlueXav/DaisyExamples | 41f5e3a646c24b2bab8bcbc9bbe5b36efd7f6400 | [
"MIT"
] | 1 | 2020-08-16T07:36:34.000Z | 2020-08-16T07:36:34.000Z | /**
******************************************************************************
* File Name : drifter.c
* Author : Xavier Halgand
* Date :
* Description : random segment waveform generator
******************************************************************************
*/
/*
*... | 33.009615 | 97 | 0.429945 | MrBlueXav |
759765b242750efa9faffcc463984dd4281bf6a8 | 1,923 | cxx | C++ | src/CallContext.cxx | ToolFramework/CPyCppyy | 55df2786e7bb839b0550e3cd34332f0d241412ee | [
"BSD-3-Clause-LBNL"
] | 13 | 2021-07-31T01:21:29.000Z | 2022-03-16T16:54:48.000Z | src/CallContext.cxx | ToolFramework/CPyCppyy | 55df2786e7bb839b0550e3cd34332f0d241412ee | [
"BSD-3-Clause-LBNL"
] | 3 | 2021-09-21T20:16:45.000Z | 2022-03-16T16:53:24.000Z | src/CallContext.cxx | ToolFramework/CPyCppyy | 55df2786e7bb839b0550e3cd34332f0d241412ee | [
"BSD-3-Clause-LBNL"
] | 2 | 2021-09-21T13:37:31.000Z | 2022-02-10T10:38:14.000Z | // Bindings
#include "CPyCppyy.h"
#include "CallContext.h"
//- data _____________________________________________________________________
namespace CPyCppyy {
CallContext::ECallFlags CallContext::sMemoryPolicy = CallContext::kUseStrict;
// this is just a data holder for linking; actual value is set in CPyCppyyMo... | 31.016129 | 84 | 0.560062 | ToolFramework |
75989185cc35048f02733b64c8f4595aaa93b4e1 | 5,600 | cc | C++ | src/graphics/lib/compute/tests/common/arc_parameters.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 210 | 2019-02-05T12:45:09.000Z | 2022-03-28T07:59:06.000Z | src/graphics/lib/compute/tests/common/arc_parameters.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 56 | 2021-06-03T03:16:25.000Z | 2022-03-20T01:07:44.000Z | src/graphics/lib/compute/tests/common/arc_parameters.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 73 | 2019-03-06T18:55:23.000Z | 2022-03-26T12:04:51.000Z | // Copyright 2020 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 "tests/common/arc_parameters.h"
#include <math.h>
// All computations taken from http://www.w3.org/TR/SVG/implnote.html
arc_endpoint_parameters... | 29.473684 | 80 | 0.613036 | allansrc |
7598a31d36c90da882a8847f2526c9b2c7c26177 | 6,073 | cc | C++ | bindings/ruby/ext/memory.cc | mgallien/typelib | e27ef63564f623c9362d13c6f443c9944c351841 | [
"CECILL-B"
] | 1 | 2021-06-03T22:56:53.000Z | 2021-06-03T22:56:53.000Z | bindings/ruby/ext/memory.cc | mgallien/typelib | e27ef63564f623c9362d13c6f443c9944c351841 | [
"CECILL-B"
] | null | null | null | bindings/ruby/ext/memory.cc | mgallien/typelib | e27ef63564f623c9362d13c6f443c9944c351841 | [
"CECILL-B"
] | null | null | null | #include "typelib.hh"
#include <typelib/value_ops.hh>
#include <ruby.h>
#include <ruby/st.h>
using namespace Typelib;
using namespace std;
using namespace typelib_ruby;
#undef VERBOSE
static VALUE cMemoryZone;
static st_table* MemoryTable;
/* For those who are wondering, st_data_t is always the size of an void*
* (... | 26.290043 | 105 | 0.671497 | mgallien |
759bbd0bdc623a447a4cbbd4b64d262ee35ec4ac | 3,317 | cpp | C++ | remote_core/remote_core/src/Controllers/HardwareController.cpp | DaveAMoore/remote_core | a46280a7cee5d52ca08d11ea2de518a7d5e12ca5 | [
"MIT"
] | null | null | null | remote_core/remote_core/src/Controllers/HardwareController.cpp | DaveAMoore/remote_core | a46280a7cee5d52ca08d11ea2de518a7d5e12ca5 | [
"MIT"
] | null | null | null | remote_core/remote_core/src/Controllers/HardwareController.cpp | DaveAMoore/remote_core | a46280a7cee5d52ca08d11ea2de518a7d5e12ca5 | [
"MIT"
] | null | null | null | //
// HardwareController.cpp
// remote_core
//
// Created by David Moore on 11/5/18.
// Copyright © 2018 David Moore. All rights reserved.
//
#include <algorithm>
#include <thread>
#include <sys/stat.h>
#include "HardwareController.hpp"
#include "CommandLine.hpp"
#define REMOTE_CONFIGURATION_FILE_DIRECTORY "."
u... | 31.590476 | 135 | 0.644558 | DaveAMoore |
759c382ca4554b7ae1d4feae680b6589035ad5de | 58,082 | cpp | C++ | source_code/system_hydraulic/source_code/models/coupling/Hyd_Coupling_Point_RV2FP.cpp | dabachma/ProMaIDes_src | 3fa6263c46f89abbdb407f2e1643843d54eb6ccc | [
"BSD-3-Clause"
] | null | null | null | source_code/system_hydraulic/source_code/models/coupling/Hyd_Coupling_Point_RV2FP.cpp | dabachma/ProMaIDes_src | 3fa6263c46f89abbdb407f2e1643843d54eb6ccc | [
"BSD-3-Clause"
] | null | null | null | source_code/system_hydraulic/source_code/models/coupling/Hyd_Coupling_Point_RV2FP.cpp | dabachma/ProMaIDes_src | 3fa6263c46f89abbdb407f2e1643843d54eb6ccc | [
"BSD-3-Clause"
] | null | null | null | #include "source_code\Hyd_Headers_Precompiled.h"
//#include "Hyd_Coupling_Point_RV2FP.h"
//constructor
Hyd_Coupling_Point_RV2FP::Hyd_Coupling_Point_RV2FP(void){
this->river_profile_index_up=-1;
this->river_profile_up=NULL;
this->river_profile_index_down=-1;
this->river_profile_down=NULL;
this->floodplain_elem_ind... | 42.180102 | 229 | 0.779088 | dabachma |
75a164d4007883829cd61f5607ef3becd3d494d6 | 724 | cc | C++ | steam/asyncjob.cc | TBK/argonx | 0165caad474d83f020fe29d85e802fae9adecc23 | [
"BSD-2-Clause"
] | 22 | 2019-01-15T12:18:25.000Z | 2022-03-24T03:39:59.000Z | steam/asyncjob.cc | TBK/argonx | 0165caad474d83f020fe29d85e802fae9adecc23 | [
"BSD-2-Clause"
] | 3 | 2019-07-13T16:16:16.000Z | 2020-07-30T10:07:30.000Z | steam/asyncjob.cc | TBK/argonx | 0165caad474d83f020fe29d85e802fae9adecc23 | [
"BSD-2-Clause"
] | 2 | 2019-06-19T10:09:32.000Z | 2020-06-29T15:16:58.000Z | #include <precompiled.hh>
#include "asyncjob.hh"
namespace Steam {
static std::vector<AsyncJob> jobs;
AsyncJob NewAsyncJob(AsyncJob::Callback callback) {
auto jobId = JobManager::GetNextNonCallJobId();
auto r = AsyncJob{jobId, callback};
jobs.push_back(r);
return r;
}
void RunAsyncJobs() {
... | 21.294118 | 58 | 0.589779 | TBK |
75a4cf4f88bead27d7ad6c09dcf664a02bf5e92c | 1,459 | hxx | C++ | include/distant/wow/entities/detail/impl/player.hxx | Ostoic/distant_wow | d9ae4e6226c8d0981abc4dc3c941ea60d8e22e6b | [
"MIT"
] | 1 | 2022-02-19T21:37:43.000Z | 2022-02-19T21:37:43.000Z | include/distant/wow/entities/detail/impl/player.hxx | Ostoic/distant_wow | d9ae4e6226c8d0981abc4dc3c941ea60d8e22e6b | [
"MIT"
] | null | null | null | include/distant/wow/entities/detail/impl/player.hxx | Ostoic/distant_wow | d9ae4e6226c8d0981abc4dc3c941ea60d8e22e6b | [
"MIT"
] | 1 | 2022-02-19T21:37:46.000Z | 2022-02-19T21:37:46.000Z | #pragma once
#include "../player.hpp"
#include "../../../memory/operations.hpp"
#include "../../../offsets.hpp"
#include "../../../error/game_error.hpp"
namespace distant::wow::entities::detail
{
template <>
inline memory::address get_name_ptr<player>(wow::guid guid)
{
const auto mask = memory::read<wow::dword>(... | 32.422222 | 128 | 0.690199 | Ostoic |
b5a8a1ac3a4b8386793567fb5f5c8e3df08810e2 | 2,898 | cpp | C++ | SDK/ARKSurvivalEvolved_AnimNotify_PlayParticleEffect_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_AnimNotify_PlayParticleEffect_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_AnimNotify_PlayParticleEffect_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | // ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_AnimNotify_PlayParticleEffect_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//----------------------------------------------------... | 33.310345 | 170 | 0.729124 | 2bite |
b5ad7767f42f8083858b5b5fa003472aee4f61df | 58,630 | hpp | C++ | lib/timewhoop/include/pure-abstract-syntax.hpp | NVlabs/data-orchestration | ad86e65fbd99bb7670700cab7c7031bf232c831f | [
"BSD-3-Clause"
] | 5 | 2019-04-13T02:00:35.000Z | 2019-07-22T18:23:25.000Z | lib/timewhoop/include/pure-abstract-syntax.hpp | NVlabs/data-orchestration | ad86e65fbd99bb7670700cab7c7031bf232c831f | [
"BSD-3-Clause"
] | null | null | null | lib/timewhoop/include/pure-abstract-syntax.hpp | NVlabs/data-orchestration | ad86e65fbd99bb7670700cab7c7031bf232c831f | [
"BSD-3-Clause"
] | 2 | 2019-06-23T18:14:21.000Z | 2019-12-29T02:34:33.000Z | /* Copyright (c) 2018, NVIDIA CORPORATION. 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 condi... | 30.712415 | 434 | 0.616033 | NVlabs |
b5b49adcc9d6561e7b9c201c5ec67a30dcd2b12f | 1,040 | cpp | C++ | Codeforces/C. Dominant Piranha.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | 5 | 2021-02-14T17:48:21.000Z | 2022-01-24T14:29:44.000Z | Codeforces/C. Dominant Piranha.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | Codeforces/C. Dominant Piranha.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
int t, n, x;
scanf("%d",&t);
while(t--){
scanf("%d",&n);
//int arr[n+3];
vector<int> vec;
for(int i=0;i<n;i++){
scanf("%d",&x);
//scanf("%d",&arr[i]);
vec.push_back(x);
}
//sort(vec.begin(), vec.end());
int len = vec.size();
... | 15.522388 | 46 | 0.411538 | Sowmik23 |
b5b57f2a3fbb08f02ab3de418a54ab1c6d58e0b3 | 7,026 | cpp | C++ | src/bat.cpp | beegee-tokyo/MHC-Sunnyboy-RAK13300 | f2e2dc240a9fce3d4b85de426c234f3e10c43c66 | [
"Unlicense"
] | 1 | 2021-12-09T10:39:27.000Z | 2021-12-09T10:39:27.000Z | src/bat.cpp | beegee-tokyo/MHC-Sunnyboy-RAK13300 | f2e2dc240a9fce3d4b85de426c234f3e10c43c66 | [
"Unlicense"
] | null | null | null | src/bat.cpp | beegee-tokyo/MHC-Sunnyboy-RAK13300 | f2e2dc240a9fce3d4b85de426c234f3e10c43c66 | [
"Unlicense"
] | null | null | null | /**
* @file bat.cpp
* @author Bernd Giesecke (bernd.giesecke@rakwireless.com)
* @brief Battery reading functions
* @version 0.1
* @date 2021-04-24
*
* @copyright Copyright (c) 2021
*
*/
#include "main.h"
/** Millivolts per LSB 3.0V ADC range and 12-bit ADC resolution = 3000mV/4096 */
#define VBAT_MV_PER_LSB... | 26.714829 | 124 | 0.687447 | beegee-tokyo |
b5b60c6c501899f1a53093c64571419171ce1db9 | 7,861 | cc | C++ | src/tools/callgraph.cc | sbc100/wasp | 766c04335f3766da1441b891471e9b762e938056 | [
"Apache-2.0"
] | null | null | null | src/tools/callgraph.cc | sbc100/wasp | 766c04335f3766da1441b891471e9b762e938056 | [
"Apache-2.0"
] | null | null | null | src/tools/callgraph.cc | sbc100/wasp | 766c04335f3766da1441b891471e9b762e938056 | [
"Apache-2.0"
] | null | null | null | //
// Copyright 2019 WebAssembly Community Group participants
//
// 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... | 26.921233 | 80 | 0.62244 | sbc100 |
b5b793b32977564b5d59ef6aae49482a58422ddf | 641 | cpp | C++ | Projects/JogoKartas/src/main.cpp | 0lilauro/PDSII | d9453ef7a053295b9ed9bc871a90e1952aa571ee | [
"MIT"
] | null | null | null | Projects/JogoKartas/src/main.cpp | 0lilauro/PDSII | d9453ef7a053295b9ed9bc871a90e1952aa571ee | [
"MIT"
] | null | null | null | Projects/JogoKartas/src/main.cpp | 0lilauro/PDSII | d9453ef7a053295b9ed9bc871a90e1952aa571ee | [
"MIT"
] | null | null | null | #include <iostream>
#include "Partida.hpp"
#include "Jogador.hpp"
using namespace std;
int main() {
int numero_cartas_por_jogador;
int numero_jogadores;
cin >> numero_jogadores;
cin >> numero_cartas_por_jogador;
Partida *p = new Partida(numero_jogadores);
string nomeJogador;
int numero_pontos_carta;
in... | 20.677419 | 66 | 0.694228 | 0lilauro |
b5b9be3b4ed25510e205e3ddeb9281f1583c1547 | 95 | cpp | C++ | Exercise one: Toolchain/helloThreads/newfile.cpp | LilyOSullivan/CDDLabs | 4f2c597b5d9429683b4f60ebd32bcd11a0f51829 | [
"MIT"
] | null | null | null | Exercise one: Toolchain/helloThreads/newfile.cpp | LilyOSullivan/CDDLabs | 4f2c597b5d9429683b4f60ebd32bcd11a0f51829 | [
"MIT"
] | null | null | null | Exercise one: Toolchain/helloThreads/newfile.cpp | LilyOSullivan/CDDLabs | 4f2c597b5d9429683b4f60ebd32bcd11a0f51829 | [
"MIT"
] | null | null | null | #include <stdio.h>
int main(void)
{
int i;
for(i=0;i<10;i++)
printf("%d",i);
}
| 11.875 | 23 | 0.473684 | LilyOSullivan |
b5ba5a5e1c4328c3b399677985032754b2633537 | 153 | cc | C++ | src/circuit/cmt_circuit_builder.cc | hyraxZK/libpws | cc1b7dfdafb3d01b025cdb72ed83379d205a0147 | [
"Apache-2.0"
] | null | null | null | src/circuit/cmt_circuit_builder.cc | hyraxZK/libpws | cc1b7dfdafb3d01b025cdb72ed83379d205a0147 | [
"Apache-2.0"
] | null | null | null | src/circuit/cmt_circuit_builder.cc | hyraxZK/libpws | cc1b7dfdafb3d01b025cdb72ed83379d205a0147 | [
"Apache-2.0"
] | 1 | 2020-01-16T07:49:03.000Z | 2020-01-16T07:49:03.000Z | #include "cmt_circuit_builder.hh"
CMTCircuitBuilder::
~CMTCircuitBuilder()
{ }
void CMTCircuitBuilder::
destroyCircuit(CMTCircuit* c)
{
delete c;
}
| 11.769231 | 33 | 0.751634 | hyraxZK |
b5bb4cbaceb3b6811cb0a48d68fbf3fec159f2f2 | 1,441 | cpp | C++ | recursion/NumberofIslands_200.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | recursion/NumberofIslands_200.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | recursion/NumberofIslands_200.cpp | obviouskkk/leetcode | 5d25c3080fdc9f68ae79e0f4655a474a51ff01fc | [
"BSD-3-Clause"
] | null | null | null | /* ***********************************************************************
> File Name: NumberofIslands_200.cpp
> Author: zzy
> Mail: 942744575@qq.com
> Created Time: Thu 08 Aug 2019 11:22:34 AM CST
********************************************************************** */
#include <stdio.h>
#include <vecto... | 19.472973 | 93 | 0.521166 | obviouskkk |
b5bcd2817b54740bef2b5cc8f67613308cb8ae5a | 3,607 | hpp | C++ | inc/Hazen/FrictionMethods.hpp | barne856/Hazen | afac525caa8d5229d6ce21248027d680cc5a620d | [
"MIT"
] | null | null | null | inc/Hazen/FrictionMethods.hpp | barne856/Hazen | afac525caa8d5229d6ce21248027d680cc5a620d | [
"MIT"
] | null | null | null | inc/Hazen/FrictionMethods.hpp | barne856/Hazen | afac525caa8d5229d6ce21248027d680cc5a620d | [
"MIT"
] | null | null | null | #ifndef HAZEN_FRICTION_METHODS
#define HAZEN_FRICTION_METHODS
// HAZEN
#include "Hazen/HydraulicShapes.hpp"
namespace hazen {
/**
* @brief An Abstract Friction Method used to calculate head losses in the
* Passage Hydraulic Link.
*/
class FrictionMethod {
public:
/**
* @brief Compute the slope of the Energy G... | 31.365217 | 80 | 0.703077 | barne856 |
b5befa808059182fe6ed1bf1e778c49c09380dcc | 11,293 | cpp | C++ | Monarch-Connect/Nodeeditor/src/NodeGraphicsObject.cpp | Toms42/Monarch-Connect | 3ec456c7812caccc9de4a7f99bd47a16316e7667 | [
"MIT"
] | 1 | 2019-02-19T19:33:00.000Z | 2019-02-19T19:33:00.000Z | Monarch-Connect/Nodeeditor/src/NodeGraphicsObject.cpp | Toms42/Monarch-Connect | 3ec456c7812caccc9de4a7f99bd47a16316e7667 | [
"MIT"
] | 5 | 2019-01-09T06:10:02.000Z | 2019-02-02T06:31:31.000Z | Monarch-Connect/Nodeeditor/src/NodeGraphicsObject.cpp | Toms42/Monarch-Connect | 3ec456c7812caccc9de4a7f99bd47a16316e7667 | [
"MIT"
] | null | null | null | #include "NodeGraphicsObject.hpp"
#include <cstdlib>
#include <iostream>
#include <QtWidgets/QGraphicsEffect>
#include <QtWidgets/QtWidgets>
#include "ConnectionGraphicsObject.hpp"
#include "ConnectionState.hpp"
#include "FlowScene.hpp"
#include "NodePainter.hpp"
#include "FlowSceneModel.hpp"
#include "NodeConnect... | 26.447307 | 81 | 0.647481 | Toms42 |
b5c009d49c579ef5d675ef420b9f3b3af0f3da80 | 1,002 | cpp | C++ | src/CrashRptWrapper.cpp | nCine/ncParticleEditor | 3e744feb2ece1ec395c02628773e212b18f01162 | [
"MIT"
] | 7 | 2019-06-07T07:50:59.000Z | 2021-12-10T20:38:48.000Z | src/CrashRptWrapper.cpp | nCine/ncParticleEditor | 3e744feb2ece1ec395c02628773e212b18f01162 | [
"MIT"
] | null | null | null | src/CrashRptWrapper.cpp | nCine/ncParticleEditor | 3e744feb2ece1ec395c02628773e212b18f01162 | [
"MIT"
] | 3 | 2019-12-08T11:32:15.000Z | 2020-11-26T11:53:25.000Z | #include "CrashRpt.h"
#include <stdio.h>
#include <tchar.h>
#include "CrashRptWrapper.h"
int CrashRptWrapper::install()
{
CR_INSTALL_INFO info;
memset(&info, 0, sizeof(CR_INSTALL_INFO));
info.cb = sizeof(CR_INSTALL_INFO);
info.pszAppName = _T(CrashRptWrapper::appName);
info.pszAppVersion = _T(CrashRptWrapper::ap... | 23.302326 | 68 | 0.736527 | nCine |
b5c50128d72b01b5c812f44e1810634c0199820c | 271 | cc | C++ | hmwk/3/coordinate_manipulation/metric_space/tests/smooth_coordinate_space_test.cc | ForrestHurley/compPhys | 34c2d93b77858150a1c099deff812d961ab6378d | [
"MIT"
] | null | null | null | hmwk/3/coordinate_manipulation/metric_space/tests/smooth_coordinate_space_test.cc | ForrestHurley/compPhys | 34c2d93b77858150a1c099deff812d961ab6378d | [
"MIT"
] | null | null | null | hmwk/3/coordinate_manipulation/metric_space/tests/smooth_coordinate_space_test.cc | ForrestHurley/compPhys | 34c2d93b77858150a1c099deff812d961ab6378d | [
"MIT"
] | null | null | null |
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "smooth_coordinate_space.h"
TEST(SmoothCoordinateSpaceTest, SmoothCoordinateConstructionTest)
{
}
TEST(SmoothCoordinateSpaceTest, SetCoordinateTest)
{
}
TEST(SmoothCoordinateSpaceTest, GetOriginTest)
{
}
| 12.904762 | 65 | 0.797048 | ForrestHurley |
b5c7ff80e1e25b611fb675075f3e9e62c0e53579 | 9,063 | cpp | C++ | Source/WebCore/Modules/gamepad/GamepadManager.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Source/WebCore/Modules/gamepad/GamepadManager.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Source/WebCore/Modules/gamepad/GamepadManager.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2014 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | 36.10757 | 167 | 0.733973 | jacadcaps |
b5caa80897243259af0a24c9b3ebda65e6e73317 | 1,024 | hpp | C++ | src/parser/expression/literal.hpp | rlannon/csin | 5e17a7f3c41f5e1709d789d34d708cbb3c245a0a | [
"MIT"
] | null | null | null | src/parser/expression/literal.hpp | rlannon/csin | 5e17a7f3c41f5e1709d789d34d708cbb3c245a0a | [
"MIT"
] | null | null | null | src/parser/expression/literal.hpp | rlannon/csin | 5e17a7f3c41f5e1709d789d34d708cbb3c245a0a | [
"MIT"
] | null | null | null | #pragma once
#include "expression.hpp"
#include "../../util/data_type.hpp"
#include "../../util/symbol_qualities.hpp"
#include <string>
#include <memory>
namespace expression
{
class literal : public expression_base
{
data_type type;
std::string value;
public:
void set_type(data_t... | 27.675676 | 91 | 0.638672 | rlannon |
b5cbf26352660fff17e1cce2a2ddc092f152345d | 1,244 | cpp | C++ | include/asioext/detail/impl/win_path.cpp | zweistein-frm2/asio-extensions | bafea77c48d674930405cb7f93bdfe65539abc39 | [
"BSL-1.0"
] | 17 | 2018-04-13T00:38:55.000Z | 2022-01-21T08:38:36.000Z | include/asioext/detail/impl/win_path.cpp | zweistein-frm2/asio-extensions | bafea77c48d674930405cb7f93bdfe65539abc39 | [
"BSL-1.0"
] | 4 | 2017-03-16T03:34:38.000Z | 2020-05-08T00:05:51.000Z | include/asioext/detail/impl/win_path.cpp | zweistein-frm2/asio-extensions | bafea77c48d674930405cb7f93bdfe65539abc39 | [
"BSL-1.0"
] | 5 | 2017-09-06T15:56:04.000Z | 2021-09-14T07:38:02.000Z | /// @copyright Copyright (c) 2015 Tim Niederhausen (tim@rnc-ag.de)
/// 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 "asioext/detail/win_path.hpp"
#include "asioext/detail/error.hpp"
#include <windows.h>
... | 25.387755 | 91 | 0.647106 | zweistein-frm2 |