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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4ed0a1f4e9dd31aaec7a62cabe118e9ad8ec65c4 | 741 | cpp | C++ | solid/utility/test/test_event_size.cpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 26 | 2015-08-25T16:07:58.000Z | 2019-07-05T15:21:22.000Z | solid/utility/test/test_event_size.cpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 5 | 2016-10-15T22:55:15.000Z | 2017-09-19T12:41:10.000Z | solid/utility/test/test_event_size.cpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 5 | 2016-09-15T10:34:52.000Z | 2018-10-30T11:46:46.000Z | #include "solid/utility/event.hpp"
#include "solid/utility/function.hpp"
#include <functional>
using namespace std;
using namespace solid;
int test_event_size(int argc, char* argv[])
{
cout << "sizeof(Event) = " << sizeof(Event) << endl;
cout << "sizeof(Event::any) = " << sizeof(Event::AnyT) << endl;
cou... | 35.285714 | 88 | 0.635628 | [
"solid"
] |
4de849a04e4a24db664f148cb90039e4cba890c4 | 2,813 | cc | C++ | tensorflow/lite/micro/benchmarks/keyword_benchmark.cc | paultanger/tensorflow | fb8382b4638de18388083cdd5e8d9c5c20bb7816 | [
"Apache-2.0"
] | 2 | 2020-10-28T20:24:19.000Z | 2021-02-08T21:24:15.000Z | tensorflow/lite/micro/benchmarks/keyword_benchmark.cc | paultanger/tensorflow | fb8382b4638de18388083cdd5e8d9c5c20bb7816 | [
"Apache-2.0"
] | null | null | null | tensorflow/lite/micro/benchmarks/keyword_benchmark.cc | paultanger/tensorflow | fb8382b4638de18388083cdd5e8d9c5c20bb7816 | [
"Apache-2.0"
] | 1 | 2021-01-04T20:55:01.000Z | 2021-01-04T20:55:01.000Z | /* Copyright 2020 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... | 36.532468 | 80 | 0.77284 | [
"model"
] |
4deb251e2460ca1ae1d085ea8d59f09ed3f905dc | 260 | hpp | C++ | proton/file.hpp | fikret0/proton | fbba4898e2a0c0bfc014b24085602565c95e9284 | [
"MIT"
] | 8 | 2021-04-18T17:04:22.000Z | 2021-08-21T17:33:13.000Z | proton/file.hpp | fikret0/proton | fbba4898e2a0c0bfc014b24085602565c95e9284 | [
"MIT"
] | null | null | null | proton/file.hpp | fikret0/proton | fbba4898e2a0c0bfc014b24085602565c95e9284 | [
"MIT"
] | 1 | 2021-04-19T06:22:49.000Z | 2021-04-19T06:22:49.000Z | #pragma once
#include <iostream>
#include <string>
#include <vector>
namespace proton
{
class file
{
public:
std::vector<std::string> ReadAllLines(std::string path);
bool WriteAllText(std::string path, std::string text);
};
}
| 16.25 | 64 | 0.638462 | [
"vector"
] |
4deea5953f337d28b3c55b842dd41b18c0c7f840 | 404 | cpp | C++ | src/configactionhandler.cpp | nickwynja/newsboat | e6105033129a3dd853bde8fd11a1e2a9fd574f38 | [
"MIT"
] | 2,086 | 2017-09-17T18:02:29.000Z | 2022-03-31T21:15:13.000Z | src/configactionhandler.cpp | nickwynja/newsboat | e6105033129a3dd853bde8fd11a1e2a9fd574f38 | [
"MIT"
] | 1,966 | 2017-09-17T18:07:36.000Z | 2022-03-31T20:09:44.000Z | src/configactionhandler.cpp | majacQ/newsboat | 7f1dc6459f3911f33d6a391e636642ff7b18e1fa | [
"MIT"
] | 263 | 2017-09-22T19:49:54.000Z | 2022-03-22T09:48:48.000Z | #include "configactionhandler.h"
#include "utils.h"
namespace newsboat {
void ConfigActionHandler::handle_action(const std::string& action,
const std::string& params)
{
const std::vector<std::string> tokens = utils::tokenize_quoted(params);
handle_action(action, tokens);
}
void ConfigActionHandler::handle_action... | 20.2 | 72 | 0.75 | [
"vector"
] |
4df1402d406795963b6b87140b5ee9ab0d5913e7 | 13,859 | cc | C++ | crawl-ref/source/syscalls.cc | robertxgray/crawl | a495bdf9d0bc3b54edaf46380901ba1342e5a3d5 | [
"CC0-1.0"
] | 2 | 2021-05-26T14:08:47.000Z | 2022-03-17T21:24:06.000Z | crawl-ref/source/syscalls.cc | robertxgray/crawl | a495bdf9d0bc3b54edaf46380901ba1342e5a3d5 | [
"CC0-1.0"
] | null | null | null | crawl-ref/source/syscalls.cc | robertxgray/crawl | a495bdf9d0bc3b54edaf46380901ba1342e5a3d5 | [
"CC0-1.0"
] | null | null | null | /**
* @file
* @brief Wrappers for sys/libc calls, mostly for charset purposes.
**/
#include "AppHdr.h"
#include "syscalls.h"
#ifdef TARGET_OS_WINDOWS
# ifdef TARGET_COMPILER_VC
# include <direct.h>
# endif
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
# include <wincrypt.h>
# include <io.h>
#else
# include <... | 24.792487 | 79 | 0.620608 | [
"vector"
] |
4dfc23903fcfadc634c3e2f52519682c773c1718 | 3,009 | cpp | C++ | code/graphics_program_wrapper_main.cpp | aod6060/fps_game | b1d55d02ec124dc22ce877b814b6ff8452915213 | [
"MIT"
] | 1 | 2021-06-22T07:05:51.000Z | 2021-06-22T07:05:51.000Z | code/graphics_program_wrapper_main.cpp | aod6060/fps_game | b1d55d02ec124dc22ce877b814b6ff8452915213 | [
"MIT"
] | 14 | 2018-08-29T09:32:17.000Z | 2018-09-15T10:52:22.000Z | code/graphics_program_wrapper_main.cpp | aod6060/fps_game | b1d55d02ec124dc22ce877b814b6ff8452915213 | [
"MIT"
] | null | null | null | #include "sys.h"
void ProgramWrapperMain::init()
{
// Shaders
vertex.create(GL_VERTEX_SHADER, "data/shaders/main.vert");
fragment.create(GL_FRAGMENT_SHADER, "data/shaders/main.frag");
// Program
program.addShader(&vertex);
program.addShader(&fragment);
program.create();
program.bind();
// Attributes
program... | 21.190141 | 66 | 0.71984 | [
"mesh",
"model"
] |
4dfd07085fb2241ba290231ff35e161847b8172f | 4,673 | cpp | C++ | core/test/math/base_converter_tests.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 92 | 2016-11-13T01:28:34.000Z | 2022-03-25T01:11:37.000Z | core/test/math/base_converter_tests.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 242 | 2016-11-28T11:13:09.000Z | 2022-03-04T13:02:53.000Z | core/test/math/base_converter_tests.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 91 | 2017-06-20T10:35:28.000Z | 2022-03-09T14:15:40.000Z | /*
*
* base_converter_tests.cpp
* ledger-core
*
* Created by Pierre Pollastri on 05/03/2019.
*
* The MIT License (MIT)
*
* Copyright (c) 2019 Ledger
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to dea... | 31.362416 | 96 | 0.666595 | [
"vector"
] |
1501f3dccc04487c702d64ae1e9cb4cf9eac518c | 3,843 | cc | C++ | RecoLocalTracker/SiPixelRecHits/plugins/PixelCPEGenericESProducer.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | RecoLocalTracker/SiPixelRecHits/plugins/PixelCPEGenericESProducer.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | RecoLocalTracker/SiPixelRecHits/plugins/PixelCPEGenericESProducer.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | #include "RecoLocalTracker/SiPixelRecHits/interface/PixelCPEGenericESProducer.h"
#include "RecoLocalTracker/SiPixelRecHits/interface/PixelCPEGeneric.h"
#include "MagneticField/Engine/interface/MagneticField.h"
#include "MagneticField/Records/interface/IdealMagneticFieldRecord.h"
#include "Geometry/TrackerGeometryBuilde... | 40.452632 | 98 | 0.76867 | [
"geometry",
"object"
] |
150b76ba8ad4fffa2217f599e541fff6800e5425 | 1,606 | cpp | C++ | 113-path-sum-ii/path-sum-ii.cpp | TJUSsr/leetcodesolution | 8244de2d76c9e8e5b9d98dd1e8efed4d680d44ee | [
"MIT"
] | null | null | null | 113-path-sum-ii/path-sum-ii.cpp | TJUSsr/leetcodesolution | 8244de2d76c9e8e5b9d98dd1e8efed4d680d44ee | [
"MIT"
] | 2 | 2021-03-31T19:10:41.000Z | 2021-12-13T19:58:15.000Z | 113-path-sum-ii/path-sum-ii.cpp | TJUSsr/leetcodesolution | 8244de2d76c9e8e5b9d98dd1e8efed4d680d44ee | [
"MIT"
] | null | null | null | // Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.
//
// Note: A leaf is a node with no children.
//
// Example:
//
// Given the below binary tree and sum = 22,
//
//
// 5
// / \
// 4 8
// / / \
// 11 13 4
// / \ / \
// 7 2 5 1
... | 21.413333 | 105 | 0.504981 | [
"vector"
] |
15144caad74d7bebf1f2961a804bffdace97ddbd | 19,483 | cxx | C++ | main/sd/source/ui/sidebar/DocumentHelper.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/sd/source/ui/sidebar/DocumentHelper.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/sd/source/ui/sidebar/DocumentHelper.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.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 y... | 33.649396 | 98 | 0.61623 | [
"object",
"vector",
"model"
] |
15163589714ba461f737b72b550569d80d0e91cf | 4,830 | cc | C++ | c++/test/TestSargsApplier.cc | hinxx/orc | 22cb5388c958261df8f1c3d6de82d36afb78f140 | [
"Apache-2.0"
] | 545 | 2015-05-11T18:22:53.000Z | 2022-03-28T03:47:49.000Z | c++/test/TestSargsApplier.cc | hinxx/orc | 22cb5388c958261df8f1c3d6de82d36afb78f140 | [
"Apache-2.0"
] | 704 | 2015-07-06T22:07:34.000Z | 2022-03-31T02:53:22.000Z | c++/test/TestSargsApplier.cc | coderex2522/orc | 7d2838b4b38111bc1bfa00592d84a8b36286b9f2 | [
"Apache-2.0"
] | 441 | 2015-05-14T23:00:45.000Z | 2022-03-30T06:09:20.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... | 38.951613 | 75 | 0.676812 | [
"vector"
] |
15180ef61a4b40115e7c6a22fa61676ebafebe46 | 4,382 | hpp | C++ | contrib/base64.hpp | nondejus/sha1_gpu_nearcollisionattacks | 26642b9e88b6ba331a2d917136d79970c14ae491 | [
"MIT"
] | 26 | 2017-12-22T19:02:21.000Z | 2021-04-24T04:51:07.000Z | contrib/base64.hpp | nondejus/sha1_gpu_nearcollisionattacks | 26642b9e88b6ba331a2d917136d79970c14ae491 | [
"MIT"
] | 1 | 2019-12-01T09:49:06.000Z | 2019-12-01T09:49:06.000Z | contrib/base64.hpp | nondejus/sha1_gpu_nearcollisionattacks | 26642b9e88b6ba331a2d917136d79970c14ae491 | [
"MIT"
] | 7 | 2018-01-16T08:36:41.000Z | 2020-08-31T10:35:50.000Z | /*********************************************************************************\
* *
* https://github.com/cr-marcstevens/snippets/tree/master/cxxheaderonly *
* ... | 33.19697 | 110 | 0.493382 | [
"vector"
] |
151a070003b734a0a55f5588efacab0a144ce3a1 | 9,231 | hpp | C++ | include/GlobalNamespace/ColorTransitionSO.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/ColorTransitionSO.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/ColorTransitionSO.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: BaseTransitionSO
#inc... | 52.748571 | 544 | 0.756364 | [
"object",
"vector"
] |
151cd327ccb20929e55bf2687ee9ee1fc12407cf | 10,893 | cpp | C++ | Vector/Vector.cpp | Artintrex/Utility-Vector | 8e0e02c2552edfb01cb70dcb47e8c7d60fdda42c | [
"MIT"
] | null | null | null | Vector/Vector.cpp | Artintrex/Utility-Vector | 8e0e02c2552edfb01cb70dcb47e8c7d60fdda42c | [
"MIT"
] | null | null | null | Vector/Vector.cpp | Artintrex/Utility-Vector | 8e0e02c2552edfb01cb70dcb47e8c7d60fdda42c | [
"MIT"
] | null | null | null | // This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
//Author: Egemen Gungor
#include "Vector.h"
#include <limits>
#include <cmath>
float clamp(float x, float min, float max);
const Vector4... | 28.665789 | 214 | 0.688516 | [
"vector"
] |
151ef437e9c5196ec62768b8e58920d8d3916ee9 | 3,216 | cpp | C++ | ngraph/test/type_prop/gather.cpp | Byoungmin-Cho/openvino | 902a89b582d9c43ad2fe854092fd69c3aaf1db81 | [
"Apache-2.0"
] | null | null | null | ngraph/test/type_prop/gather.cpp | Byoungmin-Cho/openvino | 902a89b582d9c43ad2fe854092fd69c3aaf1db81 | [
"Apache-2.0"
] | 28 | 2021-09-24T09:29:02.000Z | 2022-03-28T13:20:46.000Z | ngraph/test/type_prop/gather.cpp | jayabs2020/openvino | 67a82a040faaf66f109035acf7de6e4b7568bc08 | [
"Apache-2.0"
] | 1 | 2020-08-30T11:48:03.000Z | 2020-08-30T11:48:03.000Z | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "gtest/gtest.h"
#include "ngraph/ngraph.hpp"
#include "util/type_prop.hpp"
NGRAPH_SUPPRESS_DEPRECATED_START
using namespace std;
using namespace ngraph;
TEST(type_prop, gather_axis_0)
{
Shape params_shape{3, 2};
... | 33.852632 | 97 | 0.643657 | [
"shape",
"vector"
] |
1520f3b7f6795829b55ca2ee24dfe5b8a7af12d2 | 1,024 | cpp | C++ | plugins/gui/src/gui_utils/geometry.cpp | e7p/hal | 2a88a8abefe5e2f79a74ec646e5fb3d8e6eb7cc8 | [
"MIT"
] | 407 | 2019-04-26T10:45:52.000Z | 2022-03-31T15:52:30.000Z | plugins/gui/src/gui_utils/geometry.cpp | e7p/hal | 2a88a8abefe5e2f79a74ec646e5fb3d8e6eb7cc8 | [
"MIT"
] | 219 | 2019-04-29T16:42:01.000Z | 2022-03-11T22:57:41.000Z | plugins/gui/src/gui_utils/geometry.cpp | e7p/hal | 2a88a8abefe5e2f79a74ec646e5fb3d8e6eb7cc8 | [
"MIT"
] | 53 | 2019-05-02T21:23:35.000Z | 2022-03-11T19:46:05.000Z | #include "gui/gui_utils/geometry.h"
#include <QApplication>
#include <QDesktopWidget>
#include <QWidget>
namespace hal
{
namespace gui_utility
{
void ensureOnScreen(QWidget* w)
{
auto boundingRect = QApplication::desktop()->availableGeometry(w);
auto requiredRect = w->g... | 34.133333 | 78 | 0.612305 | [
"geometry"
] |
15221a62fee6b5a47baf9f826c620025f166681b | 3,326 | cxx | C++ | handoff_response/src/aeff_phi_dep/aeff_phi_dep.cxx | fermi-lat/irfs | cebe27fc6a974ac4448f15d7944b21e419c585e9 | [
"BSD-3-Clause"
] | null | null | null | handoff_response/src/aeff_phi_dep/aeff_phi_dep.cxx | fermi-lat/irfs | cebe27fc6a974ac4448f15d7944b21e419c585e9 | [
"BSD-3-Clause"
] | 4 | 2020-02-21T20:16:38.000Z | 2022-03-22T17:39:03.000Z | handoff_response/src/aeff_phi_dep/aeff_phi_dep.cxx | fermi-lat/irfs | cebe27fc6a974ac4448f15d7944b21e419c585e9 | [
"BSD-3-Clause"
] | 1 | 2020-07-07T18:30:05.000Z | 2020-07-07T18:30:05.000Z | #include <iostream>
#include <sstream>
#include <vector>
#include "TCanvas.h"
#include "TFile.h"
#include "TF1.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TMath.h"
#include "TTree.h"
#include "TVirtualPad.h"
int main() {
TFile root_file("goodEvent.root");
TTree * merit = (TTree*)(root_file.Get("MeritTuple"... | 31.980769 | 80 | 0.532471 | [
"vector"
] |
1527b45ded98b76dd9b8d32a4cee5d0199863b00 | 1,465 | cpp | C++ | Engine/Source/Game.cpp | FloatyMonkey/FmEngine | f187f00c2d25ae662218de72b69ea57a93de6d41 | [
"MIT"
] | 15 | 2019-12-01T10:17:17.000Z | 2022-01-30T00:37:43.000Z | Engine/Source/Game.cpp | FloatyMonkey/FmEngine | f187f00c2d25ae662218de72b69ea57a93de6d41 | [
"MIT"
] | null | null | null | Engine/Source/Game.cpp | FloatyMonkey/FmEngine | f187f00c2d25ae662218de72b69ea57a93de6d41 | [
"MIT"
] | 2 | 2020-01-18T21:32:22.000Z | 2021-06-28T07:51:46.000Z | // Copyright (c) 2020 Lauro Oyen, FmEngine contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed.
#include "World/World.h"
#include "Components/Components.h"
#include "Physics/Rigidbody.h"
#include "Audio/AudioSource.h"
#include "Audio/Au... | 19.797297 | 99 | 0.662116 | [
"mesh",
"transform"
] |
15289dce77c1725682e2f2e9a9f8b941ea9c607b | 32,241 | cpp | C++ | src/EmailWorker.cpp | r4sas/pboted | b1db56579f3876d2abfd3157ca0fe0045c8a60a4 | [
"BSD-3-Clause"
] | null | null | null | src/EmailWorker.cpp | r4sas/pboted | b1db56579f3876d2abfd3157ca0fe0045c8a60a4 | [
"BSD-3-Clause"
] | null | null | null | src/EmailWorker.cpp | r4sas/pboted | b1db56579f3876d2abfd3157ca0fe0045c8a60a4 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) 2019-2021 polistern
*/
#include <openssl/sha.h>
#include <iterator>
#include <utility>
#include <vector>
#include <ctime>
#include "BoteContext.h"
#include "DHTworker.h"
#include "EmailWorker.h"
namespace pbote {
namespace kademlia {
EmailWorker email_worker;
EmailWorker::EmailWorker()
: ... | 38.98549 | 129 | 0.658075 | [
"object",
"vector"
] |
1529631d5ec1e7bac8055be0f75c1a437e3d9d7f | 5,819 | cc | C++ | src/relay/transforms/combine_parallel_batch_matmul.cc | jiangzoi/incubator-tvm | 144c6f45f7217b9df2f5605e06f0903e470ac11c | [
"Apache-2.0"
] | 4 | 2019-05-08T04:46:07.000Z | 2019-11-11T19:43:04.000Z | src/relay/transforms/combine_parallel_batch_matmul.cc | jiangzoi/incubator-tvm | 144c6f45f7217b9df2f5605e06f0903e470ac11c | [
"Apache-2.0"
] | 1 | 2020-07-29T07:29:17.000Z | 2020-07-29T07:29:17.000Z | src/relay/transforms/combine_parallel_batch_matmul.cc | jiangzoi/incubator-tvm | 144c6f45f7217b9df2f5605e06f0903e470ac11c | [
"Apache-2.0"
] | 2 | 2019-08-08T01:48:03.000Z | 2019-09-27T06:49:16.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 ... | 36.142857 | 94 | 0.692043 | [
"shape",
"vector",
"transform"
] |
152def18d4394da868677423502e7e62644aab76 | 6,388 | cpp | C++ | test/example1.cpp | tevaughan/units | 75e5cfa76a44225983ca55f2a54e0869ff7b3715 | [
"BSD-3-Clause"
] | null | null | null | test/example1.cpp | tevaughan/units | 75e5cfa76a44225983ca55f2a54e0869ff7b3715 | [
"BSD-3-Clause"
] | 4 | 2019-04-17T21:36:00.000Z | 2019-04-30T22:06:31.000Z | test/example1.cpp | tevaughan/units | 75e5cfa76a44225983ca55f2a54e0869ff7b3715 | [
"BSD-3-Clause"
] | null | null | null | /// @copyright 2019 Thomas E. Vaughan; all rights reserved.
/// @license BSD three-clause; see LICENSE.
#include <array> // for array
#include <eigen3/Eigen/Geometry> // for AngleAxis, Matrix, etc.
#include <iostream> // for cout, etc.
#include <type_traits> // for remove_con... | 29.711628 | 78 | 0.592674 | [
"geometry",
"model"
] |
1532754620db3ca030e05211ed4818539e010727 | 1,927 | cpp | C++ | Source/UncoExample/Private/ExampleBase01.cpp | laycnc/UncoExample | a58d0f9811cc17b4638e0e7e3255fce3fafdddf3 | [
"MIT"
] | null | null | null | Source/UncoExample/Private/ExampleBase01.cpp | laycnc/UncoExample | a58d0f9811cc17b4638e0e7e3255fce3fafdddf3 | [
"MIT"
] | null | null | null | Source/UncoExample/Private/ExampleBase01.cpp | laycnc/UncoExample | a58d0f9811cc17b4638e0e7e3255fce3fafdddf3 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "ExampleBase01.h"
#include "Components/StaticMeshComponent.h"
#include "Engine/StaticMesh.h"
#include "Kismet/KismetSystemLibrary.h"
#include "UncoAsyncSystemLibrary.h"
// Sets default values
AExampleBase01::AExampleBase01()
{
//... | 27.528571 | 114 | 0.755579 | [
"mesh"
] |
15396fe90b5c1f352aaaf9ede76d022921098da9 | 38,852 | cpp | C++ | net/config/upgrade/netupgrd/infmap.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | net/config/upgrade/netupgrd/infmap.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | net/config/upgrade/netupgrd/infmap.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // ----------------------------------------------------------------------
//
// Microsoft Windows NT
// Copyright (C) Microsoft Corporation, 1997.
//
// File: I N F M A P . C P P
//
// Contents: Functions that work on netmap.inf file.
//
// Notes:
//
// Author: kumarp 22-December-97
//
// --... | 34.351901 | 88 | 0.507181 | [
"object"
] |
1539af132d7b851f216243cf79a9ac02ac4ce41d | 562 | cpp | C++ | practice/binarySearch/binarySearch.cpp | atpk/CP | 0eee3af02bb0466c85aeb8dd86cf3620567a354c | [
"MIT"
] | null | null | null | practice/binarySearch/binarySearch.cpp | atpk/CP | 0eee3af02bb0466c85aeb8dd86cf3620567a354c | [
"MIT"
] | null | null | null | practice/binarySearch/binarySearch.cpp | atpk/CP | 0eee3af02bb0466c85aeb8dd86cf3620567a354c | [
"MIT"
] | null | null | null | class Solution {
public:
int binarySearch(vector<int>& nums, int start, int end, int key){
if(start>end)
return -1;
int mid = start + (end-start)/2;
if(key==nums[mid])
return mid;
if(key<nums[mid]){
return binarySearch(nu... | 24.434783 | 69 | 0.491103 | [
"vector"
] |
154311a601ac79f567ea8eb62007d116153bad0e | 7,378 | cpp | C++ | src/pke/unittest/UnitTestSerialize.cpp | marcelmon/PALISADE_capstone | 2cfd1626b26576f8fe93bb3a424f934ef700c5b2 | [
"BSD-2-Clause"
] | null | null | null | src/pke/unittest/UnitTestSerialize.cpp | marcelmon/PALISADE_capstone | 2cfd1626b26576f8fe93bb3a424f934ef700c5b2 | [
"BSD-2-Clause"
] | null | null | null | src/pke/unittest/UnitTestSerialize.cpp | marcelmon/PALISADE_capstone | 2cfd1626b26576f8fe93bb3a424f934ef700c5b2 | [
"BSD-2-Clause"
] | null | null | null | /*
* @file
* @author TPOC: palisade@njit.edu
*
* @copyright Copyright (c) 2017, New Jersey Institute of Technology (NJIT)
* 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. Redistributio... | 35.815534 | 138 | 0.751694 | [
"vector"
] |
15468de8ee019219d07466945f1367613ecd869a | 1,825 | cpp | C++ | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/Hilo C++ sample (Windows 8)/C++/Hilo/CropImageView.xaml.cpp | alonmm/VCSamples | 6aff0b4902f5027164d593540fcaa6601a0407c3 | [
"MIT"
] | 300 | 2019-05-09T05:32:33.000Z | 2022-03-31T20:23:24.000Z | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/Hilo C++ sample (Windows 8)/C++/Hilo/CropImageView.xaml.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 9 | 2016-09-19T18:44:26.000Z | 2018-10-26T10:20:05.000Z | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/Hilo C++ sample (Windows 8)/C++/Hilo/CropImageView.xaml.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved
#include "pch.h"
#include "C... | 32.017544 | 111 | 0.736986 | [
"object"
] |
154858d1de49988a25dbc5b5f8da87dd84066f13 | 5,257 | cpp | C++ | lib/Input/src/gamepads.cpp | jfcameron/WebAssembly-C-Cpp-Reference | b0d276565097920e700776fbf621f24ef82972cd | [
"MIT"
] | 1 | 2018-06-05T07:54:52.000Z | 2018-06-05T07:54:52.000Z | lib/Input/src/gamepads.cpp | jfcameron/WebAssembly-C-Cpp-Reference | b0d276565097920e700776fbf621f24ef82972cd | [
"MIT"
] | 8 | 2018-08-11T05:13:57.000Z | 2018-11-15T00:14:42.000Z | lib/Input/src/gamepads.cpp | jfcameron/WebAssembly-C-Cpp-Reference | b0d276565097920e700776fbf621f24ef82972cd | [
"MIT"
] | null | null | null | // © 2018 Joseph Cameron - All Rights Reserved
#include <gdk/exception.h>
#include <gdk/gamepads.h>
#include <gdk/input_protected.h>
#include <gdk/glfw_wrapper.h>
#include <GLFW/glfw3.h>
#ifdef JFC_TARGET_PLATFORM_Emscripten
#include <emscripten.h>
#endif
#include <cassert>
#include <cstdio>
#include <cstring>
#inc... | 29.205556 | 177 | 0.517976 | [
"vector"
] |
15530ef3805337b0e5b483635cff904d3b77ba4d | 1,639 | cpp | C++ | CodeForces/Complete/700-799/733D-KostyaTheSculptor-OLD.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | CodeForces/Complete/700-799/733D-KostyaTheSculptor-OLD.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | CodeForces/Complete/700-799/733D-KostyaTheSculptor-OLD.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | #include <cstdio>
#include <vector>
#include <algorithm>
typedef long long ll;
struct marble{ll a, b, c, r;};
bool mcompare(marble x, marble y){
if(x.a < y.a){return true;}
else if(x.a == y.a && x.b < y.b){return true;}
else if(x.a == y.a && x.b == y.b && x.c < y.c){return true;}
else if(x.a == y.a &... | 33.44898 | 84 | 0.466138 | [
"vector"
] |
155479cd0b22aa65e5f3541c7a3f6462db243a52 | 35,028 | cc | C++ | src/llv8.cc | Glassig/llnode | ec016041c4c95ec1d7e391bc377627bfd95d8bc9 | [
"MIT"
] | null | null | null | src/llv8.cc | Glassig/llnode | ec016041c4c95ec1d7e391bc377627bfd95d8bc9 | [
"MIT"
] | null | null | null | src/llv8.cc | Glassig/llnode | ec016041c4c95ec1d7e391bc377627bfd95d8bc9 | [
"MIT"
] | null | null | null | #include <assert.h>
#include <algorithm>
#include <cinttypes>
#include <cstdarg>
#include <iomanip>
#include <sstream>
#include <string>
#include "deps/rang/include/rang.hpp"
#include "llv8-inl.h"
#include "llv8.h"
#include "src/settings.h"
namespace llnode {
namespace v8 {
using lldb::addr_t;
using lldb::SBError;
... | 25.661538 | 80 | 0.636805 | [
"object",
"vector"
] |
1554af0b07ad3323fadf17de9387e2ecc79ca8c1 | 2,244 | cpp | C++ | Classes/Pipes.cpp | shivmsit/FlappyBird-cocos2dx | 82c5199c47bde5b751fe6742aa9f1c1e25d48f8b | [
"Apache-2.0"
] | 2 | 2020-11-17T14:49:41.000Z | 2021-09-29T16:28:29.000Z | Classes/Pipes.cpp | shivmsit/FlappyBird-cocos2dx | 82c5199c47bde5b751fe6742aa9f1c1e25d48f8b | [
"Apache-2.0"
] | null | null | null | Classes/Pipes.cpp | shivmsit/FlappyBird-cocos2dx | 82c5199c47bde5b751fe6742aa9f1c1e25d48f8b | [
"Apache-2.0"
] | 1 | 2021-08-20T14:52:01.000Z | 2021-08-20T14:52:01.000Z | #include "Pipes.h"
#include "Settings.h"
#include "PhysicsHelper.h"
Pipes* Pipes::create()
{
Pipes* pipes = new (std::nothrow) Pipes();
if (pipes && pipes->init())
{
pipes->autorelease();
return pipes;
}
CC_SAFE_DELETE(pipes);
return nullptr;
}
bool Pipes::init()
{
if (!Nod... | 27.703704 | 122 | 0.691176 | [
"shape"
] |
155723c9e7550fd5fe4d3f6f92c56fca96f25bb8 | 1,042 | cpp | C++ | leetcode/0228_Summary_Ranges/result.cpp | theck17/notes | f32f0f4b8f821b1ed38d173ef0913efddd094b91 | [
"MIT"
] | null | null | null | leetcode/0228_Summary_Ranges/result.cpp | theck17/notes | f32f0f4b8f821b1ed38d173ef0913efddd094b91 | [
"MIT"
] | null | null | null | leetcode/0228_Summary_Ranges/result.cpp | theck17/notes | f32f0f4b8f821b1ed38d173ef0913efddd094b91 | [
"MIT"
] | null | null | null | /**
* Copyright (C) 2021 All rights reserved.
*
* FileName :result.cpp
* Author :C.K
* Email :theck17@163.com
* DateTime :2021-06-21 19:07:40
* Description :
*/
#include <algorithm> //STL 通用算法
#include <streambuf> //底层输入/输出支持
#include <string> //字符串类
... | 27.421053 | 97 | 0.525912 | [
"vector"
] |
155e9243293bd0490eb72bbed45dd90c5a4d711e | 1,756 | cpp | C++ | source/toneMapper/photographicGlobalToneMapper.cpp | xh5a5n6k6/High-Dynamic-Range-Imaging | a2bbb85f39d1e1a524ab8f4b0022ca9a7e3de188 | [
"MIT"
] | 5 | 2019-04-04T15:14:13.000Z | 2020-03-25T15:13:31.000Z | source/toneMapper/photographicGlobalToneMapper.cpp | xh5a5n6k6/High-Dynamic-Range-Imaging | a2bbb85f39d1e1a524ab8f4b0022ca9a7e3de188 | [
"MIT"
] | null | null | null | source/toneMapper/photographicGlobalToneMapper.cpp | xh5a5n6k6/High-Dynamic-Range-Imaging | a2bbb85f39d1e1a524ab8f4b0022ca9a7e3de188 | [
"MIT"
] | 2 | 2020-05-30T07:47:51.000Z | 2020-09-19T11:28:32.000Z | #include "toneMapper/photographicGlobalToneMapper.h"
#include <cmath>
#include <iostream>
namespace shdr {
PhotographicGlobalToneMapper::PhotographicGlobalToneMapper() :
PhotographicGlobalToneMapper(0.7f, 0.000001f) {
}
PhotographicGlobalToneMapper::PhotographicGlobalToneMapper(const float alpha, const float de... | 25.823529 | 98 | 0.604784 | [
"vector"
] |
15630ee892067c844903328635aa95d43f27380c | 386 | cpp | C++ | SORTING/Easy/Intersection of Two Arrays/Code.cpp | HassanRahim26/LEETCODE | c0ec81b037ff7b2d6e6030ac9835c21ed825100f | [
"MIT"
] | 3 | 2021-08-31T11:02:28.000Z | 2022-01-17T08:07:00.000Z | SORTING/Easy/Intersection of Two Arrays/Code.cpp | HassanRahim26/LEETCODE | c0ec81b037ff7b2d6e6030ac9835c21ed825100f | [
"MIT"
] | null | null | null | SORTING/Easy/Intersection of Two Arrays/Code.cpp | HassanRahim26/LEETCODE | c0ec81b037ff7b2d6e6030ac9835c21ed825100f | [
"MIT"
] | null | null | null | /*
PROBLEM LINK:- https://leetcode.com/problems/intersection-of-two-arrays/
*/
class Solution {
public:
vector<int> intersection(vector<int>& nums1, vector<int>& nums2) {
set<int> s(nums1.begin(), nums1.end());
vector<int> ans;
for(int x : nums2)
{
if(s.erase(x))
... | 21.444444 | 72 | 0.533679 | [
"vector"
] |
d07eecb772d0e7a32afd3d0508fb1d031b4b81fa | 591 | cc | C++ | cpp/Codeforces/1-50/41A_Translation.cc | phongvcao/CP_Contests_Solutions | 2e76e73ee7e53c798f63e1870be47653c75180a9 | [
"MIT"
] | null | null | null | cpp/Codeforces/1-50/41A_Translation.cc | phongvcao/CP_Contests_Solutions | 2e76e73ee7e53c798f63e1870be47653c75180a9 | [
"MIT"
] | null | null | null | cpp/Codeforces/1-50/41A_Translation.cc | phongvcao/CP_Contests_Solutions | 2e76e73ee7e53c798f63e1870be47653c75180a9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <sstream>
#include <vector>
int main(int argc, char **argv) {
std::string line1 = "";
std::string line2 = "";
if (std::getline(std::cin, line1)) {
}
if (std::getline(std::cin, line2)) {
}
bool isCorrect = true;
for (unsigned int i = 0... | 15.972973 | 56 | 0.478849 | [
"vector"
] |
d081dbea40b12a22963b8688788840c04921decb | 3,919 | hpp | C++ | include/dish2/services_threadlocal/DiversityMaintenanceService.hpp | mmore500/dishtiny | 9fcb52c4e56c74a4e17f7d577143ed40c158c92e | [
"MIT"
] | 29 | 2019-02-04T02:39:52.000Z | 2022-01-28T10:06:26.000Z | include/dish2/services_threadlocal/DiversityMaintenanceService.hpp | mmore500/dishtiny | 9fcb52c4e56c74a4e17f7d577143ed40c158c92e | [
"MIT"
] | 95 | 2020-02-22T19:48:14.000Z | 2021-09-14T19:17:53.000Z | include/dish2/services_threadlocal/DiversityMaintenanceService.hpp | mmore500/dishtiny | 9fcb52c4e56c74a4e17f7d577143ed40c158c92e | [
"MIT"
] | 6 | 2019-11-19T10:13:09.000Z | 2021-03-25T17:35:32.000Z | #pragma once
#ifndef DISH2_SERVICES_THREADLOCAL_DIVERSITYMAINTENANCESERVICE_HPP_INCLUDE
#define DISH2_SERVICES_THREADLOCAL_DIVERSITYMAINTENANCESERVICE_HPP_INCLUDE
#include <algorithm>
#include <cmath>
#include "../../../third-party/conduit/include/uitsl/math/shift_mod.hpp"
#include "../../../third-party/conduit/inclu... | 35.306306 | 84 | 0.685634 | [
"transform"
] |
d085da8b15538f97afb3621f9ef42700f04b1bb5 | 5,655 | cpp | C++ | src/hsp3/strnote.cpp | m4saka/OpenHSP | 391f0a2100e701138d0610a5b94492d6f57ad1f2 | [
"BSD-3-Clause"
] | 127 | 2018-02-24T20:41:15.000Z | 2022-03-22T05:57:56.000Z | src/hsp3/strnote.cpp | m4saka/OpenHSP | 391f0a2100e701138d0610a5b94492d6f57ad1f2 | [
"BSD-3-Clause"
] | 21 | 2018-09-11T15:04:22.000Z | 2022-02-03T09:30:16.000Z | src/hsp3/strnote.cpp | m4saka/OpenHSP | 391f0a2100e701138d0610a5b94492d6f57ad1f2 | [
"BSD-3-Clause"
] | 21 | 2019-03-28T07:49:44.000Z | 2021-12-25T02:49:07.000Z |
/*----------------------------------------------------------------*/
// notepad object related routines
// (CR/LFだけでなくLFにも対応した版)
/*----------------------------------------------------------------*/
#include <string.h>
#include "hsp3config.h"
#include "strnote.h"
#include "supio.h"
#if defined(HSPLINUX) || defined(... | 16.343931 | 104 | 0.51176 | [
"object"
] |
d096bf98c3e047dc05b6da1c68d47a0a698f4096 | 3,595 | cpp | C++ | packages/monte_carlo/collision/core/test/tstNuclearScatteringDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/collision/core/test/tstNuclearScatteringDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/collision/core/test/tstNuclearScatteringDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file tstNuclearScatteringDistribution.cpp
//! \author Alex Robinson
//! \brief Nuclear scattering distribution unit tests
//!
//---------------------------------------------------------------------------//
// Std Lib Includes
#... | 37.447917 | 134 | 0.584423 | [
"vector"
] |
d096c43a239eb201f8e2b33e27b584030b7db154 | 584 | cpp | C++ | Practice code/Linked list/Queue/stock span problem/code.cpp | MythicalStack/Data-structure-CS201 | 83411ef3b29971df86ba27fc409003a9e492d99e | [
"Apache-2.0"
] | 1 | 2021-08-10T11:45:10.000Z | 2021-08-10T11:45:10.000Z | Practice code/Linked list/Queue/stock span problem/code.cpp | jkbells/Data-structure-CS201 | 83411ef3b29971df86ba27fc409003a9e492d99e | [
"Apache-2.0"
] | null | null | null | Practice code/Linked list/Queue/stock span problem/code.cpp | jkbells/Data-structure-CS201 | 83411ef3b29971df86ba27fc409003a9e492d99e | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
#include<stack>
using namespace std;
vector<int> stockspan(vector<int> prices){
vector<int> ans;
stack<pair<int,int>> s;
for (auto price:prices){
int days = 1;
while(!s.empty() and s.top().first <= price){
days += s.top().second;
s.pop();
... | 20.137931 | 53 | 0.513699 | [
"vector"
] |
d09b07a153a40308848e2257eacf0bbc34bf82cb | 13,264 | cpp | C++ | cfw/src/v20190904/model/SecurityGroupRule.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | cfw/src/v20190904/model/SecurityGroupRule.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | cfw/src/v20190904/model/SecurityGroupRule.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 28.709957 | 153 | 0.685012 | [
"model"
] |
d09d43b78c3a0ac90ba25cea19828fdd0a14a8ea | 3,271 | cpp | C++ | image_landmark_track_source.cpp | tussedrotten/sensor-fusion-example | fa1c21e0c5dd8387bc67773a1343f1bf1e0f676a | [
"BSD-3-Clause"
] | 1 | 2021-04-23T10:00:02.000Z | 2021-04-23T10:00:02.000Z | image_landmark_track_source.cpp | tussedrotten/sensor-fusion-example | fa1c21e0c5dd8387bc67773a1343f1bf1e0f676a | [
"BSD-3-Clause"
] | null | null | null | image_landmark_track_source.cpp | tussedrotten/sensor-fusion-example | fa1c21e0c5dd8387bc67773a1343f1bf1e0f676a | [
"BSD-3-Clause"
] | 1 | 2021-10-04T12:40:47.000Z | 2021-10-04T12:40:47.000Z | #include "image_landmark_track_source.h"
#include "opencv2/core/eigen.hpp"
#include "opencv2/calib3d.hpp"
#include <fstream>
Eigen::Matrix3d Intrinsics::toCalibrationMatrix() const
{
Eigen::Matrix3d calib_mat;
calib_mat <<
fu, 0., cu,
0., fv, cv,
0., 0., 1.;
return calib_mat;
}
cv::Matx... | 20.067485 | 102 | 0.665851 | [
"vector"
] |
d0a0f520f0d3c291ff67f91b181fdee609998c99 | 24,431 | cpp | C++ | src/cas_20200407.cpp | alibabacloud-sdk-cpp/cas-20200407 | 57156fd5933b1c1bd1ba45c7ed8558fd360c186d | [
"Apache-2.0"
] | null | null | null | src/cas_20200407.cpp | alibabacloud-sdk-cpp/cas-20200407 | 57156fd5933b1c1bd1ba45c7ed8558fd360c186d | [
"Apache-2.0"
] | null | null | null | src/cas_20200407.cpp | alibabacloud-sdk-cpp/cas-20200407 | 57156fd5933b1c1bd1ba45c7ed8558fd360c186d | [
"Apache-2.0"
] | null | null | null | // This file is auto-generated, don't edit it. Thanks.
#include <alibabacloud/cas_20200407.hpp>
#include <alibabacloud/endpoint_util.hpp>
#include <alibabacloud/open_api.hpp>
#include <alibabacloud/open_api_util.hpp>
#include <boost/any.hpp>
#include <boost/throw_exception.hpp>
#include <darabonba/core.hpp>
#include <... | 55.651481 | 251 | 0.716467 | [
"vector"
] |
d0a641ff7e3baa157da98ebb0fcd84832f50cae6 | 1,400 | cpp | C++ | C++ Solutions/Other/Binary_Search/Find_an_Element_in_Bitonic_Array.cpp | LearnEarn-Fun/Competitive-Programming-Solutions | 2c353bea49413e3f0f14b8980baf982881ad2c65 | [
"MIT"
] | 1 | 2021-02-06T04:24:05.000Z | 2021-02-06T04:24:05.000Z | C++ Solutions/Other/Binary_Search/Find_an_Element_in_Bitonic_Array.cpp | hridaya423/Competitive-Programming-Solutions | 2c353bea49413e3f0f14b8980baf982881ad2c65 | [
"MIT"
] | null | null | null | C++ Solutions/Other/Binary_Search/Find_an_Element_in_Bitonic_Array.cpp | hridaya423/Competitive-Programming-Solutions | 2c353bea49413e3f0f14b8980baf982881ad2c65 | [
"MIT"
] | 1 | 2021-11-13T18:46:55.000Z | 2021-11-13T18:46:55.000Z | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
#define MOD 1e9+7
#define deb(x) cout << #x << "=" << x << endl
int PeakElement(vector<int> &value)
{
int n=value.size(), start=0, end=n-1, mid;
while(start<=end)
{
mid=start+((end-start)/2);
if(n==1 || value[... | 17.283951 | 104 | 0.553571 | [
"vector"
] |
d0b099bfe335d2634f34168cab770cbe88fa38e9 | 5,038 | cpp | C++ | Miracle/src/Miracle/Graphics/Implementations/Vulkan/PhysicalDeviceSelector.cpp | McFlyboy/Miracle | 03a41bb8e24ecf2dfc18b5e3aee964640ec9a593 | [
"MIT"
] | null | null | null | Miracle/src/Miracle/Graphics/Implementations/Vulkan/PhysicalDeviceSelector.cpp | McFlyboy/Miracle | 03a41bb8e24ecf2dfc18b5e3aee964640ec9a593 | [
"MIT"
] | 3 | 2021-12-10T23:19:29.000Z | 2022-03-27T05:04:14.000Z | Miracle/src/Miracle/Graphics/Implementations/Vulkan/PhysicalDeviceSelector.cpp | McFlyboy/Miracle | 03a41bb8e24ecf2dfc18b5e3aee964640ec9a593 | [
"MIT"
] | null | null | null | #include "PhysicalDeviceSelector.hpp"
#include <cstring>
#include <optional>
#include <fmt/format.h>
#include <Miracle/MiracleError.hpp>
#include <Miracle/components/Miracle/Diagnostics/Logger.hpp>
using namespace Miracle::Diagnostics;
namespace Miracle::Graphics::Implementations::Vulkan {
std::variant<MiracleErr... | 31.098765 | 123 | 0.762207 | [
"vector"
] |
d0b714858719f07a1b0fc8a693e43c700c8144a7 | 11,864 | cpp | C++ | src/Core/EulerOps/GlueVert.cpp | lsimic/AobaAPI | 5bb17a1055cd1621eebeb91844c2f8b4a3572cb8 | [
"MIT"
] | 9 | 2021-05-16T19:49:09.000Z | 2021-12-02T17:42:30.000Z | src/Core/EulerOps/GlueVert.cpp | lsimic/AobaAPI | 5bb17a1055cd1621eebeb91844c2f8b4a3572cb8 | [
"MIT"
] | null | null | null | src/Core/EulerOps/GlueVert.cpp | lsimic/AobaAPI | 5bb17a1055cd1621eebeb91844c2f8b4a3572cb8 | [
"MIT"
] | null | null | null | #include "AobaAPI/Core/EulerOps.hpp"
#include "AobaAPI/Core/Mesh.hpp"
#include <algorithm>
namespace Aoba {
namespace Core {
void deleteMergeableFaces(Edge* v1e1, Edge* v1e2, Edge* v2e1, Edge* v2e2) {
// check if v1e1, v1e2 share a face
std::vector<Face*> facesv1 = std::vector<Face*>();
for(Face* fe1 : v... | 34.190202 | 113 | 0.472353 | [
"mesh",
"vector"
] |
d0b9d41f41e0cbd9e9ca83e31f90d7965f16864e | 32,232 | cc | C++ | examples/pxScene2d/external/libnode-v10.15.3/deps/v8/src/x64/code-stubs-x64.cc | madanagopaltcomcast/pxCore | c4a3a40a190521c8b6383d126c87612eca5b3c42 | [
"Apache-2.0"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | examples/pxScene2d/external/libnode-v10.15.3/deps/v8/src/x64/code-stubs-x64.cc | madanagopaltcomcast/pxCore | c4a3a40a190521c8b6383d126c87612eca5b3c42 | [
"Apache-2.0"
] | 1,432 | 2017-06-21T04:08:48.000Z | 2020-08-25T16:21:15.000Z | examples/pxScene2d/external/libnode-v10.15.3/deps/v8/src/x64/code-stubs-x64.cc | madanagopaltcomcast/pxCore | c4a3a40a190521c8b6383d126c87612eca5b3c42 | [
"Apache-2.0"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2013 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#if V8_TARGET_ARCH_X64
#include "src/api-arguments.h"
#include "src/bootstrapper.h"
#include "src/code-stubs.h"
#include "src/counters.h"
#include "src... | 35.85317 | 80 | 0.716183 | [
"object",
"vector"
] |
d0c2466be038c3091f651fca89e378eb811111f8 | 1,058 | cc | C++ | arc090_a.cc | mnrn/xxx-coder | 2db331c57f15fbd36fbb61a5526afc07af010727 | [
"MIT"
] | null | null | null | arc090_a.cc | mnrn/xxx-coder | 2db331c57f15fbd36fbb61a5526afc07af010727 | [
"MIT"
] | null | null | null | arc090_a.cc | mnrn/xxx-coder | 2db331c57f15fbd36fbb61a5526afc07af010727 | [
"MIT"
] | null | null | null | // #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a); i < int(b); ++i)
#define RFOR(i, a, b) for (int i = (b)-1; i >= int(a); --i)
#define REP(i, n) FOR(i, 0, n)
#define REP1(i, n) FOR(i, 1, int(n) + 1)
#define RREP(i, n) RFOR(i, 0, n)
#define RREP1(i, n) RFOR(i, 1, int(n) + 1)
#def... | 20.745098 | 62 | 0.546314 | [
"vector"
] |
d0c3b2c8f4409fe1e0099dfb09f900411463eceb | 27,595 | cpp | C++ | src/Connection_uLimeSDR/Connection_uLimeSDR.cpp | bastille-attic/LimeSuite | 761805c75b1ae1e0ec9b8c6c182ebd058a088ab8 | [
"Apache-2.0"
] | null | null | null | src/Connection_uLimeSDR/Connection_uLimeSDR.cpp | bastille-attic/LimeSuite | 761805c75b1ae1e0ec9b8c6c182ebd058a088ab8 | [
"Apache-2.0"
] | null | null | null | src/Connection_uLimeSDR/Connection_uLimeSDR.cpp | bastille-attic/LimeSuite | 761805c75b1ae1e0ec9b8c6c182ebd058a088ab8 | [
"Apache-2.0"
] | null | null | null | /**
@file Connection_uLimeSDR.cpp
@author Lime Microsystems
@brief Implementation of STREAM board connection.
*/
#include "Connection_uLimeSDR.h"
#include "ErrorReporting.h"
#include <cstring>
#include <iostream>
#include <thread>
#include <chrono>
using namespace std;
using namespace lime;
#defi... | 31.718391 | 153 | 0.649864 | [
"object",
"vector"
] |
d0cad70ece35a56d5bd7d48be2da034946c71fb3 | 799 | cpp | C++ | box2constantvolumejoint.cpp | FrankMamuda/qml-box2d | 7fcf844b00f635ad68842f0e0473390c4095ad10 | [
"Zlib"
] | null | null | null | box2constantvolumejoint.cpp | FrankMamuda/qml-box2d | 7fcf844b00f635ad68842f0e0473390c4095ad10 | [
"Zlib"
] | null | null | null | box2constantvolumejoint.cpp | FrankMamuda/qml-box2d | 7fcf844b00f635ad68842f0e0473390c4095ad10 | [
"Zlib"
] | null | null | null | /*
* includes
*/
#include "box2constantvolumejoint.h"
/**
* @brief Box2DConstantVolumeJoint::Box2DConstantVolumeJoint
* @param parent
*/
Box2DConstantVolumeJoint::Box2DConstantVolumeJoint( QObject *parent )
: Box2DJoint( ConstantVolumeJoint, parent ) {}
/**
* @brief Box2DConstantVolumeJoint::createJoint
* ... | 25.774194 | 69 | 0.708385 | [
"vector"
] |
d0cbc7ec6986ff44450cea2748a40f57fab79c36 | 1,424 | cpp | C++ | cpp/src/exercise/e0100/e0054.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/exercise/e0100/e0054.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/exercise/e0100/e0054.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | #include "extern.h"
class Solution {
public:
vector<int> spiralOrder(vector<vector<int>>& matrix) {
if (matrix.empty() || matrix[0].empty()) return {};
int row_num = matrix.size(), col_num = matrix[0].size();
vector<int> result; result.reserve(row_num * col_num);
vector<vector<bool>... | 33.904762 | 85 | 0.494382 | [
"vector"
] |
d0d1407e7a4072716210444e544607382beeb7d5 | 54,978 | cpp | C++ | unittests/emitc_mhlo.cpp | OliverScherf/mlir-emitc | af6a34bee5563bf71a218a93139da0e25cd9b2a5 | [
"Apache-2.0"
] | 39 | 2020-06-25T10:21:36.000Z | 2022-03-27T21:01:42.000Z | unittests/emitc_mhlo.cpp | OliverScherf/mlir-emitc | af6a34bee5563bf71a218a93139da0e25cd9b2a5 | [
"Apache-2.0"
] | 63 | 2020-09-22T23:19:01.000Z | 2022-03-30T14:19:57.000Z | unittests/emitc_mhlo.cpp | OliverScherf/mlir-emitc | af6a34bee5563bf71a218a93139da0e25cd9b2a5 | [
"Apache-2.0"
] | 9 | 2020-09-17T04:16:00.000Z | 2022-01-20T10:40:09.000Z | // 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distribute... | 35.401159 | 127 | 0.569028 | [
"3d"
] |
d0e41c55d83025696b941488e14a3e06bbc91706 | 6,936 | cpp | C++ | vehicle/OVMS.V3/components/dbc/src/dbc_app.cpp | mmezog/Open-Vehicle-Monitoring-System-3 | ed7e6288708e6f24f3e1148d6320f1c5e7023346 | [
"MIT"
] | 1 | 2018-10-21T14:32:14.000Z | 2018-10-21T14:32:14.000Z | vehicle/OVMS.V3/components/dbc/src/dbc_app.cpp | mmezog/Open-Vehicle-Monitoring-System-3 | ed7e6288708e6f24f3e1148d6320f1c5e7023346 | [
"MIT"
] | null | null | null | vehicle/OVMS.V3/components/dbc/src/dbc_app.cpp | mmezog/Open-Vehicle-Monitoring-System-3 | ed7e6288708e6f24f3e1148d6320f1c5e7023346 | [
"MIT"
] | null | null | null | /*
; Project: Open Vehicle Monitor System
; Date: 14th March 2017
;
; Changes:
; 1.0 Initial release
;
; (C) 2011 Michael Stegen / Stegen Electronics
; (C) 2011-2017 Mark Webb-Johnson
; (C) 2011 Sonny Chen @ EPRO/DX
;
; Permission is hereby granted, free of charge, to a... | 29.142857 | 103 | 0.612313 | [
"vector"
] |
d0e8e393e128ef2405b96319483ae42a9cdfc4a2 | 443 | cpp | C++ | Cplus/PowerfulIntegers.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | 1 | 2018-01-22T12:06:28.000Z | 2018-01-22T12:06:28.000Z | Cplus/PowerfulIntegers.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | Cplus/PowerfulIntegers.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <unordered_set>
#include <vector>
using namespace std;
class Solution
{
public:
vector<int> powerfulIntegers(int x, int y, int bound)
{
unordered_set<int> res;
for (int i = 1; i <= bound; i *= x)
{
for (int j = 1; j <= bound; j *= y)
{
if (i + j <= bound)
res.insert... | 17.038462 | 54 | 0.55079 | [
"vector"
] |
d0ec7dae3763167c38aa78f1af90a3cfd3881c05 | 6,757 | cpp | C++ | gamelift/src/gamelift.cpp | samuel-strangequest/defold-gamelift | 32db4d1cab1539712f30d24fdde1d809532f74f8 | [
"MIT"
] | null | null | null | gamelift/src/gamelift.cpp | samuel-strangequest/defold-gamelift | 32db4d1cab1539712f30d24fdde1d809532f74f8 | [
"MIT"
] | null | null | null | gamelift/src/gamelift.cpp | samuel-strangequest/defold-gamelift | 32db4d1cab1539712f30d24fdde1d809532f74f8 | [
"MIT"
] | null | null | null | // Extension lib defines
#define LIB_NAME "Gamelift"
#define MODULE_NAME "gamelift"
#define DLIB_LOG_DOMAIN "Gamelift"
#define GAMELIFT_USE_STD 1
#include <dmsdk/sdk.h>
#include <aws/gamelift/server/GameLiftServerAPI.h>
#include "gamelift.h"
#include "luautils.h"
#include <stdlib.h>
#include <string.h>
void GameLi... | 31.282407 | 164 | 0.745153 | [
"model"
] |
d0f10fa6c194f62bdde5c130fd9acd0cb8600460 | 4,364 | cpp | C++ | src/FastRoute/src/SteinerTree.cpp | ax3ghazy/OpenROAD | 2d41acd184d2fb5c551fbdb1f74bbe73a782de6f | [
"BSD-3-Clause-Clear"
] | null | null | null | src/FastRoute/src/SteinerTree.cpp | ax3ghazy/OpenROAD | 2d41acd184d2fb5c551fbdb1f74bbe73a782de6f | [
"BSD-3-Clause-Clear"
] | null | null | null | src/FastRoute/src/SteinerTree.cpp | ax3ghazy/OpenROAD | 2d41acd184d2fb5c551fbdb1f74bbe73a782de6f | [
"BSD-3-Clause-Clear"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////
//
// BSD 3-Clause License
//
// Copyright (c) 2019, University of California, San Diego.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the follow... | 26.609756 | 80 | 0.622365 | [
"vector"
] |
d0f4e5f4d3670409518983a9e1e4304c1a36f0ef | 25,183 | cpp | C++ | ColliderBit/src/ColliderBit_Higgs.cpp | GambitBSM/gambit_2.0 | a4742ac94a0352585a3b9dcb9b222048a5959b91 | [
"Unlicense"
] | 1 | 2021-09-17T22:53:26.000Z | 2021-09-17T22:53:26.000Z | ColliderBit/src/ColliderBit_Higgs.cpp | GambitBSM/gambit_2.0 | a4742ac94a0352585a3b9dcb9b222048a5959b91 | [
"Unlicense"
] | 3 | 2021-07-22T11:23:48.000Z | 2021-08-22T17:24:41.000Z | ColliderBit/src/ColliderBit_Higgs.cpp | GambitBSM/gambit_2.0 | a4742ac94a0352585a3b9dcb9b222048a5959b91 | [
"Unlicense"
] | 1 | 2021-08-14T10:31:41.000Z | 2021-08-14T10:31:41.000Z | // GAMBIT: Global and Modular BSM Inference Tool
// *********************************************
/// \file
///
/// Functions of ColliderBit that deal exclusively with Higgs physics
/// some functions were originally in CollderBit.cpp
///
/// *********************************************
///
/// Authors (add n... | 41.283607 | 171 | 0.580868 | [
"object",
"vector",
"model"
] |
d0fc7e0d4d0544d7e899426732feafa5bb01d978 | 6,020 | cpp | C++ | main/inet/Xprt.cpp | semmerson/hycast | 683f10a6a8b47501ecf4f2e619e7b64c039f4f1c | [
"Apache-2.0"
] | null | null | null | main/inet/Xprt.cpp | semmerson/hycast | 683f10a6a8b47501ecf4f2e619e7b64c039f4f1c | [
"Apache-2.0"
] | 12 | 2017-03-29T21:39:38.000Z | 2017-12-07T18:09:09.000Z | main/inet/Xprt.cpp | semmerson/hycast | 683f10a6a8b47501ecf4f2e619e7b64c039f4f1c | [
"Apache-2.0"
] | 2 | 2018-06-29T16:57:13.000Z | 2020-09-28T20:03:29.000Z | /**
* This file defines a socket-based transport mechanism that is independent of
* the socket's underlying protocol (TCP, UDP, etc.).
*
* @file: Xprt.cpp
* @author: Steven R. Emmerson <emmerson@ucar.edu>
*
* Copyright 2021 University Corporation for Atmospheric Research
*
* Licensed under the Apache Lice... | 25.083333 | 80 | 0.575748 | [
"object"
] |
cb9b916fadab59fca2a51b5ae5e3bb2b19007ddc | 2,672 | cpp | C++ | AAEngine/src/Sound/SoundListener.cpp | archsolar/AncientArcher | 529271c40b2fd2fd51aaa92526cb67248c78ed09 | [
"MIT"
] | null | null | null | AAEngine/src/Sound/SoundListener.cpp | archsolar/AncientArcher | 529271c40b2fd2fd51aaa92526cb67248c78ed09 | [
"MIT"
] | null | null | null | AAEngine/src/Sound/SoundListener.cpp | archsolar/AncientArcher | 529271c40b2fd2fd51aaa92526cb67248c78ed09 | [
"MIT"
] | null | null | null | #include "../Sound/SoundDevice.h"
#include "../Sound/SoundListener.h"
namespace AA {
SoundListener* SoundListener::Get()
{
// make sure sound device is initialized
SoundDevice::Init();
SoundListener* snd_listener = new SoundListener();
return snd_listener;
}
void SoundListener::SetMasterGain(const float& gai... | 21.901639 | 142 | 0.687874 | [
"vector",
"model"
] |
cb9de3f7440ea9854f9dde7af116b7cc729134ff | 531 | hpp | C++ | include/dsp.hpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 2 | 2016-05-21T03:09:19.000Z | 2016-08-27T03:40:51.000Z | include/dsp.hpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 75 | 2017-10-08T22:21:19.000Z | 2020-03-30T21:13:20.000Z | include/dsp.hpp | StratifyLabs/StratifyLib | 975a5c25a84296fd0dec64fe4dc579cf7027abe6 | [
"MIT"
] | 5 | 2018-03-27T16:44:09.000Z | 2020-07-08T16:45:55.000Z | /*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights.
#ifndef SAPI_DSP_HPP_
#define SAPI_DSP_HPP_
/*! \brief Digital Signal Processing
* \details The Digital Signal Processing (dsp) namespace
* includes signal processing algorithms including
* wrappers and data manage... | 23.086957 | 100 | 0.745763 | [
"transform"
] |
cba0a54f3fa060dd4b2cf7cdf5c2af9b9d8e49fc | 2,114 | cpp | C++ | src/tools.cpp | hanshu86/ExtendedKalmanFilter | fb65f57a27319eb9928005b8d4d791ebc95033af | [
"MIT"
] | null | null | null | src/tools.cpp | hanshu86/ExtendedKalmanFilter | fb65f57a27319eb9928005b8d4d791ebc95033af | [
"MIT"
] | null | null | null | src/tools.cpp | hanshu86/ExtendedKalmanFilter | fb65f57a27319eb9928005b8d4d791ebc95033af | [
"MIT"
] | null | null | null | #include "tools.h"
#include <iostream>
using Eigen::VectorXd;
using Eigen::MatrixXd;
using std::vector;
using std::cout;
using std::endl;
Tools::Tools() {}
Tools::~Tools() {}
/**
* Implementation based in Quiz
*/
VectorXd Tools::CalculateRMSE(const vector<VectorXd> &estimations,
const ... | 22.020833 | 80 | 0.635762 | [
"vector"
] |
cbae6fe1dffa52fb72ddd8e50865f0f24801e999 | 8,045 | cc | C++ | media/audio/cras/cras_output_unittest.cc | GnorTech/chromium | e1c7731d5bd099ca5544fcf8eda3867d4ce5bab5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2018-03-10T13:08:49.000Z | 2018-03-10T13:08:49.000Z | media/audio/cras/cras_output_unittest.cc | GnorTech/chromium | e1c7731d5bd099ca5544fcf8eda3867d4ce5bab5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | media/audio/cras/cras_output_unittest.cc | GnorTech/chromium | e1c7731d5bd099ca5544fcf8eda3867d4ce5bab5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T07:19:31.000Z | 2020-11-04T07:19:31.000Z | // Copyright (c) 2012 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 <string>
#include "base/threading/thread.h"
#include "media/audio/cras/audio_manager_cras.h"
#include "media/audio/cras/cras_output.h"
#incl... | 36.238739 | 79 | 0.748291 | [
"render"
] |
cbb244f3ba26d7481aae859a586c585ca4c483f8 | 1,365 | hpp | C++ | src/frontend/DLX/include/DLX/Core/compiler.hpp | maurizioabba/rose | 7597292cf14da292bdb9a4ef573001b6c5b9b6c0 | [
"BSD-3-Clause"
] | 1 | 2019-04-22T09:09:05.000Z | 2019-04-22T09:09:05.000Z | src/frontend/DLX/include/DLX/Core/compiler.hpp | maurizioabba/rose | 7597292cf14da292bdb9a4ef573001b6c5b9b6c0 | [
"BSD-3-Clause"
] | null | null | null | src/frontend/DLX/include/DLX/Core/compiler.hpp | maurizioabba/rose | 7597292cf14da292bdb9a4ef573001b6c5b9b6c0 | [
"BSD-3-Clause"
] | null | null | null | /*!
*
* \file DLX/Core/compiler.hpp
*
* \author Tristan Vanderbruggen
*
*/
#ifndef __DLX_CORE_COMPILER_HPP__
#define __DLX_CORE_COMPILER_HPP__
#include "DLX/Core/directives.hpp"
/*!
* \addtogroup grp_rose
* @{
*/
class SgNode;
class SgSymbol;
typedef SgNode * ast_fragment_t;
/** @} */
namespace DLX {
... | 20.073529 | 142 | 0.718681 | [
"vector"
] |
cbb7b53bff2e97d115758f780ff3b67a35d3ddca | 10,923 | cc | C++ | android/art/openjdkjvmti/ti_search.cc | Solotov/deoptfuscator | 8a54119e81517bcef73d2d6dfefba910ae2446e7 | [
"MIT"
] | 206 | 2020-04-13T03:19:33.000Z | 2022-03-27T13:52:25.000Z | android/art/openjdkjvmti/ti_search.cc | Solotov/deoptfuscator | 8a54119e81517bcef73d2d6dfefba910ae2446e7 | [
"MIT"
] | 9 | 2020-06-07T12:51:09.000Z | 2022-03-28T23:55:09.000Z | android/art/openjdkjvmti/ti_search.cc | Solotov/deoptfuscator | 8a54119e81517bcef73d2d6dfefba910ae2446e7 | [
"MIT"
] | 42 | 2020-04-13T03:37:58.000Z | 2022-03-23T15:08:12.000Z | /* Copyright (C) 2017 The Android Open Source Project
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This file implements interfaces from the file jvmti.h. This implementation
* is licensed under the same terms as the file jvmti.h. The
* copyright and license information for the file jvmti.h ... | 36.289037 | 100 | 0.678843 | [
"object",
"vector"
] |
cbb7d6ec85149b267933cc56de0cbb19726c1c2a | 522 | cpp | C++ | Olympiad Programs/Contest/Way Too Long Words 71A.cpp | mirtaba/ACMICPC-INOI_Archive | ea06e4e40e984f0807410e4f9b5f7042580da2e3 | [
"MIT"
] | 1 | 2020-12-08T11:21:34.000Z | 2020-12-08T11:21:34.000Z | Olympiad Programs/Contest/Way Too Long Words 71A.cpp | mirtaba/ACMICPC-INOI_Archive | ea06e4e40e984f0807410e4f9b5f7042580da2e3 | [
"MIT"
] | null | null | null | Olympiad Programs/Contest/Way Too Long Words 71A.cpp | mirtaba/ACMICPC-INOI_Archive | ea06e4e40e984f0807410e4f9b5f7042580da2e3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include <stack>
#include <queue>
#include <list>
#include <vector>
#include <map>
#include <sstream>
#include <cmath>
#include <bitset>
#include <utility>
#include <set>
#include <numeric>
using namespace... | 13.736842 | 51 | 0.611111 | [
"vector"
] |
cbb820e4b6d911f28d813510df2fe8ab52ec0c85 | 10,195 | cpp | C++ | src/metaspades/src/projects/corrector/dataset_processor.cpp | STRIDES-Codes/Exploring-the-Microbiome- | bd29c8c74d8f40a58b63db28815acb4081f20d6b | [
"MIT"
] | null | null | null | src/metaspades/src/projects/corrector/dataset_processor.cpp | STRIDES-Codes/Exploring-the-Microbiome- | bd29c8c74d8f40a58b63db28815acb4081f20d6b | [
"MIT"
] | null | null | null | src/metaspades/src/projects/corrector/dataset_processor.cpp | STRIDES-Codes/Exploring-the-Microbiome- | bd29c8c74d8f40a58b63db28815acb4081f20d6b | [
"MIT"
] | 2 | 2021-06-05T07:40:20.000Z | 2021-06-05T08:02:58.000Z | //***************************************************************************
//* Copyright (c) 2015 Saint Petersburg State University
//* Copyright (c) 2011-2014 Saint Petersburg Academic University
//* All Rights Reserved
//* See file LICENSE for details.
//************************************************************... | 38.327068 | 157 | 0.622658 | [
"vector"
] |
cbb900cc15d47d164ef4c15c5f13545932504f37 | 16,692 | cpp | C++ | source/polyvec/geometry/path.cpp | ShnitzelKiller/polyfit | 51ddc6365a794db1678459140658211cb78f65b1 | [
"MIT"
] | 27 | 2020-08-17T17:25:59.000Z | 2022-03-01T05:49:12.000Z | source/polyvec/geometry/path.cpp | ShnitzelKiller/polyfit | 51ddc6365a794db1678459140658211cb78f65b1 | [
"MIT"
] | 4 | 2020-08-26T13:54:59.000Z | 2020-09-21T07:19:22.000Z | source/polyvec/geometry/path.cpp | ShnitzelKiller/polyfit | 51ddc6365a794db1678459140658211cb78f65b1 | [
"MIT"
] | 5 | 2020-08-26T23:26:48.000Z | 2021-01-04T09:06:07.000Z | // Header
#include <polyvec/geometry/path.hpp>
// polyvec
#include <polyvec/api.hpp>
#include <polyvec/core/constants.hpp>
#include <polyvec/misc.hpp>
#include <polyvec/geometry/line.hpp>
#include <polyvec/debug.hpp>
#include <polyvec/utils/matrix.hpp>
#include <polyvec/utils/directions.hpp>
#include <polyvec/geometry... | 28.77931 | 170 | 0.663671 | [
"geometry",
"vector"
] |
cbbb1fa35ae79f50c213f84c8b5bb7ab96ce1b62 | 4,248 | cpp | C++ | Level Ancestor Query (LA-problem)/Ladders & Jump pointers:<O(nlog(n),1)>.cpp | yokeshrana/Fast_Algorithms_in_Data_Structures | 2346fee16c6c3ffceac7cb79b1f449b4d8dc9df2 | [
"MIT"
] | 4 | 2021-01-15T16:30:48.000Z | 2021-08-12T03:17:00.000Z | Level Ancestor Query (LA-problem)/Ladders & Jump pointers:<O(nlog(n),1)>.cpp | andy489/Fast_Algorithms_in_Data_Structures | 0f28a75030df3367902f0aa859a34096ea2b2582 | [
"MIT"
] | null | null | null | Level Ancestor Query (LA-problem)/Ladders & Jump pointers:<O(nlog(n),1)>.cpp | andy489/Fast_Algorithms_in_Data_Structures | 0f28a75030df3367902f0aa859a34096ea2b2582 | [
"MIT"
] | 2 | 2021-02-24T14:50:08.000Z | 2021-02-28T17:39:41.000Z | // github.com/andy489
#include <iostream>
#include <vector>
#include <list>
using namespace std;
#define ios ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr)
#define pb push_back
int n, leaves;
vector<list<int>> adj, AL; // adjacency list, All Leaves
vector<int> par, dep, SL, mark, indexP, flog; // ... | 27.057325 | 109 | 0.508239 | [
"vector"
] |
cbc1620c23324238dff215f82196efe201250896 | 2,728 | cc | C++ | roofnet/sr/txcountmetric.cc | kohler/click-packages | cec70da7cf460548ef08f1ddad6924db29d5c0c5 | [
"MIT"
] | 13 | 2015-02-26T23:12:09.000Z | 2021-04-18T04:37:12.000Z | roofnet/sr/txcountmetric.cc | kohoumas/click-packages | 6bb5c4ba286e5dbc74efd1708921d530425691f6 | [
"MIT"
] | null | null | null | roofnet/sr/txcountmetric.cc | kohoumas/click-packages | 6bb5c4ba286e5dbc74efd1708921d530425691f6 | [
"MIT"
] | 7 | 2015-08-25T09:29:41.000Z | 2021-04-18T04:37:13.000Z | /*
* txcountmetric.{cc,hh} -- estimated transmission count (`TXCount') metric
*
* Copyright (c) 2003 Massachusetts Institute of Technology
*
* 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 Soft... | 25.735849 | 77 | 0.653226 | [
"vector"
] |
cbc446a19418fdfe1f2e62f47e3a6a59d5b19e56 | 17,367 | cxx | C++ | main/basic/source/sbx/sbxvar.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/basic/source/sbx/sbxvar.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/basic/source/sbx/sbxvar.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.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 y... | 25.998503 | 117 | 0.646801 | [
"object"
] |
cbc58ec91b83deb5f284c4dca0c7a378438c0faa | 16,801 | hh | C++ | src/fkvb/fdb_helper.hh | IBM/fkvb | f04b647e1f78dec7e73a7172ea234460e5c720e0 | [
"Apache-2.0"
] | 2 | 2021-09-30T13:44:14.000Z | 2022-02-02T12:59:50.000Z | src/fkvb/fdb_helper.hh | IBM/fkvb | f04b647e1f78dec7e73a7172ea234460e5c720e0 | [
"Apache-2.0"
] | null | null | null | src/fkvb/fdb_helper.hh | IBM/fkvb | f04b647e1f78dec7e73a7172ea234460e5c720e0 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2021 International Business Machines
* All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* Authors: Diego Didona (ddi@zurich.ibm.com),
*
*/
#ifndef FDB_HELPER_HH
#define FDB_HELPER_HH
#include "defs.hh"
#include <ticks.hh>
static const int MAX_KEY_SIZE = 2048;
extern thr... | 35.296218 | 125 | 0.583001 | [
"vector"
] |
cbc96e719e0af4b855b1e17b3b5137b1f1f37462 | 13,913 | cpp | C++ | eval/src/vespa/eval/eval/node_types.cpp | amahussein/vespa | 29d266ae1e5c95e25002b97822953fdd02b1451e | [
"Apache-2.0"
] | null | null | null | eval/src/vespa/eval/eval/node_types.cpp | amahussein/vespa | 29d266ae1e5c95e25002b97822953fdd02b1451e | [
"Apache-2.0"
] | 1 | 2021-03-31T22:24:20.000Z | 2021-03-31T22:24:20.000Z | eval/src/vespa/eval/eval/node_types.cpp | amahussein/vespa | 29d266ae1e5c95e25002b97822953fdd02b1451e | [
"Apache-2.0"
] | 1 | 2020-09-03T11:39:52.000Z | 2020-09-03T11:39:52.000Z | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "check_type.h"
#include "node_traverser.h"
#include "node_types.h"
#include <vespa/vespalib/util/stringfmt.h>
#include <vespa/vespalib/util/classname.h>
using vespalib::make_string_short::fm... | 38.222527 | 118 | 0.578955 | [
"vector"
] |
cbd0bdab35e4331c1b718ea2c6d9870457f1088c | 3,367 | cpp | C++ | tests/vec.cpp | amaiorano/noc | f239b6c3a1ef09ba9d35c0ddc8a5b5cae215b425 | [
"MIT"
] | 250 | 2015-06-12T09:14:11.000Z | 2022-03-25T08:44:06.000Z | tests/vec.cpp | amaiorano/noc | f239b6c3a1ef09ba9d35c0ddc8a5b5cae215b425 | [
"MIT"
] | 9 | 2015-06-12T13:19:27.000Z | 2020-12-02T06:48:57.000Z | tests/vec.cpp | amaiorano/noc | f239b6c3a1ef09ba9d35c0ddc8a5b5cae215b425 | [
"MIT"
] | 25 | 2015-06-12T10:13:56.000Z | 2021-03-27T00:35:57.000Z | /* noc_vec.h test code.
*
* Copyright (c) 2015 Guillaume Chereau <guillaume@noctua-software.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without... | 31.46729 | 79 | 0.5842 | [
"vector"
] |
cbd2b6e2f54fcfe13ffca467ed3cd958c41f1699 | 4,861 | cpp | C++ | core-tests/src/reactor/base.cpp | Hetystars/swoole-src | 1693fc6d87159dd1447808a0a14a1ec3ef5f2d93 | [
"Apache-2.0"
] | 11 | 2020-04-22T06:01:37.000Z | 2020-12-07T08:25:08.000Z | core-tests/src/reactor/base.cpp | wangchangkui/swoole-src | ada01b5af50456c64c3a364f4313506b5e04a9f9 | [
"Apache-2.0"
] | null | null | null | core-tests/src/reactor/base.cpp | wangchangkui/swoole-src | ada01b5af50456c64c3a364f4313506b5e04a9f9 | [
"Apache-2.0"
] | null | null | null | #include "tests.h"
#include "swoole/swoole_api.h"
TEST(reactor, swReactor_create)
{
swReactor reactor;
int ret = swReactor_create(&reactor, SW_REACTOR_MAXEVENTS);
ASSERT_EQ(ret, SW_OK);
ASSERT_NE(reactor.object, nullptr);
ASSERT_EQ(reactor.max_event_num, SW_REACTOR_MAXEVENTS);
ASSERT_NE(reac... | 32.192053 | 100 | 0.711993 | [
"object"
] |
cbd475a33bbd5410cdae0128310301d36cc0ff93 | 3,074 | cpp | C++ | Source/Engine/Gameplay/Systems/SEditorCamera.cpp | muit/FecoEngine | b2f8729c0bf0893b770434645c2a0fa8e7717cb7 | [
"Apache-2.0"
] | 3 | 2019-03-01T19:34:26.000Z | 2021-03-31T09:25:16.000Z | Source/Engine/Gameplay/Systems/SEditorCamera.cpp | muit/FecoEngine | b2f8729c0bf0893b770434645c2a0fa8e7717cb7 | [
"Apache-2.0"
] | null | null | null | Source/Engine/Gameplay/Systems/SEditorCamera.cpp | muit/FecoEngine | b2f8729c0bf0893b770434645c2a0fa8e7717cb7 | [
"Apache-2.0"
] | 1 | 2019-01-21T21:45:13.000Z | 2019-01-21T21:45:13.000Z | // Copyright 2015-2019 Piperift - All rights reserved
#include "SEditorCamera.h"
#include "Core/Log.h"
#include "Gameplay/Components/CTransform.h"
#include "Gameplay/Components/CEditorCamera.h"
#include "Core/Engine.h"
void SEditorCamera::Construct()
{
Super::Construct();
input = GEngine->GetInput();
input->C... | 21.647887 | 88 | 0.6838 | [
"transform"
] |
cbddb11782415f30b965052efc21ee5f1645f9c5 | 12,994 | cpp | C++ | Krakoa/Source/Graphics/2D/Renderer2D.cpp | KingKiller100/Krakatoa-Engine | ff07f7328d428c04e06b561b6afd315eea39865c | [
"Apache-2.0"
] | 1 | 2020-04-05T13:37:48.000Z | 2020-04-05T13:37:48.000Z | Krakoa/Source/Graphics/2D/Renderer2D.cpp | KingKiller100/Krakoa-Engine | 0f2a5a5109e256a384abe8dc21eacaa45c1de610 | [
"Apache-2.0"
] | null | null | null | Krakoa/Source/Graphics/2D/Renderer2D.cpp | KingKiller100/Krakoa-Engine | 0f2a5a5109e256a384abe8dc21eacaa45c1de610 | [
"Apache-2.0"
] | null | null | null | #include "Precompile.hpp"
#include "Renderer2D.hpp"
#include "Textures/iTexture2D.hpp"
#include "Textures/SubTexture2d.hpp"
#include "Primitives2D/VertexData.hpp"
#include "Primitives2D/GeometryData.hpp"
#include "Primitives2D/Primitives2D.hpp"
#include "../RenderCommand.hpp"
#include "../ShaderLibrary.hpp"
#include... | 25.133462 | 127 | 0.691781 | [
"transform"
] |
cbec38f5a7b6f5ec32db18c127c2ea2793a4c001 | 2,379 | cpp | C++ | Delete Nodes And Return Forest.cpp | dishanilahiri/LeetCode-Premium | 1882606edac81586edea264d94b215acdac4f8b6 | [
"MIT"
] | null | null | null | Delete Nodes And Return Forest.cpp | dishanilahiri/LeetCode-Premium | 1882606edac81586edea264d94b215acdac4f8b6 | [
"MIT"
] | null | null | null | Delete Nodes And Return Forest.cpp | dishanilahiri/LeetCode-Premium | 1882606edac81586edea264d94b215acdac4f8b6 | [
"MIT"
] | 1 | 2021-06-06T09:46:13.000Z | 2021-06-06T09:46:13.000Z | Question->
Given the root of a binary tree, each node in the tree has a distinct value.
After deleting all nodes with a value in to_delete, we are left with a forest (a disjoint union of trees).
Return the roots of the trees in the remaining forest. You may return the result in any order.
Example 1:
Input: root... | 30.5 | 239 | 0.580916 | [
"vector"
] |
cbefbc87dd63a37e3f82121c925cd008de15a6ef | 703 | cpp | C++ | leetcode/494_Target-Sum/TargetSum3.cpp | chasingegg/Online_Judge | 8a3f4b5b207cbeda921c743a527a25bf9c7b6248 | [
"MIT"
] | 1 | 2017-10-13T10:34:46.000Z | 2017-10-13T10:34:46.000Z | leetcode/494_Target-Sum/TargetSum3.cpp | chasingegg/Online_Judge | 8a3f4b5b207cbeda921c743a527a25bf9c7b6248 | [
"MIT"
] | null | null | null | leetcode/494_Target-Sum/TargetSum3.cpp | chasingegg/Online_Judge | 8a3f4b5b207cbeda921c743a527a25bf9c7b6248 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <cmath>
#include <algorithm>
using namespace std;
class Solution {
public:
int findTargetSumWays(vector<int>& nums, int S) {
if (S < 0) {
S = (-1)*S;
}
int sum = 0;
for (auto& num : nums) {
sum ... | 23.433333 | 58 | 0.446657 | [
"vector"
] |
cbf411ae5f3011089752d2c9d213c9de3d6d1cad | 9,521 | cpp | C++ | source/tests/llassetgen-tests/Packing.cpp | bwasty/openll-asset-generator | ee7b146b1d8493f0744a85aa019e4dc43ff3da29 | [
"MIT"
] | 6 | 2018-07-30T09:41:50.000Z | 2020-07-03T18:47:29.000Z | source/tests/llassetgen-tests/Packing.cpp | bwasty/openll-asset-generator | ee7b146b1d8493f0744a85aa019e4dc43ff3da29 | [
"MIT"
] | 42 | 2017-11-06T12:44:14.000Z | 2018-06-21T14:37:39.000Z | source/tests/llassetgen-tests/Packing.cpp | hpicgs/openll-asset-generator | 39d5a03e492dbdfc839eccb3502e5599bf73d29c | [
"MIT"
] | 1 | 2018-10-19T23:19:25.000Z | 2018-10-19T23:19:25.000Z | #include <gmock/gmock.h>
#include <numeric>
#include <llassetgen/llassetgen.h>
using llassetgen::Packing;
using Vec = llassetgen::Vec2<llassetgen::PackingSizeType>;
using Rect = llassetgen::Rect<llassetgen::PackingSizeType>;
/**
* Base class for all packing test fixtures.
*
* Defines several test methods that s... | 40.862661 | 117 | 0.631656 | [
"vector"
] |
cbf4e3666ef8c002f27bd086b0062805f16146f4 | 37,844 | cpp | C++ | sa_main.cpp | TheHolyJoker/Comparing-Filters | 2c65a4bb2b788b5f0ecbaea33962e26c0c0b0301 | [
"Apache-2.0"
] | 7 | 2021-01-04T12:26:45.000Z | 2022-02-07T18:41:04.000Z | sa_main.cpp | TheHolyJoker/Comparing_Filters | 2e8ac44163847a09beaa72e4f399291907a96891 | [
"Apache-2.0"
] | 1 | 2021-03-15T03:21:30.000Z | 2021-09-08T15:06:22.000Z | sa_main.cpp | TheHolyJoker/Comparing-Filters | 2c65a4bb2b788b5f0ecbaea33962e26c0c0b0301 | [
"Apache-2.0"
] | 1 | 2021-07-06T08:38:42.000Z | 2021-07-06T08:38:42.000Z | #include "dict_approximation_tests.hpp"
void symmetric_difference_for_multiple_filters(size_t n, float PD_load, float CF_load) {
using itemType = uint64_t;
// using Table_ts_CF = ts_cuckoofilter::ts_CuckooFilter<uint64_t, BITS_PER_ELEMENT_MACRO, cuckoofilter::SingleTable>;
using Table_ts_CF12_32 = ts_cuc... | 60.5504 | 177 | 0.689066 | [
"vector"
] |
cbf799ca3c08720107ff1c7872c0b70044b5d6da | 509 | hpp | C++ | app/tgit/src/History.hpp | Templar-von-Midgard/tgit | d3d1f5148d7570d17672b02ae571ba3589d48713 | [
"MIT"
] | 3 | 2019-02-20T11:58:54.000Z | 2021-05-09T00:12:52.000Z | app/tgit/src/History.hpp | Templar-von-Midgard/tgit | d3d1f5148d7570d17672b02ae571ba3589d48713 | [
"MIT"
] | 7 | 2019-02-12T21:15:29.000Z | 2019-03-05T23:41:45.000Z | app/tgit/src/History.hpp | Templar-von-Midgard/tgit | d3d1f5148d7570d17672b02ae571ba3589d48713 | [
"MIT"
] | 3 | 2019-02-20T11:59:34.000Z | 2019-04-16T10:31:46.000Z | #ifndef HISTORY_HPP
#define HISTORY_HPP
#include <vector>
#include <gitpp/ObjectId.hpp>
#include "GraphRow.hpp"
namespace gitpp {
class Repository;
class Commit;
} // namespace gitpp
class History {
public:
explicit History(const gitpp::Repository& repository);
int size() const;
gitpp::Commit commit(int row... | 16.419355 | 56 | 0.732809 | [
"vector"
] |
cbf7b86ac6237f962a81cb2408c0cba5e05826e2 | 1,659 | cpp | C++ | AS-environment.cpp | ede1998/asteroids | d4a8f5e069f55c00fa1dcf6b3c849bce00fcaf0c | [
"MIT"
] | null | null | null | AS-environment.cpp | ede1998/asteroids | d4a8f5e069f55c00fa1dcf6b3c849bce00fcaf0c | [
"MIT"
] | null | null | null | AS-environment.cpp | ede1998/asteroids | d4a8f5e069f55c00fa1dcf6b3c849bce00fcaf0c | [
"MIT"
] | null | null | null | /* *
* file: AS-environment.cpp *
* author: Erik Hennig *
* date: 29.12.2016 *
* abstract: controls environment of asteroids game */
#include "AS-environment.h"
#incl... | 18.433333 | 75 | 0.571429 | [
"render"
] |
020898caa08255660a237a9ae525adf9133baf27 | 1,189 | cpp | C++ | src/1000/1948.cpp17.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/1000/1948.cpp17.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/1000/1948.cpp17.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int INF=-1;
struct edge{int v, c;};
int n, m;
vector<edge> adj[100001], rvs[100001];
int in[100001], dist[100001];
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cin>>n>>m;
while(m--)
{
int a, b, c;
cin>>a>>b>>c;
a... | 18.292308 | 55 | 0.406224 | [
"vector"
] |
020c05b708288e73a18ad99b131fceef7787f93e | 2,009 | cpp | C++ | 0321_cs_test/02.cpp | zhangdan0602/DailyAlgorithm | 2969ed143b16c5c655d39ff3a86ee5f0cabb704a | [
"Apache-2.0"
] | null | null | null | 0321_cs_test/02.cpp | zhangdan0602/DailyAlgorithm | 2969ed143b16c5c655d39ff3a86ee5f0cabb704a | [
"Apache-2.0"
] | null | null | null | 0321_cs_test/02.cpp | zhangdan0602/DailyAlgorithm | 2969ed143b16c5c655d39ff3a86ee5f0cabb704a | [
"Apache-2.0"
] | null | null | null | //
// Created by ZD-Mac on 2021/3/21.
//
/*
* Friend
时间限制: 1.0 秒
空间限制: 512 MiB
题目描述
F 学校有 𝑛 个学生,编号为 1,2,…,𝑛。这些学生之间存在 𝑚 对好友关系。
每对好友关系形如:𝑢𝑗 号学生与 𝑣𝑗 号学生互为好友(1≤𝑗≤𝑚)。
好友关系是双向的,这意味着 𝑢𝑗 号学生是 𝑣𝑗 号学生的好友,同时 𝑣𝑗 号学生也是 𝑢𝑗 号学生的好友。
F 学校要将 𝑛 个学生均匀(等概率)随机地分为若干小组,每组 3 个学生。
保证 𝑛 是 3 的倍数,即能够恰好分完。在分组完毕后,每个组内的好友关系... | 18.431193 | 63 | 0.692384 | [
"vector"
] |
020f06cf958845003b09d960194f0bb3f24199e9 | 4,033 | cpp | C++ | src/dmp_discrete/CanonicalSystemDiscrete.cpp | gsutanto/dmp | 4f4492cf4295d9c3fe0ba9ce2fb726bf37be40df | [
"MIT"
] | null | null | null | src/dmp_discrete/CanonicalSystemDiscrete.cpp | gsutanto/dmp | 4f4492cf4295d9c3fe0ba9ce2fb726bf37be40df | [
"MIT"
] | null | null | null | src/dmp_discrete/CanonicalSystemDiscrete.cpp | gsutanto/dmp | 4f4492cf4295d9c3fe0ba9ce2fb726bf37be40df | [
"MIT"
] | null | null | null | #include "dmp/dmp_discrete/CanonicalSystemDiscrete.h"
namespace dmp {
CanonicalSystemDiscrete::CanonicalSystemDiscrete()
: CanonicalSystem(),
order(2),
alpha(25.0),
beta(25.0 / 4.0),
x(0),
xd(0),
xdd(0),
v(0),
vd(0) {}
CanonicalSystemDiscrete::CanonicalSystemDiscre... | 22.530726 | 79 | 0.6303 | [
"vector"
] |
021195b4badbd50ba1dc7effc346370f35091b25 | 2,992 | cpp | C++ | src/ar_render_node.cpp | Tuebel/scigl_render_ros | 6afa6b6981a7fb6b51f3a719a8143600e7bd39e7 | [
"MIT"
] | null | null | null | src/ar_render_node.cpp | Tuebel/scigl_render_ros | 6afa6b6981a7fb6b51f3a719a8143600e7bd39e7 | [
"MIT"
] | null | null | null | src/ar_render_node.cpp | Tuebel/scigl_render_ros | 6afa6b6981a7fb6b51f3a719a8143600e7bd39e7 | [
"MIT"
] | null | null | null | #include <scigl_render_ros/ar_render_node.hpp>
#include <scigl_render_ros/camera_init.hpp>
namespace scigl_render_ros
{
const std::string CAMERA_TOPIC = "camera/color/image_raw";
ArRenderNode::ArRenderNode() : tf_listener(tf_buffer),
img_transport(node_handle)
{
ros::NodeHandle privat... | 36.048193 | 83 | 0.606283 | [
"render",
"object",
"model"
] |
021b5ae1bbb3408f54647d3d71048c13b079a9c2 | 2,228 | hpp | C++ | module-db/Tables/CountryCodesTable.hpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 369 | 2021-11-10T09:20:29.000Z | 2022-03-30T06:36:58.000Z | module-db/Tables/CountryCodesTable.hpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 149 | 2021-11-10T08:38:35.000Z | 2022-03-31T23:01:52.000Z | module-db/Tables/CountryCodesTable.hpp | bitigchi/MuditaOS | 425d23e454e09fd6ae274b00f8d19c57a577aa94 | [
"BSL-1.0"
] | 41 | 2021-11-10T08:30:37.000Z | 2022-03-29T08:12:46.000Z | // Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "Common/Common.hpp"
#include "Database/Database.hpp"
#include "Record.hpp"
#include "Table.hpp"
#include "utf8/UTF8.hpp"
#include <string>
struct CodesTableRow :... | 29.315789 | 93 | 0.560592 | [
"vector"
] |
02215d39c53aeaa1d1065573ba6bf82e5da55870 | 2,078 | cpp | C++ | src/limitless/models/plane.cpp | hotstreams/graphicsengine | 47736452f1f4d977f60354900ee4a81dca47ca0d | [
"MIT"
] | null | null | null | src/limitless/models/plane.cpp | hotstreams/graphicsengine | 47736452f1f4d977f60354900ee4a81dca47ca0d | [
"MIT"
] | null | null | null | src/limitless/models/plane.cpp | hotstreams/graphicsengine | 47736452f1f4d977f60354900ee4a81dca47ca0d | [
"MIT"
] | null | null | null | #include <limitless/models/plane.hpp>
using namespace Limitless;
#include <limitless/util/tangent_space.hpp>
#include <limitless/models/mesh.hpp>
#include <limitless/core/indexed_stream.hpp>
Plane::Plane() : ElementaryModel("plane") {
/* Plane size (1, 0, 1) centered at (0, 0, 0) */
std::vector<VertexNormalT... | 36.45614 | 168 | 0.546679 | [
"mesh",
"vector"
] |
022e7a566e34d4536ece418e2635ae907f56e342 | 1,448 | hpp | C++ | src/synth/voice.hpp | faemiyah/faemiyah-demoscene_2016-08_80k-intro_ghosts_of_mars | 69a79a8cb68591c834989e89be530a1a94fb02c2 | [
"BSD-3-Clause"
] | null | null | null | src/synth/voice.hpp | faemiyah/faemiyah-demoscene_2016-08_80k-intro_ghosts_of_mars | 69a79a8cb68591c834989e89be530a1a94fb02c2 | [
"BSD-3-Clause"
] | null | null | null | src/synth/voice.hpp | faemiyah/faemiyah-demoscene_2016-08_80k-intro_ghosts_of_mars | 69a79a8cb68591c834989e89be530a1a94fb02c2 | [
"BSD-3-Clause"
] | null | null | null | #ifndef _VOICE_H_
#define _VOICE_H_
#include "types.hpp"
#include "instrument.hpp"
#include "controller.hpp"
#include "globalconfig.hpp"
#include <cstdint>
class Voice {
static const unsigned int OVERSAMPLE_FACTOR = 4;
Vector<uint32_t> osc_ctr;
// Current voice params. Initialized from instrument on note ... | 26.814815 | 93 | 0.699586 | [
"vector"
] |
0230fc13f3c6d0e0bdad949cc473ab218e0a540e | 47,364 | cpp | C++ | src/Tensor.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 11 | 2020-04-14T15:45:42.000Z | 2022-03-31T14:37:03.000Z | src/Tensor.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 38 | 2019-08-02T15:15:51.000Z | 2022-03-04T19:07:02.000Z | src/Tensor.cpp | j9263178/Cytnx | cf7fb1cff75c1cea14fbbc370fd8e4d86d0ddc8b | [
"Apache-2.0"
] | 7 | 2019-07-17T07:50:55.000Z | 2021-07-03T06:44:52.000Z | #include <typeinfo>
#include "Tensor.hpp"
#include "utils/utils_internal_interface.hpp"
#include "linalg.hpp"
#include "utils/is.hpp"
using namespace std;
namespace cytnx{
//----------------------------------------------
//Tproxy
Tensor Tensor::Tproxy::operator+=(const Tensor::Tproxy &rc)... | 37.441897 | 138 | 0.575331 | [
"object",
"shape",
"vector"
] |
023f10faf21e6535bf67b68b829fe9a466737539 | 4,810 | cpp | C++ | src/Tools/ArcTool.cpp | HerrNamenlos123/TechnicalSketcher | 90c5af44dcaa6060dc202fddb38ea9d869bea194 | [
"MIT"
] | null | null | null | src/Tools/ArcTool.cpp | HerrNamenlos123/TechnicalSketcher | 90c5af44dcaa6060dc202fddb38ea9d869bea194 | [
"MIT"
] | null | null | null | src/Tools/ArcTool.cpp | HerrNamenlos123/TechnicalSketcher | 90c5af44dcaa6060dc202fddb38ea9d869bea194 | [
"MIT"
] | null | null | null |
#include "pch.h"
#include "Tools/ArcTool.h"
#include "Navigator.h"
static float mag(const glm::vec2& v) {
return sqrt(pow(v.x, 2) + pow(v.y, 2));
}
//
// double angle(const glm::vec2& v);
//
// Angle from X-Axis to vector, range 0 to 360 counterclockwise
//
// Y
// | P
// | /
// | /... | 26.284153 | 133 | 0.663825 | [
"shape",
"vector"
] |
02420c8743bb29f34a32dec70477a348d239e934 | 2,534 | hpp | C++ | include/codegen/include/UnityEngine/Playables/PlayableBinding_CreateOutputMethod.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/Playables/PlayableBinding_CreateOutputMethod.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/Playables/PlayableBinding_CreateOutputMethod.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:32 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.MulticastDelegate
#include "System/MulticastDelegate.... | 48.730769 | 162 | 0.766377 | [
"object"
] |
02430356d95d5a8981234bd1dc31d2f479ed9b68 | 9,736 | hpp | C++ | install/halodi_msgs/include/halodi_msgs/msg/whole_body_state__struct.hpp | AHGOverbeek/halodi-messages | 4286676cb85cc4d5b2684523c1482afc9eef6ec9 | [
"Apache-2.0"
] | null | null | null | install/halodi_msgs/include/halodi_msgs/msg/whole_body_state__struct.hpp | AHGOverbeek/halodi-messages | 4286676cb85cc4d5b2684523c1482afc9eef6ec9 | [
"Apache-2.0"
] | 3 | 2020-11-05T14:53:41.000Z | 2021-04-27T13:40:47.000Z | install/halodi_msgs/include/halodi_msgs/msg/whole_body_state__struct.hpp | AHGOverbeek/halodi-messages | 4286676cb85cc4d5b2684523c1482afc9eef6ec9 | [
"Apache-2.0"
] | 1 | 2021-10-05T14:08:08.000Z | 2021-10-05T14:08:08.000Z | // generated from rosidl_generator_cpp/resource/idl__struct.hpp.em
// with input from halodi_msgs:msg/WholeBodyState.idl
// generated code does not contain a copyright notice
#ifndef HALODI_MSGS__MSG__WHOLE_BODY_STATE__STRUCT_HPP_
#define HALODI_MSGS__MSG__WHOLE_BODY_STATE__STRUCT_HPP_
#include <rosidl_generator_cpp/... | 34.524823 | 225 | 0.752876 | [
"vector"
] |
0243cc91d60336eeec2e78f55be73968579cf7a0 | 3,100 | cc | C++ | bubblesmp/generators/halton-sequence-generator.cc | adnanademovic/bubbles-motion-planning | 0532e557913053f57e859f7b5aa7b8d4467fac09 | [
"BSD-2-Clause"
] | null | null | null | bubblesmp/generators/halton-sequence-generator.cc | adnanademovic/bubbles-motion-planning | 0532e557913053f57e859f7b5aa7b8d4467fac09 | [
"BSD-2-Clause"
] | null | null | null | bubblesmp/generators/halton-sequence-generator.cc | adnanademovic/bubbles-motion-planning | 0532e557913053f57e859f7b5aa7b8d4467fac09 | [
"BSD-2-Clause"
] | null | null | null | //
// Copyright (c) 2015, Adnan Ademovic
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice, this
// list of condit... | 38.271605 | 81 | 0.705161 | [
"vector"
] |
024be64405a04e6dabb5f98fcf2113d40840d28e | 9,766 | cpp | C++ | src_example/oauth2-google/main.cpp | bradosia/BookFiler-Module-HTTP-Curl | 7a4b81badb32391a9f640babd676cdf81d6e1f39 | [
"MIT"
] | null | null | null | src_example/oauth2-google/main.cpp | bradosia/BookFiler-Module-HTTP-Curl | 7a4b81badb32391a9f640babd676cdf81d6e1f39 | [
"MIT"
] | null | null | null | src_example/oauth2-google/main.cpp | bradosia/BookFiler-Module-HTTP-Curl | 7a4b81badb32391a9f640babd676cdf81d6e1f39 | [
"MIT"
] | null | null | null | /*
* @name BookFiler Module - HTTP w/ Curl
* @author Branden Lee
* @version 1.00
* @license MIT
* @brief HTTP module for BookFiler™ applications.
*/
// C++
#include <sstream>
#include <thread>
// Bookfiler Modules
#include <BookFilerModuleHttpLoader.hpp>
std::mutex globalMutex;
std::string authCode, userId, ac... | 35.129496 | 80 | 0.589392 | [
"object"
] |
0251834136c76b38fa4a63c5c38333b7bad13496 | 39,030 | cpp | C++ | frameworks/bridge/declarative_frontend/engine/jsi/jsi_declarative_engine.cpp | openharmony-gitee-mirror/ace_ace_engine | 78013960cdce81348d1910e466a3292605442a5e | [
"Apache-2.0"
] | null | null | null | frameworks/bridge/declarative_frontend/engine/jsi/jsi_declarative_engine.cpp | openharmony-gitee-mirror/ace_ace_engine | 78013960cdce81348d1910e466a3292605442a5e | [
"Apache-2.0"
] | null | null | null | frameworks/bridge/declarative_frontend/engine/jsi/jsi_declarative_engine.cpp | openharmony-gitee-mirror/ace_ace_engine | 78013960cdce81348d1910e466a3292605442a5e | [
"Apache-2.0"
] | 1 | 2021-09-13T11:17:50.000Z | 2021-09-13T11:17:50.000Z | /*
* Copyright (c) 2021 Huawei Device 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 ... | 35.807339 | 119 | 0.67917 | [
"object",
"vector"
] |
0256a5fc27cd8a07babc4596830d2b343a02dec1 | 7,164 | cpp | C++ | pong/main.cpp | pixelsquare/pong-opengl | af8f59ce2a33d286265f49b697495a3e4db54e3b | [
"MIT"
] | null | null | null | pong/main.cpp | pixelsquare/pong-opengl | af8f59ce2a33d286265f49b697495a3e4db54e3b | [
"MIT"
] | null | null | null | pong/main.cpp | pixelsquare/pong-opengl | af8f59ce2a33d286265f49b697495a3e4db54e3b | [
"MIT"
] | null | null | null | #include "header.h"
#define __HEADER_H__
#include <stdio.h>
#include <conio.h>
void main(int argc, char **argv)
{
GLUTmain(argc, argv);
srand(time(NULL));
}
void Scene()
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
gluLookAt(LookX, LookY, LookZ... | 18.65625 | 73 | 0.519403 | [
"object"
] |
0257a3384f5696f1b5511d437a73febce04948f9 | 4,934 | cpp | C++ | src/Meta/math/atlas2.cpp | MadManRises/Madgine | c9949bc9cf8b30d63db0da2382c9fbc5b60bcd0f | [
"MIT"
] | 5 | 2018-05-16T14:09:34.000Z | 2019-10-24T19:01:15.000Z | src/Meta/math/atlas2.cpp | MadManRises/Madgine | c9949bc9cf8b30d63db0da2382c9fbc5b60bcd0f | [
"MIT"
] | 71 | 2017-06-20T06:41:42.000Z | 2021-01-11T11:18:53.000Z | src/Meta/math/atlas2.cpp | MadManRises/Madgine | c9949bc9cf8b30d63db0da2382c9fbc5b60bcd0f | [
"MIT"
] | 2 | 2018-05-16T13:57:25.000Z | 2018-05-16T13:57:51.000Z | #include "../metalib.h"
#include "atlas2.h"
#include "common.h"
namespace Engine {
static std::tuple<float, int, bool> getScore(Atlas2::Bin &bin, const Vector2i &binSize, const Vector2i &size, bool allowFlip)
{
float score = 0;
int cornerIndex;
bool flipped;
for (int index = 0; index < bin.mCorners... | 31.628205 | 130 | 0.569315 | [
"vector",
"transform"
] |
0268c153ed931270e76b15157e769a9f2e049363 | 14,599 | cpp | C++ | example/full_sample/full_sample.cpp | icerlion/FlyRedis | 3cac60c67b0c117da55b5fc404fd6d9cd939e8b1 | [
"Apache-2.0"
] | 19 | 2019-05-24T07:26:19.000Z | 2022-03-25T13:14:45.000Z | example/full_sample/full_sample.cpp | icerlion/FlyRedis | 3cac60c67b0c117da55b5fc404fd6d9cd939e8b1 | [
"Apache-2.0"
] | 7 | 2020-05-27T09:12:59.000Z | 2021-12-18T17:32:29.000Z | example/full_sample/full_sample.cpp | icerlion/FlyRedis | 3cac60c67b0c117da55b5fc404fd6d9cd939e8b1 | [
"Apache-2.0"
] | 4 | 2020-06-09T09:56:18.000Z | 2020-10-28T09:07:35.000Z | #include "FlyRedis/FlyRedis.h"
#include "boost/thread.hpp"
void Logger(const char* pszLevel, const char* pszMsg)
{
int nCurTime = (int)time(nullptr);
printf("%d - %s - %s\n", nCurTime, pszLevel, pszMsg);
}
void LoggerDebug(const char* pszMsg)
{
Logger("Debug", pszMsg);
}
void LoggerNotice(con... | 40.893557 | 202 | 0.573258 | [
"vector"
] |
02693ed1facdfce11f098527204cfcbb24fd7aec | 42,999 | cpp | C++ | DialogTools/VarGroupingEditorDlg.cpp | chenyoujie/GeoDa | 87504344512bd0da2ccadfb160ecd1e918a52f06 | [
"BSL-1.0"
] | null | null | null | DialogTools/VarGroupingEditorDlg.cpp | chenyoujie/GeoDa | 87504344512bd0da2ccadfb160ecd1e918a52f06 | [
"BSL-1.0"
] | null | null | null | DialogTools/VarGroupingEditorDlg.cpp | chenyoujie/GeoDa | 87504344512bd0da2ccadfb160ecd1e918a52f06 | [
"BSL-1.0"
] | null | null | null | /**
* GeoDa TM, Copyright (C) 2011-2015 by Luc Anselin - all rights reserved
*
* This file is part of GeoDa.
*
* GeoDa is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, o... | 30.867911 | 236 | 0.670318 | [
"vector"
] |
026de3c8a098904b4f9d74ae042ad90210ede168 | 37,125 | cpp | C++ | Tram.Engine/VulkanRenderer.cpp | eduardojonssen/Tram | 82eb517ed63b72dde4395fd766e524e280147c6b | [
"MIT"
] | null | null | null | Tram.Engine/VulkanRenderer.cpp | eduardojonssen/Tram | 82eb517ed63b72dde4395fd766e524e280147c6b | [
"MIT"
] | null | null | null | Tram.Engine/VulkanRenderer.cpp | eduardojonssen/Tram | 82eb517ed63b72dde4395fd766e524e280147c6b | [
"MIT"
] | null | null | null | #include "VulkanRenderer.h"
#include <iostream>
#include <exception>
#include <string>
#include <set>
#include <array>
#include "FileStream.h"
#include "glm/glm.hpp"
struct Vertex {
glm::vec2 pos;
glm::vec3 color;
static VkVertexInputBindingDescription GetBindingDescription() {
VkVertexInputBindingDescription b... | 37.199399 | 165 | 0.795609 | [
"render",
"vector"
] |
026edaa2748cb3ea35c5302d003cb09a6d6ec9ef | 2,576 | cpp | C++ | Segment Trees/12086.cpp | enricava/Competitive-Programming | ea39f5c74acc2202f3933f693f6d7f03f5435391 | [
"MIT"
] | null | null | null | Segment Trees/12086.cpp | enricava/Competitive-Programming | ea39f5c74acc2202f3933f693f6d7f03f5435391 | [
"MIT"
] | null | null | null | Segment Trees/12086.cpp | enricava/Competitive-Programming | ea39f5c74acc2202f3933f693f6d7f03f5435391 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <fstream>
#include <algorithm>
#include <vector>
#include <utility>
#include <queue>
#include <sstream>
using namespace std;
int caso = 0;
int v[200000];
class SegmentTree {
vector<int> st;
int tam; // Numero de hojas que manejamos
public:
// Tamano ... | 21.114754 | 53 | 0.526009 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.