hexsha stringlengths 40 40 | size int64 19 11.4M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 270 | max_stars_repo_name stringlengths 5 110 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 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 3 270 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 270 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 19 11.4M | avg_line_length float64 1.93 229k | max_line_length int64 12 688k | alphanum_fraction float64 0.07 0.99 | matches listlengths 1 10 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f6e40b3bf1e907789c33d30fe9e5e476adee0b05 | 16,958 | cpp | C++ | 3rdParty/iresearch/core/search/boolean_filter.cpp | 0xflotus/arangodb | 1de6a7aff9183920cb8d2241c9c226b30bcf4d05 | [
"Apache-2.0"
] | 1 | 2019-08-11T04:06:49.000Z | 2019-08-11T04:06:49.000Z | 3rdParty/iresearch/core/search/boolean_filter.cpp | 0xflotus/arangodb | 1de6a7aff9183920cb8d2241c9c226b30bcf4d05 | [
"Apache-2.0"
] | null | null | null | 3rdParty/iresearch/core/search/boolean_filter.cpp | 0xflotus/arangodb | 1de6a7aff9183920cb8d2241c9c226b30bcf4d05 | [
"Apache-2.0"
] | 1 | 2021-07-12T06:29:34.000Z | 2021-07-12T06:29:34.000Z | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 by EMC Corporation, 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... | 29.288428 | 80 | 0.56463 | [
"vector"
] |
f6e492f5d030805dc577f8f59333e6a0b82a823f | 3,272 | cpp | C++ | src/effects/SkToSRGBColorFilter.cpp | derp-caf/external_skia | b09dc92e00edce8366085aaad7dcce94ceb11b69 | [
"BSD-3-Clause"
] | 46 | 2019-06-25T11:05:49.000Z | 2021-12-31T04:47:53.000Z | src/effects/SkToSRGBColorFilter.cpp | derp-caf/external_skia | b09dc92e00edce8366085aaad7dcce94ceb11b69 | [
"BSD-3-Clause"
] | 5 | 2019-10-16T06:54:37.000Z | 2020-02-06T08:22:40.000Z | src/effects/SkToSRGBColorFilter.cpp | derp-caf/external_skia | b09dc92e00edce8366085aaad7dcce94ceb11b69 | [
"BSD-3-Clause"
] | 18 | 2019-05-22T09:29:23.000Z | 2021-04-28T02:12:42.000Z | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkPM4fPriv.h"
#include "SkRasterPipeline.h"
#include "SkReadBuffer.h"
#include "SkString.h"
#include "SkToSRGBColorFilter.h"
#include "SkWriteBuffer.h"
#if SK_SUPPO... | 35.956044 | 93 | 0.654034 | [
"transform"
] |
f6e7fcf988c1a57a873e4d9669268d6c29a29a46 | 22,662 | cc | C++ | RecoEgamma/EgammaElectronProducers/plugins/LowPtGsfElectronSeedProducer.cc | bisnupriyasahu/cmssw | 6cf37ca459246525be0e8a6f5172c6123637d259 | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | RecoEgamma/EgammaElectronProducers/plugins/LowPtGsfElectronSeedProducer.cc | bisnupriyasahu/cmssw | 6cf37ca459246525be0e8a6f5172c6123637d259 | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | RecoEgamma/EgammaElectronProducers/plugins/LowPtGsfElectronSeedProducer.cc | bisnupriyasahu/cmssw | 6cf37ca459246525be0e8a6f5172c6123637d259 | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | // -*- C++ -*-
//
// Package: ElectronProducers
// Class: LowPtGsfElectronSeedProducer
//
/**\class LowPtGsfElectronSeedProducer RecoEgamma/EgammaElectronProducers/plugins/LowPtGsfElectronSeedProducer.cc
Description: EDProducer of ElectronSeed objects
Implementation:
<Notes on implementation>
*/
// Origi... | 37.707155 | 125 | 0.653429 | [
"object",
"shape",
"vector"
] |
f6fe3bf82a4ad2ab216d18bacb04e9fd311799c6 | 101,635 | cpp | C++ | tug_observers/tug_observers/test/TestObserverInfoSender.cpp | annajohny/sdp | 2f66e226fc335ae357001d07fbc74d30ab469509 | [
"BSD-3-Clause"
] | null | null | null | tug_observers/tug_observers/test/TestObserverInfoSender.cpp | annajohny/sdp | 2f66e226fc335ae357001d07fbc74d30ab469509 | [
"BSD-3-Clause"
] | null | null | null | tug_observers/tug_observers/test/TestObserverInfoSender.cpp | annajohny/sdp | 2f66e226fc335ae357001d07fbc74d30ab469509 | [
"BSD-3-Clause"
] | null | null | null | /*
This file is part of the software provided by the tug ais group
Copyright (c) 2015, Clemens Muehlbacher, Stefan Loigge
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source cod... | 40.459793 | 755 | 0.798623 | [
"vector"
] |
1004f55b2627c79f9165463955e1c175394e190a | 18,456 | cc | C++ | mysql-server/router/tests/helpers/process_manager.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/router/tests/helpers/process_manager.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/router/tests/helpers/process_manager.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /*
Copyright (c) 2019, 2020, Oracle and/or its affiliates.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain software (including
... | 31.930796 | 80 | 0.652362 | [
"vector"
] |
100650d7c27bf7d337e555f84990f9ca27614d40 | 8,092 | cpp | C++ | tests/cpu/ops/reference/ReferenceOpData_tests.cpp | mjtitchener-fn/OpenColorIO | 00b5362442b9fe954c4b1161fe0cec621fcf1915 | [
"BSD-3-Clause"
] | 628 | 2018-08-11T02:18:36.000Z | 2022-03-31T15:05:23.000Z | tests/cpu/ops/reference/ReferenceOpData_tests.cpp | mjtitchener-fn/OpenColorIO | 00b5362442b9fe954c4b1161fe0cec621fcf1915 | [
"BSD-3-Clause"
] | 655 | 2019-04-16T15:15:31.000Z | 2022-03-31T18:05:52.000Z | tests/cpu/ops/reference/ReferenceOpData_tests.cpp | mjtitchener-fn/OpenColorIO | 00b5362442b9fe954c4b1161fe0cec621fcf1915 | [
"BSD-3-Clause"
] | 181 | 2018-12-22T15:39:52.000Z | 2022-03-22T09:52:27.000Z | // SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenColorIO Project.
#include "ops/reference/ReferenceOpData.cpp"
#include "ops/cdl/CDLOpData.h"
#include "ops/lut1d/Lut1DOpData.h"
#include "ops/matrix/MatrixOpData.h"
#include "ops/noop/NoOps.h"
#include "ops/range/RangeOpData.h"
#include "t... | 32.761134 | 96 | 0.718735 | [
"transform"
] |
1006f74acc6725457be922cd38e8035044d46d66 | 8,093 | cc | C++ | src/developer/debug/debug_agent/main.cc | evanacox/fuchsia | 5fb7a5aa2fedca4e44f264df04664b49883c6fe3 | [
"BSD-2-Clause"
] | 5 | 2022-01-10T20:22:17.000Z | 2022-01-21T20:14:17.000Z | src/developer/debug/debug_agent/main.cc | fabio-d/fuchsia-stardock | e57f5d1cf015fe2294fc2a5aea704842294318d2 | [
"BSD-2-Clause"
] | null | null | null | src/developer/debug/debug_agent/main.cc | fabio-d/fuchsia-stardock | e57f5d1cf015fe2294fc2a5aea704842294318d2 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/cmdline/args_parser.h>
#include <lib/fidl/cpp/binding_set.h>
#include <lib/syslog/cpp/log_settings.h>
#include <lib/zx/thread.h>
#include <st... | 38.35545 | 100 | 0.689361 | [
"vector"
] |
1008ae6ea07757b257247fff08d133c6ddc292f4 | 6,401 | cc | C++ | tensorflow/core/kernels/sparse_tensor_dense_add_op.cc | jhabikal21/tensorflow | 98d20962172301385aae694141801a375debd2bc | [
"Apache-2.0"
] | null | null | null | tensorflow/core/kernels/sparse_tensor_dense_add_op.cc | jhabikal21/tensorflow | 98d20962172301385aae694141801a375debd2bc | [
"Apache-2.0"
] | null | null | null | tensorflow/core/kernels/sparse_tensor_dense_add_op.cc | jhabikal21/tensorflow | 98d20962172301385aae694141801a375debd2bc | [
"Apache-2.0"
] | null | null | null | /* Copyright 2016 The TensorFlow 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 applicable law or a... | 39.757764 | 80 | 0.585846 | [
"shape"
] |
100e19bc96ef641f1701e2e22bd05190c1512d53 | 5,513 | cc | C++ | test/sdk/dslink/dslink-subscribe-test.cc | iot-dsa-v2/sdk-dslink-cpp | d7734fba02237bd11bc887058f4d9573aac598d8 | [
"Apache-2.0"
] | 1 | 2018-02-09T21:20:31.000Z | 2018-02-09T21:20:31.000Z | test/sdk/dslink/dslink-subscribe-test.cc | iot-dsa-v2/sdk-dslink-cpp | d7734fba02237bd11bc887058f4d9573aac598d8 | [
"Apache-2.0"
] | 7 | 2017-11-20T22:22:12.000Z | 2018-03-21T13:00:06.000Z | test/sdk/dslink/dslink-subscribe-test.cc | iot-dsa-v2/sdk-dslink-cpp | d7734fba02237bd11bc887058f4d9573aac598d8 | [
"Apache-2.0"
] | null | null | null | #include "dsa/network.h"
#include "dsa/stream.h"
#include "dsa/responder.h"
#include <gtest/gtest.h>
#include "../async_test.h"
#include "../test_config.h"
#include "network/tcp/tcp_server.h"
using namespace dsa;
using namespace std;
using namespace boost::asio;
using DslinkTest = SetUpBase;
namespace link_subscrib... | 31.502857 | 110 | 0.661709 | [
"vector"
] |
1012125c31b10cf1d888ba4def83e6bc465d1e41 | 13,397 | cpp | C++ | src/effects/imagefilters/SkImageFilters.cpp | hixio-mh/skia | 13fc260c7080d2122a7e7152c9385d914cd20be7 | [
"BSD-3-Clause"
] | null | null | null | src/effects/imagefilters/SkImageFilters.cpp | hixio-mh/skia | 13fc260c7080d2122a7e7152c9385d914cd20be7 | [
"BSD-3-Clause"
] | null | null | null | src/effects/imagefilters/SkImageFilters.cpp | hixio-mh/skia | 13fc260c7080d2122a7e7152c9385d914cd20be7 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2019 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/effects/SkImageFilters.h"
#include "include/core/SkPaint.h"
// TODO (michaelludwig) - Right now there is a bit of a weird dependency where the implementatio... | 49.618519 | 100 | 0.718519 | [
"transform"
] |
1015aa142aa76fdadf887576df4e27285c10d61b | 29,852 | cc | C++ | components/arc/enterprise/arc_data_snapshotd_manager.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | components/arc/enterprise/arc_data_snapshotd_manager.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | components/arc/enterprise/arc_data_snapshotd_manager.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/arc/enterprise/arc_data_snapshotd_manager.h"
#include <utility>
#include "ash/constants/ash_switches.h"
#include "base/bind.h"
#inc... | 31.095833 | 80 | 0.696536 | [
"vector"
] |
1017ad31c6109239e16813f295439db1aaaad8d6 | 5,180 | cpp | C++ | source/backend/cpu/CPURelu.cpp | stephehuang/MNN | e8d9ee89aca3e8247745fb89b338eca2ad9b583d | [
"Apache-2.0"
] | 3 | 2020-09-26T03:40:17.000Z | 2021-12-26T06:58:11.000Z | source/backend/cpu/CPURelu.cpp | stephehuang/MNN | e8d9ee89aca3e8247745fb89b338eca2ad9b583d | [
"Apache-2.0"
] | null | null | null | source/backend/cpu/CPURelu.cpp | stephehuang/MNN | e8d9ee89aca3e8247745fb89b338eca2ad9b583d | [
"Apache-2.0"
] | null | null | null | //
// CPURelu.cpp
// MNN
//
// Created by MNN on 2018/07/15.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "backend/cpu/CPURelu.hpp"
#include "backend/cpu/CPUBackend.hpp"
#include "backend/cpu/compute/CommonOptFunction.h"
#include "core/Macro.h"
#include "core/Concurrency.h"
#include "CPUBackend.h... | 37 | 135 | 0.587452 | [
"vector"
] |
101e51b62cea41f75abe92b46ce8c10cf2790866 | 23,979 | cpp | C++ | application/source/application_solar.cpp | aosterthun/computergrafik | 7601d52fd160da5b975e2b20c0bedc5c316e5fb6 | [
"MIT"
] | null | null | null | application/source/application_solar.cpp | aosterthun/computergrafik | 7601d52fd160da5b975e2b20c0bedc5c316e5fb6 | [
"MIT"
] | null | null | null | application/source/application_solar.cpp | aosterthun/computergrafik | 7601d52fd160da5b975e2b20c0bedc5c316e5fb6 | [
"MIT"
] | null | null | null | #include "application_solar.hpp"
#include "launcher.hpp"
#include "utils.hpp"
#include "shader_loader.hpp"
#include "model_loader.hpp"
#include "texture_loader.hpp"
#include "material.hpp"
#include <glbinding/gl/gl.h>
// use gl definitions from glbinding
using namespace gl;
//dont load gl bindings from glfw
#define... | 37.467188 | 174 | 0.693523 | [
"geometry",
"render",
"object",
"vector",
"model",
"transform"
] |
101eb0195645b2a9f71dc6057eb5515fdc22dbfe | 73,800 | cpp | C++ | SampleQRCodes/TestBuild/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs13.cpp | Dooyoung-Kim/QRTracking | ba519f0a10a0b897b2e324430c52d58efa9b31c0 | [
"MIT"
] | null | null | null | SampleQRCodes/TestBuild/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs13.cpp | Dooyoung-Kim/QRTracking | ba519f0a10a0b897b2e324430c52d58efa9b31c0 | [
"MIT"
] | null | null | null | SampleQRCodes/TestBuild/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs13.cpp | Dooyoung-Kim/QRTracking | ba519f0a10a0b897b2e324430c52d58efa9b31c0 | [
"MIT"
] | null | null | null | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <limits>
#include "vm/CachedCCWBase.h"
#include "utils/New.h"
// System.Collections.Generic.IEqualityComparer`1<System.Int32>
struct IEqualityComparer_1_t62010156673DE1460AB1D1CEBE5DCD48665... | 47.307692 | 257 | 0.820312 | [
"object"
] |
1020ac83c1cd2a6f5f186647d84d08ecb2cd8133 | 12,708 | cc | C++ | src/ray/common/id.cc | Yeachan-Heo/ray | a73c488c74b1e01da3961db2eb538c43c29753f5 | [
"Apache-2.0"
] | 1 | 2020-11-14T19:25:41.000Z | 2020-11-14T19:25:41.000Z | src/ray/common/id.cc | Yeachan-Heo/ray | a73c488c74b1e01da3961db2eb538c43c29753f5 | [
"Apache-2.0"
] | 2 | 2022-01-13T04:15:38.000Z | 2022-03-12T01:03:35.000Z | src/ray/common/id.cc | Yeachan-Heo/ray | a73c488c74b1e01da3961db2eb538c43c29753f5 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 The Ray Authors.
//
// 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 i... | 34.345946 | 90 | 0.677447 | [
"object",
"vector"
] |
102326a7a11c2e9332804cc340b67a802d8bf705 | 1,877 | cpp | C++ | tetris_sfml/TetrisMenu.cpp | daemon3000/Tetris | a78b39485c47916bb0e9178163f1cb23d09b5b83 | [
"Zlib",
"MIT"
] | null | null | null | tetris_sfml/TetrisMenu.cpp | daemon3000/Tetris | a78b39485c47916bb0e9178163f1cb23d09b5b83 | [
"Zlib",
"MIT"
] | null | null | null | tetris_sfml/TetrisMenu.cpp | daemon3000/Tetris | a78b39485c47916bb0e9178163f1cb23d09b5b83 | [
"Zlib",
"MIT"
] | null | null | null | #include "TetrisMenu.h"
#include "MenuStateMachine.h"
#include "ResourceCache.h"
#include "MenuHomeScreen.h"
#include "MenuAboutScreen.h"
#include "MenuHighscoreScreen.h"
#include "MenuNewHighscoreScreen.h"
#include "TetrisGame.h"
#include "Application.h"
#include "MenuStateID.h"
using namespace tetris;
using namespac... | 27.202899 | 90 | 0.772509 | [
"render"
] |
10283376d175185194040dd44903f0d7b18def2b | 7,591 | cpp | C++ | generator/osm2meta.cpp | ToshUxanoff/omim | a8acb5821c72bd78847d1c49968b14d15b1e06ee | [
"Apache-2.0"
] | 1 | 2019-03-13T08:21:40.000Z | 2019-03-13T08:21:40.000Z | generator/osm2meta.cpp | MohammadMoeinfar/omim | 7b7d1990143bc3cbe218ea14b5428d0fc02d78fc | [
"Apache-2.0"
] | 1 | 2019-05-14T15:26:55.000Z | 2019-05-16T11:00:33.000Z | generator/osm2meta.cpp | vmihaylenko/omim | 00087f340e723fc611cbc82e0ae898b9053b620a | [
"Apache-2.0"
] | null | null | null | #include "generator/osm2meta.hpp"
#include "platform/measurement_utils.hpp"
#include "routing/routing_helpers.hpp"
#include "coding/url_encode.hpp"
#include "base/logging.hpp"
#include "base/string_utils.hpp"
#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <s... | 26.449477 | 100 | 0.689896 | [
"vector"
] |
102dc0055f092c4d0eedf7ba6b3261139b3dd580 | 1,014 | cpp | C++ | Codeforces/#711_Div.2/B.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | Codeforces/#711_Div.2/B.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | Codeforces/#711_Div.2/B.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | //
// Created by Tatsuhiro Hashimoto on 2021/03/29.
//
#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
int main() {
int Cases; cin >> Cases;
for (int Case = 0; Case < Cases; Case++) {
int n, w; cin >> n >> w;
vector<int> a(20, 0);
for (int i = 0; i < n; i++) {... | 25.35 | 50 | 0.29783 | [
"vector"
] |
102e17e3fc6f5b9c0bf2fc236b3ef0eca31a4bcd | 11,393 | hh | C++ | include/seastar/http/httpd.hh | jwnx/seastar | 4207837dfbc969e46c0b581e6c3f801dbc8f3a07 | [
"Apache-2.0"
] | null | null | null | include/seastar/http/httpd.hh | jwnx/seastar | 4207837dfbc969e46c0b581e6c3f801dbc8f3a07 | [
"Apache-2.0"
] | null | null | null | include/seastar/http/httpd.hh | jwnx/seastar | 4207837dfbc969e46c0b581e6c3f801dbc8f3a07 | [
"Apache-2.0"
] | 1 | 2020-08-10T12:54:33.000Z | 2020-08-10T12:54:33.000Z | /*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... | 30.140212 | 108 | 0.578952 | [
"vector"
] |
102fccc0cc01090cb4fc21304b23226cb98787fa | 4,328 | hpp | C++ | include/engine/scripting-system/Lua.hpp | Ghabriel/PokemonCpp | dcdbbde0ea99afc98edecd764b02ff92d8ca6a6e | [
"Apache-2.0"
] | 6 | 2018-08-05T21:45:23.000Z | 2021-10-30T19:48:34.000Z | include/engine/scripting-system/Lua.hpp | Ghabriel/PokemonCpp | dcdbbde0ea99afc98edecd764b02ff92d8ca6a6e | [
"Apache-2.0"
] | null | null | null | include/engine/scripting-system/Lua.hpp | Ghabriel/PokemonCpp | dcdbbde0ea99afc98edecd764b02ff92d8ca6a6e | [
"Apache-2.0"
] | 1 | 2021-11-01T20:15:38.000Z | 2021-11-01T20:15:38.000Z | #ifndef SCRIPTING_SYSTEM_LUA_HPP
#define SCRIPTING_SYSTEM_LUA_HPP
#include <cassert>
#include <iostream>
#include <vector>
#include "LuaWrapper.hpp"
namespace engine::scriptingsystem {
/**
* \brief Provides a simple API to a %Lua file.
*/
class Lua {
public:
Lua(const std::string& filen... | 29.04698 | 94 | 0.580869 | [
"vector"
] |
102fe7f680f0ec7d326ff3f0d1a71b0d45c9cf32 | 1,555 | cpp | C++ | uva/10600.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | uva/10600.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | uva/10600.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 4 | 2020-08-11T14:23:34.000Z | 2020-11-17T10:52:31.000Z | #include <bits/stdc++.h>
#define le 102
using namespace std;
int p[le];
int ans;
struct edge{
int u, v, w;
};
bool comp(edge a, edge b){
return a.w < b.w;
}
int fnc(int a){
if(p[a] == a) return a;
p[a] = fnc(p[a]);
return p[a];
}
vector<edge> ve;
vector<edge> v;
int mst(int n){
sort(v.begin(), v.end(), comp... | 21.597222 | 109 | 0.434727 | [
"vector"
] |
1031ce41f25932cd2afb0023b1cb8d3ee76117f3 | 3,651 | cpp | C++ | media/papers/OpenPatternMatching/artifact/code/hierarchy2b.cpp | akrzemi1/Mach7 | eef288eb9fe59712ff153dd70791365391b7b118 | [
"BSD-3-Clause"
] | 1,310 | 2015-01-04T03:44:04.000Z | 2022-03-18T04:44:01.000Z | media/papers/OpenPatternMatching/artifact/code/hierarchy2b.cpp | akrzemi1/Mach7 | eef288eb9fe59712ff153dd70791365391b7b118 | [
"BSD-3-Clause"
] | 62 | 2015-01-12T07:59:17.000Z | 2021-11-14T22:02:14.000Z | media/papers/OpenPatternMatching/artifact/code/hierarchy2b.cpp | akrzemi1/Mach7 | eef288eb9fe59712ff153dd70791365391b7b118 | [
"BSD-3-Clause"
] | 108 | 2015-02-13T17:39:07.000Z | 2021-11-18T11:06:59.000Z | ///
/// \file
///
/// This file is a part of pattern matching testing suite.
///
/// \author Yuriy Solodkyy <yuriy.solodkyy@gmail.com>
///
/// This file is a part of Mach7 library (http://parasol.tamu.edu/mach7/).
/// Copyright (C) 2011-2013 Texas A&M University.
/// All rights reserved.
///
#include "test... | 28.748031 | 139 | 0.508628 | [
"shape"
] |
10348b85f9b687af116e2e88e1f5272c4d410b72 | 5,867 | cpp | C++ | SerialPrograms/Source/PokemonLA/Options/PokemonLA_TradeCountTable.cpp | BlizzardHero/Arduino-Source | bc4ce6433651b0feef488735098900f8bf4144f8 | [
"MIT"
] | null | null | null | SerialPrograms/Source/PokemonLA/Options/PokemonLA_TradeCountTable.cpp | BlizzardHero/Arduino-Source | bc4ce6433651b0feef488735098900f8bf4144f8 | [
"MIT"
] | null | null | null | SerialPrograms/Source/PokemonLA/Options/PokemonLA_TradeCountTable.cpp | BlizzardHero/Arduino-Source | bc4ce6433651b0feef488735098900f8bf4144f8 | [
"MIT"
] | null | null | null | /* Trade Count Table
*
* From: https://github.com/PokemonAutomation/Arduino-Source
*
*/
#include <QVBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QHeaderView>
#include "Common/Cpp/Exceptions.h"
#include "Common/Qt/QtJsonTools.h"
#include "CommonFramework/Globals.h"
#include "Pokemon/Resources/Pokem... | 31.207447 | 150 | 0.656383 | [
"object"
] |
10349119e156b2f0dcec932a74bb1abaad05df97 | 1,731 | cpp | C++ | cure/src/terrainpatchloader.cpp | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | 9 | 2019-09-03T18:33:31.000Z | 2022-02-04T04:00:02.000Z | cure/src/terrainpatchloader.cpp | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | null | null | null | cure/src/terrainpatchloader.cpp | highfestiva/life | b05b592502d72980ab55e13e84330b74a966f377 | [
"BSD-3-Clause"
] | null | null | null |
// Author: Jonas Byström
// Copyright (c) Pixel Doctrine
#include "pch.h"
#include "../../tbc/include/terrainpatch.h"
#include "../include/terrainfunctionmanager.h"
#include "../include/terrainpatchloader.h"
namespace cure {
TerrainPatchLoader::TerrainPatchLoader(ResourceManager* resource_manager):
resource_... | 22.776316 | 123 | 0.747545 | [
"3d"
] |
1034f42f9259f3513517de1088411d9694007832 | 37,598 | cpp | C++ | stdlib/public/Reflection/TypeRef.cpp | Dithn/swift | 9e85a396f6edd01d61dff55bd67d7765fed5be84 | [
"Apache-2.0"
] | 2 | 2021-04-18T06:29:25.000Z | 2021-09-05T14:18:26.000Z | stdlib/public/Reflection/TypeRef.cpp | brandonasuncion/swift | 236237fc9ec4e607d29c89e9bc287142a16c2e19 | [
"Apache-2.0"
] | 1 | 2020-05-11T23:43:40.000Z | 2020-05-11T23:43:40.000Z | stdlib/public/Reflection/TypeRef.cpp | brandonasuncion/swift | 236237fc9ec4e607d29c89e9bc287142a16c2e19 | [
"Apache-2.0"
] | 1 | 2021-04-18T03:21:19.000Z | 2021-04-18T03:21:19.000Z | //===--- TypeRef.cpp - Swift Type References for Reflection ---------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | 30.617264 | 86 | 0.635911 | [
"vector"
] |
1036e97d95728b569762b540bb8ee43f5c64ef74 | 6,746 | hpp | C++ | python/src/bindings/binding_helpers.hpp | diehlpk/phylanx | 7eba54f0f22dc66d18addac0b24f006380d0f798 | [
"BSL-1.0"
] | null | null | null | python/src/bindings/binding_helpers.hpp | diehlpk/phylanx | 7eba54f0f22dc66d18addac0b24f006380d0f798 | [
"BSL-1.0"
] | null | null | null | python/src/bindings/binding_helpers.hpp | diehlpk/phylanx | 7eba54f0f22dc66d18addac0b24f006380d0f798 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2017 Hartmut Kaiser
// Copyright (c) 2018 R. Tohid
// Copyright (c) 2018 Steven R. Brandt
//
// 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)
#if !defined(PHYLANX_BINDING_HELPERS_HPP)
#define P... | 32.589372 | 88 | 0.524904 | [
"object",
"vector"
] |
103a9ded7336cd1a404b69a1d1f5fde2caa0a6ea | 4,448 | cpp | C++ | src/pipeline/aggregator.cpp | darrell-rg/librealsense | e5d94ed0ba0fb9f442174c9429926df2f701f6a4 | [
"Apache-2.0"
] | 5 | 2018-07-17T17:49:59.000Z | 2018-12-29T01:30:18.000Z | src/pipeline/aggregator.cpp | darrell-rg/librealsense | e5d94ed0ba0fb9f442174c9429926df2f701f6a4 | [
"Apache-2.0"
] | 1 | 2018-12-29T19:33:59.000Z | 2018-12-29T19:33:59.000Z | src/pipeline/aggregator.cpp | darrell-rg/librealsense | e5d94ed0ba0fb9f442174c9429926df2f701f6a4 | [
"Apache-2.0"
] | 3 | 2018-12-29T00:34:52.000Z | 2020-06-18T04:24:18.000Z | // License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.
#include <algorithm>
#include "stream.h"
#include "aggregator.h"
namespace librealsense
{
namespace pipeline
{
aggregator::aggregator(const std::vector<int>& streams_to_aggregate, c... | 41.570093 | 119 | 0.545863 | [
"vector"
] |
103f4029f7ce1bf99c6fdb8231df2eb4d1e0e73c | 8,299 | cc | C++ | ge/host_kernels/pack_kernel.cc | mindspore-ai/graphengine | 460406cbd691b963d125837f022be5d8abd1a637 | [
"Apache-2.0"
] | 207 | 2020-03-28T02:12:50.000Z | 2021-11-23T18:27:45.000Z | ge/host_kernels/pack_kernel.cc | mindspore-ai/graphengine | 460406cbd691b963d125837f022be5d8abd1a637 | [
"Apache-2.0"
] | 4 | 2020-04-17T07:32:44.000Z | 2021-06-26T04:55:03.000Z | ge/host_kernels/pack_kernel.cc | mindspore-ai/graphengine | 460406cbd691b963d125837f022be5d8abd1a637 | [
"Apache-2.0"
] | 13 | 2020-03-28T02:52:26.000Z | 2021-07-03T23:12:54.000Z | /**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... | 36.399123 | 119 | 0.662489 | [
"shape",
"vector"
] |
103fc84bfc73811a274a2a87f74baefca0901c93 | 7,347 | cpp | C++ | librdkafka/tests/0054-offset_time.cpp | T-DevH/Jetson_nano | 9d1ad2643169516b4396e4133ed9be55b5b37854 | [
"MIT"
] | 2 | 2021-06-29T13:42:22.000Z | 2021-09-06T10:57:34.000Z | librdkafka/tests/0054-offset_time.cpp | T-DevH/Jetson_nano | 9d1ad2643169516b4396e4133ed9be55b5b37854 | [
"MIT"
] | 1 | 2021-08-06T13:47:48.000Z | 2021-08-06T13:47:48.000Z | librdkafka/tests/0054-offset_time.cpp | T-DevH/Jetson_nano | 9d1ad2643169516b4396e4133ed9be55b5b37854 | [
"MIT"
] | 5 | 2021-06-29T13:42:26.000Z | 2022-02-08T02:41:34.000Z | /*
* librdkafka - Apache Kafka C library
*
* Copyright (c) 2012-2015, Magnus Edenhill
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the... | 41.275281 | 133 | 0.664489 | [
"vector"
] |
10419e26f626f5fa8c690bab911c4578138becb3 | 891 | cpp | C++ | Dataset/Leetcode/train/46/204.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/46/204.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/46/204.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<int>> XXX(vector<int>& nums) {
vector<vector<int>> re;
re.push_back(nums);
fun(re, nums, 0, nums.size());
return re;
}
//str不能引用; startIndex表示子序列头部元素位置
void fun(vector<vector<int>>& re, vector<int> str, int startIndex, int len){
... | 29.7 | 139 | 0.59596 | [
"vector"
] |
1047db49df452f3595b0259f8519905039700fe1 | 466 | hpp | C++ | Include/Injector/Mathematics/Color.hpp | InjectorGames/Inject | 09e74a83c287b81fd8272c10d6bae2b1aa785c0e | [
"BSD-3-Clause"
] | 2 | 2019-12-10T16:26:58.000Z | 2020-04-17T11:47:42.000Z | Include/Injector/Mathematics/Color.hpp | InjectorGames/Inject | 09e74a83c287b81fd8272c10d6bae2b1aa785c0e | [
"BSD-3-Clause"
] | 28 | 2020-08-17T12:39:50.000Z | 2020-11-16T20:42:50.000Z | Include/Injector/Mathematics/Color.hpp | InjectorGames/InjectorEngine | 09e74a83c287b81fd8272c10d6bae2b1aa785c0e | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "Vector4.hpp"
namespace Injector
{
class Color
{
public:
static FloatVector4 toVector(
uint8_t r,
uint8_t g,
uint8_t b,
uint8_t a) noexcept;
static FloatVector4 toVector(
const ByteVector4& rgba) noexcept;
static void toRGBA(
const FloatVector4& vector,
uint8_t& r,... | 17.259259 | 37 | 0.688841 | [
"vector"
] |
10489f16744cbcea7b5206d48ba6c31303185f72 | 9,018 | cc | C++ | src/MetroCollect/SourceProcStat.cc | Maxime999/MetroCollect | 5f6c74ee29a0b489de38bff0674c17adb099a8e1 | [
"Apache-2.0"
] | 1 | 2018-10-16T10:53:39.000Z | 2018-10-16T10:53:39.000Z | src/MetroCollect/SourceProcStat.cc | Maxime999/MetroCollect | 5f6c74ee29a0b489de38bff0674c17adb099a8e1 | [
"Apache-2.0"
] | null | null | null | src/MetroCollect/SourceProcStat.cc | Maxime999/MetroCollect | 5f6c74ee29a0b489de38bff0674c17adb099a8e1 | [
"Apache-2.0"
] | null | null | null | //
// SourceProcStat.cc
//
// Created on July 13th 2018
//
// Copyright 2018 CFM (www.cfm.fr)
//
// 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/LICE... | 37.264463 | 201 | 0.68075 | [
"vector"
] |
10492de6075684786e164eae1a3afee2a3f9f725 | 4,248 | ipp | C++ | src/bm_runtime/SimplePre_server.ipp | clickp4/bmv2 | aca47e23c968353a9ffd27e9b6305f41cefadf6b | [
"Apache-2.0"
] | 2 | 2018-08-29T22:58:07.000Z | 2018-08-30T01:44:30.000Z | src/bm_runtime/SimplePre_server.ipp | clickp4/bmv2 | aca47e23c968353a9ffd27e9b6305f41cefadf6b | [
"Apache-2.0"
] | null | null | null | src/bm_runtime/SimplePre_server.ipp | clickp4/bmv2 | aca47e23c968353a9ffd27e9b6305f41cefadf6b | [
"Apache-2.0"
] | 4 | 2016-06-22T23:39:02.000Z | 2022-03-26T13:53:51.000Z | /* Copyright 2013-present Barefoot Networks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 33.714286 | 116 | 0.706215 | [
"vector"
] |
104b3d63e113e8ff4409544020ca65c7cc92bfae | 486,155 | cpp | C++ | tools/clang/lib/Sema/SemaHLSL.cpp | sam-sam98/DirectXShaderCompiler | 1f73e791cba5d4f30c63be8aff9684149ed7a89f | [
"NCSA"
] | null | null | null | tools/clang/lib/Sema/SemaHLSL.cpp | sam-sam98/DirectXShaderCompiler | 1f73e791cba5d4f30c63be8aff9684149ed7a89f | [
"NCSA"
] | null | null | null | tools/clang/lib/Sema/SemaHLSL.cpp | sam-sam98/DirectXShaderCompiler | 1f73e791cba5d4f30c63be8aff9684149ed7a89f | [
"NCSA"
] | null | null | null | //===--- SemaHLSL.cpp - HLSL support for AST nodes and operations ---===//
///////////////////////////////////////////////////////////////////////////////
// //
// SemaHLSL.cpp //... | 35.597496 | 168 | 0.694281 | [
"mesh",
"geometry",
"object",
"shape",
"vector"
] |
104bad7dface990c4c6f510d25d8443348c9f4c7 | 54,770 | cpp | C++ | modules/Alexa/SampleApp/src/GUI/GUIClient.cpp | luckypal/AWSAlexaSmartScreenSDK | cce60e3fb697f256ce1e10394dff42065f29302f | [
"Apache-2.0"
] | 74 | 2019-11-19T18:17:04.000Z | 2022-03-11T22:24:05.000Z | modules/Alexa/SampleApp/src/GUI/GUIClient.cpp | luckypal/AWSAlexaSmartScreenSDK | cce60e3fb697f256ce1e10394dff42065f29302f | [
"Apache-2.0"
] | 122 | 2019-11-19T19:01:11.000Z | 2022-03-16T04:57:21.000Z | modules/Alexa/SampleApp/src/GUI/GUIClient.cpp | luckypal/AWSAlexaSmartScreenSDK | cce60e3fb697f256ce1e10394dff42065f29302f | [
"Apache-2.0"
] | 22 | 2019-11-24T07:44:14.000Z | 2022-03-07T08:11:51.000Z | /*
* Copyright 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" f... | 38.706714 | 120 | 0.716779 | [
"object",
"vector"
] |
1052d36a88c22901dae26424d09554d94ee990c9 | 2,197 | cpp | C++ | src/opt/ssa/ssa_converter.cpp | robtaylor/iroha | e7713910ee64ca98f999b98b0c77c02fcfe2da09 | [
"BSD-3-Clause"
] | 34 | 2016-02-07T17:43:55.000Z | 2021-12-18T12:01:08.000Z | src/opt/ssa/ssa_converter.cpp | robtaylor/iroha | e7713910ee64ca98f999b98b0c77c02fcfe2da09 | [
"BSD-3-Clause"
] | 5 | 2016-04-12T09:27:31.000Z | 2021-06-29T10:59:18.000Z | src/opt/ssa/ssa_converter.cpp | robtaylor/iroha | e7713910ee64ca98f999b98b0c77c02fcfe2da09 | [
"BSD-3-Clause"
] | 5 | 2015-12-26T10:58:46.000Z | 2021-06-25T18:58:40.000Z | #include "opt/ssa/ssa_converter.h"
#include "design/design_tool.h"
#include "design/design_util.h"
#include "iroha/i_design.h"
#include "iroha/logging.h"
#include "iroha/resource_class.h"
#include "opt/data_flow.h"
#include "opt/dominator_tree.h"
#include "opt/opt_util.h"
#include "opt/ssa/phi_builder.h"
#include "opt... | 28.166667 | 73 | 0.704142 | [
"vector"
] |
10575a83367ac45f7ff85cc1497e3c178deca384 | 2,672 | cpp | C++ | SelPh/visualizationwidget.cpp | yuki-koyama/selph | 9f3d1a868333843c6884adac41e344684efa2366 | [
"MIT"
] | 3 | 2019-09-13T07:47:39.000Z | 2021-03-10T20:31:32.000Z | SelPh/visualizationwidget.cpp | yuki-koyama/selph | 9f3d1a868333843c6884adac41e344684efa2366 | [
"MIT"
] | 7 | 2018-04-06T10:06:56.000Z | 2019-08-04T05:38:12.000Z | SelPh/visualizationwidget.cpp | yuki-koyama/selph | 9f3d1a868333843c6884adac41e344684efa2366 | [
"MIT"
] | null | null | null | #include "visualizationwidget.h"
#include <iostream>
#include <QPainter>
#include <QPaintEvent>
#include <QVector3D>
#include <tinycolormap.hpp>
#include "core.h"
#include "eigenutility.h"
using namespace std;
using namespace Eigen;
namespace {
Core& core = Core::getInstance();
}
VisualizationWidget::VisualizationW... | 28.731183 | 114 | 0.652695 | [
"vector"
] |
105a3fac9f5e31fff90cd8b1483a55187d8de5da | 11,961 | hpp | C++ | applications/SolidMechanicsApplication/custom_elements/solid_elements/axisymmetric_updated_lagrangian_U_P_element.hpp | AndreaVoltan/MyKratos7.0 | e977752722e8ef1b606f25618c4bf8fd04c434cc | [
"BSD-4-Clause"
] | 2 | 2020-04-30T19:13:08.000Z | 2021-04-14T19:40:47.000Z | applications/SolidMechanicsApplication/custom_elements/solid_elements/axisymmetric_updated_lagrangian_U_P_element.hpp | AndreaVoltan/MyKratos7.0 | e977752722e8ef1b606f25618c4bf8fd04c434cc | [
"BSD-4-Clause"
] | 1 | 2020-04-30T19:19:09.000Z | 2020-05-02T14:22:36.000Z | applications/SolidMechanicsApplication/custom_elements/solid_elements/axisymmetric_updated_lagrangian_U_P_element.hpp | AndreaVoltan/MyKratos7.0 | e977752722e8ef1b606f25618c4bf8fd04c434cc | [
"BSD-4-Clause"
] | 1 | 2020-06-12T08:51:24.000Z | 2020-06-12T08:51:24.000Z | //
// Project Name: KratosSolidMechanicsApplication $
// Created by: $Author: JMCarbonell $
// Last modified by: $Co-Author: $
// Date: $Date: July 2013 $
// Revision: $Revision: 0.0 $
//
//
#if !defin... | 28.143529 | 151 | 0.600619 | [
"geometry",
"vector"
] |
105b22c474b93cc603745de21d5efba61f0c0489 | 141,697 | cpp | C++ | modules/gles31/functional/es31fShaderImageLoadStoreTests.cpp | iabernikhin/VK-GL-CTS | a3338eb2ded98b5befda64f9325db0d219095a00 | [
"Apache-2.0"
] | 354 | 2017-01-24T17:12:38.000Z | 2022-03-30T07:40:19.000Z | modules/gles31/functional/es31fShaderImageLoadStoreTests.cpp | iabernikhin/VK-GL-CTS | a3338eb2ded98b5befda64f9325db0d219095a00 | [
"Apache-2.0"
] | 275 | 2017-01-24T20:10:36.000Z | 2022-03-24T16:24:50.000Z | modules/gles31/functional/es31fShaderImageLoadStoreTests.cpp | iabernikhin/VK-GL-CTS | a3338eb2ded98b5befda64f9325db0d219095a00 | [
"Apache-2.0"
] | 190 | 2017-01-24T18:02:04.000Z | 2022-03-27T13:11:23.000Z | /*-------------------------------------------------------------------------
* drawElements Quality Program OpenGL ES 3.1 Module
* -------------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not ... | 41.897398 | 222 | 0.696521 | [
"render",
"vector",
"3d"
] |
105c03c78ddfec7544ae9b2e5d0ef435077a9f21 | 1,209 | cpp | C++ | examples/tests_in_different_files/test_sample.cpp | AlexandruIca/EasyUnitTestFramwork | 3df7c313bbfe15292777c13e1da782b84699afe1 | [
"MIT"
] | null | null | null | examples/tests_in_different_files/test_sample.cpp | AlexandruIca/EasyUnitTestFramwork | 3df7c313bbfe15292777c13e1da782b84699afe1 | [
"MIT"
] | null | null | null | examples/tests_in_different_files/test_sample.cpp | AlexandruIca/EasyUnitTestFramwork | 3df7c313bbfe15292777c13e1da782b84699afe1 | [
"MIT"
] | null | null | null | #include "test_sample.hpp"
#include <utility>
#include "EUTF.hpp"
Vec3::Vec3()
: x(0.0)
, y(0.0)
, z(0.0)
{}
Vec3::Vec3(double a, double b, double c)
: x(a)
, y(b)
, z(c)
{}
Vec3::Vec3(const Vec3& other)
: x(other.x)
, y(other.y)
, z(other.z)
{}
Vec3::Vec3(Vec3&& other)
: x(std::move(other.x))
, y(std:... | 16.12 | 56 | 0.593879 | [
"vector"
] |
1060572a0e1f71389d129f9488365f4d2c2742d5 | 17,243 | cpp | C++ | model/ContactDto.cpp | mailslurp/mailslurp-client-cpp-restsdk | 4e3f8c90f0bd4e7beee835da6e116405c2d9fd0e | [
"MIT"
] | null | null | null | model/ContactDto.cpp | mailslurp/mailslurp-client-cpp-restsdk | 4e3f8c90f0bd4e7beee835da6e116405c2d9fd0e | [
"MIT"
] | null | null | null | model/ContactDto.cpp | mailslurp/mailslurp-client-cpp-restsdk | 4e3f8c90f0bd4e7beee835da6e116405c2d9fd0e | [
"MIT"
] | null | null | null | /**
* MailSlurp API
* MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - G... | 29.576329 | 472 | 0.676216 | [
"object",
"vector",
"model"
] |
1060bc55e935f5ee552e22fc9d4267ca3ee65cf4 | 45,770 | cpp | C++ | projects/Phantom/phantom/detail/core.cpp | vlmillet/phantom | e5579ea52dafded64fd2fe88aabfdf8a73534918 | [
"MIT"
] | 12 | 2019-12-26T00:55:39.000Z | 2020-12-03T14:46:56.000Z | projects/Phantom/phantom/detail/core.cpp | vlmillet/Phantom | e5579ea52dafded64fd2fe88aabfdf8a73534918 | [
"MIT"
] | null | null | null | projects/Phantom/phantom/detail/core.cpp | vlmillet/Phantom | e5579ea52dafded64fd2fe88aabfdf8a73534918 | [
"MIT"
] | 1 | 2020-12-09T11:47:13.000Z | 2020-12-09T11:47:13.000Z | // license [
// This file is part of the Phantom project. Copyright 2011-2020 Vivien Millet.
// Distributed under the MIT license. Text available here at
// https://github.com/vlmillet/phantom
// ]
/* ******************* Includes ****************** */
#include "core.h"
#include <iostream>
#include <phantom/lang/Sourc... | 34.465361 | 120 | 0.639371 | [
"object"
] |
1061c8e1fcbc69ea7db83c97d65da83ed88c4fc5 | 4,430 | cpp | C++ | tests/gl-320-primitive-front-face.cpp | lostgoat/ogl-samples | 9985448efd25bbd89d94a5ad76597cdb461fb5fc | [
"MIT"
] | null | null | null | tests/gl-320-primitive-front-face.cpp | lostgoat/ogl-samples | 9985448efd25bbd89d94a5ad76597cdb461fb5fc | [
"MIT"
] | null | null | null | tests/gl-320-primitive-front-face.cpp | lostgoat/ogl-samples | 9985448efd25bbd89d94a5ad76597cdb461fb5fc | [
"MIT"
] | 1 | 2020-04-30T09:17:01.000Z | 2020-04-30T09:17:01.000Z | #include "test.hpp"
namespace
{
char const * VERT_SHADER_SOURCE("gl-320/primitive-front-face.vert");
char const * FRAG_SHADER_SOURCE("gl-320/primitive-front-face.frag");
GLsizei const VertexCount(4);
GLsizeiptr const VertexSize = VertexCount * sizeof(glm::vec2);
glm::vec2 const VertexData[VertexCount] =
{
glm... | 25.170455 | 136 | 0.719187 | [
"render",
"object",
"vector",
"model"
] |
1063f50e977a2b1941e0101ddee595bab5ca1dce | 1,783 | hpp | C++ | include/spl/any_drawable.hpp | momokrono/spl | 36c2e2ceb6c0d51a57423e5422054aae09c58f83 | [
"MIT"
] | 5 | 2020-04-25T15:42:31.000Z | 2022-03-31T09:11:45.000Z | include/spl/any_drawable.hpp | momokrono/spl | 36c2e2ceb6c0d51a57423e5422054aae09c58f83 | [
"MIT"
] | 6 | 2020-04-24T17:09:22.000Z | 2020-07-31T13:43:09.000Z | include/spl/any_drawable.hpp | momokrono/spl | 36c2e2ceb6c0d51a57423e5422054aae09c58f83 | [
"MIT"
] | null | null | null | /**
* @author : rbrugo, momokrono
* @file : any_drawable
* @created : Sunday May 16, 2021 20:08:51 CEST
* @description : implements `any_drawable`, a type-erasing wrapper to store `drawable`s
* */
#ifndef ANY_DRAWABLE_HPP
#define ANY_DRAWABLE_HPP
#include <memory>
#include "spl/drawable.hpp"
#inc... | 25.112676 | 91 | 0.628716 | [
"object",
"model"
] |
106566ae9dc005e7830a96a383723faaeecf930e | 20,417 | cpp | C++ | src/main.cpp | aleksandrina-streltsova/lidar-global-registration | 00cc919f17fe5b6854b575ca0aea3712ce034df6 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | aleksandrina-streltsova/lidar-global-registration | 00cc919f17fe5b6854b575ca0aea3712ce034df6 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | aleksandrina-streltsova/lidar-global-registration | 00cc919f17fe5b6854b575ca0aea3712ce034df6 | [
"Apache-2.0"
] | null | null | null | #include <Eigen/Core>
#include <string>
#include <filesystem>
#include <array>
#include "io.h"
#include "config.h"
#include "align.h"
#include "filter.h"
#include "downsample.h"
namespace fs = std::filesystem;
const std::string ALIGNMENT = "alignment";
const std::string METRIC_ANALYSIS = "metric";
const std::string ... | 51.170426 | 155 | 0.656806 | [
"vector"
] |
10676119f60b871c4cc05c598c94935521ef7226 | 4,502 | hpp | C++ | libraries/chain/include/graphene/chain/db_with.hpp | VizTower/viz-old | e973d63775eaef20ae805cf75013cf95bf464a26 | [
"MIT"
] | null | null | null | libraries/chain/include/graphene/chain/db_with.hpp | VizTower/viz-old | e973d63775eaef20ae805cf75013cf95bf464a26 | [
"MIT"
] | null | null | null | libraries/chain/include/graphene/chain/db_with.hpp | VizTower/viz-old | e973d63775eaef20ae805cf75013cf95bf464a26 | [
"MIT"
] | null | null | null | #pragma once
#include <graphene/chain/database.hpp>
/*
* This file provides with() functions which modify the database
* temporarily, then restore it. These functions are mostly internal
* implementation detail of the database.
*
* Essentially, we want to be able to use "finally" to restore the
* database rega... | 38.478632 | 166 | 0.487783 | [
"vector"
] |
10678ed7beae09533580c872c1bba3b2a94530af | 567 | hpp | C++ | include/nell/components/meshlet_triangle_mesh_objects.hpp | nicoell/Culling-with-Mesh-Shaders | 7b5b835b5001f81d4021d24948e6c59a50f7c8a1 | [
"MIT"
] | 7 | 2020-05-17T20:09:18.000Z | 2021-11-21T02:59:19.000Z | include/nell/components/meshlet_triangle_mesh_objects.hpp | nicoell/Culling-with-Mesh-Shaders | 7b5b835b5001f81d4021d24948e6c59a50f7c8a1 | [
"MIT"
] | null | null | null | include/nell/components/meshlet_triangle_mesh_objects.hpp | nicoell/Culling-with-Mesh-Shaders | 7b5b835b5001f81d4021d24948e6c59a50f7c8a1 | [
"MIT"
] | null | null | null | #pragma once
#include <glad/glad.h>
#include <nell/components/buffer_objects.hpp>
#include <nell/components/ui_drawable.hpp>
namespace nell::comp
{
struct MeshletTriangleMeshObjects final : BufferObjects, UiDrawable
{
void drawImGui() override;
GLuint vertex_ssbo;
GLuint normal_ssbo;
GLuint meshlet_descriptor... | 20.25 | 67 | 0.749559 | [
"mesh"
] |
106f5913069def6eb8c22e8fdbc1b3762c1895b1 | 3,383 | cc | C++ | bssopenapi/src/model/QueryPriceListResult.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | 3 | 2020-01-06T08:23:14.000Z | 2022-01-22T04:41:35.000Z | bssopenapi/src/model/QueryPriceListResult.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | bssopenapi/src/model/QueryPriceListResult.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2009-2017 Alibaba Cloud 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... | 30.477477 | 75 | 0.720071 | [
"model"
] |
106fae7ff7273f2aa07c7169da3b22669c09cf1d | 3,328 | hpp | C++ | inc/ojlibs/subset_inversion.hpp | georeth/OJLIBS | de59d4fd21255cc2f0a580db7726b634449e6885 | [
"MIT"
] | 15 | 2017-03-26T03:54:16.000Z | 2021-04-04T13:10:43.000Z | inc/ojlibs/subset_inversion.hpp | georeth/OJLIBS | de59d4fd21255cc2f0a580db7726b634449e6885 | [
"MIT"
] | null | null | null | inc/ojlibs/subset_inversion.hpp | georeth/OJLIBS | de59d4fd21255cc2f0a580db7726b634449e6885 | [
"MIT"
] | 1 | 2018-03-06T09:59:14.000Z | 2018-03-06T09:59:14.000Z | #ifndef OJLIBS_INC_SUBSET_INVERSION_H_
#define OJLIBS_INC_SUBSET_INVERSION_H_
// given f[x], x is a bitmask of a set.
// 0 <= x < 2^K
//
// g[x] = sum{y subset x} f[y]
// h[x] = sum{z superset x} f[z]
// i[x] = sum{z} (-1)^(x intersect z) f[z]
//
// f[*] <-> g[*], h[*], i[*] can be compute in time O(K * 2^K)
//
// giv... | 36.173913 | 85 | 0.521034 | [
"vector"
] |
1071eec7d87e657401e841988f9c5e7e3b3a5c2d | 24,194 | cpp | C++ | drivers/source/usb/USBMSD.cpp | leszekgrzegorek/mbed-os | 31fb3f929b5460a3337b5771414a202e2e8ce38e | [
"Apache-2.0"
] | 2 | 2019-10-22T08:34:09.000Z | 2019-10-22T12:47:35.000Z | drivers/source/usb/USBMSD.cpp | leszekgrzegorek/mbed-os | 31fb3f929b5460a3337b5771414a202e2e8ce38e | [
"Apache-2.0"
] | 8 | 2018-10-10T19:01:30.000Z | 2019-01-17T04:49:51.000Z | drivers/source/usb/USBMSD.cpp | leszekgrzegorek/mbed-os | 31fb3f929b5460a3337b5771414a202e2e8ce38e | [
"Apache-2.0"
] | 1 | 2020-03-07T21:31:35.000Z | 2020-03-07T21:31:35.000Z | /*
* Copyright (c) 2018-2019, Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* 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/... | 25.875936 | 169 | 0.522154 | [
"object"
] |
107ab6afe9bfe1d250a2cfa5d85700f7b4140b1a | 9,725 | cpp | C++ | src/mongo/executor/task_executor_cursor.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/executor/task_executor_cursor.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/executor/task_executor_cursor.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2019-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... | 38.9 | 100 | 0.642776 | [
"object",
"vector"
] |
107b587de422184d34bcc029d1e534d340cd6deb | 89,648 | cpp | C++ | srcpplot/iup_pplot.cpp | phasis68/iup_mac | 014aaf65a4d1833d679547a7d24689a6467f4db0 | [
"MIT"
] | 5 | 2015-07-16T18:23:35.000Z | 2021-11-07T14:40:53.000Z | srcpplot/iup_pplot.cpp | phasis68/iup_mac | 014aaf65a4d1833d679547a7d24689a6467f4db0 | [
"MIT"
] | null | null | null | srcpplot/iup_pplot.cpp | phasis68/iup_mac | 014aaf65a4d1833d679547a7d24689a6467f4db0 | [
"MIT"
] | 3 | 2015-06-20T22:48:03.000Z | 2021-11-07T14:40:57.000Z | /*
* IupPPlot component
*
* Description : A component, derived from PPlot and IUP canvas
* Remark : Depend on libs IUP, CD, IUPCD
*/
#ifdef _MSC_VER
#pragma warning(disable: 4100)
#pragma warning(disable: 4512)
#endif
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string... | 30.154053 | 185 | 0.677952 | [
"object",
"transform"
] |
107e5c43663507c87cfd9fd83234fc14f2a676bb | 27,873 | cpp | C++ | Source/Grammar/grammar.cpp | weenchvd/RegularExpression | 06ce1f8c43f8e1b1588b2551511f609640ecea0a | [
"BSL-1.0"
] | null | null | null | Source/Grammar/grammar.cpp | weenchvd/RegularExpression | 06ce1f8c43f8e1b1588b2551511f609640ecea0a | [
"BSL-1.0"
] | null | null | null | Source/Grammar/grammar.cpp | weenchvd/RegularExpression | 06ce1f8c43f8e1b1588b2551511f609640ecea0a | [
"BSL-1.0"
] | null | null | null |
// Copyright (c) 2021 Vitaly Dikov
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
#include<iostream>
#include<fstream>
#include<sstream>
#include<iomanip>
#include<string>
#include<vector>
#include<map>
#include<que... | 35.734615 | 119 | 0.473971 | [
"vector"
] |
1085cfdff53e82cb940f63739456844cb7c84ceb | 3,071 | hpp | C++ | cxx/graphidx/utils/perm.hpp | EQt/graphidx | 9716488cf29f6235072fc920fa1a473bf88e954f | [
"MIT"
] | 4 | 2020-04-03T15:18:30.000Z | 2022-01-06T15:22:48.000Z | cxx/graphidx/utils/perm.hpp | EQt/graphidx | 9716488cf29f6235072fc920fa1a473bf88e954f | [
"MIT"
] | null | null | null | cxx/graphidx/utils/perm.hpp | EQt/graphidx | 9716488cf29f6235072fc920fa1a473bf88e954f | [
"MIT"
] | null | null | null | /**
* Utility functions concerning permutations
*/
#pragma once
#include <vector>
#include <algorithm> // for std::sort
#include "../std/uvector.hpp"
/** Concatenate two permutations */
template<typename int_ = int>
inline std::vector<int_>
concat(const std::vector<int_> &a, const std::vector<int_> &idx)
{
... | 22.748148 | 70 | 0.590036 | [
"vector"
] |
108684ec2980bd0c1622027c8c92e40addbda47d | 980 | cpp | C++ | Online Judges/CodeForces/976CNestedSegments.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 3 | 2018-12-18T13:39:42.000Z | 2021-06-23T18:05:18.000Z | Online Judges/CodeForces/976CNestedSegments.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 1 | 2018-11-02T21:32:40.000Z | 2018-11-02T22:47:12.000Z | Online Judges/CodeForces/976CNestedSegments.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 6 | 2018-10-27T14:07:52.000Z | 2019-11-14T13:49:29.000Z | #include <bits/stdc++.h>
#define DEBUG if(0)
using namespace std;
int lowerBound(vector<int> a[], int lo, int hi, int target)
{
if (lo >= hi) return(lo);
int mid = (lo + hi) / 2;
if (a[mid][0] >= target) return(lowerBound(a, lo, mid, target));
else return(lowerBound(a, mid + 1, hi, target));
}
int main()
{
... | 22.790698 | 77 | 0.439796 | [
"vector"
] |
1088489e8a84d3eb20f0eaab9a73f2198354ee63 | 3,892 | cpp | C++ | Geometria/Compiler/Compiler.cpp | Geometria-Engine/Geometria | 8d9d4c4fc535de0d1b39626549d577f106a00993 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | Geometria/Compiler/Compiler.cpp | Geometria-Engine/Geometria | 8d9d4c4fc535de0d1b39626549d577f106a00993 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | Geometria/Compiler/Compiler.cpp | Geometria-Engine/Geometria | 8d9d4c4fc535de0d1b39626549d577f106a00993 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | #include "Compiler.h"
/*bool hasEnding(std::string const& fullString, std::string const& ending) {
if (fullString.length() >= ending.length()) {
return (0 == fullString.compare(fullString.length() - ending.length(), ending.length(), ending));
}
else {
return false;
}
}
std::string FillCommandSpaces(std::strin... | 25.109677 | 132 | 0.664183 | [
"vector"
] |
10895632cd83ab9974e55f1c3f81cc836b8e5e24 | 39,226 | cc | C++ | src/ray/pubsub/test/publisher_test.cc | doudoupo/ray | 9aa0b4e89e240efe2d5c7ec17b6f2cd48ea2e021 | [
"Apache-2.0"
] | null | null | null | src/ray/pubsub/test/publisher_test.cc | doudoupo/ray | 9aa0b4e89e240efe2d5c7ec17b6f2cd48ea2e021 | [
"Apache-2.0"
] | 10 | 2022-03-09T22:55:37.000Z | 2022-03-19T07:15:42.000Z | src/ray/pubsub/test/publisher_test.cc | doudoupo/ray | 9aa0b4e89e240efe2d5c7ec17b6f2cd48ea2e021 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 The Ray Authors.
//
// 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 i... | 39.147705 | 90 | 0.695814 | [
"object",
"vector"
] |
108a297ad17d91affe8c1de3213092a8a26cf99d | 1,003 | cpp | C++ | 054-Spiral-Matrix/solution_test.cpp | johnhany/leetcode | 453a86ac16360e44893262e04f77fd350d1e80f2 | [
"Apache-2.0"
] | 3 | 2019-05-27T06:47:32.000Z | 2020-12-22T05:57:10.000Z | 054-Spiral-Matrix/solution_test.cpp | johnhany/leetcode | 453a86ac16360e44893262e04f77fd350d1e80f2 | [
"Apache-2.0"
] | null | null | null | 054-Spiral-Matrix/solution_test.cpp | johnhany/leetcode | 453a86ac16360e44893262e04f77fd350d1e80f2 | [
"Apache-2.0"
] | 5 | 2020-04-01T10:26:04.000Z | 2022-02-05T18:21:01.000Z | #define BOOST_TEST_MODULE SolutionTest
#include "solution.hpp"
//#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_SUITE(SolutionSuite)
BOOST_AUTO_TEST_CASE(PlainTest1)
{
vector<vector<int>> matrix{
{ 1, 2, 3 },
{ 4, 5, 6 },
{ 7, 8, 9 }
};
vector<int... | 25.075 | 98 | 0.651047 | [
"vector"
] |
c805df63fbd21cacc9bfe191a8e9f6f88b080eaa | 44,543 | cpp | C++ | third_party/icu/source/i18n/uregex.cpp | ckelsel/chromium-4.0.210.0_p26329 | 378d30c9259f1a39c3cca4345eb99fd651871970 | [
"Apache-2.0"
] | 1 | 2021-11-15T14:59:57.000Z | 2021-11-15T14:59:57.000Z | third_party/icu/source/i18n/uregex.cpp | ckelsel/chromium-4.0.210.0_p26329 | 378d30c9259f1a39c3cca4345eb99fd651871970 | [
"Apache-2.0"
] | null | null | null | third_party/icu/source/i18n/uregex.cpp | ckelsel/chromium-4.0.210.0_p26329 | 378d30c9259f1a39c3cca4345eb99fd651871970 | [
"Apache-2.0"
] | null | null | null | /*
*******************************************************************************
* Copyright (C) 2004-2009, International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
* file name: regex.cpp
*/
#include "unicod... | 32.489424 | 103 | 0.477786 | [
"object"
] |
c80666b9acd670225ddab438dc01609c5787a7cc | 277 | cc | C++ | decompress-run-length-encoded-list.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | decompress-run-length-encoded-list.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | decompress-run-length-encoded-list.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | #include <vector>
class Solution {
public:
std::vector<int> decompressRLElist(std::vector<int>& nums)
{
std::vector<int> res;
for (int i = 0; i < nums.size(); i+= 2)
res.insert(res.end(), nums[i], nums[i + 1]);
return res;
}
}; | 23.083333 | 63 | 0.527076 | [
"vector"
] |
c80827e9af3d845bf0161818c015cdd6d551ce20 | 5,243 | cpp | C++ | cf/edu102div2/B/dmain.cpp | nvxden/olp | 780e125ffcf430fdc79bb6c07ddddca28f4f042e | [
"MIT"
] | null | null | null | cf/edu102div2/B/dmain.cpp | nvxden/olp | 780e125ffcf430fdc79bb6c07ddddca28f4f042e | [
"MIT"
] | null | null | null | cf/edu102div2/B/dmain.cpp | nvxden/olp | 780e125ffcf430fdc79bb6c07ddddca28f4f042e | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <vector>
using namespace std;
// types
typedef long long llong;
// functions
/*
* Алгоритм Евклида по нахождению НОД;
* расширенный алгоритм Евклида, который находит
* также корни диофантова уравнения
* a*x + b*y = gcd(a, b);
* с помощью расширенного алгори... | 14.403846 | 68 | 0.604043 | [
"vector"
] |
c80c7cdd56344881aaf4538df5688dbb1ab6c08f | 2,715 | hpp | C++ | include/document.hpp | magicmoremagic/bengine-bstyle | 6166fbf8ebffdab57a0593f5c3c1bab8a2aa6ed4 | [
"MIT"
] | null | null | null | include/document.hpp | magicmoremagic/bengine-bstyle | 6166fbf8ebffdab57a0593f5c3c1bab8a2aa6ed4 | [
"MIT"
] | null | null | null | include/document.hpp | magicmoremagic/bengine-bstyle | 6166fbf8ebffdab57a0593f5c3c1bab8a2aa6ed4 | [
"MIT"
] | null | null | null | #pragma once
#ifndef BE_BSTYLE_DOCUMENT_HPP_
#define BE_BSTYLE_DOCUMENT_HPP_
#include "token.hpp"
#include <be/core/filesystem.hpp>
#include <vector>
namespace be {
namespace bstyle {
///////////////////////////////////////////////////////////////////////////////
class Document final : Immovable {
using TokenId =... | 35.25974 | 204 | 0.727808 | [
"vector"
] |
c80f196d18168dea7455ea09bc96c0d3d4e71bff | 12,609 | cpp | C++ | windows/src/CLI/MapImage.cpp | usamakhan049/assignment | 40eb153e8fd74f73ba52ce29417d8220ab744b5d | [
"BSD-2-Clause"
] | 69 | 2017-06-07T10:47:03.000Z | 2022-03-24T08:33:33.000Z | windows/src/CLI/MapImage.cpp | usamakhan049/assignment | 40eb153e8fd74f73ba52ce29417d8220ab744b5d | [
"BSD-2-Clause"
] | 23 | 2017-06-07T10:47:00.000Z | 2020-07-09T10:31:17.000Z | windows/src/CLI/MapImage.cpp | usamakhan049/assignment | 40eb153e8fd74f73ba52ce29417d8220ab744b5d | [
"BSD-2-Clause"
] | 31 | 2017-08-12T13:19:32.000Z | 2022-01-04T20:33:40.000Z | #include "MapImage.h"
#include "MouseInputEvent.h"
#include "TouchScreenInputEvent.h"
#include "AppRunner.h"
#pragma comment(lib, "d3d9.lib")
namespace ExampleApp
{
namespace CLI
{
MapImage::MapImage()
: m_pState(NULL)
{
}
MapImage::... | 38.559633 | 210 | 0.599651 | [
"render"
] |
c80fb9406682f414d3bb58e9752f059e12380fba | 877 | cxx | C++ | hackathon/PengXie/NeuronStructNavigator/cmake-3.6.2/Source/cmSubdirDependsCommand.cxx | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2021-12-27T19:14:03.000Z | 2021-12-27T19:14:03.000Z | hackathon/PengXie/NeuronStructNavigator/cmake-3.6.2/Source/cmSubdirDependsCommand.cxx | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | hackathon/PengXie/NeuronStructNavigator/cmake-3.6.2/Source/cmSubdirDependsCommand.cxx | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | /*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This softwa... | 39.863636 | 78 | 0.600912 | [
"vector"
] |
c810abfb67d92a497bd24eebab0789e409c5b12f | 3,389 | cpp | C++ | test/values_gen_tests.cpp | dsyoi/iutest | b7b08c6ac4c75f98f87aa5756244afc93e4b624f | [
"BSD-3-Clause"
] | 58 | 2015-07-20T04:30:18.000Z | 2021-12-28T17:18:00.000Z | test/values_gen_tests.cpp | dsyoi/iutest | b7b08c6ac4c75f98f87aa5756244afc93e4b624f | [
"BSD-3-Clause"
] | 467 | 2015-05-07T10:42:47.000Z | 2022-03-26T04:01:00.000Z | test/values_gen_tests.cpp | dsyoi/iutest | b7b08c6ac4c75f98f87aa5756244afc93e4b624f | [
"BSD-3-Clause"
] | 13 | 2015-10-05T08:30:27.000Z | 2021-04-30T18:56:03.000Z | //======================================================================
//-----------------------------------------------------------------------
/**
* @file values_gen_tests.cpp
* @brief iutest ValuesGen test
*
* @author t.shirayanagi
* @par copyright
* Copyright (C) 2013-2016, Takazu... | 27.778689 | 132 | 0.502803 | [
"vector"
] |
c8116367d7cb398dafe16eab0a4a0307004060b2 | 46,795 | cpp | C++ | dev/Code/Sandbox/Plugins/CryDesigner/Core/PolygonDecomposer.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Code/Sandbox/Plugins/CryDesigner/Core/PolygonDecomposer.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Code/Sandbox/Plugins/CryDesigner/Core/PolygonDecomposer.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 31.134398 | 230 | 0.568992 | [
"mesh",
"vector"
] |
c81284e686d6d6f0dac2689a7e18725c38d136dc | 32,399 | hpp | C++ | sol/stack_push.hpp | solosure/sol2206 | 109e45bc484c6efbf7cccaaf72d3d706094028a0 | [
"MIT"
] | null | null | null | sol/stack_push.hpp | solosure/sol2206 | 109e45bc484c6efbf7cccaaf72d3d706094028a0 | [
"MIT"
] | null | null | null | sol/stack_push.hpp | solosure/sol2206 | 109e45bc484c6efbf7cccaaf72d3d706094028a0 | [
"MIT"
] | null | null | null | // sol2
// The MIT License (MIT)
// Copyright (c) 2013-2018 Rapptz, ThePhD and contributors
// 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 limita... | 30.026877 | 180 | 0.664681 | [
"object"
] |
c8137549398162d6987d3245f75ea0926ea31cc2 | 10,515 | cpp | C++ | src/model/AirflowNetworkDistributionLinkage.cpp | muehleisen/OpenStudio | 3bfe89f6c441d1e61e50b8e94e92e7218b4555a0 | [
"blessing"
] | 354 | 2015-01-10T17:46:11.000Z | 2022-03-29T10:00:00.000Z | src/model/AirflowNetworkDistributionLinkage.cpp | muehleisen/OpenStudio | 3bfe89f6c441d1e61e50b8e94e92e7218b4555a0 | [
"blessing"
] | 3,243 | 2015-01-02T04:54:45.000Z | 2022-03-31T17:22:22.000Z | src/model/AirflowNetworkDistributionLinkage.cpp | jmarrec/OpenStudio | 5276feff0d8dbd6c8ef4e87eed626bc270a19b14 | [
"blessing"
] | 157 | 2015-01-07T15:59:55.000Z | 2022-03-30T07:46:09.000Z | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... | 49.834123 | 146 | 0.748455 | [
"object",
"vector",
"model"
] |
c813c27da095c42c4362a7abb3a827005c628a6d | 3,382 | cc | C++ | src_tools/fonttool.cc | JaviCervera/vortex | 2ab813d97db171996284f238cf075802913a5f35 | [
"MIT"
] | 28 | 2015-07-30T15:13:51.000Z | 2021-04-04T17:57:27.000Z | src_tools/fonttool.cc | MikeHart66/vortex | 2ab813d97db171996284f238cf075802913a5f35 | [
"MIT"
] | 8 | 2015-12-30T05:47:27.000Z | 2021-05-22T13:34:04.000Z | src_tools/fonttool.cc | MikeHart66/vortex | 2ab813d97db171996284f238cf075802913a5f35 | [
"MIT"
] | 6 | 2017-08-31T17:17:56.000Z | 2021-06-04T16:02:45.000Z | #define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
#define STB_TRUETYPE_IMPLEMENTATION
#include "stb_truetype.h"
#include "stringutils.h"
#include <fstream>
#include <iostream>
#include <vector>
#define FIRST_CHAR 32
#define NUM_CHARS 224
using namespace std;
int main(int argc, char* argv[]) {
// ... | 33.156863 | 130 | 0.673566 | [
"vector"
] |
c81de18607bdc11ee8c91cfdcecb0b6020a0bf81 | 1,283 | hpp | C++ | original_metis/mt-metis-0.6.0/wildriver/src/VectorOutHandle.hpp | GraphProcessor/LouvainOptimization | 022a1804807e9fd5b1ab7d3e7ceaaccd76847aa5 | [
"MIT"
] | null | null | null | original_metis/mt-metis-0.6.0/wildriver/src/VectorOutHandle.hpp | GraphProcessor/LouvainOptimization | 022a1804807e9fd5b1ab7d3e7ceaaccd76847aa5 | [
"MIT"
] | null | null | null | original_metis/mt-metis-0.6.0/wildriver/src/VectorOutHandle.hpp | GraphProcessor/LouvainOptimization | 022a1804807e9fd5b1ab7d3e7ceaaccd76847aa5 | [
"MIT"
] | null | null | null | /**
* @file VectorOutHandle.hpp
* @brief The VectorOutHandle class.
* @author Dominique LaSalle <dominique@domnet.org>
* Copyright 2016
* @version 1
* @date 2016-10-25
*/
#ifndef WILDRIVER_VECTOROUTHANDLE_HPP
#define WILDRIVER_VECTOROUTHANDLE_HPP
#include <string>
#include <memory>
#include "IVectorWrite... | 14.918605 | 77 | 0.625877 | [
"vector"
] |
c82107f99846c717003766ed4e020593863e41fe | 29,718 | cpp | C++ | gmodel.cpp | cwsmith/gmodel | ca6af6876265a02ecf0bc97aad8d3c5a6c19a638 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | gmodel.cpp | cwsmith/gmodel | ca6af6876265a02ecf0bc97aad8d3c5a6c19a638 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | gmodel.cpp | cwsmith/gmodel | ca6af6876265a02ecf0bc97aad8d3c5a6c19a638 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #include "gmodel.hpp"
#include <map>
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstdlib>
namespace gmod {
char const* const type_names[NTYPES] = {
/* POINT = */ "Point",
/* LINE = */ "Line",
/* ARC = */ "Circle",
/* ELLIPSE = */ "Ellipse",
/* SPLINE = */ "Spline... | 29.365613 | 86 | 0.633185 | [
"object",
"vector",
"transform"
] |
c8235fbf732da8edb45ed1140ac8558bdb158472 | 15,830 | cpp | C++ | be/src/exprs/expr_context.cpp | txqyou/incubator-doris | 548da0546ac719834c48cdfb92d1b9966cde2421 | [
"Apache-2.0"
] | 1 | 2019-05-01T11:06:07.000Z | 2019-05-01T11:06:07.000Z | be/src/exprs/expr_context.cpp | batermj/incubator-doris | 4907577e994f5773984443c84362e8a107164e2a | [
"Apache-2.0"
] | 2 | 2018-11-02T09:04:26.000Z | 2018-11-05T09:04:40.000Z | be/src/exprs/expr_context.cpp | batermj/incubator-doris | 4907577e994f5773984443c84362e8a107164e2a | [
"Apache-2.0"
] | null | null | null | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 31.40873 | 95 | 0.640051 | [
"vector"
] |
c82625487cfe85359f88ab76c4ef894cb2177c13 | 63,200 | cpp | C++ | src/coreclr/dlls/dbgshim/dbgshim.cpp | WeihanLi/runtime | 79d478ae01d9a3e7548bf41a76d047158ed8a62b | [
"MIT"
] | 12 | 2021-11-08T21:12:31.000Z | 2022-01-11T03:43:34.000Z | src/coreclr/dlls/dbgshim/dbgshim.cpp | WeihanLi/runtime | 79d478ae01d9a3e7548bf41a76d047158ed8a62b | [
"MIT"
] | 27 | 2021-11-29T21:02:00.000Z | 2022-03-29T11:05:52.000Z | src/coreclr/dlls/dbgshim/dbgshim.cpp | WeihanLi/runtime | 79d478ae01d9a3e7548bf41a76d047158ed8a62b | [
"MIT"
] | 3 | 2021-11-17T05:46:01.000Z | 2022-02-19T06:17:34.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//*****************************************************************************
// DbgShim.cpp
//
// This contains the APIs for creating a telesto managed-debugging session. These API... | 31.679198 | 154 | 0.612674 | [
"object"
] |
c828bbedfeabe17b4cb0988acdd15c1e175c670b | 23,905 | hpp | C++ | src/PuLSE-RunData.hpp | stevenshave/PuLSE | d008257193f765da31d91984bd4d9dc795ec9ff0 | [
"MIT"
] | 1 | 2019-06-04T14:29:27.000Z | 2019-06-04T14:29:27.000Z | src/PuLSE-RunData.hpp | stevenshave/PuLSE | d008257193f765da31d91984bd4d9dc795ec9ff0 | [
"MIT"
] | 1 | 2018-03-07T15:57:25.000Z | 2018-04-02T10:16:09.000Z | src/PuLSE-RunData.hpp | stevenshave/PuLSE | d008257193f765da31d91984bd4d9dc795ec9ff0 | [
"MIT"
] | null | null | null | /*
PuLSE version 1.4
Copyright(c) 2017 Steven Shave
Distributed under the MIT license
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 ... | 37.645669 | 80 | 0.559465 | [
"vector",
"transform"
] |
c828c31cdc8b3daeb965c948292f9fecfff20025 | 61,026 | cpp | C++ | src/shader_dxbc.cpp | ctubio/bgfx | fb464ba4e23f9f3eda24e29a52a9d4ec2240684b | [
"BSD-2-Clause"
] | 5 | 2018-03-07T08:04:37.000Z | 2021-01-16T19:32:27.000Z | Dependencies/bgfx/src/shader_dxbc.cpp | riverreal/ShaftEngine | 3ff3bb7395eece75f645521c97b309391284fb94 | [
"MIT"
] | null | null | null | Dependencies/bgfx/src/shader_dxbc.cpp | riverreal/ShaftEngine | 3ff3bb7395eece75f645521c97b309391284fb94 | [
"MIT"
] | 1 | 2021-07-28T14:41:20.000Z | 2021-07-28T14:41:20.000Z | /*
* Copyright 2011-2018 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#include "bgfx_p.h"
#include "shader_dxbc.h"
namespace bgfx
{
struct DxbcOpcodeInfo
{
uint8_t numOperands;
uint8_t numValues;
};
static const DxbcOpcodeInfo s_dxbcOpcodeInf... | 29.856164 | 130 | 0.577672 | [
"object"
] |
c82d10b022fd8624fab181311d305998e5a4ac09 | 3,855 | cc | C++ | code/render/instancing/d3d11/d3d11instanceserver.cc | Nechrito/nebula | 6c7ef27ab1374d3f751d866500729524f72a0c87 | [
"BSD-2-Clause"
] | null | null | null | code/render/instancing/d3d11/d3d11instanceserver.cc | Nechrito/nebula | 6c7ef27ab1374d3f751d866500729524f72a0c87 | [
"BSD-2-Clause"
] | null | null | null | code/render/instancing/d3d11/d3d11instanceserver.cc | Nechrito/nebula | 6c7ef27ab1374d3f751d866500729524f72a0c87 | [
"BSD-2-Clause"
] | null | null | null | //------------------------------------------------------------------------------
// d3d11instanceserver.cc
// (C) 2012 Gustav Sterbrant
// (C) 2013-2018 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "d3d11instan... | 26.770833 | 102 | 0.627497 | [
"render",
"model",
"transform"
] |
c830f10e8a8b79dc2a69054d87168cfa088f7e68 | 5,840 | cpp | C++ | mp/src/game/server/hl2mp/hl2mp_client.cpp | borzh/source_2013 | b16fe90b99528923e5bdff03b834eaea4951dde0 | [
"Unlicense"
] | 1 | 2018-01-26T15:41:11.000Z | 2018-01-26T15:41:11.000Z | mp/src/game/server/hl2mp/hl2mp_client.cpp | borzh/source_2013 | b16fe90b99528923e5bdff03b834eaea4951dde0 | [
"Unlicense"
] | null | null | null | mp/src/game/server/hl2mp/hl2mp_client.cpp | borzh/source_2013 | b16fe90b99528923e5bdff03b834eaea4951dde0 | [
"Unlicense"
] | null | null | null | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
/*
===== tf_client.cpp ========================================================
HL2 client/server game spe... | 28.910891 | 160 | 0.612671 | [
"object"
] |
c83131ac59192979af878f097ad8487e188f10da | 1,463 | hpp | C++ | libraries/protocol/include/steem/protocol/base.hpp | ZhengGuoDeveloper/steem | c6d6f0687879b47f97ce786b049d3d8bfc6d1c35 | [
"MIT"
] | 3 | 2018-03-07T05:10:34.000Z | 2018-07-06T01:05:15.000Z | libraries/protocol/include/steem/protocol/base.hpp | ZhengGuoDeveloper/steem | c6d6f0687879b47f97ce786b049d3d8bfc6d1c35 | [
"MIT"
] | null | null | null | libraries/protocol/include/steem/protocol/base.hpp | ZhengGuoDeveloper/steem | c6d6f0687879b47f97ce786b049d3d8bfc6d1c35 | [
"MIT"
] | 2 | 2018-04-10T05:40:18.000Z | 2019-03-26T03:49:30.000Z | #pragma once
#include <steem/protocol/types.hpp>
#include <steem/protocol/authority.hpp>
#include <steem/protocol/version.hpp>
#include <fc/time.hpp>
namespace steem { namespace protocol {
struct base_operation
{
void get_required_authorities( vector<authority>& )const {}
void get_required_active_... | 31.804348 | 91 | 0.697198 | [
"vector"
] |
c837f72e8f8865960ece08512731122a780e1045 | 1,428 | cpp | C++ | tests/juliet/testcases/CWE665_Improper_Initialization/CWE665_Improper_Initialization__char_cat_84_bad.cpp | RanerL/analyzer | a401da4680f163201326881802ee535d6cf97f5a | [
"MIT"
] | 28 | 2017-01-20T15:25:54.000Z | 2020-03-17T00:28:31.000Z | testcases/CWE665_Improper_Initialization/CWE665_Improper_Initialization__char_cat_84_bad.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 1 | 2021-07-12T02:57:17.000Z | 2021-07-16T02:07:29.000Z | testcases/CWE665_Improper_Initialization/CWE665_Improper_Initialization__char_cat_84_bad.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 2 | 2019-07-15T19:07:04.000Z | 2019-09-07T14:21:04.000Z | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE665_Improper_Initialization__char_cat_84_bad.cpp
Label Definition File: CWE665_Improper_Initialization.label.xml
Template File: sources-sink-84_bad.tmpl.cpp
*/
/*
* @description
* CWE: 665 Improper Initialization
* BadSource: Do not initialize data properly
... | 33.209302 | 147 | 0.717787 | [
"object"
] |
c83bc5cf727a7e36f05cf2e5c837b5cb1335e7e7 | 8,359 | cpp | C++ | r/tr.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | r/tr.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | r/tr.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | /*
g++ -std=c++20 -fcoroutines -pthread -o ../_build/r/tr.exe r/tr.cpp && (cd ../_build/r;./tr.exe)
*/
#include <coroutine>
#include <iostream>
#include <stdexcept>
#include <thread>
#include <vector>
auto switch_to_new_thread(std::jthread& out) {
struct awaitable {
std::jthread* p_out;
bool await_ready() { ... | 23.027548 | 96 | 0.617538 | [
"vector"
] |
c84c41864cdd694ea9f58c8ae7a7b9dfc4519fe7 | 834 | cpp | C++ | Leetcode/1000-2000/1964. Find the Longest Valid Obstacle Course at Each Position/1964.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/1000-2000/1964. Find the Longest Valid Obstacle Course at Each Position/1964.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/1000-2000/1964. Find the Longest Valid Obstacle Course at Each Position/1964.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> longestObstacleCourseAtEachPosition(vector<int>& obstacles) {
vector<int> ans;
// tail[i] := the minimum tail of all increasing subseqs having length i + 1
// it's easy to see that tail must be an increasing array
vector<int> tail;
for (const int obstacle : o... | 28.758621 | 80 | 0.622302 | [
"vector"
] |
c84cb0bd2ea02ff2d9f83a02ac23d803621b0b44 | 4,034 | cc | C++ | src/communication/headers/SimpleSendDataRequest.cc | venkate5hgunda/CSE598-Spring22-Group22-NetsDB | 6c2dabd1a3b3f5901a97c788423fdd93cc0015d4 | [
"Apache-2.0"
] | 13 | 2022-01-17T16:14:26.000Z | 2022-03-30T02:06:04.000Z | src/communication/headers/SimpleSendDataRequest.cc | venkate5hgunda/CSE598-Spring22-Group22-NetsDB | 6c2dabd1a3b3f5901a97c788423fdd93cc0015d4 | [
"Apache-2.0"
] | 1 | 2022-01-28T23:17:14.000Z | 2022-01-28T23:17:14.000Z | src/communication/headers/SimpleSendDataRequest.cc | venkate5hgunda/CSE598-Spring22-Group22-NetsDB | 6c2dabd1a3b3f5901a97c788423fdd93cc0015d4 | [
"Apache-2.0"
] | 3 | 2022-01-18T02:13:53.000Z | 2022-03-06T19:28:19.000Z |
#ifndef SIMPLE_SEND_DATA_REQUEST_CC
#define SIMPLE_SEND_DATA_REQUEST_CC
#include "InterfaceFunctions.h"
#include "UseTemporaryAllocationBlock.h"
#ifndef MAX_RETRIES
#define MAX_RETRIES 5
#endif
#ifndef HEADER_SIZE
#define HEADER_SIZE 20
#endif
namespace pdb {
template <class RequestType,
class DataType,
... | 33.338843 | 100 | 0.521071 | [
"object",
"vector"
] |
c84db01ec4fa003234964bc769ed925b0ca26cc2 | 8,159 | cpp | C++ | third_party/libSBML-5.10.2-experimental-Source/src/sbml/packages/qual/sbml/test/TestTransition.cpp | gitter-badger/sbmlsolver | c92936832297ea1d2ad7f17223b68ada43c8f0b2 | [
"Apache-2.0"
] | null | null | null | third_party/libSBML-5.10.2-experimental-Source/src/sbml/packages/qual/sbml/test/TestTransition.cpp | gitter-badger/sbmlsolver | c92936832297ea1d2ad7f17223b68ada43c8f0b2 | [
"Apache-2.0"
] | null | null | null | third_party/libSBML-5.10.2-experimental-Source/src/sbml/packages/qual/sbml/test/TestTransition.cpp | gitter-badger/sbmlsolver | c92936832297ea1d2ad7f17223b68ada43c8f0b2 | [
"Apache-2.0"
] | null | null | null | /**
* @file TestTransition.cpp
* @brief TestTransition unit tests
* @author Sarah Keating
*
* $Id: $
* $HeadURL: $
*
* <!--------------------------------------------------------------------------
* This file is part of libSBML. Please visit http://sbml.org for more
* information about SBML, a... | 26.576547 | 99 | 0.636598 | [
"object"
] |
c84ef0bf7222dda256b77431f699e2f599d595ae | 16,508 | cc | C++ | be/src/util/thread.cc | anujjamwal/Impala | aee2f480aaafce5760e5827e339290dbd5b45cc8 | [
"Apache-2.0"
] | 1 | 2020-04-02T18:25:34.000Z | 2020-04-02T18:25:34.000Z | be/src/util/thread.cc | anujjamwal/Impala | aee2f480aaafce5760e5827e339290dbd5b45cc8 | [
"Apache-2.0"
] | null | null | null | be/src/util/thread.cc | anujjamwal/Impala | aee2f480aaafce5760e5827e339290dbd5b45cc8 | [
"Apache-2.0"
] | 1 | 2020-04-02T18:25:34.000Z | 2020-04-02T18:25:34.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 36.766147 | 90 | 0.699661 | [
"object",
"vector"
] |
c84fe0a1da2ef20cc3626f4aa888cf61917de581 | 187 | cpp | C++ | docs/mfc/reference/codesnippet/CPP/cmenu-class_1.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 14 | 2018-01-28T18:10:55.000Z | 2021-11-16T13:21:18.000Z | docs/mfc/reference/codesnippet/CPP/cmenu-class_1.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/mfc/reference/codesnippet/CPP/cmenu-class_1.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 2 | 2018-11-01T12:33:08.000Z | 2021-11-16T13:21:19.000Z | CMenu mnu;
HMENU hmnu = AfxGetMainWnd()->GetMenu()->GetSafeHmenu();
mnu.Attach(hmnu);
// Now you can manipulate the window's menu as a CMenu
// object...
mnu.Detach(); | 23.375 | 59 | 0.631016 | [
"object"
] |
c8534fc9057578656842d189e0376732420f7aba | 941 | cpp | C++ | src/leetcode/542/63113958_accepted_456ms_25132000.cpp | lnkkerst/oj-codes | d778489182d644370b2a690aa92c3df6542cc306 | [
"MIT"
] | null | null | null | src/leetcode/542/63113958_accepted_456ms_25132000.cpp | lnkkerst/oj-codes | d778489182d644370b2a690aa92c3df6542cc306 | [
"MIT"
] | null | null | null | src/leetcode/542/63113958_accepted_456ms_25132000.cpp | lnkkerst/oj-codes | d778489182d644370b2a690aa92c3df6542cc306 | [
"MIT"
] | null | null | null | class Solution {
public:
const int dx[4], dy[4];
Solution() : dx{0, 1, 0, -1}, dy{-1, 0, 1, 0}{}
void dfs(vector<vector<int> > &a, vector<vector<int> > &b, int x, int y, int &ans, int dep) {
if(dep >= 100) return ;
if(x < 0 || y < 0 || x >= (int)a.size() || y >= (int)a[0].size()) return ;
if(b[x][y] || d... | 29.40625 | 94 | 0.477152 | [
"vector"
] |
c854ca21e2b74a249e83d6bd93f8c395fd7ecdb3 | 903 | hpp | C++ | include/cache.hpp | LemuriiL/RoboLab02 | b56291254926ebb71291d78475adfe65e3dfbcaa | [
"MIT"
] | null | null | null | include/cache.hpp | LemuriiL/RoboLab02 | b56291254926ebb71291d78475adfe65e3dfbcaa | [
"MIT"
] | null | null | null | include/cache.hpp | LemuriiL/RoboLab02 | b56291254926ebb71291d78475adfe65e3dfbcaa | [
"MIT"
] | null | null | null | // Copyright 2021 LemuriiL <LemuriiL@yandex.ru>
#ifndef INCLUDE_HEADER_HPP_
#define INCLUDE_HEADER_HPP_
#include <chrono>
#include <functional>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using std::cin;
using std::cout;
using std::ostream;
using std::string;
using std::stringstream;
c... | 20.066667 | 53 | 0.714286 | [
"vector"
] |
c859b3226057cb0c3c61d75e906d74ddac789f7f | 2,582 | hpp | C++ | include/collision.hpp | cpusam/chora_engine | ec14a33222c0408b17cb1df7efbbdb35dcf33314 | [
"Zlib"
] | 1 | 2021-01-19T03:51:35.000Z | 2021-01-19T03:51:35.000Z | include/collision.hpp | cpusam/chora_engine | ec14a33222c0408b17cb1df7efbbdb35dcf33314 | [
"Zlib"
] | null | null | null | include/collision.hpp | cpusam/chora_engine | ec14a33222c0408b17cb1df7efbbdb35dcf33314 | [
"Zlib"
] | null | null | null | /*
Copyright (C) 2014 Samuel Leonardo
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applicat... | 27.763441 | 188 | 0.708366 | [
"vector"
] |
c85baa3a11e3f0d1bf4ce1a79bcbf2ad1ea33686 | 3,565 | cc | C++ | cpp/src/arrow/stl-test.cc | danielcompton/arrow | bce0ca40922278644ce9c610fc87c0761a95f2c4 | [
"Apache-2.0"
] | 32 | 2016-05-13T07:11:26.000Z | 2022-02-25T07:31:16.000Z | cpp/src/arrow/stl-test.cc | danielcompton/arrow | bce0ca40922278644ce9c610fc87c0761a95f2c4 | [
"Apache-2.0"
] | 8 | 2017-07-18T16:43:43.000Z | 2020-10-27T13:45:12.000Z | cpp/src/arrow/stl-test.cc | danielcompton/arrow | bce0ca40922278644ce9c610fc87c0761a95f2c4 | [
"Apache-2.0"
] | 20 | 2017-07-17T18:55:59.000Z | 2021-07-21T14:56:25.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 45.126582 | 90 | 0.613184 | [
"vector"
] |
c85eeef89d0fa78afc0f19e4106d8913e082f60c | 971 | cpp | C++ | src/sebphil/source/light/ShadowLightBundle.cpp | Sebphil18/OpenGLPractice | 3535add8754dbb8fab98bb7fddcf06846001b9ee | [
"MIT"
] | 1 | 2021-03-13T18:34:05.000Z | 2021-03-13T18:34:05.000Z | src/sebphil/source/light/ShadowLightBundle.cpp | Sebphil18/TerrainDemo | 3535add8754dbb8fab98bb7fddcf06846001b9ee | [
"MIT"
] | null | null | null | src/sebphil/source/light/ShadowLightBundle.cpp | Sebphil18/TerrainDemo | 3535add8754dbb8fab98bb7fddcf06846001b9ee | [
"MIT"
] | null | null | null | #include <memory>
#include "light/ShadowLightBundle.h"
void ShadowLightBundle::enableDirLight(ShaderProgram& program) {
program.setUniform1i("shadowDirLightsCount", 1);
program.setUniform1i("shadowMap", 20);
glActiveTexture(GL_TEXTURE20);
glBindTexture(GL_TEXTURE_2D, dirLight.getShadowMapID());
}
voi... | 35.962963 | 166 | 0.784758 | [
"vector",
"model"
] |
c86241fb1febd5dd8f9a10e996459a3faa488f8d | 1,571 | hpp | C++ | Source/Utility/Misc.hpp | storm20200/UniversityBadgerBanging | d243765449183a9d5437164789a03bcf3056abe0 | [
"MIT"
] | 1 | 2016-06-05T04:52:55.000Z | 2016-06-05T04:52:55.000Z | Source/Utility/Misc.hpp | storm20200/UniversityBadgerBanging | d243765449183a9d5437164789a03bcf3056abe0 | [
"MIT"
] | null | null | null | Source/Utility/Misc.hpp | storm20200/UniversityBadgerBanging | d243765449183a9d5437164789a03bcf3056abe0 | [
"MIT"
] | null | null | null | #ifndef UTILITY_MISC_ASP_HPP
#define UTILITY_MISC_ASP_HPP
// STL headers.
#include <cassert>
#include <functional>
#include <vector>
namespace util
{
/// <summary> Squares a value. </summary>
/// <param name="value"> A value to square. </param>
/// <returns> The squared value. </returns>
template <t... | 27.561404 | 118 | 0.62508 | [
"object",
"vector"
] |
c863908aa30d480d5434ae9c7b916bee5416f956 | 25,711 | cpp | C++ | src/core/SkGpuBlurUtils.cpp | umberto-sonnino/skia | 7ecc54217889025b3e0c512f92fb84d20a26b9f7 | [
"BSD-3-Clause"
] | null | null | null | src/core/SkGpuBlurUtils.cpp | umberto-sonnino/skia | 7ecc54217889025b3e0c512f92fb84d20a26b9f7 | [
"BSD-3-Clause"
] | 1 | 2019-11-22T15:25:32.000Z | 2019-11-22T15:25:32.000Z | src/core/SkGpuBlurUtils.cpp | promoter/skia | bc5ed776134c60ae13d22cabc8e0f6aca0fdd422 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/core/SkGpuBlurUtils.h"
#include "include/core/SkRect.h"
#if SK_SUPPORT_GPU
#include "include/private/GrRecordingContext.h"
#include "src/gpu/GrCaps.h"
#include... | 46.159785 | 100 | 0.555988 | [
"geometry"
] |
c865a224f4dd03085d5b115ba9a9c4d0d5cf33c7 | 2,173 | cpp | C++ | parser/csv.cpp | kallewoof/csvman | 4f3954a6fd63af5cff9385770a6460cfd88a0406 | [
"MIT"
] | null | null | null | parser/csv.cpp | kallewoof/csvman | 4f3954a6fd63af5cff9385770a6460cfd88a0406 | [
"MIT"
] | null | null | null | parser/csv.cpp | kallewoof/csvman | 4f3954a6fd63af5cff9385770a6460cfd88a0406 | [
"MIT"
] | null | null | null | #include "csv.h"
std::string csv::stringify(const std::vector<std::string>& vec) {
std::string s = "";
for (const auto& t : vec) {
s += (s == "" ? "" : ",") + t;
}
return s;
}
// void csv::parse(const char* buf, std::vector<std::string>& vec) {
// bool quoted = false;
// vec.resize(0);... | 26.5 | 68 | 0.401289 | [
"vector"
] |
c8660a9d60b2298e4669066a32c207d5bae9369f | 19,895 | cpp | C++ | Foundation/testsuite/src/DateTimeParserTest.cpp | toyoshim/poco_nacl | 5a1d396dad4a20e897023ff8a3ea53439f89d6ba | [
"BSL-1.0"
] | 1 | 2015-01-02T06:38:20.000Z | 2015-01-02T06:38:20.000Z | Foundation/testsuite/src/DateTimeParserTest.cpp | toyoshim/poco_nacl | 5a1d396dad4a20e897023ff8a3ea53439f89d6ba | [
"BSL-1.0"
] | null | null | null | Foundation/testsuite/src/DateTimeParserTest.cpp | toyoshim/poco_nacl | 5a1d396dad4a20e897023ff8a3ea53439f89d6ba | [
"BSL-1.0"
] | null | null | null | //
// DateTimeParserTest.cpp
//
// $Id: //poco/1.4/Foundation/testsuite/src/DateTimeParserTest.cpp#2 $
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software ... | 28.917151 | 109 | 0.63041 | [
"object"
] |
c868c83f790c21caf86f7ab395f792abcb7fd177 | 10,197 | cpp | C++ | core-windows/src/router.cpp | DevDHera/neutralinojs | 08755204be7607fe07874247476721dba8adce91 | [
"MIT"
] | null | null | null | core-windows/src/router.cpp | DevDHera/neutralinojs | 08755204be7607fe07874247476721dba8adce91 | [
"MIT"
] | null | null | null | core-windows/src/router.cpp | DevDHera/neutralinojs | 08755204be7607fe07874247476721dba8adce91 | [
"MIT"
] | null | null | null | // MIT License
// Copyright (c) 2018 Neutralinojs
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, me... | 58.603448 | 2,916 | 0.651074 | [
"vector"
] |
c869f5f0cc6fb1cecfed27bcfb561571e519b786 | 14,716 | cpp | C++ | tests/std/tests/P0896R4_views_transform_death/test.cpp | JMazurkiewicz/STL | 1a20fe1133d711a647bbb135d98743f91b7be323 | [
"Apache-2.0"
] | 8,232 | 2019-09-16T22:51:24.000Z | 2022-03-31T03:55:39.000Z | tests/std/tests/P0896R4_views_transform_death/test.cpp | JMazurkiewicz/STL | 1a20fe1133d711a647bbb135d98743f91b7be323 | [
"Apache-2.0"
] | 2,263 | 2019-09-17T05:19:55.000Z | 2022-03-31T21:05:47.000Z | tests/std/tests/P0896R4_views_transform_death/test.cpp | JMazurkiewicz/STL | 1a20fe1133d711a647bbb135d98743f91b7be323 | [
"Apache-2.0"
] | 1,276 | 2019-09-16T22:51:40.000Z | 2022-03-31T03:30:05.000Z | // Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#define _CONTAINER_DEBUG_LEVEL 1
#include <cassert>
#include <cstddef>
#include <ranges>
#include <vector>
#include <test_death.hpp>
using namespace std;
static int some_ints[] = {0, 1, 2, 3};
[[maybe_... | 39.453083 | 111 | 0.707189 | [
"vector",
"transform"
] |
c86a9f5b5f801bb632800aef02068b9e650fbd80 | 5,454 | cpp | C++ | tau/TauEngine/src/model/OBJLoader.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | 1 | 2020-04-22T04:07:01.000Z | 2020-04-22T04:07:01.000Z | tau/TauEngine/src/model/OBJLoader.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | tau/TauEngine/src/model/OBJLoader.cpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | // #include <vector>
// #include <NumTypes.hpp>
// #include <Utils.hpp>
//
// struct Vertex
// {
// float x, y, z;
// };
//
// struct TextureCoord
// {
// float u, v;
// };
//
// typedef Vertex Normal;
//
// struct Indice
// {
// u32 i, j, k;
// };
//
// struct Face
// {
// Indice vertex, texture, norma... | 28.259067 | 96 | 0.364686 | [
"vector"
] |
c86d538772888baea58bb45aeeaa69f04d71acca | 4,067 | cpp | C++ | src/main.cpp | krogenth/G2DataGUI | 6bf4ef7bc90e72cf8fd33b9028cf00859dd8aa28 | [
"MIT"
] | 1 | 2021-04-20T04:34:59.000Z | 2021-04-20T04:34:59.000Z | src/main.cpp | krogenth/G2DataGUI | 6bf4ef7bc90e72cf8fd33b9028cf00859dd8aa28 | [
"MIT"
] | 3 | 2020-05-22T12:34:35.000Z | 2021-07-02T15:46:42.000Z | src/main.cpp | krogenth/G2DataGUI | 6bf4ef7bc90e72cf8fd33b9028cf00859dd8aa28 | [
"MIT"
] | 1 | 2020-05-20T00:29:38.000Z | 2020-05-20T00:29:38.000Z | #include <tchar.h>
#include <vector>
#include <filesystem>
#include <string>
#include ".\include\MovesClass.h"
#include ".\include\ManaEggsClass.h"
#include ".\include\SkillsClass.h"
#include ".\include\SkillBooksClass.h"
#include ".\include\SpecialsClass.h"
#include ".\include\ItemsClass.h"
#include ".\include\StartS... | 33.336066 | 128 | 0.643472 | [
"vector"
] |
c86db23053267dbb25edc1178917ae9b6631267e | 69,136 | cpp | C++ | src/mongo/s/commands/commands_public.cpp | daveh86/mongo | a6462c6926ea97508b803b70fae0357b85b50427 | [
"Apache-2.0"
] | null | null | null | src/mongo/s/commands/commands_public.cpp | daveh86/mongo | a6462c6926ea97508b803b70fae0357b85b50427 | [
"Apache-2.0"
] | null | null | null | src/mongo/s/commands/commands_public.cpp | daveh86/mongo | a6462c6926ea97508b803b70fae0357b85b50427 | [
"Apache-2.0"
] | null | null | null | // s/commands_public.cpp
/**
* Copyright (C) 2008 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 tha... | 45.0691 | 157 | 0.468468 | [
"vector"
] |
c86dfc622620a981888ee2b0f9f0f24d1f3a8afd | 3,434 | hpp | C++ | lib/mtl4/boost/numeric/mtl/operation/column_in_matrix.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | 2 | 2018-07-04T16:44:04.000Z | 2021-01-03T07:26:27.000Z | lib/mtl4/boost/numeric/mtl/operation/column_in_matrix.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | null | null | null | lib/mtl4/boost/numeric/mtl/operation/column_in_matrix.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | null | null | null | // Software License for MTL
//
// Copyright (c) 2007 The Trustees of Indiana University.
// 2008 Dresden University of Technology and the Trustees of Indiana University.
// 2010 SimuNova UG (haftungsbeschränkt), www.simunova.com.
// All rights reserved.
// Authors: Peter Gottschling and A... | 35.040816 | 132 | 0.711415 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.