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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
450184ef9a2ae31d35a335501f0532821dd419c0 | 1,008 | cpp | C++ | TAP 2020.1/motoboy_1286.cpp | lucianovianna/IP-2019-1 | 585ab983d87de1bda4cb000581ebbee10214651e | [
"Apache-2.0"
] | 1 | 2019-04-20T01:02:13.000Z | 2019-04-20T01:02:13.000Z | TAP 2020.1/motoboy_1286.cpp | lucianovianna/study_C | 585ab983d87de1bda4cb000581ebbee10214651e | [
"Apache-2.0"
] | null | null | null | TAP 2020.1/motoboy_1286.cpp | lucianovianna/study_C | 585ab983d87de1bda4cb000581ebbee10214651e | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
//https://www.urionlinejudge.com.br/judge/pt/problems/view/1286
int n, dp[200][200];
vector<int> numPizzas(200);
vector<int> tempo(200);
int bestWay(int pizza, int maxPizzas)
{
if(dp[pizza][maxPizzas] >= 0) {
return dp[pizza][maxPizzas];
}
if(pizza == n+1 || !max... | 17.37931 | 76 | 0.59127 | [
"vector"
] |
45035fa03490b42c81b367a269f62dbc3907f98f | 13,150 | cpp | C++ | src/benchmark/multiNode_improved_memory.cpp | Liu-xiandong/Fast-APSP | 9392d6b48a5928be0424c664f92ec642f3fff12a | [
"Apache-2.0"
] | null | null | null | src/benchmark/multiNode_improved_memory.cpp | Liu-xiandong/Fast-APSP | 9392d6b48a5928be0424c664f92ec642f3fff12a | [
"Apache-2.0"
] | null | null | null | src/benchmark/multiNode_improved_memory.cpp | Liu-xiandong/Fast-APSP | 9392d6b48a5928be0424c664f92ec642f3fff12a | [
"Apache-2.0"
] | null | null | null | // author:lxd
// compute the APSP
// tasks == processs
// memory optimize
// mpirun -np 4 ./multiNode_improved_memory -f USpowerGrid -direct false -weight false
#include <bits/stdc++.h>
#include <mpi.h>
#include "util_Myalgorithm.h"
#include "readMatFile.h"
#include "readIdFile.h"
#include "util_centralized.h"
#includ... | 37.464387 | 125 | 0.563878 | [
"vector"
] |
4507b6e39968b8399f1b2c18cb8cd9e8e40c43d5 | 3,074 | cpp | C++ | source/train/XOptimizer.cpp | huchinlp/NiuTensor | 38d1d7668f5cce16de410fb6a01836f47f43af16 | [
"Apache-2.0"
] | 14 | 2018-05-14T09:39:06.000Z | 2019-08-27T14:46:38.000Z | source/train/XOptimizer.cpp | huchinlp/NiuTensor | 38d1d7668f5cce16de410fb6a01836f47f43af16 | [
"Apache-2.0"
] | 1 | 2019-04-24T04:42:59.000Z | 2019-06-18T08:09:31.000Z | source/train/XOptimizer.cpp | huchinlp/NiuTensor | 38d1d7668f5cce16de410fb6a01836f47f43af16 | [
"Apache-2.0"
] | 5 | 2019-02-27T03:54:12.000Z | 2019-08-27T14:46:37.000Z | /*
* NiuTrans.Tensor - an open-source tensor library
* Copyright (C) 2016-2021
* Natural Language Processing Lab, Northeastern University
* and
* NiuTrans Research
* 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... | 21.957143 | 77 | 0.671113 | [
"model"
] |
4508dcb8188f4e684310f130c00837059634dec5 | 11,628 | hh | C++ | src/wasm.hh | jmjoy/php-ext-wasm | 4c1abd841958085bf4841cf2c5c982df6d585165 | [
"MIT"
] | 1 | 2021-06-05T05:13:31.000Z | 2021-06-05T05:13:31.000Z | src/wasm.hh | web3p/wasmer-php | 2234cd44408585ccbdfda429b163156f0beddf28 | [
"MIT"
] | null | null | null | src/wasm.hh | web3p/wasmer-php | 2234cd44408585ccbdfda429b163156f0beddf28 | [
"MIT"
] | 1 | 2021-01-17T17:05:59.000Z | 2021-01-17T17:05:59.000Z | /*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2019 The PHP Group |
+--------------... | 29.07 | 113 | 0.70485 | [
"object"
] |
450ebf16254aa395b3c08f96c9b8e2bfcf478172 | 8,214 | cpp | C++ | src/vswhere.lib/InstanceSelector.cpp | FinSecSystems/vswhere | 24f19ddd29bad441dba70a9ba081c8cdaf046c85 | [
"MIT"
] | null | null | null | src/vswhere.lib/InstanceSelector.cpp | FinSecSystems/vswhere | 24f19ddd29bad441dba70a9ba081c8cdaf046c85 | [
"MIT"
] | null | null | null | src/vswhere.lib/InstanceSelector.cpp | FinSecSystems/vswhere | 24f19ddd29bad441dba70a9ba081c8cdaf046c85 | [
"MIT"
] | null | null | null | // <copyright file="InstanceSelector.cpp" company="Microsoft Corporation">
// Copyright (C) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt in the project root for license information.
// </copyright>
#include "stdafx.h"
using namespace std;
using std::placeholders::_1;
... | 26.07619 | 130 | 0.597882 | [
"vector"
] |
9323f18b3de085d3133736c4dcec9803f59083ad | 5,599 | cpp | C++ | yumi_COBHOOK_controllers/src/yumi_ROS_IK.cpp | jpsilverio/yumi | 0bd9b948d98124d23274f205c064dc246624266d | [
"BSD-2-Clause"
] | null | null | null | yumi_COBHOOK_controllers/src/yumi_ROS_IK.cpp | jpsilverio/yumi | 0bd9b948d98124d23274f205c064dc246624266d | [
"BSD-2-Clause"
] | null | null | null | yumi_COBHOOK_controllers/src/yumi_ROS_IK.cpp | jpsilverio/yumi | 0bd9b948d98124d23274f205c064dc246624266d | [
"BSD-2-Clause"
] | null | null | null | // ROS
#include <ros/ros.h>
#include <sensor_msgs/JointState.h>
#include <std_msgs/Float64.h>
#include <std_msgs/String.h>
#include <geometry_msgs/Pose.h>
// KDL
#include <kdl/kdl.hpp>
#include <kdl/jntarray.hpp>
#include <kdl/jacobian.hpp>
#include <armadillo>
// Useful defines
#define DQ_MAX 360*M_PI/180 // m... | 28.566327 | 132 | 0.686194 | [
"object",
"vector",
"model"
] |
9327307b29af111871f8827f9585b3f7ed62bad7 | 11,234 | cxx | C++ | inetcore/mshtml/src/site/base/fframe.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetcore/mshtml/src/site/base/fframe.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetcore/mshtml/src/site/base/fframe.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+---------------------------------------------------------------------------
//
// Microsoft Forms
// Copyright (C) Microsoft Corporation, 1994-1995
//
// Contents: Fake frame implementation.
//
//----------------------------------------------------------------------------
#include "headers.hxx"
#pr... | 26.432941 | 93 | 0.433416 | [
"object"
] |
9327cd12840205f72010b9f07820428243fe3359 | 2,948 | cpp | C++ | aplcore/src/action/scrollaction.cpp | tschaffter/apl-core-library | 3a05342ba0fa2432c320476795c13e8cd990e8ee | [
"Apache-2.0"
] | 28 | 2019-11-05T12:23:01.000Z | 2022-03-22T10:01:53.000Z | aplcore/src/action/scrollaction.cpp | alexa/apl-core-library | b0859273851c4f62290d1f85c42bf22eb087fb35 | [
"Apache-2.0"
] | 7 | 2020-03-28T12:44:08.000Z | 2022-01-23T17:02:27.000Z | aplcore/src/action/scrollaction.cpp | tschaffter/apl-core-library | 3a05342ba0fa2432c320476795c13e8cd990e8ee | [
"Apache-2.0"
] | 15 | 2019-12-25T10:15:52.000Z | 2021-12-30T03:50:00.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" ... | 37.316456 | 109 | 0.682497 | [
"object"
] |
93280dc1d32e434d2b759d04cb82eb06384a4bca | 6,204 | cpp | C++ | Source/FairyGUI/Private/Widgets/BitmapFontRun.cpp | sven721/FairyGUI-unreal | 1d45e1eb609245cc8593beef7cd41ddd354bb756 | [
"MIT"
] | 139 | 2018-01-02T09:26:22.000Z | 2022-03-25T15:36:39.000Z | Source/FairyGUI/Private/Widgets/BitmapFontRun.cpp | sven721/FairyGUI-unreal | 1d45e1eb609245cc8593beef7cd41ddd354bb756 | [
"MIT"
] | 24 | 2018-12-03T15:13:35.000Z | 2021-12-31T03:53:42.000Z | Source/FairyGUI/Private/Widgets/BitmapFontRun.cpp | sven721/FairyGUI-unreal | 1d45e1eb609245cc8593beef7cd41ddd354bb756 | [
"MIT"
] | 17 | 2020-05-17T02:35:30.000Z | 2022-02-23T04:37:59.000Z | #include "Widgets/BitmapFontRun.h"
#include "Styling/StyleDefaults.h"
#include "Rendering/DrawElements.h"
#include "Framework/Application/SlateApplication.h"
#include "Framework/Text/DefaultLayoutBlock.h"
#include "Framework/Text/RunUtils.h"
TSharedRef< FBitmapFontRun > FBitmapFontRun::Create(const TSharedRef< const F... | 33.176471 | 354 | 0.73501 | [
"geometry"
] |
9332778a00a7a09d705f1033afa5e09a009eb930 | 5,068 | cpp | C++ | src/CurvatureCurveFit.cpp | Yusheng-cai/InstantaneousInterface | 42ec7c825c6424f0339b2443077bb3505819cde6 | [
"MIT"
] | null | null | null | src/CurvatureCurveFit.cpp | Yusheng-cai/InstantaneousInterface | 42ec7c825c6424f0339b2443077bb3505819cde6 | [
"MIT"
] | null | null | null | src/CurvatureCurveFit.cpp | Yusheng-cai/InstantaneousInterface | 42ec7c825c6424f0339b2443077bb3505819cde6 | [
"MIT"
] | null | null | null | #include "CurvatureCurveFit.h"
namespace CurvatureRegistry
{
registry<CurvatureCurveFit> registerCurvefit("curvefit");
}
CurvatureCurveFit::CurvatureCurveFit(CurvatureInput& input)
:Curvature(input)
{
input.pack.ReadNumber("neighbors", ParameterPack::KeyType::Optional, NumNeighbors_);
}
void CurvatureCurveFi... | 32.487179 | 102 | 0.582084 | [
"mesh",
"vector"
] |
933c2fce532aedf2c9d518d2274882c4c7f94b4f | 6,150 | cxx | C++ | src/Primitives_Vector.cxx | LittleGreyCells/escheme-oops | 61adf2416e1ffe91f205e074d68d72d4ffbf49b9 | [
"MIT"
] | null | null | null | src/Primitives_Vector.cxx | LittleGreyCells/escheme-oops | 61adf2416e1ffe91f205e074d68d72d4ffbf49b9 | [
"MIT"
] | null | null | null | src/Primitives_Vector.cxx | LittleGreyCells/escheme-oops | 61adf2416e1ffe91f205e074d68d72d4ffbf49b9 | [
"MIT"
] | null | null | null | #include "Primitives_Vector.hxx"
#include "Memory.hxx"
#include "argstack.hxx"
#include "regstack.hxx"
namespace scheme
{
namespace Primitives
{
Node* vector()
{
// syntax: (vector <e1> <e2> ...)
ArgstackIterator iter;
auto n = argstack.getargc();
auto v = Memory:... | 28.472222 | 94 | 0.478699 | [
"vector"
] |
933ec3d6c0f55cb4c2fb9275fdc9d40bab1a96f2 | 8,745 | cpp | C++ | src/Core/Components/Physics/CharacterController.cpp | niansa/MxEngine | 9e3e493d58d5a59a935f2ddeb7c0908bcb5a47fd | [
"BSD-3-Clause"
] | null | null | null | src/Core/Components/Physics/CharacterController.cpp | niansa/MxEngine | 9e3e493d58d5a59a935f2ddeb7c0908bcb5a47fd | [
"BSD-3-Clause"
] | null | null | null | src/Core/Components/Physics/CharacterController.cpp | niansa/MxEngine | 9e3e493d58d5a59a935f2ddeb7c0908bcb5a47fd | [
"BSD-3-Clause"
] | null | null | null | // Copyright(c) 2019 - 2020, #Momo
// 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... | 42.451456 | 123 | 0.667696 | [
"object",
"transform"
] |
93408e0f3976de84b4f0f08877e209503a78a449 | 3,576 | cpp | C++ | Practica1/prod-cons-ex.cpp | JArandaIzquierdo/SistemasConcurrentesYDistribuidos | 1d773458efecefa32b61ade42a1654679d515dc4 | [
"Apache-2.0"
] | null | null | null | Practica1/prod-cons-ex.cpp | JArandaIzquierdo/SistemasConcurrentesYDistribuidos | 1d773458efecefa32b61ade42a1654679d515dc4 | [
"Apache-2.0"
] | null | null | null | Practica1/prod-cons-ex.cpp | JArandaIzquierdo/SistemasConcurrentesYDistribuidos | 1d773458efecefa32b61ade42a1654679d515dc4 | [
"Apache-2.0"
] | null | null | null | //Ejercicio Productor - Consumirdor
//Autor: Javier Aranda Izquierdo
#include <iostream>
#include <cassert>
#include <pthread.h>
#include <semaphore.h>
#include <iomanip>
#include <cstdlib>
using namespace std ;
// ---------------------------------------------------------------------
// constantes
const unsigned
n... | 26.887218 | 91 | 0.540548 | [
"vector"
] |
9340ad5ceae9c8f1a2529b992f35492fa031130b | 27,243 | cpp | C++ | src/sacn/sacnlistener.cpp | Crackerjack55/sacnview | 7dc317c18cbb2995951abae743dc2e6f46e469e5 | [
"Apache-2.0"
] | 78 | 2016-03-04T02:28:20.000Z | 2022-01-04T03:54:45.000Z | src/sacn/sacnlistener.cpp | Crackerjack55/sacnview | 7dc317c18cbb2995951abae743dc2e6f46e469e5 | [
"Apache-2.0"
] | 141 | 2017-02-16T19:22:25.000Z | 2022-03-04T10:57:04.000Z | src/sacn/sacnlistener.cpp | Crackerjack55/sacnview | 7dc317c18cbb2995951abae743dc2e6f46e469e5 | [
"Apache-2.0"
] | 21 | 2016-09-26T02:23:35.000Z | 2021-12-25T14:07:17.000Z | // Copyright 2016 Tom Barthel-Steer
// http://www.tomsteer.net
//
// 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 ap... | 36.567785 | 158 | 0.584884 | [
"vector"
] |
9341cbc5a633038f9e204a91a70912cba25ac000 | 30,785 | cc | C++ | inlong-tubemq/tubemq-client-twins/tubemq-client-cpp/src/tubemq_tdmsg.cc | shink/incubator-inlong | 58a3f51f1bac4211ae950f8dddce2d61be3e510c | [
"Apache-2.0"
] | 315 | 2020-01-03T10:17:09.000Z | 2021-04-07T10:50:20.000Z | inlong-tubemq/tubemq-client-twins/tubemq-client-cpp/src/tubemq_tdmsg.cc | EMsnap/incubator-tubemq | e931e71b453b9e060f3f1e4f272ed0679a30df38 | [
"Apache-2.0"
] | 2,372 | 2021-04-17T10:21:15.000Z | 2022-03-31T13:10:46.000Z | inlong-tubemq/tubemq-client-twins/tubemq-client-cpp/src/tubemq_tdmsg.cc | EMsnap/incubator-tubemq | e931e71b453b9e060f3f1e4f272ed0679a30df38 | [
"Apache-2.0"
] | 293 | 2020-01-03T10:26:25.000Z | 2021-04-09T02:01:41.000Z | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"... | 32.995713 | 101 | 0.596167 | [
"vector"
] |
934facdb6fc46b5a4b379afcc98cb46502898b7e | 10,273 | cpp | C++ | WaterFallView/WaterfallFlowLayout.cpp | Tlaster/Marduk.Controls | 111e564617403c97a2f72e64b2673cdef62e1c0e | [
"WTFPL"
] | 1 | 2019-02-19T10:24:28.000Z | 2019-02-19T10:24:28.000Z | WaterFallView/WaterfallFlowLayout.cpp | Tlaster/Marduk.Controls | 111e564617403c97a2f72e64b2673cdef62e1c0e | [
"WTFPL"
] | null | null | null | WaterFallView/WaterfallFlowLayout.cpp | Tlaster/Marduk.Controls | 111e564617403c97a2f72e64b2673cdef62e1c0e | [
"WTFPL"
] | null | null | null | #include "pch.h"
#include "WaterfallFlowLayout.h"
using namespace WaterFallView;
WaterfallFlowLayout::WaterfallFlowLayout(double spacing, double width, int stackCount)
{
_spacing = spacing;
_width = width;
_units = new std::vector<WaterfallFlowUnit^>();
_stacks = new std::vector<double>();
for (i... | 26.273657 | 169 | 0.542295 | [
"object",
"vector"
] |
93551bad18f69b4524c91247c944bc28507a1f86 | 6,391 | cc | C++ | chrome/browser/media/router/providers/cast/app_activity.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | chrome/browser/media/router/providers/cast/app_activity.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | chrome/browser/media/router/providers/cast/app_activity.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2019 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 "chrome/browser/media/router/providers/cast/app_activity.h"
#include <algorithm>
#include <memory>
#include <vector>
#include "base/bind.h"
#in... | 36.942197 | 79 | 0.677202 | [
"vector"
] |
9359bf37b35ffbdd4c4bb8a57c4d9e2a30abb92d | 486 | cpp | C++ | counting-triangles.cpp | babu-thomas/interviewbit-solutions | 21125bf30b2d94b6f03310a4917679f216f55af3 | [
"MIT"
] | 16 | 2018-12-04T16:23:07.000Z | 2021-09-21T06:32:04.000Z | counting-triangles.cpp | babu-thomas/interviewbit-solutions | 21125bf30b2d94b6f03310a4917679f216f55af3 | [
"MIT"
] | 1 | 2019-08-21T16:20:03.000Z | 2019-08-21T16:21:41.000Z | counting-triangles.cpp | babu-thomas/interviewbit-solutions | 21125bf30b2d94b6f03310a4917679f216f55af3 | [
"MIT"
] | 23 | 2019-06-21T12:09:57.000Z | 2021-09-22T18:03:28.000Z | // Time - O(N^2), Space - O(1)
int Solution::nTriang(vector<int> &A) {
sort(A.begin(), A.end());
int n = A.size();
long long count = 0;
for(int i = n - 1; i >= 2; i--) {
int l = 0, r = i - 1;
while(l < r) {
long long sum = A[l] + A[r];
if(sum > A[i]) {
... | 22.090909 | 40 | 0.333333 | [
"vector"
] |
93615ce3f9759e251a673595ee5977567ff852d3 | 1,431 | cc | C++ | plugins/devtools/bridge/inspector/protocol/script_position.cc | devjiangzhou/kraken | d7b48100f8a017a9ccb9ea1628e319d8f1159c91 | [
"Apache-2.0"
] | 4,465 | 2020-12-04T08:56:15.000Z | 2022-03-31T19:04:00.000Z | plugins/devtools/bridge/inspector/protocol/script_position.cc | devjiangzhou/kraken | d7b48100f8a017a9ccb9ea1628e319d8f1159c91 | [
"Apache-2.0"
] | 796 | 2021-01-05T08:21:00.000Z | 2022-03-31T13:31:28.000Z | plugins/devtools/bridge/inspector/protocol/script_position.cc | devjiangzhou/kraken | d7b48100f8a017a9ccb9ea1628e319d8f1159c91 | [
"Apache-2.0"
] | 261 | 2020-12-04T11:32:42.000Z | 2022-03-31T03:34:47.000Z | /*
* Copyright (C) 2020 Alibaba Inc. All rights reserved.
* Author: Kraken Team.
*/
#include "script_position.h"
namespace kraken {
namespace debugger {
std::unique_ptr<ScriptPosition> ScriptPosition::fromValue(rapidjson::Value *value,
kraken::debugger::Err... | 30.446809 | 99 | 0.669462 | [
"object"
] |
9361ca30db2b3967bc9d1b42ee4181ee5f7f6251 | 17,812 | cpp | C++ | Core/TiledTexture.cpp | sienaiwun/D3D12Practice | 3c75fc8e6367816882955888a0e9ea7021d46a62 | [
"MIT"
] | 9 | 2020-01-21T13:11:01.000Z | 2022-02-23T03:51:11.000Z | Core/TiledTexture.cpp | sienaiwun/D3D12Practice | 3c75fc8e6367816882955888a0e9ea7021d46a62 | [
"MIT"
] | 1 | 2020-03-30T05:20:30.000Z | 2020-04-08T03:27:46.000Z | Core/TiledTexture.cpp | sienaiwun/D3D12Practice | 3c75fc8e6367816882955888a0e9ea7021d46a62 | [
"MIT"
] | 2 | 2020-01-21T13:11:34.000Z | 2020-04-08T05:22:40.000Z | #include "pch.h"
#include "GraphicsCore.h"
#include "CommandContext.h"
#include "TiledTexture.h"
#include "CompiledShaders/FillPage.h"
#include "FileUtility.h"
#include <map>
#include <thread>
using namespace Graphics;
static std::vector<UINT8> GenerateTextureTestData(const U32 totalWidth, const U32 totalHeight, cons... | 47.88172 | 232 | 0.688974 | [
"vector"
] |
9365ed1364fb520262bab0b0c0c7f2b4b29673b5 | 1,671 | cc | C++ | leetcode/BinarySearch/RotatedSortedArray/search_in_rotated_sorted_array.cc | LIZHICHAOUNICORN/Toolkits | db45dac4de14402a21be0c40ba8e87b4faeda1b6 | [
"Apache-2.0"
] | null | null | null | leetcode/BinarySearch/RotatedSortedArray/search_in_rotated_sorted_array.cc | LIZHICHAOUNICORN/Toolkits | db45dac4de14402a21be0c40ba8e87b4faeda1b6 | [
"Apache-2.0"
] | null | null | null | leetcode/BinarySearch/RotatedSortedArray/search_in_rotated_sorted_array.cc | LIZHICHAOUNICORN/Toolkits | db45dac4de14402a21be0c40ba8e87b4faeda1b6 | [
"Apache-2.0"
] | null | null | null | #include <vector>
#include <queue>
#include <cstdlib>
#include <random>
#include <algorithm>
#include "third_party/glog/include/logging.h"
#include "third_party/gflags/include/gflags.h"
DEFINE_int32(input_size, 10, "input data size");
using namespace std;
// Problem: https://leetcode-cn.com/problems/search-in-rotat... | 25.318182 | 75 | 0.509874 | [
"vector"
] |
936b1d16c4668d2b008b43033670139f4ca31ea2 | 3,237 | hh | C++ | src/vector.hh | WaizungTaam/neural_network | f593f81ffa5ef9ee3377d56cbfd6c679f668da26 | [
"Apache-2.0"
] | null | null | null | src/vector.hh | WaizungTaam/neural_network | f593f81ffa5ef9ee3377d56cbfd6c679f668da26 | [
"Apache-2.0"
] | null | null | null | src/vector.hh | WaizungTaam/neural_network | f593f81ffa5ef9ee3377d56cbfd6c679f668da26 | [
"Apache-2.0"
] | null | null | null | #ifndef VECTOR_HH
#define VECTOR_HH
#include <vector>
#include <iostream>
#include <fstream>
#include <string>
class Vector {
public:
Vector() = default;
Vector(const Vector &) = default;
Vector(Vector &&) = default;
Vector & operator=(const Vector &) = default;
Vector & operator=(Vector &&) =... | 38.082353 | 72 | 0.67717 | [
"shape",
"vector"
] |
937051f7b073558e044ba57d967a9be900cd6a2c | 1,431 | hpp | C++ | src/dropper_torpedo/servoControl.hpp | arvpUofA/au_teensycode | 61b52b81d66d1e7000c66a66677ef61b44ee50c3 | [
"MIT"
] | null | null | null | src/dropper_torpedo/servoControl.hpp | arvpUofA/au_teensycode | 61b52b81d66d1e7000c66a66677ef61b44ee50c3 | [
"MIT"
] | null | null | null | src/dropper_torpedo/servoControl.hpp | arvpUofA/au_teensycode | 61b52b81d66d1e7000c66a66677ef61b44ee50c3 | [
"MIT"
] | null | null | null | #ifndef SERVO_CONTROL_HPP
#define SERVO_CONTROL_HPP
#include <math.h>
#include <libARVPpwm.h>
#include "parameter.h"
//Servo limits in us
#define SERVOMIN 600
#define SERVOMAX 2600
#define SERVO_ANGLE_OFFSET (M_PI / 2)
Adafruit_PWMServoDriver *pwmServo;
/* Servo angle relative to initial position [radians] */
dou... | 24.672414 | 145 | 0.763103 | [
"object"
] |
9375db238a47111a2ec8eaac4e54eb73e5445ca4 | 29,905 | hpp | C++ | viennacl/generator/result_of.hpp | bollig/viennacl | 6dac70e558ed42abe63d8c5bfd08465aafeda859 | [
"MIT"
] | 1 | 2020-09-21T08:33:10.000Z | 2020-09-21T08:33:10.000Z | viennacl/generator/result_of.hpp | bollig/viennacl | 6dac70e558ed42abe63d8c5bfd08465aafeda859 | [
"MIT"
] | null | null | null | viennacl/generator/result_of.hpp | bollig/viennacl | 6dac70e558ed42abe63d8c5bfd08465aafeda859 | [
"MIT"
] | null | null | null | #ifndef VIENNACL_GENERATOR_TRAITS_RESULT_OF_HPP
#define VIENNACL_GENERATOR_TRAITS_RESULT_OF_HPP
/* =========================================================================
Copyright (c) 2010-2012, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
... | 32.89879 | 165 | 0.560609 | [
"vector"
] |
937c6f00a3c84e55150f023eb11dcca28cc1baaa | 561 | cpp | C++ | pytorch/cpp/octree_samples.cpp | pauldinh/O-CNN | fecefd92b559bdfe94a3983b2b010645167c41a1 | [
"MIT"
] | 299 | 2019-05-27T02:18:56.000Z | 2022-03-31T15:29:20.000Z | pytorch/cpp/octree_samples.cpp | pauldinh/O-CNN | fecefd92b559bdfe94a3983b2b010645167c41a1 | [
"MIT"
] | 100 | 2019-05-07T03:17:01.000Z | 2022-03-30T09:02:04.000Z | pytorch/cpp/octree_samples.cpp | pauldinh/O-CNN | fecefd92b559bdfe94a3983b2b010645167c41a1 | [
"MIT"
] | 84 | 2019-05-17T17:44:06.000Z | 2022-02-14T04:32:02.000Z | #include <octree/octree_samples.h>
#include "ocnn.h"
vector<Tensor> octree_samples(vector<string> names) {
int num = names.size();
vector<Tensor> tensors;
for (int i = 0; i < num; ++i) {
size_t size = 0;
const unsigned char* str = octree::get_one_octree(names[i].c_str(), &size);
CHECK_GT(size, 0) <... | 29.526316 | 79 | 0.654189 | [
"vector"
] |
9382600ec36ac866618efe542a0b61df1dc742d2 | 1,374 | cpp | C++ | codeforces/D - The Best Vacation/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/D - The Best Vacation/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/D - The Best Vacation/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: May/27/2020 21:01
* solution_verdict: Accepted language: GNU C++14
* run... | 28.625 | 111 | 0.459243 | [
"vector"
] |
93866b184b715ffe3a71a72570393759404d32e5 | 4,565 | cpp | C++ | algorithms/tree/ordered_map.cpp | weidonglian/cpp-playground | a7bf348093e4f87ed7aaf970c1d8787671a1ae5f | [
"MIT"
] | 2 | 2019-08-18T19:13:10.000Z | 2020-05-08T11:51:49.000Z | algorithms/tree/ordered_map.cpp | weidonglian/cpp-playground | a7bf348093e4f87ed7aaf970c1d8787671a1ae5f | [
"MIT"
] | null | null | null | algorithms/tree/ordered_map.cpp | weidonglian/cpp-playground | a7bf348093e4f87ed7aaf970c1d8787671a1ae5f | [
"MIT"
] | null | null | null | #include <array>
#include <functional>
#include <iostream>
#include <map>
#include <random>
#include <string>
#include "base.hpp"
#include "random.hpp"
using namespace std;
namespace {
template <class K, class V, class Compare = std::less<K>>
class ordered_map {
public:
using key_type = K;
using value_type = V;... | 27.172619 | 104 | 0.610515 | [
"vector"
] |
938dff3f7e592b5f060b4d7e14080346a7bce957 | 3,633 | hpp | C++ | OREData/ored/marketdata/defaultcurve.hpp | mrslezak/Engine | c46ff278a2c5f4162db91a7ab500a0bb8cef7657 | [
"BSD-3-Clause"
] | 335 | 2016-10-07T16:31:10.000Z | 2022-03-02T07:12:03.000Z | OREData/ored/marketdata/defaultcurve.hpp | mrslezak/Engine | c46ff278a2c5f4162db91a7ab500a0bb8cef7657 | [
"BSD-3-Clause"
] | 59 | 2016-10-31T04:20:24.000Z | 2022-01-03T16:39:57.000Z | OREData/ored/marketdata/defaultcurve.hpp | mrslezak/Engine | c46ff278a2c5f4162db91a7ab500a0bb8cef7657 | [
"BSD-3-Clause"
] | 180 | 2016-10-08T14:23:50.000Z | 2022-03-28T10:43:05.000Z | /*
Copyright (C) 2016 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms of the Modified BSD License... | 40.366667 | 115 | 0.715111 | [
"model"
] |
938ff268dbed1afb7685c081bfba7e4bfa0c223d | 5,255 | cpp | C++ | fem/tmop/tmop_pa_h2d.cpp | adantra/mfem | e48b5ffa1a8cdb5a18c0c3c28ab48fbdcd7ad298 | [
"BSD-3-Clause"
] | null | null | null | fem/tmop/tmop_pa_h2d.cpp | adantra/mfem | e48b5ffa1a8cdb5a18c0c3c28ab48fbdcd7ad298 | [
"BSD-3-Clause"
] | null | null | null | fem/tmop/tmop_pa_h2d.cpp | adantra/mfem | e48b5ffa1a8cdb5a18c0c3c28ab48fbdcd7ad298 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2010-2022, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit ht... | 32.438272 | 80 | 0.439391 | [
"vector"
] |
9397066bf7cb705b1255684a8999c4c4dd0b51be | 13,191 | cc | C++ | src/sys/fuzzing/framework/target/process-unittest.cc | fabio-d/fuchsia-stardock | e57f5d1cf015fe2294fc2a5aea704842294318d2 | [
"BSD-2-Clause"
] | 5 | 2022-01-10T20:22:17.000Z | 2022-01-21T20:14:17.000Z | src/sys/fuzzing/framework/target/process-unittest.cc | fabio-d/fuchsia-stardock | e57f5d1cf015fe2294fc2a5aea704842294318d2 | [
"BSD-2-Clause"
] | null | null | null | src/sys/fuzzing/framework/target/process-unittest.cc | fabio-d/fuchsia-stardock | e57f5d1cf015fe2294fc2a5aea704842294318d2 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// These tests only cover the basic configuration and operation of the Process class. Testing
// functionality that leads to the process exiting is tricky.... | 33.736573 | 100 | 0.73444 | [
"vector"
] |
9399e905aafd310ecf6c60e5d78dd9e72ade8be3 | 471 | cpp | C++ | Leetcode/0115. Distinct Subsequences/0115.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/0115. Distinct Subsequences/0115.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/0115. Distinct Subsequences/0115.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | class Solution {
public:
int numDistinct(string s, string t) {
const int m = s.length();
const int n = t.length();
vector<vector<long>> dp(m + 1, vector<long>(n + 1));
for (int i = 0; i <= m; ++i)
dp[i][0] = 1;
for (int i = 1; i <= m; ++i)
for (int j = 1; j <= n; ++j)
if (s[... | 22.428571 | 56 | 0.414013 | [
"vector"
] |
939c3cbf65b0d5ae96b6b3c1b17cbd1cd23b7de1 | 4,889 | hpp | C++ | include/El/core/GlobalArrays.hpp | sg0/Elemental | 614f02509690449b553451e36bc78e7e132ea517 | [
"BSD-3-Clause"
] | 1 | 2015-12-08T22:54:37.000Z | 2015-12-08T22:54:37.000Z | include/El/core/GlobalArrays.hpp | sg0/Elemental | 614f02509690449b553451e36bc78e7e132ea517 | [
"BSD-3-Clause"
] | null | null | null | include/El/core/GlobalArrays.hpp | sg0/Elemental | 614f02509690449b553451e36bc78e7e132ea517 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#ifndef EL_GLOBALARRAYS_HPP
#define EL_GLOBALARRAYS_HPP
namespace El {
#if MPI_VERSION>=3 && defined(EL_ENABLE_RMA_AXPY) && defined(EL_ENABLE_RMA_GLOBAL_ARRAYS)
template<typename T>
class GlobalArrays
{
public:
GlobalArrays();
~GlobalArrays();
typedef Int ga_nbhdl_t;
// Subset of GA C API
v... | 32.164474 | 100 | 0.599305 | [
"object",
"vector"
] |
939c98220c25c660420cc4c21b49a64e229693a3 | 9,674 | cpp | C++ | src/gfx/DebugRenderer.cpp | Robograde/Robograde | 2c9a7d0b8250ec240102d504127f5c54532cb2b0 | [
"Zlib"
] | 5 | 2015-10-11T10:22:39.000Z | 2019-07-24T10:09:13.000Z | src/gfx/DebugRenderer.cpp | Robograde/Robograde | 2c9a7d0b8250ec240102d504127f5c54532cb2b0 | [
"Zlib"
] | null | null | null | src/gfx/DebugRenderer.cpp | Robograde/Robograde | 2c9a7d0b8250ec240102d504127f5c54532cb2b0 | [
"Zlib"
] | null | null | null | /**************************************************
Zlib Copyright 2015 Henrik Johansson
***************************************************/
#include "DebugRenderer.h"
#include <glm/gtx/transform.hpp>
#include <profiler/AutoGPUProfiler.h>
#define PI 3.1415926535897932384626433832
#define TAU 2 * PI
gfx::DebugRendere... | 33.825175 | 123 | 0.69878 | [
"transform"
] |
4d384905af57ac2a7485b3b9ca4551f891be64b4 | 1,219 | cc | C++ | src/main.cc | evox78/node-detect-arm64-translation | 1d18088ffc3771e1545fb5b70b4a4ead46f0eb62 | [
"MIT"
] | 5 | 2021-06-13T08:19:30.000Z | 2021-12-13T11:39:28.000Z | src/main.cc | evox78/node-detect-arm64-translation | 1d18088ffc3771e1545fb5b70b4a4ead46f0eb62 | [
"MIT"
] | 2 | 2021-06-20T01:15:01.000Z | 2022-03-09T19:52:32.000Z | src/main.cc | evox78/node-detect-arm64-translation | 1d18088ffc3771e1545fb5b70b4a4ead46f0eb62 | [
"MIT"
] | 4 | 2021-05-31T22:18:33.000Z | 2021-11-23T22:41:29.000Z | #include "napi.h"
#include "uv.h"
#include <assert.h>
#include <windows.h>
#include <cstdio>
#include <memory>
typedef BOOL(WINAPI *LPFN_ISWOW64PROCESS2)(HANDLE, PUSHORT, PUSHORT);
using namespace Napi;
namespace
{
Napi::Value IsRunningUnderARM64Translation(const Napi::CallbackInfo &info)
{
Napi::Env &env ... | 23.901961 | 132 | 0.699754 | [
"object"
] |
4d39509ae44845b568dfe96e2b551b01ead66177 | 4,571 | cpp | C++ | GA_exp_des/fast_reduced_matrix.cpp | TUshijima-UCLA/WRR-Experimental-Design-Comparative-Analysis | 0fef89a7a2875606c8e5557e761e849ecd488a06 | [
"MIT"
] | null | null | null | GA_exp_des/fast_reduced_matrix.cpp | TUshijima-UCLA/WRR-Experimental-Design-Comparative-Analysis | 0fef89a7a2875606c8e5557e761e849ecd488a06 | [
"MIT"
] | null | null | null | GA_exp_des/fast_reduced_matrix.cpp | TUshijima-UCLA/WRR-Experimental-Design-Comparative-Analysis | 0fef89a7a2875606c8e5557e761e849ecd488a06 | [
"MIT"
] | null | null | null |
#include "matrix.h"
#include <iostream>
#include <fstream>
#include <vector>
#include <math.h>
#include <cstdlib>
#include <cmath>
#include <random>
#include <ctime>
#include <chrono>
void read_fort(int &ntri, int &irad, int &nterm, std::vector<int> &triang2,
std::vector<int> &trija2, std::vector<double... | 28.748428 | 112 | 0.619339 | [
"vector"
] |
4d39605418ad3163d01b344cbacf48ddd812b3b6 | 787 | hpp | C++ | include/Collision/ListCollider.hpp | FoxelCode/Barkanoid | 3e582cbfb4bf13aa522d344489c8b0bac77fa8c5 | [
"Unlicense"
] | null | null | null | include/Collision/ListCollider.hpp | FoxelCode/Barkanoid | 3e582cbfb4bf13aa522d344489c8b0bac77fa8c5 | [
"Unlicense"
] | null | null | null | include/Collision/ListCollider.hpp | FoxelCode/Barkanoid | 3e582cbfb4bf13aa522d344489c8b0bac77fa8c5 | [
"Unlicense"
] | null | null | null | #pragma once
#include <vector>
#include "Collider.hpp"
#include "AABBCollider.hpp"
#include "Engine/GameObject.hpp"
class ListCollider : public Collider
{
public:
ListCollider(GameObject* gameObject)
: Collider(gameObject) {};
void Draw(sf::RenderTarget& target, sf::RenderStates states) const;
void AddCollider... | 24.59375 | 100 | 0.734435 | [
"vector"
] |
4d3ba447993f635d21b9c596b932f8156f80331f | 1,051 | cpp | C++ | src/Plugins/cURLPlugin/PyCURLReceiver.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Plugins/cURLPlugin/PyCURLReceiver.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Plugins/cURLPlugin/PyCURLReceiver.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "PyCURLReceiver.h"
namespace Mengine
{
//////////////////////////////////////////////////////////////////////////
PyCURLReceiver::PyCURLReceiver()
{
}
//////////////////////////////////////////////////////////////////////////
PyCURLReceiver::~PyCURLReceiver()
{
}
//////////... | 36.241379 | 198 | 0.410086 | [
"object"
] |
4d3e6aeeee9eb22917034f000b9acf3b132b3374 | 9,506 | cpp | C++ | ASSETS/KROSS/src_weird/Kross/Renderer/Renderer2D.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | ASSETS/KROSS/src_weird/Kross/Renderer/Renderer2D.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | ASSETS/KROSS/src_weird/Kross/Renderer/Renderer2D.cpp | WillianKoessler/KROSS-ENGINE | 0e680b455ffd071565fe8b99343805ad16ca1e91 | [
"Apache-2.0"
] | null | null | null | #include <Kross_pch.h>
#include "Renderer2D.h"
#include "Kross/Core/Application.h"
#include "Kross/Core/Stack.h"
#include "Renderer.h"
#include "RenderTypes.h"
#include "VertexArray.h"
#include "Textures/Array.h"
static constexpr size_t MaxQuadCount = 2048;
static constexpr size_t MaxVertexCount = MaxQuadCount * 4;... | 28.806061 | 190 | 0.629918 | [
"transform"
] |
4d3f373f22a0e4d2b9cde83285b2946fb5fe60cd | 2,103 | cpp | C++ | xyz/codes/old_template/geometry_nwerc07flight.cpp | deadpool2794/Cp | 26eab96ef8ea336615fa8d6fadaa8e4d7d6f3a3c | [
"MIT"
] | 152 | 2019-04-09T18:26:41.000Z | 2022-03-20T23:19:41.000Z | xyz/codes/old_template/geometry_nwerc07flight.cpp | deadpool2794/Cp | 26eab96ef8ea336615fa8d6fadaa8e4d7d6f3a3c | [
"MIT"
] | 1 | 2020-12-29T03:02:22.000Z | 2020-12-29T03:02:22.000Z | xyz/codes/old_template/geometry_nwerc07flight.cpp | deadpool2794/Cp | 26eab96ef8ea336615fa8d6fadaa8e4d7d6f3a3c | [
"MIT"
] | 36 | 2019-11-28T09:27:01.000Z | 2022-03-10T18:22:13.000Z | ///////////////////////////
//
// Geometry
// NWERC 07 flight
//
///////////////////////////
double getp (P a) { // a = le + (ri - le) * t return t
return (a-le).dot(ri-le)/(ri-le).abs2();
}
bool ccw (vector<P> a) { // test polygon ccw
int n = (int) a.size();
double S = 0;
for (int i = 1; i < n-1; i ++)
... | 29.208333 | 110 | 0.46077 | [
"geometry",
"vector"
] |
4d42e306856ad9257038b3fb8fe414180b98426c | 338 | cpp | C++ | Algorithms/1426.Counting_Elements.cpp | metehkaya/LeetCode | 52f4a1497758c6f996d515ced151e8783ae4d4d2 | [
"MIT"
] | 2 | 2020-07-20T06:40:22.000Z | 2021-11-20T01:23:26.000Z | Problems/LeetCode/Problems/1426.Counting_Elements.cpp | metehkaya/Algo-Archive | 03b5fdcf06f84a03125c57762c36a4e03ca6e756 | [
"MIT"
] | null | null | null | Problems/LeetCode/Problems/1426.Counting_Elements.cpp | metehkaya/Algo-Archive | 03b5fdcf06f84a03125c57762c36a4e03ca6e756 | [
"MIT"
] | null | null | null | class Solution {
public:
int countElements(vector<int>& ar) {
int n = ar.size();
unordered_set<int> nums;
for( int i = 0 ; i < n ; i++ )
nums.insert(ar[i]);
int ans = 0;
for( int i = 0 ; i < n ; i++ )
ans += nums.find(ar[i]+1) != nums.end();
re... | 26 | 52 | 0.440828 | [
"vector"
] |
4d4439127622dff599dc1a19f27a35081bf8c5d9 | 4,381 | cpp | C++ | iss_test_project/src/iss_test_project.cpp | Laiter/transmitter-test | 59b388c3275e211481cd3451aeeb076d5e84b192 | [
"MIT"
] | null | null | null | iss_test_project/src/iss_test_project.cpp | Laiter/transmitter-test | 59b388c3275e211481cd3451aeeb076d5e84b192 | [
"MIT"
] | null | null | null | iss_test_project/src/iss_test_project.cpp | Laiter/transmitter-test | 59b388c3275e211481cd3451aeeb076d5e84b192 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <chrono>
#include <memory>
#include <cassert>
#include <transmitter.h>
#include <consumer.h>
using iss_test::Transmitter;
using iss_test::Consumer;
using iss_test::Storage;
void check(std::shared_ptr<Storage> storage, Storage storage_expected)
{
a... | 37.444444 | 107 | 0.671308 | [
"vector"
] |
4d4c5a0f77e40b8a66ffbbfd587a8a4a06a170f4 | 9,263 | cpp | C++ | applications/structural_application/constitutive_laws/isotropic_2d.cpp | AndreaVoltan/MyKratos7.0 | e977752722e8ef1b606f25618c4bf8fd04c434cc | [
"BSD-4-Clause"
] | 2 | 2020-04-30T19:13:08.000Z | 2021-04-14T19:40:47.000Z | applications/structural_application/constitutive_laws/isotropic_2d.cpp | AndreaVoltan/MyKratos7.0 | e977752722e8ef1b606f25618c4bf8fd04c434cc | [
"BSD-4-Clause"
] | 1 | 2020-04-30T19:19:09.000Z | 2020-05-02T14:22:36.000Z | applications/structural_application/constitutive_laws/isotropic_2d.cpp | AndreaVoltan/MyKratos7.0 | e977752722e8ef1b606f25618c4bf8fd04c434cc | [
"BSD-4-Clause"
] | 1 | 2020-06-12T08:51:24.000Z | 2020-06-12T08:51:24.000Z | /*
==============================================================================
KratosStructuralApplication
A library based on:
Kratos
A General Purpose Software for Multi-Physics Finite Element Analysis
Version 1.0 (Released on march 05, 2007).
Copyright 2007
Pooyan Dadvand, Riccardo Rossi, Janosch Stascheit, Felix... | 28.240854 | 113 | 0.623016 | [
"vector"
] |
4d4e28fd8ce602178c1a6cda464f886b423350cf | 15,341 | cpp | C++ | pxr/imaging/lib/glf/baseTexture.cpp | YuqiaoZhang/USD | bf3a21e6e049486441440ebf8c0387db2538d096 | [
"BSD-2-Clause"
] | 5 | 2017-11-06T10:21:18.000Z | 2020-04-02T13:20:55.000Z | pxr/imaging/lib/glf/baseTexture.cpp | YuqiaoZhang/USD | bf3a21e6e049486441440ebf8c0387db2538d096 | [
"BSD-2-Clause"
] | 1 | 2020-07-07T22:39:42.000Z | 2020-07-07T22:39:42.000Z | pxr/imaging/lib/glf/baseTexture.cpp | YuqiaoZhang/USD | bf3a21e6e049486441440ebf8c0387db2538d096 | [
"BSD-2-Clause"
] | 1 | 2020-07-05T10:18:29.000Z | 2020-07-05T10:18:29.000Z | //
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | 30.139489 | 85 | 0.551137 | [
"3d"
] |
4d4ead31e774b66598f9b144f027b403ce97d179 | 5,409 | cpp | C++ | polynomials/polyreal.11.cpp | ivan100sic/competelib-snippets | e40170a63b37d92c91e2dfef08b2794e67ccb0b2 | [
"Unlicense"
] | 3 | 2022-01-17T01:56:05.000Z | 2022-02-23T07:30:02.000Z | polynomials/polyreal.11.cpp | ivan100sic/competelib-snippets | e40170a63b37d92c91e2dfef08b2794e67ccb0b2 | [
"Unlicense"
] | null | null | null | polynomials/polyreal.11.cpp | ivan100sic/competelib-snippets | e40170a63b37d92c91e2dfef08b2794e67ccb0b2 | [
"Unlicense"
] | null | null | null | // Real valued polynomials
#include <vector>
#include <complex>
using namespace std;
using ll = long long;
/*snippet-begin*/
template<class T>
struct poly_real {
typedef complex<T> C;
static int bitrev(int x, int n) {
int y = 0;
while (n--)
y = (y << 1) | (x & 1), x >>= 1;
... | 26.130435 | 77 | 0.416158 | [
"vector"
] |
4d51055d834fd60d97b87ecc81a330caabc71375 | 5,268 | cpp | C++ | src/experiment/core.cpp | J-Y2020/CARMI | 17c18dc5d615fdcf2d9e3086f9cc476a721a4d9b | [
"MIT"
] | null | null | null | src/experiment/core.cpp | J-Y2020/CARMI | 17c18dc5d615fdcf2d9e3086f9cc476a721a4d9b | [
"MIT"
] | null | null | null | src/experiment/core.cpp | J-Y2020/CARMI | 17c18dc5d615fdcf2d9e3086f9cc476a721a4d9b | [
"MIT"
] | null | null | null | /**
* @file core.cpp
* @author Jiaoyi
* @brief
* @version 0.1
* @date 2021-03-16
*
* @copyright Copyright (c) 2021
*
*/
#include <vector>
#include "../include/carmi_common.h"
#include "../include/carmi_external.h"
#include "../include/construct/construction.h"
#include "../include/func/calculate_space.h"
#inc... | 33.55414 | 79 | 0.618831 | [
"vector"
] |
4d529080f3a25663becf8727cfdd97af689c7d21 | 8,339 | cpp | C++ | src/hardwarecomm/interrupts.cpp | xexceed/rexOS | fee936b1620b421ab6e5106d369ba6c3f1aff4c3 | [
"MIT"
] | 1 | 2020-11-25T19:00:17.000Z | 2020-11-25T19:00:17.000Z | src/hardwarecomm/interrupts.cpp | xexceed/rexOS | fee936b1620b421ab6e5106d369ba6c3f1aff4c3 | [
"MIT"
] | null | null | null | src/hardwarecomm/interrupts.cpp | xexceed/rexOS | fee936b1620b421ab6e5106d369ba6c3f1aff4c3 | [
"MIT"
] | 1 | 2020-12-02T12:25:59.000Z | 2020-12-02T12:25:59.000Z | #include <hardwarecomm/interrupts.h>
using namespace rexos;
using namespace rexos::common;
using namespace rexos::hardwarecomm;
void printf(char* str);
void printfHex(uint8_t);
// (I.27.) Following is a constructor for InterruptHandler
// eg. for kb the number is 0x21
InterruptHandler::InterruptHandler(uint8_t interr... | 39.899522 | 143 | 0.7652 | [
"object"
] |
4d541a0365117e9d532f625bded161896697a0d3 | 51,157 | cpp | C++ | 04_Sample/AngryNinjas/Source/TheLevel.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | 2 | 2017-08-03T07:15:00.000Z | 2018-06-18T10:32:53.000Z | 04_Sample/AngryNinjas/Source/TheLevel.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | null | null | null | 04_Sample/AngryNinjas/Source/TheLevel.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | 2 | 2019-03-04T22:57:42.000Z | 2020-03-06T01:32:26.000Z | /* --------------------------------------------------------------------------
*
* File TheLevel.cpp
*
* Ported By Young-Hwan Mun
* Contact xmsoft77@gmail.com
*
* --------------------------------------------------------------------------
*
* Copyright (c) 201... | 31.953154 | 248 | 0.682526 | [
"object",
"shape",
"vector"
] |
4d562ee705ad853ca59236361cacd908cea9a38b | 2,594 | cpp | C++ | demo6.cpp | iboB/cfc-demos | abb877f8053fd6d3b6e0f9e37dfb59d6fe67d4d5 | [
"MIT"
] | 4 | 2018-12-14T19:19:12.000Z | 2021-09-13T00:14:49.000Z | demo6.cpp | iboB/cfc-demos | abb877f8053fd6d3b6e0f9e37dfb59d6fe67d4d5 | [
"MIT"
] | null | null | null | demo6.cpp | iboB/cfc-demos | abb877f8053fd6d3b6e0f9e37dfb59d6fe67d4d5 | [
"MIT"
] | null | null | null | // Demo 6 - Intrinsics
//
// MIT License
//
// Copyright(c) 2018 Borislav Stanimirov
//
// 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... | 24.242991 | 80 | 0.65613 | [
"vector"
] |
4d585cec557b8de3d8e4fa726a3c23d7f94f01e5 | 7,914 | cxx | C++ | Source/cmInstallGetRuntimeDependenciesGenerator.cxx | eWert-Online/esy-cmake | c0de72da9a1bc4d9b4fbe3766bafcbaca442cc2c | [
"MIT"
] | null | null | null | Source/cmInstallGetRuntimeDependenciesGenerator.cxx | eWert-Online/esy-cmake | c0de72da9a1bc4d9b4fbe3766bafcbaca442cc2c | [
"MIT"
] | null | null | null | Source/cmInstallGetRuntimeDependenciesGenerator.cxx | eWert-Online/esy-cmake | c0de72da9a1bc4d9b4fbe3766bafcbaca442cc2c | [
"MIT"
] | null | null | null | /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmInstallGetRuntimeDependenciesGenerator.h"
#include <memory>
#include <ostream>
#include <set>
#include <string>
#include <utility>
#include <vector>
#include ... | 38.231884 | 79 | 0.64468 | [
"vector",
"transform"
] |
4d59638dbac94ba9cff9933415cf697b23b5a078 | 2,576 | cpp | C++ | Game/world/triggers/movetrigger.cpp | vic-ju/OpenGothic | 78ac626e39468983ae68f8e55501ad57f3c241ab | [
"MIT"
] | 1 | 2020-07-03T22:51:15.000Z | 2020-07-03T22:51:15.000Z | Game/world/triggers/movetrigger.cpp | vic-ju/OpenGothic | 78ac626e39468983ae68f8e55501ad57f3c241ab | [
"MIT"
] | null | null | null | Game/world/triggers/movetrigger.cpp | vic-ju/OpenGothic | 78ac626e39468983ae68f8e55501ad57f3c241ab | [
"MIT"
] | null | null | null | #include "movetrigger.h"
#include "world/world.h"
#include "graphics/animmath.h"
MoveTrigger::MoveTrigger(ZenLoad::zCVobData&& d,World& w)
:AbstractTrigger(std::move(d),w) {
float v[16]={};
std::memcpy(v,data.worldMatrix.m,sizeof(v));
setView(owner.getView(data.visual.c_str()));
if(data.cdDyn || data.cdSta... | 25.76 | 76 | 0.651009 | [
"mesh"
] |
4d67189f5adb725bb88b57fb4324a60fcb68ebf1 | 1,779 | cpp | C++ | out/production/leetcode/io/github/zhengyhn/leetcode/merge_k_sorted_lists/merge-k-sorted-lists3.cpp | zhengyhn/leetcode | 2e5e618dd7c964c8e983b187c6b1762cbe1764de | [
"MIT"
] | null | null | null | out/production/leetcode/io/github/zhengyhn/leetcode/merge_k_sorted_lists/merge-k-sorted-lists3.cpp | zhengyhn/leetcode | 2e5e618dd7c964c8e983b187c6b1762cbe1764de | [
"MIT"
] | null | null | null | out/production/leetcode/io/github/zhengyhn/leetcode/merge_k_sorted_lists/merge-k-sorted-lists3.cpp | zhengyhn/leetcode | 2e5e618dd7c964c8e983b187c6b1762cbe1764de | [
"MIT"
] | null | null | null | #include <iostream>
#include <queue>
#include <vector>
using namespace std;
/**
* Definition for singly-linked list.
*/
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
class Solution {
public:
ListNode *mergeKLists(vector<ListNode *> &lists) {
if (lists.size() <= ... | 20.929412 | 60 | 0.546936 | [
"vector"
] |
4d6a43f353caa1cb27787327aa6a3be0f4e56f0f | 6,531 | cpp | C++ | FT_Auto/Sistema.cpp | matheuspercario/SI300-POO1 | d071a8cd399e3e9e667c1ce295cbfdcfe4eef796 | [
"MIT"
] | null | null | null | FT_Auto/Sistema.cpp | matheuspercario/SI300-POO1 | d071a8cd399e3e9e667c1ce295cbfdcfe4eef796 | [
"MIT"
] | null | null | null | FT_Auto/Sistema.cpp | matheuspercario/SI300-POO1 | d071a8cd399e3e9e667c1ce295cbfdcfe4eef796 | [
"MIT"
] | null | null | null | /* Unicamp - Universidade Estadual de Campinas
FT - Faculdade de Tecnologia
Limeira - SP
Prof. Dr. Andre F. de Angelis
Maio/2015
*/
#include <string>
#include <vector>
#include <iostream>
#include "Sistema.h"
#include "Concessionaria.h"
#include "ItemVenda.h"
#include "Automovel.h"
#include "Motor.h"
#inc... | 28.519651 | 103 | 0.574491 | [
"vector"
] |
4d74147f5c42c956d66f3e9e25807beeb1603eed | 828 | cpp | C++ | leetcode/304_med_range-sum-query-2d-immutable.cpp | saksham36/CompCode | 8871015a66e5c4b3f6a55d98e02f67da23e958d5 | [
"MIT"
] | null | null | null | leetcode/304_med_range-sum-query-2d-immutable.cpp | saksham36/CompCode | 8871015a66e5c4b3f6a55d98e02f67da23e958d5 | [
"MIT"
] | null | null | null | leetcode/304_med_range-sum-query-2d-immutable.cpp | saksham36/CompCode | 8871015a66e5c4b3f6a55d98e02f67da23e958d5 | [
"MIT"
] | null | null | null | class NumMatrix {
private:
vector<vector<int>> sum;
public:
NumMatrix(vector<vector<int>>& matrix) {
int row = matrix.size();
int col = matrix[0].size();
// create a prefix sum
sum = vector<vector<int>>(row+1, vector<int>(col+1, 0));
for(int i=1; i<row+1;i++){
... | 31.846154 | 101 | 0.52657 | [
"object",
"vector"
] |
4d7a04bd06bd00ec53d118f12761c37a9912d61b | 6,575 | cpp | C++ | Source/FishEngine/Animation/AnimationCurveUtility.cpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | 240 | 2017-02-17T10:08:19.000Z | 2022-03-25T14:45:29.000Z | Source/FishEngine/Animation/AnimationCurveUtility.cpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | 2 | 2016-10-12T07:08:38.000Z | 2017-04-05T01:56:30.000Z | Source/FishEngine/Animation/AnimationCurveUtility.cpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | 39 | 2017-03-02T09:40:07.000Z | 2021-12-04T07:28:53.000Z | #include <FishEngine/Animation/AnimationCurveUtility.hpp>
using namespace FishEngine;
void AnimationCurveUtility::WrapTime(float& time, float start, float end, bool loop)
{
float length = end - start;
if (Mathf::CompareApproximately(length, 0.0f))
{
time = 0.0f;
return;
}
// Clamp to start or loop
if (tim... | 37.787356 | 146 | 0.74038 | [
"vector"
] |
4d81a2aa1872da8952d7e28c9d847c730b81b3c9 | 5,505 | cpp | C++ | COACH/zahin vai/181719 - MIST Team Contest/C2.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | 6 | 2018-10-15T18:45:05.000Z | 2022-03-29T04:30:10.000Z | vjudge/181719 - MIST Team Contest/C2.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | null | null | null | vjudge/181719 - MIST Team Contest/C2.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | 4 | 2018-01-07T06:20:07.000Z | 2019-08-21T15:45:59.000Z | #pragma comment(linker, "/stack:640000000")
#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-9;
const int INF = 0x7f7f7f7f;
const double PI=acos(-1.0);
#define READ(f) freopen(f, "r", stdin)
#define WRITE(f) freopen(f, "w", stdout)
#define MP(x, y) make_pair(x, y)
#... | 30.583333 | 109 | 0.453588 | [
"vector"
] |
4d85ef1cf30edf759113babead60f0e62f5dbe71 | 1,015 | hh | C++ | User.hh | shuLhan/libvos | 831491b197fa8f267fd94966d406596896e6f25c | [
"BSD-3-Clause"
] | 1 | 2017-09-14T13:31:16.000Z | 2017-09-14T13:31:16.000Z | User.hh | shuLhan/libvos | 831491b197fa8f267fd94966d406596896e6f25c | [
"BSD-3-Clause"
] | null | null | null | User.hh | shuLhan/libvos | 831491b197fa8f267fd94966d406596896e6f25c | [
"BSD-3-Clause"
] | 5 | 2015-04-11T02:59:06.000Z | 2021-03-03T19:45:39.000Z | //
// Copyright 2009-2017 M. Shulhan (ms@kilabit.info). All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
#ifndef _LIBVOS_USER_HH
#define _LIBVOS_USER_HH 1
#include <pwd.h>
#include "Buffer.hh"
namespace vos {
/**
* Class User is used to ... | 18.454545 | 76 | 0.70936 | [
"object"
] |
4d880b6108d9853fd4154d804afd2589ae66774e | 643 | cpp | C++ | src/problems/101-150/134/problem134.cpp | abeccaro/project-euler | c3b124bb973dc3a1cf29e8c96c3e70c8816d5fa3 | [
"MIT"
] | 1 | 2019-12-25T10:17:15.000Z | 2019-12-25T10:17:15.000Z | src/problems/101-150/134/problem134.cpp | abeccaro/project-euler | c3b124bb973dc3a1cf29e8c96c3e70c8816d5fa3 | [
"MIT"
] | null | null | null | src/problems/101-150/134/problem134.cpp | abeccaro/project-euler | c3b124bb973dc3a1cf29e8c96c3e70c8816d5fa3 | [
"MIT"
] | null | null | null | //
// Created by Alex Beccaro on 28/11/2019.
//
#include <series/primes.hpp>
#include <generics.hpp>
#include "problem134.hpp"
using std::vector;
using generics::mod_pow;
namespace problems {
uint64_t problem134::solve(uint64_t ub) {
series::primes<uint64_t> ps;
uint64_t res = 0;
uin... | 17.861111 | 67 | 0.488336 | [
"vector"
] |
4d8dec1fc66c941986a8a4adc6f82382734c6218 | 3,877 | cpp | C++ | vector.cpp | pooyaww/lorenz | 4e004cda4fde50ab163202b4e262aa553b53f52d | [
"WTFPL"
] | 18 | 2018-07-25T15:22:16.000Z | 2022-03-25T02:35:00.000Z | vector.cpp | pooyaww/lorenz | 4e004cda4fde50ab163202b4e262aa553b53f52d | [
"WTFPL"
] | null | null | null | vector.cpp | pooyaww/lorenz | 4e004cda4fde50ab163202b4e262aa553b53f52d | [
"WTFPL"
] | 8 | 2019-03-09T22:41:46.000Z | 2021-11-28T03:52:00.000Z | #include <algorithm>
#include <cmath>
#include <cstdarg>
#include <cstdlib>
#include <iostream>
using namespace std;
#include "vector.hpp"
Vector::Vector(int dim) {
v = new double [this->dim = dim];
for (int i = 0; i < dim; i++) v[i] = 0;
}
Vector::Vector(double v0, double v1) {
v = new do... | 22.940828 | 63 | 0.495486 | [
"vector"
] |
4d917e3474f602d4a97bfbd6cbf0b5d1ea00369b | 12,790 | cpp | C++ | src/trunk/libs/seiscomp3/datamodel/datasegment.cpp | damb/seiscomp3 | 560a8f7ae43737ae7826fb1ffca76a9f601cf9dc | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 94 | 2015-02-04T13:57:34.000Z | 2021-11-01T15:10:06.000Z | src/trunk/libs/seiscomp3/datamodel/datasegment.cpp | damb/seiscomp3 | 560a8f7ae43737ae7826fb1ffca76a9f601cf9dc | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 233 | 2015-01-28T15:16:46.000Z | 2021-08-23T11:31:37.000Z | src/trunk/libs/seiscomp3/datamodel/datasegment.cpp | salichon/seiscomp3 | 4f7715f9ff9a35e7912c379ebf10446d0bceaeb2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 95 | 2015-02-13T15:53:30.000Z | 2021-11-02T14:54:54.000Z | /***************************************************************************
* Copyright (C) by GFZ Potsdam *
* *
* You can redistribute and/or modify this program under the *
* terms o... | 30.745192 | 163 | 0.394527 | [
"object"
] |
4d927d1ac11160b216b6c0855d62ef5f24f6d6d8 | 41,436 | cpp | C++ | src/projects/cosimulation/cosimulation_rig/RigNode.cpp | rserban/chrono | bee5e30b2ce3b4ac62324799d1366b6db295830e | [
"BSD-3-Clause"
] | 1 | 2020-03-05T13:00:41.000Z | 2020-03-05T13:00:41.000Z | src/projects/cosimulation/cosimulation_rig/RigNode.cpp | rserban/chrono | bee5e30b2ce3b4ac62324799d1366b6db295830e | [
"BSD-3-Clause"
] | null | null | null | src/projects/cosimulation/cosimulation_rig/RigNode.cpp | rserban/chrono | bee5e30b2ce3b4ac62324799d1366b6db295830e | [
"BSD-3-Clause"
] | 1 | 2022-03-27T15:12:24.000Z | 2022-03-27T15:12:24.000Z | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2015 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of th... | 40.985163 | 122 | 0.580968 | [
"mesh",
"vector",
"model"
] |
4d976224391085f022e5a30ece18e27ae1888524 | 9,490 | cpp | C++ | tests/greedy_for_test.cpp | facebookincubator/dispenso | 1b49ce403c268e55cb16c7e02ac3a41026284989 | [
"MIT"
] | 50 | 2022-01-13T06:40:00.000Z | 2022-03-10T04:01:51.000Z | tests/greedy_for_test.cpp | facebookincubator/dispenso | 1b49ce403c268e55cb16c7e02ac3a41026284989 | [
"MIT"
] | 1 | 2022-01-20T20:14:56.000Z | 2022-01-20T20:14:56.000Z | tests/greedy_for_test.cpp | facebookincubator/dispenso | 1b49ce403c268e55cb16c7e02ac3a41026284989 | [
"MIT"
] | 4 | 2022-01-19T22:19:26.000Z | 2022-01-21T12:36:15.000Z | /*
* 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 <list>
#include <vector>
#include <dispenso/parallel_for.h>
#include <gtest/gtest.h>
void simpleInner(int w, int y, c... | 26.21547 | 99 | 0.64236 | [
"vector"
] |
4d9e4c3331139cdf2eab8df9088b893881fa7a68 | 3,520 | cpp | C++ | src/trunk/libs/seiscomp3/io/gfarchive.cpp | yannikbehr/seiscomp3 | ebb44c77092555eef7786493d00ac4efc679055f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 94 | 2015-02-04T13:57:34.000Z | 2021-11-01T15:10:06.000Z | src/trunk/libs/seiscomp3/io/gfarchive.cpp | yannikbehr/seiscomp3 | ebb44c77092555eef7786493d00ac4efc679055f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 233 | 2015-01-28T15:16:46.000Z | 2021-08-23T11:31:37.000Z | src/trunk/libs/seiscomp3/io/gfarchive.cpp | yannikbehr/seiscomp3 | ebb44c77092555eef7786493d00ac4efc679055f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 95 | 2015-02-13T15:53:30.000Z | 2021-11-02T14:54:54.000Z | /***************************************************************************
* Copyright (C) by GFZ Potsdam *
* *
* You can redistribute and/or modify this program under the *
* terms o... | 27.716535 | 84 | 0.376705 | [
"model"
] |
4d9e4ffcfb5dcc05bd68b57a08635add0e564a47 | 3,253 | hpp | C++ | src/tests/functional/shared_test_classes/include/shared_test_classes/single_layer/softmax.hpp | si-eun-kim/openvino | 1db4446e2a6ead55d066e0b4e718fa37f509353a | [
"Apache-2.0"
] | 1,127 | 2018-10-15T14:36:58.000Z | 2020-04-20T09:29:44.000Z | src/tests/functional/shared_test_classes/include/shared_test_classes/single_layer/softmax.hpp | si-eun-kim/openvino | 1db4446e2a6ead55d066e0b4e718fa37f509353a | [
"Apache-2.0"
] | 439 | 2018-10-20T04:40:35.000Z | 2020-04-19T05:56:25.000Z | src/tests/functional/shared_test_classes/include/shared_test_classes/single_layer/softmax.hpp | tuxedcat/openvino | 5939cb1b363ebb56b73c2ad95d8899961a084677 | [
"Apache-2.0"
] | 414 | 2018-10-17T05:53:46.000Z | 2020-04-16T17:29:53.000Z | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "ngraph_functions/builders.hpp"
#include "common_test_utils/common_utils.hpp"
#include "shared_test_classes/base/ov_subgraph.hpp"
namespace ov {
namespace test {
namespace subgraph {
namespace aux {
templ... | 35.747253 | 115 | 0.609284 | [
"shape"
] |
4d9e8b504587ce95fa299e8be199e74b50731fca | 7,012 | cpp | C++ | Source/Utilities/Files/Filesystem.cpp | Imposter/CurlDump | a9e42c8833473630f240458228316251468e2005 | [
"MIT"
] | null | null | null | Source/Utilities/Files/Filesystem.cpp | Imposter/CurlDump | a9e42c8833473630f240458228316251468e2005 | [
"MIT"
] | 1 | 2016-10-18T05:22:22.000Z | 2016-10-18T16:46:42.000Z | Source/Utilities/Files/Filesystem.cpp | Imposter/CurlDump | a9e42c8833473630f240458228316251468e2005 | [
"MIT"
] | null | null | null | /*
Initial author: (https://github.com/)Convery for Ayria.se
License: MIT
Started: 2016-04-13
Notes:
A basic system for file operations.
MSVC makes use of C++17 TS.
*/
#include "Filesystem.h"
#include <algorithm>
#include <fstream>
#include <thread>
#include <mutex>
// M... | 29.095436 | 120 | 0.650884 | [
"vector"
] |
4da8fc17f3770adf6bb4bf86b468fb3855607fbe | 20,818 | cpp | C++ | PlatformRig/Screenshot.cpp | alexgithubber/XLE-Another-Fork | cdd8682367d9e9fdbdda9f79d72bb5b1499cec46 | [
"MIT"
] | null | null | null | PlatformRig/Screenshot.cpp | alexgithubber/XLE-Another-Fork | cdd8682367d9e9fdbdda9f79d72bb5b1499cec46 | [
"MIT"
] | null | null | null | PlatformRig/Screenshot.cpp | alexgithubber/XLE-Another-Fork | cdd8682367d9e9fdbdda9f79d72bb5b1499cec46 | [
"MIT"
] | null | null | null | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "Screenshot.h"
#include "../SceneEngine/LightingParserContext.h"
#include "../SceneEngine/LightingParser.h"
#include "../SceneEngine/... | 49.448931 | 177 | 0.588769 | [
"render",
"vector"
] |
4daccc97489c4e9da2f87c9f7ef768ead053d92f | 10,438 | cpp | C++ | src/tools/net/curl_cx.cpp | huahua369/nluna | c40528df6924ca532101745a6a2a5b6703316474 | [
"MIT"
] | 10 | 2019-06-11T06:07:02.000Z | 2021-12-25T07:49:02.000Z | src/tools/net/curl_cx.cpp | huahua369/nluna | c40528df6924ca532101745a6a2a5b6703316474 | [
"MIT"
] | null | null | null | src/tools/net/curl_cx.cpp | huahua369/nluna | c40528df6924ca532101745a6a2a5b6703316474 | [
"MIT"
] | null | null | null |
#include "curl_cx.h"
#ifdef __cplusplus
extern "C" {
#endif
#include <curl/curl.h>
#ifdef __cplusplus
}
#endif
#if 1
namespace hz
{
res_data::res_data()
{
}
res_data::res_data(const char* u) :url(u)
{
}
res_data::res_data(const std::string& u) : url(u)
{
}
res_data::res_data(const std::string& u, njson* nd... | 20.506876 | 101 | 0.588714 | [
"vector",
"transform"
] |
4db18e6dbf448fde1b2d7bfe73305469ed47224a | 2,131 | cpp | C++ | Sources/Internal/Debug/InterthreadBlockingCallMonitor.cpp | stinvi/dava.engine | 2b396ca49cdf10cdc98ad8a9ffcf7768a05e285e | [
"BSD-3-Clause"
] | 26 | 2018-09-03T08:48:22.000Z | 2022-02-14T05:14:50.000Z | Sources/Internal/Debug/InterthreadBlockingCallMonitor.cpp | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | null | null | null | Sources/Internal/Debug/InterthreadBlockingCallMonitor.cpp | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | 45 | 2018-05-11T06:47:17.000Z | 2022-02-03T11:30:55.000Z | #include "Debug/InterthreadBlockingCallMonitor.h"
#include "Concurrency/LockGuard.h"
namespace DAVA
{
namespace Debug
{
InterthreadBlockingCallMonitor::InterthreadBlockingCallMonitor() = default;
InterthreadBlockingCallMonitor::~InterthreadBlockingCallMonitor() = default;
bool InterthreadBlockingCallMonitor::BeginBl... | 24.494253 | 137 | 0.653684 | [
"vector"
] |
4db44bf3491a1252c4e00f3da386a66207597094 | 3,232 | cpp | C++ | drape/drape_tests/testingmain.cpp | vmihaylenko/omim | 00087f340e723fc611cbc82e0ae898b9053b620a | [
"Apache-2.0"
] | null | null | null | drape/drape_tests/testingmain.cpp | vmihaylenko/omim | 00087f340e723fc611cbc82e0ae898b9053b620a | [
"Apache-2.0"
] | 1 | 2019-05-14T15:26:55.000Z | 2019-05-16T11:00:33.000Z | drape/drape_tests/testingmain.cpp | vmihaylenko/omim | 00087f340e723fc611cbc82e0ae898b9053b620a | [
"Apache-2.0"
] | null | null | null | #include "testing/testregister.hpp"
#include "testing/testing.hpp"
#include "base/logging.hpp"
#include "base/scope_guard.hpp"
#include "std/target_os.hpp"
#include <algorithm>
#include <functional>
#include <iostream>
#include <string>
#include <vector>
#include "drape/drape_tests/gl_mock_functions.hpp"
#ifdef OM... | 25.448819 | 105 | 0.623453 | [
"vector"
] |
4db4bbc660552dd130acc5dcdb34f865d01fb6d1 | 1,779 | cpp | C++ | Online Judges/CodeForces/191CFoolsAndRoads.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 3 | 2018-12-18T13:39:42.000Z | 2021-06-23T18:05:18.000Z | Online Judges/CodeForces/191CFoolsAndRoads.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 1 | 2018-11-02T21:32:40.000Z | 2018-11-02T22:47:12.000Z | Online Judges/CodeForces/191CFoolsAndRoads.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 6 | 2018-10-27T14:07:52.000Z | 2019-11-14T13:49:29.000Z | #include <bits/stdc++.h>
using namespace std;
const int maxN = 1e5, maxLog = ceil(log2(1e5)); int n, logn;
vector<int> tree[maxN];
int level[maxN], ancestor[maxN][maxLog], pass[maxN], in[maxN], out[maxN], e[maxN][2];
map<int, int> edges[maxN];
void dfs(int u, int prev)
{
for (int v: tree[u])
if (v != prev)
{... | 23.103896 | 85 | 0.465992 | [
"vector"
] |
4db535f097939131cb40514f87a2dbd75e06f89c | 3,285 | hpp | C++ | pywraps/py_diskio.hpp | joeleong/idapython | d99a89369741ce272ba792d6f087d0739a2f8ac7 | [
"BSD-3-Clause"
] | 2 | 2019-07-08T11:58:27.000Z | 2019-07-08T13:23:57.000Z | pywraps/py_diskio.hpp | joeleong/idapython | d99a89369741ce272ba792d6f087d0739a2f8ac7 | [
"BSD-3-Clause"
] | null | null | null | pywraps/py_diskio.hpp | joeleong/idapython | d99a89369741ce272ba792d6f087d0739a2f8ac7 | [
"BSD-3-Clause"
] | null | null | null | #ifndef __PY_IDA_DISKIO__
#define __PY_IDA_DISKIO__
//<code(py_diskio)>
//--------------------------------------------------------------------------
int idaapi py_enumerate_files_cb(const char *file, void *ud)
{
// No need to 'PYW_GIL_GET' here, as this is called synchronously
// and from the same thread as the on... | 29.594595 | 111 | 0.597869 | [
"object"
] |
4dc070b04c0dad840d5077574e9c982cd8ff4150 | 3,701 | hpp | C++ | PolyEngine/Engine/Src/Rendering/IRenderingDevice.hpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 65 | 2017-04-04T20:33:44.000Z | 2019-12-02T23:06:58.000Z | PolyEngine/Engine/Src/Rendering/IRenderingDevice.hpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 46 | 2017-04-21T12:26:38.000Z | 2019-12-15T05:31:47.000Z | PolyEngine/Engine/Src/Rendering/IRenderingDevice.hpp | PiotrMoscicki/PolyEngine | 573c453e9d1ae0a351ad14410595ff844e3b4620 | [
"MIT"
] | 51 | 2017-04-12T10:53:32.000Z | 2019-11-20T13:05:54.000Z | #pragma once
#include <Defines.hpp>
#include <Resources/Mesh.hpp>
namespace Poly
{
class Scene;
class ParticleEmitter;
struct ScreenSize
{
int Width = 0, Height = 0;
};
//------------------------------------------------------------------------------
enum class eTextureDataFormat
{
RED,
RGB,
RGBA,
... | 27.827068 | 136 | 0.609565 | [
"mesh"
] |
4dc5f86a8b394b529c9bffb0d9db7b51e1b2f54c | 5,066 | cpp | C++ | colored/raytracer.cpp | dracarys983/Raytracer | e30b0ec849cf2e8aef95fefad0eeca19ef284136 | [
"MIT"
] | null | null | null | colored/raytracer.cpp | dracarys983/Raytracer | e30b0ec849cf2e8aef95fefad0eeca19ef284136 | [
"MIT"
] | null | null | null | colored/raytracer.cpp | dracarys983/Raytracer | e30b0ec849cf2e8aef95fefad0eeca19ef284136 | [
"MIT"
] | null | null | null | #include<iostream>
#include<limits>
#include<string.h>
#include<stdio.h>
#include<time.h>
#include<stdlib.h>
#include<math.h>
#include<vector>
#define EPSILON 0.000001
#define MAX_DEPTH 1
#include "ray.h"
#include "shapes.h"
using namespace std;
int n=5;
vec orig = vec(0.0f,0.0f,5.0f);
vec bgcolor = vec(0.15,0.15,0.... | 32.474359 | 100 | 0.630083 | [
"shape",
"vector"
] |
4dc7434aef63b98d374bb8716e03e48e397fa450 | 802 | cpp | C++ | cf/1371-c.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | cf/1371-c.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | cf/1371-c.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | //#pragma comment(linker, "/STACK:1024000000,1024000000")
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
#include <queue>
#include <cmath>
#include<cstring>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define mem(x,y) memset(x, y, sizeof(x))
const int maxn=1e... | 20.05 | 57 | 0.522444 | [
"vector"
] |
4dcba5cf18100d5a216a66faeee1ff95ce28d35d | 1,216 | cpp | C++ | src/build/mtime/mtime_mac.cpp | Mathnerd314/stroscot | 4bb8421c8a44facf8ed43749691fa881eeb82c55 | [
"WTFPL"
] | 9 | 2020-03-28T06:08:56.000Z | 2022-01-18T09:07:49.000Z | src/build/mtime/mtime_mac.cpp | Mathnerd314/stroscot | 4bb8421c8a44facf8ed43749691fa881eeb82c55 | [
"WTFPL"
] | 5 | 2020-03-14T15:45:59.000Z | 2020-03-28T16:44:57.000Z | src/build/mtime/mtime_mac.cpp | Mathnerd314/stroscot | 4bb8421c8a44facf8ed43749691fa881eeb82c55 | [
"WTFPL"
] | 1 | 2019-11-24T03:00:55.000Z | 2019-11-24T03:00:55.000Z | #include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <jni.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <sys/resource.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <utime.h>
#include <string>
#include <... | 30.4 | 77 | 0.680099 | [
"vector"
] |
4dcc96ebf6eb86c148a241ed40b0621ad54c02da | 9,459 | cc | C++ | WebAssembly/main.cc | jvo203/FITSWEBQLSE | 3b2b3c74d623c3510cfa81a4e30ac5bd0af48cb0 | [
"MIT"
] | null | null | null | WebAssembly/main.cc | jvo203/FITSWEBQLSE | 3b2b3c74d623c3510cfa81a4e30ac5bd0af48cb0 | [
"MIT"
] | null | null | null | WebAssembly/main.cc | jvo203/FITSWEBQLSE | 3b2b3c74d623c3510cfa81a4e30ac5bd0af48cb0 | [
"MIT"
] | null | null | null | #include <emscripten.h>
#include <emscripten/bind.h>
#include <emscripten/val.h>
extern "C"
{
// HEVC video decoder
#include "hevc_decoder.h"
}
extern "C"
{
// ZFP decoder
#include "zfp.h"
}
extern "C"
{
// LZ4 decoder
#include "lz4.h"
}
static float *pixelBuffer = NULL;
static size_t pixelLength = 0;
static unsig... | 24.957784 | 142 | 0.677979 | [
"vector"
] |
4dd7d712deed36d588498f636ad72ae082abc9bd | 1,790 | hpp | C++ | include/caffe/layers/triplet_loss_layer.hpp | MSRCCS/Caffe | 2eb05997f077fe93832b89d56ea0cd1ea72e3275 | [
"BSD-2-Clause"
] | null | null | null | include/caffe/layers/triplet_loss_layer.hpp | MSRCCS/Caffe | 2eb05997f077fe93832b89d56ea0cd1ea72e3275 | [
"BSD-2-Clause"
] | null | null | null | include/caffe/layers/triplet_loss_layer.hpp | MSRCCS/Caffe | 2eb05997f077fe93832b89d56ea0cd1ea72e3275 | [
"BSD-2-Clause"
] | null | null | null | #ifndef CAFFE_TRIPLET_LOSS_LAYER_HPP_
#define CAFFE_TRIPLET_LOSS_LAYER_HPP_
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/layer.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/layers/loss_layer.hpp"
namespace caffe {
template <typename Dtype>
struct Triplet
{
int a, p, n; // for anchor,... | 31.403509 | 82 | 0.711173 | [
"vector"
] |
4ddc143565779ddeda501dccc40cb78e6525053d | 1,414 | cpp | C++ | soundEngine/src/trigger/ShapeTrigger.cpp | petitg1987/urchinEngine | a14a57ac49a19237d748d2eafc7c2a38a45b95d6 | [
"BSL-1.0"
] | 18 | 2020-06-12T00:04:46.000Z | 2022-01-11T14:56:19.000Z | soundEngine/src/trigger/ShapeTrigger.cpp | petitg1987/urchinEngine | a14a57ac49a19237d748d2eafc7c2a38a45b95d6 | [
"BSL-1.0"
] | null | null | null | soundEngine/src/trigger/ShapeTrigger.cpp | petitg1987/urchinEngine | a14a57ac49a19237d748d2eafc7c2a38a45b95d6 | [
"BSL-1.0"
] | 6 | 2020-08-16T15:58:41.000Z | 2022-03-05T13:17:50.000Z | #include <trigger/ShapeTrigger.h>
namespace urchin {
/**
* @param soundShape Delimited shape which trigger the sound play
*/
ShapeTrigger::ShapeTrigger(PlayBehavior playBehavior, std::unique_ptr<const SoundShape> soundShape) :
SoundTrigger(SoundTrigger::SHAPE_TRIGGER, playBehavior),
... | 35.35 | 122 | 0.64215 | [
"shape",
"vector"
] |
4ddec4fcf2ca1a4bd179c85d5d292534c666a65d | 825 | hh | C++ | include/founder_sequences/segmentation_container.hh | tsnorri/founder-sequences | 1a2e64d9488a6ce4be5c75448a9ed208e447a516 | [
"MIT"
] | 4 | 2018-06-14T06:48:12.000Z | 2020-05-19T20:54:14.000Z | include/founder_sequences/segmentation_container.hh | tsnorri/founder-sequences | 1a2e64d9488a6ce4be5c75448a9ed208e447a516 | [
"MIT"
] | 2 | 2019-07-04T04:25:10.000Z | 2019-08-02T16:08:47.000Z | include/founder_sequences/segmentation_container.hh | tsnorri/founder-sequences | 1a2e64d9488a6ce4be5c75448a9ed208e447a516 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2018 Tuukka Norri
* This code is licensed under MIT license (see LICENSE for details).
*/
#ifndef FOUNDER_SEQUENCES_SEGMENTATION_CONTAINER_HH
#define FOUNDER_SEQUENCES_SEGMENTATION_CONTAINER_HH
#include <founder_sequences/founder_sequences.hh>
#include <vector>
namespace founder_sequences {
... | 22.916667 | 112 | 0.789091 | [
"vector"
] |
4ddef82c86b516bd826b838d8a2049e23ac55cc2 | 1,255 | cpp | C++ | tutorials/cpp/beginner/07_vectors/main.cpp | issa16/Research-Computing-Community | 4780261222cd396c29251d66bc387f1e2c1f0326 | [
"MIT"
] | 5 | 2019-12-16T11:01:43.000Z | 2022-02-18T13:05:45.000Z | tutorials/cpp/beginner/07_vectors/main.cpp | issa16/Research-Computing-Community | 4780261222cd396c29251d66bc387f1e2c1f0326 | [
"MIT"
] | null | null | null | tutorials/cpp/beginner/07_vectors/main.cpp | issa16/Research-Computing-Community | 4780261222cd396c29251d66bc387f1e2c1f0326 | [
"MIT"
] | 2 | 2021-01-25T20:15:53.000Z | 2021-02-17T14:34:28.000Z | #include <iostream>
#include <vector>
void print_vector(const std::vector<int>& v) {
for (const auto& i : v) {
std::cout << i << " ";
}
std::cout << "\n";
}
int main(int argc, char* argv[]) try {
// Create a vector of integers
std::vector<int> a = {2, 3, 4, 5, 6, 7, 8};
print_vector(a);
// Print th... | 20.916667 | 47 | 0.583267 | [
"vector"
] |
4ddf0abb464352108aae92bec0f4a8d3514dd68b | 2,173 | cpp | C++ | Level_3_HW/Section 2.3/Exercise 3/Exercise 3/main.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | Level_3_HW/Section 2.3/Exercise 3/Exercise 3/main.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | Level_3_HW/Section 2.3/Exercise 3/Exercise 3/main.cpp | ZhehaoLi9705/QuantNet_CPP | a889f4656e757842f4163b0cda7e098cc6ad1193 | [
"MIT"
] | null | null | null | //
// main.cpp
// Exercise 3
//
// Created by Zhehao Li on 2020/2/28.
// Copyright © 2020 Zhehao Li. All rights reserved.
//
// Test Point class -- Function overloading
#include "Point.hpp"
#include <iostream>
#include <string>
using namespace std;
int main(int argc, const char * argv[]) {
// Create two... | 37.465517 | 123 | 0.497929 | [
"object"
] |
4e2cb488c0c8be774a71079905aafe259757353e | 5,421 | cpp | C++ | test/test_data_association.cpp | thingthing/smart-agent | f4c41432b1bab3283b00237b0208676acb0a00b1 | [
"MIT"
] | null | null | null | test/test_data_association.cpp | thingthing/smart-agent | f4c41432b1bab3283b00237b0208676acb0a00b1 | [
"MIT"
] | null | null | null | test/test_data_association.cpp | thingthing/smart-agent | f4c41432b1bab3283b00237b0208676acb0a00b1 | [
"MIT"
] | null | null | null | #include "igloo/igloo_alt.h"
#include "Landmarks.hh"
#include "DataAssociation.hh"
#include "CustomConstraint.hh"
#include "test_slam_common.hh"
using namespace igloo;
When(creating_data_association)
{
void SetUp()
{
landmarks = new Landmarks();
datas = new DataAssociation(landmarks);
}
Then(... | 25.213953 | 139 | 0.662608 | [
"vector"
] |
4e2dc6b0119ad13c2f225a9f0dba77edaabca1f6 | 3,832 | cpp | C++ | modules/common/src/motion_blur_detection.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 2 | 2021-02-22T11:36:33.000Z | 2021-07-20T11:31:08.000Z | modules/common/src/motion_blur_detection.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | null | null | null | modules/common/src/motion_blur_detection.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 3 | 2018-10-19T10:39:23.000Z | 2021-04-07T13:39:03.000Z | /****************************************************************************
**
** Copyright (C) 2018 TU Wien, ACIN, Vision 4 Robotics (V4R) group
** Contact: v4r.acin.tuwien.ac.at
**
** This file is part of V4R
**
** V4R is distributed under dual licenses - GPLv3 or closed source.
**
** GNU General Public License Usa... | 31.933333 | 92 | 0.677975 | [
"vector"
] |
4e2f1f85ead8a48454acf9f59cc3ecbaa20219b0 | 3,234 | cpp | C++ | aws-cpp-sdk-mturk-requester/source/model/NotificationSpecification.cpp | capeanalytics/aws-sdk-cpp | e88f75add5a9433601b6d46fe738e493da56ac3b | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-mturk-requester/source/model/NotificationSpecification.cpp | capeanalytics/aws-sdk-cpp | e88f75add5a9433601b6d46fe738e493da56ac3b | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-mturk-requester/source/model/NotificationSpecification.cpp | capeanalytics/aws-sdk-cpp | e88f75add5a9433601b6d46fe738e493da56ac3b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 26.292683 | 119 | 0.753865 | [
"model"
] |
4e2fee680a73417ca4af095cc8f588a7bca1c09c | 3,870 | cpp | C++ | LeetCodeCPP/993. Cousins in Binary Tree/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | 1 | 2019-03-29T03:33:56.000Z | 2019-03-29T03:33:56.000Z | LeetCodeCPP/993. Cousins in Binary Tree/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | null | null | null | LeetCodeCPP/993. Cousins in Binary Tree/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// 993. Cousins in Binary Tree
//
// Created by admin on 2019/2/20.
// Copyright © 2019年 liu. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
#include <queue>
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL),... | 23.313253 | 84 | 0.426873 | [
"vector"
] |
4e321c8de223811eea72375e7b4d97482247acee | 588 | cpp | C++ | Chess/Model/src/PieceRook.cpp | donDonald/cpp_tests | e7ee52e9ad4b5401a903a2ca546c56f6ad3d7be0 | [
"MIT"
] | null | null | null | Chess/Model/src/PieceRook.cpp | donDonald/cpp_tests | e7ee52e9ad4b5401a903a2ca546c56f6ad3d7be0 | [
"MIT"
] | null | null | null | Chess/Model/src/PieceRook.cpp | donDonald/cpp_tests | e7ee52e9ad4b5401a903a2ca546c56f6ad3d7be0 | [
"MIT"
] | null | null | null | #include "include/PieceRook.h"
using namespace chess::api;
namespace chess { namespace impl {
PieceRook::PieceRook( const Color::Type& color )
: PieceBase( color, Piece::TypeRook )
{
}
void PieceRook::possibleMoves( const Position& position,
std::vector<Position>& result ) const
{... | 22.615385 | 73 | 0.607143 | [
"vector"
] |
4e33d216218e1ac1955198d7a6b1d375470bb76c | 13,723 | cpp | C++ | inference/engine/tools/preprocess_ocl/preprocess_ocl.cpp | steelONIONknight/bolt | 9bd3d08f2abb14435ca3ad0179889e48fa7e9b47 | [
"MIT"
] | null | null | null | inference/engine/tools/preprocess_ocl/preprocess_ocl.cpp | steelONIONknight/bolt | 9bd3d08f2abb14435ca3ad0179889e48fa7e9b47 | [
"MIT"
] | null | null | null | inference/engine/tools/preprocess_ocl/preprocess_ocl.cpp | steelONIONknight/bolt | 9bd3d08f2abb14435ca3ad0179889e48fa7e9b47 | [
"MIT"
] | null | null | null | // Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved.
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation the rights to use,... | 39.208571 | 149 | 0.599723 | [
"vector",
"model",
"transform"
] |
4e33f4e5e347d6dbe2d50a25e3b449e52c74d8e3 | 18,919 | cpp | C++ | admin/activec/samples/benefits/bennodes.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/activec/samples/benefits/bennodes.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/activec/samples/benefits/bennodes.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1999 - 1999
//
// File: bennodes.cpp
//
//--------------------------------------------------------------------------
// BenefitsNodes.cpp
//
/////////////... | 26.534362 | 208 | 0.671336 | [
"object"
] |
4e36a48f35e73393ea6315dfa8b1f60014308401 | 7,096 | cpp | C++ | libs/dkg/src/dkg_complaints_manager.cpp | ejfitzgerald/ledger | 01d1802220329aa348daaf4abfd502c6cc0d9f44 | [
"Apache-2.0"
] | null | null | null | libs/dkg/src/dkg_complaints_manager.cpp | ejfitzgerald/ledger | 01d1802220329aa348daaf4abfd502c6cc0d9f44 | [
"Apache-2.0"
] | null | null | null | libs/dkg/src/dkg_complaints_manager.cpp | ejfitzgerald/ledger | 01d1802220329aa348daaf4abfd502c6cc0d9f44 | [
"Apache-2.0"
] | 2 | 2019-11-13T10:55:24.000Z | 2019-11-13T11:37:09.000Z | //------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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
//
// ... | 29.566667 | 99 | 0.680101 | [
"vector"
] |
4e39a7cf37529724e9df9cf006554d17c949767d | 3,979 | cpp | C++ | example/example1.cpp | fzqneo/byteslice | 48a6e54da66795ffec8d649cd5be3fec01436f9f | [
"Apache-2.0"
] | 25 | 2016-10-04T14:47:48.000Z | 2022-03-10T04:25:22.000Z | example/example1.cpp | fzqneo/byteslice | 48a6e54da66795ffec8d649cd5be3fec01436f9f | [
"Apache-2.0"
] | null | null | null | example/example1.cpp | fzqneo/byteslice | 48a6e54da66795ffec8d649cd5be3fec01436f9f | [
"Apache-2.0"
] | 3 | 2017-12-15T13:44:01.000Z | 2021-12-30T05:57:47.000Z | #include <iostream>
#include <unistd.h>
#include <string>
#include <cstdlib>
#include <ctime>
#include <omp.h>
#include <map>
#include <random>
#include <functional>
#include "src/bitvector.h"
#include "src/column.h"
#include "src/types.h"
#include "hybrid_timer.h"
using namespace byteslic... | 31.085938 | 84 | 0.484293 | [
"vector"
] |
4e45f1a7c5b84a02bf61ba06d71f06fd441e5e3c | 31,618 | cpp | C++ | apps/openmw/mwgui/class.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwgui/class.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/openmw/mwgui/class.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | #include "class.hpp"
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "../mwbase/windowmanager.hpp"
#include "tooltips.hpp"
#undef min
#undef max
namespace MWGui
{
/* GenerateClassResultDialog */
GenerateClassResultDialog::GenerateClassResultDialog()
: WindowModal("openmw... | 35.565804 | 159 | 0.628313 | [
"vector"
] |
4e48b599e2bf07d2597937ad8b4f78a0761cf2ef | 26,466 | cpp | C++ | src/libraries/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementMerge.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementMerge.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementMerge.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright (C) 2011 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
under... | 27.976744 | 80 | 0.499055 | [
"mesh"
] |
4e4d42d1e7cd777a7abf27c8283524e67d7cdefa | 14,484 | hpp | C++ | arbor/util/piecewise.hpp | sanjayankur31/arbor | d6b1a36e9a1d9b63d2bb285575201346df47df2a | [
"BSD-3-Clause"
] | null | null | null | arbor/util/piecewise.hpp | sanjayankur31/arbor | d6b1a36e9a1d9b63d2bb285575201346df47df2a | [
"BSD-3-Clause"
] | 2 | 2020-03-26T16:29:39.000Z | 2020-03-27T13:41:49.000Z | arbor/util/piecewise.hpp | sanjayankur31/arbor | d6b1a36e9a1d9b63d2bb285575201346df47df2a | [
"BSD-3-Clause"
] | null | null | null | #pragma once
// Create/manipulate 1-d piece-wise defined objects.
//
// Using vectors everywhere here for ease; consider making
// something more container/sequence-generic later.
#include <initializer_list>
#include <iterator>
#include <type_traits>
#include <vector>
#include "util/meta.hpp"
#include "util/partitio... | 29.260606 | 102 | 0.607084 | [
"vector"
] |
4e4eb6e8e5c41460d7af19ba5653bda7031c2895 | 3,384 | cpp | C++ | net.ssa/Editors/LevelEditor/Edit/ESceneAIMapTools_Pick.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | net.ssa/Editors/!old/LevelEditor/Edit/ESceneAIMapTools_Pick.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | null | null | null | net.ssa/Editors/!old/LevelEditor/Edit/ESceneAIMapTools_Pick.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | #include "stdafx.h"
#pragma hdrstop
#include "ESceneAIMapTools.h"
#include "scene.h"
#include "ui_main.h"
#include "ui_leveltools.h"
#include "ESceneAIMapControls.h"
#include "ui_levelmain.h"
SAINode* ESceneAIMapTools::PickNode(const Fvector& start, const Fvector& dir, float& ... | 34.530612 | 127 | 0.518617 | [
"object"
] |
4e50095de289d0510807f1e3427f96dbc60f8ed7 | 10,191 | cxx | C++ | tscTriSurfaceCutter/Testing/TesttscTriSurfaceCutter.cxx | jspanchu/SurfaceCutter | fab9a0dfd0f677a7bf2076250ca24f82442aa0e3 | [
"MIT"
] | null | null | null | tscTriSurfaceCutter/Testing/TesttscTriSurfaceCutter.cxx | jspanchu/SurfaceCutter | fab9a0dfd0f677a7bf2076250ca24f82442aa0e3 | [
"MIT"
] | null | null | null | tscTriSurfaceCutter/Testing/TesttscTriSurfaceCutter.cxx | jspanchu/SurfaceCutter | fab9a0dfd0f677a7bf2076250ca24f82442aa0e3 | [
"MIT"
] | null | null | null | /**
MIT License
Copyright (c) 2021 Jaswant Sai Panchumarti
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... | 32.352381 | 97 | 0.682465 | [
"vector"
] |
4e58e882c7ba8a729ea2b6207d60004863ae1a55 | 8,173 | cc | C++ | backends/jitrt/lib/specialization.cc | Nexuscompute/runtime | 805afefc84acea69a552507ab6d167b956d21a62 | [
"Apache-2.0"
] | null | null | null | backends/jitrt/lib/specialization.cc | Nexuscompute/runtime | 805afefc84acea69a552507ab6d167b956d21a62 | [
"Apache-2.0"
] | 20 | 2021-12-29T09:53:18.000Z | 2022-01-21T03:24:40.000Z | backends/jitrt/lib/specialization.cc | Nexuscompute/runtime | 805afefc84acea69a552507ab6d167b956d21a62 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2022 The TensorFlow Runtime 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 applicab... | 38.551887 | 80 | 0.67723 | [
"shape"
] |
4e6cd25f93faca79641877568f6d9420de7fa1da | 1,714 | hpp | C++ | H3D/XML/XML.hpp | heinhel/H3D-Engine | 5e638683486f9b083aaaf1a433d5eed361adfa79 | [
"MIT"
] | null | null | null | H3D/XML/XML.hpp | heinhel/H3D-Engine | 5e638683486f9b083aaaf1a433d5eed361adfa79 | [
"MIT"
] | null | null | null | H3D/XML/XML.hpp | heinhel/H3D-Engine | 5e638683486f9b083aaaf1a433d5eed361adfa79 | [
"MIT"
] | null | null | null | #pragma once
#if defined DLL_EXPORT
#define H3D_API __declspec(dllexport)
#else
#define H3D_API __declspec(dllimport)
#endif
#include <string>
#include <vector>
#include <any>
/////////////////////////////////////////////////////////////////
namespace h3d {
namespace xml {
class Value {
public:
std::string con... | 20.404762 | 73 | 0.606184 | [
"vector"
] |
4e72a1402aec9a09196f28c8c5c9caaf12e8c674 | 5,249 | cpp | C++ | executables/trajectory_converter.cpp | wenyang94/ProSLAM | bd11c2308c8a2c8a92ade22046f1777e3e99993f | [
"BSD-3-Clause"
] | 43 | 2019-02-28T08:12:49.000Z | 2022-01-03T03:23:20.000Z | executables/trajectory_converter.cpp | wenyang94/ProSLAM | bd11c2308c8a2c8a92ade22046f1777e3e99993f | [
"BSD-3-Clause"
] | 1 | 2019-10-23T14:53:41.000Z | 2019-10-23T14:53:41.000Z | executables/trajectory_converter.cpp | wenyang94/ProSLAM | bd11c2308c8a2c8a92ade22046f1777e3e99993f | [
"BSD-3-Clause"
] | 17 | 2019-04-09T14:20:20.000Z | 2021-09-29T06:29:05.000Z | #include <iostream>
#include <fstream>
#include <vector>
#include <Eigen/Geometry>
int32_t main(int32_t argc_, char** argv_) {
if (argc_ < 3) {
std::cerr << "usage: ./trajectory_converter -g2o <pose_graph.g2o> | -tum <tum_trajectory>" << std::endl;
return 0;
}
//ds determine and log configuration
std:... | 37.76259 | 130 | 0.625643 | [
"geometry",
"object",
"vector",
"transform"
] |
4e72d11fa1339f308d0036019483801ba1230572 | 3,076 | cpp | C++ | Modules/DiffusionImaging/DiffusionCore/include/Algorithms/itkShCoefficientImageExporter.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Modules/DiffusionImaging/DiffusionCore/include/Algorithms/itkShCoefficientImageExporter.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Modules/DiffusionImaging/DiffusionCore/include/Algorithms/itkShCoefficientImageExporter.cpp | liu3xing3long/MITK-2016.11 | 385c506f9792414f40337e106e13d5fd61aa3ccc | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied w... | 31.71134 | 102 | 0.641417 | [
"vector"
] |
4e74640a312cc32c99320481c42a6d0eb1196ee4 | 1,118 | cpp | C++ | polymorphism/main.cpp | engenegr/boost-serialization-examples | 623fcfe6728614c3304eae56730a7912632185b1 | [
"MIT"
] | 8 | 2018-09-22T12:43:50.000Z | 2020-11-08T07:08:35.000Z | polymorphism/main.cpp | engenegr/boost-serialization-examples | 623fcfe6728614c3304eae56730a7912632185b1 | [
"MIT"
] | null | null | null | polymorphism/main.cpp | engenegr/boost-serialization-examples | 623fcfe6728614c3304eae56730a7912632185b1 | [
"MIT"
] | 5 | 2018-11-14T07:00:24.000Z | 2022-01-19T00:55:17.000Z | #include <fstream>
#include <iostream>
#include <vector>
#include "pentagon.h"
#include "polygon.h"
#include "triangle.h"
#include "archive.h"
#include "serialization.h"
void printVector(const std::vector<Polygon *> &vect) {
for (auto it = vect.begin(); it != vect.end(); ++it) {
(*it)->print();
}
}
int main... | 21.5 | 56 | 0.624329 | [
"vector"
] |
4e757a0e1ef7447ce4793486a741df882d629d40 | 31,673 | cpp | C++ | 3rdparty/webkit/Source/WebCore/platform/graphics/GraphicsContext3D.cpp | mchiasson/PhaserNative | f867454602c395484bf730a7c43b9c586c102ac2 | [
"MIT"
] | 1 | 2020-05-25T16:06:49.000Z | 2020-05-25T16:06:49.000Z | WebLayoutCore/Source/WebCore/platform/graphics/GraphicsContext3D.cpp | gubaojian/trylearn | 74dd5c6c977f8d867d6aa360b84bc98cb82f480c | [
"MIT"
] | 9 | 2020-04-18T18:47:18.000Z | 2020-04-18T18:52:41.000Z | Source/WebCore/platform/graphics/GraphicsContext3D.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | 1 | 2018-07-10T10:53:18.000Z | 2018-07-10T10:53:18.000Z | /*
* Copyright (C) 2010, 2016 Apple Inc. All rights reserved.
* Copyright (C) 2010 Google Inc. All rights reserved.
* Copyright (C) 2010 Mozilla Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... | 47.062407 | 261 | 0.688599 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.