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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
60831b9513a2d3dcc94bf9957d9bb7aaa3073306 | 55,341 | cc | C++ | chrome/browser/extensions/api/downloads/downloads_api.cc | GnorTech/chromium | e1c7731d5bd099ca5544fcf8eda3867d4ce5bab5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2018-03-10T13:08:49.000Z | 2018-03-10T13:08:49.000Z | chrome/browser/extensions/api/downloads/downloads_api.cc | GnorTech/chromium | e1c7731d5bd099ca5544fcf8eda3867d4ce5bab5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/extensions/api/downloads/downloads_api.cc | GnorTech/chromium | e1c7731d5bd099ca5544fcf8eda3867d4ce5bab5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T07:19:31.000Z | 2020-11-04T07:19:31.000Z | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/api/downloads/downloads_api.h"
#include <algorithm>
#include <cctype>
#include <iterator>
#include <set>
#include... | 38.087405 | 80 | 0.731718 | [
"object",
"vector"
] |
608370353eea26484aec09b5b30b96e666b94952 | 4,711 | hpp | C++ | src/qasm-simulator-cpp/src/backends/rng_engine.hpp | Shark-y/qiskit-sdk-py | c1361b823dc1a3fab76545e62975c2afb02e442d | [
"Apache-2.0"
] | null | null | null | src/qasm-simulator-cpp/src/backends/rng_engine.hpp | Shark-y/qiskit-sdk-py | c1361b823dc1a3fab76545e62975c2afb02e442d | [
"Apache-2.0"
] | 38 | 2017-08-04T09:57:36.000Z | 2017-08-23T10:35:32.000Z | src/qasm-simulator-cpp/src/backends/rng_engine.hpp | Shark-y/qiskit-sdk-py | c1361b823dc1a3fab76545e62975c2afb02e442d | [
"Apache-2.0"
] | 1 | 2017-08-18T08:22:50.000Z | 2017-08-18T08:22:50.000Z | /*
Copyright (c) 2017 IBM Corporation. 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 agreed... | 29.080247 | 81 | 0.622798 | [
"vector"
] |
6085caa8f50b1b685ac9ddcf8974d07f0a4337de | 35,831 | cc | C++ | ns-allinone-3.27/ns-3.27/src/wifi/model/sta-wifi-mac.cc | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | 93 | 2019-04-21T08:22:26.000Z | 2022-03-30T04:26:29.000Z | ns-allinone-3.27/ns-3.27/src/wifi/model/sta-wifi-mac.cc | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | 12 | 2019-04-19T16:39:58.000Z | 2021-06-22T13:18:32.000Z | ns-allinone-3.27/ns-3.27/src/wifi/model/sta-wifi-mac.cc | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | 21 | 2019-05-27T19:36:12.000Z | 2021-07-26T02:37:41.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2006, 2009 INRIA
* Copyright (c) 2009 MIRKO BANCHI
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foun... | 36.825283 | 192 | 0.551868 | [
"model"
] |
60872d8b4c1ee1eca925a0c764e590058ee48952 | 468 | cc | C++ | cn/shu-zu-zhong-chu-xian-ci-shu-chao-guo-yi-ban-de-shu-zi-lcof.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | cn/shu-zu-zhong-chu-xian-ci-shu-chao-guo-yi-ban-de-shu-zi-lcof.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | cn/shu-zu-zhong-chu-xian-ci-shu-chao-guo-yi-ban-de-shu-zi-lcof.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | #include <vector>
class Solution
{
public:
int majorityElement(std::vector<int> &nums)
{
int cur_num = nums[0];
int freq = 1;
for (int i = 1; i < nums.size(); i++)
{
if (cur_num != nums[i])
freq--;
else
freq++;
... | 17.333333 | 47 | 0.363248 | [
"vector"
] |
608bca7198d2609c0a7bcc53a3a43752af6f7963 | 2,083 | cpp | C++ | src/Model.cpp | emctague/horre | e6631ecc10c17fba3e7938280c292181b18e7242 | [
"MIT"
] | null | null | null | src/Model.cpp | emctague/horre | e6631ecc10c17fba3e7938280c292181b18e7242 | [
"MIT"
] | null | null | null | src/Model.cpp | emctague/horre | e6631ecc10c17fba3e7938280c292181b18e7242 | [
"MIT"
] | null | null | null | // Created by Ethan McTague on 2019-09-22.
#include <string>
#include <fstream>
#include <vector>
#include <assimp/Importer.hpp>
#include <assimp/postprocess.h>
#include "Model.h"
Model::Model(ResourceSet *set, const std::string &path) {
Assimp::Importer importer;
const aiScene *scene = importer.ReadFile(Glob... | 37.872727 | 114 | 0.522804 | [
"mesh",
"vector",
"model",
"transform"
] |
608c28fb5da74bcd1015520c313b16b746bb8f01 | 8,495 | hpp | C++ | setup/xapp-sm-connector/src/xapp-mgmt/subs_mgmt.hpp | wineslab/colosseum-near-rt-ric | e41cd25e500c527ee60fd8095bb6f40e96b7ccce | [
"Apache-2.0"
] | 1 | 2022-02-24T21:40:00.000Z | 2022-02-24T21:40:00.000Z | setup/xapp-sm-connector/src/xapp-mgmt/subs_mgmt.hpp | wineslab/colosseum-near-rt-ric | e41cd25e500c527ee60fd8095bb6f40e96b7ccce | [
"Apache-2.0"
] | null | null | null | setup/xapp-sm-connector/src/xapp-mgmt/subs_mgmt.hpp | wineslab/colosseum-near-rt-ric | e41cd25e500c527ee60fd8095bb6f40e96b7ccce | [
"Apache-2.0"
] | null | null | null | /*
==================================================================================
Copyright (c) 2019-2020 AT&T Intellectual Property.
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 Licens... | 31.462963 | 205 | 0.717245 | [
"object"
] |
6095c9c1d0b8f2310ced48bdfdeaffe40207ca31 | 1,391 | hpp | C++ | src/kernels/cpu/caffe/blob.hpp | ViewFaceCore/TenniS | c1d21a71c1cd025ddbbe29924c8b3296b3520fc0 | [
"BSD-2-Clause"
] | null | null | null | src/kernels/cpu/caffe/blob.hpp | ViewFaceCore/TenniS | c1d21a71c1cd025ddbbe29924c8b3296b3520fc0 | [
"BSD-2-Clause"
] | null | null | null | src/kernels/cpu/caffe/blob.hpp | ViewFaceCore/TenniS | c1d21a71c1cd025ddbbe29924c8b3296b3520fc0 | [
"BSD-2-Clause"
] | null | null | null | //
// Created by kier on 2020/6/2.
//
#ifndef TENNIS_BLOB_HPP
#define TENNIS_BLOB_HPP
#include "core/tensor.h"
namespace ts {
namespace caffe {
template <typename T>
class Blob {
private:
using Dtype = T;
using self = Blob;
Tensor data_cpu;
pu... | 23.183333 | 67 | 0.465852 | [
"shape",
"vector"
] |
6096e09fbd173fb23311e38fb9d62c004b576195 | 130,902 | hpp | C++ | Code/Runtime/Source/Math/Matrix.hpp | Mu-L/Luna-Engine-0.6 | 05ae1037f0d173589a535eb6ec2964f20d80e5c1 | [
"MIT"
] | 167 | 2020-06-17T06:09:41.000Z | 2022-03-13T20:31:26.000Z | Code/Runtime/Source/Math/Matrix.hpp | Mu-L/Luna-Engine-0.6 | 05ae1037f0d173589a535eb6ec2964f20d80e5c1 | [
"MIT"
] | 2 | 2020-07-11T15:12:50.000Z | 2021-06-01T01:45:49.000Z | Code/Runtime/Source/Math/Matrix.hpp | Mu-L/Luna-Engine-0.6 | 05ae1037f0d173589a535eb6ec2964f20d80e5c1 | [
"MIT"
] | 22 | 2020-06-12T02:26:10.000Z | 2022-01-02T14:04:32.000Z | // Copyright 2018-2021 JXMaster. All rights reserved.
/*
* @file Matrix.hpp
* @author JXMaster
* @date 2019/1/5
*/
#pragma once
#include "Quaternion.hpp"
#include "Transform.hpp"
#include "SimdMatrix.hpp"
#include "SimdMisc.hpp"
namespace Luna
{
//using namespace Simd;
struct alignas(16) Float3x3
{
union
{
... | 24.938464 | 161 | 0.625804 | [
"object",
"vector",
"transform"
] |
60971e8335aa0795320895c8fefc18a37c88c389 | 2,144 | cpp | C++ | OTHERS/codejam practise/min scalar product.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | 6 | 2018-10-15T18:45:05.000Z | 2022-03-29T04:30:10.000Z | OTHERS/codejam practise/min scalar product.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | null | null | null | OTHERS/codejam practise/min scalar product.cpp | dipta007/Competitive-Programming | 998d47f08984703c5b415b98365ddbc84ad289c4 | [
"MIT"
] | 4 | 2018-01-07T06:20:07.000Z | 2019-08-21T15:45:59.000Z | #include <algorithm>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <... | 23.053763 | 76 | 0.557369 | [
"vector"
] |
6097a08c2f4d98991b484bcd3b4d9bc1c91ce73b | 2,423 | cpp | C++ | code/source/visual/entitylogic_model.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | 12 | 2015-01-12T00:19:20.000Z | 2021-08-05T10:47:20.000Z | code/source/visual/entitylogic_model.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | code/source/visual/entitylogic_model.cpp | crafn/clover | 586acdbcdb34c3550858af125e9bb4a6300343fe | [
"MIT"
] | null | null | null | #include "entitylogic_model.hpp"
#include "entity_def_model.hpp"
#include "entity_mgr.hpp"
#include "global/event.hpp"
#include "util/profiling.hpp"
#include "util/tuple.hpp"
namespace clover {
namespace visual {
ModelEntityLogic::ModelEntityLogic(const ModelEntityDef& def):
EntityLogic(def),
useCustomDrawPriority(... | 23.524272 | 74 | 0.695006 | [
"model"
] |
60980f4240d1cb25bbb2381a52477af618d78c85 | 1,388 | cpp | C++ | src/LowPassFilter.cpp | dwes7/bobble_controllers | 8d33153bdc33a7dc3bfbf9996df80a0ffde3dda2 | [
"BSD-3-Clause"
] | 64 | 2019-04-20T09:23:59.000Z | 2022-03-22T06:14:56.000Z | src/LowPassFilter.cpp | dwes7/bobble_controllers | 8d33153bdc33a7dc3bfbf9996df80a0ffde3dda2 | [
"BSD-3-Clause"
] | 13 | 2019-08-12T19:27:34.000Z | 2022-03-22T05:56:16.000Z | src/LowPassFilter.cpp | dwes7/bobble_controllers | 8d33153bdc33a7dc3bfbf9996df80a0ffde3dda2 | [
"BSD-3-Clause"
] | 18 | 2019-04-22T19:48:19.000Z | 2021-08-05T14:02:00.000Z | //
// Created by james on 3/28/20.
//
#include <bobble_controllers/LowPassFilter.h>
LowPassFilter::LowPassFilter(double Ts, double fc, double zeta) {
resetFilterParameters(Ts, fc, zeta);
}
void LowPassFilter::resetFilterParameters(double Ts, double fc, double zeta) {
/// Initialize buffers to 0
initBuffe... | 33.047619 | 92 | 0.620317 | [
"transform"
] |
6099022a23a64a3bea83675e1b3e428978d2adc1 | 9,123 | hpp | C++ | include/System/Security/Cryptography/TripleDES.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Security/Cryptography/TripleDES.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/System/Security/Cryptography/TripleDES.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Security.Cryptography.Symmet... | 59.24026 | 199 | 0.74208 | [
"object",
"vector"
] |
609abf8963e628a824ebe502a2ae559e63cd1c78 | 24,618 | cpp | C++ | src/asset_loader.cpp | atxi/Polymer | ca1bdb59ff425ec4496380ccf860ff7aaa86cab0 | [
"MIT"
] | 21 | 2020-12-14T05:25:41.000Z | 2022-03-23T15:30:19.000Z | src/asset_loader.cpp | atxi/Polymer | ca1bdb59ff425ec4496380ccf860ff7aaa86cab0 | [
"MIT"
] | 1 | 2021-01-27T17:56:16.000Z | 2021-01-28T17:31:30.000Z | src/asset_loader.cpp | atxi/Polymer | ca1bdb59ff425ec4496380ccf860ff7aaa86cab0 | [
"MIT"
] | null | null | null | #include "asset_loader.h"
#include "stb_image.h"
#include <cstdio>
#include <cstring>
namespace polymer {
constexpr size_t kTextureSize = 16 * 16 * 4;
u32 Hash(const char* str) {
u32 hash = 5381;
char c;
while (c = *str++) {
hash = hash * 33 ^ c;
}
return hash;
}
u32 Hash(const char* str, size_t l... | 31.40051 | 120 | 0.614307 | [
"render",
"model"
] |
609c0f90c5307922696eabf7a69f2709f4f16755 | 19,317 | cpp | C++ | source/loaders/js_loader/source/js_loader_impl.cpp | 0xAnarz/core | 0c9310d9c9c2074782b3641a639b1e1a931f1afe | [
"Apache-2.0"
] | 928 | 2018-12-26T22:40:59.000Z | 2022-03-31T12:17:43.000Z | source/loaders/js_loader/source/js_loader_impl.cpp | 0xAnarz/core | 0c9310d9c9c2074782b3641a639b1e1a931f1afe | [
"Apache-2.0"
] | 132 | 2019-03-01T21:01:17.000Z | 2022-03-17T09:00:42.000Z | source/loaders/js_loader/source/js_loader_impl.cpp | 0xAnarz/core | 0c9310d9c9c2074782b3641a639b1e1a931f1afe | [
"Apache-2.0"
] | 112 | 2019-01-15T09:36:11.000Z | 2022-03-12T06:39:01.000Z | /*
* Loader Library by Parra Studios
* A plugin for loading javascript code at run-time into a process.
*
* Copyright (C) 2016 - 2021 Vicente Eduardo Ferrer Garcia <vic798@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lice... | 21.802483 | 212 | 0.688306 | [
"object",
"vector"
] |
60a53f30fa8b0e66c99ce6695b610ebdaece0247 | 5,032 | cc | C++ | Alignment/Geners/test/cdump.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 1 | 2019-08-09T08:42:11.000Z | 2019-08-09T08:42:11.000Z | Alignment/Geners/test/cdump.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | Alignment/Geners/test/cdump.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 1 | 2019-04-03T19:23:27.000Z | 2019-04-03T19:23:27.000Z | // The following program dumps contents of an object catalog stored
// in a "geners" binary metafile to the standard output
#include <map>
#include <fstream>
#include <iostream>
#include "Alignment/Geners/interface/IOException.hh"
#include "Alignment/Geners/interface/CPP11_auto_ptr.hh"
#include "Alignment/Geners/inte... | 33.324503 | 97 | 0.564785 | [
"object",
"vector"
] |
60a9c9a5d98b6b01e2bc0b641814f950d16a384b | 82,476 | cpp | C++ | Analysis/src/Unifier.cpp | XanderYZZ/luau | 362428f8b4b6f5c9d43f4daf55bcf7873f536c3f | [
"MIT"
] | 1 | 2022-03-18T04:10:20.000Z | 2022-03-18T04:10:20.000Z | Analysis/src/Unifier.cpp | XanderYZZ/luau | 362428f8b4b6f5c9d43f4daf55bcf7873f536c3f | [
"MIT"
] | null | null | null | Analysis/src/Unifier.cpp | XanderYZZ/luau | 362428f8b4b6f5c9d43f4daf55bcf7873f536c3f | [
"MIT"
] | null | null | null | // This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
#include "Luau/Unifier.h"
#include "Luau/Common.h"
#include "Luau/RecursionCounter.h"
#include "Luau/Scope.h"
#include "Luau/TypePack.h"
#include "Luau/TypeUtils.h"
#include "Luau/TimeTrace.h"
#include ... | 33.857143 | 191 | 0.61299 | [
"shape",
"vector"
] |
60a9ca64a072a4ad903089b5d04624e4431914b5 | 2,905 | cpp | C++ | aws-cpp-sdk-greengrassv2/source/model/CloudComponentState.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-greengrassv2/source/model/CloudComponentState.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-greengrassv2/source/model/CloudComponentState.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/greengrassv2/model/CloudComponentState.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace A... | 31.576087 | 92 | 0.620654 | [
"model"
] |
60aadfea6e6af59eb98e56e8201968e05cd53d75 | 867 | hpp | C++ | src/GUI/DropDown.hpp | scawful/project-awful | ebf5908b4a9e9fc0b12bf24cb8c7e21983d88ba6 | [
"MIT"
] | 4 | 2021-05-12T15:02:40.000Z | 2021-06-04T23:01:16.000Z | src/GUI/DropDown.hpp | scawful/project-awful | ebf5908b4a9e9fc0b12bf24cb8c7e21983d88ba6 | [
"MIT"
] | null | null | null | src/GUI/DropDown.hpp | scawful/project-awful | ebf5908b4a9e9fc0b12bf24cb8c7e21983d88ba6 | [
"MIT"
] | 9 | 2021-05-13T21:54:52.000Z | 2021-12-11T01:55:55.000Z | #ifndef DropDown_hpp
#define DropDown_hpp
#include "../core.hpp"
#include "Button.hpp"
class DropDown
{
private:
float keytime;
float keytimeMax;
sf::Font& font;
Button* activeElement;
std::vector<Button*> list;
bool showList;
public:
DropDown(sf::Vector2f position, sf::Vector2f size,... | 24.771429 | 147 | 0.670127 | [
"render",
"vector"
] |
60b69da1d23e275e8c43da760db90444428c940e | 10,359 | hxx | C++ | odb-tests-2.4.0/common/section/basics/test.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-tests-2.4.0/common/section/basics/test.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-tests-2.4.0/common/section/basics/test.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | // file : common/section/basics/test.hxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef TEST_HXX
#define TEST_HXX
#include <string>
#include <vector>
#include <odb/core.hxx>
#include <odb/section.hxx>
#include <odb/vector.hxx>
#if... | 17.236273 | 79 | 0.602375 | [
"object",
"vector"
] |
60b7577b398a5caf1eff1e00f0f015a7470d03e9 | 4,860 | hpp | C++ | source/coo.hpp | cyanpelican/cs6235-gpu-hicoo | debcda712e60706b99001808196d43c8f19ce1f9 | [
"MIT"
] | 2 | 2020-07-10T05:30:21.000Z | 2020-07-10T05:30:27.000Z | source/coo.hpp | cyanpelican/cs6235-gpu-hicoo | debcda712e60706b99001808196d43c8f19ce1f9 | [
"MIT"
] | 4 | 2019-04-30T23:27:34.000Z | 2019-04-30T23:27:39.000Z | source/coo.hpp | cyanpelican/cs6235-gpu-hicoo | debcda712e60706b99001808196d43c8f19ce1f9 | [
"MIT"
] | null | null | null |
#ifndef COO_HPP
#define COO_HPP
#include <memory>
#include <fstream>
#include <iostream>
#include <vector>
#include <sstream>
#include <assert.h>
#include "common.hpp"
#include "dense.hpp"
struct CooPoint {
unsigned int x, y, z;
float value;
};
enum PointSorting {
UNSORTED,
XYZ,
ZYX,
Z_MORT... | 26.413043 | 122 | 0.589506 | [
"vector"
] |
60bbf39da7345e3cf6a68e63a8a38178405d6680 | 3,211 | cpp | C++ | quickstart/cpp/windows/translate-speech-to-text/helloworld/helloworld.cpp | LeeJAJA/cognitive-services-speech-sdk | 44076b1011d845867a55bc40cd250364657a1c6b | [
"MIT"
] | 1 | 2019-10-08T23:38:55.000Z | 2019-10-08T23:38:55.000Z | quickstart/cpp/windows/translate-speech-to-text/helloworld/helloworld.cpp | LeeJAJA/cognitive-services-speech-sdk | 44076b1011d845867a55bc40cd250364657a1c6b | [
"MIT"
] | 1 | 2021-12-09T23:05:00.000Z | 2021-12-09T23:05:00.000Z | quickstart/cpp/windows/translate-speech-to-text/helloworld/helloworld.cpp | LeeJAJA/cognitive-services-speech-sdk | 44076b1011d845867a55bc40cd250364657a1c6b | [
"MIT"
] | null | null | null | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
#include "pch.h"
// <code>
#include <iostream>
#include <vector>
#include <speechapi_cxx.h>
using namespace std;
using namespace Microsoft::CognitiveServices:... | 38.686747 | 109 | 0.66895 | [
"vector"
] |
60c214b3e2310529c38ab8396af4ce040f670e8c | 3,658 | cpp | C++ | apps/point_cloud/image_transport_plugins/compressed_depth_image_transport/src/compressed_depth_publisher.cpp | ramonidea/prl_wireless_perception | 69dd79d7b150dfc2be38d6e38ed650931564b03a | [
"MIT"
] | 742 | 2017-07-05T02:49:36.000Z | 2022-03-30T12:55:43.000Z | apps/point_cloud/image_transport_plugins/compressed_depth_image_transport/src/compressed_depth_publisher.cpp | ramonidea/prl_wireless_perception | 69dd79d7b150dfc2be38d6e38ed650931564b03a | [
"MIT"
] | 73 | 2017-07-06T12:50:51.000Z | 2022-03-07T08:07:07.000Z | apps/point_cloud/image_transport_plugins/compressed_depth_image_transport/src/compressed_depth_publisher.cpp | ramonidea/prl_wireless_perception | 69dd79d7b150dfc2be38d6e38ed650931564b03a | [
"MIT"
] | 425 | 2017-07-04T22:03:29.000Z | 2022-03-29T06:59:06.000Z | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 20012, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condi... | 42.534884 | 117 | 0.732094 | [
"vector"
] |
60c6b2bf6be7747e25bc4e7ea16406133b5e260b | 7,212 | cpp | C++ | ReactAndroid/build/third-party-ndk/folly/folly/test/MathTest.cpp | kimwoongkyu/react-native-0-36-1-woogie | 4fb2d44945a6305ae3ca87be3872f9432d16f1fb | [
"BSD-3-Clause"
] | 199 | 2016-09-08T03:44:56.000Z | 2022-03-19T04:18:30.000Z | ReactAndroid/build/third-party-ndk/folly/folly/test/MathTest.cpp | kimwoongkyu/react-native-0-36-1-woogie | 4fb2d44945a6305ae3ca87be3872f9432d16f1fb | [
"BSD-3-Clause"
] | 50 | 2016-09-07T23:44:14.000Z | 2022-02-16T16:50:25.000Z | ReactAndroid/build/third-party-ndk/folly/folly/test/MathTest.cpp | kimwoongkyu/react-native-0-36-1-woogie | 4fb2d44945a6305ae3ca87be3872f9432d16f1fb | [
"BSD-3-Clause"
] | 67 | 2016-09-19T10:18:45.000Z | 2022-02-16T09:42:47.000Z | /*
* Copyright 2016 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 29.198381 | 80 | 0.655158 | [
"vector"
] |
60cb69ac9d058b724fdd155e529d4774223f40fa | 1,155 | cpp | C++ | src/bt_composite_node.cpp | quabug/godot_behavior_tree | 9881a4977f87daf3d0506a9ad915cfbeb58b5f02 | [
"MIT"
] | 44 | 2015-01-20T15:44:30.000Z | 2021-11-13T04:39:12.000Z | src/bt_composite_node.cpp | quabug/godot_behavior_tree | 9881a4977f87daf3d0506a9ad915cfbeb58b5f02 | [
"MIT"
] | null | null | null | src/bt_composite_node.cpp | quabug/godot_behavior_tree | 9881a4977f87daf3d0506a9ad915cfbeb58b5f02 | [
"MIT"
] | 13 | 2015-01-10T19:16:15.000Z | 2021-03-08T19:09:08.000Z | #include "bt_composite_node.h"
void BTCompositeNode::add_child_node(BTNode& child, Vector<BehaviorTree::Node*>& node_hierarchy) {
BTNode* p_parent = get_parent() ? get_parent()->cast_to<BTNode>() : NULL;
ERR_EXPLAIN("Parent node is not a BTNode.");
ERR_FAIL_NULL(p_parent);
if (p_parent) {
node_hierarchy.push_bac... | 35 | 101 | 0.745455 | [
"vector"
] |
60cbd674872749cff34b15b064800756bb2f0280 | 5,302 | cpp | C++ | inference-engine/src/vpu/common/src/ngraph/transformations/dynamic_to_static_shape_matmul.cpp | monroid/openvino | 8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6 | [
"Apache-2.0"
] | 2,406 | 2020-04-22T15:47:54.000Z | 2022-03-31T10:27:37.000Z | inference-engine/src/vpu/common/src/ngraph/transformations/dynamic_to_static_shape_matmul.cpp | monroid/openvino | 8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6 | [
"Apache-2.0"
] | 4,948 | 2020-04-22T15:12:39.000Z | 2022-03-31T18:45:42.000Z | inference-engine/src/vpu/common/src/ngraph/transformations/dynamic_to_static_shape_matmul.cpp | monroid/openvino | 8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6 | [
"Apache-2.0"
] | 991 | 2020-04-23T18:21:09.000Z | 2022-03-31T18:40:57.000Z | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "vpu/ngraph/transformations/dynamic_to_static_shape_matmul.hpp"
#include "vpu/ngraph/operations/dynamic_shape_resolver.hpp"
#include "vpu/ngraph/utilities.hpp"
#include <vpu/utils/error.hpp>
#include "ngraph/graph_util.hp... | 55.810526 | 146 | 0.715579 | [
"shape",
"vector"
] |
f598fda019fea085177b1fa0243979d8efc31da4 | 148,515 | cpp | C++ | src/ast/ast_simulate.cpp | eguskov/daScript | faf2ae8ddfeab9e4a6cf9adbee738a8d9175a27c | [
"BSD-3-Clause"
] | null | null | null | src/ast/ast_simulate.cpp | eguskov/daScript | faf2ae8ddfeab9e4a6cf9adbee738a8d9175a27c | [
"BSD-3-Clause"
] | null | null | null | src/ast/ast_simulate.cpp | eguskov/daScript | faf2ae8ddfeab9e4a6cf9adbee738a8d9175a27c | [
"BSD-3-Clause"
] | null | null | null | #include "daScript/misc/platform.h"
#include "daScript/ast/ast.h"
#include "daScript/ast/ast_match.h"
#include "daScript/ast/ast_expressions.h"
#include "daScript/simulate/runtime_array.h"
#include "daScript/simulate/runtime_table_nodes.h"
#include "daScript/simulate/runtime_range.h"
#include "daScript/simulate/runti... | 47.877176 | 149 | 0.530391 | [
"vector"
] |
f599bb219782b4265d6462c03aef3fcedd4c28ae | 34,182 | cpp | C++ | apps/mysql-5.1.65/storage/ndb/tools/restore/Restore.cpp | vusec/firestarter | 2048c1f731b8f3c5570a920757f9d7730d5f716a | [
"Apache-2.0"
] | 3 | 2021-04-29T07:59:16.000Z | 2021-12-10T02:23:05.000Z | apps/mysql-5.1.65/storage/ndb/tools/restore/Restore.cpp | vusec/firestarter | 2048c1f731b8f3c5570a920757f9d7730d5f716a | [
"Apache-2.0"
] | null | null | null | apps/mysql-5.1.65/storage/ndb/tools/restore/Restore.cpp | vusec/firestarter | 2048c1f731b8f3c5570a920757f9d7730d5f716a | [
"Apache-2.0"
] | null | null | null | /* Copyright (C) 2003 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT AN... | 26.395367 | 160 | 0.64218 | [
"vector"
] |
f59fe1ce7c49e8c9e90360fc492dfad943db3b81 | 12,776 | cc | C++ | src/base/statistics.cc | takekoputa/gem5-sst | af966e28f96fd4670f3e294ff33c16b816c3ca47 | [
"BSD-3-Clause"
] | 1 | 2022-02-17T20:02:57.000Z | 2022-02-17T20:02:57.000Z | src/base/statistics.cc | takekoputa/gem5-sst | af966e28f96fd4670f3e294ff33c16b816c3ca47 | [
"BSD-3-Clause"
] | null | null | null | src/base/statistics.cc | takekoputa/gem5-sst | af966e28f96fd4670f3e294ff33c16b816c3ca47 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2019-2020 Arm Limited
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the... | 21.328881 | 73 | 0.603084 | [
"vector"
] |
f5a1f13c1b0f08a273c5d9321a40ac87b33f63f9 | 2,437 | hpp | C++ | libraries/chain/include/graphene/chain/seeder_object.hpp | f3chain/fff | 707bb1f0791206fe8f1ed9d610c1b6efa34d8bab | [
"Apache-2.0"
] | null | null | null | libraries/chain/include/graphene/chain/seeder_object.hpp | f3chain/fff | 707bb1f0791206fe8f1ed9d610c1b6efa34d8bab | [
"Apache-2.0"
] | null | null | null | libraries/chain/include/graphene/chain/seeder_object.hpp | f3chain/fff | 707bb1f0791206fe8f1ed9d610c1b6efa34d8bab | [
"Apache-2.0"
] | null | null | null | /* (c) 2016, 2021 FFF Services. For details refers to LICENSE.txt */
#pragma once
#include <graphene/chain/protocol/asset.hpp>
#include <graphene/db/object.hpp>
#include <graphene/db/generic_index.hpp>
#include <fc/reflect/reflect.hpp>
#include <stdint.h>
namespace graphene { namespace chain {
class seeder_objec... | 34.814286 | 124 | 0.664752 | [
"object"
] |
f5a2d3b217116fa0cda421ee58d5181f2c6b2bbd | 188,499 | cpp | C++ | tests/IResearch/IResearchViewNodeTest.cpp | JiMu-Bao/arangodb | d41e9b93e558cd65de1f015910655cbaf299fe64 | [
"Apache-2.0"
] | null | null | null | tests/IResearch/IResearchViewNodeTest.cpp | JiMu-Bao/arangodb | d41e9b93e558cd65de1f015910655cbaf299fe64 | [
"Apache-2.0"
] | null | null | null | tests/IResearch/IResearchViewNodeTest.cpp | JiMu-Bao/arangodb | d41e9b93e558cd65de1f015910655cbaf299fe64 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | 43.949405 | 80 | 0.628773 | [
"object",
"vector"
] |
f5a3cd22f41c0659c53bd9556b6e48b97d817ed8 | 3,692 | cc | C++ | tensorflow/core/common_runtime/eager/process_function_library_runtime.cc | abhaikollara/tensorflow | 4f96df3659696990cb34d0ad07dc67843c4225a9 | [
"Apache-2.0"
] | 7 | 2018-04-12T07:48:57.000Z | 2021-12-03T12:35:02.000Z | tensorflow/core/common_runtime/eager/process_function_library_runtime.cc | abhaikollara/tensorflow | 4f96df3659696990cb34d0ad07dc67843c4225a9 | [
"Apache-2.0"
] | 6 | 2022-01-15T07:17:47.000Z | 2022-02-14T15:28:22.000Z | tensorflow/core/common_runtime/eager/process_function_library_runtime.cc | abhaikollara/tensorflow | 4f96df3659696990cb34d0ad07dc67843c4225a9 | [
"Apache-2.0"
] | 2 | 2018-04-06T14:28:15.000Z | 2018-11-30T03:53:55.000Z | /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 36.92 | 82 | 0.680119 | [
"vector"
] |
f5a58a8b06c558fb7b303d7c12b1b4c52a8a0d36 | 4,670 | cpp | C++ | src/dxvk/dxvk_openxr.cpp | JenyaFTW/dxvk | 44d16bf16e885da6a020348d5a85981dcba71aaa | [
"Zlib"
] | 66 | 2021-11-10T00:03:12.000Z | 2022-03-31T21:03:22.000Z | src/dxvk/dxvk_openxr.cpp | JenyaFTW/dxvk | 44d16bf16e885da6a020348d5a85981dcba71aaa | [
"Zlib"
] | null | null | null | src/dxvk/dxvk_openxr.cpp | JenyaFTW/dxvk | 44d16bf16e885da6a020348d5a85981dcba71aaa | [
"Zlib"
] | 11 | 2021-11-29T07:56:52.000Z | 2022-03-31T22:45:27.000Z | #include "dxvk_instance.h"
#include "dxvk_openxr.h"
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
#endif
using PFN___wineopenxr_GetVulkanInstanceExtensions = int (WINAPI *)(uint32_t, uint32_t *, char *);
using PFN___wineopenxr_GetVulkanDeviceExtensions = int (WINAPI *)(uint32_t, uint32_t *, char... | 27.633136 | 129 | 0.706638 | [
"vector"
] |
f5a598b54950a29e75073c00f269755c67c6b613 | 4,107 | cpp | C++ | tests/unit_tests/ut_math.cpp | alandefreitas/scistats | 6f20e47b5a8d6f82aa56991889395f12955e5384 | [
"MIT"
] | 3 | 2020-10-28T21:47:31.000Z | 2021-02-06T22:39:05.000Z | tests/unit_tests/ut_math.cpp | alandefreitas/scistats | 6f20e47b5a8d6f82aa56991889395f12955e5384 | [
"MIT"
] | null | null | null | tests/unit_tests/ut_math.cpp | alandefreitas/scistats | 6f20e47b5a8d6f82aa56991889395f12955e5384 | [
"MIT"
] | null | null | null | #include <boost/ut.hpp>
#include <scistats/math/abs.h>
#include <scistats/math/acot.h>
#include <scistats/math/beta.h>
#include <scistats/math/beta_inc.h>
#include <scistats/math/beta_inc_inv.h>
#include <scistats/math/beta_inc_upper.h>
#include <scistats/math/betaln.h>
#include <scistats/math/constants.h>
#include <sc... | 34.805085 | 80 | 0.543219 | [
"vector"
] |
f5a7378cd8ee287f9f4fdb4b3d9962b98a6d8325 | 1,562 | hpp | C++ | contrib/libboost/boost_1_62_0/boost/numeric/odeint/external/vexcl/vexcl_same_instance.hpp | 189569400/ClickHouse | 0b8683c8c9f0e17446bef5498403c39e9cb483b8 | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | contrib/libboost/boost_1_62_0/boost/numeric/odeint/external/vexcl/vexcl_same_instance.hpp | 189569400/ClickHouse | 0b8683c8c9f0e17446bef5498403c39e9cb483b8 | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | contrib/libboost/boost_1_62_0/boost/numeric/odeint/external/vexcl/vexcl_same_instance.hpp | 189569400/ClickHouse | 0b8683c8c9f0e17446bef5498403c39e9cb483b8 | [
"Apache-2.0"
] | 1,343 | 2017-12-08T19:47:19.000Z | 2022-03-26T11:31:36.000Z | /*
[auto_generated]
boost/numeric/odeint/external/vexcl/vexcl_same_instance.hpp
[begin_description]
Check if two VexCL containers are the same instance.
[end_description]
Copyright 2009-2011 Karsten Ahnert
Copyright 2009-2011 Mario Mulansky
Distributed under the Boost Software License, Version 1.0.
(See acc... | 26.474576 | 100 | 0.720871 | [
"vector"
] |
f5acb7b59a32f0ea152538ab5f10aaf24018ca18 | 2,538 | cpp | C++ | stichingImages/src/main.cpp | valbuenaster/OpenCV-Codes | c5bd19e36e406ded660ec002c2829fffacbb0759 | [
"MIT"
] | null | null | null | stichingImages/src/main.cpp | valbuenaster/OpenCV-Codes | c5bd19e36e406ded660ec002c2829fffacbb0759 | [
"MIT"
] | null | null | null | stichingImages/src/main.cpp | valbuenaster/OpenCV-Codes | c5bd19e36e406ded660ec002c2829fffacbb0759 | [
"MIT"
] | null | null | null | /*
* main.cpp
*
* Created on: Dec 28, 2020
* Author: Luis
*/
#include <iostream>
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/stitching.hpp"
using namespace std;
using namespace cv;
int processArguments(int argC,char** argV,
bool & divImg,
string ... | 21.327731 | 92 | 0.614657 | [
"vector"
] |
f5ad3d54cb9769bb8a107ff4ee09dba7cda90fda | 1,409 | hpp | C++ | sources/LycanthEngine/LycanthEngine/Src/Mesh.hpp | Euxiniar/LycanthEngine | d4c962ddbbb2123778dbb4e1e3104c86eb57f768 | [
"MIT"
] | null | null | null | sources/LycanthEngine/LycanthEngine/Src/Mesh.hpp | Euxiniar/LycanthEngine | d4c962ddbbb2123778dbb4e1e3104c86eb57f768 | [
"MIT"
] | null | null | null | sources/LycanthEngine/LycanthEngine/Src/Mesh.hpp | Euxiniar/LycanthEngine | d4c962ddbbb2123778dbb4e1e3104c86eb57f768 | [
"MIT"
] | null | null | null | #pragma once
#include "Prerequisites.hpp"
#include <cstdint>
#include <misc/formats.h>
#include <array>
namespace Ly
{
class Mesh
{
public:
const unsigned char* get_mesh_data() const;
static Anvil::Format get_mesh_data_color_format();
static uint32_t get_mesh_data_color_start_offset();
static uint32_t get_m... | 32.767442 | 75 | 0.69127 | [
"mesh"
] |
f5ae46b4f98dd5f3198bcb6ef647a74a97c72097 | 80,117 | cpp | C++ | mitab/mitab_feature_mif.cpp | grig27/mitab | 0e87a24116af40cb2ec9b122a531b4043bf5154a | [
"Unlicense"
] | 19 | 2015-04-21T05:34:04.000Z | 2021-12-30T03:03:36.000Z | mitab/mitab_feature_mif.cpp | grig27/mitab | 0e87a24116af40cb2ec9b122a531b4043bf5154a | [
"Unlicense"
] | 1 | 2019-03-07T15:25:14.000Z | 2019-03-07T15:25:14.000Z | mitab/mitab_feature_mif.cpp | grig27/mitab | 0e87a24116af40cb2ec9b122a531b4043bf5154a | [
"Unlicense"
] | 21 | 2015-02-27T10:42:38.000Z | 2021-01-18T10:34:24.000Z | /**********************************************************************
* $Id: mitab_feature_mif.cpp,v 1.39 2010-09-07 16:07:53 aboudreault Exp $
*
* Name: mitab_feature.cpp
* Project: MapInfo TAB Read/Write library
* Language: C++
* Purpose: Implementation of R/W Fcts for (Mid/Mif) in feature classes
* ... | 33.243568 | 91 | 0.469314 | [
"geometry",
"object",
"3d"
] |
f5b1b9092cb31e170903db96e7c1c319cae8d1a5 | 13,052 | cpp | C++ | src/ukfnew.cpp | lb5160482/Sensor-Fusion-Unscented-Kalman-Filter | 4636755b6a5dcc25f181684796d3ade82cb943f9 | [
"MIT"
] | 1 | 2018-08-09T00:37:40.000Z | 2018-08-09T00:37:40.000Z | src/ukfnew.cpp | lb5160482/Sensor-Fusion-Unscented-Kalman-Filter | 4636755b6a5dcc25f181684796d3ade82cb943f9 | [
"MIT"
] | null | null | null | src/ukfnew.cpp | lb5160482/Sensor-Fusion-Unscented-Kalman-Filter | 4636755b6a5dcc25f181684796d3ade82cb943f9 | [
"MIT"
] | null | null | null | #include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during... | 32.959596 | 133 | 0.501073 | [
"vector",
"transform"
] |
f5b2ac1db3068092bb8de4a5e50beb2873fb0dfc | 10,784 | cc | C++ | components/flags_ui/flags_test_helpers.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 | components/flags_ui/flags_test_helpers.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 | components/flags_ui/flags_test_helpers.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/flags_ui/flags_test_helpers.h"
#include <gtest/gtest.h>
#include <algorithm>
#include <map>
#include <string>
#include <vector>
#in... | 34.234921 | 80 | 0.685367 | [
"vector"
] |
f5b2f9580672253424169d988297e431e17c852a | 305 | cpp | C++ | Algoritmi & Structuri Date (ASD)/Laborator/Teme/2/5.cpp | DLarisa/FMI-Materials-BachelorDegree | 138e1a20bc33617772e9cd9e4432fbae99c0250c | [
"W3C"
] | 4 | 2022-02-12T02:05:36.000Z | 2022-03-26T14:44:43.000Z | Algoritmi & Structuri Date (ASD)/Laborator/Teme/2/5.cpp | DLarisa/FMI-Materials-BachelorDegree-UniBuc | 138e1a20bc33617772e9cd9e4432fbae99c0250c | [
"W3C"
] | null | null | null | Algoritmi & Structuri Date (ASD)/Laborator/Teme/2/5.cpp | DLarisa/FMI-Materials-BachelorDegree-UniBuc | 138e1a20bc33617772e9cd9e4432fbae99c0250c | [
"W3C"
] | null | null | null | #include <iostream>
#include <math.h>
using namespace std;
int main()
{
int v[100], n, t, i, nr=0;
//Citire Vector
cin>>n; n++;
for(i=0; i<n; i++) cin>>v[i]; // End Citire
cin>>t; //Citire t
for(i=0; i<n; i++) nr=nr+v[i]*(pow(t,i));
cout<<nr;
return 0;
}
| 17.941176 | 48 | 0.478689 | [
"vector"
] |
f5b56fd8e54ef706a8ed60db4536900a79e12b57 | 584 | cc | C++ | operational/src/visitor/inventory.cc | rachwal/DesignPatterns | 0645544706c915a69e1ca64addba5cc14453f64c | [
"MIT"
] | 9 | 2016-08-03T16:15:57.000Z | 2021-11-08T13:15:46.000Z | operational/src/visitor/inventory.cc | rachwal/DesignPatterns | 0645544706c915a69e1ca64addba5cc14453f64c | [
"MIT"
] | null | null | null | operational/src/visitor/inventory.cc | rachwal/DesignPatterns | 0645544706c915a69e1ca64addba5cc14453f64c | [
"MIT"
] | 4 | 2016-08-03T16:16:01.000Z | 2017-12-27T05:14:55.000Z | // Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
// book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
//
// Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
#include "inventory.h"
namespace operational
{
namespace ... | 20.857143 | 107 | 0.755137 | [
"object"
] |
f5b8e9bf7c406463a520ca2138403583fdb95218 | 2,306 | cc | C++ | utils/utils.cc | mikuh/dudulu-nlp | 3fb066b34db1a59340366a851b9df685726c52b2 | [
"MIT"
] | null | null | null | utils/utils.cc | mikuh/dudulu-nlp | 3fb066b34db1a59340366a851b9df685726c52b2 | [
"MIT"
] | null | null | null | utils/utils.cc | mikuh/dudulu-nlp | 3fb066b34db1a59340366a851b9df685726c52b2 | [
"MIT"
] | null | null | null | #include "utils.h"
namespace dudulu
{
void string_split(const std::string& str, const std::string& delimiters, std::vector<std::string>& tokens)
{
// Skip delimiters at beginning.
std::string::size_type lastPos = str.find_first_not_of(delimiters, 0);
// Find first "non-delimiter".
std::string::size_ty... | 30.746667 | 110 | 0.638768 | [
"vector"
] |
f5b9ef99145310f3ead26a9e28f45330daffc053 | 10,652 | hpp | C++ | include/nil/crypto3/zk/components/merkle_tree/check_read.hpp | skywinder/crypto3-blueprint | c2b033eaaff1a19ab5332b9f49a32bb4fdd1dc20 | [
"MIT"
] | null | null | null | include/nil/crypto3/zk/components/merkle_tree/check_read.hpp | skywinder/crypto3-blueprint | c2b033eaaff1a19ab5332b9f49a32bb4fdd1dc20 | [
"MIT"
] | null | null | null | include/nil/crypto3/zk/components/merkle_tree/check_read.hpp | skywinder/crypto3-blueprint | c2b033eaaff1a19ab5332b9f49a32bb4fdd1dc20 | [
"MIT"
] | 1 | 2021-09-15T20:27:27.000Z | 2021-09-15T20:27:27.000Z | //---------------------------------------------------------------------------//
// Copyright (c) 2018-2021 Mikhail Komarov <nemo@nil.foundation>
// Copyright (c) 2020-2021 Nikita Kaskov <nbering@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of th... | 55.769634 | 120 | 0.572475 | [
"vector"
] |
f5c2545adc737dff4a717bbbea3b404eacb21fcb | 4,103 | cpp | C++ | hackathon/linus/sholl_swc_R/sholl_swc.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2021-12-27T19:14:03.000Z | 2021-12-27T19:14:03.000Z | hackathon/linus/sholl_swc_R/sholl_swc.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | hackathon/linus/sholl_swc_R/sholl_swc.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | #include "sholl_swc.h"
#include <vector>
#include <iostream>
#include <algorithm>
bool combine_linker(vector<QList<NeuronSWC> > & linker, QList<NeuronSWC> & combined)
{
V3DLONG neuronNum = linker.size();
if (neuronNum<=0)
{
cout<<"the linker file is empty, please check your data."<<endl;
re... | 26.993421 | 264 | 0.483305 | [
"vector"
] |
f5c57cf396a47d51066d7f463727f986cf1b272a | 3,125 | cc | C++ | iot/src/model/QueryProductListResult.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | 3 | 2020-01-06T08:23:14.000Z | 2022-01-22T04:41:35.000Z | iot/src/model/QueryProductListResult.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | iot/src/model/QueryProductListResult.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | /*
* 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... | 30.940594 | 78 | 0.72864 | [
"model"
] |
f5c6dcf5906b681a35fafca9308b350ab335606c | 5,380 | cpp | C++ | admin/activec/samples/sdksamples/multisel/basesnap.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/activec/samples/sdksamples/wmi/basesnap.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/activec/samples/sdksamples/wmi/basesnap.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //==============================================================;
//
// This source code is only intended as a supplement to existing Microsoft documentation.
//
//
//
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED... | 23.80531 | 94 | 0.588848 | [
"object"
] |
f5c8f60cd8cc0aee3b4d473d6648b66fe2cb2737 | 5,704 | cc | C++ | unittests/libtests/meshio/TestDataWriterHDF5ExtFaultMesh.cc | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | 1 | 2021-09-09T06:24:11.000Z | 2021-09-09T06:24:11.000Z | unittests/libtests/meshio/TestDataWriterHDF5ExtFaultMesh.cc | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | null | null | null | unittests/libtests/meshio/TestDataWriterHDF5ExtFaultMesh.cc | joegeisz/pylith | f74060b7b19d7e90abf8597bbe9250c96593c0ad | [
"MIT"
] | null | null | null | // -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... | 28.237624 | 82 | 0.640252 | [
"mesh"
] |
f5cbf35727352238e2356a064bc01d5eab5f0aa8 | 3,960 | cpp | C++ | src/cppad.git/speed/src/link_poly.cpp | yinzixuan126/my_udacity | cada1bc047cd21282b008a0eb85a1df52fd94034 | [
"MIT"
] | 1 | 2019-11-05T02:23:47.000Z | 2019-11-05T02:23:47.000Z | src/cppad.git/speed/src/link_poly.cpp | yinzixuan126/my_udacity | cada1bc047cd21282b008a0eb85a1df52fd94034 | [
"MIT"
] | null | null | null | src/cppad.git/speed/src/link_poly.cpp | yinzixuan126/my_udacity | cada1bc047cd21282b008a0eb85a1df52fd94034 | [
"MIT"
] | 1 | 2019-11-05T02:23:51.000Z | 2019-11-05T02:23:51.000Z | /* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-17 Bradley M. Bell
CppAD is distributed under the terms of the
Eclipse Public License Version 2.0.
This Source Code may also be made available under the following
Secon... | 29.774436 | 79 | 0.637121 | [
"vector"
] |
f5cf7a293ccc48e078ea3e9bc5600036b1d3f843 | 132,414 | hpp | C++ | jitify.hpp | trevorsm7/jitify | 62ebea908da1eddd1da9394ae36965d773a6adda | [
"BSD-3-Clause"
] | null | null | null | jitify.hpp | trevorsm7/jitify | 62ebea908da1eddd1da9394ae36965d773a6adda | [
"BSD-3-Clause"
] | null | null | null | jitify.hpp | trevorsm7/jitify | 62ebea908da1eddd1da9394ae36965d773a6adda | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2017-2019, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of... | 36.761244 | 128 | 0.63491 | [
"object",
"vector"
] |
f5d042da93274c1e68e49875df86c88d38ad5f3d | 31,110 | cpp | C++ | src/Nazara/Shader/LangWriter.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | src/Nazara/Shader/LangWriter.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | src/Nazara/Shader/LangWriter.cpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | // Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Shader module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Shader/LangWriter.hpp>
#include <Nazara/Core/Algorithm.hpp>
#include <Nazara/Core/CallOnExit.hpp>... | 24.153727 | 156 | 0.682803 | [
"vector",
"3d"
] |
f5d34941cb51275c3afc5db4e160a5d22c11838b | 10,131 | cpp | C++ | test/t/relations/test_relations_manager.cpp | MateuszGrabka-TomTom/libosmium | 04506b22fca3e9660d65763c09755a99f3d7b985 | [
"BSL-1.0"
] | 335 | 2015-01-30T13:52:10.000Z | 2022-03-30T07:25:57.000Z | test/t/relations/test_relations_manager.cpp | MateuszGrabka-TomTom/libosmium | 04506b22fca3e9660d65763c09755a99f3d7b985 | [
"BSL-1.0"
] | 267 | 2015-01-05T07:46:29.000Z | 2022-03-18T13:24:41.000Z | test/t/relations/test_relations_manager.cpp | MateuszGrabka-TomTom/libosmium | 04506b22fca3e9660d65763c09755a99f3d7b985 | [
"BSL-1.0"
] | 120 | 2015-01-12T14:41:33.000Z | 2022-03-30T07:25:48.000Z | #include "catch.hpp"
#include "utils.hpp"
#include <osmium/io/xml_input.hpp>
#include <osmium/osm/relation.hpp>
#include <osmium/relations/relations_manager.hpp>
#include <iterator>
struct EmptyRM : public osmium::relations::RelationsManager<EmptyRM, true, true, true> {
};
struct TestRM : public osmium::relations:... | 31.365325 | 136 | 0.618202 | [
"object"
] |
f5d6957fcf661b61a2e906dc5c139aa7b4d258a8 | 10,734 | cc | C++ | rtc_base/criticalsection_unittest.cc | Aexyn/webrtc2 | daea5bf2deb843567a792f22ea2047a037e09d78 | [
"DOC",
"BSD-3-Clause"
] | 6 | 2020-03-18T08:21:45.000Z | 2021-02-06T14:37:57.000Z | rtc_base/criticalsection_unittest.cc | modulesio/webrtc | ea143e774b4c00a74b617f272f5a8f71169cf24e | [
"DOC",
"BSD-3-Clause"
] | 1 | 2017-10-11T23:38:42.000Z | 2017-10-11T23:38:42.000Z | rtc_base/criticalsection_unittest.cc | modulesio/webrtc | ea143e774b4c00a74b617f272f5a8f71169cf24e | [
"DOC",
"BSD-3-Clause"
] | 3 | 2018-07-23T04:52:42.000Z | 2021-12-18T07:37:15.000Z | /*
* Copyright 2014 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | 26.180488 | 80 | 0.677101 | [
"vector"
] |
f5df4bfa8358ea64c5d3d0299ea18e9c0251f33a | 8,698 | c++ | C++ | src/extern/inventor/apps/examples/Mentor/CXX/10.2.setEventCB.c++ | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/extern/inventor/apps/examples/Mentor/CXX/10.2.setEventCB.c++ | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/extern/inventor/apps/examples/Mentor/CXX/10.2.setEventCB.c++ | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opti... | 33.32567 | 77 | 0.656243 | [
"render",
"model"
] |
f5e0e246ae116174b90a43a1be093622fb4a58ad | 1,545 | hpp | C++ | include/transformation/treelikeString.hpp | knarloch/reflective | 0c0cdde8929719c0a42c8284dcfeae250578c95b | [
"MIT"
] | null | null | null | include/transformation/treelikeString.hpp | knarloch/reflective | 0c0cdde8929719c0a42c8284dcfeae250578c95b | [
"MIT"
] | null | null | null | include/transformation/treelikeString.hpp | knarloch/reflective | 0c0cdde8929719c0a42c8284dcfeae250578c95b | [
"MIT"
] | null | null | null | #ifndef REFLECTIVE_TREELIKESTRING_HPP
#define REFLECTIVE_TREELIKESTRING_HPP
#include "reflective.hpp"
#include <sstream>
namespace reflective {
struct ToTreelikeMultilineStringTransformation
{
std::string state;
ToTreelikeMultilineStringTransformation() = default;
template<typename ValueT>
explicit ToTreel... | 24.52381 | 136 | 0.698382 | [
"vector"
] |
f5e6228b9b421cd75763264756d61d4c4f94a38f | 34,338 | tcc | C++ | flens/lapack/ge/lsy.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 98 | 2015-01-26T20:31:37.000Z | 2021-09-09T15:51:37.000Z | flens/lapack/ge/lsy.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 16 | 2015-01-21T07:43:45.000Z | 2021-12-06T12:08:36.000Z | flens/lapack/ge/lsy.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 31 | 2015-01-05T08:06:45.000Z | 2022-01-26T20:12:00.000Z | /*
* Copyright (c) 2012, Michael Lehn
*
* 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,... | 30.280423 | 80 | 0.525831 | [
"vector"
] |
f5f1649d78f440a11cfc9d7c04e046a1aed35e6a | 11,447 | cpp | C++ | src/invariant/ConservationOfLumensTests.cpp | thanigaivel97/sellar-core | b6ae3ca418a19a3f10708f3cd2d26edb9d138c6b | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | 3 | 2019-06-07T19:54:47.000Z | 2019-11-06T02:45:51.000Z | src/invariant/ConservationOfLumensTests.cpp | imMoHaNNaD/stellar-core | 8eb4171ce4b037b028d65f7a592b8dcb360e90ef | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | 4 | 2018-10-16T13:19:32.000Z | 2019-01-07T10:41:03.000Z | src/invariant/ConservationOfLumensTests.cpp | imMoHaNNaD/stellar-core | 8eb4171ce4b037b028d65f7a592b8dcb360e90ef | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | 7 | 2018-11-05T17:54:50.000Z | 2019-02-27T09:18:12.000Z | // Copyright 2017 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "invariant/ConservationOfLumens.h"
#include "invariant/InvariantDoesNotHold.h"
#includ... | 36.224684 | 80 | 0.620512 | [
"vector",
"transform"
] |
f5f6d9bddf6f7e741e95f28a42ad6b65d2625527 | 1,533 | cpp | C++ | test/yosupo/scc.test.cpp | satashun/algorithm | ac844a9d3bff9dfa2f755fe92a28e1972cd7bbf4 | [
"MIT"
] | null | null | null | test/yosupo/scc.test.cpp | satashun/algorithm | ac844a9d3bff9dfa2f755fe92a28e1972cd7bbf4 | [
"MIT"
] | 4 | 2020-04-07T16:11:30.000Z | 2021-02-23T23:26:03.000Z | test/yosupo/scc.test.cpp | satashun/algorithm | ac844a9d3bff9dfa2f755fe92a28e1972cd7bbf4 | [
"MIT"
] | null | null | null | #define PROBLEM "https://judge.yosupo.jp/problem/scc"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
template<class T> using V = vector<T>;
template<class T> using VV = V<V<T>>;
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define fi first
#define... | 21.291667 | 77 | 0.569472 | [
"vector"
] |
f5f960864c5325613c1b708c61cf50672ceda7b1 | 2,637 | cpp | C++ | examples/circuits/circuit_builder.cpp | jonesmz/longeronpp | 48a2eeee071376b7ed995a5668bebe56a1d73a82 | [
"MIT"
] | 19 | 2022-02-21T22:13:39.000Z | 2022-03-06T22:39:35.000Z | examples/circuits/circuit_builder.cpp | jonesmz/longeronpp | 48a2eeee071376b7ed995a5668bebe56a1d73a82 | [
"MIT"
] | 6 | 2022-01-10T02:32:21.000Z | 2022-03-09T23:53:50.000Z | examples/circuits/circuit_builder.cpp | jonesmz/longeronpp | 48a2eeee071376b7ed995a5668bebe56a1d73a82 | [
"MIT"
] | 2 | 2022-01-10T02:34:03.000Z | 2022-02-22T08:08:55.000Z | /**
* SPDX-License-Identifier: MIT
* SPDX-FileCopyrightText: 2022 Neal Nicdao <chrisnicdao0@gmail.com>
*/
#include "circuit_builder.hpp"
namespace circuits
{
ElementId gate_combinatinal(CombinationalGates::GateDesc desc, std::initializer_list<NodeId> in, NodeId out)
{
Nodes *pNodes = WipNodes<ELogic>::smt_pNo... | 32.9625 | 108 | 0.653394 | [
"vector"
] |
f5fb1dc44be844c04bfbd2d5aabbc99d7c740f1c | 6,243 | cpp | C++ | probot_grasping/src/vision_manager.cpp | ZJUBinPicking/ZJUBinPicking | a38b729f61c796ca4584cd3a8ca494443f870407 | [
"Apache-2.0"
] | 13 | 2020-04-25T13:56:39.000Z | 2022-01-20T09:07:59.000Z | probot_grasping/src/vision_manager.cpp | ZJUBinPicking/ZJUBinPicking | a38b729f61c796ca4584cd3a8ca494443f870407 | [
"Apache-2.0"
] | null | null | null | probot_grasping/src/vision_manager.cpp | ZJUBinPicking/ZJUBinPicking | a38b729f61c796ca4584cd3a8ca494443f870407 | [
"Apache-2.0"
] | 1 | 2021-09-28T15:54:12.000Z | 2021-09-28T15:54:12.000Z | /***********************************************************************
Copyright 2019 Wuhan PS-Micro Technology Co., Itd.
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... | 29.037209 | 116 | 0.637834 | [
"object",
"vector"
] |
eb03ea3b0fc6eea4d7152da734668022fea21353 | 3,167 | cpp | C++ | apps/dlg_sQ1/sQ1App.cpp | luodalei/sq1_windows | 0e71405fadd25cf2d34c1db4ed353a9e0baa6bcc | [
"Apache-2.0"
] | 2 | 2019-08-27T14:10:21.000Z | 2019-08-27T14:10:24.000Z | apps/dlg_sQ1/sQ1App.cpp | luodalei/sq1_windows | 0e71405fadd25cf2d34c1db4ed353a9e0baa6bcc | [
"Apache-2.0"
] | null | null | null | apps/dlg_sQ1/sQ1App.cpp | luodalei/sq1_windows | 0e71405fadd25cf2d34c1db4ed353a9e0baa6bcc | [
"Apache-2.0"
] | 1 | 2019-08-27T14:10:03.000Z | 2019-08-27T14:10:03.000Z |
#include <wx/menu.h>
#include <wx/cmdline.h>
#include <wx/treectrl.h>
#include <wx/aui/framemanager.h>
#include "sQ1App.h"
#include "sQ1MainFrame.h"
#include "sQ1Resource.h"
#include "sQ1CANImpl.h"
#include "canopenAPI.h"
USING_NAMESPACE_SQ1
static const wxCmdLineEntryDesc g_cmdLineDesc [] =
{
{ wxCMD_LINE_SW... | 20.432258 | 103 | 0.656457 | [
"render"
] |
eb07f637869c7793db3c17d58439a51afd13b82f | 15,791 | hpp | C++ | src/beast/examples/http_stream.hpp | gcbpay/R9Ripple | 98f878cf10a32e26021b6a6ed44990bccbbc92c2 | [
"BSL-1.0"
] | 2 | 2017-06-09T10:56:26.000Z | 2021-05-28T12:58:33.000Z | examples/http_stream.hpp | somayeghahari/beast | 999e2fa0318b5982736d3ea01a418770ea802671 | [
"BSL-1.0"
] | 1 | 2016-06-22T17:13:44.000Z | 2016-06-22T17:13:44.000Z | examples/http_stream.hpp | somayeghahari/beast | 999e2fa0318b5982736d3ea01a418770ea802671 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2013-2016 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// 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)
//
#ifndef BEAST_HTTP_STREAM_H_INCLUDED
#define BEAST_HTTP_STREAM_H_INCLUDED
#inclu... | 32.829522 | 79 | 0.675131 | [
"object"
] |
eb0a6e7a755080dc927203e98cb1b92601f2b932 | 720 | cpp | C++ | Competitive Programming/Dynamic Programming Intro/houseRob.cpp | l0rdluc1f3r/CppCompetitiveProgramming | 71376b5a6182dc446811072c73a2b13f33110d4c | [
"Apache-2.0"
] | 1 | 2022-03-24T06:38:53.000Z | 2022-03-24T06:38:53.000Z | Competitive Programming/Dynamic Programming Intro/houseRob.cpp | l0rdluc1f3r/CppCompetitiveProgramming | 71376b5a6182dc446811072c73a2b13f33110d4c | [
"Apache-2.0"
] | null | null | null | Competitive Programming/Dynamic Programming Intro/houseRob.cpp | l0rdluc1f3r/CppCompetitiveProgramming | 71376b5a6182dc446811072c73a2b13f33110d4c | [
"Apache-2.0"
] | null | null | null | // you are given money present in n adjacent houses.There is a robber
// who wants to rob the houses but he can never rob from 2 adjacent houses,
// find max loot of robber.
// 2, 7 , 9 , 3, 1
#include <bits/stdc++.h>
using namespace std;
long long int loothouseTD(vector<long long int> &arr, vector<long long int> &dp... | 24 | 88 | 0.611111 | [
"vector"
] |
eb0e367641bd18ccacc35ac2e9bff96fa7fda4c1 | 2,084 | cc | C++ | imm/src/model/GetFaceSearchUserRequest.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | 3 | 2020-01-06T08:23:14.000Z | 2022-01-22T04:41:35.000Z | imm/src/model/GetFaceSearchUserRequest.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | imm/src/model/GetFaceSearchUserRequest.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | /*
* 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... | 25.108434 | 78 | 0.75144 | [
"model"
] |
eb1382810fe858f89ed596e9bd7e87af7408ae79 | 2,752 | cpp | C++ | src/thundergbm/scikit_tgbm.cpp | Haiga/thundergbm | e7a1cca68ad076f112c48642f05651fb1f01e43a | [
"Apache-2.0"
] | 1 | 2019-10-06T21:22:59.000Z | 2019-10-06T21:22:59.000Z | src/thundergbm/scikit_tgbm.cpp | Haiga/gbm | d7a3f98271f15bd94d064f93b4ae3ce57f3b67da | [
"Apache-2.0"
] | null | null | null | src/thundergbm/scikit_tgbm.cpp | Haiga/gbm | d7a3f98271f15bd94d064f93b4ae3ce57f3b67da | [
"Apache-2.0"
] | null | null | null | //
// Created by zeyi on 1/12/19.
//
#include <thundergbm/trainer.h>
#include "thundergbm/parser.h"
#include <thundergbm/dataset.h>
#include "thundergbm/predictor.h"
extern "C" {
void sparse_train_scikit(int row_size, float *val, int *row_ptr, int *col_ptr, float *label,
int depth, in... | 39.314286 | 104 | 0.643895 | [
"vector",
"model"
] |
eb1412dc69719d957d2d368096b741b640b5e136 | 1,078 | hpp | C++ | include/disccord/rest/models/modify_current_user_args.hpp | FiniteReality/disccord | 1b89cde8031a1d6f9d43fa8f39dbc0959c8639ff | [
"MIT"
] | 44 | 2016-09-19T15:28:25.000Z | 2018-08-09T13:17:40.000Z | include/disccord/rest/models/modify_current_user_args.hpp | FiniteReality/disccord | 1b89cde8031a1d6f9d43fa8f39dbc0959c8639ff | [
"MIT"
] | 44 | 2016-11-03T17:27:30.000Z | 2017-12-10T16:17:31.000Z | include/disccord/rest/models/modify_current_user_args.hpp | FiniteReality/disccord | 1b89cde8031a1d6f9d43fa8f39dbc0959c8639ff | [
"MIT"
] | 13 | 2016-11-01T00:17:20.000Z | 2018-08-03T19:51:16.000Z | #ifndef _modify_current_user_args_hpp_
#define _modify_current_user_args_hpp_
#include <cpprest/streams.h>
#include <cpprest/containerstream.h>
#include <disccord/models/model.hpp>
#include <disccord/util/optional.hpp>
namespace disccord
{
namespace rest
{
namespace models
{
class... | 26.95 | 79 | 0.546382 | [
"model"
] |
eb17728596bed38dcbfff0afc77187de4c8b74cf | 19,825 | cpp | C++ | src/phased_genome.cpp | YTLogos/vg | f389c5a8e24d84bbb5afdc728534d82a078b1b48 | [
"BSL-1.0"
] | null | null | null | src/phased_genome.cpp | YTLogos/vg | f389c5a8e24d84bbb5afdc728534d82a078b1b48 | [
"BSL-1.0"
] | 1 | 2020-04-27T23:28:51.000Z | 2020-04-27T23:28:51.000Z | src/phased_genome.cpp | YTLogos/vg | f389c5a8e24d84bbb5afdc728534d82a078b1b48 | [
"BSL-1.0"
] | null | null | null | //
// phased_genome.cpp
//
#include "phased_genome.hpp"
using namespace std;
namespace vg {
PhasedGenome::HaplotypeNode::HaplotypeNode(NodeTraversal node_traversal, HaplotypeNode* next, HaplotypeNode* prev) :
node_traversal(node_traversal), next(next), prev(pr... | 47.42823 | 356 | 0.580832 | [
"vector"
] |
eb17e58bd95d0a3af4b09e94750abc19f1b50c7e | 11,980 | cpp | C++ | libs/core/runtime_local/src/interval_timer.cpp | bhumitattarde/hpx | 5b34d8d77b1664fa552445d44cd98e51dc69a74a | [
"BSL-1.0"
] | 1 | 2022-02-08T05:55:09.000Z | 2022-02-08T05:55:09.000Z | libs/core/runtime_local/src/interval_timer.cpp | deepaksuresh1411/hpx | aa18024d35fe9884a977d4b6076c764dbb8b26d1 | [
"BSL-1.0"
] | null | null | null | libs/core/runtime_local/src/interval_timer.cpp | deepaksuresh1411/hpx | aa18024d35fe9884a977d4b6076c764dbb8b26d1 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2017 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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 <hpx/config.hpp>
#include <hpx/assert.hpp>
#include <hpx/functional/bind... | 29.362745 | 80 | 0.550835 | [
"object"
] |
a3e33ecce13e30410ed06be1ef1374260a8e3eef | 41,495 | cpp | C++ | lib/aptree.cpp | wzh99/AP-Tree | 4bf80fbbb70e2b6dba302c774c72545eb8f2797b | [
"MIT"
] | 1 | 2021-01-07T06:51:52.000Z | 2021-01-07T06:51:52.000Z | lib/aptree.cpp | wzh99/AP-Tree | 4bf80fbbb70e2b6dba302c774c72545eb8f2797b | [
"MIT"
] | null | null | null | lib/aptree.cpp | wzh99/AP-Tree | 4bf80fbbb70e2b6dba302c774c72545eb8f2797b | [
"MIT"
] | 1 | 2019-12-12T07:10:56.000Z | 2019-12-12T07:10:56.000Z | #include "../include/aptree.hpp"
#include <cmath>
#include <iostream>
#include <limits>
#include <numeric>
#define COUT(expr) std::cout << expr << std::endl;
static constexpr auto INDEX_NOT_FOUND = std::numeric_limits<size_t>::max();
// For indicating range of space or keyword
// Array pointer version
template <clas... | 43.26903 | 131 | 0.582432 | [
"object",
"vector"
] |
a3e6b6cd63b0ae378aba95d4f4ed822804d643ed | 8,176 | cc | C++ | code/render/materials/surfaceinstance.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/render/materials/surfaceinstance.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/render/materials/surfaceinstance.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// surfaceinstance.cc
// (C) 2015-2016 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "surfaceinstance.h"
#include "material.h"
#inc... | 34.066667 | 241 | 0.607021 | [
"object"
] |
a3ec09a747c661b4ef4c1a07803e0f6884a95cc9 | 14,265 | cxx | C++ | Libs/Alignment/ICPRigid3DMeshRegistration.cxx | amylenz/ShapeWorks | 78c2ee067a23e31f5b83d0121e60addb1b0bf462 | [
"MIT"
] | null | null | null | Libs/Alignment/ICPRigid3DMeshRegistration.cxx | amylenz/ShapeWorks | 78c2ee067a23e31f5b83d0121e60addb1b0bf462 | [
"MIT"
] | null | null | null | Libs/Alignment/ICPRigid3DMeshRegistration.cxx | amylenz/ShapeWorks | 78c2ee067a23e31f5b83d0121e60addb1b0bf462 | [
"MIT"
] | null | null | null |
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: IcpRegid3DRegistration.cxx
Language: C++
Date: $Date: 2011/03/23 22:40:15 $
Version: $Revision: 1.1 $
Copyright (c) 2002 Insight Consortium. All rights re... | 35.04914 | 152 | 0.610585 | [
"mesh",
"render",
"vector",
"transform"
] |
a3ef18cf8c19da94b537bade4a2f7c9f7401a6e9 | 3,329 | hpp | C++ | src/GDALDatasetReader.hpp | a4chet/cesium-terrain-builder | ef70212c05d301fa7ad0a497a06765eaec663572 | [
"Apache-2.0"
] | 1 | 2021-08-03T02:19:29.000Z | 2021-08-03T02:19:29.000Z | src/GDALDatasetReader.hpp | a4chet/cesium-terrain-builder | ef70212c05d301fa7ad0a497a06765eaec663572 | [
"Apache-2.0"
] | 1 | 2020-12-07T23:27:48.000Z | 2020-12-26T23:00:45.000Z | src/GDALDatasetReader.hpp | a4chet/cesium-terrain-builder | ef70212c05d301fa7ad0a497a06765eaec663572 | [
"Apache-2.0"
] | 2 | 2021-08-03T02:19:30.000Z | 2021-11-02T11:50:41.000Z | #ifndef GDALDATASETREADER_HPP
#define GDALDATASETREADER_HPP
/*******************************************************************************
* Copyright 2018 GeoData <geodata@soton.ac.uk>
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the L... | 32.960396 | 141 | 0.71523 | [
"vector"
] |
a3f0b67608e91b0a731d9aa44b21dcac7f5e7ac5 | 723 | cc | C++ | P16497.cc | daily-boj/kiwiyou | ceca96ddfee95708871af67d1682048e0bed0257 | [
"Unlicense"
] | 6 | 2020-04-08T09:04:57.000Z | 2021-11-16T07:30:24.000Z | P16497.cc | daily-boj/kiwiyou | ceca96ddfee95708871af67d1682048e0bed0257 | [
"Unlicense"
] | null | null | null | P16497.cc | daily-boj/kiwiyou | ceca96ddfee95708871af67d1682048e0bed0257 | [
"Unlicense"
] | 2 | 2020-04-16T05:32:06.000Z | 2020-05-28T13:40:56.000Z | #include <bits/stdc++.h>
using namespace std;
int main() {
int count;
cin >> count;
vector<int> begins{count};
vector<int> ends{count};
while (count--) {
int from, to;
cin >> from >> to;
begins.push_back(from);
ends.push_back(to);
}
int books;
cin >> book... | 21.264706 | 36 | 0.366528 | [
"vector"
] |
a3f49784b92ee377d08135e2392c56c7ac434b38 | 7,810 | cpp | C++ | test/performance/core/simd/view_to_simd_chunk_benchmark.cpp | SGSSGene/seqan3 | ab9ccb94d02c2f27b9b73b134ee2713de91bf722 | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | test/performance/core/simd/view_to_simd_chunk_benchmark.cpp | SGSSGene/seqan3 | ab9ccb94d02c2f27b9b73b134ee2713de91bf722 | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | test/performance/core/simd/view_to_simd_chunk_benchmark.cpp | SGSSGene/seqan3 | ab9ccb94d02c2f27b9b73b134ee2713de91bf722 | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | // -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2019, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2019, Knut Reinert & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of th... | 42.216216 | 121 | 0.628681 | [
"vector",
"transform"
] |
a3f7caa595176084ed3808023cdbdda953d7eb2a | 5,696 | cpp | C++ | kernel/src/modelingTools/LagrangianRheonomousR.cpp | fperignon/sandbox | 649f09d6db7bbd84c2418de74eb9453c0131f070 | [
"Apache-2.0"
] | null | null | null | kernel/src/modelingTools/LagrangianRheonomousR.cpp | fperignon/sandbox | 649f09d6db7bbd84c2418de74eb9453c0131f070 | [
"Apache-2.0"
] | null | null | null | kernel/src/modelingTools/LagrangianRheonomousR.cpp | fperignon/sandbox | 649f09d6db7bbd84c2418de74eb9453c0131f070 | [
"Apache-2.0"
] | null | null | null |
/* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2020 INRIA.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... | 33.904762 | 191 | 0.702072 | [
"vector"
] |
a3fa8746fd59eca38f539db08f18d1916fd0daaf | 1,636 | hpp | C++ | installed/x86-windows/include/mongocxx/options/pool.hpp | langxgm/vcpkg | b14b93eba876ceb71d5903f8a473c8be0bac9524 | [
"MIT"
] | 14 | 2018-06-16T04:49:50.000Z | 2021-04-10T03:18:40.000Z | installed/x86-windows/include/mongocxx/options/pool.hpp | langxgm/vcpkg | b14b93eba876ceb71d5903f8a473c8be0bac9524 | [
"MIT"
] | null | null | null | installed/x86-windows/include/mongocxx/options/pool.hpp | langxgm/vcpkg | b14b93eba876ceb71d5903f8a473c8be0bac9524 | [
"MIT"
] | 7 | 2018-06-14T10:15:32.000Z | 2020-11-06T17:07:09.000Z | // Copyright 2016 MongoDB Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... | 27.728814 | 99 | 0.712103 | [
"object"
] |
4301699e3aa349a243ef7ebde8fa649817a7e5e4 | 6,926 | hpp | C++ | src/test/utility.hpp | mcol/cmdstan | f85d83576280447bb3765d38c0dc765147833058 | [
"BSD-3-Clause"
] | 1 | 2020-05-04T17:15:40.000Z | 2020-05-04T17:15:40.000Z | src/test/utility.hpp | mcol/cmdstan | f85d83576280447bb3765d38c0dc765147833058 | [
"BSD-3-Clause"
] | null | null | null | src/test/utility.hpp | mcol/cmdstan | f85d83576280447bb3765d38c0dc765147833058 | [
"BSD-3-Clause"
] | null | null | null | #ifndef TEST__MODELS__UTILITY_HPP
#define TEST__MODELS__UTILITY_HPP
#include <stdexcept>
#include <boost/algorithm/string.hpp>
#include <boost/date_time/posix_time/posix_time_types.hpp>
namespace cmdstan {
namespace test {
// only counts non-overlapping matches; after match, advances to
// end of match;
... | 30.919643 | 97 | 0.561074 | [
"vector",
"model"
] |
430403ccdf9dd869b67bd8294c943e2372127b56 | 72,911 | cpp | C++ | CAM_SubArray.cpp | LLiu6/Eva-CAM | 0ff4f725d12ef17066ee61a6c4b7ce713507a63a | [
"MIT"
] | null | null | null | CAM_SubArray.cpp | LLiu6/Eva-CAM | 0ff4f725d12ef17066ee61a6c4b7ce713507a63a | [
"MIT"
] | null | null | null | CAM_SubArray.cpp | LLiu6/Eva-CAM | 0ff4f725d12ef17066ee61a6c4b7ce713507a63a | [
"MIT"
] | null | null | null | /*
* CAM_SubArray.cpp
*
*/
#include "CAM_SubArray.h"
#include "formula.h"
#include "global.h"
#include "constant.h"
#include "CAM_Line.h"
#include "CAM_Cell.h"
#include <math.h>
CAM_SubArray::CAM_SubArray() {
// TODO Auto-generated constructor stub
initialized = false;
invalid = false;
}
CAM_S... | 50.352901 | 245 | 0.682037 | [
"model"
] |
430610f219e14def41284a48912cb9617d7bfc13 | 10,909 | cpp | C++ | external/bayesopt/tests/testchol.cpp | pchrapka/brain-modelling | f232b5a858e45f10b0b0735269010454129ab017 | [
"MIT"
] | 1 | 2017-10-13T19:37:52.000Z | 2017-10-13T19:37:52.000Z | external/bayesopt/tests/testchol.cpp | pchrapka/brain-modelling | f232b5a858e45f10b0b0735269010454129ab017 | [
"MIT"
] | null | null | null | external/bayesopt/tests/testchol.cpp | pchrapka/brain-modelling | f232b5a858e45f10b0b0735269010454129ab017 | [
"MIT"
] | 1 | 2019-11-25T12:22:05.000Z | 2019-11-25T12:22:05.000Z | /** -*- c++ -*- \file cholesky_test.cpp \brief test cholesky decomposition */
/*
- begin : 2005-08-24
- copyright : (C) 2005 by Gunter Winkler, Konstantin Kutzkow
- email : guwi17@gmx.de
This library is free software; you can redistribute it and/or
modify it un... | 33.669753 | 86 | 0.591072 | [
"vector"
] |
4308d18ef743e1cbf756ff17bd0424016d1fe734 | 4,186 | cc | C++ | chrome/browser/debugger/devtools_remote_service.cc | zachlatta/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | 1 | 2021-09-24T22:49:10.000Z | 2021-09-24T22:49:10.000Z | chrome/browser/debugger/devtools_remote_service.cc | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/debugger/devtools_remote_service.cc | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2009 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 "base/json_reader.h"
#include "base/json_writer.h"
#include "base/scoped_ptr.h"
#include "base/values.h"
#include "chrome/browser/browser_pro... | 40.25 | 79 | 0.704252 | [
"object"
] |
43097a449fcabf03f8b21a6c269cd2ac06c4173d | 1,011 | hpp | C++ | qubus/include/qubus/kernel_arguments.hpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/include/qubus/kernel_arguments.hpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/include/qubus/kernel_arguments.hpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | #ifndef QUBUS_KERNEL_ARGUMENTS_HPP
#define QUBUS_KERNEL_ARGUMENTS_HPP
#include <qubus/object.hpp>
#include <qubus/util/unused.hpp>
#include <memory>
#include <utility>
#include <vector>
namespace qubus
{
class kernel_arguments
{
public:
kernel_arguments() = default;
std::vector<object>& args()
{
... | 15.796875 | 63 | 0.626113 | [
"object",
"vector"
] |
430985d249898b2cd3fc929c9a5edb46edf47a72 | 1,015 | cpp | C++ | _includes/analises/regional2015/A-mania-de-par.cpp | leandrovianna/maratonago.github.io | 93789b5ce1f29d5dead774008efc4b00ee2966d4 | [
"Unlicense"
] | null | null | null | _includes/analises/regional2015/A-mania-de-par.cpp | leandrovianna/maratonago.github.io | 93789b5ce1f29d5dead774008efc4b00ee2966d4 | [
"Unlicense"
] | null | null | null | _includes/analises/regional2015/A-mania-de-par.cpp | leandrovianna/maratonago.github.io | 93789b5ce1f29d5dead774008efc4b00ee2966d4 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
typedef long long int64;
typedef unsigned long long uint64;
using namespace std;
int dist[1<<15];
vector<pair<int,int>> gr[1<<14];
int main(int argc, char* argv[]) {
ios::sync_with_stdio(false);
int C, V, C1, C2, G;
cin >> C >> V;
for (int i = 1; i <= C; ++i) dist[i<<1... | 19.901961 | 67 | 0.471921 | [
"vector"
] |
430de0e09ae3a21753ac1d7f4e8f9b8bfd0a7787 | 4,525 | cpp | C++ | Dynamic Programming/472. Concatenated Words.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 138 | 2020-02-08T05:25:26.000Z | 2021-11-04T11:59:28.000Z | Dynamic Programming/472. Concatenated Words.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | null | null | null | Dynamic Programming/472. Concatenated Words.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 24 | 2021-01-02T07:18:43.000Z | 2022-03-20T08:17:54.000Z |
class Solution {
public:
unordered_set<string>dict;
vector<string> findAllConcatenatedWordsInADict(vector<string>& words) {
for(auto i: words)
dict.insert(i);
vector<string>res;
for(auto s: words)
if(check(s, 0, 0))
res.push_back(s);
retu... | 27.095808 | 116 | 0.49768 | [
"vector"
] |
4318a738139d036197536002b9dc99a7c8b9ec5c | 2,527 | cpp | C++ | src/strategy/actions/DestroyItemAction.cpp | ZhengPeiRu21/mod-playerbots | 66e77e324d4b82f658bebce11e8f72215c5c2b3c | [
"MIT"
] | 12 | 2022-03-23T05:14:53.000Z | 2022-03-30T12:12:58.000Z | src/strategy/actions/DestroyItemAction.cpp | ZhengPeiRu21/mod-playerbots | 66e77e324d4b82f658bebce11e8f72215c5c2b3c | [
"MIT"
] | 24 | 2022-03-23T13:56:37.000Z | 2022-03-31T18:23:32.000Z | src/strategy/actions/DestroyItemAction.cpp | ZhengPeiRu21/mod-playerbots | 66e77e324d4b82f658bebce11e8f72215c5c2b3c | [
"MIT"
] | 3 | 2022-03-24T21:47:10.000Z | 2022-03-31T06:21:46.000Z | /*
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it and/or modify it under version 2 of the License, or (at your option), any later version.
*/
#include "DestroyItemAction.h"
#include "Event.h"
#include "ItemCountValue.h"
#include "Playerbots.h"
boo... | 30.445783 | 205 | 0.654531 | [
"vector"
] |
4319e2a92518f7d60ef74f06d435bacfb2bf1a9b | 1,636 | hpp | C++ | lattice_snarg/algebra/lattice/lwe_params.hpp | dwu4/lattice-snarg | f5ef3e75d7200ee2b794d04b102fc7502b149628 | [
"MIT"
] | 5 | 2017-11-19T16:49:42.000Z | 2020-11-02T03:16:15.000Z | lattice_snarg/algebra/lattice/lwe_params.hpp | dwu4/lattice-snarg | f5ef3e75d7200ee2b794d04b102fc7502b149628 | [
"MIT"
] | null | null | null | lattice_snarg/algebra/lattice/lwe_params.hpp | dwu4/lattice-snarg | f5ef3e75d7200ee2b794d04b102fc7502b149628 | [
"MIT"
] | 2 | 2019-09-12T07:11:48.000Z | 2020-01-16T18:20:57.000Z | /** @file
*****************************************************************************
Sample parameters for the lattice-based vector encryption scheme for the
lattice-based R1CS ppSNARG. The LWE parameters are chosen to provide 80-bits
of security, and correctness error 2^{-40} for verifying QAPs with degree up
... | 31.461538 | 79 | 0.632029 | [
"vector"
] |
4321774c6fa95877cf526c08aa512db8fbcaede9 | 1,945 | hpp | C++ | inference-engine/src/transformations/include/transformations/init_node_info.hpp | cwzrad/openvino | ae4bd370eac7c695bd797a31e62317d328dbe742 | [
"Apache-2.0"
] | 1 | 2020-08-25T06:01:49.000Z | 2020-08-25T06:01:49.000Z | inference-engine/src/transformations/include/transformations/init_node_info.hpp | cwzrad/openvino | ae4bd370eac7c695bd797a31e62317d328dbe742 | [
"Apache-2.0"
] | 1 | 2021-07-24T15:22:27.000Z | 2021-07-24T15:22:27.000Z | inference-engine/src/transformations/include/transformations/init_node_info.hpp | cwzrad/openvino | ae4bd370eac7c695bd797a31e62317d328dbe742 | [
"Apache-2.0"
] | 1 | 2020-08-13T08:33:55.000Z | 2020-08-13T08:33:55.000Z | // Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
/**
* @brief Defines initialize node runtime information pass
* @file init_node_info.hpp
*/
#include <vector>
#include <memory>
#include <transformations_visibility.hpp>
#include <ngraph/pass/graph_rewrite.hpp>
/**
... | 27.013889 | 98 | 0.756298 | [
"vector",
"transform"
] |
432505e4a1d64223c38a7173aa100c782e0f5a45 | 3,495 | cc | C++ | mindspore/lite/src/runtime/kernel/arm/fp16/slice_fp16.cc | HappyKL/mindspore | 479cb89e8b5c9d859130891567038bb849a30bce | [
"Apache-2.0"
] | 1 | 2020-10-18T12:27:45.000Z | 2020-10-18T12:27:45.000Z | mindspore/lite/src/runtime/kernel/arm/fp16/slice_fp16.cc | ReIadnSan/mindspore | c3d1f54c7f6d6f514e5748430d24b16a4f9ee9e5 | [
"Apache-2.0"
] | null | null | null | mindspore/lite/src/runtime/kernel/arm/fp16/slice_fp16.cc | ReIadnSan/mindspore | c3d1f54c7f6d6f514e5748430d24b16a4f9ee9e5 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 37.580645 | 115 | 0.685265 | [
"vector"
] |
432a651ad8560a8c44238c670aa82944c6fc3c74 | 2,212 | cpp | C++ | Concurrency/Problem61/main.cpp | revsic/ModernCppChallengeStudy | 02c489cf03c5598799da0d33d4d32b6b95ce8600 | [
"MIT"
] | 1 | 2019-01-09T07:02:05.000Z | 2019-01-09T07:02:05.000Z | Concurrency/Problem61/main.cpp | revsic/ModernCppChallengeStudy | 02c489cf03c5598799da0d33d4d32b6b95ce8600 | [
"MIT"
] | null | null | null | Concurrency/Problem61/main.cpp | revsic/ModernCppChallengeStudy | 02c489cf03c5598799da0d33d4d32b6b95ce8600 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cassert>
#include <chrono>
#include <iostream>
#include <thread>
template <typename InputIter, typename OutputIter, typename F>
void par_transform(InputIter in_begin,
InputIter in_end,
OutputIter out_begin,
F&& unary)
{
usin... | 27.308642 | 93 | 0.538427 | [
"transform"
] |
432ff4c889b47d79952f11b07e89321096be63a5 | 295 | cpp | C++ | Week1/minCostToMoveChips.cpp | AkashRajpurohit/leetcode-november-2020-challenge | aae9191db95b4b03133ff3cc049f760aa769872e | [
"MIT"
] | 2 | 2020-11-16T04:24:02.000Z | 2022-03-16T14:56:37.000Z | Week1/minCostToMoveChips.cpp | AkashRajpurohit/leetcode-november-2020-challenge | aae9191db95b4b03133ff3cc049f760aa769872e | [
"MIT"
] | null | null | null | Week1/minCostToMoveChips.cpp | AkashRajpurohit/leetcode-november-2020-challenge | aae9191db95b4b03133ff3cc049f760aa769872e | [
"MIT"
] | null | null | null | class Solution {
public:
int minCostToMoveChips(vector<int>& position) {
int even_count = 0, odd_count = 0;
for(int pos: position){
if(pos % 2 == 0) even_count++;
else odd_count++;
}
return min(even_count, odd_count);
}
}; | 24.583333 | 51 | 0.528814 | [
"vector"
] |
43315d7c6607f2bf8a2af2a8d48572db20933cad | 15,369 | cc | C++ | media/gpu/windows/d3d11_vp9_accelerator.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 | media/gpu/windows/d3d11_vp9_accelerator.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 | media/gpu/windows/d3d11_vp9_accelerator.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2018 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 "media/gpu/windows/d3d11_vp9_accelerator.h"
#include <windows.h>
#include <string>
#include <utility>
#include "base/memory/ptr_util.h"
#includ... | 37.761671 | 123 | 0.685536 | [
"vector"
] |
43327f7496c5ebf34d60e57977de739d7ccfd565 | 14,061 | cpp | C++ | ql/instruments/capfloor.cpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | null | null | null | ql/instruments/capfloor.cpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | 17 | 2020-11-23T07:24:16.000Z | 2022-03-28T10:29:06.000Z | ql/instruments/capfloor.cpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | 7 | 2017-04-24T08:28:43.000Z | 2022-03-15T08:59:54.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2006, 2014 Ferdinando Ametrano
Copyright (C) 2006 François du Vignaud
Copyright (C) 2001, 2002, 2003 Sadruddin Rejeb
Copyright (C) 2006, 2007 StatPro Italia srl
Copyright (C) 2016 Paolo Mazzocchi
This file is part o... | 41.114035 | 94 | 0.543845 | [
"vector"
] |
433e9c25e421c5d55f5814ba089bbe5d77509bb6 | 3,815 | hpp | C++ | include/parsergen/lexer.hpp | Conqu3red/parsergen-cpp | 1435ce4b9fe64541142791ff75c32b968d88ac21 | [
"MIT"
] | 1 | 2021-09-04T14:18:39.000Z | 2021-09-04T14:18:39.000Z | include/parsergen/lexer.hpp | Conqu3red/parsergen-cpp | 1435ce4b9fe64541142791ff75c32b968d88ac21 | [
"MIT"
] | null | null | null | include/parsergen/lexer.hpp | Conqu3red/parsergen-cpp | 1435ce4b9fe64541142791ff75c32b968d88ac21 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <string_view>
#include <vector>
#include <stdio.h>
#include <string.h>
#include <functional>
#include <regex>
#include <memory>
#include <stdexcept>
#include "fmt/core.h"
#include "parsergen/utils.hpp"
const auto REGEX_SYNTAX_TYPE = (std::regex_constants::ECMAScript | std::regex... | 24.934641 | 120 | 0.670773 | [
"vector"
] |
43407085392b0469083f96c5c13fbeb27c5a8125 | 3,192 | cpp | C++ | SpaghettiEngine/Framework/Engine/Containers/TileSet.cpp | CodingC1402/SpaghettiEngine | 80fddf7c68ae7476a5880aae8fd0eac5bbf6ad1a | [
"MIT"
] | 1 | 2021-06-02T09:31:15.000Z | 2021-06-02T09:31:15.000Z | SpaghettiEngine/Framework/Engine/Containers/TileSet.cpp | CornyCodingCorn/SpaghettiEngine | 80fddf7c68ae7476a5880aae8fd0eac5bbf6ad1a | [
"MIT"
] | 1 | 2021-07-13T13:56:18.000Z | 2021-07-13T13:56:18.000Z | SpaghettiEngine/Framework/Engine/Containers/TileSet.cpp | CodingC1402/SpaghettiEngine | 80fddf7c68ae7476a5880aae8fd0eac5bbf6ad1a | [
"MIT"
] | 2 | 2021-04-25T02:08:42.000Z | 2021-04-29T04:18:34.000Z | #include "TileSet.h"
#include "json.hpp"
#include "SpaghettiEnginePath.h"
#include "Sprite.h"
#include "GameTimer.h"
#include "SMath.h"
#include "CornException.h"
#include "LoadingJson.h"
CONTAINER_REGISTER(TileSetContainer, TileSet);
using namespace nlohmann;
void NormalTile::Load(Texture* texture, std::vector<unsig... | 24 | 151 | 0.686717 | [
"vector"
] |
434367ee8f41d5b5456ce47b1bae5cd1b99134d8 | 7,429 | hpp | C++ | opencv/sources/modules/videoio/src/backend_plugin_legacy.impl.hpp | vrushank-agrawal/opencv-x64-cmake | 3f9486510d706c8ac579ac82f5d58f667f948124 | [
"Apache-2.0"
] | null | null | null | opencv/sources/modules/videoio/src/backend_plugin_legacy.impl.hpp | vrushank-agrawal/opencv-x64-cmake | 3f9486510d706c8ac579ac82f5d58f667f948124 | [
"Apache-2.0"
] | null | null | null | opencv/sources/modules/videoio/src/backend_plugin_legacy.impl.hpp | vrushank-agrawal/opencv-x64-cmake | 3f9486510d706c8ac579ac82f5d58f667f948124 | [
"Apache-2.0"
] | null | null | null | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Not a standalone header.
//
namespace cv { namespace impl { namespace legacy {
//==========================... | 37.145 | 152 | 0.585947 | [
"vector"
] |
4346313e3c1620e57387538f88325df9abd7dae5 | 4,112 | cc | C++ | test/packet_test.cc | NilFoundation/actorio | 49ac3e87902d4388cd0bb29267207f89fb057e85 | [
"MIT"
] | null | null | null | test/packet_test.cc | NilFoundation/actorio | 49ac3e87902d4388cd0bb29267207f89fb057e85 | [
"MIT"
] | 3 | 2020-04-17T17:00:16.000Z | 2020-07-13T20:19:11.000Z | test/packet_test.cc | NilFoundation/actorio | 49ac3e87902d4388cd0bb29267207f89fb057e85 | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------//
// Copyright (c) 2018-2021 Mikhail Komarov <nemo@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), t... | 33.16129 | 89 | 0.632539 | [
"vector"
] |
434c926bc929e33477c441c60b18a5ccb8589fdb | 25,096 | cc | C++ | src/vnsw/agent/test-xml/test_xml.cc | sagarc-contrail/contrail-controller | 834302367f3ff81f1ce93f4036b6b3788dfd6994 | [
"Apache-2.0"
] | null | null | null | src/vnsw/agent/test-xml/test_xml.cc | sagarc-contrail/contrail-controller | 834302367f3ff81f1ce93f4036b6b3788dfd6994 | [
"Apache-2.0"
] | null | null | null | src/vnsw/agent/test-xml/test_xml.cc | sagarc-contrail/contrail-controller | 834302367f3ff81f1ce93f4036b6b3788dfd6994 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
#include "base/os.h"
#include <iostream>
#include <fstream>
#include <pugixml/pugixml.hpp>
#include <boost/uuid/uuid.hpp>
#include <test/test_cmn_util.h>
#include <pkt/test/test_pkt_util.h>
#include <pkt/flow_mgmt.h>
#include <oper/global_vrouter... | 29.317757 | 80 | 0.546422 | [
"vector"
] |
434ce6d7029855d572965ba5fac5b74233fce067 | 2,702 | cc | C++ | vpc/src/model/DeleteSnatEntryRequest.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | 3 | 2020-01-06T08:23:14.000Z | 2022-01-22T04:41:35.000Z | vpc/src/model/DeleteSnatEntryRequest.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | vpc/src/model/DeleteSnatEntryRequest.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | /*
* 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... | 25.733333 | 94 | 0.766099 | [
"model"
] |
43589a52c8b771e247045f4d016964fd3959f8cc | 40,414 | cpp | C++ | src/tool/abi/types.cpp | raffaeler/xlang | 986ff8784f47d36106c7e7b26b885ceb8569f6bc | [
"MIT"
] | 1 | 2019-10-23T20:33:45.000Z | 2019-10-23T20:33:45.000Z | src/tool/abi/types.cpp | raffaeler/xlang | 986ff8784f47d36106c7e7b26b885ceb8569f6bc | [
"MIT"
] | null | null | null | src/tool/abi/types.cpp | raffaeler/xlang | 986ff8784f47d36106c7e7b26b885ceb8569f6bc | [
"MIT"
] | null | null | null | #include "pch.h"
#include "abi_writer.h"
#include "code_writers.h"
#include "types.h"
#include "type_banners.h"
using namespace std::literals;
using namespace xlang::meta::reader;
using namespace xlang::text;
template <typename T>
static std::size_t push_type_contract_guards(writer& w, T const& type)
{
if (auto ... | 26.96064 | 170 | 0.641981 | [
"object"
] |
435c533d285c7caf820d52407cb8ba6b062bff84 | 15,373 | cc | C++ | DQM/HcalTasks/src/DigiRunSummary.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DQM/HcalTasks/src/DigiRunSummary.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DQM/HcalTasks/src/DigiRunSummary.cc | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include "DQM/HcalTasks/interface/DigiRunSummary.h"
namespace hcaldqm {
using namespace constants;
DigiRunSummary::DigiRunSummary(std::string const& name,
std::string const& taskname,
edm::ParameterSet const& ps,
ed... | 40.669312 | 120 | 0.588304 | [
"vector"
] |
435f1fce058d465b216075930e1d765bac6a95ba | 477 | cc | C++ | project_templates/static_library/tests/test.cc | manavrion/cpp_project_template | 0874868c48d2810072bfeda54648bed2e43f05be | [
"MIT"
] | 2 | 2020-02-11T21:14:12.000Z | 2020-04-27T15:29:43.000Z | project_templates/static_library/tests/test.cc | manavrion/template_repository | 0874868c48d2810072bfeda54648bed2e43f05be | [
"MIT"
] | null | null | null | project_templates/static_library/tests/test.cc | manavrion/template_repository | 0874868c48d2810072bfeda54648bed2e43f05be | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "manavrion/static_library_sample.h"
using static_library_sample::add;
using static_library_sample::add_first3;
using static_library_sample::mul;
TEST(StaticLibrarySampleTest, Add) {
EXPECT_EQ(add(1, 2), 3);
EXPECT_EQ(add(2, 2), 4);
}
TEST(StaticLibrarySampleTest, Mul) {
EXPEC... | 21.681818 | 61 | 0.725367 | [
"vector"
] |
435f76f2b02d82951eb3ff66e597ef3730aee250 | 1,739 | cpp | C++ | 动态规划/状压DP/acwing_291.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | 3 | 2020-11-16T08:58:30.000Z | 2020-11-16T08:58:33.000Z | 动态规划/状压DP/acwing_291.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | 动态规划/状压DP/acwing_291.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
/*
核心思想: 只考虑横放的所有情况,然后判断剩下的位置能否被竖着放的填满
f[][]也只表示了横放的情况,f[0][0]就是所有都被竖着的填满
f[i][j]: 前i-1列已经摆好,且第i-1列伸出到第i列的状态是j的所有方案数
f[i-1][k] -> f[i][j] 转移,表示i-1列伸出到第i列后状态依然合法,然后加上方案数即可
*/
const int N = 12, M = 1 << N;
int n, m;
ll f[N][M];
vector<int> state[M];
... | 31.618182 | 108 | 0.474411 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.