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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1f53000bf8e6e30c3a82f53ae863bf695939fab9 | 11,496 | cpp | C++ | neural_network.cpp | codextension/neuralnetwork | ea3e59c32908a578f0e4cae53b7ae658306922da | [
"Apache-2.0"
] | null | null | null | neural_network.cpp | codextension/neuralnetwork | ea3e59c32908a578f0e4cae53b7ae658306922da | [
"Apache-2.0"
] | null | null | null | neural_network.cpp | codextension/neuralnetwork | ea3e59c32908a578f0e4cae53b7ae658306922da | [
"Apache-2.0"
] | null | null | null | //
// Created by elie on 20.10.18.
//
#include "neural_network.h"
namespace cx {
neural_network::neural_network(bool with_bias, double learning_rate, method_type meth_type, int input_size,
int output_size, vector<int> hidden_layers_data, float accuracy) {
this->current_... | 42.420664 | 118 | 0.534795 | [
"vector"
] |
1f53bcc3a2d681b3ce08974fd44f272b11dad038 | 3,793 | cpp | C++ | src/apps/sudoku/SudokuSolver.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/apps/sudoku/SudokuSolver.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/apps/sudoku/SudokuSolver.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | /*
* Copyright 2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include "SudokuSolver.h"
#include "SudokuField.h"
#include "Stack.h"
struct SolutionStep {
public:
SolutionStep(const SudokuField* field);
SolutionStep(const SolutionStep& othe... | 16.140426 | 77 | 0.614553 | [
"vector"
] |
1f53f6812547249ee33cc5dd424e4ab9d557de41 | 7,112 | cpp | C++ | ShaderParser/ShaderSignatureParser.cpp | pocketgems/XLE2 | 82771e9ab1fc3b12927f1687bbe05d4f7dce8765 | [
"MIT"
] | 3 | 2018-05-17T08:39:39.000Z | 2020-12-09T13:20:26.000Z | ShaderParser/ShaderSignatureParser.cpp | pocketgems/XLE2 | 82771e9ab1fc3b12927f1687bbe05d4f7dce8765 | [
"MIT"
] | null | null | null | ShaderParser/ShaderSignatureParser.cpp | pocketgems/XLE2 | 82771e9ab1fc3b12927f1687bbe05d4f7dce8765 | [
"MIT"
] | 1 | 2021-11-14T08:50:15.000Z | 2021-11-14T08:50:15.000Z | // Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "ShaderSignatureParser.h"
#include "NodeGraphSignature.h"
#include "NodeGraph.h" // (just required for s_resultName)
#include "AntlrHelper.h"
#include "Grammar/Shader... | 39.955056 | 136 | 0.759421 | [
"vector"
] |
1f5f2a0102d31660e7f2b684871501427977f010 | 11,577 | cpp | C++ | Sources/Elastos/LibCore/src/elastos/security/AlgorithmParameters.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/LibCore/src/elastos/security/AlgorithmParameters.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/LibCore/src/elastos/security/AlgorithmParameters.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// 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
//
// ... | 33.459538 | 107 | 0.672195 | [
"object"
] |
48f85eb86b8109bf4183517c64ffc753be05f5c0 | 778 | cpp | C++ | src/Lucia/Graphics/Text/Simple.cpp | Polynominal/Lucy3D | a55fc331bc509a69ad7fb70a1eda70c409d22271 | [
"MIT"
] | 1 | 2017-02-22T23:47:22.000Z | 2017-02-22T23:47:22.000Z | src/Lucia/Graphics/Text/Simple.cpp | Polynominal/Lucy3D | a55fc331bc509a69ad7fb70a1eda70c409d22271 | [
"MIT"
] | null | null | null | src/Lucia/Graphics/Text/Simple.cpp | Polynominal/Lucy3D | a55fc331bc509a69ad7fb70a1eda70c409d22271 | [
"MIT"
] | null | null | null | #include "Lucia/Graphics/Text/Simple.h"
using namespace Lucia;
using namespace Graphics;
void Text::Simple::generate(std::string path_to_font,unsigned int fontSize,float width,float height)
{
remove();
text = new Graphics::Text(path_to_font);
text->generate();
projection = new Maths::Ortho(0.0f, wi... | 28.814815 | 100 | 0.690231 | [
"render"
] |
48fdad65abd72b097b3783a1d2d4ec8a44ee0ef9 | 7,860 | hpp | C++ | include/inekf/state_estimator.hpp | mayataka/invariant-ekf | 775d9ab5ac7599fe2fd983b8a907c241c7d3a8e0 | [
"BSD-3-Clause"
] | 1 | 2022-03-28T12:38:09.000Z | 2022-03-28T12:38:09.000Z | include/inekf/state_estimator.hpp | mayataka/inekf | 775d9ab5ac7599fe2fd983b8a907c241c7d3a8e0 | [
"BSD-3-Clause"
] | null | null | null | include/inekf/state_estimator.hpp | mayataka/inekf | 775d9ab5ac7599fe2fd983b8a907c241c7d3a8e0 | [
"BSD-3-Clause"
] | null | null | null | #ifndef INEKF_STATE_ESTIMATOR_HPP_
#define INEKF_STATE_ESTIMATOR_HPP_
#include <string>
#include <vector>
#include <cstdio>
#include <limits>
#include "Eigen/Core"
#include "Eigen/StdVector"
#include "inekf/macros.hpp"
#include "inekf/inekf.hpp"
#include "inekf/robot_state.hpp"
#include "inekf/noise_params.hpp"
#inc... | 37.788462 | 98 | 0.714377 | [
"vector"
] |
5b005ce04b284b8242e6c6687b449375c92808bc | 11,326 | cpp | C++ | test/raw_tree.cpp | ghochee/tree | 21ee770dd80f71c400a3591f408e15a2dcf4106d | [
"MIT"
] | null | null | null | test/raw_tree.cpp | ghochee/tree | 21ee770dd80f71c400a3591f408e15a2dcf4106d | [
"MIT"
] | null | null | null | test/raw_tree.cpp | ghochee/tree | 21ee770dd80f71c400a3591f408e15a2dcf4106d | [
"MIT"
] | null | null | null | #include <iostream>
#define CATCH_CONFIG_MAIN
#include "catch2/catch.hpp"
#include <algorithm>
#include <functional>
#include <iterator>
#include <vector>
#include "tree/raw_tree.h"
#include "raw_tree.h"
using namespace detangled;
using namespace std;
using int_tree = raw_tree<uint32_t>;
TEST_CASE("height0", "[i... | 30.610811 | 79 | 0.477485 | [
"vector"
] |
5b028a1953958570db5761ca8c33903b81296ac5 | 3,469 | hpp | C++ | example/json2/json.hpp | sekiguchi-nagisa/Aquarius-cxx | 43c029f4e88eafcbf26766da9451539e8426b757 | [
"Apache-2.0"
] | null | null | null | example/json2/json.hpp | sekiguchi-nagisa/Aquarius-cxx | 43c029f4e88eafcbf26766da9451539e8426b757 | [
"Apache-2.0"
] | null | null | null | example/json2/json.hpp | sekiguchi-nagisa/Aquarius-cxx | 43c029f4e88eafcbf26766da9451539e8426b757 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2016 Nagisa Sekiguchi
*
* 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 agree... | 20.772455 | 113 | 0.64399 | [
"object",
"vector"
] |
5b048b5ab8f480a11c1529e3865b7715545db70b | 6,471 | cpp | C++ | FloatingMeasure/Measure/PreMeasure.cpp | github-baron/FloatingMeasure | 1419d95c168bd7c9927854f0fc8e7c3681b93d2d | [
"MIT"
] | 1 | 2020-11-09T07:13:03.000Z | 2020-11-09T07:13:03.000Z | FloatingMeasure/Measure/PreMeasure.cpp | github-baron/FloatingMeasure | 1419d95c168bd7c9927854f0fc8e7c3681b93d2d | [
"MIT"
] | 3 | 2020-01-27T16:20:50.000Z | 2020-01-31T23:13:53.000Z | FloatingMeasure/Measure/PreMeasure.cpp | github-baron/FloatingMeasure | 1419d95c168bd7c9927854f0fc8e7c3681b93d2d | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2020 Michael von Mengershausen
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to... | 30.380282 | 81 | 0.573173 | [
"vector"
] |
5b0553b5a6e4f71bdab867bec5ea46a901c67143 | 1,546 | cpp | C++ | iit/YarpJS/src/YarpJS_Sound.cpp | robotology/dialog-service | de9e08d8f364b49f5b5a545783be8d5a1fb10bc6 | [
"BSD-3-Clause"
] | 2 | 2019-07-10T13:55:31.000Z | 2020-04-09T17:13:15.000Z | iit/YarpJS/src/YarpJS_Sound.cpp | robotology/dialog-service | de9e08d8f364b49f5b5a545783be8d5a1fb10bc6 | [
"BSD-3-Clause"
] | null | null | null | iit/YarpJS/src/YarpJS_Sound.cpp | robotology/dialog-service | de9e08d8f364b49f5b5a545783be8d5a1fb10bc6 | [
"BSD-3-Clause"
] | 1 | 2019-07-12T13:51:03.000Z | 2019-07-12T13:51:03.000Z |
#include <stdio.h>
#include <string>
#include "YarpJS_Sound.h"
#include <yarp/os/NetInt16.h>
#define SAMPLE_RATE 16000
// #define NUM_SECONDS 0.1
#define BIT_DEPTH 16
// #define NUM_SAMPLES ((int)(SAMPLE_RATE*NUM_SECONDS))
#define NUM_SAMPLES 16000
unsigned char pulsecode[ NUM_SAMPLES ];
using namespace v8;
Na... | 18.188235 | 121 | 0.690815 | [
"object"
] |
5b0b3afcc0486ebeab2a88b637f700ca38495bd7 | 2,387 | hpp | C++ | spline-widget/spline.hpp | sheepsskullcity/opentrack | 2742eebed2dd5db4dbf187504c95eca70aa624f2 | [
"ISC"
] | 1 | 2021-06-14T09:00:47.000Z | 2021-06-14T09:00:47.000Z | spline-widget/spline.hpp | sheepsskullcity/opentrack | 2742eebed2dd5db4dbf187504c95eca70aa624f2 | [
"ISC"
] | null | null | null | spline-widget/spline.hpp | sheepsskullcity/opentrack | 2742eebed2dd5db4dbf187504c95eca70aa624f2 | [
"ISC"
] | null | null | null | /* Copyright (c) 2012-2016, Stanislaw Halik <sthalik@misaki.pl>
* Permission to use, copy, modify, and/or distribute this
* software for any purpose with or without fee is hereby granted,
* provided that the above copyright notice and this permission
* notice appear in all copies.
*/
#pragma once
#include <QObj... | 24.357143 | 79 | 0.666527 | [
"vector"
] |
5b13d207427ab5386fd7f708b251f2a3aa7e60bd | 21,037 | cpp | C++ | Main/TransformBrushFullDemo.cpp | spt2kor/win32_app_DirectX_ | 6c35a6af8aa7553f17f91db3fd63bbeb670fc71a | [
"Apache-2.0"
] | null | null | null | Main/TransformBrushFullDemo.cpp | spt2kor/win32_app_DirectX_ | 6c35a6af8aa7553f17f91db3fd63bbeb670fc71a | [
"Apache-2.0"
] | null | null | null | Main/TransformBrushFullDemo.cpp | spt2kor/win32_app_DirectX_ | 6c35a6af8aa7553f17f91db3fd63bbeb670fc71a | [
"Apache-2.0"
] | null | null | null | //#ifndef UNICODE
//#define UNICODE
//#endif
//
//#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
//// Windows Header Files:
//#include <windows.h>
//
//// C RunTime Header Files
//#include <stdlib.h>
//#include <malloc.h>
//#include <memory.h>
//#include <wchar.h>
//#include <math.h>
... | 31.165926 | 96 | 0.411133 | [
"render",
"shape"
] |
5b144b7c03d0f8b6cb66b790f9ebc5c3745b4de8 | 2,645 | cpp | C++ | Hard/336_palindromePairs/336_palindromePairs/main.cpp | yangbingjie/Leetcode | 2f1e386cfb8b2d7d49cf0e7dcf0bce1c936e1916 | [
"MIT"
] | 1 | 2020-10-08T06:15:37.000Z | 2020-10-08T06:15:37.000Z | Hard/336_palindromePairs/336_palindromePairs/main.cpp | yangbingjie/Leetcode | 2f1e386cfb8b2d7d49cf0e7dcf0bce1c936e1916 | [
"MIT"
] | null | null | null | Hard/336_palindromePairs/336_palindromePairs/main.cpp | yangbingjie/Leetcode | 2f1e386cfb8b2d7d49cf0e7dcf0bce1c936e1916 | [
"MIT"
] | null | null | null | //
// main.cpp
// 336_palindromePairs
//
// Created by bella on 2020/8/6.
// Copyright © 2020 bella. All rights reserved.
//
#include <iostream>
#include <vector>
#include <string>
using namespace std;
struct Node {
Node* children[26];
int ind;
Node(int index=-1){
ind = index;
memset(ch... | 29.388889 | 72 | 0.428733 | [
"vector"
] |
5b158e080e68b7b8649284527f20baf2b170cd0e | 14,684 | cpp | C++ | src/cpp/ObjectFileGenerator.cpp | davidstelter/wake-compiler | 70be860826a402c293565ca6254b1af3f068f1ad | [
"MIT"
] | 1 | 2015-02-16T02:56:13.000Z | 2015-02-16T02:56:13.000Z | src/cpp/ObjectFileGenerator.cpp | davidstelter/wake-compiler | 70be860826a402c293565ca6254b1af3f068f1ad | [
"MIT"
] | null | null | null | src/cpp/ObjectFileGenerator.cpp | davidstelter/wake-compiler | 70be860826a402c293565ca6254b1af3f068f1ad | [
"MIT"
] | null | null | null | #include "ObjectFileGenerator.h"
#include <sstream>
void ObjectFileGenerator::generate(Node* tree) {
if(forceArrayIdentifier && tree->node_type != NT_TYPEDATA) {
forceArrayIdentifier = false;
}
switch(tree->node_type) {
case NT_IMPORT:
case NT_IMPORTSET:
case NT_IMPORTTARGET:
case NT_IMPORTPATH:
case N... | 25.716287 | 176 | 0.599087 | [
"vector"
] |
5b2bd68e295415c2409fb237e6cf6d6e8b6e0409 | 82,710 | cpp | C++ | src/function/TextCodec.cpp | Alexxu1024/Backup_kanzi | 441c6f5f05c65df3374009abc08dc418c3b741ab | [
"Apache-2.0"
] | null | null | null | src/function/TextCodec.cpp | Alexxu1024/Backup_kanzi | 441c6f5f05c65df3374009abc08dc418c3b741ab | [
"Apache-2.0"
] | null | null | null | src/function/TextCodec.cpp | Alexxu1024/Backup_kanzi | 441c6f5f05c65df3374009abc08dc418c3b741ab | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2011-2017 Frederic Langlet
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
you may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 46.362108 | 164 | 0.631943 | [
"transform"
] |
5b327d40ac69d6e1b07a4acf689c5c5ccb613911 | 23,082 | cpp | C++ | core/jni/android_hardware_SensorManager.cpp | rio-31/android_frameworks_base-1 | 091a068a3288d27d77636708679dde58b7b7fd25 | [
"Apache-2.0"
] | 164 | 2015-01-05T16:49:11.000Z | 2022-03-29T20:40:27.000Z | core/jni/android_hardware_SensorManager.cpp | rio-31/android_frameworks_base-1 | 091a068a3288d27d77636708679dde58b7b7fd25 | [
"Apache-2.0"
] | 127 | 2015-01-12T12:02:32.000Z | 2021-11-28T08:46:25.000Z | core/jni/android_hardware_SensorManager.cpp | rio-31/android_frameworks_base-1 | 091a068a3288d27d77636708679dde58b7b7fd25 | [
"Apache-2.0"
] | 1,141 | 2015-01-01T22:54:40.000Z | 2022-02-09T22:08:26.000Z | /*
* Copyright 2008, The Android Open Source Project
*
* 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 applica... | 40.565905 | 111 | 0.645611 | [
"object",
"vector"
] |
5b3ba3ff08b1312603c4175c0e1cab07585a935e | 7,890 | cpp | C++ | libredex/SourceBlockConsistencyCheck.cpp | kami-lang/madex-redex | 90ae1bc46c6e20a0aed2c128183b9f289cecee34 | [
"MIT"
] | null | null | null | libredex/SourceBlockConsistencyCheck.cpp | kami-lang/madex-redex | 90ae1bc46c6e20a0aed2c128183b9f289cecee34 | [
"MIT"
] | null | null | null | libredex/SourceBlockConsistencyCheck.cpp | kami-lang/madex-redex | 90ae1bc46c6e20a0aed2c128183b9f289cecee34 | [
"MIT"
] | null | null | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "SourceBlockConsistencyCheck.h"
#include "ControlFlow.h"
#include "Debug.h"
#include "DexClass.h"
#include "IRCode.h"
#... | 31.814516 | 80 | 0.570342 | [
"vector"
] |
5b3bd00d78abc80c5d65780fa9b65b975540b6b2 | 3,843 | cpp | C++ | src/workspace/track.cpp | jbruggem/jingles-impro | a20ebcd6272e39413eea33711d0e3d4785472f18 | [
"Apache-2.0"
] | 1 | 2015-11-04T14:38:13.000Z | 2015-11-04T14:38:13.000Z | src/workspace/track.cpp | jbruggem/jingles-impro | a20ebcd6272e39413eea33711d0e3d4785472f18 | [
"Apache-2.0"
] | null | null | null | src/workspace/track.cpp | jbruggem/jingles-impro | a20ebcd6272e39413eea33711d0e3d4785472f18 | [
"Apache-2.0"
] | null | null | null | #include "track.h"
//xxx do we want the copy constructor to use a new fileRef or just copy the other object's pointer?
Track::Track(const Track& track):
QObject(track.parent()),
fileInfo(track.fileInfo),
loopEnabled(track.loopEnabled),
startTime(track.startTime),
endTime(track.endTime),
fadeInD... | 30.744 | 150 | 0.68306 | [
"object"
] |
5b3c7bc77a67f6f04af3d16ef69c5dfdebd73069 | 73,279 | cxx | C++ | opal-3.16.2/src/opal/manager.cxx | wwl33695/myopal | d302113c8ad8156b3392ce514cde491cf42d51af | [
"MIT"
] | null | null | null | opal-3.16.2/src/opal/manager.cxx | wwl33695/myopal | d302113c8ad8156b3392ce514cde491cf42d51af | [
"MIT"
] | null | null | null | opal-3.16.2/src/opal/manager.cxx | wwl33695/myopal | d302113c8ad8156b3392ce514cde491cf42d51af | [
"MIT"
] | null | null | null | /*
* manager.cxx
*
* Media channels abstraction
*
* Open Phone Abstraction Library (OPAL)
* Formally known as the Open H323 project.
*
* Copyright (c) 2001 Equivalence Pty. Ltd.
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.0 (the "License"); you may not use this file ex... | 29.679627 | 153 | 0.653188 | [
"object"
] |
5b46f9da9b5521c51ae9a62ab934cbbfb6557b9e | 3,651 | hpp | C++ | include/libp2p/network/cares/cares.hpp | vvarma/cpp-libp2p | 4953f30bc087de42637640eef929acfd102ef895 | [
"Apache-2.0",
"MIT"
] | null | null | null | include/libp2p/network/cares/cares.hpp | vvarma/cpp-libp2p | 4953f30bc087de42637640eef929acfd102ef895 | [
"Apache-2.0",
"MIT"
] | null | null | null | include/libp2p/network/cares/cares.hpp | vvarma/cpp-libp2p | 4953f30bc087de42637640eef929acfd102ef895 | [
"Apache-2.0",
"MIT"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef LIBP2P_INCLUDE_LIBP2P_NETWORK_CARES_CARES_HPP
#define LIBP2P_INCLUDE_LIBP2P_NETWORK_CARES_CARES_HPP
#include <atomic>
#include <functional>
#include <list>
#include <map>
#include <memory>
#include <string>
#i... | 29.443548 | 80 | 0.668858 | [
"vector"
] |
5b47209362c2a7f24368819d9567e9419ed0bc5a | 2,546 | cpp | C++ | app/deriqt/main.cpp | xiaoqiyu/DERIQT | 57c20c40a692a4f877296a39ed91aeab8e4c6d66 | [
"Apache-2.0"
] | 2 | 2021-04-21T09:18:10.000Z | 2021-05-12T08:53:22.000Z | app/deriqt/main.cpp | xiaoqiyu/DERIQT | 57c20c40a692a4f877296a39ed91aeab8e4c6d66 | [
"Apache-2.0"
] | null | null | null | app/deriqt/main.cpp | xiaoqiyu/DERIQT | 57c20c40a692a4f877296a39ed91aeab8e4c6d66 | [
"Apache-2.0"
] | null | null | null | #include "CTPTraderHandler.h"
#include "CTPMdHandler.h"
#include "INIReader.h"
#include "UserStruct.h"
#include <iostream>
#include <unistd.h>
#include <stdio.h>
#include <vector>
#include <unordered_map>
#include <sstream>
#include <string>
#include <sys/types.h>
#include "TickToKlineHelper.h"
#include "DataStrategy.h... | 25.979592 | 118 | 0.648075 | [
"vector"
] |
5b47d521909ed1d5137fec609829e8ff39f1ff89 | 3,773 | cpp | C++ | src/fastcd/mesh_extension.cpp | InterDigitalInc/ObjectRemovalDetection | 14ccff9792e2ab006377dc02b8260897465db988 | [
"Apache-2.0"
] | 1 | 2021-08-10T21:06:46.000Z | 2021-08-10T21:06:46.000Z | src/fastcd/mesh_extension.cpp | InterDigitalInc/ObjectRemovalDetection | 14ccff9792e2ab006377dc02b8260897465db988 | [
"Apache-2.0"
] | null | null | null | src/fastcd/mesh_extension.cpp | InterDigitalInc/ObjectRemovalDetection | 14ccff9792e2ab006377dc02b8260897465db988 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 InterDigital
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* License is avaiable on the root under license.txt and you may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE... | 34.935185 | 79 | 0.606149 | [
"mesh",
"vector"
] |
5b4f8d9e7486ce1563b1b292d0c08ca136b306c3 | 17,010 | cpp | C++ | vts-libs/vts/nodeinfo.cpp | melowntech/vts-libs | ffbf889b6603a8f95d3c12a2602232ff9c5d2236 | [
"BSD-2-Clause"
] | 2 | 2020-04-20T01:44:46.000Z | 2021-01-15T06:54:51.000Z | vts-libs/vts/nodeinfo.cpp | melowntech/vts-libs | ffbf889b6603a8f95d3c12a2602232ff9c5d2236 | [
"BSD-2-Clause"
] | 2 | 2020-01-29T16:30:49.000Z | 2020-06-03T15:21:29.000Z | vts-libs/vts/nodeinfo.cpp | melowntech/vts-libs | ffbf889b6603a8f95d3c12a2602232ff9c5d2236 | [
"BSD-2-Clause"
] | 1 | 2019-09-25T05:10:07.000Z | 2019-09-25T05:10:07.000Z | /**
* Copyright (c) 2017 Melown Technologies SE
*
* 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 conditions and the f... | 29.176672 | 79 | 0.582951 | [
"vector",
"model"
] |
5b52e0982aa778c6da3dae40eca2230ab4361eba | 955 | hpp | C++ | FRST/WorkForce/include/WorkForce/Job.hpp | SamDeakin/FRST | 3b0499e6b5899e46b61ec4bb9ce6806b39fc2b33 | [
"MIT"
] | null | null | null | FRST/WorkForce/include/WorkForce/Job.hpp | SamDeakin/FRST | 3b0499e6b5899e46b61ec4bb9ce6806b39fc2b33 | [
"MIT"
] | null | null | null | FRST/WorkForce/include/WorkForce/Job.hpp | SamDeakin/FRST | 3b0499e6b5899e46b61ec4bb9ce6806b39fc2b33 | [
"MIT"
] | null | null | null | #pragma once
#include "WorkForce/JobResult.hpp"
#include <string>
#include <vector>
namespace FRST {
namespace WorkForce {
class Job {
public:
/**
* A Job is an action that is called once per-frame.
*/
Job();
~Job();
/**
* The api used for job ordering.
* It will be ensured that eve... | 27.285714 | 110 | 0.662827 | [
"vector"
] |
5b56ace0821c0e347b29a38e9556b83f9d2cc3d5 | 16,974 | cpp | C++ | 3es-core/shapes/3esmeshshape.cpp | data61/3es-core | 597f25aa604cb446dcc1f08b9d3bc8f89f3043b9 | [
"Zlib"
] | 2 | 2020-06-11T04:16:08.000Z | 2020-06-20T19:57:10.000Z | 3es-core/shapes/3esmeshshape.cpp | csiro-robotics/3es-core | 597f25aa604cb446dcc1f08b9d3bc8f89f3043b9 | [
"Zlib"
] | null | null | null | 3es-core/shapes/3esmeshshape.cpp | csiro-robotics/3es-core | 597f25aa604cb446dcc1f08b9d3bc8f89f3043b9 | [
"Zlib"
] | null | null | null | //
// author: Kazys Stepanas
//
#include "3esmeshshape.h"
#include "3esmeshresource.h"
#include "3esmeshset.h"
#include <3escoreutil.h>
#include <3espacketwriter.h>
#include <algorithm>
using namespace tes;
namespace
{
// Helper for automating data sending.
struct DataPhase
{
// The SendDataType.
uint16_t type... | 24.387931 | 120 | 0.626193 | [
"shape"
] |
5b5bfb266d71effa6ddd66e5020210e33a11a8a6 | 1,184 | cpp | C++ | Problem 1.cpp | abhishekezzy/Favourite-Interview-Problems | 0a94e7fd9278b6728be41cd92a4f0ba70409740e | [
"MIT"
] | null | null | null | Problem 1.cpp | abhishekezzy/Favourite-Interview-Problems | 0a94e7fd9278b6728be41cd92a4f0ba70409740e | [
"MIT"
] | null | null | null | Problem 1.cpp | abhishekezzy/Favourite-Interview-Problems | 0a94e7fd9278b6728be41cd92a4f0ba70409740e | [
"MIT"
] | null | null | null | /*
The below algorithm is a modification of Boyer–Moore majority vote algorithm
Start with two empty candidate slots and two counters set to 0.
for each item:
if it is equal to either candidate, increment the corresponding count
else if there is an empty slot (i.e. a slot with count 0), put it in that slot... | 24.163265 | 113 | 0.464527 | [
"vector"
] |
5b5f14c97c7cda00afbd893fec749b10df978c29 | 5,355 | cxx | C++ | PWGCF/FEMTOSCOPY/AliFemtoUser/AliFemtoCorrFctn3DPRF.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 114 | 2017-03-03T09:12:23.000Z | 2022-03-03T20:29:42.000Z | PWGCF/FEMTOSCOPY/AliFemtoUser/AliFemtoCorrFctn3DPRF.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 19,637 | 2017-01-16T12:34:41.000Z | 2022-03-31T22:02:40.000Z | PWGCF/FEMTOSCOPY/AliFemtoUser/AliFemtoCorrFctn3DPRF.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 1,021 | 2016-07-14T22:41:16.000Z | 2022-03-31T05:15:51.000Z | ///////////////////////////////////////////////////////////////////////////
// //
// AliFemtoCorrFctn3DPRF: a class to calculate 3D correlation //
// for pairs of particles. //
// In analysis the f... | 29.585635 | 99 | 0.666853 | [
"3d"
] |
5b65e7899246896371aa925cb3f81c257024dac9 | 6,142 | cc | C++ | src/pairhmm/common_pairHMM.cc | ruoshuiwyl/biocpp | 4cf0918b528f0268892be39bc5a02b0120821f7f | [
"MIT"
] | null | null | null | src/pairhmm/common_pairHMM.cc | ruoshuiwyl/biocpp | 4cf0918b528f0268892be39bc5a02b0120821f7f | [
"MIT"
] | null | null | null | src/pairhmm/common_pairHMM.cc | ruoshuiwyl/biocpp | 4cf0918b528f0268892be39bc5a02b0120821f7f | [
"MIT"
] | null | null | null | //
// Created by ruoshui on 7/24/16.
//
#include "common_pairHMM.h"
#include "../util/util.h"
CommonPairHMM::CommonPairHMM(std::vector<std::vector<char>> &haplotypes, std::vector<Read> &reads): PairHMM(haplotypes, reads) {
}
void CommonPairHMM::Initialization() {
PairHMM::Initialization();
kInitalConstant =... | 54.353982 | 155 | 0.602898 | [
"vector"
] |
5b676a26241872d1f92d22ae8e2669619c6a5f55 | 39,734 | cpp | C++ | src/splitPairs.cpp | BaiLab/Read-Split-Fly | 40ac90c4777afc4b1b97c0cf7418d54c25c0d2f6 | [
"Apache-2.0"
] | null | null | null | src/splitPairs.cpp | BaiLab/Read-Split-Fly | 40ac90c4777afc4b1b97c0cf7418d54c25c0d2f6 | [
"Apache-2.0"
] | null | null | null | src/splitPairs.cpp | BaiLab/Read-Split-Fly | 40ac90c4777afc4b1b97c0cf7418d54c25c0d2f6 | [
"Apache-2.0"
] | null | null | null | /*
File: splitPairs.cpp
Copyright 2016 Jeff Kinne, Yongsheng Bai, Brandon Donham, Aaron Cox, Feng Jiang.
Author: Jeff Kinne, jkinne@cs.indstate.edu
Contents: Program to take alignments of pieces of unaligned reads and determine
which could be "split" or "matched" pairs - indicat... | 35.287744 | 217 | 0.64061 | [
"vector"
] |
5b68b772a9804f1951c25e2962b8e88e36870a8c | 925 | hpp | C++ | oop_observer.hpp | zht043/inter-thread-publisher-subscriber-cpp | c9862a438ae71ac3004daf4f6f7465184a1ee938 | [
"MIT"
] | null | null | null | oop_observer.hpp | zht043/inter-thread-publisher-subscriber-cpp | c9862a438ae71ac3004daf4f6f7465184a1ee938 | [
"MIT"
] | null | null | null | oop_observer.hpp | zht043/inter-thread-publisher-subscriber-cpp | c9862a438ae71ac3004daf4f6f7465184a1ee938 | [
"MIT"
] | null | null | null | /*
* An Observer Pattern C++ implementation using boost library
*/
#pragma once
#include <iostream>
#include <string>
#include <unordered_map>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/thread/thread.hpp>
#include <boost/signals2.hpp>
/* This implementation is not multithreaded-safe,
* f... | 19.680851 | 62 | 0.64 | [
"vector"
] |
5b6a08e0bdb341643a73a467f2cd6bef550e0d90 | 1,354 | cpp | C++ | Algorithms/Find Pivot Index/solution.cpp | MishaVernik/LeetCode | 5f4823706f472b59fbc0c936524477dc039a46ee | [
"MIT"
] | null | null | null | Algorithms/Find Pivot Index/solution.cpp | MishaVernik/LeetCode | 5f4823706f472b59fbc0c936524477dc039a46ee | [
"MIT"
] | null | null | null | Algorithms/Find Pivot Index/solution.cpp | MishaVernik/LeetCode | 5f4823706f472b59fbc0c936524477dc039a46ee | [
"MIT"
] | null | null | null | /*
Given an array of integers nums, write a method that returns the "pivot" index of this array.
We define the pivot index as the index where the sum of the numbers to the left of the index is equal to the sum of the numbers to the right of the index.
If no such index exists, we should return -1. If there are multipl... | 24.618182 | 154 | 0.583456 | [
"vector"
] |
5b7193326b49ec46a04ea1aa96002748f4c17a1c | 1,400 | cpp | C++ | src/_leetcode/leet_629.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_629.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_629.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | /*
* ===================== leet_629.cpp ==========================
* -- tpr --
* CREATE -- 2020.06.16
* MODIFY --
* ----------------------------------------------------------
* 692. 前K个高频单词
*/
#include "innLee... | 19.71831 | 84 | 0.371429 | [
"vector"
] |
ac8a04f02a06dccdb545f26ffcf07b0a9d0bf4df | 2,722 | cc | C++ | solutions/kattis/minorsetback.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 4 | 2020-11-07T14:38:02.000Z | 2022-01-03T19:02:36.000Z | solutions/kattis/minorsetback.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 1 | 2019-04-17T06:55:14.000Z | 2019-04-17T06:55:14.000Z | solutions/kattis/minorsetback.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | null | null | null | #include <algorithm>
#include <array>
#include <bitset>
#include <chrono>
#include <climits>
#include <cmath>
#include <cstring>
#include <deque>
#include <ext/pb_ds/assoc_container.hpp>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <queue>
#inc... | 24.522523 | 79 | 0.515062 | [
"vector"
] |
ac8cd306bdc552f89fea800ba467ea643bdf09ae | 891 | cpp | C++ | verify/verify-yuki/yuki-1269.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 69 | 2020-11-06T05:21:42.000Z | 2022-03-29T03:38:35.000Z | verify/verify-yuki/yuki-1269.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 21 | 2020-07-25T04:47:12.000Z | 2022-02-01T14:39:29.000Z | verify/verify-yuki/yuki-1269.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | 9 | 2020-11-06T11:55:10.000Z | 2022-03-20T04:45:31.000Z | #define PROBLEM "https://yukicoder.me/problems/no/1269"
//
#include "../../template/template.hpp"
//
#include "../../modint/montgomery-modint.hpp"
#include "../../string/aho-corasick.hpp"
using mint = LazyMontgomeryModInt<1000000007>;
using vm = vector<mint>;
void Nyaan::solve() {
inl(N, L, R);
vl fs;
{
ll f... | 19.369565 | 55 | 0.516274 | [
"vector"
] |
ac8e0b0a8199cfa23d2690bb34defed1c703b288 | 1,689 | cpp | C++ | DigDug/RockState.cpp | keangdavidTouch/C-GameEngine | e276e7cc7c840ca41b005c0cf844cd8d5580200a | [
"MIT"
] | 2 | 2021-03-19T13:29:36.000Z | 2021-04-13T23:37:10.000Z | DigDug/RockState.cpp | keangdavidTouch/C-GameEngine | e276e7cc7c840ca41b005c0cf844cd8d5580200a | [
"MIT"
] | null | null | null | DigDug/RockState.cpp | keangdavidTouch/C-GameEngine | e276e7cc7c840ca41b005c0cf844cd8d5580200a | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Time.h"
#include "DigDugGame.h"
#include "RockState.h"
#include "RockBehaviour.h"
#include "TaizoBehaviour.h"
#include "SpriteComponent.h"
kd::BaseState* kd::RockIdleState::Update(GameObject* object)
{
if (object->GetComponent<RockBehaviour>()->ShouldFall())
{
if(m_Sprite) m_Sprite->Set... | 23.136986 | 74 | 0.719361 | [
"object"
] |
ac940a3d1966de779179efb42bf6aaa87799e008 | 2,086 | cpp | C++ | persistence/changequeue.cpp | czpwpq/hotel | 2e003b019cf6b21349228740a8dae6c639945510 | [
"MIT"
] | 7 | 2017-04-05T20:06:30.000Z | 2022-01-01T00:14:42.000Z | persistence/changequeue.cpp | czpwpq/hotel | 2e003b019cf6b21349228740a8dae6c639945510 | [
"MIT"
] | 1 | 2017-01-06T13:47:45.000Z | 2017-01-06T13:49:47.000Z | persistence/changequeue.cpp | decden/hotel | 1d7d16ad0a97c9a24f8e54b9b180fcd3166d0c89 | [
"MIT"
] | 4 | 2017-04-05T20:06:31.000Z | 2020-10-29T14:50:12.000Z | #include "persistence/changequeue.h"
#include <algorithm>
namespace persistence
{
void ChangeQueue::addStream(std::shared_ptr<DataStream> dataStream) { _dataStreams.push_back(std::move(dataStream)); }
bool ChangeQueue::hasUninitializedStreams() const
{
return std::any_of(_dataStreams.begin(), _dataStreams.... | 33.645161 | 120 | 0.682646 | [
"vector"
] |
ac97938b62012c66dbc5b781c6a9622e0cd83b24 | 886 | cpp | C++ | LeetCode/Explore/September-LeetCoding-Challenge-2021/#Day#22_MaximumLengthOfAConcatenatedStringWithUniqueCharacters_sol2_bit_manipulation_O(LN2^N)_time_O(1)_extra_space_52ms_8MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#1239_MaximumLengthOfAConcatenatedStringWithUniqueCharacters_sol2_bit_manipulation_O(LN2^N)_time_O(1)_extra_space_52ms_8MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#1239_MaximumLengthOfAConcatenatedStringWithUniqueCharacters_sol2_bit_manipulation_O(LN2^N)_time_O(1)_extra_space_52ms_8MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
public:
int maxLength(vector<string>& arr) {
const int N = arr.size();
const int FULL_MASK = (1 << N) - 1;
int maxLen = 0;
for(int mask = 1; mask <= FULL_MASK; ++mask){
bool isValid = true;
int len = 0;
int visMa... | 29.533333 | 57 | 0.31377 | [
"vector"
] |
ac9e10998336f8e141e9fbab094f236b4f6d4268 | 3,313 | cpp | C++ | Algorithms/1222.QueensThatCanAttackTheKing/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/1222.QueensThatCanAttackTheKing/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | Algorithms/1222.QueensThatCanAttackTheKing/solution.cpp | stdstring/leetcode | 84e6bade7d6fc1a737eb6796cb4e2565440db5e3 | [
"MIT"
] | null | null | null | #include <unordered_map>
#include <vector>
#include "gtest/gtest.h"
namespace
{
enum class Direction {Unknown, N, W, E, S, NW, NE, SW, SE};
class Solution
{
public:
std::vector<std::vector<int>> queensAttacktheKing(std::vector<std::vector<int>> const &queens, std::vector<int> const &king) const
{
st... | 39.440476 | 167 | 0.53275 | [
"vector"
] |
aca4bcfafbcf4f91d909b3ec88a3c3a8379f46f8 | 5,702 | cpp | C++ | IMS_Panel.cpp | TheNewBob/IMS2 | 572dcfd4c3621458f01278713437c2aca526d2e6 | [
"MIT"
] | 2 | 2018-01-28T20:07:52.000Z | 2018-03-01T22:41:39.000Z | IMS_Panel.cpp | TheNewBob/IMS2 | 572dcfd4c3621458f01278713437c2aca526d2e6 | [
"MIT"
] | 6 | 2017-08-26T10:24:48.000Z | 2018-01-28T13:45:34.000Z | IMS_Panel.cpp | TheNewBob/IMS2 | 572dcfd4c3621458f01278713437c2aca526d2e6 | [
"MIT"
] | null | null | null | #include "Common.h"
#include "GUI_Common.h"
#include "GUIentity.h"
#include "GUImanager.h"
#include "Events.h"
#include "IMS.h"
#include "GUI_Surface_Base.h"
#include "GUI_Surface.h"
#include "GUI_BaseElement.h"
#include "GUI_Page.h"
#include "IMS_RootPage.h"
#include "GUI_MainDisplay.h"
#include "LayoutElement.h"
#inc... | 28.08867 | 187 | 0.691512 | [
"object"
] |
aca4c0d9c1971530e9c006a01b1ed91099e1119a | 4,454 | cpp | C++ | src/sdm/utils/linear_algebra/hyperplane/oalpha.cpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | src/sdm/utils/linear_algebra/hyperplane/oalpha.cpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | src/sdm/utils/linear_algebra/hyperplane/oalpha.cpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | #include <sdm/utils/linear_algebra/hyperplane/oalpha.hpp>
namespace sdm
{
oAlpha::oAlpha(double default_value) : AlphaVector(default_value)
{
}
bool oAlpha::isDominated(const Hyperplane &other) const
{
for (const auto &o_balpha : this->repr)
{
for (const auto &x_value :... | 33.238806 | 200 | 0.555456 | [
"vector"
] |
aca4c57245aba6738be7769dc2bc3ec7c4339360 | 69,157 | cpp | C++ | multimedia/dshow/filters/lin21dec2/l21ddraw.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | multimedia/dshow/filters/lin21dec2/l21ddraw.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | multimedia/dshow/filters/lin21dec2/l21ddraw.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // Copyright (c) 2000 Microsoft Corporation. All Rights Reserved.
//
// DirectShow Line 21 Decoder 2 Filter: drawing-related base class code
//
#include <streams.h>
#include <windowsx.h>
#include <initguid.h>
#ifdef FILTER_DLL
DEFINE_GUID(IID_IDirectDraw7,
0x15e65ec0,0x3b9c,0x11d2,0xb9,0x... | 34.69995 | 155 | 0.570528 | [
"object",
"solid"
] |
acb4ce56ad131f8abc847539357a4765279bf455 | 746 | cpp | C++ | konkurs-przedobozowy-2018/gra.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | 2 | 2019-05-04T09:37:09.000Z | 2019-05-22T18:07:28.000Z | konkurs-przedobozowy-2018/gra.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | konkurs-przedobozowy-2018/gra.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef int32_t I;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
I n, m;
cin >> n >> m;
vector<I> t(n);
for (I i = 0; i < n; ++i) cin >> t[i];
sort(t.begin(), t.end());
I max_s = 0;
for (I i = 0; i < n - 2; ++i... | 18.65 | 71 | 0.426273 | [
"vector"
] |
acbb9476a42c9ad876d5ea606e4bf90f2acf6b65 | 12,101 | cc | C++ | src/io/RootImporter.cc | vrpascuzzi/celeritas | 6a8ffc5e6551371fab7cdb5bbb55c60e65f0439f | [
"Apache-2.0",
"MIT"
] | null | null | null | src/io/RootImporter.cc | vrpascuzzi/celeritas | 6a8ffc5e6551371fab7cdb5bbb55c60e65f0439f | [
"Apache-2.0",
"MIT"
] | null | null | null | src/io/RootImporter.cc | vrpascuzzi/celeritas | 6a8ffc5e6551371fab7cdb5bbb55c60e65f0439f | [
"Apache-2.0",
"MIT"
] | null | null | null | //----------------------------------*-C++-*----------------------------------//
// Copyright 2020 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... | 34.973988 | 79 | 0.598711 | [
"geometry",
"object",
"vector",
"solid"
] |
acbe9de845d69d7e66eda23feda2aa822903b230 | 73,985 | cpp | C++ | dev/Basic/shared/entities/TrainController.cpp | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 50 | 2018-12-21T08:21:38.000Z | 2022-01-24T09:47:59.000Z | dev/Basic/shared/entities/TrainController.cpp | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 2 | 2018-12-19T13:42:47.000Z | 2019-05-13T04:11:45.000Z | dev/Basic/shared/entities/TrainController.cpp | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 27 | 2018-11-28T07:30:34.000Z | 2022-02-05T02:22:26.000Z | /*
* TrainController.cpp
*
* Created on: Feb 11, 2016
* Author: zhang huai peng
*/
#include <boost/algorithm/string/erase.hpp>
#include <boost/algorithm/string.hpp>
#include "conf/ConfigManager.hpp"
#include "conf/ConfigParams.hpp"
#include "logging/Log.hpp"
#include "message/MessageBus.hpp"
#include "event/... | 41.194321 | 188 | 0.568494 | [
"vector"
] |
acc1bdd92dec38727e018741d835e7dad449fce5 | 2,276 | cxx | C++ | dreco-engine/src/game_objects/game_base.cxx | GloryOfNight/dreco-engine | 1d29b747dc9277cbc5952b31833403a65a4d9c71 | [
"MIT"
] | 1 | 2020-02-27T13:29:15.000Z | 2020-02-27T13:29:15.000Z | dreco-engine/src/game_objects/game_base.cxx | GloryOfNight/dreco-engine | 1d29b747dc9277cbc5952b31833403a65a4d9c71 | [
"MIT"
] | null | null | null | dreco-engine/src/game_objects/game_base.cxx | GloryOfNight/dreco-engine | 1d29b747dc9277cbc5952b31833403a65a4d9c71 | [
"MIT"
] | null | null | null | #include "game_base.hxx"
#include "camera_base.hxx"
#include "core/engine.hxx"
#include "game_objects/game_object.hxx"
#include "game_objects/game_world.hxx"
#include "game_objects/mesh_object.hxx"
#include "utils/math_utils.hxx"
using namespace dreco;
game_base::game_base(engine& _e) : game_engine(&_e)
{
}
game_ba... | 19.964912 | 85 | 0.733304 | [
"mesh"
] |
acce0afa1b144eb602544bc3dfcfbe168ac0d2e3 | 2,182 | cpp | C++ | src/main.cpp | SeanMott/CGen | 221472746a8b35335af7a51d1b195ecda374dbd6 | [
"MIT"
] | 1 | 2020-11-24T10:01:39.000Z | 2020-11-24T10:01:39.000Z | src/main.cpp | SeanMott/CGen | 221472746a8b35335af7a51d1b195ecda374dbd6 | [
"MIT"
] | null | null | null | src/main.cpp | SeanMott/CGen | 221472746a8b35335af7a51d1b195ecda374dbd6 | [
"MIT"
] | null | null | null | /*
CGen allows for C code to be produced and then compiled.
CGen comes as a lib this main file is just to test Tokens into C code.
For right now it uses Clang and a path has to be given to were Clang is.
If no Clang is provided it will use a version that comes with CGen.
Github Link:
Created by Sean R. Mott || 09/14... | 27.275 | 85 | 0.649863 | [
"vector"
] |
acd777806f82d804ae4d201145ec35d0cbefddec | 553 | cpp | C++ | Society2.0/Society2.0/CLSuggestion.cpp | simsim314/Society2.0 | a95e42122e2541b7544dd641247681996f1e625a | [
"Unlicense"
] | 1 | 2019-07-11T13:10:43.000Z | 2019-07-11T13:10:43.000Z | Society2.0/Society2.0/CLSuggestion.cpp | mdheller/Society2.0 | a95e42122e2541b7544dd641247681996f1e625a | [
"Unlicense"
] | 1 | 2019-02-19T12:32:52.000Z | 2019-03-07T20:49:50.000Z | Society2.0/Society2.0/CLSuggestion.cpp | mdheller/Society2.0 | a95e42122e2541b7544dd641247681996f1e625a | [
"Unlicense"
] | 1 | 2020-01-10T12:37:30.000Z | 2020-01-10T12:37:30.000Z | #include "CLSuggestion.h"
#include <iostream>
void CLSuggestion::Show()
{
vector<string> current = navigator->children_hash;
cout << navigator->Title() << "\n";
for (int i = 0; i < current.size(); i++)
{
cout << "Choose " << i << " : " << navigator->children_names[current[i]] << "\n";
}
}
int CL... | 16.757576 | 84 | 0.607595 | [
"vector"
] |
acd80abe265e04dabeda9bf7c37e16b5063251a9 | 1,741 | hpp | C++ | src/ECS/Entity.hpp | MajorArkwolf/ICT398-Project-Red | 953f047507356aafdea856ff28f49de5b97b66cc | [
"MIT"
] | 2 | 2021-04-18T09:49:36.000Z | 2021-06-08T03:19:18.000Z | src/ECS/Entity.hpp | MajorArkwolf/ICT398-Project-Red | 953f047507356aafdea856ff28f49de5b97b66cc | [
"MIT"
] | null | null | null | src/ECS/Entity.hpp | MajorArkwolf/ICT398-Project-Red | 953f047507356aafdea856ff28f49de5b97b66cc | [
"MIT"
] | 1 | 2022-03-14T06:06:07.000Z | 2022-03-14T06:06:07.000Z | #pragma once
#include <entt/entt.hpp>
#include "ECS/ECS.hpp"
class Entity {
public:
/**
* Default Constructor
*/
Entity() = default;
/**
* Creates an entity
* @param entity_id the id for the entity being created.
* @param ecs_object the entity object system.
*/
Entity(... | 24.871429 | 93 | 0.602527 | [
"object"
] |
ace72b76df858443e57d90737c7fcd3ca0652771 | 7,635 | cpp | C++ | src/main.cpp | ThingsFlare/switch-esp8266 | 53972651e07df1176ba46399b1b26381523ec999 | [
"MIT"
] | null | null | null | src/main.cpp | ThingsFlare/switch-esp8266 | 53972651e07df1176ba46399b1b26381523ec999 | [
"MIT"
] | null | null | null | src/main.cpp | ThingsFlare/switch-esp8266 | 53972651e07df1176ba46399b1b26381523ec999 | [
"MIT"
] | null | null | null | #include <FS.h>
#include <ThingsBoard.h>
#include <ESP8266WiFi.h>
#include <ArduinoJson.h>
#include <ESPAsyncWebServer.h>
#include <ESPAsyncWiFiManager.h> //https://github.com/tzapu/WiFiManager
// #include "SoftwareSerial.h"
// See https://thingsboard.io/docs/getting-started-guides/h... | 25.969388 | 107 | 0.682384 | [
"object"
] |
acfebbffca003b0495077db466dcf6793c2b467c | 1,580 | cpp | C++ | Inchworm/src/string_util.cpp | tomas-pluskal/trinityrnaseq | 1d079c12c29b7c2257b5e859f830f88ccb479af5 | [
"BSD-3-Clause"
] | 4 | 2019-01-16T12:05:05.000Z | 2021-11-17T08:38:21.000Z | Inchworm/src/string_util.cpp | tomas-pluskal/trinityrnaseq | 1d079c12c29b7c2257b5e859f830f88ccb479af5 | [
"BSD-3-Clause"
] | 1 | 2021-11-27T03:36:45.000Z | 2021-11-29T14:13:14.000Z | Inchworm/src/string_util.cpp | tomas-pluskal/trinityrnaseq | 1d079c12c29b7c2257b5e859f830f88ccb479af5 | [
"BSD-3-Clause"
] | 7 | 2015-03-24T14:23:58.000Z | 2020-01-15T16:54:10.000Z | #include "string_util.hpp"
namespace string_util {
void tokenize(const string& str, vector<string>& tokens, const string& delimiters) {
/* ************************************************************************************/
/* from: http://oopweb.com/CPP/Documents/CPPHOWTO/Volume/C++... | 30.384615 | 96 | 0.474684 | [
"vector"
] |
4a02e79b2ebbd330c6df33436f7d1730896914e0 | 3,370 | hpp | C++ | src/car2ell.hpp | xanthospap/ngpt | fa445c5c21e657dda8c47bbbe0a6f1bf1aa45867 | [
"WTFPL"
] | null | null | null | src/car2ell.hpp | xanthospap/ngpt | fa445c5c21e657dda8c47bbbe0a6f1bf1aa45867 | [
"WTFPL"
] | 2 | 2016-01-19T13:42:14.000Z | 2016-01-29T19:00:05.000Z | src/car2ell.hpp | xanthospap/ngpt | fa445c5c21e657dda8c47bbbe0a6f1bf1aa45867 | [
"WTFPL"
] | 3 | 2019-06-01T03:53:41.000Z | 2020-09-21T10:48:08.000Z | #ifndef __CARTESIAN_TO_ELLIPSOIDAL__
#define __CARTESIAN_TO_ELLIPSOIDAL__
#include <cmath>
#include "ellipsoid.hpp"
#include "geoconst.hpp"
#if __cplusplus > 201103L
#define CONSTEXPR constexpr
#else
#define CONSTEXPR
#endif
namespace ngpt {
/** \details Transform Cartesian, geocentric coordinates to ellip... | 28.803419 | 79 | 0.553412 | [
"transform"
] |
4a05b705acbeb843fb6e254423effb819e811d12 | 11,542 | cpp | C++ | tests/unit/plugins/dist_matrixops/dist_constant_4_loc.cpp | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 83 | 2017-08-27T15:09:13.000Z | 2022-01-18T17:03:41.000Z | tests/unit/plugins/dist_matrixops/dist_constant_4_loc.cpp | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 808 | 2017-08-27T15:35:01.000Z | 2021-12-14T17:30:50.000Z | tests/unit/plugins/dist_matrixops/dist_constant_4_loc.cpp | NanmiaoWu/phylanx | 295b5f82cc39925a0d53e77ba3b6d02a65204535 | [
"BSL-1.0"
] | 55 | 2017-08-27T15:09:22.000Z | 2022-03-25T12:07:34.000Z | // Copyright (c) 2020 Hartmut Kaiser
// Copyright (c) 2020 Bita Hasheminezhad
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <phylanx/phylanx.hpp>
#include <hpx/hpx_init.hpp>
#include <hpx/iostream.h... | 34.76506 | 80 | 0.457806 | [
"vector"
] |
4a097b702da7b7638537bd2c762471b6d139c58f | 4,838 | cpp | C++ | copasi/elementaryFluxModes/CTableauMatrix.cpp | SzVarga/COPASI | 00451b1a67eeec8272c73791ca861da754a7c4c4 | [
"Artistic-2.0"
] | 64 | 2015-03-14T14:06:18.000Z | 2022-02-04T23:19:08.000Z | copasi/elementaryFluxModes/CTableauMatrix.cpp | SzVarga/COPASI | 00451b1a67eeec8272c73791ca861da754a7c4c4 | [
"Artistic-2.0"
] | 4 | 2017-08-16T10:26:46.000Z | 2020-01-08T12:05:54.000Z | copasi/elementaryFluxModes/CTableauMatrix.cpp | SzVarga/COPASI | 00451b1a67eeec8272c73791ca861da754a7c4c4 | [
"Artistic-2.0"
] | 28 | 2015-04-16T14:14:59.000Z | 2022-03-28T12:04:14.000Z | // Copyright (C) 2019 by Pedro Mendes, Rector and Visitors of the
// University of Virginia, University of Heidelberg, and University
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and... | 25.463158 | 91 | 0.605415 | [
"vector"
] |
4a13035875e6ee8faee733d36b9ecd623e0bdf99 | 947 | cpp | C++ | linked_list/is_palindrome.cpp | lordstone/shua_codes | cf4e0d5488ccd8e46e0cfe0fabaaadf7894bf8f3 | [
"MIT"
] | 1 | 2016-09-14T00:54:52.000Z | 2016-09-14T00:54:52.000Z | linked_list/is_palindrome.cpp | lordstone/shua_codes | cf4e0d5488ccd8e46e0cfe0fabaaadf7894bf8f3 | [
"MIT"
] | null | null | null | linked_list/is_palindrome.cpp | lordstone/shua_codes | cf4e0d5488ccd8e46e0cfe0fabaaadf7894bf8f3 | [
"MIT"
] | null | null | null | #include "linked_list.h"
using namespace std;
int findLength(lnode * head){
int count = 0;
while(head){
count ++;
head = head -> next;
}
return count;
}
bool isPalindrome(lnode * head){
int length = findLength(head);
vector<lnode*> q;
if(length < 2) return true;
for(int i = 0; i < length / 2; ++i){
q.p... | 17.218182 | 50 | 0.594509 | [
"vector"
] |
4a1fc527ba1d0a423d6dbc5cfc65bf2a6a79adb3 | 15,642 | cpp | C++ | src/encoder/media_flv_encoder.cpp | anjisuan783/media_server | 443fdbda8a778c7302020ea16f4fb25cd3fd8dae | [
"MIT"
] | null | null | null | src/encoder/media_flv_encoder.cpp | anjisuan783/media_server | 443fdbda8a778c7302020ea16f4fb25cd3fd8dae | [
"MIT"
] | null | null | null | src/encoder/media_flv_encoder.cpp | anjisuan783/media_server | 443fdbda8a778c7302020ea16f4fb25cd3fd8dae | [
"MIT"
] | null | null | null | //
// Copyright (c) 2013-2021 Winlin
//
// SPDX-License-Identifier: MIT
//
// This file is borrowed from srs with some modifications.
#include "media_flv_encoder.h"
#include "common/media_kernel_error.h"
#include "utils/media_kernel_buffer.h"
#include "common/media_io.h"
#include "encoder/media_codec.h"
#include "uti... | 29.347092 | 116 | 0.677599 | [
"object",
"vector"
] |
4a255b0b3bc088b6c98ba2d623e16ce9dee264f2 | 3,890 | cpp | C++ | wpd/WpdServiceSampleDriver/WpdService.cpp | ixjf/Windows-driver-samples | 38985ba91feb685095754775e101389ad90c2aa6 | [
"MS-PL"
] | 3,084 | 2015-03-18T04:40:32.000Z | 2019-05-06T17:14:33.000Z | wpd/WpdServiceSampleDriver/WpdService.cpp | ixjf/Windows-driver-samples | 38985ba91feb685095754775e101389ad90c2aa6 | [
"MS-PL"
] | 275 | 2015-03-19T18:44:41.000Z | 2019-05-06T14:13:26.000Z | wpd/WpdServiceSampleDriver/WpdService.cpp | ixjf/Windows-driver-samples | 38985ba91feb685095754775e101389ad90c2aa6 | [
"MS-PL"
] | 3,091 | 2015-03-19T00:08:54.000Z | 2019-05-06T16:42:01.000Z | #include "stdafx.h"
#include "WpdService.tmh"
WpdService::WpdService() : m_pContactsService(NULL)
{
}
WpdService::~WpdService()
{
}
HRESULT WpdService::Initialize(_In_ FakeDevice* pDevice)
{
if (pDevice == NULL)
{
return E_POINTER;
}
m_pContactsService = pDevice->GetConta... | 29.24812 | 99 | 0.63419 | [
"object"
] |
4a31e872791bd49bf48a27e40f989fb3cf51028d | 3,827 | cpp | C++ | auto_completion.cpp | xmil9/ccon | c8dd9fe2d0d9c89bb6cbb53a1cb745234ea3c47a | [
"MIT"
] | null | null | null | auto_completion.cpp | xmil9/ccon | c8dd9fe2d0d9c89bb6cbb53a1cb745234ea3c47a | [
"MIT"
] | null | null | null | auto_completion.cpp | xmil9/ccon | c8dd9fe2d0d9c89bb6cbb53a1cb745234ea3c47a | [
"MIT"
] | null | null | null | //
// ccon
//
// Jun-2019, Michael Lindner
// MIT license
//
#include "auto_completion.h"
#include "cmd_spec.h"
#include "console_util.h"
#include "essentutils/string_util.h"
#include <set>
namespace
{
///////////////////
std::vector<std::string> autoCompleteCmdName(const std::string& input,
... | 25.513333 | 86 | 0.634962 | [
"vector"
] |
4a33f1630e93ad0a24e00f8b782410bff8a8ea71 | 23,579 | cpp | C++ | Submodules/Peano/src/peano/grid/tests/UnrolledAscendDescendLevelEnumeratorTest.cpp | linusseelinger/ExaHyPE-Tsunami | 92a6e14926862e1584ef1e935874c91d252e8112 | [
"BSD-3-Clause"
] | 2 | 2019-08-14T22:41:26.000Z | 2020-02-04T19:30:24.000Z | Submodules/Peano/src/peano/grid/tests/UnrolledAscendDescendLevelEnumeratorTest.cpp | linusseelinger/ExaHyPE-Tsunami | 92a6e14926862e1584ef1e935874c91d252e8112 | [
"BSD-3-Clause"
] | null | null | null | Submodules/Peano/src/peano/grid/tests/UnrolledAscendDescendLevelEnumeratorTest.cpp | linusseelinger/ExaHyPE-Tsunami | 92a6e14926862e1584ef1e935874c91d252e8112 | [
"BSD-3-Clause"
] | 3 | 2019-07-22T10:27:36.000Z | 2020-05-11T12:25:29.000Z | #include "peano/grid/tests/UnrolledAscendDescendLevelEnumeratorTest.h"
#include "peano/utils/Globals.h"
#include "peano/grid/UnrolledLevelEnumerator.h"
#include "peano/grid/UnrolledAscendDescendLevelEnumerator.h"
#include "tarch/tests/TestCaseFactory.h"
registerTest(peano::grid::tests::UnrolledAscendDescendLevelEnum... | 69.35 | 184 | 0.754485 | [
"vector"
] |
4a358c8ff1f4dd5614dcdd55aabbc7441258116b | 9,675 | cc | C++ | MagneticField/ParametrizedEngine/src/poly2d_base.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | MagneticField/ParametrizedEngine/src/poly2d_base.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | MagneticField/ParametrizedEngine/src/poly2d_base.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | #include "poly2d_base.h"
using namespace magfieldparam;
/////////////////////////////////////////////////////////////////////////////////
// //
// The "poly2d_term" represent a term of a polynomial of 2 variables. //
// ... | 31.514658 | 81 | 0.57261 | [
"object",
"vector"
] |
4a3ab4a17cd312240d0e5ee443ce4c385398a30c | 45,555 | cpp | C++ | app/WebView2APISample/AppWindow.cpp | h2floh/WebChatBotInteractingWithApp | def63a3a323c55eed318e1b95855c59a2c8483ca | [
"MIT"
] | null | null | null | app/WebView2APISample/AppWindow.cpp | h2floh/WebChatBotInteractingWithApp | def63a3a323c55eed318e1b95855c59a2c8483ca | [
"MIT"
] | null | null | null | app/WebView2APISample/AppWindow.cpp | h2floh/WebChatBotInteractingWithApp | def63a3a323c55eed318e1b95855c59a2c8483ca | [
"MIT"
] | null | null | null | // Copyright (C) Microsoft Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "stdafx.h"
#include "AppWindow.h"
#include <DispatcherQueue.h>
#include <functional>
#include <regex>
#include <string>
#include <vector>
#incl... | 33.471712 | 168 | 0.638196 | [
"vector"
] |
6654526fe56ab607df440f16a7ee473473c26155 | 4,515 | hpp | C++ | example-07/include/internal/sync_api.hpp | joeatodd/SYCL-For-CUDA-Examples | aad6720cf052fb12557a14758d0e7f7adc151f30 | [
"Apache-2.0"
] | 41 | 2020-06-02T13:31:03.000Z | 2022-02-07T10:46:55.000Z | example-07/include/internal/sync_api.hpp | joeatodd/SYCL-For-CUDA-Examples | aad6720cf052fb12557a14758d0e7f7adc151f30 | [
"Apache-2.0"
] | 7 | 2020-06-03T16:21:33.000Z | 2021-06-27T14:48:11.000Z | example-07/include/internal/sync_api.hpp | joeatodd/SYCL-For-CUDA-Examples | aad6720cf052fb12557a14758d0e7f7adc151f30 | [
"Apache-2.0"
] | 12 | 2020-06-13T10:02:22.000Z | 2022-01-08T02:47:27.000Z | #pragma once
#include "handle.hpp"
#include "common.hpp"
#include "../tools/intrinsics.hpp"
#include "../tools/sycl_queue_helpers.hpp"
#include <type_traits>
#include <vector>
namespace hash {
using namespace usm_smart_ptr;
/**
* Computes synchronously a hash.
* @tparam M Hash method
* @par... | 42.196262 | 170 | 0.67021 | [
"vector"
] |
665699d53efbb132dea54c6e155fd32adab1b7cd | 1,141 | cc | C++ | src/p414.thirdMaximumNumber.cc | magic-akari/leetcode | 8ed6af08c9d411461de67de939f88d4d788bbbe3 | [
"MIT"
] | null | null | null | src/p414.thirdMaximumNumber.cc | magic-akari/leetcode | 8ed6af08c9d411461de67de939f88d4d788bbbe3 | [
"MIT"
] | null | null | null | src/p414.thirdMaximumNumber.cc | magic-akari/leetcode | 8ed6af08c9d411461de67de939f88d4d788bbbe3 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=414 lang=cpp
*
* [414] Third Maximum Number
*/
#include <algorithm>
#include <vector>
using namespace std;
// @lc code=start
class Solution {
public:
auto thirdMax(vector<int>& nums) -> int {
auto first = INT64_MIN;
auto second = INT64_MIN;
auto third = INT... | 19.338983 | 68 | 0.473269 | [
"vector"
] |
665bf9cb12785ca76be134c8e7cb77c073c5eaae | 1,285 | cpp | C++ | measurement_all.cpp | Sam91/vmc_general | cb2b0cb103a66307a3d78dbf137582a3ad224f8d | [
"MIT"
] | null | null | null | measurement_all.cpp | Sam91/vmc_general | cb2b0cb103a66307a3d78dbf137582a3ad224f8d | [
"MIT"
] | null | null | null | measurement_all.cpp | Sam91/vmc_general | cb2b0cb103a66307a3d78dbf137582a3ad224f8d | [
"MIT"
] | null | null | null | /*
* Measurement that can be included in wavefunction::accumulate()
*
* Implements measurement of the full correlator between all sites (first used for the Kagome lattice Dirac state)
* Note that we are averaging over lattice translations here, so wavefunction::average() needs to divide by L2
*
* For this measure... | 32.948718 | 114 | 0.564981 | [
"vector"
] |
6662d371f104322f0916eb70cb26d3e56daf401b | 6,495 | cpp | C++ | core/src/Graphics/ShaderCompiler/ShaderTranspiler.cpp | GCLemon/Altseed2 | 89ee75a5a4c8f094989257fcc1cdbd5dee7f34c3 | [
"MIT"
] | null | null | null | core/src/Graphics/ShaderCompiler/ShaderTranspiler.cpp | GCLemon/Altseed2 | 89ee75a5a4c8f094989257fcc1cdbd5dee7f34c3 | [
"MIT"
] | null | null | null | core/src/Graphics/ShaderCompiler/ShaderTranspiler.cpp | GCLemon/Altseed2 | 89ee75a5a4c8f094989257fcc1cdbd5dee7f34c3 | [
"MIT"
] | null | null | null | #include "ShaderTranspiler.h"
#include <glslang/Include/ResourceLimits.h>
#include <glslang/Public/ShaderLang.h>
#include <glslang/SPIRV/GlslangToSpv.h>
#include <iostream>
#include <spirv_cross/spirv_cross.hpp>
#include <spirv_cross/spirv_glsl.hpp>
#include <spirv_cross/spirv_hlsl.hpp>
#include <spirv_cross/spirv_ms... | 33.137755 | 120 | 0.721324 | [
"vector"
] |
666a950d5595dda689192ff056642bc98cc6f23a | 3,295 | cpp | C++ | src/plugins/profiler/ProfilerPoolManager.cpp | EricKTCheung/dmlite | 7fe31e16fc18e3c3d8b048a3507f7769ef3f8a9d | [
"Apache-2.0"
] | null | null | null | src/plugins/profiler/ProfilerPoolManager.cpp | EricKTCheung/dmlite | 7fe31e16fc18e3c3d8b048a3507f7769ef3f8a9d | [
"Apache-2.0"
] | null | null | null | src/plugins/profiler/ProfilerPoolManager.cpp | EricKTCheung/dmlite | 7fe31e16fc18e3c3d8b048a3507f7769ef3f8a9d | [
"Apache-2.0"
] | null | null | null | /// @file ProfilerPoolManager.cpp
/// @brief ProfilerPoolManager implementation.
/// @author Alejandro Álvarez Ayllón <aalvarez@cern.ch>
#include "Profiler.h"
#include "XrdXrootdMonData.hh"
#include <string.h>
using namespace dmlite;
ProfilerPoolManager::ProfilerPoolManager(PoolManager* decorates) throw(DmExcep... | 25.152672 | 118 | 0.744158 | [
"vector"
] |
6672e0b96d65e227f689152bdefff44fa61731f8 | 3,989 | cpp | C++ | pic2pic/deal_2dpts.cpp | sublimationAC/face_transfer | 47460ade0d701b5f930fb5f56a8cc85af5d5a9ed | [
"MIT"
] | null | null | null | pic2pic/deal_2dpts.cpp | sublimationAC/face_transfer | 47460ade0d701b5f930fb5f56a8cc85af5d5a9ed | [
"MIT"
] | null | null | null | pic2pic/deal_2dpts.cpp | sublimationAC/face_transfer | 47460ade0d701b5f930fb5f56a8cc85af5d5a9ed | [
"MIT"
] | null | null | null | #include "deal_2dpts.hpp"
void get_over01_idx(std::string path_over01_idx, Eigen::VectorXi &over01_idx) {
puts("get idx z over -0.1");
FILE *fp;
fopen_s(&fp, path_over01_idx.c_str(), "r");
int n;
fscanf_s(fp, "%d", &n);
printf("number of idx: %d\n", n);
over01_idx.resize(n);
for (int i = 0; i < n; i+... | 38.728155 | 123 | 0.610429 | [
"mesh",
"vector"
] |
66735d8cd028ba800cc962334bd8b7ae4c165393 | 8,930 | cpp | C++ | projects/view3d/render/scene.cpp | psryland/rylogic_code | f79e471fe0d6714c5e0cf8385ddc2a88ab2e082b | [
"CNRI-Python"
] | 2 | 2020-11-11T16:19:04.000Z | 2021-01-19T01:53:29.000Z | projects/view3d/render/scene.cpp | psryland/rylogic_code | f79e471fe0d6714c5e0cf8385ddc2a88ab2e082b | [
"CNRI-Python"
] | 1 | 2020-07-27T09:00:21.000Z | 2020-07-27T10:58:10.000Z | projects/view3d/render/scene.cpp | psryland/rylogic_code | f79e471fe0d6714c5e0cf8385ddc2a88ab2e082b | [
"CNRI-Python"
] | 1 | 2021-04-04T01:39:55.000Z | 2021-04-04T01:39:55.000Z | //*********************************************
// Renderer
// Copyright (c) Rylogic Ltd 2012
//*********************************************
#include "pr/view3d/forward.h"
#include "pr/view3d/render/scene.h"
#include "pr/view3d/render/window.h"
#include "pr/view3d/render/renderer.h"
#include "pr/view3d/instances/inst... | 32.472727 | 171 | 0.694065 | [
"render",
"model"
] |
6674aa7e4b2aaae72dc9d9e360247c5e296512a4 | 8,987 | cc | C++ | components/link_header_util/link_header_util_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | components/link_header_util/link_header_util_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | components/link_header_util/link_header_util_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/link_header_util/link_header_util.h"
#include "base/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace link_heade... | 40.120536 | 80 | 0.60454 | [
"vector"
] |
6682b92f82e225b96b754357dddc4fb36663435c | 13,707 | cpp | C++ | src/EulerUnsteady2D.cpp | LukeMcCulloch/cfd_solvers_cpp | 69a6e8fde0e6b963a4d6d9e94f8241786d9088c5 | [
"MIT"
] | 5 | 2019-06-20T11:13:16.000Z | 2022-03-30T07:31:12.000Z | src/EulerUnsteady2D.cpp | LukeMcCulloch/cfd_solvers_cpp | 69a6e8fde0e6b963a4d6d9e94f8241786d9088c5 | [
"MIT"
] | null | null | null | src/EulerUnsteady2D.cpp | LukeMcCulloch/cfd_solvers_cpp | 69a6e8fde0e6b963a4d6d9e94f8241786d9088c5 | [
"MIT"
] | 1 | 2020-11-25T13:25:55.000Z | 2020-11-25T13:25:55.000Z | //********************************************************************************
//* Educationally-Designed Unstructured 2D (EDU2D) Code
//*
//*
//* --- This is EDU2D-Euler-RK2 ---
//*
//*
//* EDU2D-Euler-RK2: An Euler code with
//*
//* - Node-centered finite-volume discretization
//* - 2-s... | 39.962099 | 105 | 0.545561 | [
"mesh",
"vector"
] |
6690aad022b8756b285b6d5e99464f5e8fc5e2a6 | 809 | cpp | C++ | medium/0120minimumTotal.cpp | wanghengg/LeetCode | 4f73d7e176c8de5d2d9b87ab2812f7aa80c20a79 | [
"Apache-2.0"
] | null | null | null | medium/0120minimumTotal.cpp | wanghengg/LeetCode | 4f73d7e176c8de5d2d9b87ab2812f7aa80c20a79 | [
"Apache-2.0"
] | null | null | null | medium/0120minimumTotal.cpp | wanghengg/LeetCode | 4f73d7e176c8de5d2d9b87ab2812f7aa80c20a79 | [
"Apache-2.0"
] | null | null | null | //
// Created by wangheng on 2021/6/10.
//
#include <bits/stdc++.h>
using namespace std;
class Solution{
public:
int minimumTotal(vector<vector<int>>& triangle) {
int m = triangle.size();
// int n = triangle.end()->size();
int result = triangle[0][0];
int curPosition = 0;
fo... | 25.28125 | 72 | 0.517923 | [
"vector"
] |
6695e0718fdc17b31e625ae30872573fcca9d3dc | 7,361 | cpp | C++ | tests/LoggerTests.cpp | Andreone/logpp | 16fe38e6426803478ca462b84b6752381097ebfc | [
"MIT"
] | null | null | null | tests/LoggerTests.cpp | Andreone/logpp | 16fe38e6426803478ca462b84b6752381097ebfc | [
"MIT"
] | null | null | null | tests/LoggerTests.cpp | Andreone/logpp | 16fe38e6426803478ca462b84b6752381097ebfc | [
"MIT"
] | null | null | null | #include "logpp/core/LogFieldVisitor.h"
#include "logpp/core/Logger.h"
#include "logpp/core/Ostream.h"
#include "logpp/sinks/Sink.h"
#include "logpp/utils/detect.h"
#include "gtest/gtest.h"
using namespace logpp;
struct Field
{
virtual ~Field() = default;
explicit Field(std::string key)
: key(std::... | 25.295533 | 120 | 0.591903 | [
"vector"
] |
66973779e80bb20957de1144a77b9a94adaa6e12 | 4,716 | cpp | C++ | PlanetRendering/SolarSystem.cpp | Gooseguy/PlanetRendering2 | 2c148f47de6df3d0a0055233f0254218b3b3b677 | [
"MIT"
] | 15 | 2017-09-23T22:57:31.000Z | 2020-12-19T20:31:06.000Z | PlanetRendering/SolarSystem.cpp | christiancosgrove/PlanetRendering2 | 2c148f47de6df3d0a0055233f0254218b3b3b677 | [
"MIT"
] | 1 | 2015-02-27T00:30:30.000Z | 2015-02-27T00:30:30.000Z | PlanetRendering/SolarSystem.cpp | Gooseguy/PlanetRendering2 | 2c148f47de6df3d0a0055233f0254218b3b3b677 | [
"MIT"
] | 4 | 2017-09-27T08:09:53.000Z | 2021-01-15T09:40:12.000Z | //
// SolarSystem.cpp
// PlanetRendering
//
// Created by Christian Cosgrove on 10/23/14.
// Copyright (c) 2014 Christian. All rights reserved.
//
#include "SolarSystem.h"
#include "RandomUtils.h"
#include "glm/gtc/type_ptr.hpp"
SolarSystem::SolarSystem(Player& _player, GLManager& _glManager, int windowWidth, int ... | 34.173913 | 193 | 0.702502 | [
"solid"
] |
669bb150061758b89dca42e9bb4402ff2d282206 | 727,197 | hpp | C++ | adb-20190315/include/alibabacloud/adb_20190315.hpp | aliyun/alibabacloud-cpp-sdk | 0e7c0576abcd4ef1aef07d714b92654deb713c36 | [
"Apache-2.0"
] | 5 | 2021-02-01T03:20:23.000Z | 2022-01-28T02:13:49.000Z | adb-20190315/include/alibabacloud/adb_20190315.hpp | aliyun/alibabacloud-cpp-sdk | 0e7c0576abcd4ef1aef07d714b92654deb713c36 | [
"Apache-2.0"
] | 4 | 2021-05-03T08:34:12.000Z | 2022-01-28T02:13:33.000Z | adb-20190315/include/alibabacloud/adb_20190315.hpp | aliyun/alibabacloud-cpp-sdk | 0e7c0576abcd4ef1aef07d714b92654deb713c36 | [
"Apache-2.0"
] | 5 | 2021-04-02T02:59:04.000Z | 2022-02-24T02:33:44.000Z | // This file is auto-generated, don't edit it. Thanks.
#ifndef ALIBABACLOUD_ADB20190315_H_
#define ALIBABACLOUD_ADB20190315_H_
#include <alibabacloud/open_api.hpp>
#include <boost/throw_exception.hpp>
#include <darabonba/core.hpp>
#include <darabonba/util.hpp>
#include <iostream>
#include <map>
#include <vector>
usi... | 35.544113 | 227 | 0.645656 | [
"vector",
"model"
] |
66b6bd4b4231c4a37334bd46e0b42ed90476e8a1 | 4,078 | cpp | C++ | ps4a/ps4b/main.cpp | Siroibma/Comp4 | d873928924d641e4730b6355264f02b9cfd08bb7 | [
"MIT"
] | null | null | null | ps4a/ps4b/main.cpp | Siroibma/Comp4 | d873928924d641e4730b6355264f02b9cfd08bb7 | [
"MIT"
] | null | null | null | ps4a/ps4b/main.cpp | Siroibma/Comp4 | d873928924d641e4730b6355264f02b9cfd08bb7 | [
"MIT"
] | null | null | null | #include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
#include <SFML/Audio.hpp>
#include <SFML/Window.hpp>
#include <math.h>
#include <limits.h>
#include "RingBuffer.h"
#include <math.h>
#include <random>
#define CONCERT_A 440.0
#define SAMPLES_PER_SEC 44100
class StringSound{
public:
explicit StringSound(doubl... | 24.715152 | 113 | 0.639039 | [
"vector"
] |
66b9df930dfbfabbc4efa0a3d0f5fbfca284aa02 | 12,246 | hpp | C++ | include/GlobalNamespace/MirroredGameNoteController.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/MirroredGameNoteController.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/MirroredGameNoteController.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: MirroredNoteController`1
#include "... | 59.736585 | 352 | 0.779112 | [
"object",
"vector"
] |
66c097c3f2853b2ba217c07eae12c260aeffa58e | 16,217 | c++ | C++ | bindings/old/pyplasma.c++ | Krissmedt/imprunko | 94171d0d47171cc4b199cd52f5f29385cbff903e | [
"MIT"
] | 5 | 2018-10-26T07:08:16.000Z | 2019-05-10T06:47:37.000Z | bindings/old/pyplasma.c++ | Krissmedt/imprunko | 94171d0d47171cc4b199cd52f5f29385cbff903e | [
"MIT"
] | 9 | 2018-11-09T08:50:48.000Z | 2019-06-06T20:11:12.000Z | bindings/old/pyplasma.c++ | Krissmedt/imprunko | 94171d0d47171cc4b199cd52f5f29385cbff903e | [
"MIT"
] | null | null | null | #include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
#include "../definitions.h"
#include "../tools/mesh.h"
//--------------------------------------------------
// Vlasov module
//#include "../vlasov/tile.h"
#include "../vlasov/grid.h"
#include "../em-fields/tile.h"
#include "../em-f... | 36.690045 | 113 | 0.605229 | [
"mesh",
"object",
"vector"
] |
66c4ae50299b88e2b7d63b3410f4e93e0c0a7130 | 6,170 | cxx | C++ | src/operator/rhfaomoints.cxx | susilehtola/aquarius | 9160e73bd7e3e0d8d97b10d00d9a4860aee709d2 | [
"BSD-3-Clause"
] | 18 | 2015-02-11T15:02:39.000Z | 2021-09-24T13:10:12.000Z | src/operator/rhfaomoints.cxx | susilehtola/aquarius | 9160e73bd7e3e0d8d97b10d00d9a4860aee709d2 | [
"BSD-3-Clause"
] | 21 | 2015-06-23T13:32:29.000Z | 2022-02-15T20:14:42.000Z | src/operator/rhfaomoints.cxx | susilehtola/aquarius | 9160e73bd7e3e0d8d97b10d00d9a4860aee709d2 | [
"BSD-3-Clause"
] | 8 | 2016-01-09T23:36:21.000Z | 2019-11-19T14:22:34.000Z | #include "rhfaomoints.hpp"
#include "time/time.hpp"
using namespace aquarius::scf;
using namespace aquarius::tensor;
using namespace aquarius::input;
using namespace aquarius::integrals;
using namespace aquarius::task;
using namespace aquarius::symmetry;
namespace aquarius
{
namespace op
{
template <typename T>
RHF... | 32.994652 | 136 | 0.605673 | [
"vector",
"transform"
] |
66c9cd2c5d321d4be33093ed0398b8b01f800cc8 | 12,342 | cpp | C++ | libraries/platform/src/platform/backend/MACOSPlatform.cpp | VRcentral/hifi | d6064b46cfd26af4090ba799db55941c7de21b90 | [
"Apache-2.0"
] | 1 | 2019-07-08T06:54:01.000Z | 2019-07-08T06:54:01.000Z | libraries/platform/src/platform/backend/MACOSPlatform.cpp | VRcentral/VRcentral | d6064b46cfd26af4090ba799db55941c7de21b90 | [
"Apache-2.0"
] | null | null | null | libraries/platform/src/platform/backend/MACOSPlatform.cpp | VRcentral/VRcentral | d6064b46cfd26af4090ba799db55941c7de21b90 | [
"Apache-2.0"
] | null | null | null | //
// Created by Amer Cerkic 05/02/2019
// Copyright 2019 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "MACOSPlatform.h"
#include "../PlatformKeys.h"
#include <thread>
#include <stri... | 37.975385 | 125 | 0.597715 | [
"vector",
"model"
] |
66cc930865801386dc73f54199e6ae93f4a279bb | 770 | hpp | C++ | ADFSetup.hpp | will-henderson/genetic-programming | ecff399429b5e71bdbefb3107adbd2441fe5bc69 | [
"MIT"
] | null | null | null | ADFSetup.hpp | will-henderson/genetic-programming | ecff399429b5e71bdbefb3107adbd2441fe5bc69 | [
"MIT"
] | null | null | null | ADFSetup.hpp | will-henderson/genetic-programming | ecff399429b5e71bdbefb3107adbd2441fe5bc69 | [
"MIT"
] | null | null | null | //
// ADFSetup.hpp
// Genetic Programming
//
// Created by William Henderson on 19/08/2018.
// Copyright © 2018 William Henderson. All rights reserved.
//
#ifndef ADFSetup_hpp
#define ADFSetup_hpp
#include <stdio.h>
#include "Setup.hpp"
class ADFSetup: public Setup{
protected:
std::vector<void* > childrenVar... | 25.666667 | 235 | 0.716883 | [
"vector"
] |
202edf7ae9da5c3c373d9eb01416fa5e111ff984 | 8,083 | hpp | C++ | include/tao/config/internal/phase1_erase.hpp | mpoeter/config | 9a20b1dde685d42190310fa51ecd271e66d90ea0 | [
"MIT"
] | 1 | 2020-03-17T20:47:52.000Z | 2020-03-17T20:47:52.000Z | include/tao/config/internal/phase1_erase.hpp | mpoeter/config | 9a20b1dde685d42190310fa51ecd271e66d90ea0 | [
"MIT"
] | null | null | null | include/tao/config/internal/phase1_erase.hpp | mpoeter/config | 9a20b1dde685d42190310fa51ecd271e66d90ea0 | [
"MIT"
] | null | null | null | // Copyright (c) 2018-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/config/
#ifndef TAO_CONFIG_INTERNAL_PHASE1_ERASE_HPP
#define TAO_CONFIG_INTERNAL_PHASE1_ERASE_HPP
#include <stdexcept>
#include "../key.hpp"
#include "entry.hpp"
#include "format.hpp"
#in... | 35.143478 | 185 | 0.53495 | [
"object"
] |
20358350d573f63a61318c45622da17c3e61fbd8 | 7,664 | cpp | C++ | groups/bsl/bslmf/bslmf_util.t.cpp | apaprocki/bde | ba252cb776f92fae082d5d422aa2852a9be46849 | [
"Apache-2.0"
] | 1 | 2021-04-28T13:51:30.000Z | 2021-04-28T13:51:30.000Z | groups/bsl/bslmf/bslmf_util.t.cpp | apaprocki/bde | ba252cb776f92fae082d5d422aa2852a9be46849 | [
"Apache-2.0"
] | null | null | null | groups/bsl/bslmf/bslmf_util.t.cpp | apaprocki/bde | ba252cb776f92fae082d5d422aa2852a9be46849 | [
"Apache-2.0"
] | 1 | 2019-06-26T13:28:48.000Z | 2019-06-26T13:28:48.000Z | // bslmf_util.t.cpp -*-C++-*-
#include <bslmf_util.h>
#include <bsls_objectbuffer.h>
#include <bsls_bsltestutil.h>
#include <stdio.h>
#include <stdlib.h>
#include <new> // required to support use of "placement new"
using namespace BloombergLP;
//=================... | 33.911504 | 79 | 0.496477 | [
"object"
] |
2039a4e776144e7daa57b5bf261eedd79ba827a4 | 9,068 | cpp | C++ | src/chess_board.cpp | mathiasgredal/NanoGUI-Chess | 6bf044a80ada607f9792610b97acfed4ddee242e | [
"MIT"
] | 1 | 2020-02-29T18:00:31.000Z | 2020-02-29T18:00:31.000Z | src/chess_board.cpp | mathiasgredal/NanoGUI-Chess | 6bf044a80ada607f9792610b97acfed4ddee242e | [
"MIT"
] | null | null | null | src/chess_board.cpp | mathiasgredal/NanoGUI-Chess | 6bf044a80ada607f9792610b97acfed4ddee242e | [
"MIT"
] | null | null | null | #include <utility>
#include "chess_pieces.h"
#include "movegenerator.h"
#include <array>
Board::Board(array<Chess_Piece, 64> pieces)
{
chess_pieces = std::move(pieces);
}
int Board::GetBoardScore()
{
float sum = 0;
for (auto& piece : chess_pieces) {
sum += (piece.color != currentPlayer) ? ChessPi... | 33.461255 | 121 | 0.646118 | [
"vector"
] |
204312ad37d93f21bfc09af5cc76b1533986adc0 | 1,796 | cpp | C++ | srm/756/A.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | srm/756/A.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | srm/756/A.cpp | freedomDR/coding | 310a68077de93ef445ccd2929e90ba9c22a9b8eb | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
class ClinderellaGirls
{
public:
//O(nlogn)
int count(vector<int> t, vector<int> s)
{
vector<pair<int, int>> ts(t.size(), make_pair(0, 0));
for(int i = 0; i < t.size(); i++)
{
ts[i].first = t[i];
... | 26.80597 | 150 | 0.400891 | [
"vector"
] |
204730b781d5c17f506f43029c35617589a7bd97 | 18,114 | cpp | C++ | src/Loss.cpp | edeforas/BeeDNN | 8c5277b7af56b8044c2ddc85d26fa5fd540facad | [
"MIT"
] | 14 | 2019-11-13T05:14:40.000Z | 2022-03-13T20:51:22.000Z | src/Loss.cpp | edeforas/BeeDNN | 48de7aa5e7ea6a0b2f1d7b713f0a48c4b8b6a7e2 | [
"MIT"
] | 66 | 2019-04-20T09:32:53.000Z | 2021-12-25T10:35:11.000Z | src/Loss.cpp | edeforas/BeeDNN | 8c5277b7af56b8044c2ddc85d26fa5fd540facad | [
"MIT"
] | 2 | 2020-05-03T18:53:08.000Z | 2020-06-19T16:36:24.000Z | /*
Copyright (c) 2019, Etienne de Foras and the respective contributors
All rights reserved.
Use of this source code is governed by a MIT-style license that can be found
in the LICENSE.txt file.
*/
#include "Loss.h"
#include <cassert>
#include <cmath>
////////////////////////////////////////////////... | 32.117021 | 126 | 0.566468 | [
"vector"
] |
204a5ba16f0ed27a5c5223830c7ff7d26a133817 | 12,768 | cpp | C++ | oadrive/src/oadrive_missioncontrol/ManeuverList.cpp | fzi-forschungszentrum-informatik/aadc2016 | b00149f84f91be07d98f3be0ac79daebb732025b | [
"BSD-2-Clause"
] | 11 | 2016-04-30T14:55:20.000Z | 2020-06-04T21:13:31.000Z | oadrive/src/oadrive_missioncontrol/ManeuverList.cpp | fzi-forschungszentrum-informatik/aadc2016 | b00149f84f91be07d98f3be0ac79daebb732025b | [
"BSD-2-Clause"
] | null | null | null | oadrive/src/oadrive_missioncontrol/ManeuverList.cpp | fzi-forschungszentrum-informatik/aadc2016 | b00149f84f91be07d98f3be0ac79daebb732025b | [
"BSD-2-Clause"
] | 8 | 2016-04-30T14:58:18.000Z | 2019-12-27T10:37:53.000Z | // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
// -- BEGIN LICENSE BLOCK ----------------------------------------------
// Copyright (c) 2016, FZI Forschungszentrum Informatik
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, ... | 31.141463 | 322 | 0.663847 | [
"object",
"transform"
] |
205a2ccccd02d9596fab09d4320ea113f64c3808 | 12,233 | cc | C++ | src/parser.cc | ktsitsi/sigmod_contest_2018 | de9b1b94a4cf718b95305db0c5011f87f838adfd | [
"MIT"
] | 6 | 2018-04-09T12:03:06.000Z | 2019-11-25T06:41:51.000Z | src/parser.cc | ktsitsi/sigmod_contest_2018 | de9b1b94a4cf718b95305db0c5011f87f838adfd | [
"MIT"
] | null | null | null | src/parser.cc | ktsitsi/sigmod_contest_2018 | de9b1b94a4cf718b95305db0c5011f87f838adfd | [
"MIT"
] | null | null | null | #include <cassert>
#include <iostream>
#include <utility>
#include <map>
#include <sstream>
#include "include/parser.h"
//---------------------------------------------------------------------------
using namespace std;
//---------------------------------------------------------------------------
const char *SelectInfo:... | 32.448276 | 114 | 0.512712 | [
"vector"
] |
2060c5aaff22b083f99550d091f36e6e3d781fd6 | 12,405 | cpp | C++ | src/frameworks/native/services/surfaceflinger/CompositionEngine/tests/OutputLayerTest.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/frameworks/native/services/surfaceflinger/CompositionEngine/tests/OutputLayerTest.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/frameworks/native/services/surfaceflinger/CompositionEngine/tests/OutputLayerTest.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 The Android Open Source Project
*
* 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 applica... | 39.380952 | 100 | 0.710278 | [
"transform"
] |
2066002cfcddddad27c4c901e59bb28f1d8eb122 | 5,793 | cpp | C++ | YeOlde/cpp/Aquarians/aqlib/Exception.cpp | aquarians/Public | ac79b1502fe62eee2c84e1e4b8d32e6c303bdfd4 | [
"MIT"
] | null | null | null | YeOlde/cpp/Aquarians/aqlib/Exception.cpp | aquarians/Public | ac79b1502fe62eee2c84e1e4b8d32e6c303bdfd4 | [
"MIT"
] | null | null | null | YeOlde/cpp/Aquarians/aqlib/Exception.cpp | aquarians/Public | ac79b1502fe62eee2c84e1e4b8d32e6c303bdfd4 | [
"MIT"
] | null | null | null | #include "Exception.hpp"
#include <execinfo.h>
#include <unistd.h>
#include <bfd.h>
#include <vector>
#include <stdexcept>
#include <sstream>
#include <stdlib.h>
#include <stdio.h>
#include <cxxabi.h>
namespace aqlib
{
log4cxx::LoggerPtr Exception::logger(log4cxx::Logger::getLogger("aqlib.Exception"));
const std::str... | 24.037344 | 118 | 0.547385 | [
"vector"
] |
206da0cf18efa44a3cb4086c092105f21fea5761 | 3,506 | cpp | C++ | src/AdventOfCode2020/Day11-SeatingSystem/SeatingSimulator.cpp | dbartok/advent-of-code-cpp | c8c2df7a21980f8f3e42128f7bc5df8288f18490 | [
"MIT"
] | null | null | null | src/AdventOfCode2020/Day11-SeatingSystem/SeatingSimulator.cpp | dbartok/advent-of-code-cpp | c8c2df7a21980f8f3e42128f7bc5df8288f18490 | [
"MIT"
] | null | null | null | src/AdventOfCode2020/Day11-SeatingSystem/SeatingSimulator.cpp | dbartok/advent-of-code-cpp | c8c2df7a21980f8f3e42128f7bc5df8288f18490 | [
"MIT"
] | null | null | null | #include "SeatingSimulator.h"
#include <AdventOfCodeCommon/DisableLibraryWarningsMacros.h>
__BEGIN_LIBRARIES_DISABLE_WARNINGS
__END_LIBRARIES_DISABLE_WARNINGS
namespace AdventOfCode
{
namespace Year2020
{
namespace Day11
{
SeatingSimulator::SeatingSimulator(std::vector<std::string> seatLayoutLines, size_t visionRan... | 22.050314 | 137 | 0.623217 | [
"vector"
] |
206fde0a7a450fc35561341c34d07c732b7fa8f5 | 15,975 | cpp | C++ | libfma/src/fma/core/Array.cpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 14 | 2018-01-25T10:31:05.000Z | 2022-02-19T13:08:11.000Z | libfma/src/fma/core/Array.cpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 1 | 2020-12-24T10:10:28.000Z | 2020-12-24T10:10:28.000Z | libfma/src/fma/core/Array.cpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | null | null | null | #include <fma/core/Class.hpp>
#include <fma/core/Array.hpp>
#include <fma/core/Boolean.hpp>
#include <fma/core/Nil.hpp>
#include <fma/core/Number.hpp>
#include <fma/core/String.hpp>
#include <fma/types/InternalValue.hpp>
#include <fma/types/Object.hpp>
#include <fma/types/Undefined.hpp>
#include <fma/types/ClassPrototy... | 33.420502 | 107 | 0.615211 | [
"object",
"vector"
] |
2070e71c98488bec1966412e77d33ef4e43fddda | 14,118 | cpp | C++ | TestC_21_Crab Pong/game.cpp | liuyuwang2016/OpenGL-Tutorial-by-Yvan-Liu | 9309df734ade3e26e95aabfd33eaeabe5e7d701d | [
"MIT"
] | null | null | null | TestC_21_Crab Pong/game.cpp | liuyuwang2016/OpenGL-Tutorial-by-Yvan-Liu | 9309df734ade3e26e95aabfd33eaeabe5e7d701d | [
"MIT"
] | null | null | null | TestC_21_Crab Pong/game.cpp | liuyuwang2016/OpenGL-Tutorial-by-Yvan-Liu | 9309df734ade3e26e95aabfd33eaeabe5e7d701d | [
"MIT"
] | null | null | null | /* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
*... | 22.37401 | 80 | 0.610993 | [
"object",
"vector"
] |
20733be961edfbd10a103e6f19371751a1b886cc | 3,401 | cpp | C++ | gym/102433/A.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | 1 | 2021-07-16T19:59:39.000Z | 2021-07-16T19:59:39.000Z | gym/102433/A.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | null | null | null | gym/102433/A.cpp | albexl/codeforces-gym-submissions | 2a51905c50fcf5d7f417af81c4c49ca5217d0753 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <random>
#include <chrono>
using namespace std;
using namespace __gnu_pbds;
#define endl '\n'
typedef long long ll;
typedef pair<int, int> pii;
//typedef tree<int,null_type,less<int>,rb_tree_tag, tree_orde... | 16.590244 | 99 | 0.490444 | [
"vector"
] |
207811f6375e6b6457342390b9dc276175d50bb5 | 1,581 | cc | C++ | tensorstore/internal/string_like_test.cc | stuarteberg/tensorstore | 2c22a3c9f798b0fbf023031633c58cc7c644235d | [
"Apache-2.0"
] | null | null | null | tensorstore/internal/string_like_test.cc | stuarteberg/tensorstore | 2c22a3c9f798b0fbf023031633c58cc7c644235d | [
"Apache-2.0"
] | null | null | null | tensorstore/internal/string_like_test.cc | stuarteberg/tensorstore | 2c22a3c9f798b0fbf023031633c58cc7c644235d | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 The TensorStore Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... | 26.35 | 75 | 0.68754 | [
"vector"
] |
208add2d4665cb77d54ee3a843175b5f5575bf15 | 26,975 | cp | C++ | Std/Mod/Coder.cp | romiras/Blackbox-fw-playground | 6de94dc65513e657a9b86c1772e2c07742b608a8 | [
"BSD-2-Clause"
] | 1 | 2016-03-17T08:27:05.000Z | 2016-03-17T08:27:05.000Z | Std/Mod/Coder.cps | Spirit-of-Oberon/LightBox | 8a45ed11dcc02ae97e86f264dcee3e07c910ff9d | [
"BSD-2-Clause"
] | null | null | null | Std/Mod/Coder.cps | Spirit-of-Oberon/LightBox | 8a45ed11dcc02ae97e86f264dcee3e07c910ff9d | [
"BSD-2-Clause"
] | 1 | 2018-03-14T17:53:27.000Z | 2018-03-14T17:53:27.000Z | MODULE StdCoder;
(**
project = "BlackBox"
organization = "www.oberon.ch"
contributors = "Oberon microsystems"
version = "System/Rsrc/About"
copyright = "System/Rsrc/About"
license = "Docu/BB-License"
changes = ""
issues = ""
**)
IMPORT
Kernel, Files... | 39.037627 | 111 | 0.501131 | [
"model"
] |
208fbad0aa36cca2b20eecd8c8323130bbd0cc7d | 2,777 | cpp | C++ | src/hed/libs/message/SecAttr.cpp | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | src/hed/libs/message/SecAttr.cpp | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | src/hed/libs/message/SecAttr.cpp | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | #ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "SecAttr.h"
namespace Arc {
SecAttrFormat SecAttr::UNDEFINED;
SecAttrFormat SecAttr::ARCAuth("arc");
SecAttrFormat SecAttr::XACML("xacml");
SecAttrFormat SecAttr::SAML("saml");
SecAttrFormat SecAttr::GACL("gacl");
bool SecAttr::equal(const SecAttr&) const {
... | 23.533898 | 91 | 0.661865 | [
"object"
] |
2090ecf6afef1d94bcc3a7752da660cf1a3f5607 | 19,082 | cpp | C++ | src/DroneFlyPro/Map.cpp | Marmiya/MarinaioDrone | a98490f946c0b45460e4525fc05f2ac14f9a4e09 | [
"MIT"
] | null | null | null | src/DroneFlyPro/Map.cpp | Marmiya/MarinaioDrone | a98490f946c0b45460e4525fc05f2ac14f9a4e09 | [
"MIT"
] | null | null | null | src/DroneFlyPro/Map.cpp | Marmiya/MarinaioDrone | a98490f946c0b45460e4525fc05f2ac14f9a4e09 | [
"MIT"
] | null | null | null | #include "Map.h"
namespace map {
GTEnvironment::GTEnvironment(json args)
{
}
Mapper::Mapper(json args):args(args)
{
obj = modeltools::load_obj(args["objModelPath"]);
CGAL::IO::read_point_set(args["plyModelPath"], pts);
}
//
// plyMapper::plyMapper(const json& args) :m_args(args) {
// CGAL::Point_set_... | 32.178752 | 138 | 0.579918 | [
"mesh",
"shape",
"vector"
] |
2097f2c126432b77f8bd30f80cea8ba14d6cdfc5 | 676 | hpp | C++ | Loader/Loader.hpp | acaos/nwnxee-unified | 0e4c318ede64028c1825319f39c012e168e0482c | [
"MIT"
] | 1 | 2019-06-04T04:30:24.000Z | 2019-06-04T04:30:24.000Z | Loader/Loader.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | null | null | null | Loader/Loader.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | 1 | 2019-10-20T07:54:45.000Z | 2019-10-20T07:54:45.000Z | #pragma once
#include <windows.h>
#include <functional>
#include <memory>
#include <string>
#include <vector>
namespace Loader
{
struct StartupArgs
{
std::string loaderPath;
std::string fileName;
std::string fileArgs;
std::string dllName;
};
class Loader
{
public:
Loader(const StartupArgs& args)... | 17.789474 | 98 | 0.714497 | [
"vector"
] |
209a6f127821df05aa4148ef80208b1d0b4084f1 | 33,013 | cpp | C++ | dlls/pitdrone.cpp | Admer456/halflife-dnf01 | a3cacddb5ff3dedfea2d157c72711ba1df429dac | [
"Unlicense"
] | null | null | null | dlls/pitdrone.cpp | Admer456/halflife-dnf01 | a3cacddb5ff3dedfea2d157c72711ba1df429dac | [
"Unlicense"
] | null | null | null | dlls/pitdrone.cpp | Admer456/halflife-dnf01 | a3cacddb5ff3dedfea2d157c72711ba1df429dac | [
"Unlicense"
] | null | null | null | /***
*
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* This source code contains proprietary and confidential information of
* Valve L... | 26.516466 | 141 | 0.635719 | [
"vector",
"model",
"solid"
] |
20b248ebc53d2e91012353ac0301a332242dcafa | 1,617 | hpp | C++ | pythran/pythonic/numpy/rot90.hpp | Pikalchemist/Pythran | 17d4108b56b3b365e089a4e1b01a09eb7e12942b | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/numpy/rot90.hpp | Pikalchemist/Pythran | 17d4108b56b3b365e089a4e1b01a09eb7e12942b | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/numpy/rot90.hpp | Pikalchemist/Pythran | 17d4108b56b3b365e089a4e1b01a09eb7e12942b | [
"BSD-3-Clause"
] | 1 | 2017-03-12T20:32:36.000Z | 2017-03-12T20:32:36.000Z | #ifndef PYTHONIC_NUMPY_ROT90_HPP
#define PYTHONIC_NUMPY_ROT90_HPP
#include "pythonic/utils/proxy.hpp"
#include "pythonic/utils/numpy_conversion.hpp"
#include "pythonic/types/ndarray.hpp"
#include "pythonic/numpy/copy.hpp"
namespace pythonic {
namespace numpy {
template<class T, size_t N>
type... | 31.096154 | 81 | 0.429808 | [
"shape"
] |
20b3890df868930a17d36fb044b058a24c5f5b9c | 2,204 | cpp | C++ | src/pow/test/test_pow_server.cpp | datavetaren/prologcoin | 8583db7d99a8007f634210aefdfb92bf45596fd3 | [
"MIT"
] | 38 | 2017-06-14T07:13:10.000Z | 2022-02-16T15:41:25.000Z | src/pow/test/test_pow_server.cpp | datavetaren/prologcoin | 8583db7d99a8007f634210aefdfb92bf45596fd3 | [
"MIT"
] | 10 | 2017-07-01T11:13:10.000Z | 2021-02-27T05:40:30.000Z | src/pow/test/test_pow_server.cpp | datavetaren/prologcoin | 8583db7d99a8007f634210aefdfb92bf45596fd3 | [
"MIT"
] | 7 | 2017-07-05T20:38:51.000Z | 2021-08-02T04:30:46.000Z | #include <assert.h>
#include <iostream>
#include <boost/filesystem.hpp>
#ifdef _WIN32
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
#endif
#include "../pow_server.hpp"
#include "../observatory.hpp"
#include "../pow_verifier.hpp"
#include "../../common/test/test_home_dir.hpp"
using namespace prologcoin::pow... | 24.21978 | 103 | 0.603902 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.