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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c5f3e0826fb727ff0caedf1efad1809b7ecefea1 | 4,618 | cpp | C++ | ACore/src/Child.cpp | mpartio/ecflow | ea4b89399d1e7b897ff48c59b1e885e6d53cc8d6 | [
"Apache-2.0"
] | null | null | null | ACore/src/Child.cpp | mpartio/ecflow | ea4b89399d1e7b897ff48c59b1e885e6d53cc8d6 | [
"Apache-2.0"
] | null | null | null | ACore/src/Child.cpp | mpartio/ecflow | ea4b89399d1e7b897ff48c59b1e885e6d53cc8d6 | [
"Apache-2.0"
] | null | null | null | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// Name :
// Author : Avi
// Revision : $Revision: #4 $
//
// Copyright 2009- ECMWF.
// This software is licensed under the terms of the Apache Licence version 2.0
// which can be obtained at http://www.apache.org/licenses... | 29.227848 | 85 | 0.62278 | [
"vector"
] |
c5f442a23c26e9bb58834a430173e79b3869f3ae | 5,173 | cpp | C++ | brlycmbd/CrdBrlySeg/PnlBrlySegDetail_evals.cpp | mpsitech/brly-BeamRelay | 481ccb3e83ea6151fb78eba293b44ade62a0ec78 | [
"MIT"
] | null | null | null | brlycmbd/CrdBrlySeg/PnlBrlySegDetail_evals.cpp | mpsitech/brly-BeamRelay | 481ccb3e83ea6151fb78eba293b44ade62a0ec78 | [
"MIT"
] | null | null | null | brlycmbd/CrdBrlySeg/PnlBrlySegDetail_evals.cpp | mpsitech/brly-BeamRelay | 481ccb3e83ea6151fb78eba293b44ade62a0ec78 | [
"MIT"
] | null | null | null | /**
* \file PnlBrlySegDetail_evals.cpp
* job handler for job PnlBrlySegDetail (implementation of availability/activation evaluation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 11 Jan 2021
*/
// IP header --- ABOVE
using namespace std;
usi... | 21.114286 | 101 | 0.691282 | [
"vector"
] |
c5f69b854c235ab414d928260156fd9e085d00d2 | 3,876 | cpp | C++ | 2018/23.cpp | wgevaert/AOC | aaa9c06f9817e338cca01bbf37b6ba81256dd5ba | [
"WTFPL"
] | 2 | 2020-08-06T22:14:51.000Z | 2020-08-10T19:42:36.000Z | 2018/23.cpp | wgevaert/AOC | aaa9c06f9817e338cca01bbf37b6ba81256dd5ba | [
"WTFPL"
] | null | null | null | 2018/23.cpp | wgevaert/AOC | aaa9c06f9817e338cca01bbf37b6ba81256dd5ba | [
"WTFPL"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
const unsigned size=1000;
unsigned long long abs(long long a){return a<0 ? -1*a:a;}
struct nanobot {
long long x,y,z;
unsigned long long r;
nanobot(long long _x,long long _y,long long _z,unsigned long long _r):x(_x),y(_y),z(_z),r(_r){};
bool in... | 44.551724 | 845 | 0.620485 | [
"vector"
] |
c5fbae472764eccbf4257fac6f2e07f8467dabad | 493 | hpp | C++ | tarefa_15/src/VectorN.hpp | liviabelirocha/mtn-num-2 | 8279f9dfcf468db0db854d3a2b51390994e1e5a7 | [
"MIT"
] | 1 | 2021-06-18T19:41:55.000Z | 2021-06-18T19:41:55.000Z | tarefa_15/src/VectorN.hpp | liviabelirocha/mtn-num-2 | 8279f9dfcf468db0db854d3a2b51390994e1e5a7 | [
"MIT"
] | null | null | null | tarefa_15/src/VectorN.hpp | liviabelirocha/mtn-num-2 | 8279f9dfcf468db0db854d3a2b51390994e1e5a7 | [
"MIT"
] | 1 | 2020-03-30T13:27:40.000Z | 2020-03-30T13:27:40.000Z | #ifndef VECTOR_HPP
#define VECTOR_HPP
#include <iostream>
#include <cmath>
#include <vector>
using namespace std;
class VectorN
{
private:
int size_;
vector<double> vector_;
public:
VectorN();
VectorN(int size);
void setElement(int i, double element);
int getSize();
double getElement(int... | 16.433333 | 43 | 0.663286 | [
"vector"
] |
c5fee3cdaffe7ea653982a6512f32cdbe42a1316 | 9,230 | cpp | C++ | renderer/Model.cpp | Korazza/renderer | f0f4a96ac81f2f8d0a637c5622068b7298297f05 | [
"MIT"
] | null | null | null | renderer/Model.cpp | Korazza/renderer | f0f4a96ac81f2f8d0a637c5622068b7298297f05 | [
"MIT"
] | null | null | null | renderer/Model.cpp | Korazza/renderer | f0f4a96ac81f2f8d0a637c5622068b7298297f05 | [
"MIT"
] | null | null | null | #include "Model.hpp"
Model::Model(const char *file,
unsigned int instancing,
std::vector<glm::mat4> instanceMatrix)
{
std::string text{get_file_contents(file)};
JSON = json::parse(text);
Model::file = file;
data = getData();
Model::instancing = instancing;
Model::instanceMatrix ... | 30.562914 | 127 | 0.647237 | [
"mesh",
"vector",
"model"
] |
6802e85da057ea436306ae3edfeb0c940ab5bd79 | 7,479 | cpp | C++ | test/ProcessEpochImpTest.cpp | asmaalrawi/geopm | e93548dfdd693a17c81163787ba467891937356d | [
"BSD-3-Clause"
] | 1 | 2018-11-27T16:53:06.000Z | 2018-11-27T16:53:06.000Z | test/ProcessEpochImpTest.cpp | asmaalrawi/geopm | e93548dfdd693a17c81163787ba467891937356d | [
"BSD-3-Clause"
] | null | null | null | test/ProcessEpochImpTest.cpp | asmaalrawi/geopm | e93548dfdd693a17c81163787ba467891937356d | [
"BSD-3-Clause"
] | 1 | 2018-06-24T17:32:25.000Z | 2018-06-24T17:32:25.000Z | /*
* Copyright (c) 2015, 2016, 2017, 2018, 2019, 2020, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice,... | 31.961538 | 74 | 0.660516 | [
"vector"
] |
680f94129aa6ae23f3ef7fe4e1c76dbad945af1d | 5,417 | cpp | C++ | msvcfilt.cpp | mooware/msvcfilt | 713f75e60ce80fe540535cb16b338061ff745c79 | [
"MIT"
] | 7 | 2017-07-01T08:45:14.000Z | 2021-08-05T02:54:24.000Z | msvcfilt.cpp | mooware/msvcfilt | 713f75e60ce80fe540535cb16b338061ff745c79 | [
"MIT"
] | null | null | null | msvcfilt.cpp | mooware/msvcfilt | 713f75e60ce80fe540535cb16b338061ff745c79 | [
"MIT"
] | 4 | 2016-06-18T21:17:12.000Z | 2018-01-06T04:38:56.000Z | #include <iostream>
#include <memory>
#include <regex>
#include <string>
#include <tuple>
#include <vector>
#include <cstring>
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <DbgHelp.h>
using namespace std;
/// The regex pattern to recognize a decorated symbol. Only a guess.
static const ... | 28.661376 | 100 | 0.581318 | [
"vector"
] |
6812d81853cf02699d45081b3016ced16d0cc142 | 1,409 | cpp | C++ | perf/run_fixture.cpp | DataDog/libddwaf | 51909df85ca2ac217b39636efa04b3ea0771d2db | [
"Apache-2.0",
"BSD-3-Clause"
] | 4 | 2021-09-16T15:46:57.000Z | 2021-09-21T12:29:57.000Z | perf/run_fixture.cpp | DataDog/libddwaf | 51909df85ca2ac217b39636efa04b3ea0771d2db | [
"Apache-2.0",
"BSD-3-Clause"
] | 21 | 2021-09-17T14:03:46.000Z | 2022-03-31T21:20:57.000Z | perf/run_fixture.cpp | DataDog/libddwaf | 51909df85ca2ac217b39636efa04b3ea0771d2db | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2021-12-21T08:38:14.000Z | 2021-12-21T08:38:14.000Z | // Unless explicitly stated otherwise all files in this repository are
// dual-licensed under the Apache-2.0 License or BSD-3-Clause License.
//
// This product includes software developed at Datadog
// (https://www.datadoghq.com/). Copyright 2022 Datadog, Inc.
#include <ddwaf.h>
#include <iostream>
#include <vector>
... | 22.725806 | 75 | 0.676366 | [
"vector"
] |
6819dcca6e62188bb91125a078d68aaff719b561 | 2,531 | cc | C++ | src/planet.cc | timsliu/pycli | a72777915d5eef28c12e3846fb4b32e21fab59f4 | [
"MIT"
] | 4 | 2021-01-17T06:10:54.000Z | 2021-01-24T10:10:13.000Z | src/planet.cc | MicahRCM/pycli | a72777915d5eef28c12e3846fb4b32e21fab59f4 | [
"MIT"
] | null | null | null | src/planet.cc | MicahRCM/pycli | a72777915d5eef28c12e3846fb4b32e21fab59f4 | [
"MIT"
] | 1 | 2021-01-24T10:10:46.000Z | 2021-01-24T10:10:46.000Z | /*
* Implementation of planet class. The planet class describes the
* surface of the planet, the planet discretization, and the temperature.
*
*/
#include <iostream>
#include <cmath>
#include <fstream>
#include <iomanip>
#include "planet.h"
using namespace std;
// constructor for a new planet
Planet::Planet(vec... | 27.215054 | 92 | 0.631766 | [
"vector"
] |
681de67d888aa07dadbe2652cc069dbade17192e | 2,453 | hpp | C++ | include/estimator/body_estimator.hpp | gaoxiangluke/cheetah_inekf_realtime | 42529cfa5d08bb6eca3e731f261dc36d8aa633c3 | [
"MIT"
] | 7 | 2021-11-27T20:18:29.000Z | 2022-03-23T05:56:08.000Z | include/estimator/body_estimator.hpp | gaoxiangluke/cheetah_inekf_realtime | 42529cfa5d08bb6eca3e731f261dc36d8aa633c3 | [
"MIT"
] | 4 | 2021-12-04T10:50:27.000Z | 2022-03-01T18:39:08.000Z | include/estimator/body_estimator.hpp | gaoxiangluke/cheetah_inekf_realtime | 42529cfa5d08bb6eca3e731f261dc36d8aa633c3 | [
"MIT"
] | 4 | 2022-01-09T22:40:17.000Z | 2022-03-18T14:35:47.000Z | #pragma once
#ifndef BODYESTIMATOR_H
#define BODYESTIMATOR_H
#include <Eigen/Dense>
#include <vector>
#include "ros/ros.h"
#include "utils/cheetah_data_t.hpp"
#include "system/cheetah_state.hpp"
#include "InEKF.h"
#include <lcm/lcm-cpp.hpp>
#include "communication/lcm-types/cheetah_inekf_lcm/pose_t.hpp"
#include "geom... | 38.936508 | 148 | 0.679984 | [
"vector"
] |
681f8075e8656edef1f7d985c044188a1b79898f | 6,728 | cc | C++ | src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/ui/a11y/lib/semantics/tests/semantics_integration_test_fixture.h"
#include <fuchsia/ui/input/accessibility/cpp/fidl.h>
#include <fuchsia/ui/... | 41.02439 | 99 | 0.722057 | [
"vector"
] |
68284b3341b340c7377ca9d8dcb8c6a30949a209 | 3,366 | cpp | C++ | 3rdParty/boost/1.71.0/libs/algorithm/test/copy_n_test1.cpp | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | 3rdParty/boost/1.71.0/libs/algorithm/test/copy_n_test1.cpp | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | 3rdParty/boost/1.71.0/libs/algorithm/test/copy_n_test1.cpp | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | /*
Copyright (c) Marshall Clow 2011-2012.
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
For more information, see http://www.boost.org
*/
#include <boost/config.hpp>
#include <boost/algorithm/cxx11/copy... | 28.285714 | 109 | 0.559121 | [
"vector"
] |
682c5168318937974c6d8fb847542df49778be3c | 4,318 | cpp | C++ | Graph/SpaceSmugglers_msp.cpp | Satyabrat35/Programming | 841ead1bf847b567d8e21963673413cbd65277f4 | [
"Apache-2.0"
] | null | null | null | Graph/SpaceSmugglers_msp.cpp | Satyabrat35/Programming | 841ead1bf847b567d8e21963673413cbd65277f4 | [
"Apache-2.0"
] | null | null | null | Graph/SpaceSmugglers_msp.cpp | Satyabrat35/Programming | 841ead1bf847b567d8e21963673413cbd65277f4 | [
"Apache-2.0"
] | null | null | null | /**************erik****************/
#include<bits/stdc++.h>
#include <cstdio>
#include <iostream>
#include <algorithm>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
//map<int,int> mp1;
//set<int> s1;
//set<int>::iterator it;
#define maxm(a,b,c) max(a,max(c,b))
#define minm(a,b,c)... | 28.596026 | 103 | 0.407365 | [
"vector"
] |
682f2e5223bd283c233f5f8ae1a1ffdc4a9cf8de | 4,642 | cc | C++ | src/daemon/entry/cri/naming.cc | Mu-L/iSulad | e16bae200141db99ba212bd1181d344b93347914 | [
"MulanPSL-1.0"
] | 34 | 2020-03-09T11:57:08.000Z | 2022-03-29T12:18:33.000Z | src/daemon/entry/cri/naming.cc | Mu-L/iSulad | e16bae200141db99ba212bd1181d344b93347914 | [
"MulanPSL-1.0"
] | null | null | null | src/daemon/entry/cri/naming.cc | Mu-L/iSulad | e16bae200141db99ba212bd1181d344b93347914 | [
"MulanPSL-1.0"
] | 8 | 2020-03-21T02:36:22.000Z | 2021-11-13T18:15:43.000Z | /******************************************************************************
* Copyright (c) Huawei Technologies Co., Ltd. 2017-2019. All rights reserved.
* iSulad licensed under the Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mu... | 40.719298 | 120 | 0.69776 | [
"vector"
] |
683032244c607386dcb2fd3bccd68859ff3889d1 | 2,293 | cc | C++ | industry-brain/src/model/AsyncResponsePostRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | industry-brain/src/model/AsyncResponsePostRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | industry-brain/src/model/AsyncResponsePostRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 23.885417 | 75 | 0.743131 | [
"model"
] |
683b5f3741249517afc46f143b5f43db896c5746 | 1,995 | cpp | C++ | aws-cpp-sdk-medialive/source/model/InputLossImageType.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-medialive/source/model/InputLossImageType.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-medialive/source/model/InputLossImageType.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/medialive/model/InputLossImageType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::... | 28.098592 | 92 | 0.619048 | [
"model"
] |
683dc3e9b849c18c6d9090d309f1dc19e1ea646d | 15,052 | cpp | C++ | sources/calibn/tmp/calibcam.cpp | SimonsRoad/seq2map | cc8cd20842b3c6db01f73d2e6ecf543189e56891 | [
"BSD-3-Clause"
] | null | null | null | sources/calibn/tmp/calibcam.cpp | SimonsRoad/seq2map | cc8cd20842b3c6db01f73d2e6ecf543189e56891 | [
"BSD-3-Clause"
] | null | null | null | sources/calibn/tmp/calibcam.cpp | SimonsRoad/seq2map | cc8cd20842b3c6db01f73d2e6ecf543189e56891 | [
"BSD-3-Clause"
] | 1 | 2018-11-01T13:11:39.000Z | 2018-11-01T13:11:39.000Z | #include <calibn/calibcam.hpp>
#include <calibn/helpers.hpp>
#include <stdio.h>
using namespace std;
using namespace cv;
size_t CalibIntrinsics::NumParameters = 9; // fc,fu,uc,vc,k1,k2,p1,p2,k3
size_t CalibExtrinsics::NumParameters = 6; // rx,ry,rz,tx,ty,tz
CalibBundleParams CalibBundleParams::NullParams(0,0);
TermCr... | 29.747036 | 188 | 0.608823 | [
"vector"
] |
6841ae1f2aca99c298e4e94f83beccc459dd3dcb | 32,087 | cpp | C++ | rational.cpp | girving/poker | 06fa71d03cbeeb18c1647d7c3d946d328031376b | [
"BSD-3-Clause"
] | 10 | 2016-04-11T09:01:27.000Z | 2021-06-15T14:16:32.000Z | rational.cpp | girving/poker | 06fa71d03cbeeb18c1647d7c3d946d328031376b | [
"BSD-3-Clause"
] | null | null | null | rational.cpp | girving/poker | 06fa71d03cbeeb18c1647d7c3d946d328031376b | [
"BSD-3-Clause"
] | 3 | 2016-06-11T19:06:38.000Z | 2017-04-17T05:16:00.000Z | // Fixed size rational numbers exposed to Python
#define NPY_NO_DEPRECATED_API
#include <stdint.h>
#include <limits>
#include <cmath>
#include <stdexcept>
#include <typeinfo>
#include <iostream>
#include <Python/Python.h>
#include <Python/structmember.h>
#include <numpy/arrayobject.h>
#include <numpy/ufuncobject.h>
... | 32.775281 | 145 | 0.58332 | [
"object"
] |
6844e5a3c732fe0415c10e0663971eb7b8f7e7c7 | 4,405 | cpp | C++ | wpa_supplicant/binder/supplicant.cpp | TinkerBoard-Android/external_wpa_supplicant_8 | f0798391039d0741d7b32dc30489678f17a6239a | [
"Unlicense"
] | 14 | 2015-02-15T03:03:20.000Z | 2021-07-19T14:09:29.000Z | wpa_supplicant/binder/supplicant.cpp | TinkerBoard-Android/external_wpa_supplicant_8 | f0798391039d0741d7b32dc30489678f17a6239a | [
"Unlicense"
] | 8 | 2017-01-29T01:28:03.000Z | 2017-01-29T20:50:32.000Z | wpa_supplicant/binder/supplicant.cpp | TinkerBoard-Android/external_wpa_supplicant_8 | f0798391039d0741d7b32dc30489678f17a6239a | [
"Unlicense"
] | 98 | 2015-01-01T14:03:52.000Z | 2020-07-21T11:31:59.000Z | /*
* binder interface for wpa_supplicant daemon
* Copyright (c) 2004-2016, Jouni Malinen <j@w1.fi>
* Copyright (c) 2004-2016, Roshan Pius <rpius@google.com>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "binder_manager.h"
#include "supplicant... | 34.960317 | 78 | 0.746879 | [
"object"
] |
969cc6657a387429cfbbce30d9bf94a83bfa7a1c | 5,877 | cpp | C++ | Sources/Engine/Graphics/Scene/SkyBox.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Engine/Graphics/Scene/SkyBox.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Engine/Graphics/Scene/SkyBox.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | /*=============================================================================
SkyBox.cpp
Project: Sonata Engine
Author: Julien Delezenne
=============================================================================*/
#include "SkyBox.h"
#include "Graphics/System/RenderSystem.h"
#include "Graphics/SceneManager.h"
#in... | 24.185185 | 90 | 0.662072 | [
"mesh",
"render",
"transform"
] |
969f099cfb5d966740d02e30bddbbc247e44355e | 8,972 | cpp | C++ | ObjectDetector.cpp | IvanSobko/Rise_of_the_Machines | 45c02d5c5cdd7e9652778fe5ce8cd17d1c3c4f5e | [
"MIT"
] | null | null | null | ObjectDetector.cpp | IvanSobko/Rise_of_the_Machines | 45c02d5c5cdd7e9652778fe5ce8cd17d1c3c4f5e | [
"MIT"
] | null | null | null | ObjectDetector.cpp | IvanSobko/Rise_of_the_Machines | 45c02d5c5cdd7e9652778fe5ce8cd17d1c3c4f5e | [
"MIT"
] | null | null | null | //
// Created by Sveta Morkva on 10/3/20.
//
#include "ObjectDetector.h"
#include <opencv2/core.hpp>
#include <opencv2/ml.hpp>
#include <opencv2/xfeatures2d.hpp>
#include <boost/filesystem.hpp>
#include "opencv2/viz.hpp"
#include <opencv2/opencv.hpp>
#include <opencv2/core/cvstd.hpp>
using namespace cv;
using namespa... | 39.179039 | 122 | 0.579804 | [
"object",
"vector",
"model"
] |
96a05e25daf769f2b768ac169d3f9ae19f0982cb | 2,409 | cc | C++ | src/sys/fuzzing/framework/testing/engine.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 2 | 2022-02-24T16:24:29.000Z | 2022-02-25T22:33:10.000Z | src/sys/fuzzing/framework/testing/engine.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 2 | 2021-09-19T21:55:09.000Z | 2021-12-19T03:34:53.000Z | src/sys/fuzzing/framework/testing/engine.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"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.
#include <fuchsia/fuzzer/cpp/fidl.h>
#include <lib/fidl/cpp/interface_request.h>
#include <lib/sys/cpp/component_context.h>
#include <stddef.h>
#include <... | 29.024096 | 94 | 0.704027 | [
"vector"
] |
96a5faa2f23b22f15f71b8c96e9132acddf67139 | 4,604 | cpp | C++ | Programming-II-C++/MW10_L8_Blanco.cpp | eebr99/CPlusPlus-Projects | e891cb6c82ca71bd8afbf95b55068ae71a0168f5 | [
"MIT"
] | null | null | null | Programming-II-C++/MW10_L8_Blanco.cpp | eebr99/CPlusPlus-Projects | e891cb6c82ca71bd8afbf95b55068ae71a0168f5 | [
"MIT"
] | null | null | null | Programming-II-C++/MW10_L8_Blanco.cpp | eebr99/CPlusPlus-Projects | e891cb6c82ca71bd8afbf95b55068ae71a0168f5 | [
"MIT"
] | null | null | null | // Author: Eric Blanco
// Course: COSC 1337 Spring 2020 MW10; Instructor: Thayer
// Assignment: Lab 8
// Topic: This program
/*
IPO Chart
INPUT
class Board, the game board will have the following members
declare enum Board_state_t
private:
char grid, for a 3 by 3 standard tic tac toe board
Board_st... | 34.878788 | 116 | 0.619027 | [
"vector"
] |
96b936b758a8c460125de6b27701853444ee9cb1 | 512 | cpp | C++ | Dataset/Leetcode/train/78/27.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/78/27.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/78/27.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
//可以直接遍历,遇到一个数就把所有子集加上该数组成新的子集,遍历完毕即是所有子集
vector<vector<int>> XXX(vector<int>& nums) {
if(nums.empty()) return vector<vector<int>>();
vector<vector<int>> res;
res.push_back({});
for(auto num : nums)
{
vector<vector<int>> state = res;
... | 23.272727 | 54 | 0.472656 | [
"vector"
] |
96ced0c9e984e00085d5a63cfcdc54c1b01ace59 | 3,717 | hxx | C++ | include/rex/Graphics/Scene.hxx | fastinvsqrt/rex | 75aec2382e49b97f4ccf3a5202c026ac8f4349e9 | [
"MIT",
"Unlicense"
] | 3 | 2015-02-23T05:37:40.000Z | 2015-07-21T07:21:10.000Z | include/rex/Graphics/Scene.hxx | xoarinn/rex | 75aec2382e49b97f4ccf3a5202c026ac8f4349e9 | [
"MIT",
"Unlicense"
] | null | null | null | include/rex/Graphics/Scene.hxx | xoarinn/rex | 75aec2382e49b97f4ccf3a5202c026ac8f4349e9 | [
"MIT",
"Unlicense"
] | null | null | null | #pragma once
#include "../Config.hxx"
#include "../CUDA/DeviceList.hxx"
#include "../GL/GLTexture2D.hxx"
#include "../GL/GLWindow.hxx"
#include "../Utility/Image.hxx"
#include "Geometry/Octree.hxx"
#include "Lights/AmbientLight.hxx"
#include "Camera.hxx"
#include "ShadePoint.hxx"
#include "ViewPlane.hxx"
struct GLFWw... | 28.813953 | 135 | 0.614743 | [
"geometry",
"render"
] |
96d305b3b87e3da5801afcdc1776055e604728b8 | 1,088 | cpp | C++ | compiler/nnkit-tflite/support/src/TensorUtils.cpp | juitem/ONE | 8c6a4b7738074573b6ac5c82dcf1f6697520d1ed | [
"Apache-2.0"
] | 255 | 2020-05-22T07:45:29.000Z | 2022-03-29T23:58:22.000Z | compiler/nnkit-tflite/support/src/TensorUtils.cpp | juitem/ONE | 8c6a4b7738074573b6ac5c82dcf1f6697520d1ed | [
"Apache-2.0"
] | 5,102 | 2020-05-22T07:48:33.000Z | 2022-03-31T23:43:39.000Z | compiler/nnkit-tflite/support/src/TensorUtils.cpp | juitem/ONE | 8c6a4b7738074573b6ac5c82dcf1f6697520d1ed | [
"Apache-2.0"
] | 120 | 2020-05-22T07:51:08.000Z | 2022-02-16T19:08:05.000Z | /*
* Copyright (c) 2018 Samsung Electronics Co., Ltd. All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | 24.727273 | 75 | 0.70864 | [
"shape"
] |
96dddae51ef6014c871c707e1b2ccaebbc8f5416 | 2,482 | cpp | C++ | src/channel.cpp | BernatOlle/rsim-master | e90d76105518972da004d4ff7d08c62869121c26 | [
"MIT"
] | null | null | null | src/channel.cpp | BernatOlle/rsim-master | e90d76105518972da004d4ff7d08c62869121c26 | [
"MIT"
] | null | null | null | src/channel.cpp | BernatOlle/rsim-master | e90d76105518972da004d4ff7d08c62869121c26 | [
"MIT"
] | null | null | null | #include "channel.hpp"
#include "utilities.hpp"
#include <cstdlib>
#include <vector>
#include <algorithm>
Channel::Channel(int id): cid(id){
std::vector<int> ids_concurrent_tx_nodes;
std::vector<int> ids_nodes_vector;
}
void Channel::update_token_current_node(int assig) {
if(assig == 1){
token_current_node=(t... | 24.82 | 129 | 0.7361 | [
"vector"
] |
96e37bdd99a73ea455556f3f22bbf56c25aa006c | 6,050 | cpp | C++ | Max2D/hoa.2d.rotate_tilde.cpp | CICM/HoaLibrary-Max | cfe110ff040cfda0dd3547ee7e9ec7c11d6dd3b6 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 71 | 2015-02-23T12:24:05.000Z | 2022-02-15T00:18:30.000Z | Max2D/hoa.2d.rotate_tilde.cpp | pb5/HoaLibrary-Max | cfe110ff040cfda0dd3547ee7e9ec7c11d6dd3b6 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 13 | 2015-04-22T17:13:53.000Z | 2020-11-12T10:54:29.000Z | Max2D/hoa.2d.rotate_tilde.cpp | pb5/HoaLibrary-Max | cfe110ff040cfda0dd3547ee7e9ec7c11d6dd3b6 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 8 | 2015-04-11T21:34:51.000Z | 2020-02-29T14:37:53.000Z | /*
// Copyright (c) 2012-2015 Eliott Paris, Julien Colafrancesco & Pierre Guillot, CICM, Universite Paris 8.
// For information on usage and redistribution, and for a DISCLAIMER OF ALL
// WARRANTIES, see the file, "LICENSE.txt," in this distribution.
*/
/**
@file hoa.2d.rotate~.cpp
@name hoa.2d.rotate~
@r... | 33.425414 | 231 | 0.678512 | [
"object"
] |
96e402595c04057d818c2c3598987492a763e905 | 4,335 | cpp | C++ | Src/Common/RenderControl/ADeferredShadingPass.cpp | StavrosBizelis/NetworkDistributedDeferredShading | 07c03ce9b13bb5adb164cd4321b2bba284e49b4d | [
"MIT"
] | null | null | null | Src/Common/RenderControl/ADeferredShadingPass.cpp | StavrosBizelis/NetworkDistributedDeferredShading | 07c03ce9b13bb5adb164cd4321b2bba284e49b4d | [
"MIT"
] | null | null | null | Src/Common/RenderControl/ADeferredShadingPass.cpp | StavrosBizelis/NetworkDistributedDeferredShading | 07c03ce9b13bb5adb164cd4321b2bba284e49b4d | [
"MIT"
] | null | null | null | #include "Common/RenderControl/ADeferredShadingPass.h"
#include <memory>
namespace RenderControl
{
ADeferredShadingPass::ADeferredShadingPass(const glm::vec2& a_resolution, const glm::vec2 &a_partialResolution, const glm::vec4& a_viewportSettings, const unsigned int& a_compressPacked)
:IRenderPass(a_resolution), m... | 42.920792 | 187 | 0.747174 | [
"vector"
] |
96e40bd6bffb57f9f3d9611cfd30813b3d4c1994 | 6,652 | cpp | C++ | src/catkin_projects/perception_sandbox/src/pointcloud2_capture_node.cpp | mpetersen94/spartan | 6998c959d46a475ff73ef38d3e83f8a9f3695e6d | [
"BSD-3-Clause-Clear"
] | null | null | null | src/catkin_projects/perception_sandbox/src/pointcloud2_capture_node.cpp | mpetersen94/spartan | 6998c959d46a475ff73ef38d3e83f8a9f3695e6d | [
"BSD-3-Clause-Clear"
] | null | null | null | src/catkin_projects/perception_sandbox/src/pointcloud2_capture_node.cpp | mpetersen94/spartan | 6998c959d46a475ff73ef38d3e83f8a9f3695e6d | [
"BSD-3-Clause-Clear"
] | null | null | null | #include <ros/ros.h>
#include <unistd.h>
#include <mutex>
#include <string>
#include "Eigen/Dense"
// For argument parsing
#include <gflags/gflags.h>
// PCL specific includes
#include <pcl/features/integral_image_normal.h>
#include <pcl/io/pcd_io.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include ... | 32.135266 | 78 | 0.660854 | [
"vector"
] |
96ed9c02c416139df0cd889f3cd7c91600021835 | 2,371 | cpp | C++ | src/memory.cpp | pouyajamali/semantic_vtr | f80130faffbab38ceeb0351c8aad22872027660f | [
"BSD-3-Clause"
] | 8 | 2019-02-14T08:55:01.000Z | 2022-02-08T00:38:26.000Z | src/memory.cpp | pouyajamali/semantic_vtr | f80130faffbab38ceeb0351c8aad22872027660f | [
"BSD-3-Clause"
] | null | null | null | src/memory.cpp | pouyajamali/semantic_vtr | f80130faffbab38ceeb0351c8aad22872027660f | [
"BSD-3-Clause"
] | 7 | 2019-11-22T13:27:48.000Z | 2021-11-03T00:50:34.000Z | /**
Software License Agreement (BSD)
\file memory.cpp
\authors Faraz Shamshirdar <fshamshi@sfu.ca>
\copyright Copyright (c) 2017, Autonomy Lab (Simon Fraser University), All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that
the following... | 34.362319 | 110 | 0.771404 | [
"vector"
] |
96f0b8231cc725e04bf83f9c52ba0952b733756c | 13,244 | cpp | C++ | qt-creator-opensource-src-4.6.1/src/libs/modelinglib/qmt/diagram_scene/items/componentitem.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 5 | 2018-12-22T14:49:13.000Z | 2022-01-13T07:21:46.000Z | qt-creator-opensource-src-4.6.1/src/libs/modelinglib/qmt/diagram_scene/items/componentitem.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | null | null | null | qt-creator-opensource-src-4.6.1/src/libs/modelinglib/qmt/diagram_scene/items/componentitem.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 8 | 2018-07-17T03:55:48.000Z | 2021-12-22T06:37:53.000Z | /****************************************************************************
**
** Copyright (C) 2016 Jochen Becher
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with th... | 35.891599 | 158 | 0.641725 | [
"geometry",
"object",
"shape"
] |
96f6afd5f7df0b8ccbe1011720688db187162cbb | 1,209 | cpp | C++ | lib/Parallelization/Tasks/LoadObjectFilesTask.cpp | mewbak/mull | fe270faa614e3c91b5ae2baf37916eaca2f4fa08 | [
"Apache-2.0"
] | null | null | null | lib/Parallelization/Tasks/LoadObjectFilesTask.cpp | mewbak/mull | fe270faa614e3c91b5ae2baf37916eaca2f4fa08 | [
"Apache-2.0"
] | null | null | null | lib/Parallelization/Tasks/LoadObjectFilesTask.cpp | mewbak/mull | fe270faa614e3c91b5ae2baf37916eaca2f4fa08 | [
"Apache-2.0"
] | 1 | 2019-06-10T02:43:04.000Z | 2019-06-10T02:43:04.000Z | #include "mull/Parallelization/Tasks/LoadObjectFilesTask.h"
#include "mull/Logger.h"
#include "mull/Parallelization/Progress.h"
using namespace mull;
using namespace llvm;
void LoadObjectFilesTask::operator()(iterator begin, iterator end, Out &storage,
progress_counter &counter) ... | 31.815789 | 80 | 0.641026 | [
"object"
] |
96f6cb550c141033ef0c33bacaea13f8db49a679 | 2,083 | cpp | C++ | src/gpx/sources/Partition.cpp | GAStudyGroup/VRP | 54ec7ff3f0a4247d3effe609cf916fc235a08664 | [
"MIT"
] | 8 | 2018-11-28T15:13:26.000Z | 2021-10-08T18:34:28.000Z | src/gpx/sources/Partition.cpp | GAStudyGroup/VRP | 54ec7ff3f0a4247d3effe609cf916fc235a08664 | [
"MIT"
] | 4 | 2018-03-28T19:26:27.000Z | 2018-04-07T03:02:15.000Z | src/gpx/sources/Partition.cpp | GAStudyGroup/VRP | 54ec7ff3f0a4247d3effe609cf916fc235a08664 | [
"MIT"
] | 2 | 2019-12-12T09:36:48.000Z | 2020-04-23T08:26:22.000Z | #include "Partition.hpp"
Partition::Partition(){};
Partition::Partition(const int id, vector<string> nodes, vector<string> accessNodes)
: id(id)
, nodes(nodes)
, accessNodes(accessNodes){};
vector<string>& Partition::getNodes() { return (nodes); }
vector<string>& Partition::getAccessNodes() { return (acce... | 31.089552 | 119 | 0.645703 | [
"vector"
] |
8c0b4066669ca8fecab6bf9a3797c6f111e1f05f | 1,766 | cxx | C++ | examples/buffon_pi_multithread.cxx | josephmckenna/2021_June_IOP_CAPS_2021 | d3c2e1d661d5fffa7233bf831b76ceccd2a69d63 | [
"MIT"
] | null | null | null | examples/buffon_pi_multithread.cxx | josephmckenna/2021_June_IOP_CAPS_2021 | d3c2e1d661d5fffa7233bf831b76ceccd2a69d63 | [
"MIT"
] | null | null | null | examples/buffon_pi_multithread.cxx | josephmckenna/2021_June_IOP_CAPS_2021 | d3c2e1d661d5fffa7233bf831b76ceccd2a69d63 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <math.h>
#include <thread>
#include <vector>
#include <random>
class looper
{
private:
std::thread* t;
const uint64_t num;
const std::mt19937_64::result_type seed;
const double two_pi = 2 * M_PI;
const double max;
std::mt19937_64 rnd;
... | 19.406593 | 115 | 0.622877 | [
"vector"
] |
8c0f3d46d59722d136228bcf35c986a993153216 | 1,360 | hpp | C++ | include/caffe/layers/cpfp_conversion_layer.hpp | dicecco1/fpga_caffe | 7a191704efd7873071cfef35772d7e7bf3e3cfd6 | [
"Intel",
"BSD-2-Clause"
] | 134 | 2016-10-05T22:10:19.000Z | 2022-03-26T07:13:55.000Z | include/caffe/layers/cpfp_conversion_layer.hpp | honorpeter/fpga_caffe | 7a191704efd7873071cfef35772d7e7bf3e3cfd6 | [
"Intel",
"BSD-2-Clause"
] | 14 | 2016-11-20T21:16:38.000Z | 2020-04-14T04:58:32.000Z | include/caffe/layers/cpfp_conversion_layer.hpp | honorpeter/fpga_caffe | 7a191704efd7873071cfef35772d7e7bf3e3cfd6 | [
"Intel",
"BSD-2-Clause"
] | 58 | 2016-10-03T01:23:47.000Z | 2021-11-24T12:17:30.000Z | #ifndef CAFFE_CPFP_CONVERSION_LAYER_HPP_
#define CAFFE_CPFP_CONVERSION_LAYER_HPP_
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/layer.hpp"
#include "caffe/proto/caffe.pb.h"
namespace caffe {
/**
* @brief Converts the input blob from Dtype to half precision, but maintains
* the shape and types.
*
... | 28.333333 | 78 | 0.716176 | [
"shape",
"vector"
] |
22c85fc8f9f97b05ded732dc9fb45183e039eb67 | 2,301 | cc | C++ | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_aguila/ag_MouseTarget.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_aguila/ag_MouseTarget.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_aguila/ag_MouseTarget.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | #include "ag_MouseTarget.h"
// Library headers.
// PCRaster library headers.
// Module headers.
/*!
\file
This file contains the implementation of the MouseTarget class.
*/
//------------------------------------------------------------------------------
// DEFINITION OF STATIC MOUSETARGET MEMBERS
//-------... | 17.300752 | 80 | 0.479791 | [
"object"
] |
22d34797367c80f33b70c5662ea5c6b18ad22ebb | 606 | cpp | C++ | projection-area-of-3d-shapes/projection-area-of-3d-shapes.cpp | itzpankajpanwar/Leetcode | bf933bc8a16f4b9d7a0e8b82f01684e60b544bed | [
"MIT"
] | 2 | 2021-08-29T12:51:09.000Z | 2021-10-18T23:24:41.000Z | projection-area-of-3d-shapes/projection-area-of-3d-shapes.cpp | itzpankajpanwar/Leetcode | bf933bc8a16f4b9d7a0e8b82f01684e60b544bed | [
"MIT"
] | null | null | null | projection-area-of-3d-shapes/projection-area-of-3d-shapes.cpp | itzpankajpanwar/Leetcode | bf933bc8a16f4b9d7a0e8b82f01684e60b544bed | [
"MIT"
] | null | null | null | class Solution {
public:
int projectionArea(vector<vector<int>>& grid) {
int res=0;
for(int i=0;i<grid.size() ; i++)
{
int maxi=0;
for(int j=0;j<grid[0].size() ; j++)
{ maxi = max( maxi , grid[i][j] );
if(grid[i][j]>0 ) res... | 25.25 | 51 | 0.364686 | [
"vector"
] |
22e030e740aa213059cb7d7ad6976ba4855e487d | 10,775 | cpp | C++ | source/FAST/Streamers/RealSenseStreamer.cpp | SINTEFMedtek/FAST | d4c1ec49bd542f78d84c00e990bbedd2126cfffa | [
"BSD-2-Clause"
] | 3 | 2019-12-13T07:53:51.000Z | 2020-02-05T09:11:58.000Z | source/FAST/Streamers/RealSenseStreamer.cpp | SINTEFMedtek/FAST | d4c1ec49bd542f78d84c00e990bbedd2126cfffa | [
"BSD-2-Clause"
] | 1 | 2020-02-05T09:28:37.000Z | 2020-02-05T09:28:37.000Z | source/FAST/Streamers/RealSenseStreamer.cpp | SINTEFMedtek/FAST | d4c1ec49bd542f78d84c00e990bbedd2126cfffa | [
"BSD-2-Clause"
] | 1 | 2020-12-10T12:40:59.000Z | 2020-12-10T12:40:59.000Z | #include "RealSenseStreamer.hpp"
#include "FAST/Data/Image.hpp"
#include "FAST/Data/Mesh.hpp"
#include <librealsense2/rs.hpp>
#include "librealsense2/rsutil.h"
#include <atomic>
namespace fast {
RealSenseStreamer::RealSenseStreamer() {
createOutputPort<Image>(0); // RGB
createOutputPort<Image>(1); // Depth i... | 38.758993 | 137 | 0.63471 | [
"mesh",
"object",
"vector",
"transform"
] |
22e3b0c1110978f7c91c0e72be5d1473c7798c86 | 2,817 | cpp | C++ | model_phm_edges.cpp | alexkernphysiker/JPET-Model-scintillator-plate | 326d6676bc4e32f12899a600bf5252332981f061 | [
"MIT-0"
] | null | null | null | model_phm_edges.cpp | alexkernphysiker/JPET-Model-scintillator-plate | 326d6676bc4e32f12899a600bf5252332981f061 | [
"MIT-0"
] | null | null | null | model_phm_edges.cpp | alexkernphysiker/JPET-Model-scintillator-plate | 326d6676bc4e32f12899a600bf5252332981f061 | [
"MIT-0"
] | null | null | null | // this file is distributed under
// MIT license
#include <iostream>
#include <sstream>
#include <gnuplot_wrap.h>
#include <math_h/tabledata.h>
#include <RectScin/signal_processing.h>
#include <RectScin/signal_statistics.h>
#include "model_objects/plastic_scin.h"
#include "model_objects/silicon.h"
using namespace std;
... | 40.826087 | 105 | 0.71601 | [
"model"
] |
22e47759269ca6244737a1bc36e32014e2e179c6 | 42,997 | cpp | C++ | src/cube.cpp | noerw/gdalcubes | ef530c7708894ec45ef7af75bef0f68d489fab8c | [
"Zlib",
"NetCDF",
"MIT-0",
"MIT",
"BSL-1.0"
] | null | null | null | src/cube.cpp | noerw/gdalcubes | ef530c7708894ec45ef7af75bef0f68d489fab8c | [
"Zlib",
"NetCDF",
"MIT-0",
"MIT",
"BSL-1.0"
] | null | null | null | src/cube.cpp | noerw/gdalcubes | ef530c7708894ec45ef7af75bef0f68d489fab8c | [
"Zlib",
"NetCDF",
"MIT-0",
"MIT",
"BSL-1.0"
] | null | null | null | /*
MIT License
Copyright (c) 2019 Marius Appel <marius.appel@uni-muenster.de>
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,... | 47.721421 | 292 | 0.529223 | [
"vector",
"model",
"transform"
] |
22e50f3f3cc82e079740b26b6edccf7b22e68d61 | 31,007 | cc | C++ | test/datablock_test_byte1.cc | cakebytheoceanLuo/Data_Blocks | 72ba7e352118ca25f4d0cb5d07853e4e0976e07e | [
"MIT"
] | 4 | 2021-01-12T07:39:49.000Z | 2021-07-29T05:55:36.000Z | test/datablock_test_byte1.cc | cakebytheoceanLuo/Data_Blocks | 72ba7e352118ca25f4d0cb5d07853e4e0976e07e | [
"MIT"
] | null | null | null | test/datablock_test_byte1.cc | cakebytheoceanLuo/Data_Blocks | 72ba7e352118ca25f4d0cb5d07853e4e0976e07e | [
"MIT"
] | 1 | 2021-04-12T00:17:41.000Z | 2021-04-12T00:17:41.000Z | // ---------------------------------------------------------------------------
// IMLAB
// ---------------------------------------------------------------------------
#include <math.h>
#include <gtest/gtest.h>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <map>
#include <tuple>
#... | 37.629854 | 181 | 0.612926 | [
"vector"
] |
22e5e84fc7ee4247d2ce8d6cf8ed2ab31740e151 | 26,816 | cpp | C++ | XAML SpriteGame/DirectXPage.xaml.cpp | ksideris/DirectX-game-engine | 215a46d65fdabf4439e4889c09cc54c799c6caa7 | [
"Zlib"
] | 3 | 2015-01-08T04:00:32.000Z | 2019-08-30T01:42:26.000Z | XAML SpriteGame/DirectXPage.xaml.cpp | ksideris/DirectX-game-engine | 215a46d65fdabf4439e4889c09cc54c799c6caa7 | [
"Zlib"
] | null | null | null | XAML SpriteGame/DirectXPage.xaml.cpp | ksideris/DirectX-game-engine | 215a46d65fdabf4439e4889c09cc54c799c6caa7 | [
"Zlib"
] | 4 | 2015-01-08T04:00:22.000Z | 2021-09-10T01:31:02.000Z | //
// BlankPage.xaml.cpp
// Implementation of the BlankPage.xaml class.
//
#include "pch.h"
#include "DirectXPage.xaml.h"
#include <map>
using namespace irr;
using namespace io;
//end xml imports
using namespace GameEngine;
using namespace Helpers;
using namespace AudioEngine;
using namespace Windows::UI::ViewM... | 28.28692 | 283 | 0.728185 | [
"render",
"object",
"vector"
] |
22e734e81bad694cc33db37b43abd3cea639a1b0 | 8,887 | cpp | C++ | examples/mantevo/miniFE-1.1/optional/shards/example/example_03.cpp | sdressler/objekt | 30ee938f5cb06193871f802be0bbdae6ecd26a33 | [
"BSD-3-Clause"
] | 1 | 2019-11-26T22:24:12.000Z | 2019-11-26T22:24:12.000Z | examples/mantevo/miniFE-1.1/optional/shards/example/example_03.cpp | sdressler/objekt | 30ee938f5cb06193871f802be0bbdae6ecd26a33 | [
"BSD-3-Clause"
] | null | null | null | examples/mantevo/miniFE-1.1/optional/shards/example/example_03.cpp | sdressler/objekt | 30ee938f5cb06193871f802be0bbdae6ecd26a33 | [
"BSD-3-Clause"
] | null | null | null | //@HEADER
// ************************************************************************
//
// Shards : Shared Discretization Tools
// Copyright 2008 Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights ... | 41.919811 | 105 | 0.4726 | [
"vector",
"3d"
] |
22ea6ed6b0b39e9b5a63460c906f67ca06a8054f | 1,148 | cpp | C++ | radix_sort.cpp | agaitanis/my_algorithms | 56e20f530f1bef850a61cdc0933830107a3e239a | [
"MIT"
] | 1 | 2019-03-05T22:49:42.000Z | 2019-03-05T22:49:42.000Z | radix_sort.cpp | agaitanis/my_algorithms | 56e20f530f1bef850a61cdc0933830107a3e239a | [
"MIT"
] | null | null | null | radix_sort.cpp | agaitanis/my_algorithms | 56e20f530f1bef850a61cdc0933830107a3e239a | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <climits>
#include <cassert>
#include <cmath>
#include "radix_sort.hpp"
#include "my_tools.hpp"
using namespace std;
static int digit_of(int a, int digit)
{
int ret = 0;
for (int i = 0; i < digit; i++) {
ret = a % 10;
a /= 10;
}
return ret;
}
static void coun... | 15.105263 | 58 | 0.523519 | [
"vector"
] |
22f760e39f86b29ccf025a83b2a43c87882f9e02 | 5,583 | cc | C++ | lite/backends/npu/device.cc | Rachel-1207/Paddle-Lite | e6b3d883db8871600f1c46f6aa1a1dbf83d430d3 | [
"Apache-2.0"
] | 1 | 2020-07-13T09:57:34.000Z | 2020-07-13T09:57:34.000Z | lite/backends/npu/device.cc | Rachel-1207/Paddle-Lite | e6b3d883db8871600f1c46f6aa1a1dbf83d430d3 | [
"Apache-2.0"
] | null | null | null | lite/backends/npu/device.cc | Rachel-1207/Paddle-Lite | e6b3d883db8871600f1c46f6aa1a1dbf83d430d3 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 39.316901 | 79 | 0.663622 | [
"vector",
"model"
] |
fe01c7ae7eb08e40f462e3a53bd4ff46730dfce9 | 4,485 | cpp | C++ | src/Type.cpp | CESNET/libyang-cpp | e31f0c87cdd724d33c8899b1bf23289e062bb855 | [
"BSD-3-Clause"
] | 5 | 2021-06-09T15:09:37.000Z | 2022-02-15T16:43:57.000Z | src/Type.cpp | CESNET/libyang-cpp | e31f0c87cdd724d33c8899b1bf23289e062bb855 | [
"BSD-3-Clause"
] | 3 | 2021-09-07T14:32:58.000Z | 2022-02-17T14:56:01.000Z | src/Type.cpp | CESNET/libyang-cpp | e31f0c87cdd724d33c8899b1bf23289e062bb855 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2021 CESNET, https://photonics.cesnet.cz/
*
* Written by Václav Kubernát <kubernat@cesnet.cz>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <libyang-cpp/Module.hpp>
#include <libyang-cpp/SchemaNode.hpp>
#include <libyang-cpp/Type.hpp>
#include <libyang-cpp/Utils.hpp>
#include <libyang/l... | 23.359375 | 117 | 0.658863 | [
"vector"
] |
fe0ab8e554836ee412e6b0ea725353bacbe2d457 | 19,357 | cpp | C++ | src/ir/ranges.cpp | NK-Nikunj/phylanx | 6898992513a122c49d26947d877f329365486665 | [
"BSL-1.0"
] | null | null | null | src/ir/ranges.cpp | NK-Nikunj/phylanx | 6898992513a122c49d26947d877f329365486665 | [
"BSL-1.0"
] | null | null | null | src/ir/ranges.cpp | NK-Nikunj/phylanx | 6898992513a122c49d26947d877f329365486665 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2018 Parsa Amini
// Copyright (c) 2018 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <phylanx/config.hpp>
#include <phylanx/execution_tree/primitives/base_primitive.hpp... | 32.048013 | 81 | 0.522395 | [
"object",
"vector"
] |
fe16ff5dac78a58ebfdfb97453418fe009f1a20e | 1,019 | cc | C++ | cartographer/mapping/internal/3d/scan_matching/intensity_cost_function_3d.cc | laotie/cartographer | b8228ee6564f5a7ad0d6d0b9a30516521cff2ee9 | [
"Apache-2.0"
] | 5,196 | 2016-08-04T14:52:31.000Z | 2020-04-02T18:30:00.000Z | cartographer/mapping/internal/3d/scan_matching/intensity_cost_function_3d.cc | laotie/cartographer | b8228ee6564f5a7ad0d6d0b9a30516521cff2ee9 | [
"Apache-2.0"
] | 1,206 | 2016-08-03T14:27:00.000Z | 2020-03-31T21:14:18.000Z | cartographer/mapping/internal/3d/scan_matching/intensity_cost_function_3d.cc | laotie/cartographer | b8228ee6564f5a7ad0d6d0b9a30516521cff2ee9 | [
"Apache-2.0"
] | 1,810 | 2016-08-03T05:45:02.000Z | 2020-04-02T03:44:18.000Z | #include "cartographer/mapping/internal/3d/scan_matching/intensity_cost_function_3d.h"
namespace cartographer {
namespace mapping {
namespace scan_matching {
// This method is defined here instead of the header file as it was observed
// that defining it in the header file has a negative impact on the runtime
// perf... | 39.192308 | 86 | 0.741904 | [
"3d"
] |
fe1934037894b9b15bef04ccf8453fc69c4ac96d | 2,857 | cc | C++ | tests/buffer.cc | eichf/pipeBB | 7c992f644f9fc132ad0cc6f36bffdfd02601e388 | [
"Apache-2.0"
] | null | null | null | tests/buffer.cc | eichf/pipeBB | 7c992f644f9fc132ad0cc6f36bffdfd02601e388 | [
"Apache-2.0"
] | null | null | null | tests/buffer.cc | eichf/pipeBB | 7c992f644f9fc132ad0cc6f36bffdfd02601e388 | [
"Apache-2.0"
] | null | null | null | //
// Copyright 2018- Florian Eich <florian.eich@gmail.com>
//
// 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... | 26.95283 | 79 | 0.661533 | [
"object"
] |
fe203bd2b7f00a1fcd7141bc37ff9a9de86bdef0 | 2,996 | cpp | C++ | src/main.cpp | Kerosene2000/particle-system | 501f52181bbe77c62de8f321da84e8045bc11f69 | [
"MIT"
] | null | null | null | src/main.cpp | Kerosene2000/particle-system | 501f52181bbe77c62de8f321da84e8045bc11f69 | [
"MIT"
] | null | null | null | src/main.cpp | Kerosene2000/particle-system | 501f52181bbe77c62de8f321da84e8045bc11f69 | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... | 32.565217 | 80 | 0.539052 | [
"object"
] |
fe24967f1d192b3b0b9109e9aa8adcb4fb2fe5c5 | 5,809 | hpp | C++ | adaptivlib/include/adaptiv/utility/input/parsers.hpp | seriouslyhypersonic/adaptiv_co | 2421d7dc91d0291dd45702a2a2ddadab9adda91d | [
"BSL-1.0"
] | null | null | null | adaptivlib/include/adaptiv/utility/input/parsers.hpp | seriouslyhypersonic/adaptiv_co | 2421d7dc91d0291dd45702a2a2ddadab9adda91d | [
"BSL-1.0"
] | null | null | null | adaptivlib/include/adaptiv/utility/input/parsers.hpp | seriouslyhypersonic/adaptiv_co | 2421d7dc91d0291dd45702a2a2ddadab9adda91d | [
"BSL-1.0"
] | null | null | null | /*
* Copyright (c) Nuno Alves de Sousa 2019
*
* Use, modification and distribution is subject to the Boost Software License,
* Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef ADAPTIV_PARSERS_HPP
#define ADAPTIV_PARSERS_HPP
#include <adaptiv/macros... | 33.385057 | 104 | 0.661732 | [
"vector"
] |
fe29b6bfed636ddfa9aaccce082fa39418a21f31 | 17,492 | cc | C++ | inc.cc | chenshuo/cppindex | 762b51ffddf6763649cf932bf50cf7fc84e9218e | [
"BSD-3-Clause"
] | 19 | 2016-04-20T20:43:30.000Z | 2021-06-22T14:46:24.000Z | inc.cc | chenshuo/cppindex | 762b51ffddf6763649cf932bf50cf7fc84e9218e | [
"BSD-3-Clause"
] | null | null | null | inc.cc | chenshuo/cppindex | 762b51ffddf6763649cf932bf50cf7fc84e9218e | [
"BSD-3-Clause"
] | 3 | 2016-12-06T21:16:00.000Z | 2019-11-07T13:34:36.000Z | #include "build/record.pb.h"
#include "llvm/Support/MD5.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendAction.h"
#include "clang/Frontend/FrontendActions.h"
#include "clang/Lex/PPCallbacks.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Tooling/Tooling.h"
#include "leveldb/db.... | 33.128788 | 91 | 0.644123 | [
"vector"
] |
fe2d162a5ae42ba83d5def6d6d7bd950ec13ec89 | 3,908 | cpp | C++ | AliceEngine/ALC/Content/Texture.cpp | ARAMODODRAGON/Project-Alice | 49d3189ba065911c8495cfb04761a2050d3a0702 | [
"MIT"
] | null | null | null | AliceEngine/ALC/Content/Texture.cpp | ARAMODODRAGON/Project-Alice | 49d3189ba065911c8495cfb04761a2050d3a0702 | [
"MIT"
] | null | null | null | AliceEngine/ALC/Content/Texture.cpp | ARAMODODRAGON/Project-Alice | 49d3189ba065911c8495cfb04761a2050d3a0702 | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2021 Domara Shlimon
*
* 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, m... | 30.061538 | 95 | 0.729017 | [
"object"
] |
fe35dcb718dc7e4b4a7e5b4096247d48882dacc6 | 8,514 | cc | C++ | tensorflow/compiler/xla/service/gpu/ir_emission_utils.cc | salvatoretrimarchi/tensorflow | e089567660d465f486a8244431d9ceaa6f70c5a6 | [
"Apache-2.0"
] | null | null | null | tensorflow/compiler/xla/service/gpu/ir_emission_utils.cc | salvatoretrimarchi/tensorflow | e089567660d465f486a8244431d9ceaa6f70c5a6 | [
"Apache-2.0"
] | null | null | null | tensorflow/compiler/xla/service/gpu/ir_emission_utils.cc | salvatoretrimarchi/tensorflow | e089567660d465f486a8244431d9ceaa6f70c5a6 | [
"Apache-2.0"
] | 1 | 2021-06-04T17:13:46.000Z | 2021-06-04T17:13:46.000Z | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 37.342105 | 80 | 0.644938 | [
"shape",
"vector"
] |
fe36be8d30aa77e7b7c1f9b456eec133660a9359 | 3,672 | cpp | C++ | tc 160+/TheProduct.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/TheProduct.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/TheProduct.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
vector<int> A;
int n;
int D;
int dummy = 51;
const long long INF = 123456789012345678LL;
long long dp2[50][52][11];
bool done[50... | 34 | 321 | 0.522059 | [
"vector"
] |
fe3aaf3c622c68659166735afdb18a9dc54447c1 | 5,383 | cc | C++ | bindings/pydrake/common/test/cpp_template_pybind_test.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | 2 | 2021-02-25T02:01:02.000Z | 2021-03-17T04:52:04.000Z | bindings/pydrake/common/test/cpp_template_pybind_test.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | null | null | null | bindings/pydrake/common/test/cpp_template_pybind_test.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | 1 | 2021-06-13T12:05:39.000Z | 2021-06-13T12:05:39.000Z | #include "drake/bindings/pydrake/common/cpp_template_pybind.h"
// @file
// Tests the public interfaces in `cpp_template.py` and
// `cpp_template_pybind.h`.
#include <string>
#include <utility>
#include <vector>
#include "pybind11/embed.h"
#include "pybind11/eval.h"
#include "pybind11/pybind11.h"
#include <gtest/gtes... | 31.479532 | 114 | 0.692179 | [
"vector"
] |
fe3cc4e8b5fdaa47f7bfe172c375f61ad7c60c23 | 18,496 | cc | C++ | src/interpreter/Interpreter.cc | walecome/seal | 204b2dbad9f0bf3ac77f5e32173de39ef1fb81c1 | [
"MIT"
] | 1 | 2020-01-06T09:43:56.000Z | 2020-01-06T09:43:56.000Z | src/interpreter/Interpreter.cc | walecome/seal | 204b2dbad9f0bf3ac77f5e32173de39ef1fb81c1 | [
"MIT"
] | null | null | null | src/interpreter/Interpreter.cc | walecome/seal | 204b2dbad9f0bf3ac77f5e32173de39ef1fb81c1 | [
"MIT"
] | null | null | null | #include <array>
#include <fmt/format.h>
#include <string_view>
#include <vector>
#include "Constants.hh"
#include "CTypeWrapper.hh"
#include "Interpreter.hh"
#include "OPCode.hh"
#include "builtin/BuiltIn.hh"
#include "dynlib/DynLibLoader.hh"
#include "dynlib/DynLib.hh"
#include "fmt/core.h"
#include "ir/QuadCollecti... | 29.688604 | 129 | 0.615863 | [
"vector"
] |
fe40c297252e5756bd112ffcbf86671ecbab22b3 | 687 | cpp | C++ | Courses/100 - Algorithms on Strings/week2_BWT_suffix_arrays/bwtinverse/bwtinverse.cpp | aKhfagy/Data-Structures-and-Algorithms-Specialization | 3f5582f10c55e108add47292fa40e0eda6910e2d | [
"CC0-1.0"
] | 1 | 2021-01-25T09:56:15.000Z | 2021-01-25T09:56:15.000Z | Courses/100 - Algorithms on Strings/week2_BWT_suffix_arrays/bwtinverse/bwtinverse.cpp | aKhfagy/data-structures-algorithms | 3f5582f10c55e108add47292fa40e0eda6910e2d | [
"CC0-1.0"
] | null | null | null | Courses/100 - Algorithms on Strings/week2_BWT_suffix_arrays/bwtinverse/bwtinverse.cpp | aKhfagy/data-structures-algorithms | 3f5582f10c55e108add47292fa40e0eda6910e2d | [
"CC0-1.0"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <utility>
using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::vector;
using std::pair;
using std::make_pair;
string InverseBWT(const string& bwt) {
string text = "";
vector<pair<char, int> > col(bwt.... | 16.756098 | 43 | 0.606987 | [
"vector"
] |
fe433a248a3a13619fb7009ae36655476492cb80 | 17,935 | cc | C++ | src/benchmark/etc_bench.cc | calvincaulfield/lib_calvin | cecf2d8b9cc7b6a4e7f269d0e94e0b80774fc30b | [
"Apache-2.0"
] | null | null | null | src/benchmark/etc_bench.cc | calvincaulfield/lib_calvin | cecf2d8b9cc7b6a4e7f269d0e94e0b80774fc30b | [
"Apache-2.0"
] | null | null | null | src/benchmark/etc_bench.cc | calvincaulfield/lib_calvin | cecf2d8b9cc7b6a4e7f269d0e94e0b80774fc30b | [
"Apache-2.0"
] | null | null | null | #include <vector>
#include <string>
#include <algorithm>
#include <random>
#include <unordered_set>
#include "random.h"
#include "etc_bench.h"
#include "bench.h"
#include "stopwatch.h"
#include "intro_sort.h"
#include "merge_sort.h"
using namespace lib_calvin_benchmark::etc;
void lib_calvin_benchmark::etc::etc_benc... | 25.992754 | 111 | 0.638528 | [
"vector"
] |
1cffbe397fa079bf648fc584a5313f0db9ddcf15 | 14,221 | cc | C++ | system.cc | yonsei-icsl/RelSim | 33ff9009ca679d1fa6f23b53de188e5af3890f7d | [
"BSD-3-Clause"
] | null | null | null | system.cc | yonsei-icsl/RelSim | 33ff9009ca679d1fa6f23b53de188e5af3890f7d | [
"BSD-3-Clause"
] | null | null | null | system.cc | yonsei-icsl/RelSim | 33ff9009ca679d1fa6f23b53de188e5af3890f7d | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <vector>
#include <thread>
#include "system.h"
#include "use.h"
using namespace std;
rel_system_t::rel_system_t() :
target_mttf(0.0) {
// Nothing to do
}
rel_system_t::~rel_system_t() {
// Delete models
for(size_t m = 0; m < models.size(); m++) {
delete models[m]... | 34.941032 | 92 | 0.532382 | [
"vector",
"model"
] |
e80a8c563a91a1bbcdbd1773535f5b8b5a62174a | 2,001 | cpp | C++ | LeetCode/ThousandOne/0140-word_berak_2.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0140-word_berak_2.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0140-word_berak_2.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 140. 单词拆分 II
给定一个非空字符串 s 和一个包含非空单词列表的字典 wordDict,在字符串中增加空格来构建一个句子,使得句子中所有的单词都在词典中。
返回所有这些可能的句子。
说明:
分隔时可以重复使用字典中的单词。
你可以假设字典中没有重复的单词。
示例 1:
输入:
s = "catsanddog"
wordDict = ["cat", "cats", "and", "sand", "dog"]
输出:
[
"cats and dog",
"cat sand dog"
]
示例 2:
输入:
s = "pineapplepenapple"
... | 18.877358 | 92 | 0.598701 | [
"vector"
] |
e80cf165bf11ad9925cdc6eb59251c705340c57e | 8,008 | cpp | C++ | src/old/RouletteLFO.cpp | miRackModular/FrozenWasteland | 2e21f41cb121c2a4036b509a26061bf7981d4d9a | [
"CC0-1.0"
] | null | null | null | src/old/RouletteLFO.cpp | miRackModular/FrozenWasteland | 2e21f41cb121c2a4036b509a26061bf7981d4d9a | [
"CC0-1.0"
] | null | null | null | src/old/RouletteLFO.cpp | miRackModular/FrozenWasteland | 2e21f41cb121c2a4036b509a26061bf7981d4d9a | [
"CC0-1.0"
] | null | null | null | #undef V1_COMPAT
#include <string.h>
#include "../FrozenWasteland.hpp"
#include "dsp/digital.hpp"
#define BUFFER_SIZE 512
namespace old {
struct RouletteLFO : Module {
enum ParamIds {
FIXED_RADIUS_PARAM,
ROTATING_RADIUS_PARAM,
DISTANCE_PARAM,
FREQUENCY_PARAM,
EPI_HYPO_PARAM,
FIXED_D_PARAM,
NUM_PARAMS
... | 31.777778 | 145 | 0.691059 | [
"model"
] |
e80e9d2fb878a89203bb1ed79a7c8211a0955852 | 878 | hpp | C++ | include/boost/simd/function/fast_rsqrt.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | include/boost/simd/function/fast_rsqrt.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | include/boost/simd/function/fast_rsqrt.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | //==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
@copyright 2016 J.T. Lapreste
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
... | 26.606061 | 100 | 0.587699 | [
"object"
] |
e8127577d413d5c6224d485546cbfa80b9ee2df0 | 6,322 | cpp | C++ | sources/main.cpp | Gyebro/aoc18 | 6c606a84f10496366611cd295d049fb2b3beefd4 | [
"MIT"
] | null | null | null | sources/main.cpp | Gyebro/aoc18 | 6c606a84f10496366611cd295d049fb2b3beefd4 | [
"MIT"
] | null | null | null | sources/main.cpp | Gyebro/aoc18 | 6c606a84f10496366611cd295d049fb2b3beefd4 | [
"MIT"
] | null | null | null | #include <iostream>
#include "config.h"
#include "days.h"
#include "common.h"
using namespace std;
int main() {
#ifndef RUN_BENCHMARKS
#ifdef DAY01
day01("day01.txt");
day01("day01.txt", false);
#endif
#ifdef DAY02
day02("day02.txt");
day02("day02.txt", false);
#endif
#ifdef DAY03
day03("day0... | 24.503876 | 96 | 0.54777 | [
"vector"
] |
e8168c724018e96672c1297e16d8a55468f1d5d9 | 4,340 | cpp | C++ | dev/Gems/ImageProcessing/Code/Source/AtlasBuilder/AtlasBuilderComponent.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 8 | 2019-10-07T16:33:47.000Z | 2020-12-07T03:59:58.000Z | dev/Gems/ImageProcessing/Code/Source/AtlasBuilder/AtlasBuilderComponent.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | null | null | null | dev/Gems/ImageProcessing/Code/Source/AtlasBuilder/AtlasBuilderComponent.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 5 | 2020-08-27T20:44:18.000Z | 2021-08-21T22:54:11.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 43.838384 | 163 | 0.734101 | [
"vector"
] |
e819e4964410a6d4028938f7aa002e9bf870f825 | 1,153 | cpp | C++ | test/ut_ts_packet.cpp | sergeyrachev/sandstream | bad2c90f075f1abdc027dec9f47875239ce99bf3 | [
"MIT"
] | null | null | null | test/ut_ts_packet.cpp | sergeyrachev/sandstream | bad2c90f075f1abdc027dec9f47875239ce99bf3 | [
"MIT"
] | null | null | null | test/ut_ts_packet.cpp | sergeyrachev/sandstream | bad2c90f075f1abdc027dec9f47875239ce99bf3 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "ts_packet.h"
using challenge::ts_packet_t;
TEST(ts_packet, parse_itself_no_adaptation_field_no_pusi){
const size_t ts_packet_header_length = 4;
const std::array<uint8_t, ts_packet_t::ts_packet_size> content = {0x47, 0x00, 0x21, 0x11, 0x01 };
ts_packet_t packet(content.... | 36.03125 | 149 | 0.751951 | [
"vector"
] |
e8218386396c8ba83bc4d1455c61facf4d72fcbd | 4,123 | cpp | C++ | src/equation/cg.cpp | rigarash/monolish-debian-package | 70b4917370184bcf07378e1907c5239a1ad9579b | [
"Apache-2.0"
] | null | null | null | src/equation/cg.cpp | rigarash/monolish-debian-package | 70b4917370184bcf07378e1907c5239a1ad9579b | [
"Apache-2.0"
] | 3 | 2021-07-08T02:02:27.000Z | 2021-09-15T08:36:12.000Z | src/equation/cg.cpp | termoshtt/monolish | 1cba60864002b55bc666da9baa0f8c2273578e01 | [
"Apache-2.0"
] | 1 | 2021-04-06T07:12:11.000Z | 2021-04-06T07:12:11.000Z | #include "../../include/monolish_blas.hpp"
#include "../../include/monolish_equation.hpp"
#include "../../include/monolish_vml.hpp"
#include "../internal/monolish_internal.hpp"
#include <fstream>
#include <iomanip>
#include <string>
namespace monolish {
template <typename MATRIX, typename T>
int equation::CG<MATRIX,... | 32.984 | 79 | 0.63643 | [
"vector"
] |
e8252015bd03a147914ede2bae518b5177964b46 | 11,264 | cpp | C++ | files/stripper/main.cpp | endlessm/freedesktop-sdk | 3bfc8a401096a4a0a660a7276a8ceae734aac79e | [
"MIT"
] | null | null | null | files/stripper/main.cpp | endlessm/freedesktop-sdk | 3bfc8a401096a4a0a660a7276a8ceae734aac79e | [
"MIT"
] | null | null | null | files/stripper/main.cpp | endlessm/freedesktop-sdk | 3bfc8a401096a4a0a660a7276a8ceae734aac79e | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2019 Codethink Ltd.
*
* 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, p... | 28.808184 | 105 | 0.560369 | [
"vector"
] |
e8289daf308c6611fd18ec477c93a0473cd46dd1 | 918 | cpp | C++ | LUCKYSTR.cpp | anant-agarwal/codechef | 33e73300f02830c3897ffe2ace95938b56d58f92 | [
"MIT"
] | null | null | null | LUCKYSTR.cpp | anant-agarwal/codechef | 33e73300f02830c3897ffe2ace95938b56d58f92 | [
"MIT"
] | null | null | null | LUCKYSTR.cpp | anant-agarwal/codechef | 33e73300f02830c3897ffe2ace95938b56d58f92 | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<vector>
#include<cstring>
#include<algorithm>
using namespace std;
vector<string>v;
int is(string s, string v);
int chk(string s)
{
if(s.size() >=47)
return 1;
int k=v.size();
for(int i=0;i<k;i++)
{
/* for(int j=0;j<s.size()-v[i].size();j++)
{
int fl=0;
for... | 13.701493 | 49 | 0.509804 | [
"vector"
] |
e836c3e89f93ec493521657520b4d44ac237f4bf | 21,462 | hpp | C++ | src/serializable.hpp | AggroBird/propane | 83134d11f6a90798db8937761ab707d95c520f1b | [
"MIT"
] | 3 | 2021-02-28T12:52:43.000Z | 2021-12-31T00:12:48.000Z | src/serializable.hpp | AggroBird/propane | 83134d11f6a90798db8937761ab707d95c520f1b | [
"MIT"
] | null | null | null | src/serializable.hpp | AggroBird/propane | 83134d11f6a90798db8937761ab707d95c520f1b | [
"MIT"
] | null | null | null | #ifndef _HEADER_SERIALIZABLE
#define _HEADER_SERIALIZABLE
#include "propane_block.hpp"
#include "block_writer.hpp"
#include "common.hpp"
#include <vector>
#include <map>
#include <string_view>
#include <type_traits>
namespace propane
{
namespace serialization
{
// Get elements
template<typena... | 51.591346 | 221 | 0.661169 | [
"object",
"vector"
] |
e83f069ede5e6dfe084ccf6e3859749c1a600940 | 1,916 | cpp | C++ | TOI16/Programming TH/1015.cpp | mrmuffinnxz/TOI-preparation | 85a7d5b70d7fc661950bbb5de66a6885a835e755 | [
"MIT"
] | null | null | null | TOI16/Programming TH/1015.cpp | mrmuffinnxz/TOI-preparation | 85a7d5b70d7fc661950bbb5de66a6885a835e755 | [
"MIT"
] | null | null | null | TOI16/Programming TH/1015.cpp | mrmuffinnxz/TOI-preparation | 85a7d5b70d7fc661950bbb5de66a6885a835e755 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#include<vector>
using namespace std;
int floadfill(int *v ,int x,int y,int prevc, int newc,int n)
{
if(x<0||y<0||x>=n||y>=n) return 0;
if(*(v+x*n+y)!=prevc) return 0;
int ans=0;
if(*(v+x*n+y)!=0)
{
ans++;
*(v+x*n+y)=newc;
}
else return 0;
ans+=floadfill(v,x+1,y,prevc,newc,n);
... | 24.253165 | 80 | 0.489562 | [
"vector"
] |
e842764a2f1e4bfda0faaa13e01d1b9ff9a758c9 | 1,093 | cpp | C++ | interview_questions/question2.cpp | perryizgr8/scratchpad | d7dbd65d53fd0936df6e9112b9468855b9c5089e | [
"MIT"
] | null | null | null | interview_questions/question2.cpp | perryizgr8/scratchpad | d7dbd65d53fd0936df6e9112b9468855b9c5089e | [
"MIT"
] | null | null | null | interview_questions/question2.cpp | perryizgr8/scratchpad | d7dbd65d53fd0936df6e9112b9468855b9c5089e | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include <iostream>
#include <fstream>
#include <vector>
int main()
{
int64_t num = 0, store = 0;
std::vector <int> res;
std::cin >> num;
store = num;
if (num == 0) {
std::cout << -1;
//std::cin >> num; //to wait
return 0;
}
else if (num == 1) {
std::cout << 1;
//std::cin >> num; /... | 15.84058 | 31 | 0.467521 | [
"vector"
] |
e843fe67051c2d301b7725d108148f7887de416f | 933 | cpp | C++ | codes/algorithms/strings/cpp/anagrams.cpp | shuvamkumar/first-pr-Hacktoberfest--2019 | 39a4c2e64fca58ea530263f9c4f50cbf55aaf883 | [
"MIT"
] | 8 | 2019-10-09T18:55:05.000Z | 2020-09-18T05:44:00.000Z | codes/algorithms/strings/cpp/anagrams.cpp | shuvamkumar/first-pr-Hacktoberfest--2019 | 39a4c2e64fca58ea530263f9c4f50cbf55aaf883 | [
"MIT"
] | 2 | 2019-10-18T14:22:30.000Z | 2020-09-30T08:36:36.000Z | codes/algorithms/strings/cpp/anagrams.cpp | shuvamkumar/first-pr-Hacktoberfest--2019 | 39a4c2e64fca58ea530263f9c4f50cbf55aaf883 | [
"MIT"
] | 55 | 2019-10-09T18:11:17.000Z | 2021-02-01T18:06:20.000Z | #include <bits/stdc++.h>
using namespace std;
bool isAnagram(string a, string b)
{
sort(a.begin(),a.end());
sort(b.begin(),b.end());
if(a.compare(b)==0)
return true;
return false;
}
vector<int> findAnagrams(string arr[], int n)
{
vector<int> v;
for(int i=0;i<n-1;i++)
{
for(... | 20.733333 | 50 | 0.460879 | [
"vector"
] |
e845873fb0629ac25194048807bf94ebf0e09a17 | 6,130 | cpp | C++ | CLocalplayer.cpp | spyrothelegend/Mogelmodul-Recode | cc69b31489ba16e256e1227754989b874dfb8c95 | [
"MIT"
] | 1 | 2018-06-10T16:22:15.000Z | 2018-06-10T16:22:15.000Z | CLocalplayer.cpp | spyrothelegend/Mogelmodul-Recode | cc69b31489ba16e256e1227754989b874dfb8c95 | [
"MIT"
] | null | null | null | CLocalplayer.cpp | spyrothelegend/Mogelmodul-Recode | cc69b31489ba16e256e1227754989b874dfb8c95 | [
"MIT"
] | null | null | null | #include "Includes.h"
#include "CLocalplayer.h"
#include <vector>
#include <unordered_set>
typedef struct {
float x, y, z;
}Vector;
uint32_t CLocalplayer::getLocal()
{
return g_pMemory->Read< uint32_t >(g_pMemory->getClientAddress() + Offsets::signatures::dwLocalPlayer);
}
int CLocalplayer::g... | 23.396947 | 134 | 0.688091 | [
"vector"
] |
e84e4c5228c8d1091a456e3f4fe2206262480938 | 319 | cpp | C++ | MCommandCPP/MStd.cpp | Minamin1234/MCommandCPP | 40fdd4650bc577154a9d91bfa22c3884287ce91e | [
"MIT"
] | null | null | null | MCommandCPP/MStd.cpp | Minamin1234/MCommandCPP | 40fdd4650bc577154a9d91bfa22c3884287ce91e | [
"MIT"
] | 1 | 2022-01-17T04:57:44.000Z | 2022-01-17T07:00:00.000Z | MCommandCPP/MStd.cpp | Minamin1234/MCommandCPP | 40fdd4650bc577154a9d91bfa22c3884287ce91e | [
"MIT"
] | null | null | null | #include "MStd.h"
MStd::MStd()
{
this->ModuleName = "std";
this->Commands.push_back("print");
this->Commands.push_back("help");
}
void MStd::ExecuteCommand(vector<string> args)
{
if (args[1] == this->Commands[0])
{
cout << args[2] << endl;
}
else if (args[1] == this->Commands[1])
{
this->ShowHelp();
}
} | 15.95 | 46 | 0.611285 | [
"vector"
] |
e85202f22f3f5a25c407084dbe0a798f681f7f80 | 6,200 | cpp | C++ | src/core/dummy/DummyCatalog.cpp | EricKTCheung/dmlite | 7fe31e16fc18e3c3d8b048a3507f7769ef3f8a9d | [
"Apache-2.0"
] | null | null | null | src/core/dummy/DummyCatalog.cpp | EricKTCheung/dmlite | 7fe31e16fc18e3c3d8b048a3507f7769ef3f8a9d | [
"Apache-2.0"
] | null | null | null | src/core/dummy/DummyCatalog.cpp | EricKTCheung/dmlite | 7fe31e16fc18e3c3d8b048a3507f7769ef3f8a9d | [
"Apache-2.0"
] | null | null | null | /// @file core/dummy/DummyCatalog.cpp
/// @brief DummyCatalog implementation.
/// @details It makes sense as a base for other decorator plug-ins.
/// @author Alejandro Álvarez Ayllón <aalvarez@cern.ch>
#include <dmlite/cpp/dummy/DummyCatalog.h>
using namespace dmlite;
/// Little of help here to avoid redundan... | 20.805369 | 114 | 0.719032 | [
"vector"
] |
e8598873bd577dd202551133df374f30c060046b | 4,435 | cpp | C++ | src/db/redisdb/client/RedisMng.cpp | yuanmartin/ubiquitous-perception | 1f9ca8947523e71259c9736eed7c62c525eb77d8 | [
"MulanPSL-1.0"
] | null | null | null | src/db/redisdb/client/RedisMng.cpp | yuanmartin/ubiquitous-perception | 1f9ca8947523e71259c9736eed7c62c525eb77d8 | [
"MulanPSL-1.0"
] | null | null | null | src/db/redisdb/client/RedisMng.cpp | yuanmartin/ubiquitous-perception | 1f9ca8947523e71259c9736eed7c62c525eb77d8 | [
"MulanPSL-1.0"
] | null | null | null | #include "RedisMng.h"
#include "log4cxx/Loging.h"
using namespace std;
using namespace REDIS_DB;
using namespace common_cmmobj;
using namespace common_template;
const int s32MaxDefaultConnections = 20;
const int s32InitDefaultConnections = 10;
const int nDefaultRedisPort = 47393;
const string strDefaultRed... | 25.635838 | 181 | 0.703269 | [
"vector"
] |
e8736a8ef6bf2081c4041ccbc22c165960f749b1 | 3,244 | cpp | C++ | ecs/src/main.cpp | Xikeb/elSandbox | f0d2474672016a87aae9720b6ee9346904f21cd2 | [
"MIT"
] | null | null | null | ecs/src/main.cpp | Xikeb/elSandbox | f0d2474672016a87aae9720b6ee9346904f21cd2 | [
"MIT"
] | null | null | null | ecs/src/main.cpp | Xikeb/elSandbox | f0d2474672016a87aae9720b6ee9346904f21cd2 | [
"MIT"
] | null | null | null | #include "Manager.hpp"
#include "Entity.hpp"
#include "el/detail/pretty_print.hpp"
#include <iostream>
#include <string>
#include <type_traits>
#include <chrono>
using namespace std;
using namespace std::chrono;
#include "Scheduler.hpp"
namespace test {
struct Vector2i {
Vector2i(int x = 0, int y = 0): x(x), y(y) ... | 22.685315 | 89 | 0.616215 | [
"transform"
] |
e8781e79c162b61e243d1193b359837f98b95950 | 1,107 | cpp | C++ | Codeforces/CF1611F.cpp | Nickel-Angel/Coding-Practice | 6fb70e9c9542323f82a9a8714727cc668ff58567 | [
"MIT"
] | null | null | null | Codeforces/CF1611F.cpp | Nickel-Angel/Coding-Practice | 6fb70e9c9542323f82a9a8714727cc668ff58567 | [
"MIT"
] | 1 | 2021-11-18T15:10:29.000Z | 2021-11-20T07:13:31.000Z | Codeforces/CF1611F.cpp | Nickel-Angel/ACM-and-OI | 79d13fd008c3a1fe9ebf35329aceb1fcb260d5d9 | [
"MIT"
] | null | null | null | /*
* @author Nickel_Angel (1239004072@qq.com)
* @copyright Copyright (c) 2021
*/
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <vector>
typedef long long ll;
using std::min;
using std::max;
using std::sort;
using std::swap;
const int maxn = 2e5 + 10;
int n, s, a[maxn];
int q[ma... | 16.772727 | 44 | 0.394761 | [
"vector"
] |
e8790bf6b52ebfaebb1d95124a5c2a4bd522ae1d | 3,921 | cc | C++ | code/qttoolkit/nody/shady/code/project/shadyproject.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/qttoolkit/nody/shady/code/project/shadyproject.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/qttoolkit/nody/shady/code/project/shadyproject.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// shadyproject.cc
// (C) 2015-2016 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "shadyproject.h"
#include "scene/nodescene.h"
#in... | 28.413043 | 117 | 0.541954 | [
"object"
] |
e87d576f6f56f54aeb8bc31641e1e513cadbb4e0 | 2,625 | hpp | C++ | batch-testing/BatchEnvironment.hpp | iauns/cpm-gl-batch-testing | fc60f90cf98159d8d0e77d928b038162e7a4ef93 | [
"MIT"
] | 1 | 2016-04-06T00:18:28.000Z | 2016-04-06T00:18:28.000Z | batch-testing/BatchEnvironment.hpp | iauns/cpm-gl-batch-testing | fc60f90cf98159d8d0e77d928b038162e7a4ef93 | [
"MIT"
] | null | null | null | batch-testing/BatchEnvironment.hpp | iauns/cpm-gl-batch-testing | fc60f90cf98159d8d0e77d928b038162e7a4ef93 | [
"MIT"
] | null | null | null | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2013 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the... | 29.829545 | 80 | 0.744381 | [
"vector"
] |
e88efa117ecd2dea247b3bc806cbfb0b7bc43848 | 35,673 | cc | C++ | src/enc/partitioner.cc | RReverser/libwebp2 | c90b5b476004c9a98731ae1c175cebab5de50fbf | [
"Apache-2.0"
] | 4 | 2020-11-10T17:46:57.000Z | 2022-03-22T06:24:17.000Z | src/enc/partitioner.cc | RReverser/libwebp2 | c90b5b476004c9a98731ae1c175cebab5de50fbf | [
"Apache-2.0"
] | null | null | null | src/enc/partitioner.cc | RReverser/libwebp2 | c90b5b476004c9a98731ae1c175cebab5de50fbf | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 41.003448 | 80 | 0.631037 | [
"vector"
] |
e88f5a1502a29bf353ea9fbdcfaed1c87c44c1b3 | 2,097 | cpp | C++ | object/src/object.cpp | pierrebai/dak | 3da144aecfc941efe10abe0167b1d3a838a6a0d5 | [
"MIT"
] | null | null | null | object/src/object.cpp | pierrebai/dak | 3da144aecfc941efe10abe0167b1d3a838a6a0d5 | [
"MIT"
] | null | null | null | object/src/object.cpp | pierrebai/dak | 3da144aecfc941efe10abe0167b1d3a838a6a0d5 | [
"MIT"
] | null | null | null | #include <dak/object/object.h>
#include <dak/object/transaction.h>
namespace dak::object
{
//////////////////////////////////////////////////////////////////////////
//
// Modifications.
object_t& object_t::operator +=(const object_t & an_obj)
{
append(an_obj);
return *this;
}
void o... | 20.163462 | 77 | 0.526466 | [
"object"
] |
e892b1b7b1b7621a692842ab34d7a594fcf2a7ed | 1,262 | cpp | C++ | lab2/greatestproduct/GreatestProduct.cpp | Adrjanjan/JiMP-Exercises | 0c5de5878bcf0ede27fedcdf3cebbe081679e180 | [
"MIT"
] | null | null | null | lab2/greatestproduct/GreatestProduct.cpp | Adrjanjan/JiMP-Exercises | 0c5de5878bcf0ede27fedcdf3cebbe081679e180 | [
"MIT"
] | null | null | null | lab2/greatestproduct/GreatestProduct.cpp | Adrjanjan/JiMP-Exercises | 0c5de5878bcf0ede27fedcdf3cebbe081679e180 | [
"MIT"
] | null | null | null | //
// Created by adrja on 16.03.2018.
//
#include "GreatestProduct.h"
int max(int x1, int x2) {
return x1 > x2 ? x1 : x2;
}
int GreatestProduct(const std::vector<int> &numbers, int k) {
if (numbers.empty()) {
return 0;
}
std::vector<int> new_vector(numbers);
int result = 1;
sort(new_v... | 28.681818 | 100 | 0.530903 | [
"vector"
] |
e89ac1cff9d84b468bcffbe3d4528b991d05e322 | 3,710 | hpp | C++ | include/utility/test/throwing.hpp | rogiervd/utility | 10a3f45ee5bdedd4bbe6fca973b5bb44e142c80f | [
"Apache-2.0"
] | null | null | null | include/utility/test/throwing.hpp | rogiervd/utility | 10a3f45ee5bdedd4bbe6fca973b5bb44e142c80f | [
"Apache-2.0"
] | null | null | null | include/utility/test/throwing.hpp | rogiervd/utility | 10a3f45ee5bdedd4bbe6fca973b5bb44e142c80f | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2009, 2014 Rogier van Dalen.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | 32.26087 | 79 | 0.649865 | [
"object"
] |
e89e941f6f50f800820956d36fc2955adb59ad8e | 11,556 | cpp | C++ | src/main.cpp | jake314159/tiny-ci | 125e9991124ebfb8311b70e024d19a8c0f6d61c4 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | jake314159/tiny-ci | 125e9991124ebfb8311b70e024d19a8c0f6d61c4 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | jake314159/tiny-ci | 125e9991124ebfb8311b70e024d19a8c0f6d61c4 | [
"Apache-2.0"
] | null | null | null |
#include <iostream>
#include <fstream>
#include <vector>
#include <unistd.h> //Unix timer. Note this makes this code Unix only!
#include <unistd.h> // Used to get home directory (Unix only)
#include <sys/types.h> //
#include <pwd.h> //
#include <time.h> //for the time
#include <boost/regex.hpp>
//... | 32.369748 | 147 | 0.483991 | [
"vector"
] |
e89f6a6c2103dedaa808c7cc85e06780d830f8e4 | 785 | hpp | C++ | src/Game.hpp | Rikora/Boids | 582c0c7de41062c23da83dae4115fa4a631dfca5 | [
"MIT"
] | null | null | null | src/Game.hpp | Rikora/Boids | 582c0c7de41062c23da83dae4115fa4a631dfca5 | [
"MIT"
] | null | null | null | src/Game.hpp | Rikora/Boids | 582c0c7de41062c23da83dae4115fa4a631dfca5 | [
"MIT"
] | null | null | null | #pragma once
#include <SFML/Graphics.hpp>
#define WIDTH 1000U
#define HEIGHT 600U
#define BOID_SIZE 7.f
#define BOID_VELOCITY 30.f
#define BOID_RADIUS 100.f
namespace fb
{
struct Boid
{
Boid(const sf::CircleShape& body, const sf::Vector2f& velocity = sf::Vector2f(BOID_VELOCITY, BOID_VELOCITY)) :
body(body), ... | 18.255814 | 113 | 0.703185 | [
"render",
"vector"
] |
e8a29ca56b21b3c7f39326ff24729ab794bbc993 | 12,602 | cpp | C++ | src/PSV_Core.cpp | MSeys/PSV_2DCore | b2d1bff669b3e920c03502ac44aabe0b4eca5874 | [
"MIT"
] | 8 | 2019-08-14T10:40:12.000Z | 2020-07-26T21:19:46.000Z | src/PSV_Core.cpp | MSeys/PSV_2DCore | b2d1bff669b3e920c03502ac44aabe0b4eca5874 | [
"MIT"
] | 1 | 2019-08-28T18:21:22.000Z | 2019-08-28T18:21:22.000Z | src/PSV_Core.cpp | MSeys/PSV_2DCore | b2d1bff669b3e920c03502ac44aabe0b4eca5874 | [
"MIT"
] | null | null | null | #include "PSV_Core.h"
#include "PSV_Utils.h"
#define PSV_HOLD_TIME 0.4
#define PSV_JOY_THRESHOLD 40
std::vector<std::string> PSV_ButtonStrings
{
"Cross", "Circle", "Square", "Triangle",
"L-Trigger", "R-Trigger",
"D-Pad Up", "D-Pad Down", "D-Pad Left", "D-Pad Right",
"Start", "Select"
};
std::vector... | 25.876797 | 139 | 0.654103 | [
"vector"
] |
e8a29fbbfa3720137dad38059a59a8f1a63713d5 | 10,943 | cpp | C++ | c/lib/miscl/Debug.cpp | knowm/nSpace | 1e5380a8778e013f7e8c44c130ba32e9668755ed | [
"BSD-3-Clause"
] | 2 | 2020-05-06T21:45:13.000Z | 2020-06-14T11:48:03.000Z | c/lib/miscl/Debug.cpp | knowm/nSpace | 1e5380a8778e013f7e8c44c130ba32e9668755ed | [
"BSD-3-Clause"
] | null | null | null | c/lib/miscl/Debug.cpp | knowm/nSpace | 1e5380a8778e013f7e8c44c130ba32e9668755ed | [
"BSD-3-Clause"
] | 3 | 2017-09-18T14:46:03.000Z | 2021-09-26T17:10:36.000Z | ////////////////////////////////////////////////////////////////////////
//
// DIST.CPP
//
// Implementation of the distribution node
//
////////////////////////////////////////////////////////////////////////
#include "miscl_.h"
#include <stdio.h>
// Globals
static WCHAR wDbgBfr[16384];
static WCHAR wDbg... | 25.627635 | 108 | 0.535776 | [
"render",
"object"
] |
e8a32ff2a69f2572bd4f2374730f485486072a1b | 60,299 | cpp | C++ | spencer-tracing/src/main/c++/NativeInterface.cpp | kaeluka/spencer-all | fc3e17137a3b7ee3f27d1316588c7db79451c468 | [
"MIT"
] | null | null | null | spencer-tracing/src/main/c++/NativeInterface.cpp | kaeluka/spencer-all | fc3e17137a3b7ee3f27d1316588c7db79451c468 | [
"MIT"
] | null | null | null | spencer-tracing/src/main/c++/NativeInterface.cpp | kaeluka/spencer-all | fc3e17137a3b7ee3f27d1316588c7db79451c468 | [
"MIT"
] | null | null | null | #define ENABLED
#include "Debug.h"
#include "NativeInterface.h"
#include <iostream>
#include "events.h"
#include "MonitorGuard.hh"
#include "tagging.hh"
#include <fcntl.h>
#include <unistd.h>
#include <capnp/serialize.h>
#include <sstream>
#include <netdb.h>
#include <netinet/tcp.h>
#include <stdlib.h>
#include <a... | 34.105769 | 236 | 0.643725 | [
"object",
"vector",
"transform"
] |
e8a4e445fd435627ffe4ea6515de810e5b6cb9b7 | 4,787 | hpp | C++ | fbmpy/include/fbmpy/fbmpy.hpp | kjetil-lye/fractional_brownian_motion | 0dfd8ddd8568e72f8d1eaf1ad37280cc6733be8b | [
"MIT"
] | 1 | 2021-06-24T12:37:03.000Z | 2021-06-24T12:37:03.000Z | fbmpy/include/fbmpy/fbmpy.hpp | kjetil-lye/fractional_brownian_motion | 0dfd8ddd8568e72f8d1eaf1ad37280cc6733be8b | [
"MIT"
] | null | null | null | fbmpy/include/fbmpy/fbmpy.hpp | kjetil-lye/fractional_brownian_motion | 0dfd8ddd8568e72f8d1eaf1ad37280cc6733be8b | [
"MIT"
] | 1 | 2019-06-14T15:48:05.000Z | 2019-06-14T15:48:05.000Z | /* Copyright (c) 2019 Kjetil Olsen Lye, ETH Zurich
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use... | 34.941606 | 81 | 0.687696 | [
"shape"
] |
e8a8c516025b59e85d7fd72d7e861edc45cfff07 | 26,321 | cpp | C++ | modules/datasets/src/metrics.cpp | jpjodoin/litiv | 435556bea20d60816aff492f50587b1a2d748b21 | [
"BSD-3-Clause"
] | 97 | 2015-10-16T04:32:33.000Z | 2022-03-29T07:04:02.000Z | modules/datasets/src/metrics.cpp | jpjodoin/litiv | 435556bea20d60816aff492f50587b1a2d748b21 | [
"BSD-3-Clause"
] | 19 | 2016-07-01T16:37:02.000Z | 2020-09-10T06:09:39.000Z | modules/datasets/src/metrics.cpp | jpjodoin/litiv | 435556bea20d60816aff492f50587b1a2d748b21 | [
"BSD-3-Clause"
] | 41 | 2015-11-17T05:59:23.000Z | 2022-02-16T09:30:28.000Z |
// This file is part of the LITIV framework; visit the original repository at
// https://github.com/plstcharles/litiv for more information.
//
// Copyright 2015 Pierre-Luc St-Charles; pierre-luc.st-charles<at>polymtl.ca
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file ... | 56.002128 | 272 | 0.644162 | [
"vector"
] |
e8b593bc4060ac6835519240d00a1a4a6647177d | 1,688 | cpp | C++ | term7/saio/saio/dijkstras_algorithm/dijkstras_algorithm.cpp | japanese-goblinn/labs | 47f5d59d28faf62c82535856e138b5cb98159fd0 | [
"MIT"
] | null | null | null | term7/saio/saio/dijkstras_algorithm/dijkstras_algorithm.cpp | japanese-goblinn/labs | 47f5d59d28faf62c82535856e138b5cb98159fd0 | [
"MIT"
] | null | null | null | term7/saio/saio/dijkstras_algorithm/dijkstras_algorithm.cpp | japanese-goblinn/labs | 47f5d59d28faf62c82535856e138b5cb98159fd0 | [
"MIT"
] | 1 | 2021-10-11T08:30:48.000Z | 2021-10-11T08:30:48.000Z | //
// main.cpp
// saio
//
// Created by Kirill Gorbachyonok on 10/4/20.
//
#include <iostream>
#include <vector>
#include <queue>
#include <fstream>
using namespace std;
#define print_with_endl(x) std::cout << x << "\n"
typedef std::pair<long long, long long> cost_and_node;
typedef std::pair<long long, long long... | 25.19403 | 61 | 0.527251 | [
"vector"
] |
e8bb9e7cc3e33e71aa16a80d8c028a38322ad7ee | 5,757 | cpp | C++ | Tests/GeometryShop/ebgraphSingleGrid/ebgraphSG.cpp | malvarado27/Amrex | 8d5c7a37695e7dc899386bfd1f6ac28221984976 | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-05-20T13:04:05.000Z | 2021-05-20T13:04:05.000Z | Tests/GeometryShop/ebgraphSingleGrid/ebgraphSG.cpp | malvarado27/Amrex | 8d5c7a37695e7dc899386bfd1f6ac28221984976 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Tests/GeometryShop/ebgraphSingleGrid/ebgraphSG.cpp | malvarado27/Amrex | 8d5c7a37695e7dc899386bfd1f6ac28221984976 | [
"BSD-3-Clause-LBNL"
] | null | null | null |
#include <cmath>
#include "AMReX_GeometryShop.H"
#include "AMReX_WrappedGShop.H"
#include "AMReX_BoxIterator.H"
#include "AMReX_ParmParse.H"
#include "AMReX_RealVect.H"
#include "AMReX_SphereIF.H"
#include "AMReX_EBGraph.H"
namespace amrex
{
////////////
int checkGraph(const EBGraph& a_ebgraph)
{
const Box& d... | 26.287671 | 101 | 0.549939 | [
"vector"
] |
e8bc95ad02bb9bcccb09e6f20e656ca1405fbfee | 6,271 | cc | C++ | src/devices/bin/driver_runtime/microbenchmarks/round_trips.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 2 | 2022-02-24T16:24:29.000Z | 2022-02-25T22:33:10.000Z | src/devices/bin/driver_runtime/microbenchmarks/round_trips.cc | PlugFox/fuchsia | 39afe5230d41628b3c736a6e384393df954968c8 | [
"BSD-2-Clause"
] | 2 | 2021-09-19T21:55:09.000Z | 2021-12-19T03:34:53.000Z | src/devices/bin/driver_runtime/microbenchmarks/round_trips.cc | PlugFox/fuchsia | 39afe5230d41628b3c736a6e384393df954968c8 | [
"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.
#include <lib/async/cpp/task.h>
#include <lib/fdf/cpp/channel.h>
#include <lib/fdf/cpp/channel_read.h>
#include <lib/fdf/cpp/dispatcher.h>
#include <lib/fd... | 36.888235 | 100 | 0.688885 | [
"vector"
] |
e8bf2e880a4c802ecaaf87780efaa672476ed756 | 11,236 | cpp | C++ | project/race3d/src/GUI/GUIBitmap.cpp | maximbilan/cpp_marmalade_sdk_the_pursuit_3d | b0e42bae7ba5c47c5bf2f9db22d973f3319cdb06 | [
"MIT"
] | 5 | 2015-01-05T17:03:00.000Z | 2016-04-07T07:43:32.000Z | project/race3d/src/GUI/GUIBitmap.cpp | maximbilan/cpp_marmalade_sdk_the_pursuit_3d | b0e42bae7ba5c47c5bf2f9db22d973f3319cdb06 | [
"MIT"
] | null | null | null | project/race3d/src/GUI/GUIBitmap.cpp | maximbilan/cpp_marmalade_sdk_the_pursuit_3d | b0e42bae7ba5c47c5bf2f9db22d973f3319cdb06 | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
// GUIBitmap.cpp
// Displays a bitmap on screen
//-----------------------------------------------------------------------------
#include "GUIBitmap.h"
// Library includes
#include "IwGx.h"
#include "IwTextParserITX.h"
// Project includes... | 32.011396 | 100 | 0.583037 | [
"render"
] |
e8c28fb2be247ad68a77dd47626fa03e2a3da335 | 2,159 | cpp | C++ | SourceCode/Final/Standalone/ProceduralCityGenerator/WaterData.cpp | JosephBarber96/FinalProject | 60400efa64c36b7cdbc975e0df7b937cbaae1d0b | [
"MIT"
] | 2 | 2019-05-18T21:37:17.000Z | 2021-07-16T04:08:23.000Z | SourceCode/Final/Standalone/ProceduralCityGenerator/WaterData.cpp | JosephBarber96/FinalProject | 60400efa64c36b7cdbc975e0df7b937cbaae1d0b | [
"MIT"
] | 1 | 2020-04-29T05:37:48.000Z | 2020-04-29T11:14:57.000Z | SourceCode/Final/Standalone/ProceduralCityGenerator/WaterData.cpp | JosephBarber96/FinalProject | 60400efa64c36b7cdbc975e0df7b937cbaae1d0b | [
"MIT"
] | 1 | 2021-07-16T04:08:31.000Z | 2021-07-16T04:08:31.000Z | #include <iostream>
#include "WaterData.h"
#include "DiamondSquare.h"
#include "Vec3.h"
WaterData::WaterData(int size)
{
fillWaterMap(size);
}
WaterData::~WaterData() {}
void WaterData::LoadFromTerrain(DiamondSquare* terrain, float percentage)
{
// First, make all of the values positive
float lowest = terrain->L... | 22.489583 | 99 | 0.64428 | [
"vector"
] |
e8c49818aa6089bee4875df510ad9e7012784480 | 69,837 | cpp | C++ | Modules/SemanticRelations/src/mitkRelationStorage.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T12:03:32.000Z | 2022-03-03T12:03:32.000Z | Modules/SemanticRelations/src/mitkRelationStorage.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T10:19:02.000Z | 2021-12-22T10:19:02.000Z | Modules/SemanticRelations/src/mitkRelationStorage.cpp | zhaomengxiao/MITK_lancet | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2020-11-27T09:41:18.000Z | 2020-11-27T09:41:18.000Z | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | 44.538903 | 219 | 0.747254 | [
"vector"
] |
e8cae52ca4c0d72633cba18a8e75bc60c88ded9c | 5,310 | cpp | C++ | plugins/mesh/src/gltf/glTFRenderTasksDataSource.cpp | voei/megamol | 569b7b58c1f9bc5405b79549b86f84009329f668 | [
"BSD-3-Clause"
] | null | null | null | plugins/mesh/src/gltf/glTFRenderTasksDataSource.cpp | voei/megamol | 569b7b58c1f9bc5405b79549b86f84009329f668 | [
"BSD-3-Clause"
] | null | null | null | plugins/mesh/src/gltf/glTFRenderTasksDataSource.cpp | voei/megamol | 569b7b58c1f9bc5405b79549b86f84009329f668 | [
"BSD-3-Clause"
] | null | null | null | #include "stdafx.h"
#include "glTFRenderTasksDataSource.h"
#include "tiny_gltf.h"
#include "vislib/graphics/gl/IncludeAllGL.h"
#include "vislib/math/Matrix.h"
#include "mesh/MeshCalls.h"
megamol::mesh::GlTFRenderTasksDataSource::GlTFRenderTasksDataSource()
: m_glTF_callerSlot("CallGlTFData", "Connects the data sour... | 27.801047 | 118 | 0.649906 | [
"mesh",
"render",
"vector",
"model",
"transform"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.