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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
125e2f08e9f946fd30a9104d21dd043bf4f859bc | 11,431 | cpp | C++ | src/lib/corelib/sipkeydef.cpp | millimoji/ribbon | 59e6659848f5edc435d58078f0cdcd805daf9f3f | [
"MIT"
] | null | null | null | src/lib/corelib/sipkeydef.cpp | millimoji/ribbon | 59e6659848f5edc435d58078f0cdcd805daf9f3f | [
"MIT"
] | null | null | null | src/lib/corelib/sipkeydef.cpp | millimoji/ribbon | 59e6659848f5edc435d58078f0cdcd805daf9f3f | [
"MIT"
] | null | null | null | #include "pch.h"
namespace Ribbon {
static std::pair<uint16_t, uint16_t> SIPKEYtoOSKEY[] = {
{ (uint16_t)SIPKEY_ESCAPE, (uint16_t)OSKEY_ESCAPE },
{ (uint16_t)SIPKEY_F1, (uint16_t)OSKEY_F1 },
{ (uint16_t)SIPKEY_F2, (uint16_t)OSKEY_F2 },
{ (uint16_t)SIPKEY_F3, (uint16_t)OSKEY_F3 },
{ (uint16_t)SIPKEY_F4, (... | 36.755627 | 122 | 0.641589 | [
"vector"
] |
12602c020b01ee7e0ecd9343d10ea688f2ffe55e | 1,967 | cpp | C++ | backup/2/interviewbit/c++/equal.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/interviewbit/c++/equal.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/interviewbit/c++/equal.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 41.851064 | 345 | 0.424504 | [
"vector"
] |
1269710c1f2753db1adebf5d4a27166e86cc89f7 | 4,389 | cpp | C++ | src/test/accounting_tests.cpp | moorecoin/MooreCoinMiningAlgorithm | fe6a153e1392f6e18110b1e69481aa5c3c8b4a1d | [
"MIT"
] | null | null | null | src/test/accounting_tests.cpp | moorecoin/MooreCoinMiningAlgorithm | fe6a153e1392f6e18110b1e69481aa5c3c8b4a1d | [
"MIT"
] | null | null | null | src/test/accounting_tests.cpp | moorecoin/MooreCoinMiningAlgorithm | fe6a153e1392f6e18110b1e69481aa5c3c8b4a1d | [
"MIT"
] | null | null | null | // copyright (c) 2012-2014 the moorecoin core developers
// distributed under the mit software license, see the accompanying
// file copying or http://www.opensource.org/licenses/mit-license.php.
#include "wallet/wallet.h"
#include "wallet/walletdb.h"
#include "test/test_moorecoin.h"
#include <stdint.h>
#include <b... | 30.908451 | 77 | 0.681021 | [
"vector"
] |
126b54e5779e249bb944997b47a4f10bb54bd4ea | 13,560 | cpp | C++ | src/demo.cpp | Harrand/Engine-B | 57ec4e2bc2ddc67133dc943872ccdd1c7f1d3c52 | [
"Apache-2.0"
] | null | null | null | src/demo.cpp | Harrand/Engine-B | 57ec4e2bc2ddc67133dc943872ccdd1c7f1d3c52 | [
"Apache-2.0"
] | null | null | null | src/demo.cpp | Harrand/Engine-B | 57ec4e2bc2ddc67133dc943872ccdd1c7f1d3c52 | [
"Apache-2.0"
] | null | null | null | #include "core/listener.hpp"
#include "physics/physics.hpp"
#include "graphics/asset.hpp"
#include "graphics/gui/button.hpp"
#include "graphics/gui/textfield.hpp"
#include "core/scene.hpp"
#include "graphics/skybox.hpp"
#include "core/topaz.hpp"
#include "utility/time.hpp"
#include "graphics/frame_buffer.hpp"
#include ... | 49.67033 | 755 | 0.603466 | [
"mesh",
"render",
"object",
"vector",
"transform"
] |
1272324b929e1585abc9022a692f6253b75af33d | 762 | cpp | C++ | phase_1/example/douglas/variants/unpatched/src/commands/zrange.cpp | cromulencellc/chess-aces | 7780e29de1991758078816ca501ff79a2586b8c2 | [
"MIT"
] | null | null | null | phase_1/example/douglas/variants/unpatched/src/commands/zrange.cpp | cromulencellc/chess-aces | 7780e29de1991758078816ca501ff79a2586b8c2 | [
"MIT"
] | null | null | null | phase_1/example/douglas/variants/unpatched/src/commands/zrange.cpp | cromulencellc/chess-aces | 7780e29de1991758078816ca501ff79a2586b8c2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include "../log.h"
#include "../zset.h"
#include "zrange.h"
using std::string;
void Zrange::respond() {
lll("processing zrange\n");
string key = argv.get_array()[1].get_string();
long int start = argv.get_array()[2].cast_integer();
long int stop = argv.get_array()[3]... | 19.538462 | 61 | 0.653543 | [
"vector"
] |
127f3f333c8aa986f9f6868b1804d71356cfa432 | 3,274 | cc | C++ | vector/mmap_raw_vector.cc | njlkj/gamma | d56163b77dff553a2fe2795cfee21b0a8e75c1b9 | [
"Apache-2.0"
] | null | null | null | vector/mmap_raw_vector.cc | njlkj/gamma | d56163b77dff553a2fe2795cfee21b0a8e75c1b9 | [
"Apache-2.0"
] | null | null | null | vector/mmap_raw_vector.cc | njlkj/gamma | d56163b77dff553a2fe2795cfee21b0a8e75c1b9 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2019 The Gamma Authors.
*
* This source code is licensed under the Apache License, Version 2.0 license
* found in the LICENSE file in the root directory of this source tree.
*/
#include "mmap_raw_vector.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sy... | 28.469565 | 82 | 0.652718 | [
"vector"
] |
1284cf173e449ec1dc9846bad59349a1e146d832 | 3,024 | cpp | C++ | lib/llvm/analysis/ReachingDefinitions/LLVMReachingDefinitions.cpp | Marvinmw/dg | ed98c253adc6810b2f3d89457b490a1b1bb3b84f | [
"MIT"
] | 1 | 2020-01-24T20:08:33.000Z | 2020-01-24T20:08:33.000Z | lib/llvm/analysis/ReachingDefinitions/LLVMReachingDefinitions.cpp | Marvinmw/dg | ed98c253adc6810b2f3d89457b490a1b1bb3b84f | [
"MIT"
] | null | null | null | lib/llvm/analysis/ReachingDefinitions/LLVMReachingDefinitions.cpp | Marvinmw/dg | ed98c253adc6810b2f3d89457b490a1b1bb3b84f | [
"MIT"
] | null | null | null | // ignore unused parameters in LLVM libraries
#if (__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#else
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#endif
#include <llvm/IR/GlobalVariable.h>
#if (__clang__)
#pragma clang diagnostic po... | 28.261682 | 89 | 0.651786 | [
"vector"
] |
12887374541e9cbc46efcd114156d296edbd08d3 | 18,455 | cc | C++ | rknn/rknn_api/examples/rknn_ofa/src/main.cc | ronjian/rknpu | f6dd30f8d4d33b85905349cf980ddceaacb3d3cf | [
"BSD-3-Clause"
] | null | null | null | rknn/rknn_api/examples/rknn_ofa/src/main.cc | ronjian/rknpu | f6dd30f8d4d33b85905349cf980ddceaacb3d3cf | [
"BSD-3-Clause"
] | null | null | null | rknn/rknn_api/examples/rknn_ofa/src/main.cc | ronjian/rknpu | f6dd30f8d4d33b85905349cf980ddceaacb3d3cf | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
*
* Copyright (c) 2017 - 2018 by Rockchip Corp. All rights reserved.
*
* The material in this file is confidential and contains trade secrets
* of Rockchip Corporation. This is proprietary information owned by
* Rockchip Corporat... | 25.143052 | 129 | 0.372961 | [
"model"
] |
128d1d8a56f5c46d916c646e7832ea2002da7dd1 | 10,296 | hpp | C++ | libgramtools/include/prg/coverage_graph.hpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | libgramtools/include/prg/coverage_graph.hpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | libgramtools/include/prg/coverage_graph.hpp | bricoletc/gramtools | 1ce06178b7b26f42d72e47d3d7b8a7a606e6f256 | [
"MIT"
] | null | null | null | /**
* @file
* Defines the `coverage_Graph`, a graph data structure containing:
* - Sequence nodes (`coverage_Node`). Each node has:
* - Nucleotide sequence
* - Outgoing edges (pointers) to other nodes
* - Coverage array to store per base coverage for each node
* - Site and allele ID
* ... | 32.479495 | 80 | 0.69765 | [
"object",
"vector"
] |
1293747a447f8636222e5bfb9d052d0c82c6284e | 10,810 | cpp | C++ | tests/src/core/testqgslayoutscalebar.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | tests/src/core/testqgslayoutscalebar.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | tests/src/core/testqgslayoutscalebar.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z |
/***************************************************************************
testqgslayoutscalebar.cpp
---------------------------
begin : November 2017
copyright : (C) 2017 by Nyall Dawson
email : nyall dot dawson a... | 38.333333 | 147 | 0.679093 | [
"render"
] |
1296ff3f74514fb7b00c6d96e75fc001cb7fe333 | 87,786 | cc | C++ | tests/func/test_deque.cc | rurban/ctl | 3923e6776a231e5d58cf91225ca8a1d61879401b | [
"MIT"
] | 88 | 2021-01-14T22:46:35.000Z | 2022-03-29T04:55:49.000Z | tests/func/test_deque.cc | rurban/ctl | 3923e6776a231e5d58cf91225ca8a1d61879401b | [
"MIT"
] | 24 | 2021-01-11T08:49:57.000Z | 2022-02-04T22:25:39.000Z | tests/func/test_deque.cc | rurban/ctl | 3923e6776a231e5d58cf91225ca8a1d61879401b | [
"MIT"
] | 4 | 2022-02-04T21:14:32.000Z | 2022-03-01T05:36:10.000Z | #include "../test.h"
#if __cplusplus < 201103L
#pragma warning "Can only test against C++11 compilers"
OLD_MAIN
#else
#include "digi.hh"
#define T digi
#define INCLUDE_ALGORITHM
#define INCLUDE_NUMERIC
#include <ctl/deque.h>
#include <deque>
#include <algorithm>
#include <numeric>
#include <vector>
#ifdef NEED_RANDO... | 43.761715 | 120 | 0.375914 | [
"vector",
"transform"
] |
129c6d003a2a50b51d7d5556d4eda9e7a39fdded | 60,029 | cpp | C++ | Sail/src/API/DX12/dxr/DXRBase.cpp | BTH-StoraSpel-DXR/SPLASH | 1bf4c9b96cbcce570ed3a97f30a556a992e1ad08 | [
"MIT"
] | 12 | 2019-09-11T15:52:31.000Z | 2021-11-14T20:33:35.000Z | Sail/src/API/DX12/dxr/DXRBase.cpp | BTH-StoraSpel-DXR/Game | 1bf4c9b96cbcce570ed3a97f30a556a992e1ad08 | [
"MIT"
] | 227 | 2019-09-11T08:40:24.000Z | 2020-06-26T14:12:07.000Z | Sail/src/API/DX12/dxr/DXRBase.cpp | BTH-StoraSpel-DXR/Game | 1bf4c9b96cbcce570ed3a97f30a556a992e1ad08 | [
"MIT"
] | 2 | 2020-10-26T02:35:18.000Z | 2020-10-26T02:36:01.000Z | #include "pch.h"
#include "DXRBase.h"
#include "Sail/Application.h"
#include "Sail/api/shader/ShaderPipeline.h"
#include "API/DX12/DX12VertexBuffer.h"
#include "API/DX12/DX12IndexBuffer.h"
#include "API/DX12/resources/DX12Texture.h"
#include "Sail/graphics/light/LightSetup.h"
#include "../renderer/DX12GBufferRenderer.h... | 43.467777 | 266 | 0.760749 | [
"mesh",
"geometry",
"vector",
"model",
"transform"
] |
129c98f25d5110b0c66b99aaf7fcafce462dce12 | 7,511 | hpp | C++ | PmpManager.hpp | chipsalliance/SweRV-ISS | 5ff0f0040113ef3f3f157330e300aec1335f3f14 | [
"Apache-2.0"
] | 49 | 2020-05-27T10:14:02.000Z | 2022-03-30T15:49:31.000Z | PmpManager.hpp | Badboy1307/SweRV-ISS | 994959779fa2ef5230a64a5a8282c2a54f02d339 | [
"Apache-2.0"
] | 19 | 2020-06-30T08:26:02.000Z | 2022-03-22T05:18:14.000Z | PmpManager.hpp | Badboy1307/SweRV-ISS | 994959779fa2ef5230a64a5a8282c2a54f02d339 | [
"Apache-2.0"
] | 18 | 2020-08-30T02:55:25.000Z | 2022-03-30T13:58:15.000Z | // Copyright 2020 Western Digital Corporation or its affiliates.
//
// 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 requi... | 32.799127 | 80 | 0.649314 | [
"object",
"vector"
] |
129ec9ce096efba7626e0ff8d473de18c2864bbd | 5,977 | cpp | C++ | src/Elba/Graphics/OpenGL/OpenGLSubmesh.cpp | nicholasammann/kotor-builder | ab0e042c09974a024a9884c6f9e34cf85ad63eeb | [
"MIT"
] | 1 | 2018-10-01T19:34:57.000Z | 2018-10-01T19:34:57.000Z | src/Elba/Graphics/OpenGL/OpenGLSubmesh.cpp | nicholasammann/kotor-builder | ab0e042c09974a024a9884c6f9e34cf85ad63eeb | [
"MIT"
] | 9 | 2018-09-09T16:07:22.000Z | 2018-11-06T20:34:30.000Z | src/Elba/Graphics/OpenGL/OpenGLSubmesh.cpp | nicholasammann/kotor-builder | ab0e042c09974a024a9884c6f9e34cf85ad63eeb | [
"MIT"
] | null | null | null | #include <algorithm>
#include <gl/glew.h>
#include "Elba/Graphics/OpenGL/OpenGLSubmesh.hpp"
#include "Elba/Graphics/OpenGL/OpenGLTexture.hpp"
namespace Elba
{
static std::string uniformNames[4] = { "diffuseTex", "specularTex", "normalTex", "heightTex" };
OpenGLSubmesh::OpenGLSubmesh()
: Submesh()
, mProgram(nu... | 25.008368 | 119 | 0.68864 | [
"object",
"vector",
"model"
] |
12a325338a17aea95a8ce81ae7509d58d30d08a8 | 17,394 | cpp | C++ | components/render/opengl_driver/sources/platform/egl/gl_egl_library.cpp | untgames/funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 7 | 2016-03-30T17:00:39.000Z | 2017-03-27T16:04:04.000Z | components/render/opengl_driver/sources/platform/egl/gl_egl_library.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2017-11-21T11:25:49.000Z | 2018-09-20T17:59:27.000Z | components/render/opengl_driver/sources/platform/egl/gl_egl_library.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2016-11-29T15:18:40.000Z | 2017-03-27T16:04:08.000Z | #include "shared.h"
using namespace render::low_level;
using namespace render::low_level::opengl;
using namespace render::low_level::opengl::egl;
namespace
{
/*
Константы
*/
#if defined (LINUX)
const char* OPENGL_LIB_PATH = "libGLESv2.so"; //OpenGL library file name (as found in Mesa 11.2.0)
#eli... | 36.012422 | 160 | 0.666264 | [
"render"
] |
12ba9b186a0e7571faacb510269dc4419472e7fd | 1,963 | cpp | C++ | octLong3o3.cpp | madhurpatle/codechef | 7a74476423aedf04d801444b0c5a88b5aad678a7 | [
"MIT"
] | null | null | null | octLong3o3.cpp | madhurpatle/codechef | 7a74476423aedf04d801444b0c5a88b5aad678a7 | [
"MIT"
] | null | null | null | octLong3o3.cpp | madhurpatle/codechef | 7a74476423aedf04d801444b0c5a88b5aad678a7 | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cmath>
#include<vector>
#include<algorithm>
using namespace std;
int myXOR(int x, int y)
{
return (x | y) & (~x | ~y);
}
int main(){
int t;
cin>>t;
for(int h=0;h<t;h++){
int n;long k;
cin>>n>>k;
int arr[n];
int arr1[n];
int arr4[n];
for(int q=0;q<n;q++)... | 17.845455 | 62 | 0.399898 | [
"vector"
] |
520cf4d507dd1b567f46007b195d8d39f4007d72 | 13,050 | cpp | C++ | include/delfem2/rig_geo3.cpp | mmer547/delfem2 | 4f4b28931c96467ac30948e6b3f83150ea530c92 | [
"MIT"
] | 1 | 2020-07-18T17:03:36.000Z | 2020-07-18T17:03:36.000Z | include/delfem2/rig_geo3.cpp | mmer547/delfem2 | 4f4b28931c96467ac30948e6b3f83150ea530c92 | [
"MIT"
] | null | null | null | include/delfem2/rig_geo3.cpp | mmer547/delfem2 | 4f4b28931c96467ac30948e6b3f83150ea530c92 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2019 Nobuyuki Umetani
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "delfem2/rig_geo3.h"
#include <map>
#include <cassert>
#include <sstream>
#include <fstream>
#include <climits>
#include "delfem2/geo... | 29.524887 | 89 | 0.605134 | [
"vector"
] |
522d721c88a9670b490a1a13e2b9312fb104f2a4 | 6,670 | cpp | C++ | application/picker/picker.cpp | glumes/Physics3D | 38db12a381361d571389a22d2aac77255ef2fbc7 | [
"MIT"
] | null | null | null | application/picker/picker.cpp | glumes/Physics3D | 38db12a381361d571389a22d2aac77255ef2fbc7 | [
"MIT"
] | null | null | null | application/picker/picker.cpp | glumes/Physics3D | 38db12a381361d571389a22d2aac77255ef2fbc7 | [
"MIT"
] | 1 | 2021-03-28T18:51:10.000Z | 2021-03-28T18:51:10.000Z | #include "core.h"
#include "picker.h"
#include "../physics/math/mathUtil.h"
#include "../engine/event/event.h"
#include "../engine/event/mouseEvent.h"
#include "../engine/input/mouse.h"
#include "ray.h"
#include "view/screen.h"
#include "application.h"
#include "shader/shaders.h"
#include "worlds.h"
#include "..... | 29 | 135 | 0.752474 | [
"geometry",
"render",
"shape"
] |
522f33aafbeef1ef370a7a7ed4e2c329d80b68d5 | 2,051 | cpp | C++ | aws-cpp-sdk-compute-optimizer/source/model/RecommendationPreferences.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-compute-optimizer/source/model/RecommendationPreferences.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-compute-optimizer/source/model/RecommendationPreferences.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/compute-optimizer/model/RecommendationPreferences.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
n... | 30.161765 | 191 | 0.804486 | [
"model"
] |
5236568fbeab2f60ffc1edd0eb393b1a1821690c | 4,100 | hh | C++ | vpp/core/fill.hh | jjzhang166/videopp | f1421b16b8ffcefb3d1697460940d868e31ba79d | [
"MIT"
] | 624 | 2015-01-05T16:40:41.000Z | 2022-03-01T03:09:43.000Z | vpp/core/fill.hh | jjzhang166/videopp | f1421b16b8ffcefb3d1697460940d868e31ba79d | [
"MIT"
] | 10 | 2015-01-22T20:50:13.000Z | 2018-05-15T10:41:34.000Z | vpp/core/fill.hh | jjzhang166/videopp | f1421b16b8ffcefb3d1697460940d868e31ba79d | [
"MIT"
] | 113 | 2015-01-19T11:58:35.000Z | 2022-03-28T05:15:20.000Z | #ifndef VPP_FILL_HH__
# define VPP_FILL_HH__
# include <vpp/core/boxNd.hh>
# include <vpp/core/vector.hh>
# include <vpp/core/pixel_wise.hh>
namespace vpp
{
template <typename V, typename U, unsigned N>
void fill(imageNd<V, N>& img, U&& value)
{
pixel_wise(img) | [=] (auto& pix) { pix = value; };
}
te... | 32.283465 | 92 | 0.510488 | [
"vector"
] |
5248e667d7e41868b19982ec4c173a68f135b6d3 | 3,265 | cpp | C++ | CoolProp/purefluids/R1233zd(E).cpp | perrante/coolprop | c67ecc570e545d624c18feaf2a01e48b63ae1501 | [
"MIT"
] | 12 | 2015-04-21T07:43:09.000Z | 2021-11-09T08:35:58.000Z | CoolProp/purefluids/R1233zd(E).cpp | perrante/coolprop | c67ecc570e545d624c18feaf2a01e48b63ae1501 | [
"MIT"
] | 32 | 2015-01-04T05:05:05.000Z | 2017-12-13T18:03:29.000Z | CoolProp/purefluids/R1233zd(E).cpp | perrante/coolprop | c67ecc570e545d624c18feaf2a01e48b63ae1501 | [
"MIT"
] | 8 | 2015-01-01T21:15:37.000Z | 2020-08-05T13:31:50.000Z | #include "CoolProp.h"
#include <vector>
#include "CPExceptions.h"
#include "FluidClass.h"
#include "R1233zd(E).h"
R1233zdEClass::R1233zdEClass()
{
double n[] = {0.0, 0.03920261, 1.639052, -1.997147, -0.6603372, 0.1498682, -1.408791, -0.7920426, 0.8549678, -0.5301920, -0.01408562, 1.335117, -0.5441797, -0.05862723, -0... | 32.65 | 195 | 0.599387 | [
"vector"
] |
524e547c9414a4a0f8163fa9f08f56978241b4fa | 7,144 | cpp | C++ | other/TopTec2021/S1/Q.cpp | axelgio01/cp | 7a1c3490f913e4aea53e46bcfb5bb56c9b15605d | [
"MIT"
] | null | null | null | other/TopTec2021/S1/Q.cpp | axelgio01/cp | 7a1c3490f913e4aea53e46bcfb5bb56c9b15605d | [
"MIT"
] | null | null | null | other/TopTec2021/S1/Q.cpp | axelgio01/cp | 7a1c3490f913e4aea53e46bcfb5bb56c9b15605d | [
"MIT"
] | null | null | null | //
#include <bits/stdc++.h>
using namespace std;
template <typename T>
T inverse(T a, T m) {
T u = 0, v = 1;
while (a != 0) {
T t = m / a;
m -= t * a; swap(a, m);
u -= t * v; swap(u, v);
}
assert(m == 1);
return u;
}
template <typename T>
class Modular {
public:
using Type = typename decay<d... | 34.84878 | 123 | 0.628779 | [
"vector"
] |
5257de91c73cc239549ebd6eb6bdfbe20bf1d0a3 | 1,393 | cpp | C++ | sortings/merge_sort/merge_sort.cpp | cupid5trick/cpp-algorithms | 0645aedd1fff19cc2509fc8154843971911b328c | [
"MIT"
] | null | null | null | sortings/merge_sort/merge_sort.cpp | cupid5trick/cpp-algorithms | 0645aedd1fff19cc2509fc8154843971911b328c | [
"MIT"
] | null | null | null | sortings/merge_sort/merge_sort.cpp | cupid5trick/cpp-algorithms | 0645aedd1fff19cc2509fc8154843971911b328c | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <vector>
#include <iterator> // for prev
#include <algorithm> // for for_each
using namespace std;
void _merge(vector<int>& v, int l, int q, int u) {
int i = l, j = q, k;
int n1 = q-l, n2 = u-q;
vector<int> lv(n1), rv(n2);
// copy
for (k=0; i<q && j < u; ++ k) {
... | 16.987805 | 55 | 0.450826 | [
"vector"
] |
525ab81da116bde5144e0f4bbfc3ff1d64fd788a | 3,867 | cc | C++ | arms/src/model/SearchAlertHistoriesResult.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | arms/src/model/SearchAlertHistoriesResult.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | arms/src/model/SearchAlertHistoriesResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 45.494118 | 124 | 0.79338 | [
"model"
] |
52626bcce59eac360c61d170eb605fd31aec53f8 | 9,440 | cpp | C++ | compile/slang/slang_rs_check_ast.cpp | Keneral/aframeworks | af1d0010bfb88751837fb1afc355705bd8a9ad8b | [
"Unlicense"
] | null | null | null | compile/slang/slang_rs_check_ast.cpp | Keneral/aframeworks | af1d0010bfb88751837fb1afc355705bd8a9ad8b | [
"Unlicense"
] | null | null | null | compile/slang/slang_rs_check_ast.cpp | Keneral/aframeworks | af1d0010bfb88751837fb1afc355705bd8a9ad8b | [
"Unlicense"
] | null | null | null | /*
* Copyright 2012, 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... | 29.046154 | 85 | 0.616102 | [
"vector"
] |
5264e747e408cf49286b195c592a9ccddea782e0 | 9,227 | cpp | C++ | Sources/Sapphire/tensor/TensorData.cpp | jwkim98/Motutapu | f494d23953a18be1aba3261c8e79392f96a140ef | [
"MIT"
] | 1 | 2021-01-11T18:14:04.000Z | 2021-01-11T18:14:04.000Z | Sources/Sapphire/tensor/TensorData.cpp | jlee335/Sapphire | f494d23953a18be1aba3261c8e79392f96a140ef | [
"MIT"
] | 3 | 2020-12-31T13:21:00.000Z | 2021-04-28T09:51:33.000Z | Sources/Sapphire/tensor/TensorData.cpp | jlee335/Sapphire | f494d23953a18be1aba3261c8e79392f96a140ef | [
"MIT"
] | 2 | 2020-12-31T06:29:54.000Z | 2021-01-11T18:14:23.000Z | // Copyright (c) 2021, Justin Kim
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <Sapphire/compute/cudaUtil/Memory.hpp>
#include <Sapphire/compute/dense/cuda/Initialize.cuh... | 28.566563 | 80 | 0.625881 | [
"shape",
"vector"
] |
526da61afabdf16eb22935d16225cab8868a6933 | 3,381 | cpp | C++ | src/Gui/AWidget.cpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | src/Gui/AWidget.cpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | src/Gui/AWidget.cpp | Jino42/stf | f10ddaf4eb0a7ba94e6f9bb7d6b2191ca3a0b3db | [
"Unlicense"
] | null | null | null | #include "AWidget.hpp"
#include <Gui/Gui.hpp>
#include <Gui/GuiSettings.hpp>
AWidget::AWidget(std::string const &winName, ImGuiWindowFlags winFlags) :
active_(true),
winName_(winName),
winFlags_(winFlags) {
}
void AWidget::update_() {}
void AWidget::render(bool renderContentInWindow) {
u... | 43.909091 | 139 | 0.589175 | [
"render"
] |
526f4763270dc4ee16f8c5b76e2130ced4918111 | 29,893 | cpp | C++ | tests/search_tests.cpp | yokkidack/String_Search | a1bf5fe5ee6fe06ab673362ba1602585c900f012 | [
"MIT"
] | null | null | null | tests/search_tests.cpp | yokkidack/String_Search | a1bf5fe5ee6fe06ab673362ba1602585c900f012 | [
"MIT"
] | null | null | null | tests/search_tests.cpp | yokkidack/String_Search | a1bf5fe5ee6fe06ab673362ba1602585c900f012 | [
"MIT"
] | null | null | null | #define TEST_PATH "./tests/"
#define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include <fstream>
#include <streambuf>
#include "../algorithms/naive_string_search.hxx"
#include "../algorithms/boyer_moore_search.hxx"
#include "../algorithms/knuth_morris_pratt_search.hxx"
#include "../algorithms/rabin_karp_search.hxx"
TES... | 38.226343 | 79 | 0.63075 | [
"vector"
] |
5273943b132b33ad564fd2b9b8dc05b7bbf8ffa1 | 1,470 | cpp | C++ | uva/1234.cpp | btjanaka/competitive-programming-solutions | e3df47c18451802b8521ebe61ca71ee348e5ced7 | [
"MIT"
] | 3 | 2020-06-25T21:04:02.000Z | 2021-05-12T03:33:19.000Z | uva/1234.cpp | btjanaka/competitive-programming-solutions | e3df47c18451802b8521ebe61ca71ee348e5ced7 | [
"MIT"
] | null | null | null | uva/1234.cpp | btjanaka/competitive-programming-solutions | e3df47c18451802b8521ebe61ca71ee348e5ced7 | [
"MIT"
] | 1 | 2020-06-25T21:04:06.000Z | 2020-06-25T21:04:06.000Z | // Author: btjanaka (Bryon Tjanaka)
// Problem: (UVa) 1234
#include <bits/stdc++.h>
#define GET(x) scanf("%d", &x)
#define GED(x) scanf("%lf", &x)
typedef long long ll;
using namespace std;
typedef pair<int, int> ii;
struct UnionFind {
vector<int> p, rank;
UnionFind(int n) : p(n), rank(n, 0) { iota(p.begin(), p.en... | 22.615385 | 77 | 0.485034 | [
"vector"
] |
527831d009f701734360f83fe2d287908036bbce | 5,571 | cpp | C++ | inleiding-vision-cpp/calibratiedemo.cpp | yorickr/VisionCPP | 60eda392d7b4f234afba7d4e29d746d1ae3c8e1c | [
"MIT"
] | null | null | null | inleiding-vision-cpp/calibratiedemo.cpp | yorickr/VisionCPP | 60eda392d7b4f234afba7d4e29d746d1ae3c8e1c | [
"MIT"
] | null | null | null | inleiding-vision-cpp/calibratiedemo.cpp | yorickr/VisionCPP | 60eda392d7b4f234afba7d4e29d746d1ae3c8e1c | [
"MIT"
] | null | null | null | // #include "opencv/cv.h"
// #include "opencv/highgui.h"
// #include <iostream>
// #include <fstream>
//
// using namespace cv;
// using namespace std;
#include "calibratiedemo.h"
int calibratie(int argc, char **argv) {
// The number of boards you want to capture, the number of internal corners horizontally
// and ... | 34.388889 | 124 | 0.708131 | [
"vector",
"3d"
] |
5280771eb17b1a22697f7a02b234ee3d716d6839 | 503 | cpp | C++ | rank-teams-by-votes/rank-teams-by-votes.cpp | itzpankajpanwar/Leetcode | bf933bc8a16f4b9d7a0e8b82f01684e60b544bed | [
"MIT"
] | 2 | 2021-08-29T12:51:09.000Z | 2021-10-18T23:24:41.000Z | rank-teams-by-votes/rank-teams-by-votes.cpp | itzpankajpanwar/Leetcode | bf933bc8a16f4b9d7a0e8b82f01684e60b544bed | [
"MIT"
] | null | null | null | rank-teams-by-votes/rank-teams-by-votes.cpp | itzpankajpanwar/Leetcode | bf933bc8a16f4b9d7a0e8b82f01684e60b544bed | [
"MIT"
] | null | null | null | class Solution {
public:
string rankTeams(vector<string>& votes) {
vector<vector<int>> count(26, vector<int>(27));
for (char& c: votes[0])
count[c - 'A'][26] = c;
for (string& vote: votes)
for (int i = 0; i < vote.length(); ++i)
--count[vote[i] - 'A'][... | 29.588235 | 54 | 0.459245 | [
"vector"
] |
5288180004d186757b857c148a92817b5edaab2f | 73,400 | cc | C++ | src/pdp/procs_extra.cc | emer/pdpp | ccce243ae356dc5908cdd667419a7afd74cf22ad | [
"BSD-3-Clause"
] | null | null | null | src/pdp/procs_extra.cc | emer/pdpp | ccce243ae356dc5908cdd667419a7afd74cf22ad | [
"BSD-3-Clause"
] | null | null | null | src/pdp/procs_extra.cc | emer/pdpp | ccce243ae356dc5908cdd667419a7afd74cf22ad | [
"BSD-3-Clause"
] | null | null | null | /* -*- C++ -*- */
/*=============================================================================
// //
// This file is part of the PDP++ software package. //
// //
// Copyright (C) 1995 Randall C. O'Reilly, Chadley K. Dawson, //
// James L. McClelland, and Carnegie Me... | 26.0746 | 138 | 0.634646 | [
"object",
"vector"
] |
52889e07e1a5a60c5fbf66ebd357b1c0306d5d65 | 29,838 | cpp | C++ | src/libraries/conversion/meshReader/starcd/STARCDMeshReader.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/conversion/meshReader/starcd/STARCDMeshReader.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/conversion/meshReader/starcd/STARCDMeshReader.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright (C) 2011-2015 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
... | 27.704735 | 80 | 0.478551 | [
"mesh",
"shape",
"model",
"transform",
"solid"
] |
528ccb3d943bd5fb851f42cc77e4c5bf14bdbbf9 | 757 | hpp | C++ | src/uuid/UUID.hpp | Draegerwerk/SDCesp | ea3da666b18a3a3b273add398fd49cc78d6fa94c | [
"BSD-3-Clause"
] | 3 | 2020-04-10T05:41:42.000Z | 2022-03-21T11:51:53.000Z | src/uuid/UUID.hpp | Draegerwerk/SDCesp | ea3da666b18a3a3b273add398fd49cc78d6fa94c | [
"BSD-3-Clause"
] | 3 | 2020-03-31T08:57:56.000Z | 2021-03-17T09:06:36.000Z | src/uuid/UUID.hpp | Draegerwerk/SDCesp | ea3da666b18a3a3b273add398fd49cc78d6fa94c | [
"BSD-3-Clause"
] | 3 | 2020-03-30T07:40:36.000Z | 2021-05-21T10:11:59.000Z | #pragma once
#include <array>
#include <string>
/// @brief UUID represents a UUID; this can be default constructed (a nil UUID), constructed from a
/// array of raw uuid data or generated by a UUIDGenerator
class UUID
{
public:
/// @brief default construct an empty UUID
UUID() = default;
/// @brief number of b... | 22.939394 | 99 | 0.705416 | [
"object"
] |
52967eb6f392df94ff245131b93e55e9e3091728 | 3,880 | cpp | C++ | Cpp/AdvancedCpp/AdvCppWorkspace/test/demotest/main.cpp | NatanMeirov/ExperisAcademyBootcamp | 6608ef5571e6dc4eb1f481695da3476ecd4f7547 | [
"MIT"
] | null | null | null | Cpp/AdvancedCpp/AdvCppWorkspace/test/demotest/main.cpp | NatanMeirov/ExperisAcademyBootcamp | 6608ef5571e6dc4eb1f481695da3476ecd4f7547 | [
"MIT"
] | null | null | null | Cpp/AdvancedCpp/AdvCppWorkspace/test/demotest/main.cpp | NatanMeirov/ExperisAcademyBootcamp | 6608ef5571e6dc4eb1f481695da3476ecd4f7547 | [
"MIT"
] | null | null | null | #include "mu_test.h"
#include <climits>
#include <vector>
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
double pi(size_t n) {
double sum = 0.0;
int sign = 1;
for (size_t i = 0; i < n; ++i) {
sum += sign/(2.0*i+1.0);
sign *= -1;
}
return 4.0*sum;
}
BEGIN... | 21.318681 | 82 | 0.608247 | [
"vector"
] |
529d6eef27d8683560ed19ddf3066e0f8f9154a3 | 320 | cpp | C++ | algorithms/max-consecutive-ones.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 41 | 2018-07-03T07:35:30.000Z | 2021-09-25T09:33:43.000Z | algorithms/max-consecutive-ones.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 2 | 2018-07-23T10:50:11.000Z | 2020-10-06T07:34:29.000Z | algorithms/max-consecutive-ones.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 7 | 2018-07-06T13:43:18.000Z | 2020-10-06T02:29:57.000Z | class Solution
{
public:
int findMaxConsecutiveOnes(vector<int>& nums)
{
int max = 0, cnt = 0;
for (int i = 0; i < nums.size(); i++) {
if (nums[i] == 1) cnt++;
else if (nums[i] == 0) cnt = 0;
if (max < cnt) max = cnt;
}
return max;
}
};
| 17.777778 | 49 | 0.425 | [
"vector"
] |
529e55df0ba59306bcaae3378b46ca9d20c86e44 | 1,092 | cpp | C++ | rendering/Shader.cpp | broecker/gfx1993 | d0390cdf6bd7b864dd86c99fa4d79cb31c00fa2f | [
"MIT"
] | null | null | null | rendering/Shader.cpp | broecker/gfx1993 | d0390cdf6bd7b864dd86c99fa4d79cb31c00fa2f | [
"MIT"
] | null | null | null | rendering/Shader.cpp | broecker/gfx1993 | d0390cdf6bd7b864dd86c99fa4d79cb31c00fa2f | [
"MIT"
] | null | null | null | #include "Shader.h"
using glm::mat3;
using glm::mat4;
using glm::vec3;
using glm::vec4;
namespace render {
VertexOut &&DefaultVertexTransform::transformSingle(const Vertex &in) {
mat4 modelViewProjectionMatrix = projectionMatrix * viewMatrix * modelMatrix;
// mat3 normalMatrix =
// glm::inverse(glm::transpose(... | 27.3 | 79 | 0.740842 | [
"render"
] |
52ad8a40f0ada52f091040cc5df5b81bf2e2194c | 1,313 | cpp | C++ | aws-cpp-sdk-kinesisanalyticsv2/source/model/S3Configuration.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-kinesisanalyticsv2/source/model/S3Configuration.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-kinesisanalyticsv2/source/model/S3Configuration.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2022-03-23T15:17:18.000Z | 2022-03-23T15:17:18.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/kinesisanalyticsv2/model/S3Configuration.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace ... | 17.506667 | 69 | 0.724296 | [
"model"
] |
52ae46abc02142b3c92aa5ff8aff89885301cbb3 | 9,012 | cc | C++ | libs/liblngs/tests/translation.cc | mbits-os/lngs | d2fce4f9b1c3b210b425dee4837daf3820f96713 | [
"MIT"
] | null | null | null | libs/liblngs/tests/translation.cc | mbits-os/lngs | d2fce4f9b1c3b210b425dee4837daf3820f96713 | [
"MIT"
] | 1 | 2018-06-18T08:29:44.000Z | 2018-09-14T19:16:53.000Z | libs/liblngs/tests/translation.cc | mbits-os/locale | d2fce4f9b1c3b210b425dee4837daf3820f96713 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <lngs/translation.hpp>
#include "lang_file_helpers.h"
extern std::filesystem::path TESTING_data_path;
namespace lngs {
class translation_tests {
public:
static void set_nextupdate(translation& tr, uint32_t value) {
tr.m_nextupdate = value;
}
};
} // namespace lngs
namespac... | 35.620553 | 76 | 0.585885 | [
"vector"
] |
52af366d2e36c0ed6c435667475233c4613148cf | 7,073 | cpp | C++ | research/implementations/matching/sequencial_fast.cpp | rdragos/work | aed4c9ace3fad6b0c63caadee69de2abde108b40 | [
"MIT"
] | 2 | 2020-05-30T17:11:47.000Z | 2021-09-25T08:16:48.000Z | research/implementations/matching/sequencial_fast.cpp | rdragos/work | aed4c9ace3fad6b0c63caadee69de2abde108b40 | [
"MIT"
] | null | null | null | research/implementations/matching/sequencial_fast.cpp | rdragos/work | aed4c9ace3fad6b0c63caadee69de2abde108b40 | [
"MIT"
] | 1 | 2021-09-24T11:14:27.000Z | 2021-09-24T11:14:27.000Z | #include <cstdio>
#include <algorithm>
#include <fstream>
#include <iostream>
#include <vector>
#include <queue>
#include <map>
#include <cstring>
#include <string>
#include <set>
#include <stack>
#include <omp.h>
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define ll long long
using na... | 27.414729 | 86 | 0.40393 | [
"vector"
] |
52aff02b26430b2a7567711348340d16bf0666e7 | 33,788 | cpp | C++ | src/Align4.cpp | AustinHartman/shasta | 105b8e85e272247f72ced59005c88879631931c0 | [
"BSD-3-Clause"
] | 1 | 2019-02-11T02:46:16.000Z | 2019-02-11T02:46:16.000Z | src/Align4.cpp | AustinHartman/shasta | 105b8e85e272247f72ced59005c88879631931c0 | [
"BSD-3-Clause"
] | null | null | null | src/Align4.cpp | AustinHartman/shasta | 105b8e85e272247f72ced59005c88879631931c0 | [
"BSD-3-Clause"
] | 1 | 2019-08-14T22:56:29.000Z | 2019-08-14T22:56:29.000Z | // Shasta
#include "Align4.hpp"
#include "Alignment.hpp"
#include "countingSort.hpp"
#include "hashArray.hpp"
#include "orderPairs.hpp"
#include "PngImage.hpp"
#include "SHASTA_ASSERT.hpp"
#include "timestamp.hpp"
using namespace shasta;
using namespace Align4;
// Seqan.
#include <seqan/align.h>
// Boost libraries.
#... | 31.055147 | 103 | 0.564579 | [
"vector"
] |
52b9c2f2a7ae9d008bf7396205e074620a724e3a | 3,910 | cc | C++ | src/gobgp.cc | codeout/gobgp-node | d866b68841fcf992c0368c654cb871685a02a0bb | [
"MIT"
] | 19 | 2016-01-20T08:42:39.000Z | 2021-12-28T07:52:21.000Z | src/gobgp.cc | itbj/gobgp-node | 0af11334540745ec3534a162c10a54446f2f4ec6 | [
"MIT"
] | 1 | 2016-07-15T20:45:55.000Z | 2016-07-26T15:41:25.000Z | src/gobgp.cc | itbj/gobgp-node | 0af11334540745ec3534a162c10a54446f2f4ec6 | [
"MIT"
] | 4 | 2016-09-07T23:25:45.000Z | 2021-12-28T07:53:28.000Z | #include <stdlib.h>
#include <node.h>
#include <node_buffer.h>
#include "libgobgp.h"
using v8::Array;
using v8::Exception;
using v8::FunctionCallbackInfo;
using v8::Isolate;
using v8::Local;
using v8::Number;
using v8::Object;
using v8::String;
using v8::Value;
void GetRouteFamily(const FunctionCallbackInfo<Value>& a... | 32.583333 | 141 | 0.694373 | [
"object"
] |
52bad3a8cf53dc887f642b6bb70a1b8a40e15e68 | 12,763 | cpp | C++ | tracker.cpp | yangjingyuan/HandTracker | 869f83424da1accad1037a9ffee6d7d627bedc10 | [
"MIT"
] | null | null | null | tracker.cpp | yangjingyuan/HandTracker | 869f83424da1accad1037a9ffee6d7d627bedc10 | [
"MIT"
] | null | null | null | tracker.cpp | yangjingyuan/HandTracker | 869f83424da1accad1037a9ffee6d7d627bedc10 | [
"MIT"
] | null | null | null | /***************************************************************************
*
* Copyright (c) 2016 yangjingyuan. All Rights Reserved
*
**************************************************************************/
/**
* @file tracker.cpp
* @author yangjingyuan
* @email hlbryang@163.com
* @date 2016/11/02 ... | 33.944149 | 129 | 0.540233 | [
"vector"
] |
52bd5de5364a9c2770cfc010d1765d2d92968eb2 | 2,548 | cpp | C++ | 01/test.cpp | FourthRome/msu_cpp_spring_2021 | 53e8fb8ba1d9afe8e36b4e005d833c042eea3396 | [
"MIT"
] | 1 | 2021-03-09T04:15:40.000Z | 2021-03-09T04:15:40.000Z | 01/test.cpp | FourthRome/msu_cpp_spring_2021 | 53e8fb8ba1d9afe8e36b4e005d833c042eea3396 | [
"MIT"
] | null | null | null | 01/test.cpp | FourthRome/msu_cpp_spring_2021 | 53e8fb8ba1d9afe8e36b4e005d833c042eea3396 | [
"MIT"
] | null | null | null | #include <cassert>
#include <cstring>
#include "allocator.hpp"
// Check if it can allocate some memory
void AllocateTest() {
Allocator allocator = Allocator();
allocator.makeAllocator(100);
std::cout << "AllocateTest passed;" << std::endl;
}
// Check if it reset() works as expected
void ResetTest() {
... | 27.695652 | 103 | 0.677394 | [
"object"
] |
1ebf256d990de1949eda78e082abbf101df1f4ed | 3,715 | cpp | C++ | Source/core/animation/AnimationInputHelpersTest.cpp | Fusion-Rom/android_external_chromium_org_third_party_WebKit | 8865f83aaf400ef5f7c234a70da404d3fc5e1272 | [
"BSD-3-Clause"
] | 2 | 2016-05-19T10:37:25.000Z | 2019-09-18T04:37:14.000Z | Source/core/animation/AnimationInputHelpersTest.cpp | Fusion-Rom/android_external_chromium_org_third_party_WebKit | 8865f83aaf400ef5f7c234a70da404d3fc5e1272 | [
"BSD-3-Clause"
] | null | null | null | Source/core/animation/AnimationInputHelpersTest.cpp | Fusion-Rom/android_external_chromium_org_third_party_WebKit | 8865f83aaf400ef5f7c234a70da404d3fc5e1272 | [
"BSD-3-Clause"
] | 7 | 2015-09-23T09:56:29.000Z | 2022-01-20T10:36:06.000Z | // Copyright 2014 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 "config.h"
#include "core/animation/AnimationInputHelpers.h"
#include "platform/animation/TimingFunction.h"
#include <gtest/gtest.h>
namespace... | 58.046875 | 131 | 0.804576 | [
"transform"
] |
1ebfe9d26e52378623aaf9385b8af8fba11155fa | 4,560 | hpp | C++ | external/FRESH/core/babr/frechet_distance.hpp | kampersanda/frechet_simsearch | c91e0b12f0acf5f8a563ec16d71bf76bc0dc169c | [
"MIT"
] | 7 | 2019-10-07T08:48:44.000Z | 2022-03-23T02:39:45.000Z | external/FRESH/core/babr/frechet_distance.hpp | kampersanda/frechet_simsearch | c91e0b12f0acf5f8a563ec16d71bf76bc0dc169c | [
"MIT"
] | null | null | null | external/FRESH/core/babr/frechet_distance.hpp | kampersanda/frechet_simsearch | c91e0b12f0acf5f8a563ec16d71bf76bc0dc169c | [
"MIT"
] | 1 | 2019-12-23T16:33:01.000Z | 2019-12-23T16:33:01.000Z | /*
* Copyright 2018 Matteo Ceccarello
*
* 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... | 32.112676 | 118 | 0.624561 | [
"vector"
] |
1ec37da69a6961b19001b2d6ab22e406ab8d6a17 | 2,233 | hpp | C++ | Solvers/SubGradientDescent/ISTA/test_ista.hpp | bejphil/FoxFire-regression | e9b4c6797c8b00f2e9db825d0822886369e1087b | [
"MIT"
] | null | null | null | Solvers/SubGradientDescent/ISTA/test_ista.hpp | bejphil/FoxFire-regression | e9b4c6797c8b00f2e9db825d0822886369e1087b | [
"MIT"
] | null | null | null | Solvers/SubGradientDescent/ISTA/test_ista.hpp | bejphil/FoxFire-regression | e9b4c6797c8b00f2e9db825d0822886369e1087b | [
"MIT"
] | null | null | null | #ifndef TEST_ISTA_H
#define TEST_ISTA_H
// C System-Headers
//
// C++ System headers
#include <chrono>
// Eigen Headers
#include <eigen3/Eigen/Core>
#include <eigen3/Eigen/Dense>
// Boost Headers
//
// SPAMS Headers
//
// Armadillo Headers
//
// Project Specific Headers
#include "../../../Generic/debug.hpp"
#include "... | 29.381579 | 131 | 0.568742 | [
"vector"
] |
1ec3fabf10b87ecae75a77d22eabb0f83924eff5 | 12,271 | cc | C++ | src/build_partial_index.cc | wangmaoCS/geometric_burstiness | 2705089f6795707379e3187cb0aadf4ba8931a31 | [
"BSD-3-Clause"
] | 86 | 2016-05-22T14:38:32.000Z | 2021-11-29T08:04:53.000Z | src/build_partial_index.cc | namtpham/image_retrieval | 2679abfafede12ebc760a4a53d58a2e1302ae128 | [
"BSD-3-Clause"
] | 10 | 2016-11-26T03:34:52.000Z | 2019-08-08T08:43:36.000Z | src/build_partial_index.cc | namtpham/image_retrieval | 2679abfafede12ebc760a4a53d58a2e1302ae128 | [
"BSD-3-Clause"
] | 26 | 2016-09-19T01:08:11.000Z | 2022-02-25T13:24:09.000Z | // Copyright (c) 2016, ETH Zurich
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and... | 47.562016 | 129 | 0.548448 | [
"vector"
] |
1ec9e72fd56f3fb990b281e082ed4fb798cd5900 | 2,182 | cpp | C++ | src/core/shapeRenderer2D.cpp | BetaRavener/BrainActivityVisualizer | baf61856d67fbe31880bc4c6610621142777ac19 | [
"BSD-3-Clause"
] | null | null | null | src/core/shapeRenderer2D.cpp | BetaRavener/BrainActivityVisualizer | baf61856d67fbe31880bc4c6610621142777ac19 | [
"BSD-3-Clause"
] | null | null | null | src/core/shapeRenderer2D.cpp | BetaRavener/BrainActivityVisualizer | baf61856d67fbe31880bc4c6610621142777ac19 | [
"BSD-3-Clause"
] | 1 | 2021-07-12T00:49:41.000Z | 2021-07-12T00:49:41.000Z | // Author: Ivan Sevcik <ivan-sevcik@hotmail.com>
// Licensed under BSD 3-Clause License (see licenses/LICENSE.txt)
#include "shapeRenderer2D.h"
#include <iostream>
#include <string>
#include <glm/gtc/type_ptr.hpp>
ShapeRenderer2D::ShapeRenderer2D() :
_valueCount(0)
{
}
ShapeRenderer2D::~ShapeRenderer2D()
{
... | 24.795455 | 72 | 0.714024 | [
"render",
"vector"
] |
1ecaa1cb579aeebd9980a906545ad3adf397b693 | 847 | cpp | C++ | codeforces/1199c.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | 1 | 2020-04-04T14:56:12.000Z | 2020-04-04T14:56:12.000Z | codeforces/1199c.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | codeforces/1199c.cpp | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
void solve() {
int n, I;
cin >> n >> I;
vector<int> a(n);
for (auto& x: a) {
cin >> x;
}
int k = I*8/n;
if (k >= 30) {
cout << 0; return;
}
int K = 1<<k;
if (K >= n) {
cout << 0; return;
}
map<int, i... | 16.94 | 45 | 0.395514 | [
"vector"
] |
1ecb254478e051808ad2a2a97ef20571ee89a833 | 3,473 | cc | C++ | topcoder/664/BearAttacks.cc | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | 1 | 2019-05-12T23:41:00.000Z | 2019-05-12T23:41:00.000Z | topcoder/664/BearAttacks.cc | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | topcoder/664/BearAttacks.cc | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using ii = pair<int,int>;
using vii = vector<ii>;
using vvi = vector<vi>;
using ll = long long;
using llu = unsigned long long;
using vb = vector<bool>;
using vvb = vector<vb>;
using vd = vector<double>;
using vvd = vector<vd>;
using vll = vector<ll>... | 46.932432 | 308 | 0.57328 | [
"vector"
] |
1ed27d887ac97d9ad46fc0445070300127d4917c | 5,046 | cpp | C++ | ai/Boss/Boss.cpp | kevinpolossat/rtype | 605707c430c4b5e6ebd2a19f8131ee59a1e990c5 | [
"MIT"
] | 5 | 2018-01-23T18:13:08.000Z | 2018-01-28T21:10:38.000Z | ai/Boss/Boss.cpp | kevinpolossat/rtype | 605707c430c4b5e6ebd2a19f8131ee59a1e990c5 | [
"MIT"
] | 4 | 2018-01-10T15:56:30.000Z | 2018-01-28T16:08:57.000Z | ai/Boss/Boss.cpp | polosskevin/rtype | 605707c430c4b5e6ebd2a19f8131ee59a1e990c5 | [
"MIT"
] | null | null | null | #include "Boss.h"
#include "TreeSearch.hpp"
int _width;
AIShoot::AIShoot(AIPosition p, vec2D v, int hitbox)
{
_startPos = p;
_theoryPos = p;
_hitbox = hitbox;
_direction = v;
}
const bool AIShoot::increaseShoot()
{
_theoryPos.X += static_cast<int>(_direction.X);
_theoryPos.Y += static_cast<int>(_direct... | 26.557895 | 119 | 0.642093 | [
"vector"
] |
1edb56654f20a3bba5057b0efe73aa3ba797cac5 | 56,254 | cpp | C++ | cisco-ios-xe/ydk/models/cisco_ios_xe/DRAFT_MSDP_MIB.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-12-02T05:45:49.000Z | 2022-02-10T19:32:54.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/DRAFT_MSDP_MIB.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-03-27T15:22:38.000Z | 2019-11-05T08:30:16.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/DRAFT_MSDP_MIB.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2016-12-02T05:45:52.000Z | 2019-11-07T08:28:17.000Z |
#include <sstream>
#include <iostream>
#include <ydk/entity_util.hpp>
#include "bundle_info.hpp"
#include "generated_entity_lookup.hpp"
#include "DRAFT_MSDP_MIB.hpp"
using namespace ydk;
namespace cisco_ios_xe {
namespace DRAFT_MSDP_MIB {
DRAFTMSDPMIB::DRAFTMSDPMIB()
:
msdp(std::make_shared<DRAFTMSDPMIB::Ms... | 37.855989 | 1,149 | 0.735006 | [
"vector"
] |
1edf8a8a2b826958fab118f38a1f67c5ffdbae0d | 7,046 | hpp | C++ | src/ibeo_8l_sdk/src/ibeosdk/Matrix3dFloat.hpp | tomcamp0228/ibeo_ros2 | ff56c88d6e82440ae3ce4de08f2745707c354604 | [
"MIT"
] | 1 | 2020-06-19T11:01:49.000Z | 2020-06-19T11:01:49.000Z | include/ibeosdk/Matrix3dFloat.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | null | null | null | include/ibeosdk/Matrix3dFloat.hpp | chouer19/enjoyDriving | e4a29e6cad7d3b0061d59f584cce7cdea2a55351 | [
"MIT"
] | 2 | 2020-06-19T11:01:48.000Z | 2020-10-29T03:07:14.000Z | //======================================================================
/*! \file Matrix3dFloat.hpp
*
* \copydoc Copyright
* \author Kristian Bischoff
* \date Mar 14, 2016
* \brief A 2x2 Matrix of type float
*///-------------------------------------------------------------------
#ifndef IBEOSDK_MATRIX3DFLOAT_HP... | 34.539216 | 87 | 0.407039 | [
"vector"
] |
1ee756f4c0871b6a8eb6086aa741c42d60dea4c8 | 870 | cpp | C++ | 0210/offer300210.cpp | Insofan/ExerciseRepo | 6ab830c30a8863078699d4f0c8bf28db2140495c | [
"BSD-3-Clause"
] | null | null | null | 0210/offer300210.cpp | Insofan/ExerciseRepo | 6ab830c30a8863078699d4f0c8bf28db2140495c | [
"BSD-3-Clause"
] | null | null | null | 0210/offer300210.cpp | Insofan/ExerciseRepo | 6ab830c30a8863078699d4f0c8bf28db2140495c | [
"BSD-3-Clause"
] | null | null | null | //
// @ClassName offer300210
// @Description TODO
// @Date 2019/2/10 9:29 PM
// @Created by Insomnia
//
#include <stdio.h>
#include <iostream>
#include <vector>
#include <stack>
using namespace std;
class Solution {
public:
void push(int value) {
if (_dataStack.size() == 0) {
_helperStack.pus... | 15.263158 | 54 | 0.526437 | [
"vector"
] |
1eeb31a6c2ec10093f614817f62a1af45e83f390 | 22,657 | hh | C++ | spartyjet-4.0.2_mac/ExternalTools/Njettiness/Njettiness.hh | mickypaganini/SSI2016-jet-clustering | a340558957f55159197e845850fc16e622082e7e | [
"MIT"
] | 3 | 2018-06-15T09:12:17.000Z | 2021-06-20T15:58:21.000Z | spartyjet-4.0.2_mac/ExternalTools/Njettiness/Njettiness.hh | mickypaganini/SSI2016-jet-clustering | a340558957f55159197e845850fc16e622082e7e | [
"MIT"
] | 1 | 2016-08-19T23:48:43.000Z | 2016-08-20T01:01:34.000Z | spartyjet-4.0.2_mac/ExternalTools/Njettiness/Njettiness.hh | mickypaganini/SSI2016-jet-clustering | a340558957f55159197e845850fc16e622082e7e | [
"MIT"
] | 6 | 2016-08-18T23:16:00.000Z | 2020-04-13T01:13:20.000Z | // Njettiness Package
// Version 0.4.1 (January 22, 2012)
// Questions/Comments? jthaler@jthaler.net
// Copyright (c) 2011-12, Jesse Thaler, Ken Van Tilburg, and Christopher K.
// Vermilion
//
//----------------------------------------------------------------------
// This file is part of the N-jettiness package (... | 41.344891 | 295 | 0.651984 | [
"vector"
] |
1eec208cc5d6ac9cded4718a317b5f4c5365e738 | 3,104 | cpp | C++ | tests/test_linear_sample_trait.cpp | stdml/stdnn-ops | 0e6132bd65319e318f918094e482482698482e9e | [
"MIT"
] | 3 | 2018-10-23T18:46:39.000Z | 2019-06-24T00:46:10.000Z | tests/test_linear_sample_trait.cpp | stdml/stdnn-ops | 0e6132bd65319e318f918094e482482698482e9e | [
"MIT"
] | 27 | 2018-11-10T14:19:16.000Z | 2020-03-08T23:33:01.000Z | tests/test_linear_sample_trait.cpp | stdml/stdnn-ops | 0e6132bd65319e318f918094e482482698482e9e | [
"MIT"
] | 1 | 2018-11-05T06:17:12.000Z | 2018-11-05T06:17:12.000Z | #include <ttl/nn/bits/traits/multi_linear_sample.hpp>
#include <ttl/nn/testing>
void test_linear_sample_ksr_nm(int ksize, int stride, int rate, int n, int m)
{
ttl::nn::traits::linear_sample_trait sample(ksize, stride, rate);
ASSERT_EQ(sample(n), m);
ASSERT_EQ(sample(0, 0), 0);
ASSERT_EQ(sample(m - 1,... | 30.431373 | 80 | 0.548325 | [
"shape",
"vector"
] |
1eef4e18cfe6f899db35597febf9e3f23840b199 | 2,209 | cpp | C++ | cpp-leetcode/leetcode37-sudoku-solver_dfs.cpp | yanglr/LeetCodeOJ | 27dd1e4a2442b707deae7921e0118752248bef5e | [
"MIT"
] | 45 | 2021-07-25T00:45:43.000Z | 2022-03-24T05:10:43.000Z | cpp-leetcode/leetcode37-sudoku-solver_dfs.cpp | yanglr/LeetCodeOJ | 27dd1e4a2442b707deae7921e0118752248bef5e | [
"MIT"
] | null | null | null | cpp-leetcode/leetcode37-sudoku-solver_dfs.cpp | yanglr/LeetCodeOJ | 27dd1e4a2442b707deae7921e0118752248bef5e | [
"MIT"
] | 15 | 2021-07-25T00:40:52.000Z | 2021-12-27T06:25:31.000Z | #include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
class Solution {
public:
void solveSudoku(vector<vector<char>>& board) {
dfs(board, 0, 0);
}
/* dfs表示第i行第j列是否能合法地填完. 其中i是行索引row, j是列索引col */
bool dfs(vector<vector<char>>& board, int i, int j)
{
if (i ==... | 29.065789 | 98 | 0.348574 | [
"vector"
] |
1efb73e95734db41b4afc08a068e68698e5ebb4f | 2,924 | cpp | C++ | src/RESTAPI_devicesHandler.cpp | shimmy568/wlan-cloud-ucentralgw | 806e24e1e666c31175c059373440ae029d9fff67 | [
"BSD-3-Clause"
] | null | null | null | src/RESTAPI_devicesHandler.cpp | shimmy568/wlan-cloud-ucentralgw | 806e24e1e666c31175c059373440ae029d9fff67 | [
"BSD-3-Clause"
] | null | null | null | src/RESTAPI_devicesHandler.cpp | shimmy568/wlan-cloud-ucentralgw | 806e24e1e666c31175c059373440ae029d9fff67 | [
"BSD-3-Clause"
] | null | null | null | //
// License type: BSD 3-Clause License
// License copy: https://github.com/Telecominfraproject/wlan-cloud-ucentralgw/blob/master/LICENSE
//
// Created by Stephane Bourque on 2021-03-04.
// Arilia Wireless Inc.
//
#include "Poco/Array.h"
#include "Poco/JSON/Stringifier.h"
#include "RESTAPI_devicesHandler.h"
#include... | 28.115385 | 122 | 0.652873 | [
"object",
"vector"
] |
1efc14b95b7c704d65936646d5d683cf1743e841 | 902 | cpp | C++ | cpp/leetcode/P_816.cpp | nirvanarsc/CompetitiveProgramming | e96d446285a6872b0a922278355cd0f9319155b8 | [
"MIT"
] | 2 | 2021-06-02T16:11:46.000Z | 2021-12-23T20:37:02.000Z | cpp/leetcode/P_816.cpp | nirvanarsc/CompetitiveProgramming | 218ae447bbf7455e4953e05220418b7c32ee6b0e | [
"MIT"
] | null | null | null | cpp/leetcode/P_816.cpp | nirvanarsc/CompetitiveProgramming | 218ae447bbf7455e4953e05220418b7c32ee6b0e | [
"MIT"
] | 1 | 2021-05-14T14:19:14.000Z | 2021-05-14T14:19:14.000Z | #include <bits/stdc++.h>
#define fast_io \
ios::sync_with_stdio(false); \
cin.tie(nullptr);
using namespace std;
vector<string> ambiguousCoordinates(string s) {
vector<string>* res = new vector<string>();
for (int i = 2; i < s.length() - 1; i++) {
for (string l : f(s.substr(1, i - 1))) {
... | 22.55 | 60 | 0.493348 | [
"vector"
] |
480072bf48f12803f47ef3389295e5bb2dd16421 | 2,639 | cpp | C++ | aws-cpp-sdk-ce/source/model/ReservationAggregates.cpp | woohoou/aws-sdk-cpp | a42835a8aad2eac1e334d899a3fbfedcaa341d51 | [
"Apache-2.0"
] | 1 | 2020-07-16T19:03:13.000Z | 2020-07-16T19:03:13.000Z | aws-cpp-sdk-ce/source/model/ReservationAggregates.cpp | woohoou/aws-sdk-cpp | a42835a8aad2eac1e334d899a3fbfedcaa341d51 | [
"Apache-2.0"
] | 18 | 2018-05-15T16:41:07.000Z | 2018-05-21T00:46:30.000Z | aws-cpp-sdk-ce/source/model/ReservationAggregates.cpp | woohoou/aws-sdk-cpp | a42835a8aad2eac1e334d899a3fbfedcaa341d51 | [
"Apache-2.0"
] | 1 | 2019-10-31T11:19:50.000Z | 2019-10-31T11:19:50.000Z | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 22.947826 | 84 | 0.755589 | [
"model"
] |
481543f824ee914783d07f7b7d518e5237944d9c | 20,001 | cpp | C++ | qCC/ccColorScaleEditorWidget.cpp | ohanlonl/qCMAT | f6ca04fa7c171629f094ee886364c46ff8b27c0b | [
"BSD-Source-Code"
] | null | null | null | qCC/ccColorScaleEditorWidget.cpp | ohanlonl/qCMAT | f6ca04fa7c171629f094ee886364c46ff8b27c0b | [
"BSD-Source-Code"
] | null | null | null | qCC/ccColorScaleEditorWidget.cpp | ohanlonl/qCMAT | f6ca04fa7c171629f094ee886364c46ff8b27c0b | [
"BSD-Source-Code"
] | 1 | 2019-02-03T12:19:42.000Z | 2019-02-03T12:19:42.000Z | //##########################################################################
//# #
//# CLOUDCOMPARE #
//# #
//# This pr... | 25.158491 | 175 | 0.663767 | [
"geometry"
] |
48159eaf897488348eec648874161ba065335419 | 506 | cpp | C++ | Level 4/Arbres/Pile de cartons/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 31 | 2018-10-30T09:54:23.000Z | 2022-03-02T21:45:51.000Z | Level 4/Arbres/Pile de cartons/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 2 | 2016-12-24T23:39:20.000Z | 2017-07-02T22:51:28.000Z | Level 4/Arbres/Pile de cartons/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 30 | 2018-10-25T12:28:36.000Z | 2022-01-31T14:31:02.000Z | #include <bits/stdc++.h>
#define N 100100
using namespace std;
int n,r;
vector<int> v[N];
void Compute(int j)
{
if(j)
cout<<"A "<<j<<"\n";
for(int i=0;i<v[j].size();++i)
{
Compute(v[j][i]);
}
if(j)
cout<<"R "<<j<<"\n";
}
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
int m... | 12.65 | 33 | 0.448617 | [
"vector"
] |
4816d937aaf22a900e626522c891773b3c02fc65 | 2,683 | cpp | C++ | aws-cpp-sdk-nimble/source/model/StudioComponentConfiguration.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-nimble/source/model/StudioComponentConfiguration.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-nimble/source/model/StudioComponentConfiguration.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/nimble/model/StudioComponentConfiguration.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace... | 25.552381 | 98 | 0.796496 | [
"model"
] |
4817b5b897b6af196ff4ac535426bf3b2fef87f4 | 5,453 | cc | C++ | src/pika_repl_server.cc | leisurelyrcxf/pika | 41292dc7d0518a9f67581feb4e21aeb0220ace91 | [
"MIT"
] | null | null | null | src/pika_repl_server.cc | leisurelyrcxf/pika | 41292dc7d0518a9f67581feb4e21aeb0220ace91 | [
"MIT"
] | null | null | null | src/pika_repl_server.cc | leisurelyrcxf/pika | 41292dc7d0518a9f67581feb4e21aeb0220ace91 | [
"MIT"
] | null | null | null | // Copyright (c) 2019-present, Qihoo, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
#include "include/pika_rep... | 36.112583 | 151 | 0.684211 | [
"vector"
] |
4831f776cb044d1d2bc08e8033e9ec11d4ed00d2 | 10,327 | tcc | C++ | libraries/predictors/neural/tcc/ConvolutionalLayer.tcc | Dream-maerD/ELL-master | 9554afa876cc9e8e87529df3f3d99220abc711d6 | [
"MIT"
] | null | null | null | libraries/predictors/neural/tcc/ConvolutionalLayer.tcc | Dream-maerD/ELL-master | 9554afa876cc9e8e87529df3f3d99220abc711d6 | [
"MIT"
] | null | null | null | libraries/predictors/neural/tcc/ConvolutionalLayer.tcc | Dream-maerD/ELL-master | 9554afa876cc9e8e87529df3f3d99220abc711d6 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: ConvolutionalLayer.tcc (neural)
// Authors: Byron Changuion
//
///////////////////////////////////////////////////////////////////////////////////////////... | 46.518018 | 210 | 0.614893 | [
"shape"
] |
48385230b64e354990da5eaa9691cd13e432a3f1 | 4,565 | cc | C++ | src/CompareFiles.cc | nih-at/nihtest | 2269e52b581ebcdebcf07bea5a139e1eabf130ea | [
"BSD-3-Clause"
] | null | null | null | src/CompareFiles.cc | nih-at/nihtest | 2269e52b581ebcdebcf07bea5a139e1eabf130ea | [
"BSD-3-Clause"
] | null | null | null | src/CompareFiles.cc | nih-at/nihtest | 2269e52b581ebcdebcf07bea5a139e1eabf130ea | [
"BSD-3-Clause"
] | null | null | null | /*
CompareFiles.cc -- compare files
Copyright (C) 2020 Dieter Baron and Thomas Klausner
This file is part of nihtest, regression tests for command line utilities.
The authors can be contacted at <nihtest@nih.at>
Redistribution and use in source and binary forms, with or without
modification, are permitted... | 33.07971 | 125 | 0.610953 | [
"vector"
] |
c61a72bebb37979fc167a6b0e1da5188ad286d80 | 69,741 | cpp | C++ | src/DSF/DSFLibWrite.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 71 | 2015-12-15T19:32:27.000Z | 2022-02-25T04:46:01.000Z | src/DSF/DSFLibWrite.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 19 | 2016-07-09T19:08:15.000Z | 2021-07-29T10:30:20.000Z | src/DSF/DSFLibWrite.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 42 | 2015-12-14T19:13:02.000Z | 2022-03-01T15:15:03.000Z | /*
* Copyright (c) 2004, Laminar Research.
*
* 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, ... | 34.457016 | 289 | 0.637831 | [
"mesh",
"render",
"object",
"vector"
] |
c62bf85abc4f795f48918934f890691e1300abef | 2,493 | cc | C++ | RAVL2/Math/Geometry/Projective/3D/PPoint3d.cc | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/Math/Geometry/Projective/3D/PPoint3d.cc | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/Math/Geometry/Projective/3D/PPoint3d.cc | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | // This file is part of RAVL, Recognition And Vision Library
// Copyright (C) 2003, University of Surrey
// This code may be redistributed under the terms of the GNU Lesser
// General Public License (LGPL). See the lgpl.licence file for details or
// see http://www.gnu.org/copyleft/lesser.html
// file-header-ends-here... | 31.556962 | 97 | 0.602487 | [
"geometry",
"3d"
] |
c62d8e83c3b216eb9428b016d23c6ec3ff2b16a7 | 4,611 | cpp | C++ | clients/cpp-pistache-server/generated/model/EnvironmentLog.cpp | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 3 | 2020-06-23T05:31:52.000Z | 2020-11-26T05:34:57.000Z | clients/cpp-pistache-server/generated/model/EnvironmentLog.cpp | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 2 | 2021-01-21T01:19:54.000Z | 2021-12-09T22:30:22.000Z | clients/cpp-pistache-server/generated/model/EnvironmentLog.cpp | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 1 | 2020-11-18T11:48:13.000Z | 2020-11-18T11:48:13.000Z | /**
* Cloud Manager API
* This API allows access to Cloud Manager programs, pipelines, and environments by an authorized technical account created through the Adobe I/O Console. The base url for this API is https://cloudmanager.adobe.io, e.g. to get the list of programs for an organization, you would make a GET request... | 22.492683 | 534 | 0.674691 | [
"model"
] |
c62d9a55ada141d3ee58ae68e80a63ef7871d0ab | 530 | cpp | C++ | epikjjh/baekjoon/1449.cpp | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 3 | 2019-05-19T13:44:39.000Z | 2019-07-03T11:15:20.000Z | epikjjh/baekjoon/1449.cpp | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 7 | 2019-05-06T02:37:26.000Z | 2019-06-29T07:28:02.000Z | epikjjh/baekjoon/1449.cpp | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 1 | 2019-07-28T06:24:54.000Z | 2019-07-28T06:24:54.000Z | #include <bits/stdc++.h>
using namespace std;
int main(){
int n,l;
scanf("%d %d",&n,&l);
vector<int> arr(n);
for(int &p: arr) scanf("%d",&p);
sort(arr.begin(),arr.end());
int ret=1;
for(int i=0;i<n;){
int r=arr[i]+l-1;
bool flag=true;
for(int j=i+1;j<n;j++){
... | 18.928571 | 39 | 0.392453 | [
"vector"
] |
c638958a4762a59f00183e14a9b910f0d8b0123b | 89,903 | cpp | C++ | monai/csrc/resample/pushpull_cpu.cpp | function2-llx/MONAI | 4cddaa830b61b88ec78e089bb5f21e05bb1a78f4 | [
"Apache-2.0"
] | 1 | 2022-02-15T09:32:28.000Z | 2022-02-15T09:32:28.000Z | monai/csrc/resample/pushpull_cpu.cpp | function2-llx/MONAI | 4cddaa830b61b88ec78e089bb5f21e05bb1a78f4 | [
"Apache-2.0"
] | null | null | null | monai/csrc/resample/pushpull_cpu.cpp | function2-llx/MONAI | 4cddaa830b61b88ec78e089bb5f21e05bb1a78f4 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) MONAI Consortium
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | 39.587406 | 120 | 0.535066 | [
"shape",
"vector",
"3d"
] |
c647299e707893f3e193b3a39e6af2d82f971776 | 1,534 | cpp | C++ | B.cpp | kazunetakahashi/JAG-icpc-domestic-practice-2016 | e2db2398746b92efc637d2b3ecf87120aa81e06f | [
"MIT"
] | null | null | null | B.cpp | kazunetakahashi/JAG-icpc-domestic-practice-2016 | e2db2398746b92efc637d2b3ecf87120aa81e06f | [
"MIT"
] | null | null | null | B.cpp | kazunetakahashi/JAG-icpc-domestic-practice-2016 | e2db2398746b92efc637d2b3ecf87120aa81e06f | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
using namespace std;
typedef vector<vector<bool> > ban;
int a, b, c, d;
int W, H;
ban s_to_ban(string S) {
// W, H を求める。
H = 0;
int now = 0;
vector<string> preban;
for (auto i = 0; i < (int)S.size(); i++) {
if (S[i] == '/') {
... | 19.417722 | 53 | 0.419166 | [
"vector"
] |
c64736cedffc0cbcc123c30359af7c771de3f1ec | 4,486 | cpp | C++ | backend/auth.cpp | mrdunk/home_automation | 9349bbdd3c60826449b4a357f10736fbe04dc55e | [
"Apache-2.0"
] | null | null | null | backend/auth.cpp | mrdunk/home_automation | 9349bbdd3c60826449b4a357f10736fbe04dc55e | [
"Apache-2.0"
] | null | null | null | backend/auth.cpp | mrdunk/home_automation | 9349bbdd3c60826449b4a357f10736fbe04dc55e | [
"Apache-2.0"
] | null | null | null |
#include "auth.h"
using namespace std;
using namespace CryptoPP;
mutex Auth::lockUserList;
vector<string> Auth::validUsers;
Auth::Auth(FileUtils* _p_fileUtilsInstance): p_fileUtilsInstance(_p_fileUtilsInstance){
}
void Auth::populateUsers(string path, string filename){
lockUserList.lock();
string line;
... | 25.634286 | 114 | 0.576237 | [
"vector"
] |
c64bd011ee77a29d97b2f3bddb6ca104184c378a | 16,297 | cpp | C++ | conet/mysql_client.cpp | MinamiKotoriCute/conet | 4882222e48cb80b46e4ca1f2adb5ea4ff96c3a6b | [
"MIT"
] | null | null | null | conet/mysql_client.cpp | MinamiKotoriCute/conet | 4882222e48cb80b46e4ca1f2adb5ea4ff96c3a6b | [
"MIT"
] | null | null | null | conet/mysql_client.cpp | MinamiKotoriCute/conet | 4882222e48cb80b46e4ca1f2adb5ea4ff96c3a6b | [
"MIT"
] | null | null | null | #include "mysql_client.h"
#include <mysql/mysql.h>
#include "polling.h"
#include "error.h"
#define RESULT_MYSQL_CHECK_ERROR
namespace conet {
std::string get_mysql_error(MYSQL *mysql)
{
const char *error_message = mysql_error(mysql);
if (error_message == nullptr)
return "";
return error_messag... | 35.274892 | 184 | 0.56765 | [
"vector"
] |
c64cff8f90c946ab3ae94d626daf9f961f7cea27 | 951 | cpp | C++ | 00215_kth-largest-element-in-an-array/200401-2.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 6 | 2019-10-23T01:07:29.000Z | 2021-12-05T01:51:16.000Z | 00215_kth-largest-element-in-an-array/200401-2.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | null | null | null | 00215_kth-largest-element-in-an-array/200401-2.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 1 | 2021-12-03T06:54:57.000Z | 2021-12-03T06:54:57.000Z | // https://leetcode-cn.com/problems/kth-largest-element-in-an-array/
// 自己实现qselect
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int findKthLargest(vector<int>& nums, int k) {
int i = 0, j = nums.size() - 1;
while (i <= j) {
int idx = partition(&nums[0], i, j);
if ((k ... | 18.288462 | 68 | 0.515247 | [
"vector"
] |
c65204d692655d61feeacb2b1eaa7f6a56c06e37 | 108,763 | cpp | C++ | test/smoketest/smoketest.cpp | light1021/dynamic-application-loader-host-interface | 4e0d265cd1e96c0a49bf3f3061901ac3d7856f98 | [
"Apache-2.0"
] | null | null | null | test/smoketest/smoketest.cpp | light1021/dynamic-application-loader-host-interface | 4e0d265cd1e96c0a49bf3f3061901ac3d7856f98 | [
"Apache-2.0"
] | null | null | null | test/smoketest/smoketest.cpp | light1021/dynamic-application-loader-host-interface | 4e0d265cd1e96c0a49bf3f3061901ac3d7856f98 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2010-2016 Intel Corporation
This software is licensed to you in accordance
with the agreement between you and Intel Corporation.
Alternatively, you can use this file in compliance
with the Apache license, Version 2.
Apache License, Version 2.0
Licensed under the Apache License, Ve... | 34.320921 | 1,344 | 0.670531 | [
"vector"
] |
c656d8f68fe38dcf50cecc536bad44158f98a25e | 10,408 | cpp | C++ | PhysX_3.4/Samples/SampleCharacterCloth/SampleCharacterClothCameraController.cpp | RyanTorant/simple-physx | a065a9c734c134074c63c80a9109a398b22d040c | [
"Unlicense"
] | 1 | 2019-12-09T16:03:55.000Z | 2019-12-09T16:03:55.000Z | PhysX_3.4/Samples/SampleCharacterCloth/SampleCharacterClothCameraController.cpp | RyanTorant/simple-physx | a065a9c734c134074c63c80a9109a398b22d040c | [
"Unlicense"
] | null | null | null | PhysX_3.4/Samples/SampleCharacterCloth/SampleCharacterClothCameraController.cpp | RyanTorant/simple-physx | a065a9c734c134074c63c80a9109a398b22d040c | [
"Unlicense"
] | null | null | null | // This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... | 40.030769 | 311 | 0.712145 | [
"vector"
] |
c6586a67925688e0d41661f10455ce3654f299c9 | 143,830 | cpp | C++ | WebKit/Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | 1 | 2019-06-18T06:52:54.000Z | 2019-06-18T06:52:54.000Z | WebKit/Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | null | null | null | WebKit/Source/JavaScriptCore/dfg/DFGSpeculativeJIT64.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2011 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | 40.652911 | 279 | 0.640346 | [
"object"
] |
c6664dc6ffbb4c98fbded11aac5a6d99689cf651 | 18,837 | cpp | C++ | rts/c/DyLib/Renderer/AAPLRenderer.cpp | MilesLitteral/futhark | 338a524d4b9897257a963aa62e640ab6dc5532ef | [
"ISC"
] | 1 | 2022-02-13T15:11:20.000Z | 2022-02-13T15:11:20.000Z | rts/c/DyLib/Renderer/AAPLRenderer.cpp | MilesLitteral/futhark | 338a524d4b9897257a963aa62e640ab6dc5532ef | [
"ISC"
] | null | null | null | rts/c/DyLib/Renderer/AAPLRenderer.cpp | MilesLitteral/futhark | 338a524d4b9897257a963aa62e640ab6dc5532ef | [
"ISC"
] | null | null | null | /*
See LICENSE folder for this sample’s licensing information.
Abstract:
Implementation of the renderer class that performs Metal setup and per-frame rendering.
*/
#include <simd/simd.h>
#include <MetalKit/MetalKit.h>
#include "AAPLRenderer.h"
#include "AAPLMathUtilities.h"
// Include header shared between C code h... | 35.743833 | 122 | 0.646759 | [
"render",
"object",
"3d"
] |
c66e0e93e75cc2238b59b493ed91e1272a31580c | 10,291 | cc | C++ | src/configuration/lua_stack.cc | dgolbourn/Metallic-Crow | 0f073312c67d3f0542cc40f23e94a018bd5e52c5 | [
"MIT"
] | null | null | null | src/configuration/lua_stack.cc | dgolbourn/Metallic-Crow | 0f073312c67d3f0542cc40f23e94a018bd5e52c5 | [
"MIT"
] | null | null | null | src/configuration/lua_stack.cc | dgolbourn/Metallic-Crow | 0f073312c67d3f0542cc40f23e94a018bd5e52c5 | [
"MIT"
] | null | null | null | #include "lua_stack.h"
#include "lua_exception.h"
#include "lua.hpp"
#include <sstream>
#include "log.h"
#include "lua_stack_impl.h"
#include "lua_command.h"
#include "lua_data.h"
namespace
{
auto Trace(lua_State* state) -> std::string
{
lua_Debug ar;
int level = 0;
std::stringstream stream;
while(lua_getstack... | 19.676864 | 120 | 0.627053 | [
"vector"
] |
c67adadddf49bfefe99ed15b6b0c947c61215d5f | 33,921 | cpp | C++ | source/renderer/renderers/opengl/forward/GLForwardRenderer.cpp | RaygenGroup/kaleido | e4648c3f4ba88a1aae942fdd854b32142e35fb78 | [
"MIT"
] | 4 | 2021-01-28T07:39:53.000Z | 2022-01-17T14:02:13.000Z | source/renderer/renderers/opengl/forward/GLForwardRenderer.cpp | RaygenEngine/Kaleido | e4648c3f4ba88a1aae942fdd854b32142e35fb78 | [
"MIT"
] | null | null | null | source/renderer/renderers/opengl/forward/GLForwardRenderer.cpp | RaygenEngine/Kaleido | e4648c3f4ba88a1aae942fdd854b32142e35fb78 | [
"MIT"
] | null | null | null | #include "pch/pch.h"
#include "renderer/renderers/opengl/forward/GLForwardRenderer.h"
#include "renderer/renderers/opengl/assets/GLModel.h"
#include "renderer/renderers/opengl/GLAssetManager.h"
#include "renderer/renderers/opengl/GLPreviewer.h"
#include "world/World.h"
#include "world/nodes/camera/CameraNode.h"
#inclu... | 37.816054 | 115 | 0.774741 | [
"geometry",
"render",
"model"
] |
c67d600cb03617f1e5e789fade224b1f803c1e09 | 7,791 | cpp | C++ | game.cpp | greck2908/solar-system | 591df475f5f5d672684cc62811f47d3cd476ae33 | [
"MIT"
] | 23 | 2017-10-13T22:15:19.000Z | 2018-03-25T04:51:08.000Z | game.cpp | PrakharPare/solar-system | b16c3ab5ff9c2d8b1f17cd0357fffe45787cc6f3 | [
"MIT"
] | 44 | 2017-10-13T21:36:02.000Z | 2018-03-24T15:37:07.000Z | game.cpp | PrakharPare/solar-system | b16c3ab5ff9c2d8b1f17cd0357fffe45787cc6f3 | [
"MIT"
] | 27 | 2017-10-13T21:55:31.000Z | 2018-03-24T15:30:15.000Z | //
// Created by Zac G on 08/10/2017.
//
#include "config.h"
#include "game.h"
Game::Game() {
font.loadFromFile("../assets/fonts/Cabin-Bold.ttf");
yearDisplay = sf::Text("", font, REGULAR_FONT_SIZE);
yearDisplay.setFillColor(sf::Color(BRIGHT_FG));
sidebar = new PlanetInspector(nullptr);
sun = sf... | 25.37785 | 135 | 0.550635 | [
"render",
"vector"
] |
c681545482ca75d3eed4bf062ca953e4c277507a | 8,721 | cpp | C++ | urlearning/heuristic/dynamic_pattern_database.cpp | ninalu/urlearning-cpp | c4c51b0046646b45573aec1b35c1678c422b3802 | [
"MIT"
] | 6 | 2017-03-09T22:16:57.000Z | 2022-02-20T11:49:58.000Z | urlearning/heuristic/dynamic_pattern_database.cpp | ninalu/urlearning-cpp | c4c51b0046646b45573aec1b35c1678c422b3802 | [
"MIT"
] | 28 | 2017-03-08T23:07:57.000Z | 2019-03-29T16:23:23.000Z | urlearning/heuristic/dynamic_pattern_database.cpp | bmmalone/urlearning-cpp | 0b90679df3055c5558eaa5e78e5d006bd352e58c | [
"MIT"
] | 5 | 2017-05-07T00:16:28.000Z | 2019-11-13T12:13:33.000Z | #include "dynamic_pattern_database.h"
#include <stdio.h>
heuristics::DynamicPatternDatabase::DynamicPatternDatabase(int variableCount, int maxSize, bool optimal) {
this->variableCount = variableCount;
this->maxSize = maxSize;
this->optimal = optimal;
}
heuristics::DynamicPatternDatabase::~DynamicPatternD... | 31.945055 | 148 | 0.59523 | [
"vector"
] |
c68ea584f88c0fd8bef63d801d86c733dc03d7e7 | 497 | cpp | C++ | leetcode/leetcode_0338_medm_counting_bits/main.v01.cpp | friskit-china/leetcode-cn-repo | 5f428e77f9d3f79da3e670a38b86d85bd58c81b2 | [
"MIT"
] | null | null | null | leetcode/leetcode_0338_medm_counting_bits/main.v01.cpp | friskit-china/leetcode-cn-repo | 5f428e77f9d3f79da3e670a38b86d85bd58c81b2 | [
"MIT"
] | null | null | null | leetcode/leetcode_0338_medm_counting_bits/main.v01.cpp | friskit-china/leetcode-cn-repo | 5f428e77f9d3f79da3e670a38b86d85bd58c81b2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
vector<int> countBits(int num) {
vector<int> result;
result.push_back(0);
for (int i = 1; i < num + 1; ++i){
result.push_back(result[i >> 1] + (i % 2));
}
return result;
}
};
... | 19.88 | 55 | 0.513078 | [
"vector"
] |
c698992b226748a02ee7e3d85c6900bf40a59ab2 | 26,232 | cpp | C++ | neural_self_calibrator/src/main.cpp | caxenie/ip-camera-overhead-tracker | 8a7e447d2be7e0f7087a9920714e590f2289ab91 | [
"MIT"
] | null | null | null | neural_self_calibrator/src/main.cpp | caxenie/ip-camera-overhead-tracker | 8a7e447d2be7e0f7087a9920714e590f2289ab91 | [
"MIT"
] | null | null | null | neural_self_calibrator/src/main.cpp | caxenie/ip-camera-overhead-tracker | 8a7e447d2be7e0f7087a9920714e590f2289ab91 | [
"MIT"
] | null | null | null | /**
* @author Felix Ebert, felix.ebert@mytum.de
*
* Neural Self-Calibrating Robot Tracking System.
*
* Main routine of 3D tracking application for indoor operation in the robot lab.
* Usually the software receives data from the Guppy Firewire cameras, nevertheless it is possible to read data from disk.
* Further... | 35.73842 | 271 | 0.589623 | [
"vector",
"3d"
] |
5798c345243880f1b865e1d18ff00865893e737a | 745 | cpp | C++ | source/ui/Marker.cpp | davidgtl/GraphKat | ef711f3b510cb25ed59e3363f010e89948975806 | [
"MIT"
] | null | null | null | source/ui/Marker.cpp | davidgtl/GraphKat | ef711f3b510cb25ed59e3363f010e89948975806 | [
"MIT"
] | null | null | null | source/ui/Marker.cpp | davidgtl/GraphKat | ef711f3b510cb25ed59e3363f010e89948975806 | [
"MIT"
] | null | null | null | //
// Created by david on 09/06/2020.
//
#include "Marker.h"
#include "g_uniforms.h"
Marker::Marker(vec3 color, int shape, int filled, vec2 border_size, vec2 origin, vec2 size, float z) :
color(color), shape(shape), filled(filled), border_size(border_size),
IPlanePrimitive("marker", origin, size, z) {... | 24.032258 | 102 | 0.667114 | [
"shape"
] |
579aa65b1c66449232a25a88a604bb7d9c967f7a | 3,064 | cc | C++ | UVa Online Judge/v8/869.cc | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | 1 | 2021-12-08T08:58:43.000Z | 2021-12-08T08:58:43.000Z | UVa Online Judge/v8/869.cc | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | UVa Online Judge/v8/869.cc | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | /*=============================================================================
# Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/
# FileName: 869.cc
# Description: UVa Online Judge - 869
=============================================================================*/
#include <bits/s... | 27.603604 | 79 | 0.458551 | [
"vector"
] |
57a879a9fafe6431b875c84aafce97c88052795f | 8,178 | cpp | C++ | src/gl/Parser.cpp | mechanicsfoundry/raytracinginoneweekend-glsl | 515905135456fe263be9bc13b708222c28827a4d | [
"MIT"
] | 4 | 2021-03-01T13:33:30.000Z | 2021-03-14T20:05:00.000Z | src/gl/Parser.cpp | mechanicsfoundry/raytracinginoneweekend-glsl | 515905135456fe263be9bc13b708222c28827a4d | [
"MIT"
] | null | null | null | src/gl/Parser.cpp | mechanicsfoundry/raytracinginoneweekend-glsl | 515905135456fe263be9bc13b708222c28827a4d | [
"MIT"
] | null | null | null | #include "Parser.hpp"
#include <set>
#include <assert.h>
enum class ParseMode
{
INIT,
NONE,
LAYOUT,
ATTRIBUTE,
UNIFORM,
UNIFORM_BLOCK,
UNIFORM_BLOCK_MEMBERS,
BUFFER,
BUFFER_META,
};
const std::set<std::string> keywords = {
"float",
"vec2",
"vec3",
"vec4",
"int"... | 23.982405 | 72 | 0.402421 | [
"vector"
] |
57b00d9b002212f3ef0f7018faac782a2f46df06 | 660 | cpp | C++ | leetcode/two_sum/leetcode_303.cpp | HuangJingGitHub/PracMakePert_C | 94e570c55d9e391913ccd9c5c72026ab926809b2 | [
"Apache-2.0"
] | 1 | 2019-10-17T03:13:29.000Z | 2019-10-17T03:13:29.000Z | leetcode/two_sum/leetcode_303.cpp | HuangJingGitHub/PracMakePert_C-Cpp | 6ed39e757ad8ba7bdd75fffdaf28d17a294a11e5 | [
"Apache-2.0"
] | null | null | null | leetcode/two_sum/leetcode_303.cpp | HuangJingGitHub/PracMakePert_C-Cpp | 6ed39e757ad8ba7bdd75fffdaf28d17a294a11e5 | [
"Apache-2.0"
] | null | null | null | class NumArray {
public:
vector<long long int> accumulatedSum;
NumArray(vector<int>& nums) {
accumulatedSum = vector<long long int>(nums.size(), 0);
accumulatedSum[0] = nums[0];
for (int i = 1; i < nums.size(); i++)
accumulatedSum[i] = accumulatedSum[i - 1] + nums[i];
}
... | 28.695652 | 64 | 0.59697 | [
"object",
"vector"
] |
57b1b30f1688d70e53259f11c6b55441b23f568b | 1,253 | cpp | C++ | Source/AProject/AAGameCamera.cpp | Mandey4172/ASpacePhip | 09450e2e61d178e5dfee189a0228c27313eb95aa | [
"MIT"
] | null | null | null | Source/AProject/AAGameCamera.cpp | Mandey4172/ASpacePhip | 09450e2e61d178e5dfee189a0228c27313eb95aa | [
"MIT"
] | null | null | null | Source/AProject/AAGameCamera.cpp | Mandey4172/ASpacePhip | 09450e2e61d178e5dfee189a0228c27313eb95aa | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "AAGameCamera.h"
#define xprint(text) print(text)
AAAGameCamera::AAAGameCamera()
{
MaximalInclination = 100.f;
Inclination = 0.f;
DeltaInclination = 10.f;
DirectionChangeStrenght = 10.f;
LastOwnerPosition = F... | 27.844444 | 103 | 0.710295 | [
"vector"
] |
57b4faf21f8a9f210d2b5be7782f022253e08292 | 6,817 | cpp | C++ | tests/core/test_projectq_view.cpp | Takishima/mindquantum | e90dfe474b759023d7ae18281b9a87cb8d223d04 | [
"Apache-2.0"
] | null | null | null | tests/core/test_projectq_view.cpp | Takishima/mindquantum | e90dfe474b759023d7ae18281b9a87cb8d223d04 | [
"Apache-2.0"
] | null | null | null | tests/core/test_projectq_view.cpp | Takishima/mindquantum | e90dfe474b759023d7ae18281b9a87cb8d223d04 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 <Huawei Technologies Co., Ltd>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ... | 38.732955 | 116 | 0.63723 | [
"vector"
] |
57c42de49c34d559558beedd816ec399abbe0d91 | 5,985 | cpp | C++ | placa/AcessoApp.cpp | EEL7323/equipe_amoeba | 49a647319256ba6e0b0fc0ac82b7de1a72be534a | [
"MIT"
] | 2 | 2017-05-06T22:16:37.000Z | 2017-05-06T22:58:54.000Z | placa/AcessoApp.cpp | EEL7323/amoeba | 49a647319256ba6e0b0fc0ac82b7de1a72be534a | [
"MIT"
] | null | null | null | placa/AcessoApp.cpp | EEL7323/amoeba | 49a647319256ba6e0b0fc0ac82b7de1a72be534a | [
"MIT"
] | null | null | null | /**
* @file: AcessoApp.cpp
* @author: mvalente
* @section DESCRIPTION
* A classe AcessoApp controla a comunicação entre o App e a placa se utilizand de um ponteiro de RuManager para controlar o acesso de *usuários ao refeitório.
*
*
*
*Created on June 30, 2017, 5:24 PM
*/
#include "AcessoApp.h"
#include <s... | 28.636364 | 159 | 0.448789 | [
"vector"
] |
57c8b9b7401515f1caba97ab98cf48a3a52ce6fa | 20,755 | cpp | C++ | Development/Src/Engine/Src/UnStaticMeshBuild.cpp | addstone/unrealengine3 | 4579d360dfd52b12493292120b27bb430f978fc8 | [
"FSFAP"
] | 37 | 2020-05-22T18:18:47.000Z | 2022-03-19T06:51:54.000Z | Development/Src/Engine/Src/UnStaticMeshBuild.cpp | AdanosGotoman/unrealengine3 | 4579d360dfd52b12493292120b27bb430f978fc8 | [
"FSFAP"
] | null | null | null | Development/Src/Engine/Src/UnStaticMeshBuild.cpp | AdanosGotoman/unrealengine3 | 4579d360dfd52b12493292120b27bb430f978fc8 | [
"FSFAP"
] | 27 | 2020-05-17T01:03:30.000Z | 2022-03-06T19:10:14.000Z | /*=============================================================================
UnStaticMeshBuild.cpp: Static mesh building.
Copyright 1997-2002 Epic Games, Inc. All Rights Reserved.
Revision history:
* Created by Andrew Scheidecker
=============================================================================*/
... | 29.565527 | 169 | 0.696411 | [
"mesh",
"render"
] |
57d1336db0be732e127de5522e2fe53f687acb9e | 7,807 | cpp | C++ | space/src/Options.cpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | 1 | 2016-05-09T03:34:51.000Z | 2016-05-09T03:34:51.000Z | space/src/Options.cpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | null | null | null | space/src/Options.cpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | null | null | null | /* Sirikata
* Options.cpp
*
* Copyright (c) 2009, Ewen Cheslack-Postava
* 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 ... | 77.29703 | 327 | 0.748687 | [
"mesh",
"object",
"vector"
] |
57d4cfec8fb841c4260029219e1ee65fbc850703 | 8,390 | cpp | C++ | src/kernels/cpu/reference/pad.cpp | xhuohai/nncase | cf7921c273c7446090939c64f57ef783a62bf29c | [
"Apache-2.0"
] | 4 | 2019-12-19T04:04:38.000Z | 2021-07-27T08:49:21.000Z | src/kernels/cpu/reference/pad.cpp | xhuohai/nncase | cf7921c273c7446090939c64f57ef783a62bf29c | [
"Apache-2.0"
] | 3 | 2021-06-18T03:00:35.000Z | 2021-06-29T13:44:15.000Z | src/kernels/cpu/reference/pad.cpp | xhuohai/nncase | cf7921c273c7446090939c64f57ef783a62bf29c | [
"Apache-2.0"
] | 1 | 2021-07-25T06:42:43.000Z | 2021-07-25T06:42:43.000Z | /* Copyright 2019-2021 Canaan Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 40.336538 | 188 | 0.626579 | [
"vector"
] |
57d6f6a76f3aad77752c49ffd409369e392155dc | 2,565 | cpp | C++ | src/lib/netlist/analog/nld_opamps.cpp | mamedev/netedit | 815723fc4772ee7f47558d1a63abc189a65e01b6 | [
"BSD-3-Clause"
] | 3 | 2017-04-12T16:13:34.000Z | 2021-02-24T03:42:19.000Z | src/lib/netlist/analog/nld_opamps.cpp | mamedev/netedit | 815723fc4772ee7f47558d1a63abc189a65e01b6 | [
"BSD-3-Clause"
] | null | null | null | src/lib/netlist/analog/nld_opamps.cpp | mamedev/netedit | 815723fc4772ee7f47558d1a63abc189a65e01b6 | [
"BSD-3-Clause"
] | 7 | 2017-01-24T23:07:50.000Z | 2021-01-28T04:10:59.000Z | // license:GPL-2.0+
// copyright-holders:Couriersud
/*
* nld_opamps.c
*
*/
#include "nld_opamps.h"
#include "devices/net_lib.h"
NETLIST_START(opamp_lm3900)
/*
* Fast norton opamp model without bandwidth
*/
/* Terminal definitions for calling netlists */
ALIAS(PLUS, R1.1) // Positive input
ALIAS(MINUS, ... | 21.375 | 85 | 0.642885 | [
"model"
] |
57dab7dee7a9ad74e5df3a36af2bce769a015632 | 8,107 | cpp | C++ | src/beanmachine/graph/distribution/gamma.cpp | rodrigodesalvobraz/beanmachine-1 | 1c0d5ffeb505167f581e518809ea1320861bdf18 | [
"MIT"
] | 1 | 2021-12-22T13:19:14.000Z | 2021-12-22T13:19:14.000Z | src/beanmachine/graph/distribution/gamma.cpp | rodrigodesalvobraz/beanmachine-1 | 1c0d5ffeb505167f581e518809ea1320861bdf18 | [
"MIT"
] | null | null | null | src/beanmachine/graph/distribution/gamma.cpp | rodrigodesalvobraz/beanmachine-1 | 1c0d5ffeb505167f581e518809ea1320861bdf18 | [
"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 <cmath>
#include <random>
#include <string>
#include "beanmachine/graph/distribution/gamma.h"
#include "beanmachine/gra... | 37.532407 | 79 | 0.666708 | [
"shape",
"vector"
] |
57e59045608946f040d5367d0e466e5a199687c3 | 2,735 | hpp | C++ | OffPiste/include/Node.hpp | CS107-off-piste/cs107-FinalProject | 9b31031bd2f94ea08ab7014de4ba6060e80f294f | [
"MIT"
] | 2 | 2021-07-23T15:45:04.000Z | 2022-03-03T16:24:05.000Z | OffPiste/include/Node.hpp | CS107-off-piste/cs107-FinalProject | 9b31031bd2f94ea08ab7014de4ba6060e80f294f | [
"MIT"
] | null | null | null | OffPiste/include/Node.hpp | CS107-off-piste/cs107-FinalProject | 9b31031bd2f94ea08ab7014de4ba6060e80f294f | [
"MIT"
] | 1 | 2021-07-23T15:45:18.000Z | 2021-07-23T15:45:18.000Z | #ifndef CS107_FINALPROJECT_NODE_HPP
#define CS107_FINALPROJECT_NODE_HPP
#include <cmath>
#include <vector>
namespace OP {
/**
* Check if two numbers are equal.
* @param a The first number to check
* @param b The number to compare against
* @returns true if the two numbers are equal, false otherwise.
*/
static b... | 28.195876 | 80 | 0.680804 | [
"vector"
] |
57e989d190692a304379159f381cdc3953f01f25 | 7,472 | cpp | C++ | Vic2ToHoI4/Source/Mappers/GovernmentMapper.cpp | kingofmen/Vic2ToHoI4 | 04e3b872f84cf8aa56e44a63021fe66db1cfe233 | [
"MIT"
] | 1 | 2020-12-19T07:55:43.000Z | 2020-12-19T07:55:43.000Z | Vic2ToHoI4/Source/Mappers/GovernmentMapper.cpp | kingofmen/Vic2ToHoI4 | 04e3b872f84cf8aa56e44a63021fe66db1cfe233 | [
"MIT"
] | null | null | null | Vic2ToHoI4/Source/Mappers/GovernmentMapper.cpp | kingofmen/Vic2ToHoI4 | 04e3b872f84cf8aa56e44a63021fe66db1cfe233 | [
"MIT"
] | null | null | null | #include "GovernmentMapper.h"
#include "Log.h"
#include "ParserHelpers.h"
#include "V2World/Countries/Country.h"
class aGovernmentMapping: commonItems::parser
{
public:
explicit aGovernmentMapping(std::istream& theStream);
auto getMapping() const { return mapping; }
private:
governmentMapping mapping;
};
... | 27.470588 | 119 | 0.743978 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.