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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
266a9ad44d2dd4daea13178aac7d0e06a0c12ff8 | 5,039 | hpp | C++ | include/grid_based_planner.hpp | dabinkim-LGOM/lsc_planner | 88dcb1de59bac810d1b1fd194fe2b8d24d1860c9 | [
"MIT"
] | 9 | 2021-09-04T15:14:57.000Z | 2022-03-29T04:34:13.000Z | include/grid_based_planner.hpp | dabinkim-LGOM/lsc_planner | 88dcb1de59bac810d1b1fd194fe2b8d24d1860c9 | [
"MIT"
] | null | null | null | include/grid_based_planner.hpp | dabinkim-LGOM/lsc_planner | 88dcb1de59bac810d1b1fd194fe2b8d24d1860c9 | [
"MIT"
] | 4 | 2021-09-29T11:32:54.000Z | 2022-03-06T05:24:33.000Z | #ifndef LSC_PLANNER_GRIDBASEDPLANNER_HPP
#define LSC_PLANNER_GRIDBASEDPLANNER_HPP
#include <Astar-3D/astarplanner.h>
#include <dynamicEDT3D/dynamicEDTOctomap.h>
#include <mission.hpp>
#include <param.hpp>
#include <util.hpp>
#include <geometry.hpp>
#include <utility>
#define GP_OCCUPIED 1
#define GP_EMPTY 0
#define G... | 33.818792 | 111 | 0.609248 | dabinkim-LGOM |
267f14b83683bdb1167b4596f72110cba41b72b4 | 2,069 | cpp | C++ | libraries/ClockHardware/src/Display.cpp | e-noyau/wordclock | 5de70473e291514ee726fe737a3fee84abc33dd5 | [
"MIT"
] | 1 | 2019-08-31T16:57:00.000Z | 2019-08-31T16:57:00.000Z | libraries/ClockHardware/src/Display.cpp | e-noyau/wordclock | 5de70473e291514ee726fe737a3fee84abc33dd5 | [
"MIT"
] | 2 | 2019-09-01T13:20:26.000Z | 2020-11-02T09:02:29.000Z | libraries/ClockHardware/src/Display.cpp | e-noyau/wordclock | 5de70473e291514ee726fe737a3fee84abc33dd5 | [
"MIT"
] | 1 | 2020-11-01T22:21:57.000Z | 2020-11-01T22:21:57.000Z | #define DEBUG 1
#include "logging.h"
#include "Display.h"
Display::Display(ClockFace& clockFace, uint8_t pin)
: _clockFace(clockFace),
_pixels(ClockFace::pixelCount(), pin),
_brightnessController(_pixels),
_animations(ClockFace::pixelCount(), NEO_CENTISECONDS) {}
void Display::setup() {
_pi... | 30.426471 | 83 | 0.661189 | e-noyau |
268036a70e851def99db8cf36ad5448f9b7acfae | 837 | cpp | C++ | check_if_it_is_a_straight_line.cpp | shafitek/ArXives | 67170d6bde2093703d9cd3e8efa55b61e7b5ea75 | [
"MIT"
] | null | null | null | check_if_it_is_a_straight_line.cpp | shafitek/ArXives | 67170d6bde2093703d9cd3e8efa55b61e7b5ea75 | [
"MIT"
] | null | null | null | check_if_it_is_a_straight_line.cpp | shafitek/ArXives | 67170d6bde2093703d9cd3e8efa55b61e7b5ea75 | [
"MIT"
] | null | null | null | // https://leetcode.com/problems/check-if-it-is-a-straight-line/
class Solution {
public:
bool checkStraightLine(vector<vector<int>>& coordinates) {
vector<int> og_slope = {coordinates[1][1] - coordinates[0][1], coordinates[1][0] - coordinates[0][0]};
float orig_slope = og_slope[1] == 0 ? ... | 38.045455 | 110 | 0.568698 | shafitek |
2680f353d7a0913800427847fd51269880685504 | 2,059 | hpp | C++ | practice2/io_service_pool.hpp | MaxHonggg/professional_boost | 6fff73d3b9832644068dc8fe0443be813c7237b4 | [
"BSD-2-Clause"
] | 47 | 2016-05-20T08:49:47.000Z | 2022-01-03T01:17:07.000Z | practice2/io_service_pool.hpp | MaxHonggg/professional_boost | 6fff73d3b9832644068dc8fe0443be813c7237b4 | [
"BSD-2-Clause"
] | null | null | null | practice2/io_service_pool.hpp | MaxHonggg/professional_boost | 6fff73d3b9832644068dc8fe0443be813c7237b4 | [
"BSD-2-Clause"
] | 37 | 2016-07-25T04:52:08.000Z | 2022-02-14T03:55:08.000Z | // Copyright (c) 2016
// Author: Chrono Law
#ifndef _PRO_BOOST_IO_SERVICE_HPP
#define _PRO_BOOST_IO_SERVICE_HPP
#include <algorithm>
#include <boost/assert.hpp>
#include <boost/noncopyable.hpp>
#include <boost/foreach.hpp>
#include <boost/bind.hpp>
#include <boost/ref.hpp>
#include <boost/functional/factory.hpp>
#inc... | 22.626374 | 65 | 0.587178 | MaxHonggg |
269318de806dfe825259006c755701b4b1c0815a | 2,700 | hpp | C++ | external/boost_1_60_0/qsboost/function_types/detail/classifier.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/function_types/detail/classifier.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/function_types/detail/classifier.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null |
// (C) Copyright Tobias Schwinger
//
// Use modification and distribution are subject to the boost Software License,
// Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
//------------------------------------------------------------------------------
#ifndef QSBOOST_FT_DETAIL_CLASSIFIER_HPP_INCLUDED
#define Q... | 30.681818 | 91 | 0.745926 | wouterboomsma |
2698312aae743931996097469472fdf91ec54465 | 1,464 | hpp | C++ | plugins/libimhex/include/hex/helpers/crypto.hpp | Laxer3a/psdebugtool | 41efa5f35785afd8f6dc868d8dbdb0dcf8eb25fb | [
"MIT"
] | 4 | 2021-05-09T23:33:54.000Z | 2022-03-06T10:16:31.000Z | plugins/libimhex/include/hex/helpers/crypto.hpp | Laxer3a/psdebugtool | 41efa5f35785afd8f6dc868d8dbdb0dcf8eb25fb | [
"MIT"
] | null | null | null | plugins/libimhex/include/hex/helpers/crypto.hpp | Laxer3a/psdebugtool | 41efa5f35785afd8f6dc868d8dbdb0dcf8eb25fb | [
"MIT"
] | 6 | 2021-05-09T21:41:48.000Z | 2021-09-08T10:54:28.000Z | #pragma once
#include <hex.hpp>
#include <array>
#include <optional>
#include <string>
#include <vector>
namespace hex::prv { class Provider; }
namespace hex::crypt {
void initialize();
void exit();
u16 crc16(prv::Provider* &data, u64 offset, size_t size, u16 polynomial, u16 init);
u32 crc32(prv::... | 30.5 | 171 | 0.60041 | Laxer3a |
2699125626aca087b562a1e959e2a3e6e7b56ed6 | 441 | cpp | C++ | src/Level.cpp | savageking-io/evelengine | f4f31419077e3467db271e82b05164eafa521eb7 | [
"Apache-2.0"
] | null | null | null | src/Level.cpp | savageking-io/evelengine | f4f31419077e3467db271e82b05164eafa521eb7 | [
"Apache-2.0"
] | null | null | null | src/Level.cpp | savageking-io/evelengine | f4f31419077e3467db271e82b05164eafa521eb7 | [
"Apache-2.0"
] | null | null | null | #include "Level.hpp"
namespace EvelEngine
{
Level::Level(const std::string& seed) : _seed(seed)
{
}
Level::~Level()
{
}
bool Level::handleCommand(const std::string& command)
{
return false;
}
std::string Level::getSeed()
{
return _seed;
}
... | 11.918919 | 57 | 0.514739 | savageking-io |
269a29ed1856c4578d99a34f6d309425867d5b98 | 7,171 | cxx | C++ | Rendering/OSPRay/vtkOSPRayPass.cxx | romangrothausmann/VTK | 60cce86963f29f8f569a7a31348019e095267a50 | [
"BSD-3-Clause"
] | null | null | null | Rendering/OSPRay/vtkOSPRayPass.cxx | romangrothausmann/VTK | 60cce86963f29f8f569a7a31348019e095267a50 | [
"BSD-3-Clause"
] | null | null | null | Rendering/OSPRay/vtkOSPRayPass.cxx | romangrothausmann/VTK | 60cce86963f29f8f569a7a31348019e095267a50 | [
"BSD-3-Clause"
] | 1 | 2020-01-13T07:19:25.000Z | 2020-01-13T07:19:25.000Z | /*=========================================================================
Prograxq: Visualization Toolkit
Module: vtkOSPRayPass.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software i... | 27.580769 | 79 | 0.583322 | romangrothausmann |
26a4224f486141596420a88bc99b27d29ee417d8 | 5,083 | cpp | C++ | compiler/llvm/c_src/Diagnostics.cpp | mlwilkerson/lumen | 048df6c0840c11496e2d15aa9af2e4a8d07a6e0f | [
"Apache-2.0"
] | 2,939 | 2019-08-29T16:52:20.000Z | 2022-03-31T05:42:30.000Z | compiler/llvm/c_src/Diagnostics.cpp | mlwilkerson/lumen | 048df6c0840c11496e2d15aa9af2e4a8d07a6e0f | [
"Apache-2.0"
] | 235 | 2019-08-29T23:44:13.000Z | 2022-03-17T11:43:25.000Z | compiler/llvm/c_src/Diagnostics.cpp | mlwilkerson/lumen | 048df6c0840c11496e2d15aa9af2e4a8d07a6e0f | [
"Apache-2.0"
] | 95 | 2019-08-29T19:11:28.000Z | 2022-01-03T05:14:16.000Z | #include "lumen/llvm/Diagnostics.h"
#include "lumen/llvm/RustString.h"
#include "llvm-c/Core.h"
#include "llvm-c/Types.h"
#include "llvm/IR/DiagnosticInfo.h"
#include "llvm/IR/DiagnosticPrinter.h"
#include "llvm/IR/Function.h"
#include "llvm/Support/CBindingWrapping.h"
#include "llvm/Support/Casting.h"
using namespac... | 35.795775 | 92 | 0.734802 | mlwilkerson |
26a53835e890a7486faebe6d8fd2b791c564a5cb | 14,685 | cpp | C++ | src/IoTHubDevice.cpp | markrad/Arduino-IoTHubDevice | 141f439b7c5064c66c3c603ae395cae2dab7b96d | [
"MIT"
] | null | null | null | src/IoTHubDevice.cpp | markrad/Arduino-IoTHubDevice | 141f439b7c5064c66c3c603ae395cae2dab7b96d | [
"MIT"
] | null | null | null | src/IoTHubDevice.cpp | markrad/Arduino-IoTHubDevice | 141f439b7c5064c66c3c603ae395cae2dab7b96d | [
"MIT"
] | null | null | null | #include "IoTHubDevice.h"
#include <AzureIoTProtocol_MQTT.h>
#include <AzureIoTUtility.h>
#include <azure_c_shared_utility/connection_string_parser.h>
#include <azure_c_shared_utility/shared_util_options.h>
#include "iothub_client_version.h"
using namespace std;
IoTHubDevice::IoTHubDevice(const char *connectionStrin... | 30.466805 | 180 | 0.696425 | markrad |
564f1b6135a5f53c29f793ebfb93046a8d1ff3f6 | 576 | hpp | C++ | include/GameConstant.hpp | Tastyep/SFML-GameCore-2D | 51dfcd7f3a098b2efa76754703999c6b8d22369d | [
"MIT"
] | null | null | null | include/GameConstant.hpp | Tastyep/SFML-GameCore-2D | 51dfcd7f3a098b2efa76754703999c6b8d22369d | [
"MIT"
] | null | null | null | include/GameConstant.hpp | Tastyep/SFML-GameCore-2D | 51dfcd7f3a098b2efa76754703999c6b8d22369d | [
"MIT"
] | null | null | null | #ifndef GAME_CORE_GAME_CONSTANT_HPP
#define GAME_CORE_GAME_CONSTANT_HPP
#include <chrono>
#include <string>
#include <SFML/System/Vector2.hpp>
const std::string kAssetDir = "../assets/";
const std::string kMapDir = "../maps/";
const std::string kConfigDir = "../config/";
const int kMapNumberLength = 2;
const int kF... | 26.181818 | 76 | 0.744792 | Tastyep |
5654a2f4a46186c3c7a641ed3c9cdf32af96bdbe | 2,164 | cc | C++ | util/misc/no_cfi_icall_test.cc | dark-richie/crashpad | d573ac113bd5fce5cc970bb5ae76a235a1431a5d | [
"Apache-2.0"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | util/misc/no_cfi_icall_test.cc | dark-richie/crashpad | d573ac113bd5fce5cc970bb5ae76a235a1431a5d | [
"Apache-2.0"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | util/misc/no_cfi_icall_test.cc | dark-richie/crashpad | d573ac113bd5fce5cc970bb5ae76a235a1431a5d | [
"Apache-2.0"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2020 The Crashpad Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ... | 24.873563 | 78 | 0.708872 | dark-richie |
5658d170b507d311ce22b495e17562ae0dc31f4e | 3,496 | cpp | C++ | lib/msdf-atlas-gen/msdf-atlas-gen/json-export.cpp | Tearnote/Minote | 35f63fecc01cf9199db1098256277465e1d41d1e | [
"MIT"
] | 8 | 2021-01-18T12:06:21.000Z | 2022-02-13T17:12:56.000Z | lib/msdf-atlas-gen/msdf-atlas-gen/json-export.cpp | Tearnote/Minote | 35f63fecc01cf9199db1098256277465e1d41d1e | [
"MIT"
] | null | null | null | lib/msdf-atlas-gen/msdf-atlas-gen/json-export.cpp | Tearnote/Minote | 35f63fecc01cf9199db1098256277465e1d41d1e | [
"MIT"
] | null | null | null |
#include "json-export.h"
namespace msdf_atlas {
static const char * imageTypeString(ImageType type) {
switch (type) {
case ImageType::HARD_MASK:
return "hardmask";
case ImageType::SOFT_MASK:
return "softmask";
case ImageType::SDF:
return "sdf";
... | 36.416667 | 198 | 0.52889 | Tearnote |
5660785b9399aeb42d402e6540b34e4715b9e617 | 227 | hpp | C++ | nek/container/function/clear.hpp | nekko1119/nek | be43faf5c541fa067ab1e1bcb7a43ebcfefe34e7 | [
"BSD-3-Clause"
] | null | null | null | nek/container/function/clear.hpp | nekko1119/nek | be43faf5c541fa067ab1e1bcb7a43ebcfefe34e7 | [
"BSD-3-Clause"
] | null | null | null | nek/container/function/clear.hpp | nekko1119/nek | be43faf5c541fa067ab1e1bcb7a43ebcfefe34e7 | [
"BSD-3-Clause"
] | null | null | null | #ifndef NEK_CONTAINER_FUNCTION_CLEAR_HPP
#define NEK_CONTAINER_FUNCTION_CLEAR_HPP
namespace nek
{
template <class Container>
void clear(Container& con)
{
con.erase(con.begin(), con.end());
}
}
#endif
| 16.214286 | 42 | 0.696035 | nekko1119 |
5660f2499aa3741496a10854ba6ad622b13408fd | 228 | cpp | C++ | engine/commands/help/source/unit_tests/HelpKeyboardCommandMap_test.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/commands/help/source/unit_tests/HelpKeyboardCommandMap_test.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/commands/help/source/unit_tests/HelpKeyboardCommandMap_test.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "gtest/gtest.h"
TEST(SW_Engine_Commands_Help_HelpKeyboardCommandMap, serialization_id)
{
HelpKeyboardCommandMap hkcm;
EXPECT_EQ(ClassIdentifier::CLASS_ID_HELP_KEYBOARD_COMMAND_MAP, hkcm.get_class_identifier());
}
| 25.333333 | 94 | 0.842105 | sidav |
566170271eb4daf27aa579be681655190d96bbdd | 717 | cpp | C++ | codeforces/992C - Nastya and a Wardrobe.cpp | Dijkstraido-2/online-judge | 31844cd8fbd5038cc5ebc6337d68229cef133a30 | [
"MIT"
] | 1 | 2018-12-25T23:55:19.000Z | 2018-12-25T23:55:19.000Z | codeforces/992C - Nastya and a Wardrobe.cpp | Dijkstraido-2/online-judge | 31844cd8fbd5038cc5ebc6337d68229cef133a30 | [
"MIT"
] | null | null | null | codeforces/992C - Nastya and a Wardrobe.cpp | Dijkstraido-2/online-judge | 31844cd8fbd5038cc5ebc6337d68229cef133a30 | [
"MIT"
] | null | null | null | //============================================================================
// Problem : 992C - Nastya and a Wardrobe
// Category : Math
//============================================================================
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll MOD = 1e9+7;
ll sub(... | 24.724138 | 78 | 0.380753 | Dijkstraido-2 |
5661b5f36d221b58f79703e7dd72da42a570675e | 17,272 | cpp | C++ | Plugins/StoryGraphPlugin/Source/StoryGraphPluginRuntime/StoryGraphObject.cpp | Xian-Yun-Jun/StoryGraph | 36b4a9a24e86e963b1d1d61d4fd5bdfe2eabef9b | [
"MIT"
] | 126 | 2016-12-24T13:58:18.000Z | 2022-03-10T03:20:47.000Z | Plugins/StoryGraphPlugin/Source/StoryGraphPluginRuntime/StoryGraphObject.cpp | Xian-Yun-Jun/StoryGraph | 36b4a9a24e86e963b1d1d61d4fd5bdfe2eabef9b | [
"MIT"
] | 5 | 2017-01-05T08:23:30.000Z | 2018-01-30T19:38:33.000Z | Plugins/StoryGraphPlugin/Source/StoryGraphPluginRuntime/StoryGraphObject.cpp | Xian-Yun-Jun/StoryGraph | 36b4a9a24e86e963b1d1d61d4fd5bdfe2eabef9b | [
"MIT"
] | 45 | 2016-12-25T02:21:45.000Z | 2022-02-14T16:06:58.000Z | // Copyright 2016 Dmitriy Pavlov
#include "StoryGraphObject.h"
#include "StoryGraph.h"
#include "StoryScenObject.h"
#include "HUD_StoryGraph.h"
#include "CustomNods.h"
#include "StoryGraphWiget.h"
#if WITH_EDITORONLY_DATA
#include "AssetEditorManager.h"
#include "Developer/DesktopPlatform/Public/DesktopPlatformModule.... | 26.130106 | 164 | 0.739868 | Xian-Yun-Jun |
56624ea6e4db7e72c41abca7c028bf32bca9a125 | 42 | hpp | C++ | addons/vehicles_land/XEH_PREP.hpp | SOCOMD/SOCOMD-MODS-2021 | 834cd5f99831bd456179a1f55f5a91398c29bf57 | [
"MIT"
] | null | null | null | addons/vehicles_land/XEH_PREP.hpp | SOCOMD/SOCOMD-MODS-2021 | 834cd5f99831bd456179a1f55f5a91398c29bf57 | [
"MIT"
] | null | null | null | addons/vehicles_land/XEH_PREP.hpp | SOCOMD/SOCOMD-MODS-2021 | 834cd5f99831bd456179a1f55f5a91398c29bf57 | [
"MIT"
] | null | null | null | PREP(BushMasterHitEH);
PREP(JackelHitEH);
| 14 | 22 | 0.809524 | SOCOMD |
566566612126c19727fe46fd806e58fcef23e6c0 | 2,372 | cpp | C++ | ecs/src/v2/model/ResizePostPaidServerOption.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 5 | 2021-03-03T08:23:43.000Z | 2022-02-16T02:16:39.000Z | ecs/src/v2/model/ResizePostPaidServerOption.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | null | null | null | ecs/src/v2/model/ResizePostPaidServerOption.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 7 | 2021-02-26T13:53:35.000Z | 2022-03-18T02:36:43.000Z |
#include "huaweicloud/ecs/v2/model/ResizePostPaidServerOption.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Ecs {
namespace V2 {
namespace Model {
ResizePostPaidServerOption::ResizePostPaidServerOption()
{
flavorRef_ = "";
flavorRefIsSet_ = false;
mode_ = "";
modeIsSet_ = false;
}
ResizeP... | 20.273504 | 100 | 0.671585 | yangzhaofeng |
566a4d89f934a44b604fcd743438594aaa2f4903 | 245 | inl | C++ | include/volt/gpu/resource.inl | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | include/volt/gpu/resource.inl | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | include/volt/gpu/resource.inl | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | namespace volt::gpu {
template<typename T>
void resource::map(const std::function<void(T &)> &callback, access_modes access, size_t offset) {
map([&](void *data) {
callback(*reinterpret_cast<T *>(data));
}, access, sizeof(T), offset);
}
}
| 22.272727 | 98 | 0.677551 | voltengine |
566e94fbc34e559b0d13bc828d176a9d942fc6a0 | 2,440 | cpp | C++ | Src/Graphics/OpenGL_Desktop.cpp | Eae02/jamlib | 66193bc11fee3a8964f2af0aca6c20cdf56b3b4c | [
"Zlib"
] | null | null | null | Src/Graphics/OpenGL_Desktop.cpp | Eae02/jamlib | 66193bc11fee3a8964f2af0aca6c20cdf56b3b4c | [
"Zlib"
] | null | null | null | Src/Graphics/OpenGL_Desktop.cpp | Eae02/jamlib | 66193bc11fee3a8964f2af0aca6c20cdf56b3b4c | [
"Zlib"
] | null | null | null | #include "OpenGL.hpp"
#ifndef JM_USE_GLES
#include <iostream>
#include <string_view>
#include <SDL_video.h>
namespace jm::detail
{
bool hasModernGL;
float maxAnistropy;
static std::string glVendorName;
void OpenGLMessageCallback(GLenum, GLenum type, GLuint id, GLenum severity, GLsizei length,
... | 22.385321 | 107 | 0.672131 | Eae02 |
5670ea398c3074eec3f9b7f4ad7d41390ef5f111 | 2,775 | cpp | C++ | src/engine/TextureHandle.cpp | foxostro/arbarlith2 | 820ffc8c3efcb636eb2c639487815fb9aabdc82e | [
"BSD-3-Clause"
] | 1 | 2019-04-09T18:42:00.000Z | 2019-04-09T18:42:00.000Z | src/engine/TextureHandle.cpp | foxostro/arbarlith2 | 820ffc8c3efcb636eb2c639487815fb9aabdc82e | [
"BSD-3-Clause"
] | null | null | null | src/engine/TextureHandle.cpp | foxostro/arbarlith2 | 820ffc8c3efcb636eb2c639487815fb9aabdc82e | [
"BSD-3-Clause"
] | null | null | null | /*
Original Author: Andrew Fox
E-Mail: mailto:foxostro@gmail.com
Copyright (c) 2006-2007,2009 Game Creation Society
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 m... | 29.521277 | 98 | 0.751712 | foxostro |
56747c5c47b952021c2d327e8348876d709436fa | 103 | cpp | C++ | src/core/BaseException.cpp | Neomer/binc | 3af615f36cb23f1cdc9319b7a6e15c6c342a53b9 | [
"Apache-2.0"
] | null | null | null | src/core/BaseException.cpp | Neomer/binc | 3af615f36cb23f1cdc9319b7a6e15c6c342a53b9 | [
"Apache-2.0"
] | 26 | 2017-12-13T12:45:32.000Z | 2018-02-06T11:08:04.000Z | src/core/BaseException.cpp | Neomer/binc | 3af615f36cb23f1cdc9319b7a6e15c6c342a53b9 | [
"Apache-2.0"
] | null | null | null | #include "BaseException.h"
BaseException::BaseException(const char *message) :
_msg(message)
{
}
| 12.875 | 51 | 0.718447 | Neomer |
567dc8c02e6d9572d168cb4090d34b542068725c | 2,619 | cc | C++ | zetasql/testing/test_catalog.cc | wbsouza/zetasql-formatter | 3db113adee8d4fcb27dc978123dc75079442bf69 | [
"Apache-2.0"
] | 1,779 | 2019-04-23T19:41:49.000Z | 2022-03-31T18:53:18.000Z | zetasql/testing/test_catalog.cc | wbsouza/zetasql-formatter | 3db113adee8d4fcb27dc978123dc75079442bf69 | [
"Apache-2.0"
] | 94 | 2019-05-22T00:30:05.000Z | 2022-03-31T06:26:09.000Z | zetasql/testing/test_catalog.cc | wbsouza/zetasql-formatter | 3db113adee8d4fcb27dc978123dc75079442bf69 | [
"Apache-2.0"
] | 153 | 2019-04-23T22:45:41.000Z | 2022-02-18T05:44:10.000Z | //
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | 34.012987 | 80 | 0.695304 | wbsouza |
5683264e2c7c942ce2ef5fe75106d2d2e92ca956 | 486 | cpp | C++ | tests/realapplications/libHX_overflow/libHX-3.4/src/tx-compile.cpp | GYJQTYL2/DoubleTake | cdcd0200bb364b5343beae72756420e6c3954a6f | [
"MIT"
] | 19 | 2015-09-17T18:10:14.000Z | 2021-08-16T11:26:33.000Z | tests/realapplications/libHX_overflow/libHX-3.4/src/tx-compile.cpp | GYJQTYL2/DoubleTake | cdcd0200bb364b5343beae72756420e6c3954a6f | [
"MIT"
] | 17 | 2015-04-27T14:33:42.000Z | 2016-05-23T20:15:48.000Z | tests/realapplications/libHX_overflow/libHX-3.4/src/tx-compile.cpp | plasma-umass/DoubleTake | cdcd0200bb364b5343beae72756420e6c3954a6f | [
"MIT"
] | 13 | 2015-07-29T15:15:00.000Z | 2021-01-15T04:53:21.000Z | /* This file is for testing the cumulative include */
#ifndef __cplusplus
# include <stdlib.h>
#else
# include <cstdlib>
#endif
#include <libHX.h>
#define ZZ 64
int main(void)
{
unsigned long bitmap[HXbitmap_size(unsigned long, 64)];
if (HX_init() <= 0)
abort();
printf("sizeof bitmap: %zu, array_size: %zu\n",
... | 20.25 | 59 | 0.683128 | GYJQTYL2 |
568bb161de43b5b938b17aa4a4ffaf46f4661dbc | 11,031 | cpp | C++ | aegisub/src/search_replace_engine.cpp | rcombs/Aegisub | 58f35cd31c7f0f5728e0a28e6a7a9fd6fce70c50 | [
"ISC"
] | 1 | 2018-02-12T02:44:57.000Z | 2018-02-12T02:44:57.000Z | aegisub/src/search_replace_engine.cpp | rcombs/Aegisub | 58f35cd31c7f0f5728e0a28e6a7a9fd6fce70c50 | [
"ISC"
] | null | null | null | aegisub/src/search_replace_engine.cpp | rcombs/Aegisub | 58f35cd31c7f0f5728e0a28e6a7a9fd6fce70c50 | [
"ISC"
] | 2 | 2018-02-12T03:46:24.000Z | 2018-02-12T14:36:07.000Z | // Copyright (c) 2013, Thomas Goyne <plorkyeran@aegisub.org>
//
// Permission to use, copy, modify, and distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" A... | 31.60745 | 127 | 0.707279 | rcombs |
568dcaf91f6b658f3ca117f73325be96eb025ab7 | 777 | cpp | C++ | old-questions/2070-Chaitra/q3.cpp | B33pl0p/ioe-oop | 87162561e0ced7e7e9cc7c7a8354d535de16e1f5 | [
"MIT"
] | 4 | 2021-02-19T12:19:06.000Z | 2022-02-11T14:15:49.000Z | old-questions/2070-Chaitra/q3.cpp | B33pl0p/ioe-oop | 87162561e0ced7e7e9cc7c7a8354d535de16e1f5 | [
"MIT"
] | null | null | null | old-questions/2070-Chaitra/q3.cpp | B33pl0p/ioe-oop | 87162561e0ced7e7e9cc7c7a8354d535de16e1f5 | [
"MIT"
] | 12 | 2018-01-29T15:37:51.000Z | 2022-02-10T06:45:03.000Z | // Write a C++ program to join two strings using dynamics constructor concept
#include <iostream>
#include <string.h>
using namespace std;
class Strings {
char *str;
public:
Strings() {}
Strings(char *s) {
int length = strlen(s);
str = new char[length];
strc... | 22.2 | 77 | 0.503218 | B33pl0p |
5693a6b899434cd6f4a9b6d612f5815788b3aee2 | 558 | cpp | C++ | CLearn/DiscarnateLayer.cpp | JamesGlare/Neural-Net-LabView-DLL | d912e0bfd0231d22bcd27ae6a71ebfcb23129aba | [
"MIT"
] | 12 | 2018-07-23T17:07:29.000Z | 2021-04-26T01:46:48.000Z | CLearn/DiscarnateLayer.cpp | JamesGlare/Neural-Net-LabView-DLL | d912e0bfd0231d22bcd27ae6a71ebfcb23129aba | [
"MIT"
] | null | null | null | CLearn/DiscarnateLayer.cpp | JamesGlare/Neural-Net-LabView-DLL | d912e0bfd0231d22bcd27ae6a71ebfcb23129aba | [
"MIT"
] | 9 | 2019-05-06T13:19:39.000Z | 2021-03-23T01:10:25.000Z | #include "stdafx.h"
#include "DiscarnateLayer.h"
DiscarnateLayer::DiscarnateLayer(size_t _NOUT, size_t _NIN) : CNetLayer(_NOUT, _NIN) {};
DiscarnateLayer::DiscarnateLayer(size_t _NOUT, size_t _NIN, actfunc_t type) : CNetLayer(_NOUT, _NIN, type) {};
DiscarnateLayer::DiscarnateLayer(size_t _NOUT, actfunc_t type, CNetLay... | 46.5 | 116 | 0.752688 | JamesGlare |
5695d46f99c3f8c225d2745b02ecd287bbc5d6a8 | 7,409 | cpp | C++ | Refureku/Library/Tests/ArchetypeTests.cpp | Angelysse/Refureku | 1f01107c94cd81998068ce3fde02bb21c180166b | [
"MIT"
] | null | null | null | Refureku/Library/Tests/ArchetypeTests.cpp | Angelysse/Refureku | 1f01107c94cd81998068ce3fde02bb21c180166b | [
"MIT"
] | null | null | null | Refureku/Library/Tests/ArchetypeTests.cpp | Angelysse/Refureku | 1f01107c94cd81998068ce3fde02bb21c180166b | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <Refureku/Refureku.h>
#include "TestStruct.h"
#include "TestClass.h"
#include "TestClass2.h"
#include "TestEnum.h"
#include "TestNamespace.h"
#include "TypeTemplateClassTemplate.h"
//=========================================================
//=========== Archetype::getAccessSpecifier... | 47.8 | 178 | 0.749764 | Angelysse |
56a1d4fbcb4734a67c644b256a5c4b66201a2bd2 | 1,731 | hpp | C++ | include/kobuki_core/logging.hpp | kobuki-base/kobuki_core | 5fb88169d010c3a23f24ff0ba7e9cb45b46b24e8 | [
"BSD-3-Clause"
] | 10 | 2020-06-01T05:05:27.000Z | 2022-01-18T13:19:58.000Z | include/kobuki_core/logging.hpp | clalancette/kobuki_core | e5bef97d3c1db24441508673e08c67be599faa84 | [
"BSD-3-Clause"
] | 28 | 2020-01-10T14:42:54.000Z | 2021-07-28T08:01:44.000Z | include/kobuki_core/logging.hpp | clalancette/kobuki_core | e5bef97d3c1db24441508673e08c67be599faa84 | [
"BSD-3-Clause"
] | 8 | 2020-02-04T09:59:18.000Z | 2021-08-29T01:59:38.000Z | /**
* @file include/kobuki_core/logging.hpp
*
* @brief Log levels and simple logging to screen.
*
* License: BSD
* https://raw.githubusercontent.com/kobuki-base/kobuki_core/license/LICENSE
**/
/*****************************************************************************
** Ifdefs
***************************... | 28.85 | 79 | 0.450607 | kobuki-base |
56a221ea1597980da2511f1b2ac086226c64c8a0 | 9,156 | cpp | C++ | Packer/Packer/SourceCode/Exporter/ExSgMesh.cpp | GavWood/tutorials | d5140129b6acd6d61f6feedcd352c12e4ebabd40 | [
"BSD-2-Clause"
] | 8 | 2017-10-26T14:26:55.000Z | 2022-01-07T07:35:39.000Z | Packer/Packer/SourceCode/Exporter/ExSgMesh.cpp | GavWood/tutorials | d5140129b6acd6d61f6feedcd352c12e4ebabd40 | [
"BSD-2-Clause"
] | 1 | 2017-09-28T08:21:04.000Z | 2017-10-04T09:17:57.000Z | Packer/Packer/SourceCode/Exporter/ExSgMesh.cpp | GavWood/Game-Framework | d5140129b6acd6d61f6feedcd352c12e4ebabd40 | [
"BSD-2-Clause"
] | 1 | 2021-07-21T17:37:33.000Z | 2021-07-21T17:37:33.000Z | ////////////////////////////////////////////////////////////////////////////////
// ExSgMesh.cpp
// Includes
#include "StdAfx.h"
#include "ExMatrix.h"
#include "ExSgMesh.h"
#include "ExStrip.h"
#include "ExScene.h"
#include "ExIndexBuffer.h"
#include "ExVertexBuffer.h"
#include "ExVertex.h"
#include "SgRigidBody.h"
#i... | 26.386167 | 104 | 0.63543 | GavWood |
56a2d79362bfcd984696b77159fef85d19d581d3 | 3,213 | hpp | C++ | include/tools/types/common/enable_for/enable_for-2013.hpp | Kartonagnick/tools-types | 4b3a697e579050eade081b82f9b96309fea8f5e7 | [
"MIT"
] | null | null | null | include/tools/types/common/enable_for/enable_for-2013.hpp | Kartonagnick/tools-types | 4b3a697e579050eade081b82f9b96309fea8f5e7 | [
"MIT"
] | 49 | 2021-02-20T12:08:15.000Z | 2021-05-07T19:59:08.000Z | include/tools/types/common/enable_for/enable_for-2013.hpp | Kartonagnick/tools-types | 4b3a697e579050eade081b82f9b96309fea8f5e7 | [
"MIT"
] | null | null | null | // [2020y-09m-04d][00:00:00] Idrisov Denis R.
// [2021y-02m-20d][18:40:18] Idrisov Denis R.
// [2021y-04m-10d][01:40:31] Idrisov Denis R. 100
//==============================================================================
//==============================================================================
#pragma once
#if... | 33.123711 | 80 | 0.473078 | Kartonagnick |
56aae3da6b829bd45813dd50738c6642332e38ff | 1,705 | cpp | C++ | src/utils/data.cpp | jlorenze/asl_fixedwing | 9cac7c8d31f5d1c9f7d059d4614d6b60f1a3fbef | [
"MIT"
] | 4 | 2021-06-28T17:30:55.000Z | 2022-03-18T09:04:35.000Z | src/utils/data.cpp | jlorenze/asl_fixedwing | 9cac7c8d31f5d1c9f7d059d4614d6b60f1a3fbef | [
"MIT"
] | 1 | 2021-08-31T16:22:13.000Z | 2021-08-31T16:36:15.000Z | src/utils/data.cpp | jlorenze/asl_fixedwing | 9cac7c8d31f5d1c9f7d059d4614d6b60f1a3fbef | [
"MIT"
] | null | null | null | /**
@file data.cpp
Helper functions for saving and loading data
*/
#include <utils/data.hpp>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <Eigen/Dense>
/** Save matrix to .csv file. */
void Data::save_matrix(const std::string& file_name, Eigen::MatrixXd matrix) {
co... | 30.446429 | 133 | 0.614663 | jlorenze |
56ab20a2bf8e3c57aec1f51f51c6986961530fad | 1,347 | cpp | C++ | 697_find_shortest_subarray/find_shortest_subarray.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | 697_find_shortest_subarray/find_shortest_subarray.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | 697_find_shortest_subarray/find_shortest_subarray.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | /*
* @Author: Mengsen.Wang
* @Date: 2021-02-20 09:07:09
* @Last Modified by: Mengsen.Wang
* @Last Modified time: 2021-02-20 09:17:11
*/
#include <cassert>
#include <vector>
using namespace std;
int find_shortest_subarray(vector<int>& nums) {
//统计每个元素出现的频率
vector<int> req(50000, 0);
//最大度
int d = 0;
//... | 24.490909 | 57 | 0.576095 | Mengsen-W |
56b2bc669d91a122c84bea08820dd50197ea6bf0 | 921 | cpp | C++ | PAT/PAT-B/CPP/1018.锤子剪刀布.cpp | hao14293/2021-Postgraduate-408 | 70e1c40e6bcf0c5afe4a4638a7c168069d9c8319 | [
"MIT"
] | 950 | 2020-02-21T02:39:18.000Z | 2022-03-31T07:27:36.000Z | PAT/PAT-B/CPP/1018.锤子剪刀布.cpp | RestmeF/2021-Postgraduate-408 | 70e1c40e6bcf0c5afe4a4638a7c168069d9c8319 | [
"MIT"
] | 6 | 2020-04-03T13:08:47.000Z | 2022-03-07T08:54:56.000Z | PAT/PAT-B/CPP/1018.锤子剪刀布.cpp | RestmeF/2021-Postgraduate-408 | 70e1c40e6bcf0c5afe4a4638a7c168069d9c8319 | [
"MIT"
] | 131 | 2020-02-22T15:35:59.000Z | 2022-03-21T04:23:57.000Z | #include <iostream>
using namespace std;
int main(){
int n;
cin >> n;
int jiawin = 0, yiwin = 0;
int jia[3] = {0}, yi[3] = {0};
for(int i = 0; i < n; i++ ){
char s, t;
cin >> s >> t;
if(s == 'B' && t == 'C'){
jiawin++;
jia[0]++;
}else if(s == 'B' && t == 'J'){
yiwin++;
yi[2]++;
}else if(s == ... | 23.025 | 131 | 0.41911 | hao14293 |
56c1b0a833b492e6f545340d6fab31648eb920b3 | 1,649 | cpp | C++ | cpp/segment_trees_2017/segtree.cpp | petuhovskiy/Templates-CP | 7419d5b5c6a92a98ba4d93525f6db22b7c3afa9e | [
"MIT"
] | 8 | 2016-06-05T19:19:27.000Z | 2019-05-14T10:33:37.000Z | cpp/segment_trees_2017/segtree.cpp | petuhovskiy/Templates-CP | 7419d5b5c6a92a98ba4d93525f6db22b7c3afa9e | [
"MIT"
] | 2 | 2017-02-21T12:38:27.000Z | 2018-01-28T20:05:00.000Z | cpp/segment_trees_2017/segtree.cpp | petuhovskiy/Templates-CP | 7419d5b5c6a92a98ba4d93525f6db22b7c3afa9e | [
"MIT"
] | 6 | 2015-12-26T21:12:17.000Z | 2022-03-26T21:40:17.000Z | template<typename T, typename U>
struct segtree {
int n;
int h;
std::vector<T> t;
std::vector<U> u;
template<typename U2>
void apply(int x, U2 upd) {
t[x].apply(upd);
if (x < n) u[x].apply(upd);
}
void push(int x) {
for (int i = h; i > 0; i--) {
in... | 23.557143 | 71 | 0.363857 | petuhovskiy |
56c7bc9c5e57bde17ed2ebe4aee5336406aa3e5c | 142 | cpp | C++ | contest/yukicoder/159.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/yukicoder/159.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/yukicoder/159.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "template.hpp"
int main() {
setBoolName("YES", "NO");
double p(in), q(in);
cout << ((1 - p) * q < p * (1 - q) * q) << endl;
}
| 17.75 | 50 | 0.478873 | not522 |
08cbc5884ae6e5a991bbf315d056721f69138e0d | 1,507 | cpp | C++ | breeze/text/test/string_builder_test.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | 1 | 2021-04-03T22:35:52.000Z | 2021-04-03T22:35:52.000Z | breeze/text/test/string_builder_test.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | null | null | null | breeze/text/test/string_builder_test.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | 1 | 2021-10-01T04:26:48.000Z | 2021-10-01T04:26:48.000Z | // ===========================================================================
// Copyright 2021 Gennaro Prota
//
// Licensed under the 3-Clause BSD License.
// (See accompanying file 3_CLAUSE_BSD_LICENSE.txt or
// <https://opensource.org/licenses/BSD-3-C... | 25.542373 | 78 | 0.512276 | gennaroprota |
08eccc436ec610da1ebbe503ed6e5fcd5fb7399d | 434 | cpp | C++ | src/commands/ServerDeviceListCommand.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 7 | 2018-06-09T05:55:59.000Z | 2021-01-05T05:19:02.000Z | src/commands/ServerDeviceListCommand.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 1 | 2019-12-25T10:39:06.000Z | 2020-01-03T08:35:29.000Z | src/commands/ServerDeviceListCommand.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 11 | 2018-05-10T08:29:05.000Z | 2020-01-22T20:49:32.000Z | #include "commands/ServerDeviceListCommand.h"
using namespace BeeeOn;
using namespace std;
ServerDeviceListCommand::ServerDeviceListCommand(
const DevicePrefix &prefix):
m_prefix(prefix)
{
}
ServerDeviceListCommand::~ServerDeviceListCommand()
{
}
DevicePrefix ServerDeviceListCommand::devicePrefix() const
{
retu... | 17.36 | 58 | 0.781106 | jalowiczor |
08f1142801945f003535a870a05b21a6a8b3fe44 | 2,089 | cpp | C++ | src/zwave/ZWaveDriverEvent.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 7 | 2018-06-09T05:55:59.000Z | 2021-01-05T05:19:02.000Z | src/zwave/ZWaveDriverEvent.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 1 | 2019-12-25T10:39:06.000Z | 2020-01-03T08:35:29.000Z | src/zwave/ZWaveDriverEvent.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 11 | 2018-05-10T08:29:05.000Z | 2020-01-22T20:49:32.000Z | #include <Poco/Exception.h>
#include "zwave/ZWaveDriverEvent.h"
using namespace std;
using namespace Poco;
using namespace BeeeOn;
ZWaveDriverEvent::ZWaveDriverEvent(const map<string, uint32_t> &stats):
m_stats(stats)
{
}
uint32_t ZWaveDriverEvent::lookup(const string &key) const
{
auto it = m_stats.find(key);
if... | 16.579365 | 71 | 0.746769 | jalowiczor |
08f27218e1d7766b91876bd6e2836fd0aec7beb2 | 1,428 | cpp | C++ | Practice/2018/2018.8.15/HDU5608.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2018/2018.8.15/HDU5608.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2018/2018.8.15/HDU5608.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
#include<map>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=1000000;
const int Mod=1e9+7;
const int inf=2147483647;
bool notprime[maxN];
int pcnt,Prime[maxN],Mu[maxN];
i... | 18.075949 | 63 | 0.584734 | SYCstudio |
08f41bb96ec1e898fbcac9a8e314b2486240411c | 335 | hpp | C++ | external/boost/logging/boost/logging/detail/raw_doc/customize_manipulator.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 5 | 2015-09-15T16:24:14.000Z | 2021-08-12T11:05:55.000Z | external/boost/logging/boost/logging/detail/raw_doc/customize_manipulator.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | null | null | null | external/boost/logging/boost/logging/detail/raw_doc/customize_manipulator.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 3 | 2016-11-17T04:38:38.000Z | 2021-04-10T17:23:52.000Z | namespace boost { namespace logging {
/**
@page customize_manipulator Customizing manipulator arguments (Advanced)
FIXME
optimize::cache_string_on_str
optimize::cache_string_several_str
@section customize_optimize Optimizing manipulator arguments
optimize::cache_string_on_str
optimize::cache_string_several_str
... | 14.565217 | 72 | 0.826866 | saga-project |
1c0bc29f6f372f1a32d6571391dd1bcac5fb73da | 1,633 | hpp | C++ | Node/Software/ShellMMap.hpp | UofT-HPRC/FFIVE | 4bb17f9669b0c731fe23ea06de26a8921c708ab5 | [
"BSD-Source-Code"
] | 3 | 2021-08-17T11:07:32.000Z | 2022-01-14T15:52:23.000Z | Node/Software/ShellMMap.hpp | UofT-HPRC/FFIVE | 4bb17f9669b0c731fe23ea06de26a8921c708ab5 | [
"BSD-Source-Code"
] | null | null | null | Node/Software/ShellMMap.hpp | UofT-HPRC/FFIVE | 4bb17f9669b0c731fe23ea06de26a8921c708ab5 | [
"BSD-Source-Code"
] | null | null | null | #ifndef SHELL_MMAP_HPP
#define SHELL_MMAP_HPP
#include <iostream>
#include <cstdint>
#include <fcntl.h>
#include <sys/mman.h>
#include <unistd.h>
#include "ShellUtils.hpp"
namespace FPGA_SHELL
{
// Open /dev/mem, if not already done, to give access to physical addresses
int32_t OpenPhysical(int32_t fd)
{... | 25.515625 | 91 | 0.568279 | UofT-HPRC |
1c136acbf99428c3715e72a45f52aa31e837c7b2 | 3,461 | cpp | C++ | src/core/util/DenseFlagArray.cpp | Kelan0/WorldEngine | e76e7ff47278e837f4d1b9216773dd79eeee1b52 | [
"MIT"
] | null | null | null | src/core/util/DenseFlagArray.cpp | Kelan0/WorldEngine | e76e7ff47278e837f4d1b9216773dd79eeee1b52 | [
"MIT"
] | null | null | null | src/core/util/DenseFlagArray.cpp | Kelan0/WorldEngine | e76e7ff47278e837f4d1b9216773dd79eeee1b52 | [
"MIT"
] | null | null | null |
#include "DenseFlagArray.h"
#define BIT(bitIndex) (1 << (bitIndex))
#define SET_BIT(val, bitIndex, isSet) if (isSet) val |= BIT(bitIndex); else val &= ~BIT(bitIndex);
#define GET_BIT(val, bitIndex) (((val) >> (bitIndex)) & 1)
DenseFlagArray::DenseFlagArray():
m_size(0) {
}
DenseFlagArray::~DenseFlagArray() {
}... | 26.419847 | 122 | 0.625253 | Kelan0 |
1c1374a5937184a0749c23e341dea52f0f75a73a | 8,431 | cpp | C++ | src/ObjectPool.cpp | 9chu/Moe.Core | 24fc7701fe8f4b70911fac18438b8f7557aa1773 | [
"MIT"
] | 29 | 2018-09-05T09:50:32.000Z | 2021-04-19T15:39:38.000Z | src/ObjectPool.cpp | 9chu/Moe.Core | 24fc7701fe8f4b70911fac18438b8f7557aa1773 | [
"MIT"
] | 1 | 2017-09-12T09:07:51.000Z | 2017-12-08T15:49:24.000Z | src/ObjectPool.cpp | 9chu/MOE.Core | 24fc7701fe8f4b70911fac18438b8f7557aa1773 | [
"MIT"
] | 2 | 2018-09-19T13:49:23.000Z | 2021-01-13T08:52:35.000Z | /**
* @file
* @author chu
* @date 2018/8/2
*/
#include <Moe.Core/ObjectPool.hpp>
using namespace std;
using namespace moe;
//////////////////////////////////////////////////////////////////////////////// Node
#ifndef NDEBUG
void ObjectPool::Node::Attach(Node* node)noexcept
{
assert(node);
... | 25.394578 | 102 | 0.56316 | 9chu |
1c140d3dbcbc615613735a575bfeef40d18ce949 | 2,535 | cpp | C++ | Seagull-Core/src/Platform/DirectX/DirectX12CommandList.cpp | ILLmew/Seagull-Engine | fb51b66812eca6b70ed0e35ecba091e9874b5bea | [
"MIT"
] | null | null | null | Seagull-Core/src/Platform/DirectX/DirectX12CommandList.cpp | ILLmew/Seagull-Engine | fb51b66812eca6b70ed0e35ecba091e9874b5bea | [
"MIT"
] | null | null | null | Seagull-Core/src/Platform/DirectX/DirectX12CommandList.cpp | ILLmew/Seagull-Engine | fb51b66812eca6b70ed0e35ecba091e9874b5bea | [
"MIT"
] | null | null | null | #include "sgpch.h"
#include "DirectX12CommandList.h"
#include "DirectX12RenderQueue.h"
#include "DirectXHelper.h"
#include "d3dx12.h"
namespace SG
{
DirectX12CommandList::DirectX12CommandList(ID3D12Device1* device, const Ref<DirectX12RenderQueue>& renderQueue)
{
ThrowIfFailed(device->CreateCommandList(0, D3D12_CO... | 35.704225 | 118 | 0.810651 | ILLmew |
1c15e45d2310aaee410919816d445b997d345c38 | 990 | cpp | C++ | design_pattern/2_Structural_Patterns/2.3_CompositePattern/main.cpp | guangjung/linux_cplusplus | 3000303c6680db17715c4802fd05c84a4ce84c1e | [
"MIT"
] | null | null | null | design_pattern/2_Structural_Patterns/2.3_CompositePattern/main.cpp | guangjung/linux_cplusplus | 3000303c6680db17715c4802fd05c84a4ce84c1e | [
"MIT"
] | null | null | null | design_pattern/2_Structural_Patterns/2.3_CompositePattern/main.cpp | guangjung/linux_cplusplus | 3000303c6680db17715c4802fd05c84a4ce84c1e | [
"MIT"
] | null | null | null |
//https://blog.csdn.net/liang19890820/article/details/71240662
//main.cpp
#include "composite.h"
#include "leaf.h"
int main()
{
// 创建一个树形结构
// 创建根节点
Composite *pRoot = new Composite("江湖公司(任我行)");
// 创建分支
Composite *pDepart1 = new Composite("日月神教(东方不败)");
pDepart1->Add(new Leaf("光明左使(向问天)"))... | 21.521739 | 63 | 0.590909 | guangjung |
1c1dbe3a713c269519a286b0765fcf6c0b2034bc | 329 | cpp | C++ | test/Test.cpp | mzh19940817/MyAllocator | 5ff72b13775caf76cd30cc232dcd9542427f4ea3 | [
"MIT"
] | null | null | null | test/Test.cpp | mzh19940817/MyAllocator | 5ff72b13775caf76cd30cc232dcd9542427f4ea3 | [
"MIT"
] | null | null | null | test/Test.cpp | mzh19940817/MyAllocator | 5ff72b13775caf76cd30cc232dcd9542427f4ea3 | [
"MIT"
] | null | null | null | #include "MyAllocator.h"
#include <vector>
#include "gtest/gtest.h"
struct MyAllocatorTest : testing::Test
{
};
TEST_F(MyAllocatorTest, test_for_my_allocator)
{
int arr[3] {1, 2, 3};
std::vector<int, MA::allocator<int>> vec{arr, arr + 3};
ASSERT_EQ(1, vec[0]);
ASSERT_EQ(2, vec[1]);
ASSERT_EQ(3, ve... | 19.352941 | 59 | 0.644377 | mzh19940817 |
1c1ee7480aa05d516af8d3e8eebbfd42381e8be6 | 2,691 | cpp | C++ | src/trap.cpp | prinsij/RogueReborn | 20e6ba4d2e61a47283747ba207a758e604fa89d9 | [
"BSD-3-Clause"
] | null | null | null | src/trap.cpp | prinsij/RogueReborn | 20e6ba4d2e61a47283747ba207a758e604fa89d9 | [
"BSD-3-Clause"
] | null | null | null | src/trap.cpp | prinsij/RogueReborn | 20e6ba4d2e61a47283747ba207a758e604fa89d9 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file trap.cpp
* @author Team Rogue++
* @date December 08, 2016
*
* @brief Member definitions for the Trap class
*/
#include "include/armor.h"
#include "include/coord.h"
#include "include/feature.h"
#include "include/level.h"
#include "include/playerchar.h"
#include "include/random.h"
#include "include/tr... | 26.126214 | 97 | 0.665552 | prinsij |
1c2076f3c2443d007c280d234ac4862564d868b5 | 2,305 | cpp | C++ | VulkanTutorials/Plugins/VulkanRendering/VulkanDynamicRenderBuilder.cpp | RichDavisonNCL/VulkanTutorialsRelease | a26b053b170fafa764dee6a575695ff9c3495640 | [
"MIT"
] | null | null | null | VulkanTutorials/Plugins/VulkanRendering/VulkanDynamicRenderBuilder.cpp | RichDavisonNCL/VulkanTutorialsRelease | a26b053b170fafa764dee6a575695ff9c3495640 | [
"MIT"
] | null | null | null | VulkanTutorials/Plugins/VulkanRendering/VulkanDynamicRenderBuilder.cpp | RichDavisonNCL/VulkanTutorialsRelease | a26b053b170fafa764dee6a575695ff9c3495640 | [
"MIT"
] | null | null | null | /******************************************************************************
This file is part of the Newcastle Vulkan Tutorial Series
Author:Rich Davison
Contact:richgdavison@gmail.com
License: MIT (see LICENSE file at the top of the source tree)
*///////////////////////////////////////////////////////////////////... | 29.177215 | 103 | 0.746204 | RichDavisonNCL |
1c215b01709cf6e871ea75c953a511b6e09fcfd8 | 378 | cpp | C++ | core/Source/CodaStringTransform.cpp | paxbun/dear-my-prof | a1e0032f17d9a62a58673b5dbe2de1446006e528 | [
"MIT"
] | 1 | 2020-01-19T14:14:13.000Z | 2020-01-19T14:14:13.000Z | core/Source/CodaStringTransform.cpp | paxbun/dear-my-prof | a1e0032f17d9a62a58673b5dbe2de1446006e528 | [
"MIT"
] | null | null | null | core/Source/CodaStringTransform.cpp | paxbun/dear-my-prof | a1e0032f17d9a62a58673b5dbe2de1446006e528 | [
"MIT"
] | 1 | 2020-11-18T05:24:38.000Z | 2020-11-18T05:24:38.000Z | // Copyright (c) 2019 Dear My Professor Authors
// Author: paxbun
#include <core/CodaStringTransform.hpp>
#include <boost/locale.hpp>
bool CodaStringTransform::_EndsWithCoda(std::string const& input)
{
auto conv = boost::locale::conv::utf_to_utf<wchar_t>(input);
auto back = conv.back();
return back >= 0... | 25.2 | 75 | 0.679894 | paxbun |
1c26d8f2c8f8524fe4bfce4920a1b730f97794d8 | 432 | cpp | C++ | tests/server/TcpConnection/tests.cpp | batburger/Native-Backend | aaed26851e09f9e110061025fb2140aed1b4f9b5 | [
"Apache-2.0"
] | null | null | null | tests/server/TcpConnection/tests.cpp | batburger/Native-Backend | aaed26851e09f9e110061025fb2140aed1b4f9b5 | [
"Apache-2.0"
] | null | null | null | tests/server/TcpConnection/tests.cpp | batburger/Native-Backend | aaed26851e09f9e110061025fb2140aed1b4f9b5 | [
"Apache-2.0"
] | null | null | null | #define BOOST_TEST_MODULE server_TcpConnection_tests
#include <boost/test/unit_test.hpp>
#include <native-backend/server/Server.h>
BOOST_AUTO_TEST_SUITE(server_TcpConnection_tests)
/*There's no use full way of testing this class outside of the
* Server class, because one would require to mimic all behavior
... | 33.230769 | 68 | 0.773148 | batburger |
1c29af64cae69959b521a29b13c9a4d1321134eb | 5,217 | hpp | C++ | matrix_inverse.hpp | janezz55/vxl | 415bdcb7d5304c6229ac2c910fbdc2988103fdba | [
"Unlicense"
] | 28 | 2016-11-15T09:16:43.000Z | 2021-04-12T15:38:46.000Z | matrix_inverse.hpp | janezz55/vxl | 415bdcb7d5304c6229ac2c910fbdc2988103fdba | [
"Unlicense"
] | null | null | null | matrix_inverse.hpp | janezz55/vxl | 415bdcb7d5304c6229ac2c910fbdc2988103fdba | [
"Unlicense"
] | 1 | 2020-09-04T22:27:20.000Z | 2020-09-04T22:27:20.000Z | #ifndef VXL_MATRIX_INVERSE_HPP
# define VXL_MATRIX_INVERSE_HPP
# pragma once
#include "matrix_determinant.hpp"
namespace vxl
{
//////////////////////////////////////////////////////////////////////////////
template <class T>
//__attribute__ ((noinline))
inline matrix<T, 2, 2> inv(matrix<T, 2, 2> const& ma) noexcept
... | 36.739437 | 78 | 0.379337 | janezz55 |
1c2fccf62da3e58f82082e09b5e3398d05384f15 | 51,411 | hpp | C++ | glfw3_app/ignitor/wave_cap.hpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 9 | 2015-09-22T21:36:57.000Z | 2021-04-01T09:16:53.000Z | glfw3_app/ignitor/wave_cap.hpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | null | null | null | glfw3_app/ignitor/wave_cap.hpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 2 | 2019-02-21T04:22:13.000Z | 2021-03-02T17:24:32.000Z | #pragma once
//=====================================================================//
/*! @file
@brief 波形キャプチャー・クラス
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE
*/
//========... | 29.128045 | 87 | 0.570053 | hirakuni45 |
1c40415d373b86ce2e000fe8d3cd0e1c51117f3c | 977 | cpp | C++ | UnitTests/TestApp/ActionCreateData.cpp | lmj0591/mygui | 311fb9d07089f64558eb7f77e9b37c4cb91e3559 | [
"MIT"
] | 590 | 2015-01-06T09:22:06.000Z | 2022-03-21T18:23:02.000Z | UnitTests/TestApp/ActionCreateData.cpp | lmj0591/mygui | 311fb9d07089f64558eb7f77e9b37c4cb91e3559 | [
"MIT"
] | 159 | 2015-01-07T03:34:23.000Z | 2022-02-21T21:28:51.000Z | UnitTests/TestApp/ActionCreateData.cpp | lmj0591/mygui | 311fb9d07089f64558eb7f77e9b37c4cb91e3559 | [
"MIT"
] | 212 | 2015-01-05T07:33:33.000Z | 2022-03-28T22:11:51.000Z | /*!
@file
@author Albert Semenov
@date 07/2012
*/
#include "ActionCreateData.h"
#include "DataManager.h"
#include "DataInfoManager.h"
namespace tools
{
ActionCreateData::ActionCreateData() :
mData(nullptr),
mComplete(false)
{
}
ActionCreateData::~ActionCreateData()
{
if (mData != nullptr && !mComplet... | 17.446429 | 78 | 0.685773 | lmj0591 |
1c440155b03beee5ee8039970d6cad6fe77ce1a8 | 792 | hpp | C++ | book/not_so_basics/testing/Dealer.hpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | book/not_so_basics/testing/Dealer.hpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | book/not_so_basics/testing/Dealer.hpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | #pragma once
#include "Action.hpp"
#include "Hand.hpp"
namespace luanics::cards::blackjack {
/////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
///
/// @class Dealer
///
/// @brief Following standard rules, hits until 17 reached... | 23.294118 | 69 | 0.431818 | luanics |
1c44630469d3718b7cca2a5836a6ccebe4c1ea7c | 304 | cpp | C++ | Tasks/year3-demo-workspace/Lecture01-PortOut/main.cpp | ConnorD02/Embedded-Systems | 3e42b3da487fbe3bf7cfa897a6dd4cdb568d97e1 | [
"Apache-2.0"
] | 33 | 2020-08-05T12:58:51.000Z | 2022-03-28T12:00:20.000Z | Tasks/year3-demo-workspace/Lecture01-PortOut/main.cpp | ConnorD02/Embedded-Systems | 3e42b3da487fbe3bf7cfa897a6dd4cdb568d97e1 | [
"Apache-2.0"
] | 37 | 2020-08-05T12:53:22.000Z | 2022-03-04T10:24:47.000Z | Tasks/year3-demo-workspace/Lecture01-PortOut/main.cpp | ConnorD02/Embedded-Systems | 3e42b3da487fbe3bf7cfa897a6dd4cdb568d97e1 | [
"Apache-2.0"
] | 51 | 2020-10-06T11:04:40.000Z | 2022-03-28T12:00:11.000Z | #include "mbed.h"
//BusOut leds(PC_2, PC_3, PC_6, PB_0, PB_7, PB_14);
PortOut portc(PortC, 0b0000000001001100);
PortOut portb(PortB, 0b0100000010000001);
int main() {
while (true) {
portb = 0;
portc = 0xFFFF;
wait_us(500000);
portb = 0xFFFF;
portc = 0;
wait_us(500000);
}
}
| 17.882353 | 51 | 0.634868 | ConnorD02 |
1c62982fa529dc9f0dd8cee2272f4cded59f225d | 1,795 | cpp | C++ | leetcode/_236_lowest_common_ancestor_of_a_binary_tree_2.cpp | WindyDarian/OJ_Submissions | a323595c3a32ed2e07af65374ef90c81d5333f96 | [
"Apache-2.0"
] | 3 | 2017-02-19T14:38:32.000Z | 2017-07-22T17:06:55.000Z | leetcode/_236_lowest_common_ancestor_of_a_binary_tree_2.cpp | WindyDarian/OJ_Submissions | a323595c3a32ed2e07af65374ef90c81d5333f96 | [
"Apache-2.0"
] | null | null | null | leetcode/_236_lowest_common_ancestor_of_a_binary_tree_2.cpp | WindyDarian/OJ_Submissions | a323595c3a32ed2e07af65374ef90c81d5333f96 | [
"Apache-2.0"
] | null | null | null | //==============================================================================
// Copyright 2016 Windy Darian (Ruoyu Fan)
//
// 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:... | 28.046875 | 80 | 0.545404 | WindyDarian |
1c6acf7ce271c21eb9918c68cce3d24bd9d1333f | 3,130 | hpp | C++ | library/inc/argo/action/Callback.hpp | phforest/Argo | bd45b2bf53f88fbd9f6215dc6293bbb3614e37d8 | [
"MIT"
] | null | null | null | library/inc/argo/action/Callback.hpp | phforest/Argo | bd45b2bf53f88fbd9f6215dc6293bbb3614e37d8 | [
"MIT"
] | null | null | null | library/inc/argo/action/Callback.hpp | phforest/Argo | bd45b2bf53f88fbd9f6215dc6293bbb3614e37d8 | [
"MIT"
] | null | null | null | #ifndef HEADER_argo_action_Callback_hpp_INCLUDE_GUARD
#define HEADER_argo_action_Callback_hpp_INCLUDE_GUARD
#include "argo/Context.hpp"
#include "argo/action/IAction.hpp"
#include "argo/details/log.hpp"
#include "argo/details/mss.hpp"
#include "argo/details/optional.hpp"
#include "argo/traits/conversion.hpp"
#include ... | 41.733333 | 169 | 0.650799 | phforest |
1c6b0464f5d4891666abda68087b97aec4fdcefa | 2,618 | cpp | C++ | src/hypro/representations/Box/intervalMethods.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 22 | 2016-10-05T12:19:01.000Z | 2022-01-23T09:14:41.000Z | src/hypro/representations/Box/intervalMethods.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 23 | 2017-05-08T15:02:39.000Z | 2021-11-03T16:43:39.000Z | src/hypro/representations/Box/intervalMethods.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 12 | 2017-06-07T23:51:09.000Z | 2022-01-04T13:06:21.000Z | #include "intervalMethods.h"
namespace hypro {
void reduceIntervalsNumberRepresentation( std::vector<carl::Interval<mpq_class>>& intervals, unsigned limit ) {
mpq_class limit2 = mpq_class( limit ) * mpq_class( limit );
for ( unsigned d = 0; d < intervals.size(); ++d ) {
//std::cout << "(Upper Bound) mpq_class: " ... | 42.918033 | 128 | 0.606188 | hypro |
1c6cd514bbb1e87b74a40651a751a12f92307405 | 3,332 | hh | C++ | src/Xi-Crypto/include/Xi/Crypto/Hash/Sha2.hh | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | src/Xi-Crypto/include/Xi/Crypto/Hash/Sha2.hh | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | src/Xi-Crypto/include/Xi/Crypto/Hash/Sha2.hh | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | /* ============================================================================================== *
* *
* Galaxia Blockchain *
* ... | 49.731343 | 100 | 0.444778 | ElSamaritan |
1c6dfcba405fcbc6ada048b7837745a2a6b620f1 | 201 | cpp | C++ | examples/s3/boo.cpp | Costallat/hunter | dc0d79cb37b30cad6d6472d7143fe27be67e26d5 | [
"BSD-2-Clause"
] | 2,146 | 2015-01-10T07:26:58.000Z | 2022-03-21T02:28:01.000Z | examples/s3/boo.cpp | koinos/hunter | fc17bc391210bf139c55df7f947670c5dff59c57 | [
"BSD-2-Clause"
] | 1,778 | 2015-01-03T11:50:30.000Z | 2019-12-26T05:31:20.000Z | examples/s3/boo.cpp | koinos/hunter | fc17bc391210bf139c55df7f947670c5dff59c57 | [
"BSD-2-Clause"
] | 734 | 2015-03-05T19:52:34.000Z | 2022-02-22T23:18:54.000Z | #include <libs3.h>
int main() {
const char *userAgentInfo = "";
int flags = 0;
const char *defaultS3HostName = "";
S3Status result = S3_initialize(userAgentInfo, flags, defaultS3HostName);
}
| 20.1 | 75 | 0.691542 | Costallat |
1c78a06ce6df0438fcb3464340f1c05f56aff8d2 | 7,774 | cpp | C++ | vm/src/vm/Core.cpp | lordadamson/tethys | 8bad2155462fb436a3da6ce1c69242486f62fe9f | [
"BSD-3-Clause"
] | null | null | null | vm/src/vm/Core.cpp | lordadamson/tethys | 8bad2155462fb436a3da6ce1c69242486f62fe9f | [
"BSD-3-Clause"
] | null | null | null | vm/src/vm/Core.cpp | lordadamson/tethys | 8bad2155462fb436a3da6ce1c69242486f62fe9f | [
"BSD-3-Clause"
] | null | null | null | #include "vm/Core.h"
#include "vm/Op.h"
#include "vm/Util.h"
namespace vm
{
inline static Op
pop_op(Core& self, const mn::Buf<uint8_t>& code)
{
return Op(pop8(code, self.r[Reg_IP].u64));
}
inline static Reg
pop_reg(Core& self, const mn::Buf<uint8_t>& code)
{
return Reg(pop8(code, self.r[Reg_IP].u64));
}
... | 19.882353 | 68 | 0.583483 | lordadamson |
cc5f0159c6737950cf8497fcaf3281e8eca65677 | 93 | cpp | C++ | CsCoreDEPRECATED/Source/CsCoreDEPRECATED/AI/CsTypes_AI.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsCoreDEPRECATED/Source/CsCoreDEPRECATED/AI/CsTypes_AI.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsCoreDEPRECATED/Source/CsCoreDEPRECATED/AI/CsTypes_AI.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2019 Closed Sum Games, LLC. All Rights Reserved.
#include "AI/CsTypes_AI.h" | 46.5 | 66 | 0.763441 | closedsum |
cc644814ced864e55f84434873e4d5590205f56e | 7,856 | cc | C++ | chapter-casa/exp-6/main.cc | Mark1626/road-to-plus-plus | 500db757051e32e6ccd144b70171c826527610d4 | [
"CC0-1.0"
] | 1 | 2021-07-04T12:41:16.000Z | 2021-07-04T12:41:16.000Z | chapter-casa/exp-6/main.cc | Mark1626/road-to-plus-plus | 500db757051e32e6ccd144b70171c826527610d4 | [
"CC0-1.0"
] | null | null | null | chapter-casa/exp-6/main.cc | Mark1626/road-to-plus-plus | 500db757051e32e6ccd144b70171c826527610d4 | [
"CC0-1.0"
] | null | null | null | #include <casacore/casa/Arrays/IPosition.h>
#include <casacore/casa/Arrays/Matrix.h>
#include <casacore/casa/Containers/Record.h>
#include <casacore/casa/Quanta/MVTime.h>
#include <casacore/coordinates/Coordinates/Coordinate.h>
#include <casacore/coordinates/Coordinates/CoordinateSystem.h>
#include <casacore/coordinate... | 28.671533 | 79 | 0.60998 | Mark1626 |
cc7017dda9b6c5b938f6d22364ea0d0ab6dbd4a6 | 44,110 | cpp | C++ | unittest/obproxy/test_event_processor.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 74 | 2021-05-31T15:23:49.000Z | 2022-03-12T04:46:39.000Z | unittest/obproxy/test_event_processor.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 16 | 2021-05-31T15:26:38.000Z | 2022-03-30T06:02:43.000Z | unittest/obproxy/test_event_processor.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 64 | 2021-05-31T15:25:36.000Z | 2022-02-23T08:43:58.000Z | /**
* Copyright (c) 2021 OceanBase
* OceanBase Database Proxy(ODP) is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ... | 40.880445 | 115 | 0.683428 | stutiredboy |
cc70e6c4befbc4621a267274e49806a5a78331b1 | 2,690 | cpp | C++ | AlphaEngine/Source/Math/Vector4.cpp | Sh1ft0/alpha | 6726d366f0c8d2e1434b87f815b2644ebf170adf | [
"Apache-2.0"
] | null | null | null | AlphaEngine/Source/Math/Vector4.cpp | Sh1ft0/alpha | 6726d366f0c8d2e1434b87f815b2644ebf170adf | [
"Apache-2.0"
] | null | null | null | AlphaEngine/Source/Math/Vector4.cpp | Sh1ft0/alpha | 6726d366f0c8d2e1434b87f815b2644ebf170adf | [
"Apache-2.0"
] | null | null | null | /**
Copyright 2014-2015 Jason R. Wendlandt
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | 28.020833 | 72 | 0.51487 | Sh1ft0 |
cc71ca850c8d94a413d3537d9a6677411b073e79 | 471 | hpp | C++ | src/internal/compiler_specifics.hpp | bmknecht/palnatoki | 0522d690f034d9f52730f9666731c3376dd33405 | [
"MIT"
] | null | null | null | src/internal/compiler_specifics.hpp | bmknecht/palnatoki | 0522d690f034d9f52730f9666731c3376dd33405 | [
"MIT"
] | null | null | null | src/internal/compiler_specifics.hpp | bmknecht/palnatoki | 0522d690f034d9f52730f9666731c3376dd33405 | [
"MIT"
] | null | null | null | #ifndef PALNATOKI_COMPILER_SPECIFICS_HPP
#define PALNATOKI_COMPILER_SPECIFICS_HPP
/** This file is part of the Palnatoki optimization library. For licensing
* information refer to the LICENSE file that is included in the project.
*
* This file in particular contains compiler specific defines.
*/
// On my system... | 29.4375 | 74 | 0.796178 | bmknecht |
cc734a5f8a6328bfefc86ac8a7d925ceee9f70f6 | 4,589 | hpp | C++ | cpp_algs/data_structures/tree/trie.hpp | pskrunner14/cpp-practice | c59928bb9b91204588a0bafdc9f42deaacc64d29 | [
"MIT"
] | 2 | 2018-09-14T14:17:27.000Z | 2020-01-02T00:20:52.000Z | cpp_algs/data_structures/tree/trie.hpp | pskrunner14/cpp-practice | c59928bb9b91204588a0bafdc9f42deaacc64d29 | [
"MIT"
] | 1 | 2018-10-28T19:45:20.000Z | 2018-10-28T19:50:02.000Z | cpp_algs/data_structures/tree/trie.hpp | pskrunner14/cpp-practice | c59928bb9b91204588a0bafdc9f42deaacc64d29 | [
"MIT"
] | 1 | 2019-12-29T19:58:08.000Z | 2019-12-29T19:58:08.000Z | /**
* MIT License
*
* Copyright (c) 2018 Prabhsimran Singh
*
* 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, co... | 28.68125 | 115 | 0.594247 | pskrunner14 |
cc79a10f195b24ee64dee6b05423e5d472e61e41 | 1,790 | hpp | C++ | libember/Headers/ember/glow/GlowSignal.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 78 | 2015-07-31T14:46:38.000Z | 2022-03-28T09:28:28.000Z | libember/Headers/ember/glow/GlowSignal.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 81 | 2015-08-03T07:58:19.000Z | 2022-02-28T16:21:19.000Z | libember/Headers/ember/glow/GlowSignal.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 49 | 2015-08-03T12:53:10.000Z | 2022-03-17T17:25:49.000Z | /*
libember -- C++ 03 implementation of the Ember+ Protocol
Copyright (C) 2012-2016 Lawo GmbH (http://www.lawo.com).
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 __LIBEMBER_GLOW_GLOWSIGNAL_... | 30.338983 | 91 | 0.6 | purefunsolutions |
cc7b8e491205d45097cb667f8eabebbe167534ac | 4,818 | hpp | C++ | source/GcLib/directx/VertexBuffer.hpp | Mugenri/Touhou-Danmakufu-ph3sx-2 | 4ab7e40682341ff41d7467b83bb64c9a669a6064 | [
"MIT"
] | null | null | null | source/GcLib/directx/VertexBuffer.hpp | Mugenri/Touhou-Danmakufu-ph3sx-2 | 4ab7e40682341ff41d7467b83bb64c9a669a6064 | [
"MIT"
] | null | null | null | source/GcLib/directx/VertexBuffer.hpp | Mugenri/Touhou-Danmakufu-ph3sx-2 | 4ab7e40682341ff41d7467b83bb64c9a669a6064 | [
"MIT"
] | null | null | null | #pragma once
#include "../pch.h"
#include "DxConstant.hpp"
namespace directx {
struct BufferLockParameter {
UINT lockOffset = 0U;
DWORD lockFlag = 0U;
void* data = nullptr;
size_t dataCount = 0U;
size_t dataStride = 1U;
BufferLockParameter() {
lockOffset = 0U;
lockFlag = 0U;
data = nullptr;
... | 28.011628 | 110 | 0.74616 | Mugenri |
cc808f61475662d3cc8815b2816b27415f5377ea | 2,234 | cpp | C++ | datastructures/binarytrees/largest_nonadj_sum.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | 5 | 2021-05-17T12:32:42.000Z | 2021-12-12T21:09:55.000Z | datastructures/binarytrees/largest_nonadj_sum.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | null | null | null | datastructures/binarytrees/largest_nonadj_sum.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | 1 | 2021-05-13T20:29:57.000Z | 2021-05-13T20:29:57.000Z | #include <iostream>
using namespace std;
class Node {
public:
int data;
Node *left, *right;
Node() = default;
Node(int d) : data(d), left(NULL), right(NULL) {}
~Node() { delete left, delete right, left = right = NULL; }
};
Node* buildTree();
pair<int, int> getLargestDisjoi... | 30.189189 | 95 | 0.647269 | oishikm12 |
cc85072f23c7cc6c31573bf529aadbee3c0ed4c6 | 1,153 | hpp | C++ | ex00/Cat.hpp | Gundul42/CPP_04 | 61cf8baeb9a9ed931ba423517937e697984c009b | [
"MIT"
] | null | null | null | ex00/Cat.hpp | Gundul42/CPP_04 | 61cf8baeb9a9ed931ba423517937e697984c009b | [
"MIT"
] | null | null | null | ex00/Cat.hpp | Gundul42/CPP_04 | 61cf8baeb9a9ed931ba423517937e697984c009b | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Cat.hpp :+: :+: :+: ... | 36.03125 | 80 | 0.235039 | Gundul42 |
cc870d8419fa4828708cf513941a4e2d2b0f6a29 | 4,627 | cpp | C++ | tests/bm_heterogeneous_count_ptr.cpp | mpusz/unordered_v2 | a3ab5a08b335b15fc60454ecc0c1d2199d01a5a1 | [
"MIT"
] | 5 | 2018-04-08T17:03:16.000Z | 2019-06-01T19:12:47.000Z | tests/bm_heterogeneous_count_ptr.cpp | mpusz/unordered_v2 | a3ab5a08b335b15fc60454ecc0c1d2199d01a5a1 | [
"MIT"
] | null | null | null | tests/bm_heterogeneous_count_ptr.cpp | mpusz/unordered_v2 | a3ab5a08b335b15fc60454ecc0c1d2199d01a5a1 | [
"MIT"
] | null | null | null | // The MIT License (MIT)
//
// Copyright (c) 2017 Mateusz Pusz
//
// 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, co... | 33.773723 | 114 | 0.707154 | mpusz |
cc8a5816aeb17ade6844422e5df3784f6a38df3b | 1,887 | cpp | C++ | tests/board_test.cpp | JAOP1/GO | 48c0275fd37bb552c0db4b968391a5a95ed6c860 | [
"MIT"
] | null | null | null | tests/board_test.cpp | JAOP1/GO | 48c0275fd37bb552c0db4b968391a5a95ed6c860 | [
"MIT"
] | null | null | null | tests/board_test.cpp | JAOP1/GO | 48c0275fd37bb552c0db4b968391a5a95ed6c860 | [
"MIT"
] | 2 | 2019-12-12T18:55:35.000Z | 2019-12-12T19:03:35.000Z | #include "../Include/BoardGame.hpp"
#include <gtest/gtest.h>
#include <iostream>
TEST(Board_Test, Creation)
{
Graph G = graphs::Grid(4, 4);
BoardGame Go(G, 0.5);
std::vector<char> initial_state(25, 'N');
ASSERT_EQ(Go.show_current_state(), initial_state);
}
TEST(Board_Test, Valid_action)
{
Graph G... | 23.886076 | 61 | 0.615262 | JAOP1 |
cc8c6ce05dd60ee0584e8e40f3aa68c2e377f35d | 356 | cpp | C++ | spriterengine/objectinfo/tagobjectinfo.cpp | Squalr/SpriterPlusPlus | ad728307b1d31238c6164b7b42936e6212e77a9e | [
"Zlib"
] | 92 | 2015-11-03T08:46:58.000Z | 2021-03-12T22:36:45.000Z | spriterengine/objectinfo/tagobjectinfo.cpp | Squalr/SpriterPlusPlus | ad728307b1d31238c6164b7b42936e6212e77a9e | [
"Zlib"
] | 15 | 2015-11-04T12:16:36.000Z | 2019-09-03T17:13:16.000Z | spriterengine/objectinfo/tagobjectinfo.cpp | Squalr/SpriterPlusPlus | ad728307b1d31238c6164b7b42936e6212e77a9e | [
"Zlib"
] | 53 | 2015-11-04T12:25:50.000Z | 2021-04-30T06:14:37.000Z | #include "tagobjectinfo.h"
namespace SpriterEngine
{
TagObjectInfo::TagObjectInfo()
{
}
void TagObjectInfo::setObjectToLinear(UniversalObjectInterface *bObject, real t, UniversalObjectInterface *resultObject)
{
resultObject->setTagList(&tagList);
}
void TagObjectInfo::pushBackTag(const std::string * tag)
... | 16.952381 | 121 | 0.758427 | Squalr |
cc8e38dd536004284e8293e73b86b9c6766c613e | 2,090 | cpp | C++ | TurboX-Engine/TurboX-Engine/W_Hierarchy.cpp | moon-funding/TurboX-Engine | 0ebcc94f0c93fa0a5d1f88f8f46e90df28b5c8a6 | [
"MIT",
"Zlib",
"Apache-2.0",
"BSD-3-Clause"
] | 6 | 2020-10-08T03:21:06.000Z | 2022-01-19T14:50:01.000Z | TurboX-Engine/TurboX-Engine/W_Hierarchy.cpp | moon-funding/TurboX-Engine | 0ebcc94f0c93fa0a5d1f88f8f46e90df28b5c8a6 | [
"MIT",
"Zlib",
"Apache-2.0",
"BSD-3-Clause"
] | 11 | 2021-01-09T09:40:54.000Z | 2021-12-01T22:28:35.000Z | TurboX-Engine/TurboX-Engine/W_Hierarchy.cpp | moon-funding/TurboX-Engine | 0ebcc94f0c93fa0a5d1f88f8f46e90df28b5c8a6 | [
"MIT",
"Zlib",
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2020-12-15T00:36:33.000Z | 2021-01-05T08:28:17.000Z | #include "W_Hierarchy.h"
#include "ModuleScene.h"
#include "Application.h"
W_Hierarchy::W_Hierarchy()
{
open_pop_up = false;
}
W_Hierarchy::~W_Hierarchy()
{
}
void W_Hierarchy::Draw()
{
ImGui::Begin("Hierarchy");
ImGuiTreeNodeFlags default_flags = ImGuiTreeNodeFlags_NoTreePushOnOpen;
DrawGameObject(App->scene->... | 21.111111 | 118 | 0.705263 | moon-funding |
cc9c4fbdb45d79d0fd9d176302543bd38330349a | 875 | cpp | C++ | Linked List/stackImplementionLinkedList.cpp | harshallgarg/Diversified-Programming | 7e6fb135c4639dbaa0651b85f98397f994a5b11d | [
"MIT"
] | 2 | 2020-08-09T02:09:50.000Z | 2020-08-09T07:07:47.000Z | Linked List/stackImplementionLinkedList.cpp | harshallgarg/Diversified-Programming | 7e6fb135c4639dbaa0651b85f98397f994a5b11d | [
"MIT"
] | null | null | null | Linked List/stackImplementionLinkedList.cpp | harshallgarg/Diversified-Programming | 7e6fb135c4639dbaa0651b85f98397f994a5b11d | [
"MIT"
] | 5 | 2020-09-21T12:49:07.000Z | 2020-09-29T16:13:09.000Z | //
// stackImplementionLinkedList.cpp
// C++
//
// Created by Anish Mookherjee on 31/03/20.
// Copyright © 2020 Anish Mookherjee. All rights reserved.
//
#include <iostream>
using namespace std;
struct StackNode
{
int data;
StackNode *next;
StackNode(int a)
{
data = a;
next = NULL;... | 14.830508 | 75 | 0.56 | harshallgarg |
cc9d4c05139e6626c27df4354e9a42179b77abaa | 884 | cpp | C++ | HDUOJ/6324/observation.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | HDUOJ/6324/observation.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | HDUOJ/6324/observation.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <cstring>
#include <iomanip>
#include <climits>
#include <stack>
#include <queue>
#include <vector>
#include <set>
#include <map>
#include <functional>
#include <iterator>
using namespace std;
#define SIZE 100010
in... | 16.37037 | 41 | 0.46267 | codgician |
cca299c64288ae42223e36c1a26c99d8b4c9b402 | 1,095 | cpp | C++ | src/lib/helium_us915_netjoin.cpp | olicooper/arduino-lorawan | caceeb49b1f5520d11668aeb7c587ef1a96ca9ad | [
"MIT"
] | 198 | 2016-11-04T13:49:53.000Z | 2022-03-30T13:25:51.000Z | src/lib/helium_us915_netjoin.cpp | olicooper/arduino-lorawan | caceeb49b1f5520d11668aeb7c587ef1a96ca9ad | [
"MIT"
] | 134 | 2017-03-02T05:25:20.000Z | 2022-03-31T19:26:33.000Z | src/lib/helium_us915_netjoin.cpp | olicooper/arduino-lorawan | caceeb49b1f5520d11668aeb7c587ef1a96ca9ad | [
"MIT"
] | 51 | 2017-11-16T15:14:38.000Z | 2022-03-09T09:41:43.000Z | /*
Module: helium_us915_netjoin.cpp
Function:
Arduino_LoRaWAN_Helium_us915::NetBeginRegionInit()
Copyright notice:
See LICENSE file accompanying this project.
Author:
Terry Moore, MCCI Corporation February 2020
*/
#include <Arduino_LoRaWAN_Helium.h>
#include <Arduino_LoRaWAN_lmic.h>
/**************... | 21.9 | 78 | 0.400913 | olicooper |
cca7779d4cd5e5cd70a4749115a3ec5bd72eebd3 | 23 | cpp | C++ | ch15/ex15.34.35.36.38/andquery.cpp | shawabhishek/Cpp-Primer | c93143965e62c7ab833f43586ab1c759a5707cfc | [
"CC0-1.0"
] | 7,897 | 2015-01-02T04:35:38.000Z | 2022-03-31T08:32:50.000Z | ch15/ex15.34.35.36.38/andquery.cpp | shawabhishek/Cpp-Primer | c93143965e62c7ab833f43586ab1c759a5707cfc | [
"CC0-1.0"
] | 456 | 2015-01-01T15:47:52.000Z | 2022-02-07T04:17:56.000Z | ch15/ex15.34.35.36.38/andquery.cpp | shawabhishek/Cpp-Primer | c93143965e62c7ab833f43586ab1c759a5707cfc | [
"CC0-1.0"
] | 3,887 | 2015-01-01T13:23:23.000Z | 2022-03-31T15:05:21.000Z | #include "andquery.h"
| 7.666667 | 21 | 0.695652 | shawabhishek |
cca8c4e26b768dddcf516e3d929d11c4b025470c | 1,656 | cpp | C++ | leetcode_cpp/reverse_linked_list_II.cpp | jialing3/corner_cases | 54a316518fcf4b43ae96ed9935b4cf91ade1eed9 | [
"Apache-2.0"
] | 1 | 2015-05-29T08:40:48.000Z | 2015-05-29T08:40:48.000Z | leetcode_cpp/reverse_linked_list_II.cpp | jialing3/corner_cases | 54a316518fcf4b43ae96ed9935b4cf91ade1eed9 | [
"Apache-2.0"
] | null | null | null | leetcode_cpp/reverse_linked_list_II.cpp | jialing3/corner_cases | 54a316518fcf4b43ae96ed9935b4cf91ade1eed9 | [
"Apache-2.0"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode *reverseBetween(ListNode *head, int m, int n) {
// case in which no swap is needed
if (m == n) ... | 23.657143 | 61 | 0.407005 | jialing3 |
ccad57f059424cb47150cc48cf0d7c1a417233bc | 1,294 | cpp | C++ | Code/C++/sorted_zig_zag_array.cpp | Atul-Kashyap/Algo-Tree | 5ab65e86551be2843cae85a7c9860a91883abede | [
"MIT"
] | 356 | 2021-01-24T11:34:15.000Z | 2022-03-16T08:39:02.000Z | Code/C++/sorted_zig_zag_array.cpp | Atul-Kashyap/Algo-Tree | 5ab65e86551be2843cae85a7c9860a91883abede | [
"MIT"
] | 1,778 | 2021-01-24T10:52:44.000Z | 2022-01-30T12:34:05.000Z | Code/C++/sorted_zig_zag_array.cpp | Atul-Kashyap/Algo-Tree | 5ab65e86551be2843cae85a7c9860a91883abede | [
"MIT"
] | 782 | 2021-01-24T10:54:10.000Z | 2022-03-23T10:16:04.000Z | /*
Approach : First sort the array then, swap pairs of elements
except the first element. Example - keep a[0], swap a[1] with a[2], swap a[3] with a[4], and so on.
So, we will take array and its size as parameters, run a loop from i to size of the array
and swap every pair of element using swap function. At the end of... | 23.527273 | 99 | 0.544822 | Atul-Kashyap |
ccaf786c723eb9e2b5b472bcfd90366cc2650e7a | 1,767 | cc | C++ | src/bin/ngrammerge.cc | unixnme/opengrm_ngram | ce9b55b406c681902a20c4b547bdd254a8a399e7 | [
"Apache-2.0"
] | 1 | 2020-05-11T00:44:55.000Z | 2020-05-11T00:44:55.000Z | src/bin/ngrammerge.cc | unixnme/opengrm_ngram | ce9b55b406c681902a20c4b547bdd254a8a399e7 | [
"Apache-2.0"
] | null | null | null | src/bin/ngrammerge.cc | unixnme/opengrm_ngram | ce9b55b406c681902a20c4b547bdd254a8a399e7 | [
"Apache-2.0"
] | null | null | null |
// Licensed under the Apache License, Version 2.0 (the 'License');
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed... | 45.307692 | 79 | 0.728919 | unixnme |
ccb088631b6ec9d949e90b8364b37129fe8757a2 | 7,307 | cpp | C++ | src/app/app.cpp | zgpio/tree.nvim | 5ff3644fb4eddc6754488263c21745e057a16f05 | [
"BSD-3-Clause"
] | 199 | 2019-10-20T12:53:41.000Z | 2022-03-28T09:04:41.000Z | src/app/app.cpp | zgpio/tree.nvim | 5ff3644fb4eddc6754488263c21745e057a16f05 | [
"BSD-3-Clause"
] | 12 | 2019-10-21T01:16:56.000Z | 2022-01-27T03:22:55.000Z | src/app/app.cpp | zgpio/tree.nvim | 5ff3644fb4eddc6754488263c21745e057a16f05 | [
"BSD-3-Clause"
] | 7 | 2019-11-01T02:13:58.000Z | 2021-11-30T17:34:24.000Z | #include <cinttypes>
#include <iostream>
#include "app.h"
using std::cout;
using std::endl;
using std::string;
namespace tree
{
App::App(nvim::Nvim *nvim, int chan_id) : m_nvim(nvim), chan_id(chan_id)
{
INFO("chan_id: %d\n", chan_id);
auto &a = *m_nvim;
// NOTE: 必须同步调用
a.execute_lua("require('tree').... | 34.630332 | 115 | 0.545641 | zgpio |
ccb2ac203882c1bd30851b880da094ac75bbbf43 | 1,470 | hpp | C++ | code/jsbind/v8/global.hpp | Chobolabs/jsbind | 874b41df6bbc9a3b756e828c64e43e1b6cbd4386 | [
"MIT"
] | 57 | 2019-03-30T21:26:08.000Z | 2022-03-11T02:22:09.000Z | code/jsbind/v8/global.hpp | Chobolabs/jsbind | 874b41df6bbc9a3b756e828c64e43e1b6cbd4386 | [
"MIT"
] | null | null | null | code/jsbind/v8/global.hpp | Chobolabs/jsbind | 874b41df6bbc9a3b756e828c64e43e1b6cbd4386 | [
"MIT"
] | 3 | 2020-04-11T09:19:44.000Z | 2021-09-30T07:30:45.000Z | // jsbind
// Copyright (c) 2019 Chobolabs Inc.
// http://www.chobolabs.com/
//
// Distributed under the MIT Software License
// See accompanying file LICENSE.txt or copy at
// http://opensource.org/licenses/MIT
//
#pragma once
#if defined(JSBIND_NODE)
# include <node.h>
#endif
#include <v8.h>
#include <new>
names... | 19.6 | 94 | 0.533333 | Chobolabs |
ccb569defcd3a351a7d493e3bccf21d2d98e4c18 | 703 | cpp | C++ | backend/drone_ros_ws/src/drone_app/test/BBoxTest.cpp | Flytte/flytte | 36e2dc886c7437c3e3fff5a082296d5bc1f10bd7 | [
"BSD-3-Clause"
] | 3 | 2018-05-08T18:01:48.000Z | 2019-06-27T07:31:20.000Z | backend/drone_ros_ws/src/drone_app/test/BBoxTest.cpp | Flytte/flytte | 36e2dc886c7437c3e3fff5a082296d5bc1f10bd7 | [
"BSD-3-Clause"
] | null | null | null | backend/drone_ros_ws/src/drone_app/test/BBoxTest.cpp | Flytte/flytte | 36e2dc886c7437c3e3fff5a082296d5bc1f10bd7 | [
"BSD-3-Clause"
] | null | null | null | #include "common/BBox.hpp"
#include <gtest/gtest.h>
TEST(BBox, defaultConstructor)
{
BBox box;
EXPECT_EQ(0, box.posX);
EXPECT_EQ(0, box.posY);
EXPECT_EQ(0, box.w);
EXPECT_EQ(0, box.h);
EXPECT_EQ(0, box.rotX);
EXPECT_EQ(0, box.rotY);
EXPECT_EQ(0, box.rotZ);
}
TEST(BBox, copyConstructo... | 19 | 42 | 0.623044 | Flytte |
ccb5c6c9346c1270e6beacf912fe3b038cdd64fb | 4,923 | cpp | C++ | owGame/Sky/Sky.cpp | Chaos192/OpenWow | 1d91a51fafeedadc67122a3e9372ec4637a48434 | [
"Apache-2.0"
] | 30 | 2017-09-02T20:25:47.000Z | 2021-12-31T10:12:07.000Z | owGame/Sky/Sky.cpp | Chaos192/OpenWow | 1d91a51fafeedadc67122a3e9372ec4637a48434 | [
"Apache-2.0"
] | null | null | null | owGame/Sky/Sky.cpp | Chaos192/OpenWow | 1d91a51fafeedadc67122a3e9372ec4637a48434 | [
"Apache-2.0"
] | 23 | 2018-02-04T17:18:33.000Z | 2022-03-22T09:45:36.000Z | #include "stdafx.h"
// Include
#include "SkyManager.h"
// General
#include "Sky.h"
namespace
{
const float cSkyMultiplier = 36.0f;
template<typename T>
inline T GetByTimeTemplate(std::vector<Sky::SSkyInterpolatedParam<T>> param, uint32 _time)
{
if (param.empty())
return T();
T parBegin, parEnd;
uint32... | 28.789474 | 163 | 0.700995 | Chaos192 |
ccbeadcd7cdc4214ba78636dafecb47cb6bcc123 | 441 | hpp | C++ | sort/shaker_sort.hpp | lis411/sorting | 57b113849c0a598c96aecc5fe6fd27582f141bfa | [
"MIT"
] | null | null | null | sort/shaker_sort.hpp | lis411/sorting | 57b113849c0a598c96aecc5fe6fd27582f141bfa | [
"MIT"
] | null | null | null | sort/shaker_sort.hpp | lis411/sorting | 57b113849c0a598c96aecc5fe6fd27582f141bfa | [
"MIT"
] | null | null | null | #ifndef SHAKER_SORT_HPP
#define SHAKER_SORT_HPP
template<typename Iterator>
void shaker_sort(Iterator b, Iterator e)
{
while(b != e)
{
for(auto bb = b; std::next(bb) != e; ++bb)
{
if(*bb > *std::next(bb))
std::swap(*bb, *std::next(bb));
}
--e;
if(b == e)
break;
for(auto ee = std::prev(e);... | 11.605263 | 44 | 0.530612 | lis411 |
ccc0093f23ef2a08aee93406c0284dec8b6fc9b4 | 2,725 | cpp | C++ | AdventOfCode/2020/c.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | AdventOfCode/2020/c.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | AdventOfCode/2020/c.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | // Created by Tanuj Jain
#include<bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define pb push_back
#define mp make_pair
# define M_PI 3.14159265358979323846 /* pi */
#define FIO ios_base::sync_with_stdio(... | 25 | 106 | 0.473394 | onexmaster |
ccc27e2f3eb0a50fb1390a42327c25e9cc291628 | 2,791 | cpp | C++ | samples/ListApp/ListApp.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | samples/ListApp/ListApp.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | samples/ListApp/ListApp.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null |
#include <gui/layout/layout_container.h>
#include <gui/layout/adaption_layout.h>
#include <gui/ctrl/virtual_view.h>
#include <gui/ctrl/file_tree.h>
#include <gui/ctrl/std_dialogs.h>
// --------------------------------------------------------------------------
int gui_main(const std::vector<std::string>& /*args*/) {... | 33.626506 | 95 | 0.636689 | r3dl3g |
ccc38e9ee25e0fc1d201b389f548a591f9ab70c3 | 8,123 | cpp | C++ | src/plugins/bittorrent/torrenttabfileswidget.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 120 | 2015-01-22T14:10:39.000Z | 2021-11-25T12:57:16.000Z | src/plugins/bittorrent/torrenttabfileswidget.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 8 | 2015-02-07T19:38:19.000Z | 2017-11-30T20:18:28.000Z | src/plugins/bittorrent/torrenttabfileswidget.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 33 | 2015-02-07T16:59:55.000Z | 2021-10-12T00:36:40.000Z | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE... | 31.242308 | 110 | 0.666256 | Maledictus |
ccc437b9b6c4dfcc1e5ae048e15d00a691019e2c | 1,530 | hpp | C++ | src/sounds/Mp3Decoder.hpp | vgmoose/space | 8f72c1d155b16b9705aa248ae8e84989f28fb498 | [
"MIT"
] | 25 | 2016-02-02T14:13:29.000Z | 2018-04-27T18:57:43.000Z | src/sounds/Mp3Decoder.hpp | vgmoose/wiiu-space | 8f72c1d155b16b9705aa248ae8e84989f28fb498 | [
"MIT"
] | 14 | 2016-03-18T17:41:59.000Z | 2017-01-04T11:00:25.000Z | src/sounds/Mp3Decoder.hpp | vgmoose/space | 8f72c1d155b16b9705aa248ae8e84989f28fb498 | [
"MIT"
] | 8 | 2016-03-18T07:05:24.000Z | 2018-04-24T14:38:11.000Z | /***************************************************************************
* Copyright (C) 2010
* by Dimok
*
* 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 gr... | 31.875 | 77 | 0.660131 | vgmoose |
ccc55ae9d8e24241afd8176f50ccf373a55130ec | 2,893 | hpp | C++ | inc/Helpers/Parameter.hpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | inc/Helpers/Parameter.hpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | inc/Helpers/Parameter.hpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | #ifndef ECSS_SERVICES_PARAMETER_HPP
#define ECSS_SERVICES_PARAMETER_HPP
#include "etl/String.hpp"
#include "Message.hpp"
#include "ECSS_Definitions.hpp"
/**
* Implementation of a Parameter field, as specified in ECSS-E-ST-70-41C.
*
* @author Grigoris Pavlakis <grigpavl@ece.auth.gr>
* @author Athanasios Theocharis... | 35.716049 | 115 | 0.766678 | ACubeSAT |
ccd75449587615b2d6b8be5cbf43c63ca7aea6b1 | 120,789 | cpp | C++ | olp-cpp-sdk-dataservice-read/test/unit/src/CatalogClientTest.cpp | ystefinko/here-olp-edge-sdk-cpp | 59f814cf98acd8f6c62572104a21ebdff4027171 | [
"Apache-2.0"
] | 1 | 2021-01-27T13:10:32.000Z | 2021-01-27T13:10:32.000Z | olp-cpp-sdk-dataservice-read/test/unit/src/CatalogClientTest.cpp | ystefinko/here-olp-edge-sdk-cpp | 59f814cf98acd8f6c62572104a21ebdff4027171 | [
"Apache-2.0"
] | null | null | null | olp-cpp-sdk-dataservice-read/test/unit/src/CatalogClientTest.cpp | ystefinko/here-olp-edge-sdk-cpp | 59f814cf98acd8f6c62572104a21ebdff4027171 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2019 HERE Europe B.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 36.74749 | 81 | 0.695146 | ystefinko |
ccd7f0ecb1012bc3172bb0343849506f7eba3e34 | 18,220 | cxx | C++ | 3rd/fltk/OpenGL/Fl_Gl_Window.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 11 | 2017-09-30T12:21:55.000Z | 2021-04-29T21:31:57.000Z | 3rd/fltk/OpenGL/Fl_Gl_Window.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 2 | 2017-07-11T11:20:08.000Z | 2018-03-27T12:09:02.000Z | 3rd/fltk/OpenGL/Fl_Gl_Window.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 24 | 2018-03-27T11:46:16.000Z | 2021-05-01T20:28:34.000Z | // "$Id: Fl_Gl_Window.cxx 5936 2007-07-24 11:25:53Z spitzak $"
//
// Copyright 1998-2006 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// versi... | 32.710952 | 99 | 0.704007 | MarioHenze |
ccd8312594e55bf962aa855e1fefc1e514fe86db | 20,619 | cpp | C++ | frameworks/render/libs/isect/dmzRenderIsect.cpp | dmzgroup/dmz | fc2d9ddcb04ed71f4106b8d33539529807b3dea6 | [
"MIT"
] | 2 | 2015-11-05T03:03:43.000Z | 2017-05-15T12:55:39.000Z | frameworks/render/libs/isect/dmzRenderIsect.cpp | dmzgroup/dmz | fc2d9ddcb04ed71f4106b8d33539529807b3dea6 | [
"MIT"
] | null | null | null | frameworks/render/libs/isect/dmzRenderIsect.cpp | dmzgroup/dmz | fc2d9ddcb04ed71f4106b8d33539529807b3dea6 | [
"MIT"
] | null | null | null | #include <dmzRenderIsect.h>
#include <dmzTypesHandleContainer.h>
#include <dmzTypesHashTableUInt32Template.h>
#include <dmzTypesVector.h>
//! \cond
const dmz::UInt32 dmz::IsectPolygonBackCulledMask (0x01);
const dmz::UInt32 dmz::IsectPolygonFrontCulledMask (0x02);
const dmz::UInt32 dmz::IsectPolygonInvisibleMask (0x04... | 23.193476 | 90 | 0.701392 | dmzgroup |
ccda31c2812b512e71f448266234ec53ea6dc35b | 1,498 | hpp | C++ | include/cppgit2/tag.hpp | koordinates/cppgit2 | 49c36843f828f2f628aacdd04daf9d0812a220a4 | [
"MIT"
] | null | null | null | include/cppgit2/tag.hpp | koordinates/cppgit2 | 49c36843f828f2f628aacdd04daf9d0812a220a4 | [
"MIT"
] | null | null | null | include/cppgit2/tag.hpp | koordinates/cppgit2 | 49c36843f828f2f628aacdd04daf9d0812a220a4 | [
"MIT"
] | 1 | 2022-01-26T20:23:12.000Z | 2022-01-26T20:23:12.000Z | #pragma once
#include <cppgit2/libgit2_api.hpp>
#include <cppgit2/object.hpp>
#include <cppgit2/oid.hpp>
#include <cppgit2/ownership.hpp>
#include <cppgit2/signature.hpp>
#include <git2.h>
namespace cppgit2 {
class tag : public libgit2_api {
public:
// Default construct a tag
tag();
// Construct from libgit2 C... | 20.520548 | 61 | 0.685581 | koordinates |
ef9ddb8bf2a42a685700817d638d505ef1a0f0a5 | 397 | cpp | C++ | higan/fc/cpu/serialization.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 38 | 2018-04-05T05:00:05.000Z | 2022-02-06T00:02:02.000Z | higan/fc/cpu/serialization.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 1 | 2018-04-29T19:45:14.000Z | 2018-04-29T19:45:14.000Z | higan/fc/cpu/serialization.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 8 | 2018-04-16T22:37:46.000Z | 2021-02-10T07:37:03.000Z | auto CPU::serialize(serializer& s) -> void {
MOS6502::serialize(s);
Thread::serialize(s);
s.array(ram);
s.integer(io.interruptPending);
s.integer(io.nmiPending);
s.integer(io.nmiLine);
s.integer(io.irqLine);
s.integer(io.apuLine);
s.integer(io.rdyLine);
s.integer(io.rdyAddrValid);
s.integer(io.... | 19.85 | 44 | 0.690176 | 13824125580 |
efa042dc4136bec3323bfe0cefe543bcbd5721e4 | 2,356 | cc | C++ | gcj2019/Round_1b/Problem1.cc | maciej-marek-mielczarek/gcj | b3ccdd48f24c2e89f4135f6d8f53d12c404f327b | [
"MIT"
] | null | null | null | gcj2019/Round_1b/Problem1.cc | maciej-marek-mielczarek/gcj | b3ccdd48f24c2e89f4135f6d8f53d12c404f327b | [
"MIT"
] | null | null | null | gcj2019/Round_1b/Problem1.cc | maciej-marek-mielczarek/gcj | b3ccdd48f24c2e89f4135f6d8f53d12c404f327b | [
"MIT"
] | null | null | null | #include<iostream>
#include<string>
#include<vector>
using std::cin;
using std::cout;
using std::endl;
using std::vector;
int main()
{
int test_case = 1, n_test_cases;
cin >> n_test_cases;
for(;test_case <= n_test_cases; ++test_case)
{
int p, q;
cin >> p >> q;
if(q>100)
... | 23.098039 | 69 | 0.290323 | maciej-marek-mielczarek |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.