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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b469e88b0209cd3453460a1ca8d115f7bb7d62e0 | 15,090 | cpp | C++ | CK3ToEU4Tests/EU4WorldTests/FlagFoundryTests/RecolorerTests.cpp | DrDudelsack/CK3toEU4 | b675ce2d623ff40905897c0be54eb34fa48a3c25 | [
"MIT"
] | 21 | 2020-08-13T02:52:43.000Z | 2021-11-26T05:25:24.000Z | CK3ToEU4Tests/EU4WorldTests/FlagFoundryTests/RecolorerTests.cpp | klorpa/CK3toEU4 | 7e46f29714c03fc5033aa9e23c29222b034ac08a | [
"MIT"
] | 50 | 2020-09-02T16:55:06.000Z | 2022-03-13T07:13:15.000Z | CK3ToEU4Tests/EU4WorldTests/FlagFoundryTests/RecolorerTests.cpp | klorpa/CK3toEU4 | 7e46f29714c03fc5033aa9e23c29222b034ac08a | [
"MIT"
] | 24 | 2020-08-08T23:48:02.000Z | 2022-02-28T11:36:59.000Z | #include "../CK3toEU4/Source/EU4World/FlagFoundry/Recolorer.h"
#include "../CK3toEU4/Source/EU4World/FlagFoundry/Warehouse.h"
#include "Magick++.h"
#include "gtest/gtest.h"
#include <sstream>
TEST(EU4World_RecolorerTests, noColorGraysSolidPattern)
{
EU4::coloredImage imageBlock;
imageBlock.imageData = Magick::Image(... | 40.026525 | 146 | 0.777336 | DrDudelsack |
b46cf4c73f3a124e857cea9b02213f89aad1124a | 3,541 | hpp | C++ | include/System/Runtime/Serialization/SerializationEventsCache.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/System/Runtime/Serialization/SerializationEventsCache.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/System/Runtime/Serialization/SerializationEventsCache.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Completed includes
// Begin f... | 51.318841 | 235 | 0.744987 | Fernthedev |
b47224f60ac481c216568dff8fe3abbb36153bdb | 1,739 | cpp | C++ | kernel/system/dmzSystemDynamicLibraryWin32.cpp | tongli/dmz | f2242027a17ea804259f9412b07d69f719a527c5 | [
"MIT"
] | 1 | 2016-05-08T22:02:35.000Z | 2016-05-08T22:02:35.000Z | kernel/system/dmzSystemDynamicLibraryWin32.cpp | tongli/dmz | f2242027a17ea804259f9412b07d69f719a527c5 | [
"MIT"
] | null | null | null | kernel/system/dmzSystemDynamicLibraryWin32.cpp | tongli/dmz | f2242027a17ea804259f9412b07d69f719a527c5 | [
"MIT"
] | null | null | null | #include <dmzSystemDynamicLibrary.h>
#include "dmzSystemLocalWin32.h"
#include <windows.h>
struct dmz::DynamicLibrary::State {
const DynamicLibraryModeEnum LibMode;
String name;
HINSTANCE handle;
String error;
State (const DynamicLibraryModeEnum Mode) : LibMode (Mode), handle (0) {;}
};
dmz::DynamicL... | 21.207317 | 79 | 0.656699 | tongli |
b4764f4899e86cca167713bedd42e699eeba7a54 | 32,808 | cpp | C++ | RenderSystems/GL3Plus/src/OgreGL3PlusRenderPassDescriptor.cpp | FreeNightKnight/ogre-next | f2d1a31887a87c492b4225e063325c48693fec19 | [
"MIT"
] | null | null | null | RenderSystems/GL3Plus/src/OgreGL3PlusRenderPassDescriptor.cpp | FreeNightKnight/ogre-next | f2d1a31887a87c492b4225e063325c48693fec19 | [
"MIT"
] | null | null | null | RenderSystems/GL3Plus/src/OgreGL3PlusRenderPassDescriptor.cpp | FreeNightKnight/ogre-next | f2d1a31887a87c492b4225e063325c48693fec19 | [
"MIT"
] | null | null | null | /*
-----------------------------------------------------------------------------
This source file is part of OGRE-Next
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2017 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any pe... | 43.111695 | 105 | 0.514387 | FreeNightKnight |
b47798487b6aa98cc621b0fe61c98449373a32c4 | 17,909 | cc | C++ | tests/catch/unit/memory/hipMemset3DFunctional.cc | pghafari/HIP1 | 327695fcca1b06cdebd42d94c6eaa06b7d9149ca | [
"MIT"
] | 1,935 | 2017-05-28T04:52:18.000Z | 2022-03-30T23:50:43.000Z | tests/catch/unit/memory/hipMemset3DFunctional.cc | pghafari/HIP1 | 327695fcca1b06cdebd42d94c6eaa06b7d9149ca | [
"MIT"
] | 1,310 | 2017-05-30T22:16:09.000Z | 2022-03-31T08:25:58.000Z | tests/catch/unit/memory/hipMemset3DFunctional.cc | pghafari/HIP1 | 327695fcca1b06cdebd42d94c6eaa06b7d9149ca | [
"MIT"
] | 495 | 2017-06-01T01:26:27.000Z | 2022-03-28T16:36:51.000Z | /*
Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, mo... | 34.707364 | 79 | 0.664247 | pghafari |
b478607559def96e5afb122c533bb5a56601db8d | 2,824 | cpp | C++ | Axis.Core/unit_tests/MockBlockParser.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.Core/unit_tests/MockBlockParser.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.Core/unit_tests/MockBlockParser.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #if defined DEBUG || defined _DEBUG
#include "MockBlockParser.hpp"
#include "foundation/OutOfMemoryException.hpp"
#include "foundation/InvalidOperationException.hpp"
#include "foundation/NotSupportedException.hpp"
using namespace axis::application::parsing::parsers;
MockBlockParser::MockBlockParser( bool simulateBad... | 25.214286 | 197 | 0.771955 | renato-yuzup |
b4787e105092f49012b21ab9166efc2b5389e1af | 746 | cpp | C++ | s-psnr/s-psnr.cpp | I2-Multimedia-Lab/360-video-experimental-platform | efea80153bceac1051478772a5277156d1db1b7d | [
"MIT"
] | 12 | 2019-10-11T09:00:23.000Z | 2022-03-24T12:28:59.000Z | s-psnr/s-psnr.cpp | I2-Multimedia-Lab/360-video-experimental-platform | efea80153bceac1051478772a5277156d1db1b7d | [
"MIT"
] | null | null | null | s-psnr/s-psnr.cpp | I2-Multimedia-Lab/360-video-experimental-platform | efea80153bceac1051478772a5277156d1db1b7d | [
"MIT"
] | 1 | 2021-07-12T15:34:14.000Z | 2021-07-12T15:34:14.000Z | // s-psnr.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "config.h"
#include "video_source.h"
#include "spsnr_metric.h"
int main(int argc, char* argv[])
{
Config cfg;
if (!cfg.ParseCmdLineArgs(argc, argv)) {
cfg.Usage();
return -1;
}
VideoSo... | 20.162162 | 83 | 0.623324 | I2-Multimedia-Lab |
b47a1985dab6c6571f634f0c5bf5a383615ac34f | 298 | cc | C++ | nofx/nofx_ofAppRunner/nofx_ofGetWindowHeight.cc | sepehr-laal/nofx | 7abc9da3d4fc0f5b72c6b3d591a08cf44d00277e | [
"MIT"
] | null | null | null | nofx/nofx_ofAppRunner/nofx_ofGetWindowHeight.cc | sepehr-laal/nofx | 7abc9da3d4fc0f5b72c6b3d591a08cf44d00277e | [
"MIT"
] | null | null | null | nofx/nofx_ofAppRunner/nofx_ofGetWindowHeight.cc | sepehr-laal/nofx | 7abc9da3d4fc0f5b72c6b3d591a08cf44d00277e | [
"MIT"
] | null | null | null | #include "nofx_ofGetWindowHeight.h"
#include "ofAppRunner.h"
namespace nofx
{
namespace AppRunner
{
NAN_METHOD(nofx_ofGetWindowHeight)
{
NanReturnValue(ofGetWindowHeight());
} // !nofx_ofGetWindowHeight
} // !namespace AppRunner
} // !namespace nofx | 21.285714 | 42 | 0.657718 | sepehr-laal |
b47b962c8641af4113032b1e081d6b64dac3dfcb | 823 | cpp | C++ | arrays/023_maximum product subarray.cpp | CodeMacrocosm/DSA-BOOK | a94bd9d6b7e4cbef46c7531c023b02dab94477aa | [
"MIT"
] | 9 | 2021-05-18T05:08:29.000Z | 2021-10-02T18:21:54.000Z | 023_maximum product subarray.cpp | srujana-55/DSA-BOOK | a874354e9f9f29c6a767031c4ccb7d1c1fa5e60d | [
"MIT"
] | null | null | null | 023_maximum product subarray.cpp | srujana-55/DSA-BOOK | a874354e9f9f29c6a767031c4ccb7d1c1fa5e60d | [
"MIT"
] | 3 | 2021-05-19T06:13:43.000Z | 2022-01-25T07:30:33.000Z | //author :shreyamalogi
//Given an array Arr that contains N integers (may be positive, negative or zero). Find the product of the maximum product subarray.
//Note: Use 64-bit integer data type to avoid overflow.
// Auxiliary Space: O(1)
//Time Complexity: O(N)
#include<bits/stdc++.h>
using namespace std... | 18.704545 | 133 | 0.571081 | CodeMacrocosm |
b47c63ad583092338a0b8f52d9c5515823480a61 | 1,697 | hpp | C++ | src/SDE/SchematicID.hpp | evanova/libdgmpp | 867dc081b8dc474b396481ae1b92283affc858d3 | [
"MIT"
] | 4 | 2018-05-07T16:47:27.000Z | 2021-05-17T13:38:18.000Z | src/SDE/SchematicID.hpp | evanova/libdgmpp | 867dc081b8dc474b396481ae1b92283affc858d3 | [
"MIT"
] | null | null | null | src/SDE/SchematicID.hpp | evanova/libdgmpp | 867dc081b8dc474b396481ae1b92283affc858d3 | [
"MIT"
] | null | null | null | #pragma once
namespace dgmpp {
enum class SchematicID: unsigned short {
none = 0,
superconductors = 65,
coolant = 66,
rocketFuel = 67,
syntheticOil = 68,
oxides = 69,
silicateGlass = 70,
transmitter = 71,
waterCooledCPU = 72,
mechanicalParts = 73,
constructionBlocks = 74,
enrichedUranium = 75,... | 22.328947 | 41 | 0.702416 | evanova |
b47e7a2058cc37686a5cc26187f856e748f88207 | 12,849 | cpp | C++ | src/plugProjectMorimuraU/tyreMgr.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 33 | 2021-12-08T11:10:59.000Z | 2022-03-26T19:59:37.000Z | src/plugProjectMorimuraU/tyreMgr.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 6 | 2021-12-22T17:54:31.000Z | 2022-01-07T21:43:18.000Z | src/plugProjectMorimuraU/tyreMgr.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 2 | 2022-01-04T06:00:49.000Z | 2022-01-26T07:27:28.000Z | #include "types.h"
/*
Generated from dpostproc
.section .rodata # 0x804732E0 - 0x8049E220
.global lbl_804957D0
lbl_804957D0:
.4byte 0x835E8343
.4byte 0x8384837D
.4byte 0x836C815B
.4byte 0x83578383
.4byte 0x00000000
.global lbl_804957E4
lbl_804957E4:
... | 22.424084 | 71 | 0.615067 | projectPiki |
b480c7aeae19ec5d051b010c6ee9c2fecde1e3e5 | 656 | cpp | C++ | 29/test06_squared_sum.cpp | Hongbosherlock/geek_time_cpp | 6fb733d50623c6e40c59c975c064870b2a8efca0 | [
"Unlicense"
] | 171 | 2020-02-11T01:12:41.000Z | 2022-03-27T07:12:48.000Z | 29/test06_squared_sum.cpp | MouZaiSi-Demo/geek_time_cpp | 12bb93c3c708d069e9188649ece31295b8245ee5 | [
"Unlicense"
] | null | null | null | 29/test06_squared_sum.cpp | MouZaiSi-Demo/geek_time_cpp | 12bb93c3c708d069e9188649ece31295b8245ee5 | [
"Unlicense"
] | 69 | 2020-02-16T08:50:52.000Z | 2022-03-28T07:12:13.000Z | #if __cplusplus > 201703L
#include <ranges> // std::ranges::views
namespace ranges = std::ranges;
#else
#include <experimental/ranges/ranges> // ranges::views
namespace ranges = std::experimental::ranges;
#endif
#include <functional> // std::plus
#include <iostream> ... | 31.238095 | 74 | 0.539634 | Hongbosherlock |
b4811c1bc4162a045bd7af2d092b380ec62a406d | 39,485 | cc | C++ | crawl-ref/source/util/monster/monster-main.cc | AdamPG/dcrz | b7049a61050b9ea9c4a96181c4b42775bf904658 | [
"CC0-1.0"
] | null | null | null | crawl-ref/source/util/monster/monster-main.cc | AdamPG/dcrz | b7049a61050b9ea9c4a96181c4b42775bf904658 | [
"CC0-1.0"
] | null | null | null | crawl-ref/source/util/monster/monster-main.cc | AdamPG/dcrz | b7049a61050b9ea9c4a96181c4b42775bf904658 | [
"CC0-1.0"
] | 2 | 2021-03-07T18:45:13.000Z | 2021-03-08T23:28:57.000Z | /**
* @file
* @brief Contains code for the `monster` utility.
**/
#include "AppHdr.h"
#include "fake-main.hpp"
#include "coordit.h"
#include "item-name.h"
#include "item-prop.h"
#include "los.h"
#include "message.h"
#include "syscalls.h"
#include "version.h"
const coord_def MONSTER_PLACE(20, 20);
const string CA... | 31.588 | 156 | 0.511232 | AdamPG |
b485cea4249eb1892e12fb9a5bb71bf7cfa8f38a | 4,708 | cc | C++ | src/InterfaceModel.cc | FirefoxMetzger/sdformat | b25ecbc75f6d54b0f35ceafb0222c8dd544fdbbc | [
"ECL-2.0",
"Apache-2.0"
] | 67 | 2020-04-11T22:27:46.000Z | 2021-06-19T16:17:42.000Z | src/InterfaceModel.cc | FirefoxMetzger/sdformat | b25ecbc75f6d54b0f35ceafb0222c8dd544fdbbc | [
"ECL-2.0",
"Apache-2.0"
] | 339 | 2020-04-13T23:15:09.000Z | 2021-06-28T13:57:17.000Z | src/InterfaceModel.cc | FirefoxMetzger/sdformat | b25ecbc75f6d54b0f35ceafb0222c8dd544fdbbc | [
"ECL-2.0",
"Apache-2.0"
] | 45 | 2020-04-14T21:27:44.000Z | 2021-06-18T22:50:25.000Z | /*
* Copyright 2021 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 28.883436 | 79 | 0.641674 | FirefoxMetzger |
b488293690964e00233323a8489eaeab8a3da853 | 45,373 | cpp | C++ | src/df1b2-separable/df33fun.cpp | johnrsibert/admb | 063ec863a9f23f6c6afbc7d481af0476b8d63645 | [
"BSD-3-Clause"
] | null | null | null | src/df1b2-separable/df33fun.cpp | johnrsibert/admb | 063ec863a9f23f6c6afbc7d481af0476b8d63645 | [
"BSD-3-Clause"
] | null | null | null | src/df1b2-separable/df33fun.cpp | johnrsibert/admb | 063ec863a9f23f6c6afbc7d481af0476b8d63645 | [
"BSD-3-Clause"
] | null | null | null | /*
* $Id$
*
* Author: David Fournier
* Copyright (c) 2009-2012 ADMB Foundation
*/
#include <df1b2fun.h>
#include "df33fun.h"
df1b2variable * df3_three_variable::ind_var[3];
int df3_three_variable::num_ind_var=0;
int df3_three_variable::num_local_ind_var=0;
/**
Default constructor
*/
df3_three_variable::df3_... | 27.939039 | 85 | 0.514778 | johnrsibert |
b48b6a3a7bd13ce4f21a04c581230513160084fd | 21,714 | cc | C++ | vendor/rocksdb-5.9.2/utilities/transactions/write_prepared_txn_db.cc | AragornBUPT/cubefs | 93922d62c0a22343a20d0c7a5311818fb1896a0e | [
"Apache-2.0"
] | 2,498 | 2019-04-27T11:54:46.000Z | 2022-01-20T09:53:30.000Z | vendor/rocksdb-5.9.2/utilities/transactions/write_prepared_txn_db.cc | AragornBUPT/cubefs | 93922d62c0a22343a20d0c7a5311818fb1896a0e | [
"Apache-2.0"
] | 332 | 2019-04-28T03:42:42.000Z | 2022-01-19T08:47:32.000Z | vendor/rocksdb-5.9.2/utilities/transactions/write_prepared_txn_db.cc | AragornBUPT/cubefs | 93922d62c0a22343a20d0c7a5311818fb1896a0e | [
"Apache-2.0"
] | 367 | 2019-04-27T11:55:17.000Z | 2022-01-22T09:21:06.000Z | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#ifndef ROCKSDB_LITE
#ifndef __STDC_FORMAT_MACROS
#defin... | 42.081395 | 80 | 0.71447 | AragornBUPT |
b48bacc714cbce1b34bb6383cc7227c0a9123b66 | 3,249 | hpp | C++ | HugeCTR/include/data_readers/check_sum.hpp | xmh645214784/HugeCTR-1 | de4e850ef9993998c3a69ff1f2af64bed528989f | [
"Apache-2.0"
] | null | null | null | HugeCTR/include/data_readers/check_sum.hpp | xmh645214784/HugeCTR-1 | de4e850ef9993998c3a69ff1f2af64bed528989f | [
"Apache-2.0"
] | null | null | null | HugeCTR/include/data_readers/check_sum.hpp | xmh645214784/HugeCTR-1 | de4e850ef9993998c3a69ff1f2af64bed528989f | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2021, NVIDIA 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 applicable law ... | 32.818182 | 97 | 0.628193 | xmh645214784 |
b48e67b6e81aa7a47b07ae6785aedd01711464af | 5,090 | cpp | C++ | common/thorhelper/thorxmlwrite.cpp | jeclrsg/HPCC-Platform | c1daafb6060f0c47c95bce98e5431fedc33c592d | [
"Apache-2.0"
] | 286 | 2015-01-03T12:45:17.000Z | 2022-03-25T18:12:57.000Z | common/thorhelper/thorxmlwrite.cpp | jeclrsg/HPCC-Platform | c1daafb6060f0c47c95bce98e5431fedc33c592d | [
"Apache-2.0"
] | 9,034 | 2015-01-02T08:49:19.000Z | 2022-03-31T20:34:44.000Z | common/thorhelper/thorxmlwrite.cpp | cloLN/HPCC-Platform | 42ffb763a1cdcf611d3900831973d0a68e722bbe | [
"Apache-2.0"
] | 208 | 2015-01-02T03:27:28.000Z | 2022-02-11T05:54:52.000Z | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... | 33.267974 | 141 | 0.684479 | jeclrsg |
b48f9a9abacb8420820a69a62f83027a41e46668 | 1,385 | cpp | C++ | LightOJ/LightOJ - 1058/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | LightOJ/LightOJ - 1058/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | LightOJ/LightOJ - 1058/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 2018-01-30 23:12:19
* solution_verdict: Accepted language: C++
* run... | 32.209302 | 111 | 0.331408 | kzvd4729 |
b4903880c6550cb93fc59bd713d0c82ddab17a9d | 18,913 | cpp | C++ | groups/bsl/bslmt/bslmt_sluice.t.cpp | eddiepierce/bde | 45953ece9dd1cd8732f01a1cd24bbe838791d298 | [
"Apache-2.0"
] | null | null | null | groups/bsl/bslmt/bslmt_sluice.t.cpp | eddiepierce/bde | 45953ece9dd1cd8732f01a1cd24bbe838791d298 | [
"Apache-2.0"
] | null | null | null | groups/bsl/bslmt/bslmt_sluice.t.cpp | eddiepierce/bde | 45953ece9dd1cd8732f01a1cd24bbe838791d298 | [
"Apache-2.0"
] | null | null | null | // bslmt_sluice.t.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// NOTICE
//
// This component is not up to date with current BDE coding standards, and
// should not be used as an example f... | 31.893761 | 80 | 0.491091 | eddiepierce |
b49302291b08e76bba4db15e0b75b5ef366dd6b4 | 159 | cpp | C++ | Labs/Lab14/Respostas/lab14q2.cpp | JudsonSS/ProgComp | 6435c3e31a4b0715805feaf890223838161d11f0 | [
"MIT"
] | 11 | 2021-03-04T03:58:09.000Z | 2022-02-27T16:32:41.000Z | Labs/Lab14/Respostas/lab14q2.cpp | JudsonSS/ProgComp | 6435c3e31a4b0715805feaf890223838161d11f0 | [
"MIT"
] | null | null | null | Labs/Lab14/Respostas/lab14q2.cpp | JudsonSS/ProgComp | 6435c3e31a4b0715805feaf890223838161d11f0 | [
"MIT"
] | 7 | 2021-03-02T22:34:33.000Z | 2022-03-06T21:18:15.000Z | #include <iostream>
using namespace std;
int main()
{
char letra = 'A';
char * ptr = &letra;
*ptr = 'B';
cout << *ptr << endl;
cout << letra << endl;
}
| 12.230769 | 23 | 0.559748 | JudsonSS |
b497ec08af821eae9ac159372b6d4689d65aa015 | 1,898 | cpp | C++ | src/bitcoind/bitcoind-preload.cpp | amiller/shadow-plugin-bitcoin | 5c9a36da0c981dfe60c016d47810c1f787263b3a | [
"BSD-3-Clause"
] | 2 | 2015-12-05T01:11:06.000Z | 2017-02-25T03:48:40.000Z | src/bitcoind/bitcoind-preload.cpp | amiller/shadow-plugin-bitcoin | 5c9a36da0c981dfe60c016d47810c1f787263b3a | [
"BSD-3-Clause"
] | 2 | 2016-02-12T18:19:00.000Z | 2016-11-22T04:23:32.000Z | src/bitcoind/bitcoind-preload.cpp | amiller/shadow-plugin-bitcoin | 5c9a36da0c981dfe60c016d47810c1f787263b3a | [
"BSD-3-Clause"
] | 1 | 2019-05-02T18:22:21.000Z | 2019-05-02T18:22:21.000Z | #include <string>
#include <pthread.h>
#include <boost/thread/once.hpp>
#include <cstring>
extern "C" int CLogPrintStr(const char *);
int LogPrintStr(const std::string &str) {
return CLogPrintStr(str.c_str());
}
extern "C"
void plugin_preload_init_cpp() {
// Trigger global static initialization of the locale sy... | 29.65625 | 76 | 0.760801 | amiller |
a3352c8f7f6a48022817d0bb8763919f51a36da6 | 1,020 | cpp | C++ | 动态规划/树形DP/acwing_285.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | 3 | 2020-11-16T08:58:30.000Z | 2020-11-16T08:58:33.000Z | 动态规划/树形DP/acwing_285.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | 动态规划/树形DP/acwing_285.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
using namespace std;
const int N = 6010;
int n;
int happy[N];
int h[N], e[N], ne[N], idx;
bool has_father[N];
int f[N][2]; //f[u][0] 表示u为根的子树 不包含u节点的最大期望 f[u][1] 表示包含根节点u的子树的最大期望
//从根节点开始递归求出 子树的期望 然后讨论 2种 包含根节点和不包含根节点的 值 取max即可
void add(int a, int b) {
e[idx] = b;
... | 18.214286 | 69 | 0.481373 | tempure |
a3357b139bac0fbcae664faf68170eae7b0d59b8 | 7,683 | cpp | C++ | iRODS/lib/core/src/phymvUtil.cpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/core/src/phymvUtil.cpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/core/src/phymvUtil.cpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | /*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
#ifndef windows_platform
#include <sys/time.h>
#endif
#include "rodsPath.hpp"
#include "rodsErrorTable.hpp"
#include "rodsLog.hpp"
#include "miscUtil.hpp"
#inclu... | 32.693617 | 91 | 0.544969 | PlantandFoodResearch |
a335f0d91ac8d6ae412d23704b032c1dfce1733d | 677 | cpp | C++ | src/srchilite/ioexception.cpp | lingnand/Helium | d1f8fab6eb5d60e35b3287f6ea35cd1fae71f816 | [
"BSD-3-Clause"
] | 8 | 2021-04-16T02:05:54.000Z | 2022-03-16T13:56:23.000Z | src/srchilite/ioexception.cpp | lingnand/Helium | d1f8fab6eb5d60e35b3287f6ea35cd1fae71f816 | [
"BSD-3-Clause"
] | null | null | null | src/srchilite/ioexception.cpp | lingnand/Helium | d1f8fab6eb5d60e35b3287f6ea35cd1fae71f816 | [
"BSD-3-Clause"
] | 2 | 2021-04-17T10:49:58.000Z | 2021-07-21T20:39:52.000Z | //
// Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2004-2008
//
// Copyright: See COPYING file that comes with this distribution
//
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "ioexception.h"
namespace srchilite {
IOException::IOException(const std::string &_message,
const std::s... | 19.911765 | 88 | 0.666174 | lingnand |
a337073117a456d999773f8ad5dd5665fb692246 | 107 | cpp | C++ | unit_test/bboard/board_initializer.cpp | prokolyvakis/nips2018-agent | 0d93e343ee7e8c443874c4088908d32d5b96f20d | [
"MIT"
] | 9 | 2018-06-18T20:58:50.000Z | 2018-12-19T07:33:48.000Z | unit_test/bboard/board_initializer.cpp | prokolyvakis/nips2018-agent | 0d93e343ee7e8c443874c4088908d32d5b96f20d | [
"MIT"
] | 2 | 2018-07-26T21:37:35.000Z | 2019-02-12T14:04:28.000Z | unit_test/bboard/board_initializer.cpp | prokolyvakis/nips2018-agent | 0d93e343ee7e8c443874c4088908d32d5b96f20d | [
"MIT"
] | 6 | 2018-06-11T04:50:54.000Z | 2018-12-07T17:30:43.000Z | #include "catch.hpp"
#include "bboard.hpp"
TEST_CASE( "Board initialization", "[board creation]" )
{
}
| 10.7 | 55 | 0.672897 | prokolyvakis |
a3390dd6098c5ffa8e040b712d99d68ef32c76bc | 3,189 | hpp | C++ | include/tikpp/detail/type_traits/macros.hpp | aymanalqadhi/tikpp | 8e94abdc4ac8c85dd893780ad4256cdd6690a758 | [
"Apache-2.0"
] | 4 | 2021-02-07T08:21:10.000Z | 2022-01-16T04:33:18.000Z | include/tikpp/detail/type_traits/macros.hpp | xSHAD0Wx/tikpp | 8e94abdc4ac8c85dd893780ad4256cdd6690a758 | [
"Apache-2.0"
] | null | null | null | include/tikpp/detail/type_traits/macros.hpp | xSHAD0Wx/tikpp | 8e94abdc4ac8c85dd893780ad4256cdd6690a758 | [
"Apache-2.0"
] | 3 | 2020-10-18T20:00:38.000Z | 2022-03-22T09:04:46.000Z | #ifndef TIKPP_DETAIL_TYPE_TRAIT_MACROS_HPP
#define TIKPP_DETAIL_TYPE_TRAIT_MACROS_HPP
#include <type_traits>
#define HAS_MEMBER_FUNCTION_FULL(name, member, ret, args) \
template <typename T, typename = void> \
struct name : std::false_type {}; ... | 63.78 | 80 | 0.33741 | aymanalqadhi |
a33984300b4ea7e67158791483dba626b3e07bfe | 2,262 | cpp | C++ | Algorithm I/189.cpp | felixny/LeetCode | 9f76dad8063187e10d848228ea5b1a8a875d1894 | [
"MIT"
] | null | null | null | Algorithm I/189.cpp | felixny/LeetCode | 9f76dad8063187e10d848228ea5b1a8a875d1894 | [
"MIT"
] | null | null | null | Algorithm I/189.cpp | felixny/LeetCode | 9f76dad8063187e10d848228ea5b1a8a875d1894 | [
"MIT"
] | null | null | null | // 189. Rotate Array
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
vector<int> rotate(vector<int>& nums, int k) {
/* if (nums.size() < k) {
return nums;
} */
int sublength = nums.size() - k;
if (sublength < 0) {
sublength = nums.size() - 1;
}
// cout << subleng... | 18.694215 | 50 | 0.510168 | felixny |
a33c0f8e7a79f8c174217e46ca2c2391ded7ad3b | 8,521 | cpp | C++ | src/mongo/db/commands/isself.cpp | nleite/mongo | 1a1b6b0aaeefbae06942867e4dcf55d00d42afe0 | [
"Apache-2.0"
] | 24 | 2015-10-15T00:03:57.000Z | 2021-04-25T18:21:31.000Z | src/mongo/db/commands/isself.cpp | stennie/mongo | 9ff44ae9ad16a70e49517a78279260a37d31ac7c | [
"Apache-2.0"
] | 1 | 2015-06-02T12:19:19.000Z | 2015-06-02T12:19:19.000Z | src/mongo/db/commands/isself.cpp | stennie/mongo | 9ff44ae9ad16a70e49517a78279260a37d31ac7c | [
"Apache-2.0"
] | 3 | 2017-07-26T11:17:11.000Z | 2021-11-30T00:11:32.000Z | // isself.cpp
/**
* Copyright (C) 2012 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will b... | 31.559259 | 118 | 0.533036 | nleite |
a33cdde893b250cc007f4333ec4838d303d42b15 | 748 | cpp | C++ | src/client.cpp | lucky-rydar/lrrp | bb6e5eb05b23613b69e76a5e3c4e5d6fa5178f39 | [
"MIT"
] | null | null | null | src/client.cpp | lucky-rydar/lrrp | bb6e5eb05b23613b69e76a5e3c4e5d6fa5178f39 | [
"MIT"
] | null | null | null | src/client.cpp | lucky-rydar/lrrp | bb6e5eb05b23613b69e76a5e3c4e5d6fa5178f39 | [
"MIT"
] | null | null | null | #include "client.h"
lrrp::client::client(const std::string& host, int port)
: host_(host), port_(port) {
}
lrrp::response lrrp::client::send(request& req) {
asio::ip::tcp::socket socket(context_);
try{
socket.connect(
asio::ip::tcp::endpoint(
asio::ip::address::from_st... | 28.769231 | 81 | 0.610963 | lucky-rydar |
a33e6a647d6fbd5f775fc19e7154edd7d699d0c8 | 5,898 | hxx | C++ | Modules/Filtering/DistanceMap/include/itkHausdorffDistanceImageFilter.hxx | rdsouza10/ITK | 07cb23f9866768b5f4ee48ebec8766b6e19efc69 | [
"Apache-2.0"
] | 3 | 2019-11-19T09:47:25.000Z | 2022-02-24T00:32:31.000Z | Modules/Filtering/DistanceMap/include/itkHausdorffDistanceImageFilter.hxx | JamesLinus/ITK | 01fb2f2a97ae7767b7835dd92b40b6cc2c82e750 | [
"Apache-2.0"
] | 1 | 2019-03-18T14:19:49.000Z | 2020-01-11T13:54:33.000Z | Modules/Filtering/DistanceMap/include/itkHausdorffDistanceImageFilter.hxx | JamesLinus/ITK | 01fb2f2a97ae7767b7835dd92b40b6cc2c82e750 | [
"Apache-2.0"
] | 1 | 2022-02-24T00:32:36.000Z | 2022-02-24T00:32:36.000Z | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | 32.949721 | 123 | 0.741268 | rdsouza10 |
a3435928b541d4eb00ad0a871d4204e3ad975af9 | 740 | hpp | C++ | Krakoa/Source/Platform/OperatingSystem/Windows/ErrorHandlerWindows.hpp | KingKiller100/Krakoa-Engine | 0f2a5a5109e256a384abe8dc21eacaa45c1de610 | [
"Apache-2.0"
] | 1 | 2020-04-05T13:37:48.000Z | 2020-04-05T13:37:48.000Z | Krakoa/Source/Platform/OperatingSystem/Windows/ErrorHandlerWindows.hpp | KingKiller100/Krakoa-Engine | 0f2a5a5109e256a384abe8dc21eacaa45c1de610 | [
"Apache-2.0"
] | null | null | null | Krakoa/Source/Platform/OperatingSystem/Windows/ErrorHandlerWindows.hpp | KingKiller100/Krakoa-Engine | 0f2a5a5109e256a384abe8dc21eacaa45c1de610 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "../ErrorHandler/iErrorHandler.hpp"
#if defined(_WIN32) || defined(KRAKOA_OS_WINDOWS)
#include <Windows.h>
namespace krakoa::os::errors
{
class ErrorHandlerWindows final : public iErrorHandler
{
public:
ErrorHandlerWindows();
~ErrorHandlerWindows() override;
[[nodiscard]] std::uint32... | 21.142857 | 76 | 0.75 | KingKiller100 |
a34406d3fcd0e6d37936e1d53d557fc08407deb9 | 587 | cpp | C++ | 8-Recursion-And-Dynamic-Programming/RecursiveMultiply.cpp | sonugiri1043/Cracking-The-Coding-Interview | 102cdbc3199d04ab89f5d6894f0489fde352b0d7 | [
"MIT"
] | 8 | 2020-05-17T13:48:19.000Z | 2022-02-20T06:42:38.000Z | 8-Recursion-And-Dynamic-Programming/RecursiveMultiply.cpp | sonugiri1043/Cracking-The-Coding-Interview | 102cdbc3199d04ab89f5d6894f0489fde352b0d7 | [
"MIT"
] | null | null | null | 8-Recursion-And-Dynamic-Programming/RecursiveMultiply.cpp | sonugiri1043/Cracking-The-Coding-Interview | 102cdbc3199d04ab89f5d6894f0489fde352b0d7 | [
"MIT"
] | 6 | 2021-04-09T21:34:15.000Z | 2021-12-13T05:40:42.000Z | /*
Recursive Multiply:
Write a recursive function to multiply two positive integers without using the * operator.
You can use addition, subtraction, and bit shifting, but you should minimize the number of
those operations.
*/
#include <iostream>
using std::cout;
using std::endl;
// Assumes b is smaller than... | 18.935484 | 92 | 0.611584 | sonugiri1043 |
a3456c0a5ffa22ec9dea713c8f2f74ef777e3627 | 1,597 | cpp | C++ | examples/log/helloworld.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | examples/log/helloworld.cpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | examples/log/helloworld.cpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <fcppt/make_ref.hpp>
#include <fcppt/text.hpp>
#include <fcppt/log/context.hpp>
#include <... | 34.717391 | 97 | 0.697558 | freundlich |
a3459cb8e0c5bda0d207d78318da0998ee5428fd | 735 | hpp | C++ | Simple++/Time/TimePoint.hpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | Simple++/Time/TimePoint.hpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | Simple++/Time/TimePoint.hpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null |
namespace Time {
template<class ratio>
TimePoint & TimePoint::operator+=( const Duration<ratio> & d ) {
this -> t += d.getSeconds();
}
template<class ratio>
TimePoint & TimePoint::operator-=( const Duration<ratio> & d ) {
this -> t -= d.getSeconds();
}
template<class ratio>
TimePoint operator+( const... | 21.617647 | 73 | 0.661224 | Oriode |
a34658daf02ed27ede51489d0a0b3dfa9e52aede | 8,761 | hpp | C++ | opencv/native/jni/include/opencv2/gapi/gtype_traits.hpp | meyoustu/opcvd | 023d52763d80825a0a305759abaca6dd91c3da69 | [
"Apache-2.0"
] | null | null | null | opencv/native/jni/include/opencv2/gapi/gtype_traits.hpp | meyoustu/opcvd | 023d52763d80825a0a305759abaca6dd91c3da69 | [
"Apache-2.0"
] | null | null | null | opencv/native/jni/include/opencv2/gapi/gtype_traits.hpp | meyoustu/opcvd | 023d52763d80825a0a305759abaca6dd91c3da69 | [
"Apache-2.0"
] | null | null | null | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018 Intel Corporation
#ifndef OPENCV_GAPI_GTYPE_TRAITS_HPP
#define OPENCV_GAPI_GTYPE_TRAITS_HPP
#inclu... | 38.937778 | 104 | 0.604269 | meyoustu |
a3496547e3d9f5d6321090cbe8acac55b8bf6053 | 1,889 | hpp | C++ | include/NovelTea/SaveData.hpp | tedvalson/NovelTea | f731951f25936cb7f5ff23e543e0301c1b5bfe82 | [
"MIT"
] | null | null | null | include/NovelTea/SaveData.hpp | tedvalson/NovelTea | f731951f25936cb7f5ff23e543e0301c1b5bfe82 | [
"MIT"
] | null | null | null | include/NovelTea/SaveData.hpp | tedvalson/NovelTea | f731951f25936cb7f5ff23e543e0301c1b5bfe82 | [
"MIT"
] | null | null | null | #ifndef NOVELTEA_SAVEDATA_HPP
#define NOVELTEA_SAVEDATA_HPP
#include <NovelTea/JsonSerializable.hpp>
#include <NovelTea/ProjectData.hpp>
#include <NovelTea/Entity.hpp>
namespace NovelTea
{
class SaveData: public JsonSerializable
{
friend class Game;
protected:
SaveData();
void save(int slot);
bool load(int slot... | 23.036585 | 98 | 0.697194 | tedvalson |
a34b3ca1b0014ea01a0092c381d01778186de476 | 11,381 | hpp | C++ | source/Library/Chrono/Date.hpp | dracc/VCMP-SqMod | d3e6adea147f5b2cae5119ddd6028833aa625c09 | [
"MIT"
] | null | null | null | source/Library/Chrono/Date.hpp | dracc/VCMP-SqMod | d3e6adea147f5b2cae5119ddd6028833aa625c09 | [
"MIT"
] | null | null | null | source/Library/Chrono/Date.hpp | dracc/VCMP-SqMod | d3e6adea147f5b2cae5119ddd6028833aa625c09 | [
"MIT"
] | null | null | null | #ifndef _LIBRARY_CHRONO_DATE_HPP_
#define _LIBRARY_CHRONO_DATE_HPP_
// ------------------------------------------------------------------------------------------------
#include "Library/Chrono.hpp"
// ------------------------------------------------------------------------------------------------
namespace SqMod {
/... | 31.790503 | 103 | 0.291451 | dracc |
a34df5cb621720bbd40107a1d33e30326accb552 | 198 | cc | C++ | week2/hello_cpp/main.cc | yxc07/EEP_520_Winter2022 | 6a66e957c8afe78ed3703fda6113e55ccf5b66b2 | [
"MIT"
] | 13 | 2020-01-10T00:25:27.000Z | 2020-09-14T20:26:23.000Z | week2/hello_cpp/main.cc | yxc07/EEP_520_Winter2022 | 6a66e957c8afe78ed3703fda6113e55ccf5b66b2 | [
"MIT"
] | null | null | null | week2/hello_cpp/main.cc | yxc07/EEP_520_Winter2022 | 6a66e957c8afe78ed3703fda6113e55ccf5b66b2 | [
"MIT"
] | 19 | 2021-04-07T02:39:30.000Z | 2021-12-12T00:40:22.000Z | #include "hello.h"
/*! \mainpage Hello World
* A simple hello world example in C++ showing how to split code up among several files.
*/
int main ( int argc, char * argv[] ) {
say_hello();
}
| 16.5 | 88 | 0.651515 | yxc07 |
a34e27c48f49e55c8b5d3e87e9d6ac006a63b92a | 1,433 | hpp | C++ | lib/include/gpds/archiver_xml.hpp | simulton/GDS | 3a5ce9d89c2cfd5a13f98abf2bec2647297db90c | [
"MIT"
] | null | null | null | lib/include/gpds/archiver_xml.hpp | simulton/GDS | 3a5ce9d89c2cfd5a13f98abf2bec2647297db90c | [
"MIT"
] | null | null | null | lib/include/gpds/archiver_xml.hpp | simulton/GDS | 3a5ce9d89c2cfd5a13f98abf2bec2647297db90c | [
"MIT"
] | null | null | null | #pragma once
#include <ostream>
#include "gpds_export.hpp"
#include "archiver.hpp"
#include <istream>
namespace tinyxml2
{
class XMLDocument;
class XMLElement;
}
namespace gpds
{
/**
* An archiver to (de)serialize to/from XML.
*/
class GPDS_EXPORT archiver_xml :
public archiver
... | 26.054545 | 115 | 0.64829 | simulton |
a34ece849aec9da40b1c5b33d9916e46e0a7801f | 1,069 | cpp | C++ | src/main.cpp | Harmos274/Plazza | ade41711f9d945f944276732a9df96442b2b4af8 | [
"MIT"
] | null | null | null | src/main.cpp | Harmos274/Plazza | ade41711f9d945f944276732a9df96442b2b4af8 | [
"MIT"
] | null | null | null | src/main.cpp | Harmos274/Plazza | ade41711f9d945f944276732a9df96442b2b4af8 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2020
** plazza
** File description:
** main
*/
#include <iostream>
#include <shd/gui/ImGuiRenderWindow.hpp>
#include <GuiWindow.hpp>
#include <KitchenForkPool.hpp>
constexpr int exit_success = 0;
constexpr int exit_failure = 84;
using namespace plazza;
auto main(int ac, char** av) -> int
{
... | 20.557692 | 79 | 0.563143 | Harmos274 |
a34f49adceed689b8b55f9002c329ea08bacdc10 | 14,205 | cpp | C++ | source/mclib/mlr/mlr_i_dt_tmesh.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 38 | 2015-04-10T13:31:03.000Z | 2021-09-03T22:34:05.000Z | source/mclib/mlr/mlr_i_dt_tmesh.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 1 | 2020-07-09T09:48:44.000Z | 2020-07-12T12:41:43.000Z | source/mclib/mlr/mlr_i_dt_tmesh.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 12 | 2015-06-29T08:06:57.000Z | 2021-10-13T13:11:41.000Z | //===========================================================================//
// Copyright (C) Microsoft Corporation. All rights reserved. //
//===========================================================================//
#include "stdinc.h"
//#include "gameos.hpp"
#include "mlr/mlrshape.h"
#include... | 29.168378 | 113 | 0.604646 | mechasource |
a3552f6890fe2c476bd4da2dc021aa0e2f13c0ac | 21,951 | cpp | C++ | kdiff3/src-QT4/smalldialogs.cpp | michaelxzhang/kdiff3 | 471a343af7e2ec3a5f9cd31828b290309959f508 | [
"Intel"
] | 3 | 2021-02-25T14:12:14.000Z | 2021-10-29T22:44:26.000Z | kdiff3/src-QT4/smalldialogs.cpp | michaelxzhang/kdiff3 | 471a343af7e2ec3a5f9cd31828b290309959f508 | [
"Intel"
] | 3 | 2020-05-16T05:28:21.000Z | 2020-05-26T20:40:25.000Z | kdiff3/src-QT4/smalldialogs.cpp | michaelxzhang/kdiff3 | 471a343af7e2ec3a5f9cd31828b290309959f508 | [
"Intel"
] | null | null | null | /***************************************************************************
* Copyright (C) 2005-2007 by Joachim Eibl *
* joachim.eibl at gmx.de *
* *
* This pr... | 36.463455 | 167 | 0.647806 | michaelxzhang |
a3559fb6b281c5a9f7ce860588c6b203770e3f44 | 419 | cpp | C++ | 1167-minimum-cost-to-connect-sticks/1167-minimum-cost-to-connect-sticks.cpp | arpangoswami/LeetcodeSolutions | 17a2450cacf0020c2626023012a5a354c8fee5da | [
"MIT"
] | null | null | null | 1167-minimum-cost-to-connect-sticks/1167-minimum-cost-to-connect-sticks.cpp | arpangoswami/LeetcodeSolutions | 17a2450cacf0020c2626023012a5a354c8fee5da | [
"MIT"
] | null | null | null | 1167-minimum-cost-to-connect-sticks/1167-minimum-cost-to-connect-sticks.cpp | arpangoswami/LeetcodeSolutions | 17a2450cacf0020c2626023012a5a354c8fee5da | [
"MIT"
] | null | null | null | class Solution {
public:
int connectSticks(vector<int>& sticks) {
priority_queue<int,vector<int>,greater<int>> pq(sticks.begin(),sticks.end());
int ans = 0;
while(pq.size() > 1){
int val1 = pq.top();
pq.pop();
int val2 = pq.top();
pq.pop();
... | 26.1875 | 85 | 0.465394 | arpangoswami |
a3567dc0af8a7e949e9bd5b0ff05415d16724b13 | 138 | cpp | C++ | src/examples/11_module/03_memory_leak/main.cpp | acc-cosc-1337-fall-2019/acc-cosc-1337-fall-2019-artgonzalezacc | d36da91eaafb6afb3b7e711917ffe1601d0b2119 | [
"MIT"
] | null | null | null | src/examples/11_module/03_memory_leak/main.cpp | acc-cosc-1337-fall-2019/acc-cosc-1337-fall-2019-artgonzalezacc | d36da91eaafb6afb3b7e711917ffe1601d0b2119 | [
"MIT"
] | null | null | null | src/examples/11_module/03_memory_leak/main.cpp | acc-cosc-1337-fall-2019/acc-cosc-1337-fall-2019-artgonzalezacc | d36da91eaafb6afb3b7e711917ffe1601d0b2119 | [
"MIT"
] | null | null | null | #include "memory_leak.h"
int main()
{
memory_leak();
while (true)
{
memory_leak();
}
//more code
//etc more code
return 0;
} | 9.2 | 24 | 0.601449 | acc-cosc-1337-fall-2019 |
a35882bfd6b0d871de288ba6bd1288b90ba3bf91 | 7,032 | cpp | C++ | drivers/uart/src/main.cpp | parthpatel1470/managarm | 14093ae9ecf82fc0d2061da12801530bf21cc03d | [
"MIT"
] | 1 | 2021-02-03T09:21:08.000Z | 2021-02-03T09:21:08.000Z | drivers/uart/src/main.cpp | MichaelTrikergiotis/managarm | 7966d1ca02bf5295a51c56dbb5496c4ad4de9730 | [
"MIT"
] | null | null | null | drivers/uart/src/main.cpp | MichaelTrikergiotis/managarm | 7966d1ca02bf5295a51c56dbb5496c4ad4de9730 | [
"MIT"
] | null | null | null |
#include <algorithm>
#include <deque>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <arch/bits.hpp>
#include <arch/register.hpp>
#include <arch/io_space.hpp>
#include <async/result.hpp>
#include <boost/intrusive/list.hpp>
#include <helix/ipc.hpp>
#include <protocols/fs/server.hpp>
#include <pro... | 28.128 | 88 | 0.706058 | parthpatel1470 |
a3589b3b142053e215bd11360da18db3c488f400 | 1,734 | cpp | C++ | zrtp/ZIDCacheEmpty.cpp | stelabouras/ZRTPCPP | 6b3cd8e6783642292bad0c21e3e5e5ce45ff3e03 | [
"Apache-2.0"
] | 67 | 2015-01-02T18:22:18.000Z | 2022-02-26T21:31:06.000Z | zrtp/ZIDCacheEmpty.cpp | stelabouras/ZRTPCPP | 6b3cd8e6783642292bad0c21e3e5e5ce45ff3e03 | [
"Apache-2.0"
] | 27 | 2015-01-11T10:33:36.000Z | 2020-05-28T10:52:21.000Z | zrtp/ZIDCacheEmpty.cpp | stelabouras/ZRTPCPP | 6b3cd8e6783642292bad0c21e3e5e5ce45ff3e03 | [
"Apache-2.0"
] | 44 | 2015-02-27T07:21:53.000Z | 2022-01-04T03:05:08.000Z | /*
* Copyright 2006 - 2018, Werner Dittmann
*
* 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 l... | 21.949367 | 81 | 0.698962 | stelabouras |
a35afd30e45643ab4ed4db4727cbad5ade374422 | 1,088 | cpp | C++ | RIT/1st Year/Aplikacije Računalniških Algoritmov/ARA04 - HuffmanCoding/BinWriter.cpp | timiimit/FERI | 3cfe4bf4eba6a25217cfae251cc1a620d8f55f44 | [
"MIT"
] | 1 | 2021-01-11T18:44:05.000Z | 2021-01-11T18:44:05.000Z | RIT/1st Year/Aplikacije Računalniških Algoritmov/ARA04 - HuffmanCoding/BinWriter.cpp | timiimit/FERI | 3cfe4bf4eba6a25217cfae251cc1a620d8f55f44 | [
"MIT"
] | null | null | null | RIT/1st Year/Aplikacije Računalniških Algoritmov/ARA04 - HuffmanCoding/BinWriter.cpp | timiimit/FERI | 3cfe4bf4eba6a25217cfae251cc1a620d8f55f44 | [
"MIT"
] | null | null | null | #include "BinWriter.h"
BinWriter::BinWriter(std::string path) :
bufSize(1024),
buf(new char[bufSize]),
bufBitIndex(0),
file(path)
{
memset(buf, 0, bufSize);
}
BinWriter::~BinWriter()
{
file.write(buf, bufBitIndex / 8);
if (bufBitIndex & 0b111) // 1st two bits are not 0
{
file.write(buf + bufBitIndex / 8, 1)... | 16.238806 | 58 | 0.597426 | timiimit |
a35b9f6434b371244d3d829f5c4a371decc0ea2f | 993 | hh | C++ | include/mrender/parse.hh | code-monad/mini-render | 9b9a7172356c9f3d706f116415ceeb59cfcae189 | [
"Apache-2.0"
] | null | null | null | include/mrender/parse.hh | code-monad/mini-render | 9b9a7172356c9f3d706f116415ceeb59cfcae189 | [
"Apache-2.0"
] | null | null | null | include/mrender/parse.hh | code-monad/mini-render | 9b9a7172356c9f3d706f116415ceeb59cfcae189 | [
"Apache-2.0"
] | null | null | null | #ifndef __MRENDER_PARSE_HH__
#define __MRENDER_PARSE_HH__
#include <string>
#include <unordered_map>
namespace mrender {
class parse { // command line argument parser
public:
parse(int argc, char** argv);
const std::string& get_endpoint() const noexcept { return _endpoint; }
const std:... | 35.464286 | 99 | 0.680765 | code-monad |
a35c2928fd38d853d30b6bdc9a6ab505dfa68dfd | 1,260 | cpp | C++ | src/Historican.cpp | sc2botbin/suvorov-bot | 804c4e73a35e30c2339936e26b780a89e45bc969 | [
"MIT"
] | 18 | 2017-08-17T05:45:18.000Z | 2021-11-11T08:07:28.000Z | src/Historican.cpp | sc2botbin/suvorov-bot | 804c4e73a35e30c2339936e26b780a89e45bc969 | [
"MIT"
] | 61 | 2017-11-03T10:54:44.000Z | 2021-09-11T17:19:05.000Z | src/Historican.cpp | sc2botbin/suvorov-bot | 804c4e73a35e30c2339936e26b780a89e45bc969 | [
"MIT"
] | 10 | 2019-02-08T17:18:09.000Z | 2021-11-01T18:24:27.000Z | // The MIT License (MIT)
//
// Copyright (c) 2017-2021 Alexander Kurbatov
#include "Historican.h"
#include "core/API.h"
namespace {
TypeWriter typeWriter;
}
void TypeWriter::RedirectToFile(const std::string& filename_) {
if (m_file.is_open())
m_file.close();
m_file.open(filename_.c_str());
}
Ty... | 22.105263 | 82 | 0.622222 | sc2botbin |
a35e04140a0e742bf6dc269e6885cb87901573ec | 2,746 | cpp | C++ | mstp-lib/internal/stp_sm_port_state_transition.cpp | MScieburakoADVA/mstp-lib | 768f9323abd3e81fb770d04b5502e6e51e8ee476 | [
"Apache-2.0"
] | 21 | 2018-10-16T18:05:32.000Z | 2022-01-11T10:57:24.000Z | mstp-lib/internal/stp_sm_port_state_transition.cpp | MScieburakoADVA/mstp-lib | 768f9323abd3e81fb770d04b5502e6e51e8ee476 | [
"Apache-2.0"
] | 34 | 2018-03-06T10:04:57.000Z | 2021-05-26T13:37:03.000Z | mstp-lib/internal/stp_sm_port_state_transition.cpp | MScieburakoADVA/mstp-lib | 768f9323abd3e81fb770d04b5502e6e51e8ee476 | [
"Apache-2.0"
] | 13 | 2019-04-09T07:56:48.000Z | 2022-01-11T11:00:12.000Z |
// This file is part of the mstp-lib library, available at https://github.com/adigostin/mstp-lib
// Copyright (c) 2011-2020 Adi Gostin, distributed under Apache License v2.0.
// This file implements 13.38 from 802.1Q-2018.
#include "stp_procedures.h"
#include "stp_bridge.h"
#include <assert.h>
using namespace PortS... | 21.968 | 96 | 0.624909 | MScieburakoADVA |
a35e395eadc338c78af21d05b719536897083612 | 9,327 | cpp | C++ | software/pc-emul/parser.cpp | zettasticks/iob-versat | 504aed566728265497d90640ce5aec96d0c76eda | [
"MIT"
] | null | null | null | software/pc-emul/parser.cpp | zettasticks/iob-versat | 504aed566728265497d90640ce5aec96d0c76eda | [
"MIT"
] | null | null | null | software/pc-emul/parser.cpp | zettasticks/iob-versat | 504aed566728265497d90640ce5aec96d0c76eda | [
"MIT"
] | null | null | null | #include "parser.hpp"
#include <cstring>
#include "utils.hpp"
static int IsWhitespace(char ch){
if(ch == '\n' || ch == ' ' || ch == '\t'){
return 1;
}
return 0;
}
void Tokenizer::ConsumeWhitespace(){
if(keepWhitespaces){
return;
}
while(1){
if(ptr >= end)
return;
... | 19.972163 | 142 | 0.510346 | zettasticks |
a360803c50204ed2f205b5fc91c04554f911f14d | 63,290 | cpp | C++ | src/qt/qtbase/tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/tests/auto/widgets/styles/qstylesheetstyle/tst_qstylesheetstyle.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercia... | 35.161111 | 138 | 0.639058 | power-electro |
a360e551970698fbeeea61dd8031454b9e90cf5a | 7,328 | cpp | C++ | src/sliders_handler.cpp | REXJJ/CameraCalibration | 6c35d88f64846e5d7e74b4156a75080a9a5f1adf | [
"Apache-2.0"
] | null | null | null | src/sliders_handler.cpp | REXJJ/CameraCalibration | 6c35d88f64846e5d7e74b4156a75080a9a5f1adf | [
"Apache-2.0"
] | null | null | null | src/sliders_handler.cpp | REXJJ/CameraCalibration | 6c35d88f64846e5d7e74b4156a75080a9a5f1adf | [
"Apache-2.0"
] | null | null | null | #include "pclviewer.h"
#include "ui_pclviewer.h"
#include <pcl/io/ply_io.h>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/property_tree/ptree.hpp>
#include <pcl/io/io.h>
#include <pcl/io/pcd_io.h>
#include <pcl/registration/icp.h>
#include <pcl/filters/voxel_grid.h>
#include <pcl/common/transforms.h>
#i... | 35.746341 | 150 | 0.758461 | REXJJ |
a361ee20643dd852befa14c9392696cf546aadfd | 263 | cpp | C++ | YorozuyaGSLib/source/_darkhole_state_change_zocl.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/_darkhole_state_change_zocl.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/_darkhole_state_change_zocl.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <_darkhole_state_change_zocl.hpp>
START_ATF_NAMESPACE
int _darkhole_state_change_zocl::size()
{
using org_ptr = int (WINAPIV*)(struct _darkhole_state_change_zocl*);
return (org_ptr(0x1401648f0L))(this);
};
END_ATF_NAMESPACE
| 23.909091 | 76 | 0.726236 | lemkova |
a3643b0b9df594a056ac07ff12c43473b9e61471 | 21,318 | hpp | C++ | src/libcpp/tessellate/delaunay_tri_k.hpp | FxIII/jigsaw | 5f2aad8f5cd4b3c5d79fce21dff6e51e2fc43923 | [
"Unlicense"
] | null | null | null | src/libcpp/tessellate/delaunay_tri_k.hpp | FxIII/jigsaw | 5f2aad8f5cd4b3c5d79fce21dff6e51e2fc43923 | [
"Unlicense"
] | null | null | null | src/libcpp/tessellate/delaunay_tri_k.hpp | FxIII/jigsaw | 5f2aad8f5cd4b3c5d79fce21dff6e51e2fc43923 | [
"Unlicense"
] | null | null | null |
/*
--------------------------------------------------------
* a "k"-dimensional delaunay triangulation object.
--------------------------------------------------------
*
* This program may be freely redistributed under the
* condition that the copyright notices (including this
*... | 27.866667 | 60 | 0.389577 | FxIII |
a3674e79c991805f0480b88b22f38430acba6bdd | 7,077 | cpp | C++ | kernel/src/physical_allocator.cpp | cekkr/thor-os | 841b088eddc378ef38c98878a51958479dce4a31 | [
"MIT"
] | null | null | null | kernel/src/physical_allocator.cpp | cekkr/thor-os | 841b088eddc378ef38c98878a51958479dce4a31 | [
"MIT"
] | null | null | null | kernel/src/physical_allocator.cpp | cekkr/thor-os | 841b088eddc378ef38c98878a51958479dce4a31 | [
"MIT"
] | null | null | null | //=======================================================================
// Copyright Baptiste Wicht 2013-2016.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//=================================================================... | 32.612903 | 131 | 0.691677 | cekkr |
a36a1712ab6b632c2f00bfc2a5a25fa544388542 | 2,188 | hxx | C++ | includes/itkLabelImageToConvexHullFilter.hxx | StRigaud/itkConvexHull2DFilters | 401998c4aa6626fe9aba324dcf503d1d0253d3a7 | [
"Apache-2.0"
] | null | null | null | includes/itkLabelImageToConvexHullFilter.hxx | StRigaud/itkConvexHull2DFilters | 401998c4aa6626fe9aba324dcf503d1d0253d3a7 | [
"Apache-2.0"
] | null | null | null | includes/itkLabelImageToConvexHullFilter.hxx | StRigaud/itkConvexHull2DFilters | 401998c4aa6626fe9aba324dcf503d1d0253d3a7 | [
"Apache-2.0"
] | null | null | null | #ifndef __itkLabelImageToConvexHullFilter_hxx
#define __itkLabelImageToConvexHullFilter_hxx
#include "itkLabelImageToConvexHullFilter.h"
#include "itkViewImage.h"
namespace itk
{
template <class TImage, class TFilter> LabelImageToConvexHullFilter<TImage, TFilter>::LabelImageToConvexHullFilter()
{
}
template <class... | 30.816901 | 116 | 0.615631 | StRigaud |
a36a3fee489818add88e92b95f44c953591141f7 | 3,054 | cpp | C++ | source/MsSql/MsSqlStatements.cpp | Jde-cpp/Odbc | 1e07ba5d04fdfe0f35e146baf011e6227cfb8fa5 | [
"MIT"
] | null | null | null | source/MsSql/MsSqlStatements.cpp | Jde-cpp/Odbc | 1e07ba5d04fdfe0f35e146baf011e6227cfb8fa5 | [
"MIT"
] | null | null | null | source/MsSql/MsSqlStatements.cpp | Jde-cpp/Odbc | 1e07ba5d04fdfe0f35e146baf011e6227cfb8fa5 | [
"MIT"
] | null | null | null | #include "MsSqlStatements.h"
namespace Jde::DB::MsSql::Sql
{
string ColumnSql( bool addTable )noexcept
{
std::ostringstream os;
os << "select tables.name table_name, columns.name column_name, columns.column_id, constraints.definition, columns.is_nullable, types.name, columns.max_length, is_identity, case ... | 51.762712 | 272 | 0.711853 | Jde-cpp |
a36e7e14b56de43f7f05f964f8afc4027d203b60 | 3,367 | cpp | C++ | TSP/Macierz.cpp | TomWaks/TSP--B-B-algorithm | a8ae972fd87126b6d6d5b470399fb51d7a093435 | [
"MIT"
] | null | null | null | TSP/Macierz.cpp | TomWaks/TSP--B-B-algorithm | a8ae972fd87126b6d6d5b470399fb51d7a093435 | [
"MIT"
] | null | null | null | TSP/Macierz.cpp | TomWaks/TSP--B-B-algorithm | a8ae972fd87126b6d6d5b470399fb51d7a093435 | [
"MIT"
] | null | null | null | #include <iostream>
#include <limits>
#include "Macierz.h"
#define INFTY INT_MAX
using namespace std;
Macierz:: Macierz(int rozmiar_tablicy): rozmiar(rozmiar_tablicy)
{
tab_2D = new int *[this->rozmiar]; //alokacja pamieci
for(int i=0; i<this->rozmiar; ++i)
{
this->tab_2D[i] = new in... | 23.381944 | 76 | 0.512326 | TomWaks |
a372baae86653784b4275d20c89a219f8569559e | 1,017 | cpp | C++ | 0010-String Permutation II/0010-String Permutation II.cpp | nmdis1999/LintCode-1 | 316fa395c9a6de9bfac1d9c9cf58acb5ffb384a6 | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 0001-0100/0010-String Permutation II/0010-String Permutation II.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 0001-0100/0010-String Permutation II/0010-String Permutation II.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class Solution {
public:
/**
* @param str a string
* @return all permutations
*/
vector<string> stringPermutation2(string& str) {
// Write your code here
vector<string> result;
if (str.size() == 0)
{
result.push_back(str);
return result;
... | 23.651163 | 82 | 0.427729 | nmdis1999 |
a37429d6033f1eba5f494719ce3ffa54ed270a0b | 3,634 | cc | C++ | src/istio/control/http/controller_impl.cc | yxue/proxy | 7d9b06ad8109feb5c9d62693906455d6114b1206 | [
"Apache-2.0"
] | 1 | 2021-03-02T17:18:11.000Z | 2021-03-02T17:18:11.000Z | src/istio/control/http/controller_impl.cc | yxue/proxy | 7d9b06ad8109feb5c9d62693906455d6114b1206 | [
"Apache-2.0"
] | null | null | null | src/istio/control/http/controller_impl.cc | yxue/proxy | 7d9b06ad8109feb5c9d62693906455d6114b1206 | [
"Apache-2.0"
] | 1 | 2021-04-18T19:28:22.000Z | 2021-04-18T19:28:22.000Z | /* Copyright 2017 Istio 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 applicab... | 34.283019 | 80 | 0.737479 | yxue |
a37521e6a169bf0da9b15bf22f93f3c2cb2ec263 | 745 | cpp | C++ | system_util/src/ConsoleCommandHelper.cpp | hendrik-skubch/alica-essentials | f9d50e5a8fb0ce502b855503ad033b2986d7a5a0 | [
"MIT"
] | null | null | null | system_util/src/ConsoleCommandHelper.cpp | hendrik-skubch/alica-essentials | f9d50e5a8fb0ce502b855503ad033b2986d7a5a0 | [
"MIT"
] | null | null | null | system_util/src/ConsoleCommandHelper.cpp | hendrik-skubch/alica-essentials | f9d50e5a8fb0ce502b855503ad033b2986d7a5a0 | [
"MIT"
] | null | null | null | /*
* ConsoleCommandHelper.cpp
*
* Created on: Apr 15, 2015
* Author: Stephan Opfer
*/
#include "ConsoleCommandHelper.h"
#include <stdio.h>
using namespace std;
namespace essentials {
ConsoleCommandHelper::ConsoleCommandHelper() {
// TODO Auto-generated constructor stub
}
ConsoleCommandHelper::~Conso... | 19.605263 | 57 | 0.638926 | hendrik-skubch |
a375d6ae8063edc5ad570604f44e8bb0b08b1835 | 4,388 | cpp | C++ | Good Bye 2015/C. New Year and Domino.cpp | anirudha-ani/Codeforces | 6c7f64257939d44b1c2ec9dd202f1c9f899f1cad | [
"Apache-2.0"
] | null | null | null | Good Bye 2015/C. New Year and Domino.cpp | anirudha-ani/Codeforces | 6c7f64257939d44b1c2ec9dd202f1c9f899f1cad | [
"Apache-2.0"
] | null | null | null | Good Bye 2015/C. New Year and Domino.cpp | anirudha-ani/Codeforces | 6c7f64257939d44b1c2ec9dd202f1c9f899f1cad | [
"Apache-2.0"
] | null | null | null | /***************** Cause QUOTES are more Important than Code !!!!!!!!! *************/
/**
This is Anirudha , this is not Anirudha
Anirudha is alive , Anirudha is not alive
You know him , you don't know him ...
-Anirudha
You can't see the forest for the trees.-Pain (Naruto)
You are working for your justice ... | 22.274112 | 131 | 0.413172 | anirudha-ani |
a37616e0b0e891d44edb45dc3c83525554434d43 | 17,799 | hpp | C++ | adapters-stk/src/Panzer_STK_ModelEvaluatorFactory.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | adapters-stk/src/Panzer_STK_ModelEvaluatorFactory.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | adapters-stk/src/Panzer_STK_ModelEvaluatorFactory.hpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | // @HEADER
// ***********************************************************************
//
// Panzer: A partial differential equation assembly
// engine for strongly coupled complex multiphysics systems
// Copyright (2011) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85... | 48.898352 | 176 | 0.665936 | hillyuan |
a3761fc7ac3be6fc412b41631b8abcbb85947ce7 | 2,927 | hpp | C++ | modules/core/extractive/include/nt2/core/functions/expr/tril.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/core/extractive/include/nt2/core/functions/expr/tril.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/extractive/include/nt2/core/functions/expr/tril.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 37.525641 | 80 | 0.449265 | psiha |
a3764ebb27e1197c5abc8b02aca688c43556b51d | 75,816 | cpp | C++ | src/odil/registry_0040.cpp | jarrettchisholm/odil | e19a4653941a6e40f9b0960e1a69399d82370d4a | [
"CECILL-B"
] | 72 | 2016-02-04T00:41:02.000Z | 2022-03-18T18:10:34.000Z | src/odil/registry_0040.cpp | jarrettchisholm/odil | e19a4653941a6e40f9b0960e1a69399d82370d4a | [
"CECILL-B"
] | 74 | 2016-01-11T16:04:46.000Z | 2021-11-18T16:36:11.000Z | src/odil/registry_0040.cpp | jarrettchisholm/odil | e19a4653941a6e40f9b0960e1a69399d82370d4a | [
"CECILL-B"
] | 23 | 2016-04-27T07:14:56.000Z | 2021-09-28T21:59:31.000Z | /*************************************************************************
* odil - Copyright (C) Universite de Strasbourg
* Distributed under the terms of the CeCILL-B license, as published by
* the CEA-CNRS-INRIA. Refer to the LICENSE file or to
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
* for... | 110.51895 | 223 | 0.77022 | jarrettchisholm |
a376af181359bfe864eb6d4fc11a1c87ffb9a223 | 1,145 | cpp | C++ | Game/Client/WXClient/Network/PacketHandler/GCTeamFollowListHandler.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Client/WXClient/Network/PacketHandler/GCTeamFollowListHandler.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Client/WXClient/Network/PacketHandler/GCTeamFollowListHandler.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "StdAfx.h"
#include "GCTeamFollowList.h"
#include "..\..\Procedure\GameProcedure.h"
#include "..\..\Object\ObjectManager.h"
#include "..\..\Object\Object.h"
#include "..\..\GameCommand.h"
#include "..\..\Object\ObjectCommandDef.h"
#include "..\..\event\GMEventSystem.h"
uint GCTeamFollowListHandler::Execute(... | 26.022727 | 100 | 0.724017 | hackerlank |
a37cb8074bbe9793954ef6d70c370a059bf5487d | 3,820 | hh | C++ | docs/symbols.hh | theonewolf/lithium | c091b085c7dd519f8cf682c0eca25f8a1f46b15c | [
"MIT"
] | null | null | null | docs/symbols.hh | theonewolf/lithium | c091b085c7dd519f8cf682c0eca25f8a1f46b15c | [
"MIT"
] | null | null | null | docs/symbols.hh | theonewolf/lithium | c091b085c7dd519f8cf682c0eca25f8a1f46b15c | [
"MIT"
] | null | null | null | // Generated by the lithium symbol generator.
#include <lithium_symbol.hh>
#ifndef LI_SYMBOL_after_insert
#define LI_SYMBOL_after_insert
LI_SYMBOL(after_insert)
#endif
#ifndef LI_SYMBOL_after_remove
#define LI_SYMBOL_after_remove
LI_SYMBOL(after_remove)
#endif
#ifndef LI_SYMBOL_age
#define LI_SYMBOL_age
L... | 18.365385 | 50 | 0.824084 | theonewolf |
a380bf17519aeeb27f3a77a4ea92573976c6c6c0 | 1,062 | cpp | C++ | .LHP/.Lop10/Minh333/QHĐ/SBALO.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/.Lop10/Minh333/QHĐ/SBALO.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/.Lop10/Minh333/QHĐ/SBALO.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | // full test
#include <iostream>
#include <cstdio>
#include <algorithm>
#define maxN 1001
#define maxW 10001
#define maxA 1001
typedef long maxn;
typedef long maxa;
maxn n, W;
maxa a[maxN], g[maxN], f[maxN][maxW];
void Prepare() {
freopen("SBALO.inp", "r", stdin);
freopen("SBALO.out", "w", stdout);
std::ios_bas... | 17.409836 | 89 | 0.481168 | sxweetlollipop2912 |
a3823dad2c1313cc0f119caa50f54d999ec69df0 | 431 | cpp | C++ | src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/arithmetic_max6d/sse/mul_fp32_sse.cpp | weisk/ppl.nn | 7dd75a1077867fc9a762449953417088446ae2f8 | [
"Apache-2.0"
] | 1 | 2021-10-06T14:39:58.000Z | 2021-10-06T14:39:58.000Z | src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/arithmetic_max6d/sse/mul_fp32_sse.cpp | wolf15/ppl.nn | ac23e5eb518039536f1ef39b43c63d6bda900e77 | [
"Apache-2.0"
] | null | null | null | src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/arithmetic_max6d/sse/mul_fp32_sse.cpp | wolf15/ppl.nn | ac23e5eb518039536f1ef39b43c63d6bda900e77 | [
"Apache-2.0"
] | null | null | null | #include "arithmetic_fp32_sse_common.h"
namespace ppl { namespace kernel { namespace x86 {
ppl::common::RetCode mul_ndarray_max6d_fp32_sse(
const ppl::nn::TensorShape *lhs_shape,
const ppl::nn::TensorShape *rhs_shape,
const float *lhs,
const float *rhs,
float *dst)
{
return arithmetic_binary_o... | 26.9375 | 102 | 0.728538 | weisk |
a3825b803b78ed75bd40b8b15a0ca95d5254c9be | 1,121 | cpp | C++ | Player.cpp | DonnieDonowitz/ShootingGame | da2f802181ffaf86d7e79ca0b3446699b727120a | [
"MIT"
] | null | null | null | Player.cpp | DonnieDonowitz/ShootingGame | da2f802181ffaf86d7e79ca0b3446699b727120a | [
"MIT"
] | null | null | null | Player.cpp | DonnieDonowitz/ShootingGame | da2f802181ffaf86d7e79ca0b3446699b727120a | [
"MIT"
] | null | null | null | #include "Player.h"
#include <QGraphicsScene>
#include <QKeyEvent>
#include "Bullet.h"
#include "Enemy.h"
Player::Player(QGraphicsItem *parent):
QGraphicsPixmapItem(parent),
bulletSound(new QMediaPlayer)
{
bulletSound->setMedia(QUrl("Sounds/bullet.wav"));
setPixmap(QPixmap("Images/player-50... | 22.42 | 70 | 0.538805 | DonnieDonowitz |
a3872f690f85580dc49fb3d91fbe21d8957089b3 | 2,589 | cpp | C++ | Opcode/Ice/IceRay.cpp | RogerioY/starshatter-open | 3a507e08b1d4e5970b27401a7e6517570d529400 | [
"BSD-3-Clause"
] | null | null | null | Opcode/Ice/IceRay.cpp | RogerioY/starshatter-open | 3a507e08b1d4e5970b27401a7e6517570d529400 | [
"BSD-3-Clause"
] | 4 | 2019-09-05T22:22:57.000Z | 2021-03-28T02:09:24.000Z | Opcode/Ice/IceRay.cpp | RogerioY/starshatter-open | 3a507e08b1d4e5970b27401a7e6517570d529400 | [
"BSD-3-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* Contains code for rays.
* \file IceRay.cpp
* \author Pierre Terdiman
* \date April, 4, 2000
*/
////... | 30.458824 | 200 | 0.307455 | RogerioY |
a38875d9e6a37c9ad92f307b836aac4141558d26 | 3,659 | cpp | C++ | ares/n64/rsp/core/vu-registers.cpp | moon-chilled/Ares | 909fb098c292f8336d0502dc677050312d8b5c81 | [
"0BSD"
] | 7 | 2020-07-25T11:44:39.000Z | 2021-01-29T13:21:31.000Z | ares/n64/rsp/core/vu-registers.cpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | null | null | null | ares/n64/rsp/core/vu-registers.cpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | 1 | 2021-03-22T16:15:30.000Z | 2021-03-22T16:15:30.000Z | auto RSP::r128::operator()(uint index) const -> r128 {
if constexpr(Accuracy::RSP::SISD) {
r128 v{*this};
switch(index) {
case 0: break;
case 1: break;
case 2: v.u16(1) = v.u16(0); v.u16(3) = v.u16(2); v.u16(5) = v.u16(4); v.u16(7) = v.u16(6); break;
case 3: v.u16(0) = v.u16(1); v.u16(2) =... | 50.123288 | 105 | 0.549877 | moon-chilled |
a38e5f701f2312abf13d88ae6c742f1f8596f8bb | 328 | hpp | C++ | Creational-patters/2_Abstract-Factory/src/widgets/windows/textfield.hpp | PP189B/Design-patterns-practice | 3fd7f9a3fa85dcf1e48680662d9bc3ac41796b69 | [
"MIT"
] | null | null | null | Creational-patters/2_Abstract-Factory/src/widgets/windows/textfield.hpp | PP189B/Design-patterns-practice | 3fd7f9a3fa85dcf1e48680662d9bc3ac41796b69 | [
"MIT"
] | null | null | null | Creational-patters/2_Abstract-Factory/src/widgets/windows/textfield.hpp | PP189B/Design-patterns-practice | 3fd7f9a3fa85dcf1e48680662d9bc3ac41796b69 | [
"MIT"
] | null | null | null | #pragma once
#include "../ibase.hpp"
namespace App::Widgets::Windows
{
class TextField final : public IBase
{
public:
virtual void draw(void) const override
{
std::cout << "draw Windows TextField" << std::endl;
}
}; //!class TextField final : public IBase
} //!namespace App::Widgets:... | 18.222222 | 57 | 0.637195 | PP189B |
a391c4237d39ff1eaf90be1103147e36e035a8d6 | 3,219 | cpp | C++ | programs/lse820/src/main.cpp | osstudy/thor-os | 9b5793da647a27d7a6de2e48f6dd39dca0313d2b | [
"BSL-1.0"
] | null | null | null | programs/lse820/src/main.cpp | osstudy/thor-os | 9b5793da647a27d7a6de2e48f6dd39dca0313d2b | [
"BSL-1.0"
] | null | null | null | programs/lse820/src/main.cpp | osstudy/thor-os | 9b5793da647a27d7a6de2e48f6dd39dca0313d2b | [
"BSL-1.0"
] | 1 | 2020-02-04T16:36:51.000Z | 2020-02-04T16:36:51.000Z | //=======================================================================
// Copyright Baptiste Wicht 2013-2016.
// 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)
//================================================... | 31.558824 | 117 | 0.479652 | osstudy |
a399763b1eb1e3d2f5a409bab3c75952068a6f84 | 1,056 | cpp | C++ | src/org/slf4j/Logger.cpp | oyamoh-brian/pyjadx | ecdd9f9e5e70de7fe4168ed028a27b667170ef32 | [
"Apache-2.0"
] | 1 | 2019-10-04T08:52:20.000Z | 2019-10-04T08:52:20.000Z | src/org/slf4j/Logger.cpp | oyamoh-brian/pyjadx | ecdd9f9e5e70de7fe4168ed028a27b667170ef32 | [
"Apache-2.0"
] | null | null | null | src/org/slf4j/Logger.cpp | oyamoh-brian/pyjadx | ecdd9f9e5e70de7fe4168ed028a27b667170ef32 | [
"Apache-2.0"
] | 1 | 2021-06-08T03:31:37.000Z | 2021-06-08T03:31:37.000Z | /* Copyright 2018 R. Thomas
*
* 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 wr... | 31.058824 | 85 | 0.697917 | oyamoh-brian |
a39f7f155e6b723f5c7b107cc99368f2c461707e | 1,347 | cpp | C++ | cmake-build-debug/test/unit/mechanisms/test1_kin_compartment_gpu.cpp | anstaf/arbsimd | c4ba87b02b26a47ef33d0a3eba78a4f330c88073 | [
"BSD-3-Clause"
] | null | null | null | cmake-build-debug/test/unit/mechanisms/test1_kin_compartment_gpu.cpp | anstaf/arbsimd | c4ba87b02b26a47ef33d0a3eba78a4f330c88073 | [
"BSD-3-Clause"
] | null | null | null | cmake-build-debug/test/unit/mechanisms/test1_kin_compartment_gpu.cpp | anstaf/arbsimd | c4ba87b02b26a47ef33d0a3eba78a4f330c88073 | [
"BSD-3-Clause"
] | null | null | null | #include <arbor/mechanism_abi.h>
#include <cmath>
namespace testing {
void mechanism_test1_kin_compartment_gpu_init_(arb_mechanism_ppack*);
void mechanism_test1_kin_compartment_gpu_advance_state_(arb_mechanism_ppack*);
void mechanism_test1_kin_compartment_gpu_compute_currents_(arb_mechanism_ppack*);
void mechanism_tes... | 44.9 | 108 | 0.860431 | anstaf |
a39fbd4cdb4b3910bb16ad13f337e56e11b13a1f | 2,477 | cpp | C++ | include/igl/reorder.cpp | rushmash/libwetcloth | 24f16481c68952c3d2a91acd6e3b74eb091b66bc | [
"BSD-3-Clause-Clear"
] | 26 | 2019-02-20T11:49:17.000Z | 2022-02-08T03:49:11.000Z | include/igl/reorder.cpp | rushmash/libwetcloth | 24f16481c68952c3d2a91acd6e3b74eb091b66bc | [
"BSD-3-Clause-Clear"
] | 1 | 2021-03-19T11:37:17.000Z | 2021-03-19T11:37:17.000Z | include/igl/reorder.cpp | rushmash/libwetcloth | 24f16481c68952c3d2a91acd6e3b74eb091b66bc | [
"BSD-3-Clause-Clear"
] | 8 | 2018-11-19T07:02:33.000Z | 2022-02-27T00:19:55.000Z | // This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at htt... | 58.97619 | 448 | 0.681066 | rushmash |
a39fd0169ce374f03554fee7253d8151e614e811 | 6,230 | cpp | C++ | aws-cpp-sdk-pinpoint/source/model/RecommenderConfigurationResponse.cpp | orinem/aws-sdk-cpp | f38413cc1f278689ef14e9ebdd74a489a48776be | [
"Apache-2.0"
] | 1 | 2020-03-11T05:36:20.000Z | 2020-03-11T05:36:20.000Z | aws-cpp-sdk-pinpoint/source/model/RecommenderConfigurationResponse.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-pinpoint/source/model/RecommenderConfigurationResponse.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 25.428571 | 106 | 0.768379 | orinem |
a3a44ffa0aa3bf372b0e2894c5fcc249c4bde8d1 | 810 | cpp | C++ | src/parser_nodes/join_parser_node.cpp | lowlander/nederrock | aa23f79de3adf0510419208938bf4dcdbe786c9f | [
"MIT"
] | null | null | null | src/parser_nodes/join_parser_node.cpp | lowlander/nederrock | aa23f79de3adf0510419208938bf4dcdbe786c9f | [
"MIT"
] | null | null | null | src/parser_nodes/join_parser_node.cpp | lowlander/nederrock | aa23f79de3adf0510419208938bf4dcdbe786c9f | [
"MIT"
] | null | null | null | //
// Copyright (c) 2020 Erwin Rol <erwin@erwinrol.com>
//
// SPDX-License-Identifier: MIT
//
#include "join_parser_node.hpp"
#include "parser_node.hpp"
#include <memory>
#include <istream>
#include <string>
Join_Parser_Node::Join_Parser_Node(std::wstring&& keyword)
: m_keyword(std::move(keyword))
{
}
Join_Parse... | 18.837209 | 64 | 0.714815 | lowlander |
a3a4de227987c1ca04e5b37e647a527542eb5425 | 2,968 | cpp | C++ | Source/ArgParse.cpp | Tricky1975/TrickyUnits_CPP | 6658891beadde58ecfcd7d6bd2cfebc2dfeecbb5 | [
"Unlicense"
] | null | null | null | Source/ArgParse.cpp | Tricky1975/TrickyUnits_CPP | 6658891beadde58ecfcd7d6bd2cfebc2dfeecbb5 | [
"Unlicense"
] | 3 | 2020-08-29T16:48:48.000Z | 2020-11-14T19:07:49.000Z | Source/ArgParse.cpp | Tricky1975/TrickyUnits_CPP | 6658891beadde58ecfcd7d6bd2cfebc2dfeecbb5 | [
"Unlicense"
] | null | null | null | // Lic:
// Source/ArgParse.cpp
// Argument Parser
// version: 20.09.20
// Copyright (C) 9, 2020 Jeroen P. Broks
// 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 grante... | 30.285714 | 110 | 0.682278 | Tricky1975 |
a3a5b9b4eeb70516cdacde385f40571ae94d1cdb | 46,733 | cpp | C++ | opencl/test/unit_test/helpers/dispatch_info_builder_tests.cpp | lukaszgotszaldintel/compute-runtime | 9b12dc43904806db07616ffb8b1c4495aa7d610f | [
"MIT"
] | null | null | null | opencl/test/unit_test/helpers/dispatch_info_builder_tests.cpp | lukaszgotszaldintel/compute-runtime | 9b12dc43904806db07616ffb8b1c4495aa7d610f | [
"MIT"
] | null | null | null | opencl/test/unit_test/helpers/dispatch_info_builder_tests.cpp | lukaszgotszaldintel/compute-runtime | 9b12dc43904806db07616ffb8b1c4495aa7d610f | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2017-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/source/helpers/dispatch_info_builder.h"
#include "opencl/test/unit_test/fixtures/cl_device_fixture.h"
#include "opencl/test/unit_test/fixtures/context_fixture.h"
#include "opencl/test/unit_test/mocks/mock_buffer.... | 47.638124 | 203 | 0.696317 | lukaszgotszaldintel |
a3a8a72566d102ff44338114e56b72641da47c2a | 1,377 | cpp | C++ | test/std/strings/string.view/string.view.hash/string_view.pass.cpp | baggio63446333/libcxx | fd596ad2a2a848159385d4b2b0f97b379e1b6245 | [
"MIT"
] | 1 | 2019-01-02T16:14:19.000Z | 2019-01-02T16:14:19.000Z | test/std/strings/string.view/string.view.hash/string_view.pass.cpp | scott-eddy/libcxx | ff3918c28d405ef619716fd69260b5ca026db2d0 | [
"MIT"
] | 6 | 2019-01-02T16:13:43.000Z | 2019-01-06T12:31:45.000Z | test/std/strings/string.view/string.view.hash/string_view.pass.cpp | scott-eddy/libcxx | ff3918c28d405ef619716fd69260b5ca026db2d0 | [
"MIT"
] | 2 | 2019-08-09T09:14:31.000Z | 2019-09-24T05:28:09.000Z | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 24.589286 | 84 | 0.54321 | baggio63446333 |
a3aae2e1fa147f35769842d3f86601ed944e3ca7 | 1,593 | cpp | C++ | sample/src/my_scene.cpp | mourilob/gs2d_engine | 072d387316595bf284b3e7d47f53cbab859a0e9f | [
"MIT"
] | 4 | 2018-08-14T01:31:10.000Z | 2019-06-28T09:31:04.000Z | sample/src/my_scene.cpp | mourilob/gs2d_engine | 072d387316595bf284b3e7d47f53cbab859a0e9f | [
"MIT"
] | null | null | null | sample/src/my_scene.cpp | mourilob/gs2d_engine | 072d387316595bf284b3e7d47f53cbab859a0e9f | [
"MIT"
] | 1 | 2020-02-09T02:50:29.000Z | 2020-02-09T02:50:29.000Z | #include "my_scene.hpp"
MyScene::MyScene() : delta_time(1.f/60.f) {}
void MyScene::start() {
physics_rate = fox::TimeHandler(sf::seconds(delta_time));
character = Character(ltex_repo.load("assets/textures/character.png"));
sf::Vector2u window_size = fox::Scene::app_window->getSize();
y_scale = (480 / 768.f) ... | 33.1875 | 156 | 0.677338 | mourilob |
a3ab15d895e0b63c57473ba1e30386828ffd6274 | 8,189 | cpp | C++ | tests/Cache/TransactionalStore.cpp | corona3000/arangodb | e4d5a5d2d7e83b1a094c5ac01706a13fdecfc1da | [
"Apache-2.0"
] | null | null | null | tests/Cache/TransactionalStore.cpp | corona3000/arangodb | e4d5a5d2d7e83b1a094c5ac01706a13fdecfc1da | [
"Apache-2.0"
] | 109 | 2022-01-06T07:05:24.000Z | 2022-03-21T01:39:35.000Z | tests/Cache/TransactionalStore.cpp | corona3000/arangodb | e4d5a5d2d7e83b1a094c5ac01706a13fdecfc1da | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
/// @brief helper for cache suite
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2017 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compl... | 29.456835 | 92 | 0.640005 | corona3000 |
a3ab29cd7848ac5f706f196a67107bbf1a25ab18 | 2,621 | cpp | C++ | level_zero/tools/source/metrics/metric_stubs.cpp | raiyanla/compute-runtime | 43433244f9d17e9c989116808757705754ddbfee | [
"MIT"
] | null | null | null | level_zero/tools/source/metrics/metric_stubs.cpp | raiyanla/compute-runtime | 43433244f9d17e9c989116808757705754ddbfee | [
"MIT"
] | null | null | null | level_zero/tools/source/metrics/metric_stubs.cpp | raiyanla/compute-runtime | 43433244f9d17e9c989116808757705754ddbfee | [
"MIT"
] | 1 | 2020-05-25T21:57:51.000Z | 2020-05-25T21:57:51.000Z | /*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/os_interface/os_library.h"
#include "level_zero/core/source/device.h"
#include "level_zero/core/source/driver.h"
#include "level_zero/core/source/driver_handle_imp.h"
#include "level_zero/source/inc/ze_intel_g... | 35.418919 | 171 | 0.785578 | raiyanla |
a3ac295d6a92a4e72a23aab8c603dda05635172f | 15,841 | cpp | C++ | bin/libs/systemc-2.3.1/src/sysc/kernel/sc_object_manager.cpp | buaawj/Research | 23bf0d0df67f80b7a860f9d2dc3f30b60554c26d | [
"OML"
] | 9 | 2019-07-15T10:05:29.000Z | 2022-03-14T12:55:19.000Z | bin/libs/systemc-2.3.1/src/sysc/kernel/sc_object_manager.cpp | buaawj/Research | 23bf0d0df67f80b7a860f9d2dc3f30b60554c26d | [
"OML"
] | 2 | 2019-11-30T23:27:47.000Z | 2021-11-02T12:01:05.000Z | systemc-2.3.1/src/sysc/kernel/sc_object_manager.cpp | tianzhuqiao/bsmedit | 3e443ed6db7b44b3b0da0e4bc024b65dcfe8e7a4 | [
"MIT"
] | null | null | null | /*****************************************************************************
The following code is derived, directly or indirectly, from the SystemC
source code Copyright (c) 1996-2014 by all Contributors.
All Rights reserved.
The contents of this file are subject to the restrictions and limitations
set f... | 34.362256 | 80 | 0.552869 | buaawj |
a3b03e6691362a595e82fabe228f70f7bdd80b67 | 19,121 | cpp | C++ | MSCL/source/mscl/MicroStrain/Wireless/NodeMemory_v2.cpp | HTLife/MSCL | 9d84ed27a176ff20e058b9188a97d6ff81de7604 | [
"BSL-1.0",
"OpenSSL",
"MIT"
] | null | null | null | MSCL/source/mscl/MicroStrain/Wireless/NodeMemory_v2.cpp | HTLife/MSCL | 9d84ed27a176ff20e058b9188a97d6ff81de7604 | [
"BSL-1.0",
"OpenSSL",
"MIT"
] | null | null | null | MSCL/source/mscl/MicroStrain/Wireless/NodeMemory_v2.cpp | HTLife/MSCL | 9d84ed27a176ff20e058b9188a97d6ff81de7604 | [
"BSL-1.0",
"OpenSSL",
"MIT"
] | null | null | null | /*******************************************************************************
Copyright(c) 2015-2018 LORD Corporation. All rights reserved.
MIT Licensed. See the included LICENSE.txt for a copy of the full MIT License.
*******************************************************************************/
#include "stdafx... | 34.956124 | 162 | 0.534857 | HTLife |
a3b22a412847455434e1b958dba5f49b3dfa819c | 915 | cpp | C++ | leetcode/767. Reorganize String.cpp | ANONYMOUS609/Competitive-Programming | d3753eeee24a660963f1d8911bf887c8f41f5677 | [
"MIT"
] | 2 | 2019-01-30T12:45:18.000Z | 2021-05-06T19:02:51.000Z | leetcode/767. Reorganize String.cpp | ANONYMOUS609/Competitive-Programming | d3753eeee24a660963f1d8911bf887c8f41f5677 | [
"MIT"
] | null | null | null | leetcode/767. Reorganize String.cpp | ANONYMOUS609/Competitive-Programming | d3753eeee24a660963f1d8911bf887c8f41f5677 | [
"MIT"
] | 3 | 2020-10-02T15:42:04.000Z | 2022-03-27T15:14:16.000Z | //https://leetcode.com/problems/reorganize-string/
class Solution {
public:
string reorganizeString(string S) {
map<char,int>mp;
string res = "";
for(char ch: S) mp[ch]++;
for(auto it: mp) {
if(it.second>ceil((float) S.length()/2)) {
return "";
... | 29.516129 | 70 | 0.456831 | ANONYMOUS609 |
a3b6789bac98c1b7a12902679e9510b5257323cd | 1,494 | cpp | C++ | handbag/lib/cpp/fluent/test/test.cpp | yazevnul/handbag | d78a056a19118b5e5f0dfa3817c8834b52c4288c | [
"Apache-2.0"
] | null | null | null | handbag/lib/cpp/fluent/test/test.cpp | yazevnul/handbag | d78a056a19118b5e5f0dfa3817c8834b52c4288c | [
"Apache-2.0"
] | null | null | null | handbag/lib/cpp/fluent/test/test.cpp | yazevnul/handbag | d78a056a19118b5e5f0dfa3817c8834b52c4288c | [
"Apache-2.0"
] | null | null | null | #include "gtest/gtest.h"
#include "lib/cpp/fluent/fluent.h"
#include <string>
#include <memory>
namespace {
struct Foo {
HANDBAG_FLUENT_MEMBER(int, number, 7)
HANDBAG_FLUENT_MEMBER(std::string, str)
HANDBAG_FLUENT_MEMBER(std::string, str_with_default, "default")
};
}
TEST(FluentTest,... | 22.298507 | 71 | 0.5917 | yazevnul |
a3b6e6d269a0c5709edbcdf6ef0388179a84ffc2 | 583 | cpp | C++ | examples/all_any_for_initializer_list.cpp | AI448/ACCBOOST | 08715a478997b6b192a95f45d0610ed3c8a40ff5 | [
"BSD-2-Clause"
] | 1 | 2020-02-03T10:11:02.000Z | 2020-02-03T10:11:02.000Z | examples/all_any_for_initializer_list.cpp | AI448/ACCBOOST | 08715a478997b6b192a95f45d0610ed3c8a40ff5 | [
"BSD-2-Clause"
] | null | null | null | examples/all_any_for_initializer_list.cpp | AI448/ACCBOOST | 08715a478997b6b192a95f45d0610ed3c8a40ff5 | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
#include <vector>
#include "ACCBOOST/utility.hpp"
using namespace ACCBOOST;
int main()
{
std::cout << all([](auto&& x){return x % 2 == 0;}, {1, 2, 3, 4}) << std::endl;
std::cout << all([](auto&& x){return x % 2 == 0;}, {2, 4}) << std::endl;
std::cout << all([](auto&& x){return x % 2 == 0;}, {1... | 41.642857 | 81 | 0.490566 | AI448 |
a3b779ce80f76be762b7ec581aae3aae8243c5b0 | 3,010 | cpp | C++ | Padre/padreRmeTotalmix.cpp | lorenzopistolesi/sws | 6963f7563851c8dd919db426bae825843939077f | [
"MIT",
"Unlicense"
] | 1 | 2020-01-14T19:43:07.000Z | 2020-01-14T19:43:07.000Z | Padre/padreRmeTotalmix.cpp | lorenzopistolesi/sws | 6963f7563851c8dd919db426bae825843939077f | [
"MIT",
"Unlicense"
] | null | null | null | Padre/padreRmeTotalmix.cpp | lorenzopistolesi/sws | 6963f7563851c8dd919db426bae825843939077f | [
"MIT",
"Unlicense"
] | null | null | null | /******************************************************************************
/ padreRmeTotalmix.cpp
/
/ Copyright (c) 2009-2010 Tim Payne (SWS), Jeffos (S&M), P. Bourdon
/ https://code.google.com/p/sws-extension
/
/ Permission is hereby granted, free of charge, to any person obtaining a copy
/ of this softwar... | 36.707317 | 110 | 0.690033 | lorenzopistolesi |
a3b80cfc055d835008416624f99934d531286449 | 36,160 | cpp | C++ | inference-engine/src/hetero_plugin/hetero_executable_network.cpp | MikhailPedus/openvino | 5f9ef0cf26543b3dde80b3b2bfc7e996e7c55d5b | [
"Apache-2.0"
] | null | null | null | inference-engine/src/hetero_plugin/hetero_executable_network.cpp | MikhailPedus/openvino | 5f9ef0cf26543b3dde80b3b2bfc7e996e7c55d5b | [
"Apache-2.0"
] | 27 | 2020-12-29T14:38:34.000Z | 2022-02-21T13:04:03.000Z | inference-engine/src/hetero_plugin/hetero_executable_network.cpp | dorloff/openvino | 1c3848a96fdd325b044babe6d5cd26db341cf85b | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "ie_metric_helpers.hpp"
#include "hetero_executable_network.hpp"
#include "hetero_async_infer_request.hpp"
#include "hetero_itt.hpp"
#include "xml_parse_utils.h"
#include <caseless.hpp>
#include <vector>
#include <deque>
#... | 46.658065 | 134 | 0.603042 | MikhailPedus |
a3bb742ba2eba9d8e1f5a582580f05c05af9279f | 1,407 | cpp | C++ | Tools/SPMBuild/src/SPMWriter.cpp | LifeOrGame/Sparky | 2ebcba2613b47011a224ddce5bc9267b46ba0119 | [
"Apache-2.0"
] | 1,303 | 2015-02-15T05:12:55.000Z | 2022-03-18T18:23:28.000Z | Tools/SPMBuild/src/SPMWriter.cpp | WildFire212/Sparky | a679d0834e37eb3570dff18b01550210734cb97e | [
"Apache-2.0"
] | 124 | 2015-04-02T14:15:05.000Z | 2021-05-05T12:47:16.000Z | Tools/SPMBuild/src/SPMWriter.cpp | WildFire212/Sparky | a679d0834e37eb3570dff18b01550210734cb97e | [
"Apache-2.0"
] | 538 | 2015-02-19T21:53:15.000Z | 2022-03-11T06:18:05.000Z | #include "SPMWriter.h"
#include <stdlib.h>
namespace sp { namespace tools {
SPMWriter::SPMWriter(const String& name, uint attributes, const std::vector<Vertex>& vertices, const std::vector<uint>& indices)
: m_Name(name), m_Attributes(attributes), m_VertexBuffer(vertices), m_IndexBuffer(indices)
{
m_Format.name... | 31.266667 | 129 | 0.714286 | LifeOrGame |
a3bf86178862049aafbc68a857aedfd95b7e2f40 | 908 | hpp | C++ | fw/include/fw/models/StaticModelFactory.hpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | null | null | null | fw/include/fw/models/StaticModelFactory.hpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | 9 | 2016-12-09T13:02:18.000Z | 2019-09-13T09:29:18.000Z | fw/include/fw/models/StaticModelFactory.hpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <string>
#include <fstream>
#include "assimp/scene.h"
#include "boost/filesystem.hpp"
#include "fw/models/StaticModel.hpp"
#include "fw/resources/TextureManager.hpp"
namespace fw
{
class StaticModelFactory
{
public:
StaticModelFactory(
VirtualFilesystem& vfs,
... | 23.894737 | 79 | 0.736784 | sienkiewiczkm |
a3c3e16978ecc7bd9497dc07cf3c2de7f94966dd | 677 | cpp | C++ | strings/string_functions.cpp | neerajsingh869/data-structures-and-algorithms | 96087e68fdce743f90f75228af1c7d111f6b92b7 | [
"MIT"
] | null | null | null | strings/string_functions.cpp | neerajsingh869/data-structures-and-algorithms | 96087e68fdce743f90f75228af1c7d111f6b92b7 | [
"MIT"
] | null | null | null | strings/string_functions.cpp | neerajsingh869/data-structures-and-algorithms | 96087e68fdce743f90f75228af1c7d111f6b92b7 | [
"MIT"
] | null | null | null | #include<iostream>
#include<string> // for string functions
#include<algorithm> // for sort function
using namespace std;
int main(){
string s1 = "software", s2 = "engineer";
// s1.clear();
// if(s2.compare(s1) != 0){
// cout<<"Strings are not equal"<<endl;
// }
// cout<<s2.... | 19.911765 | 47 | 0.502216 | neerajsingh869 |
a3c99c176071e740a1ed8c7a4f45675b891cee02 | 1,565 | cpp | C++ | src/interface/TWWavesSigner.cpp | dinc334/wallet-core | b4502836c2bf7b6139868a22ab62ee894966f208 | [
"MIT"
] | null | null | null | src/interface/TWWavesSigner.cpp | dinc334/wallet-core | b4502836c2bf7b6139868a22ab62ee894966f208 | [
"MIT"
] | null | null | null | src/interface/TWWavesSigner.cpp | dinc334/wallet-core | b4502836c2bf7b6139868a22ab62ee894966f208 | [
"MIT"
] | null | null | null | // Copyright © 2017-2019 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include <TrustWalletCore/TWWavesSigner.h>
#include "../Wa... | 41.184211 | 98 | 0.68115 | dinc334 |
a3cb3bf87698543d631676d0a7bfad78f4c3759d | 419 | cpp | C++ | leetcode/451. Sort Characters By Frequency/s4.cpp | contacttoakhil/LeetCode-1 | 9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c | [
"Fair"
] | 1 | 2021-02-09T11:38:51.000Z | 2021-02-09T11:38:51.000Z | leetcode/451. Sort Characters By Frequency/s4.cpp | contacttoakhil/LeetCode-1 | 9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c | [
"Fair"
] | null | null | null | leetcode/451. Sort Characters By Frequency/s4.cpp | contacttoakhil/LeetCode-1 | 9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c | [
"Fair"
] | null | null | null | // Bucket Sort
// Time: O(N)
// Space: O(N)
class Solution {
public:
string frequencySort(string s) {
vector<int> cnt(256, 0);
vector<string> bucket(s.size() + 1);
for (char c : s) cnt[c]++;
for (int i = 0; i < cnt.size(); ++i)
for (int j = 0; j < cnt[i]; bucket[cnt[i]] += char(i), ++j);
str... | 26.1875 | 67 | 0.515513 | contacttoakhil |
a3cbf4b62b60ec40312ee4659791a8c46f9ffe2d | 52,269 | cpp | C++ | src/MesaDLL/glut_tr24.cpp | OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library | c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3 | [
"MIT"
] | null | null | null | src/MesaDLL/glut_tr24.cpp | OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library | c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3 | [
"MIT"
] | null | null | null | src/MesaDLL/glut_tr24.cpp | OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library | c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3 | [
"MIT"
] | null | null | null |
/* GENERATED FILE -- DO NOT MODIFY */
#define glutBitmapTimesRoman24 XXX
#include "glutbitmap.h"
#undef glutBitmapTimesRoman24
/* char: 0xff */
static const GLubyte ch255data[] = {
0xe0,0x0,0xf0,0x0,0x18,0x0,0x8,0x0,0xc,0x0,0x4,0x0,0xe,0x0,0xe,0x0,
0x1a,0x0,0x19,0x0,0x19,0x0,0x31,0x0,0x30,0x80,0x30,0x80,0x60,0x80,0... | 25.324128 | 80 | 0.711091 | OS2World |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.