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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
58d603e614fb3cb494508ad6affac29ce4b7b880 | 1,060 | cpp | C++ | analysis/Utilities.cpp | 3bmwhunter/wordle-tas | d6237a0e4c99c90bde8a8026b5e108480069bc95 | [
"MIT"
] | null | null | null | analysis/Utilities.cpp | 3bmwhunter/wordle-tas | d6237a0e4c99c90bde8a8026b5e108480069bc95 | [
"MIT"
] | null | null | null | analysis/Utilities.cpp | 3bmwhunter/wordle-tas | d6237a0e4c99c90bde8a8026b5e108480069bc95 | [
"MIT"
] | null | null | null | #include "Utilities.h"
bool hasOverlap(const std::u32string &a, const std::u32string &b) {
for(auto aLetter : a) {
for(auto bLetter : b) {
if(aLetter == bLetter) {
return true;
}
}
}
return false;
}
double average(const std::vector<i... | 18.596491 | 68 | 0.409434 | [
"vector"
] |
58f1488cc5bde5a34b5610ab2c56a6d59ee437ad | 8,508 | hpp | C++ | rcraam/inst/include/craam/algorithms/values_mdp.hpp | marekpetrik/craam2 | b07f4547d578626c698cbc660495dbf6f179a672 | [
"MIT"
] | 4 | 2020-08-11T17:30:58.000Z | 2022-03-25T11:08:11.000Z | rcraam/inst/include/craam/algorithms/values_mdp.hpp | marekpetrik/craam2 | b07f4547d578626c698cbc660495dbf6f179a672 | [
"MIT"
] | null | null | null | rcraam/inst/include/craam/algorithms/values_mdp.hpp | marekpetrik/craam2 | b07f4547d578626c698cbc660495dbf6f179a672 | [
"MIT"
] | 2 | 2020-05-15T17:42:53.000Z | 2022-03-25T11:08:16.000Z | // This file is part of CRAAM, a C++ library for solving plain
// and robust Markov decision processes.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restric... | 37.646018 | 90 | 0.663493 | [
"vector"
] |
45028c431f20b7d7136001bfe1866ab2e76e7069 | 977 | cpp | C++ | count-and-say/solution.cpp | Javran/leetcode | f3899fe1424d3cda72f44102bab6dd95a7c7a320 | [
"MIT"
] | 3 | 2018-05-08T14:08:50.000Z | 2019-02-28T00:10:14.000Z | count-and-say/solution.cpp | Javran/leetcode | f3899fe1424d3cda72f44102bab6dd95a7c7a320 | [
"MIT"
] | null | null | null | count-and-say/solution.cpp | Javran/leetcode | f3899fe1424d3cda72f44102bab6dd95a7c7a320 | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
#include <numeric>
class Solution {
public:
static const std::vector<char> init;
std::string countAndSay(int n) {
std::vector<char> now = init;
for (/* */; n > 1; --n) {
std::vector<char> nxt;
next(now, nxt);
now = nxt;
... | 24.425 | 68 | 0.423746 | [
"vector"
] |
4508ddc5e9ed6b2f1a5632ceb22bebe41adb808f | 5,182 | cpp | C++ | leetcode/weeklyContest/WC221to230.cpp | fyabc/LeetCode | 4a5c7dfdf8537059b98849f2a8ab1b5fafa45b9c | [
"MIT"
] | null | null | null | leetcode/weeklyContest/WC221to230.cpp | fyabc/LeetCode | 4a5c7dfdf8537059b98849f2a8ab1b5fafa45b9c | [
"MIT"
] | null | null | null | leetcode/weeklyContest/WC221to230.cpp | fyabc/LeetCode | 4a5c7dfdf8537059b98849f2a8ab1b5fafa45b9c | [
"MIT"
] | null | null | null | //
// Created by fyabc on 2021/3/12.
//
#include "support/IO.h"
#include <algorithm>
#include <numeric>
#include <vector>
#include <unordered_map>
using namespace std;
class WC224Q2_Problem1726 {
/**
* WC224Q2_Problem1726: https://leetcode.com/contest/weekly-contest-224/problems/tuple-with-same-product/
... | 30.482353 | 146 | 0.522192 | [
"vector"
] |
450ac9a110afc122294a9a6315eeced3a24f4383 | 255 | cc | C++ | ll_graphic/tests/misc/test_camera.cc | LoSealL/lltech | 5acb399820c99f84345e88537c7db259e13d63e4 | [
"MIT"
] | 1 | 2019-09-11T11:55:07.000Z | 2019-09-11T11:55:07.000Z | ll_graphic/tests/misc/test_camera.cc | LoSealL/lltech | 5acb399820c99f84345e88537c7db259e13d63e4 | [
"MIT"
] | null | null | null | ll_graphic/tests/misc/test_camera.cc | LoSealL/lltech | 5acb399820c99f84345e88537c7db259e13d63e4 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "ll_graphic/math/math.h"
#include "ll_graphic/model/camera.h"
using namespace ll::engine::model;
TEST(camera, lookat) {
Camera c;
c.LookAt({ 1,0,0 });
c.LookAt({ 0,0,1 });
c.SetPosition(0, 0, 0);
c.Reset();
}
| 18.214286 | 36 | 0.643137 | [
"model"
] |
450c368f00c8b6aa0f00a87008e50b846c7a8a20 | 20,621 | cpp | C++ | engine/sorted_collection/rebuilder.cpp | iyupeng/kvdk | 35e882bf6adc5e931d57fb07c648d0478b9ea146 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | engine/sorted_collection/rebuilder.cpp | iyupeng/kvdk | 35e882bf6adc5e931d57fb07c648d0478b9ea146 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | engine/sorted_collection/rebuilder.cpp | iyupeng/kvdk | 35e882bf6adc5e931d57fb07c648d0478b9ea146 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2021 Intel Corporation
*/
#include "rebuilder.hpp"
#include <future>
#include "../kv_engine.hpp"
#include "kvdk/namespace.hpp"
namespace KVDK_NAMESPACE {
SortedCollectionRebuilder::SortedCollectionRebuilder(
KVEngine* kv_engine, bool segment_based_rebuil... | 33.152733 | 165 | 0.622036 | [
"vector"
] |
450c4613e87fec89d9be387dec75f2950b7fe3b1 | 10,403 | hxx | C++ | include/problem_export.hxx | cxxszz/DD_ILP | 1b6e543f949feb3ccd1925f7e34a104b06bbe2f0 | [
"BSD-2-Clause"
] | null | null | null | include/problem_export.hxx | cxxszz/DD_ILP | 1b6e543f949feb3ccd1925f7e34a104b06bbe2f0 | [
"BSD-2-Clause"
] | null | null | null | include/problem_export.hxx | cxxszz/DD_ILP | 1b6e543f949feb3ccd1925f7e34a104b06bbe2f0 | [
"BSD-2-Clause"
] | 4 | 2017-12-11T08:09:32.000Z | 2022-03-25T14:24:46.000Z | #ifndef PROBLEM_EXPORT_HXX
#define PROBLEM_EXPORT_HXX
#include <iostream>
#include <vector>
#include <fstream>
#include <iterator>
namespace DD_ILP {
// store problem and print it out to an .lp file
class problem_export {
public:
struct vector_iterator : std::iterator< std::random_access_iterator_tag, std::size_t >... | 29.22191 | 121 | 0.615784 | [
"vector"
] |
450d8e2773596f260c78174a139d25111415ce48 | 4,006 | cpp | C++ | aws-cpp-sdk-apigateway/source/model/VpcLink.cpp | crazecdwn/aws-sdk-cpp | e74b9181a56e82ee04cf36a4cb31686047f4be42 | [
"Apache-2.0"
] | 1 | 2020-03-11T05:36:20.000Z | 2020-03-11T05:36:20.000Z | aws-cpp-sdk-apigateway/source/model/VpcLink.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-apigateway/source/model/VpcLink.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 22.632768 | 106 | 0.715427 | [
"model"
] |
4513ee0595c75c0a4e71d8f63684c4708dae3461 | 1,624 | hpp | C++ | Source/Utility/Thread/kThreadPool.hpp | KingKiller100/kLibrary | 37971acd3c54f9ea0decdf78b13e47c935d4bbf0 | [
"Apache-2.0"
] | null | null | null | Source/Utility/Thread/kThreadPool.hpp | KingKiller100/kLibrary | 37971acd3c54f9ea0decdf78b13e47c935d4bbf0 | [
"Apache-2.0"
] | null | null | null | Source/Utility/Thread/kThreadPool.hpp | KingKiller100/kLibrary | 37971acd3c54f9ea0decdf78b13e47c935d4bbf0 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "../../TypeTraits/BooleanTraits.hpp"
#include <functional>
#include <mutex>
#include <queue>
namespace klib::kThread
{
class ThreadPool
{
public:
using Func_t = std::function<void()>;
struct Job
{
Func_t task;
std::string desc;
Job() noexcept
: task(nullptr)
{}
Job... | 17.462366 | 67 | 0.680419 | [
"vector"
] |
4515037e51324a8ee77e6c71a5fe7cf1cc0a5c4e | 1,978 | cpp | C++ | 01 January Leetcode Challenge 2021/09 wordLadder.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 7 | 2020-12-01T14:27:57.000Z | 2022-02-12T09:17:22.000Z | 01 January Leetcode Challenge 2021/09 wordLadder.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 4 | 2020-11-12T17:49:22.000Z | 2021-09-06T07:46:37.000Z | 01 January Leetcode Challenge 2021/09 wordLadder.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 6 | 2021-05-21T03:49:22.000Z | 2022-01-20T20:36:53.000Z | from collections import defaultdict
class Solution(object):
def ladderLength(self, beginWord, endWord, wordList):
"""
:type beginWord: str
:type endWord: str
:type wordList: List[str]
:rtype: int
"""
if endWord not in wordList or not endWord or not beginWord ... | 40.367347 | 89 | 0.551062 | [
"object"
] |
4516519755d64653945fa1ec11071f11198b6bfe | 67,770 | hpp | C++ | ddbtoaster/srccpp/lib/mmap/cmmap.hpp | szarnyasg/dbtoaster-backend | 24d43034fa3a5a4f6ab4f1de3e2d83a7ca80be73 | [
"Apache-2.0"
] | 8 | 2019-02-13T10:56:44.000Z | 2021-10-14T03:31:03.000Z | ddbtoaster/srccpp/lib/mmap/cmmap.hpp | szarnyasg/dbtoaster-backend | 24d43034fa3a5a4f6ab4f1de3e2d83a7ca80be73 | [
"Apache-2.0"
] | null | null | null | ddbtoaster/srccpp/lib/mmap/cmmap.hpp | szarnyasg/dbtoaster-backend | 24d43034fa3a5a4f6ab4f1de3e2d83a7ca80be73 | [
"Apache-2.0"
] | 3 | 2021-06-13T12:26:40.000Z | 2022-03-29T19:58:35.000Z | #ifndef CMMAP_H
#define CMMAP_H
#include <iostream>
#include <assert.h>
#include <functional>
#include <string.h>
#include <libcuckoo/cuckoohash_map.hh>
#include "types.h"
#include "Version.h"
#include "../serialization.hpp"
#include "../hpds/pstring.hpp"
#include "../hpds/macro.hpp"
#include <vector>
#include "Predic... | 33.367799 | 148 | 0.482573 | [
"object",
"vector"
] |
932f75744ce2891df51912fa70d5e79ce7a02279 | 4,044 | cpp | C++ | libteseo.device/src/AbstractDevice.cpp | STMicroelectronics/STADG_Teseo_Android_HAL | 8822808d5a3ddebe4267fa94d62dc099c1173120 | [
"Apache-2.0"
] | 10 | 2018-07-14T23:50:07.000Z | 2021-08-28T10:41:52.000Z | libteseo.device/src/AbstractDevice.cpp | STMicroelectronics/STADG_Teseo_Android_HAL | 8822808d5a3ddebe4267fa94d62dc099c1173120 | [
"Apache-2.0"
] | null | null | null | libteseo.device/src/AbstractDevice.cpp | STMicroelectronics/STADG_Teseo_Android_HAL | 8822808d5a3ddebe4267fa94d62dc099c1173120 | [
"Apache-2.0"
] | 7 | 2019-07-31T13:56:55.000Z | 2021-08-12T09:09:34.000Z | /*
* This file is part of Teseo Android HAL
*
* Copyright (c) 2016-2017, STMicroelectronics - All Rights Reserved
* Author(s): Baudouin Feildel <baudouin.feildel@st.com> for STMicroelectronics.
*
* License terms: Apache 2.0.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file... | 20.953368 | 89 | 0.739862 | [
"model"
] |
9336aec5d12115afb0095ce377dfbe7bcdec134f | 13,917 | cpp | C++ | experiments/PolicyManager_c++_jni/crypto/crypto.cpp | hansmy/Webinos-Platform | 43950daebc41cd985adba4efc5670b61336aca7f | [
"Apache-2.0"
] | 1 | 2015-08-06T20:08:14.000Z | 2015-08-06T20:08:14.000Z | experiments/PolicyManager_c++_jni/crypto/crypto.cpp | krishnabangalore/Webinos-Platform | 2ab4779112483a0213ae440118b1c2a3cf80c7bd | [
"Apache-2.0"
] | null | null | null | experiments/PolicyManager_c++_jni/crypto/crypto.cpp | krishnabangalore/Webinos-Platform | 2ab4779112483a0213ae440118b1c2a3cf80c7bd | [
"Apache-2.0"
] | null | null | null | /* ====================================================================
* Copyright (c) 2000 The OpenSSL Project. 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 ... | 25.030576 | 132 | 0.649781 | [
"vector"
] |
934024f6f4aa52f58e3f198dc55171ca03e418f5 | 61,808 | cc | C++ | GraphLib/treealgs/tree_dynamics.cc | intact-software-systems/cpp-software-patterns | e463fc7eeba4946b365b5f0b2eecf3da0f4c895b | [
"MIT"
] | 1 | 2020-09-03T07:23:11.000Z | 2020-09-03T07:23:11.000Z | GraphLib/treealgs/tree_dynamics.cc | intact-software-systems/cpp-software-patterns | e463fc7eeba4946b365b5f0b2eecf3da0f4c895b | [
"MIT"
] | null | null | null | GraphLib/treealgs/tree_dynamics.cc | intact-software-systems/cpp-software-patterns | e463fc7eeba4946b365b5f0b2eecf3da0f4c895b | [
"MIT"
] | null | null | null | /***************************************************************************
tree_dynamics.cc - description
-------------------
begin : Wed Apr 26 2006
copyright : (C) 2005 by Knut-Helge Vik
email : knuthelv@if... | 33.756417 | 246 | 0.64469 | [
"vector"
] |
9343f6561833c024666e1da1862984280b042729 | 4,242 | cpp | C++ | Simple++/Debug.cpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | Simple++/Debug.cpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | Simple++/Debug.cpp | Oriode/Simpleplusplus | 2ba44eeab5078d6dab66bdefdf73617696b8cb2e | [
"Apache-2.0"
] | null | null | null | #include "Debug.h"
std::vector<MemoryAllocation> Debug::_debugMemoryAllocations;
Debug::Debug( void ) {
}
Debug::~Debug( void ) {
}
void Debug::_debugNew( const char * fileName, int lineNumber, unsigned long memoryAddress, unsigned long memorySize ) {
MemoryAllocation * memoryAllocation = Debug::getMemoryAlloc... | 41.588235 | 271 | 0.727959 | [
"vector"
] |
934e00842d8f1bdd790bbe223e84b89269242f88 | 3,110 | cpp | C++ | PortableGraphicsToolkit/src/pgt/graphics/plattform/opengl/voxel/models/VoxelModelManager.cpp | chris-b-h/PortableGraphicsToolkit | 85862a6c5444cf9689821ff23952b56a01ff5835 | [
"Zlib"
] | 3 | 2017-07-12T20:18:51.000Z | 2017-07-20T15:02:58.000Z | PortableGraphicsToolkit/src/pgt/graphics/plattform/opengl/voxel/models/VoxelModelManager.cpp | chris-b-h/PortableGraphicsToolkit | 85862a6c5444cf9689821ff23952b56a01ff5835 | [
"Zlib"
] | null | null | null | PortableGraphicsToolkit/src/pgt/graphics/plattform/opengl/voxel/models/VoxelModelManager.cpp | chris-b-h/PortableGraphicsToolkit | 85862a6c5444cf9689821ff23952b56a01ff5835 | [
"Zlib"
] | 1 | 2019-04-03T01:19:42.000Z | 2019-04-03T01:19:42.000Z | #include "VoxelModelManager.h"
#include <pgt/graphics/plattform/opengl/voxel/renderers/batched/VoxelBatchRenderer.h>
#include <pgt/graphics/plattform/opengl/voxel/renderers/static/StaticVoxelMeshRenderer.h>
#include <pgt/graphics/plattform/opengl/voxel/model_updaters/AsyncVoxelModelUpdater.h>
#include <pgt/graphics/pla... | 34.94382 | 89 | 0.681994 | [
"render"
] |
93503ebe5b3634ebe902aaf15d8784fe990c1960 | 3,351 | cpp | C++ | compiler-rt/test/cfi/cross-dso/simple-fail.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | compiler-rt/test/cfi/cross-dso/simple-fail.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | compiler-rt/test/cfi/cross-dso/simple-fail.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | // RUN: %clangxx_cfi_dso -DSHARED_LIB %s -fPIC -shared -o %dynamiclib %ld_flags_rpath_so
// RUN: %clangxx_cfi_dso %s -o %t %ld_flags_rpath_exe
// RUN: %expect_crash %t 2>&1 | FileCheck --check-prefix=CFI %s
// RUN: %expect_crash %t x 2>&1 | FileCheck --check-prefix=CFI-CAST %s
// RUN: %clangxx_cfi_dso -DB32 -DSHARED_L... | 32.852941 | 115 | 0.652343 | [
"object"
] |
935f4bc15bacd4e78fe272ece5968b4ddcb3e827 | 11,833 | hpp | C++ | lib/include/ckpttncpp/bpqueue.hpp | luk036/ckpttncpp | 25898e331c5b114e5886b828fc68ec5512d409ee | [
"MIT"
] | null | null | null | lib/include/ckpttncpp/bpqueue.hpp | luk036/ckpttncpp | 25898e331c5b114e5886b828fc68ec5512d409ee | [
"MIT"
] | 2 | 2019-07-23T14:21:48.000Z | 2020-01-20T10:48:07.000Z | lib/include/ckpttncpp/bpqueue.hpp | luk036/ckpttncpp | 25898e331c5b114e5886b828fc68ec5512d409ee | [
"MIT"
] | 1 | 2018-11-17T02:40:02.000Z | 2018-11-17T02:40:02.000Z | #pragma once
#include "dllist.hpp" // import dllink
#include <cassert>
#include <gsl/span>
// #include <type_traits>
#include <vector>
// Forward declaration for begin() end()
template <typename _Tp, typename Int>
class bpq_iterator;
/*!
* @brief bounded priority queue
*
* Bounded Priority Queue with integer keys... | 25.502155 | 88 | 0.545846 | [
"object",
"vector"
] |
9361e19020322dec137799b2496149d446840375 | 5,929 | cc | C++ | SimTracker/VertexAssociation/plugins/VertexAssociatorByTracksProducer.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 1 | 2019-08-09T08:42:11.000Z | 2019-08-09T08:42:11.000Z | SimTracker/VertexAssociation/plugins/VertexAssociatorByTracksProducer.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | SimTracker/VertexAssociation/plugins/VertexAssociatorByTracksProducer.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 1 | 2019-03-19T13:44:54.000Z | 2019-03-19T13:44:54.000Z | #include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/global/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/ConfigurationDe... | 46.320313 | 127 | 0.6986 | [
"vector"
] |
936f4a339fff2401c2cddc2edf1fef4c8a4d1e5f | 1,008 | cpp | C++ | cpp/graphs/matchings/stable_matching.cpp | ayushbhatt2000/codelibrary | e1209b5e6195717d20127e12e908839c595c2f4c | [
"Unlicense"
] | 1,727 | 2015-01-01T18:32:37.000Z | 2022-03-28T05:56:03.000Z | cpp/graphs/matchings/stable_matching.cpp | ayushbhatt2000/codelibrary | e1209b5e6195717d20127e12e908839c595c2f4c | [
"Unlicense"
] | 110 | 2015-05-03T10:23:18.000Z | 2021-07-31T22:44:39.000Z | cpp/graphs/matchings/stable_matching.cpp | ayushbhatt2000/codelibrary | e1209b5e6195717d20127e12e908839c595c2f4c | [
"Unlicense"
] | 570 | 2015-01-01T10:17:11.000Z | 2022-03-31T22:23:46.000Z | #include <bits/stdc++.h>
using namespace std;
vector<int> stable_matching(vector<vector<int>> prefer_m, vector<vector<int>> prefer_w) {
int n = prefer_m.size();
vector<int> pair_m(n, -1);
vector<int> pair_w(n, -1);
vector<int> p(n);
for (int i = 0; i < n; i++) {
while (pair_m[i] < 0) {
... | 25.846154 | 89 | 0.453373 | [
"vector"
] |
9376332661d521119f99481cdcea5572a686eb06 | 1,662 | hh | C++ | CosmicReco/inc/MinuitDriftFitter.hh | singhvivek84/Offline | 17dc9d690b74418a5f8aad99309f1591a8904934 | [
"Apache-2.0"
] | null | null | null | CosmicReco/inc/MinuitDriftFitter.hh | singhvivek84/Offline | 17dc9d690b74418a5f8aad99309f1591a8904934 | [
"Apache-2.0"
] | null | null | null | CosmicReco/inc/MinuitDriftFitter.hh | singhvivek84/Offline | 17dc9d690b74418a5f8aad99309f1591a8904934 | [
"Apache-2.0"
] | 1 | 2020-05-27T22:33:52.000Z | 2020-05-27T22:33:52.000Z | #ifndef _COSMIC_RECO_MINUITDRIFTFITTER_HH
#define _COSMIC_RECO_MINUITDDRIFTFITTER_HH
#include "TrackerConditions/inc/StrawDrift.hh"
#include "RecoDataProducts/inc/ComboHit.hh"
#include "DataProducts/inc/XYZVec.hh"
#include "TrackerGeom/inc/Tracker.hh"
#include "RecoDataProducts/inc/CosmicTrackSeed.hh"
//For Drift:
#i... | 26.380952 | 193 | 0.767148 | [
"vector"
] |
937a5bec3f416f24d2d760055c4ceb72ff136bcb | 524 | cpp | C++ | tests/src/MpDBConnectorMock.cpp | lgrigoriu/end-to-end-smkex | ffe4582247dd6435e5ac01166022ded6d26babac | [
"BSD-3-Clause"
] | null | null | null | tests/src/MpDBConnectorMock.cpp | lgrigoriu/end-to-end-smkex | ffe4582247dd6435e5ac01166022ded6d26babac | [
"BSD-3-Clause"
] | null | null | null | tests/src/MpDBConnectorMock.cpp | lgrigoriu/end-to-end-smkex | ffe4582247dd6435e5ac01166022ded6d26babac | [
"BSD-3-Clause"
] | null | null | null | #include "MpDBConnectorMock.h"
#include "MpBaseService.h"
const std::vector<MpMsgPayload>& MpDBConnectorMock::getMessages() {
MP_LOG1("Get messages");
return messages_;
}
void MpDBConnectorMock::pushMessage(MpString const& userSerial,
MpMsgPayload const& message) {
MP_LOG1("Push message into message queue");
mes... | 23.818182 | 67 | 0.784351 | [
"vector"
] |
937bf2ff3d440a98221fa85869a1b196be354b11 | 738 | hpp | C++ | app/include/driver_for_customer_query_state.hpp | terisikk/TravelAgency | 194b6546b7e5ededc7aaa9e7693ddb4f126e8c06 | [
"MIT"
] | null | null | null | app/include/driver_for_customer_query_state.hpp | terisikk/TravelAgency | 194b6546b7e5ededc7aaa9e7693ddb4f126e8c06 | [
"MIT"
] | null | null | null | app/include/driver_for_customer_query_state.hpp | terisikk/TravelAgency | 194b6546b7e5ededc7aaa9e7693ddb4f126e8c06 | [
"MIT"
] | null | null | null | #ifndef DRIVER_FOR_CUSTOMER_QUERY_STATE_HPP
#define DRIVER_FOR_CUSTOMER_QUERY_STATE_HPP
#include <ctime>
#include <sstream>
#include "drivermapper.hpp"
#include "travelmapper.hpp"
#include "tsv/query.hpp"
#include "tsv/table.hpp"
#include "ui/context.hpp"
class DriverForCustomerQueryState : public ui::State {
pr... | 26.357143 | 93 | 0.704607 | [
"vector"
] |
937f0916b7f3797b759586d17ef1ce6de76dfbfd | 1,860 | cpp | C++ | March 2014/MIKE3.cpp | michaelarakel/codechef-solutions | 8040aadfe9e1c7311910881c74cc9d2f9de39fcc | [
"Unlicense"
] | null | null | null | March 2014/MIKE3.cpp | michaelarakel/codechef-solutions | 8040aadfe9e1c7311910881c74cc9d2f9de39fcc | [
"Unlicense"
] | null | null | null | March 2014/MIKE3.cpp | michaelarakel/codechef-solutions | 8040aadfe9e1c7311910881c74cc9d2f9de39fcc | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <vector>
#include <unordered_set>
using namespace std;
inline bool next_combination(vector <int>& v, int n)
{
int k = v.size();
for (int i = k - 1; i >= 0; --i)
{
if (v[i] < n - k + i + 1)
{
++v[i];
for (int j = i + 1; j < k; ++j)
v[j] = v[j - 1] + 1;
r... | 18.415842 | 95 | 0.49086 | [
"vector"
] |
93844739b2c980ab5e52be80ca9bf6da7a6afdc8 | 63,248 | cpp | C++ | data/cpp/1186f05c8157e71e6459bf739025fb14_GameState.cpp | maxim5/code-inspector | 14812dfbc7bac1d76c4d9e5be2cdf83fc1c391a1 | [
"Apache-2.0"
] | 5 | 2018-01-03T06:43:07.000Z | 2020-07-30T13:15:29.000Z | data/cpp/1186f05c8157e71e6459bf739025fb14_GameState.cpp | maxim5/code-inspector | 14812dfbc7bac1d76c4d9e5be2cdf83fc1c391a1 | [
"Apache-2.0"
] | null | null | null | data/cpp/1186f05c8157e71e6459bf739025fb14_GameState.cpp | maxim5/code-inspector | 14812dfbc7bac1d76c4d9e5be2cdf83fc1c391a1 | [
"Apache-2.0"
] | 2 | 2019-11-04T02:54:49.000Z | 2020-04-24T17:50:46.000Z | /*
STARFLIGHT - THE LOST COLONY
GameState.cpp - ?
Author: ?
Date: ?
*/
#include <math.h>
#include <sstream>
#include <fstream>
#include <exception>
#include "env.h"
#include "Util.h"
#include "GameState.h"
#include "Archive.h"
#include "sfitems.h"
#include "Point2D.h"
#include "Game.h"
#include "DataMgr.h"
#includ... | 27.643357 | 143 | 0.688417 | [
"object",
"vector"
] |
938e4b2d9847c35586b42fd358dfadeafc594d84 | 3,348 | cpp | C++ | test/FakeVideoCapturer.cpp | gaoyingie/libmediasoupclient | 806a0385f76e953c6e5e12e1a761e3c54c01dc9e | [
"ISC"
] | 1 | 2020-09-21T02:42:47.000Z | 2020-09-21T02:42:47.000Z | mediasoup-client/deps/libmediasoupclient/test/FakeVideoCapturer.cpp | ethand91/mediasoup-client-android | 9e95fbf90de3037f625cf56ac0fe3605644187d3 | [
"MIT"
] | null | null | null | mediasoup-client/deps/libmediasoupclient/test/FakeVideoCapturer.cpp | ethand91/mediasoup-client-android | 9e95fbf90de3037f625cf56ac0fe3605644187d3 | [
"MIT"
] | 1 | 2022-02-14T07:45:49.000Z | 2022-02-14T07:45:49.000Z | /*
* Copyright (c) 2018 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 contribut... | 31.28972 | 87 | 0.737455 | [
"vector"
] |
9397cdcd8c5c00b1c410bde0e12a286a52b90363 | 575 | cpp | C++ | src/engine/dictionary.cpp | bec-ca/botle | dc85470c71c725bdb1ee7d36d03d10341070f73d | [
"Unlicense"
] | 2 | 2022-03-01T04:16:51.000Z | 2022-03-01T23:28:38.000Z | src/engine/dictionary.cpp | bec-ca/botle | dc85470c71c725bdb1ee7d36d03d10341070f73d | [
"Unlicense"
] | null | null | null | src/engine/dictionary.cpp | bec-ca/botle | dc85470c71c725bdb1ee7d36d03d10341070f73d | [
"Unlicense"
] | null | null | null | #include "dictionary.hpp"
#include <fstream>
#include "match.hpp"
using namespace std;
OrError<vector<InternalString>> Dictionary::load_words(const string& filename)
{
vector<InternalString> words;
ifstream word_file(filename);
if (word_file.bad()) {
return Error::format("Failed to open file $", filename... | 19.166667 | 78 | 0.671304 | [
"vector"
] |
939c288ce4358ab6f21ac6066cf5b4b8d5d7fff8 | 1,188 | cpp | C++ | diff/weak_ptr.cpp | IgorHersht/proxygen_ih | 616a8eb899196d2a130e14c0fabcae1944e34b7d | [
"MIT"
] | 7 | 2017-11-10T05:18:30.000Z | 2021-04-29T15:38:25.000Z | diff/weak_ptr.cpp | IgorHersht/proxygen_ih | 616a8eb899196d2a130e14c0fabcae1944e34b7d | [
"MIT"
] | null | null | null | diff/weak_ptr.cpp | IgorHersht/proxygen_ih | 616a8eb899196d2a130e14c0fabcae1944e34b7d | [
"MIT"
] | null | null | null | #include <boost/thread/thread.hpp>
#include <boost/thread/once.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
#include <iostream>
#include <iostream>
#include <vector>
#include <deque>
#include <list>
#include <set>
#include <map>
#include <string>
#include <algorithm>
#include <iterat... | 20.842105 | 96 | 0.641414 | [
"vector"
] |
4d337632c0e34b451b7f0abc0a7a5b0a6f8fc7d7 | 8,245 | cpp | C++ | vtkMAF/Testing/vtkMAFTextOrientatorTest.cpp | FusionBox2/MAF2 | b576955f4f6b954467021f12baedfebcaf79a382 | [
"Apache-2.0"
] | 1 | 2018-01-23T09:13:40.000Z | 2018-01-23T09:13:40.000Z | vtkMAF/Testing/vtkMAFTextOrientatorTest.cpp | gradicosmo/MAF2 | 86ddf1f52a2de4479c09fd3f43dc321ff412af42 | [
"Apache-2.0"
] | null | null | null | vtkMAF/Testing/vtkMAFTextOrientatorTest.cpp | gradicosmo/MAF2 | 86ddf1f52a2de4479c09fd3f43dc321ff412af42 | [
"Apache-2.0"
] | 3 | 2020-09-24T16:04:53.000Z | 2020-09-24T16:50:30.000Z | /*=========================================================================
Program: MAF2
Module: vtkMAFTextOrientatorTest
Authors: Daniele Giunchi
Copyright (c) B3C
All rights reserved. See Copyright.txt or
http://www.scsitaly.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY;... | 26.511254 | 106 | 0.599636 | [
"render"
] |
4d381a8db65e24af43ed0e1f7b978986d883de47 | 7,563 | hpp | C++ | src/ncp/ncp_spi.hpp | CAJ2/openthread | 120aa72ff2268cce60f773219ebe9162d20f0b90 | [
"BSD-3-Clause"
] | 1 | 2019-03-09T07:54:10.000Z | 2019-03-09T07:54:10.000Z | src/ncp/ncp_spi.hpp | 54markov/openthread | 749421641513cc71bfc9bb899c5b683d6ce060c9 | [
"BSD-3-Clause"
] | null | null | null | src/ncp/ncp_spi.hpp | 54markov/openthread | 749421641513cc71bfc9bb899c5b683d6ce060c9 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2016, The OpenThread Authors.
* 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
* n... | 33.317181 | 120 | 0.622372 | [
"object"
] |
4d4041b227c5194ed1a18f2599cddab291e313d8 | 5,323 | cc | C++ | third_party/blink/renderer/modules/webcodecs/video_frame_test.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/modules/webcodecs/video_frame_test.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/modules/webcodecs/video_frame_test.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/base/video_frame.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_te... | 36.210884 | 79 | 0.736239 | [
"geometry"
] |
4d408892a1935bfe1a493c02de5c024cbcc60f9c | 967 | cpp | C++ | CF/1187E.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | 1 | 2020-09-13T02:51:25.000Z | 2020-09-13T02:51:25.000Z | CF/1187E.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | null | null | null | CF/1187E.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | 1 | 2021-06-05T03:37:57.000Z | 2021-06-05T03:37:57.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <climits>
#include <vector>
#include <cmath>
using namespace std;
typedef long long ll;
const int inf = 200005;
ll n, vis[inf], size[inf], dep[inf], dp[inf], ans = 0;
vector <ll> adj[inf];
void dfs (int u, int f)
{
size[u] = 1;
d... | 16.116667 | 54 | 0.469493 | [
"vector"
] |
4d4d92be4d5ea2daa7d28dae3e0eca3ea75e59d5 | 66,845 | cpp | C++ | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_ENHANCED_MEMPOOL_MIB.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-12-02T05:45:49.000Z | 2022-02-10T19:32:54.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_ENHANCED_MEMPOOL_MIB.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-03-27T15:22:38.000Z | 2019-11-05T08:30:16.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_ENHANCED_MEMPOOL_MIB.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2016-12-02T05:45:52.000Z | 2019-11-07T08:28:17.000Z |
#include <sstream>
#include <iostream>
#include <ydk/entity_util.hpp>
#include "bundle_info.hpp"
#include "generated_entity_lookup.hpp"
#include "CISCO_ENHANCED_MEMPOOL_MIB.hpp"
using namespace ydk;
namespace cisco_ios_xe {
namespace CISCO_ENHANCED_MEMPOOL_MIB {
CISCOENHANCEDMEMPOOLMIB::CISCOENHANCEDMEMPOOLMIB()
... | 40.463075 | 1,008 | 0.74761 | [
"vector"
] |
4d501dd1e043b9a42b94e6f8a15226df0c4627f5 | 1,107 | cpp | C++ | treeintro.cpp | preetifeb13/Hackto21 | b026e526771053eb32aace35ee76ee7862b082fb | [
"MIT"
] | 7 | 2021-12-03T14:28:52.000Z | 2022-02-04T09:06:09.000Z | treeintro.cpp | riti2409/Hackto21 | ce7ae587a5dce631c01549afe6455fb58859538b | [
"MIT"
] | null | null | null | treeintro.cpp | riti2409/Hackto21 | ce7ae587a5dce631c01549afe6455fb58859538b | [
"MIT"
] | 2 | 2021-10-04T12:36:44.000Z | 2021-10-05T02:54:35.000Z | #include<bits/stdc++.h>
using namespace std;
struct treenode{
int val;
struct treenode *left;
struct treenode *right;
treenode(int data){
val=data;
left=right=NULL;
}
};
void preorder(treenode*root){
if(!root) return;
vector<int>v;
cout<<root->val<<" ";
... | 20.127273 | 37 | 0.593496 | [
"vector"
] |
4d55b0608f981c7cf696ef3ce94c596e135920fa | 2,720 | cpp | C++ | CUILib/Histogram.cpp | EMinsight/FEBioStudio | d3e6485610d19217550fb94cb22180bc4bda45f9 | [
"MIT"
] | null | null | null | CUILib/Histogram.cpp | EMinsight/FEBioStudio | d3e6485610d19217550fb94cb22180bc4bda45f9 | [
"MIT"
] | null | null | null | CUILib/Histogram.cpp | EMinsight/FEBioStudio | d3e6485610d19217550fb94cb22180bc4bda45f9 | [
"MIT"
] | null | null | null | /*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2021 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any pers... | 26.153846 | 89 | 0.715074 | [
"vector"
] |
4d56a3f535b81ca2f66554275697e3219b9631b9 | 96,576 | cpp | C++ | libs/libarchfpga/src/read_fpga_interchange_arch.cpp | amin1377/vtr-verilog-to-routing | 700be36e479442fa41d8cb3ceb86e967f4dc078a | [
"MIT"
] | null | null | null | libs/libarchfpga/src/read_fpga_interchange_arch.cpp | amin1377/vtr-verilog-to-routing | 700be36e479442fa41d8cb3ceb86e967f4dc078a | [
"MIT"
] | 1 | 2022-03-09T09:36:24.000Z | 2022-03-09T09:36:24.000Z | libs/libarchfpga/src/read_fpga_interchange_arch.cpp | amin1377/vtr-verilog-to-routing | 700be36e479442fa41d8cb3ceb86e967f4dc078a | [
"MIT"
] | null | null | null | #include <algorithm>
#include <kj/std/iostream.h>
#include <limits>
#include <map>
#include <regex>
#include <set>
#include <stdlib.h>
#include <string>
#include <string.h>
#include <zlib.h>
#include "vtr_assert.h"
#include "vtr_digest.h"
#include "vtr_log.h"
#include "vtr_memory.h"
#include "vtr_util.h"
#include "ar... | 37.977192 | 160 | 0.547424 | [
"vector",
"model"
] |
4d587463a2320dcf88dfb1349b5205dcc0525cb1 | 44,452 | cpp | C++ | src/utils.cpp | yuki-inaho/vsac | 4fb7b5e8c18fa05ef89ae092d7738da5522b8fd0 | [
"BSD-3-Clause"
] | 7 | 2021-10-22T04:45:34.000Z | 2022-03-31T13:08:13.000Z | src/utils.cpp | yuki-inaho/vsac | 4fb7b5e8c18fa05ef89ae092d7738da5522b8fd0 | [
"BSD-3-Clause"
] | 2 | 2022-01-23T12:08:31.000Z | 2022-01-25T15:42:47.000Z | src/utils.cpp | yuki-inaho/vsac | 4fb7b5e8c18fa05ef89ae092d7738da5522b8fd0 | [
"BSD-3-Clause"
] | 4 | 2021-11-15T06:36:28.000Z | 2022-03-27T11:17:35.000Z | #include "precomp.hpp"
#include <opencv2/flann/miniflann.hpp>
namespace cv { namespace vsac {
int mergePoints (InputArray pts1_, InputArray pts2_, Mat &pts, bool ispnp) {
Mat pts1 = pts1_.getMat(), pts2 = pts2_.getMat();
auto convertPoints = [] (Mat &points, int pt_dim) {
points.convertTo(points, CV_32... | 43.367805 | 178 | 0.561977 | [
"vector",
"3d"
] |
4d5eef6afbb0bbe4e18ef1baa126d6eacd376f7a | 1,629 | cpp | C++ | competitive programming/leetcode/15. 3Sum.cpp | kashyap99saksham/Code | 96658d0920eb79c007701d2a3cc9dbf453d78f96 | [
"MIT"
] | 16 | 2020-06-02T19:22:45.000Z | 2022-02-05T10:35:28.000Z | competitive programming/leetcode/15. 3Sum.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | null | null | null | competitive programming/leetcode/15. 3Sum.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 2 | 2020-08-27T17:40:06.000Z | 2022-02-05T10:33:52.000Z | Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
Note:
The solution set must not contain duplicate triplets.
Example:
Given array nums = [-1, 0, 1, 2, -1, -4],
A solution set is:
[
[-1, 0, 1],
[-1, ... | 24.313433 | 161 | 0.505832 | [
"vector"
] |
4d64b106879594bc2111e20d8ac703419103c2e3 | 2,816 | cc | C++ | src/CCA/Components/Models/SolidReactionModel/DiffusionModel.cc | damu1000/Uintah | 0c768664c1fe0a80eff2bbbd9b837e27f281f0a5 | [
"MIT"
] | 2 | 2021-12-17T05:50:44.000Z | 2021-12-22T21:37:32.000Z | src/CCA/Components/Models/SolidReactionModel/DiffusionModel.cc | damu1000/Uintah | 0c768664c1fe0a80eff2bbbd9b837e27f281f0a5 | [
"MIT"
] | null | null | null | src/CCA/Components/Models/SolidReactionModel/DiffusionModel.cc | damu1000/Uintah | 0c768664c1fe0a80eff2bbbd9b837e27f281f0a5 | [
"MIT"
] | 1 | 2020-11-30T04:46:05.000Z | 2020-11-30T04:46:05.000Z | /*
* The MIT License
*
* Copyright (c) 1997-2020 The University of Utah
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* right... | 37.546667 | 130 | 0.709162 | [
"model"
] |
4d66a1b02bcd20b772b38eb9ba845ec900c62db9 | 1,236 | cpp | C++ | boboleetcode/Play-Leetcode-master/0253-Meeting-Rooms-II/cpp-0253/main4.cpp | yaominzh/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 2 | 2021-03-25T05:26:55.000Z | 2021-04-20T03:33:24.000Z | boboleetcode/Play-Leetcode-master/0253-Meeting-Rooms-II/cpp-0253/main4.cpp | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 6 | 2019-12-04T06:08:32.000Z | 2021-05-10T20:22:47.000Z | boboleetcode/Play-Leetcode-master/0253-Meeting-Rooms-II/cpp-0253/main4.cpp | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | null | null | null | /// Source : https://leetcode.com/problems/meeting-rooms-ii/description/
/// Author : liuyubobobo
/// Time : 2018-09-10
#include <iostream>
#include <vector>
using namespace std;
/// Dealing with start time and end time seperately
/// make start time and end time in a pair structure
/// and deal with them in one ... | 22.472727 | 72 | 0.570388 | [
"vector"
] |
4d66ff9d37458602d7d83226cf00d12f491f1275 | 4,362 | hpp | C++ | sfml-porting/Shader.hpp | osom8979/example | f3cbe2c345707596edc1ec2763f9318c4676a92f | [
"Zlib"
] | 1 | 2020-02-11T05:37:54.000Z | 2020-02-11T05:37:54.000Z | sfml-porting/Shader.hpp | osom8979/example | f3cbe2c345707596edc1ec2763f9318c4676a92f | [
"Zlib"
] | null | null | null | sfml-porting/Shader.hpp | osom8979/example | f3cbe2c345707596edc1ec2763f9318c4676a92f | [
"Zlib"
] | 1 | 2022-03-01T00:47:19.000Z | 2022-03-01T00:47:19.000Z | /**
* @file Shader.hpp
* @brief Shader class prototype.
* @author zer0
* @date 2019-02-19
*/
#ifndef __INCLUDE_LIBTBAG__LIBTBAG_GUI_SHADER_HPP__
#define __INCLUDE_LIBTBAG__LIBTBAG_GUI_SHADER_HPP__
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif... | 31.381295 | 112 | 0.689592 | [
"geometry",
"vector"
] |
4d6848e8d7c3a080a6f88a5612d0b5a1ae5afffa | 9,555 | hpp | C++ | src/libs/optframe/src/OptFrame/MultiEvaluator.hpp | fellipessanha/LMRRC-Team-AIDA | 8076599427df0e35890caa7301972a53ae327edb | [
"MIT"
] | 1 | 2021-08-19T13:31:29.000Z | 2021-08-19T13:31:29.000Z | src/libs/optframe/src/OptFrame/MultiEvaluator.hpp | fellipessanha/LMRRC-Team-AIDA | 8076599427df0e35890caa7301972a53ae327edb | [
"MIT"
] | null | null | null | src/libs/optframe/src/OptFrame/MultiEvaluator.hpp | fellipessanha/LMRRC-Team-AIDA | 8076599427df0e35890caa7301972a53ae327edb | [
"MIT"
] | null | null | null | // OptFrame - Optimization Framework
// Copyright (C) 2009-2015
// http://optframe.sourceforge.net/
//
// This file is part of the OptFrame optimization framework. This framework
// is free software; you can redistribute it and/or modify it under the
// terms of the GNU Lesser General Public License v3 as published by... | 24.43734 | 181 | 0.654108 | [
"object",
"vector"
] |
4d69b22433bbdd9ef3094c19326685fdcb56e264 | 3,008 | hxx | C++ | OCC/inc/Approx_SameParameter.hxx | cy15196/FastCAE | 0870752ec2e590f3ea6479e909ebf6c345ac2523 | [
"BSD-3-Clause"
] | 117 | 2020-03-07T12:07:05.000Z | 2022-03-27T07:35:22.000Z | opencascade/Approx_SameParameter.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 33 | 2019-11-13T18:09:51.000Z | 2021-11-26T17:24:12.000Z | opencascade/Approx_SameParameter.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 76 | 2020-03-16T01:47:46.000Z | 2022-03-21T16:37:07.000Z | // Created on: 1995-06-02
// Created by: Xavier BENVENISTE
// Copyright (c) 1995-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the ... | 28.377358 | 177 | 0.772274 | [
"3d"
] |
4d75f5cf9e2dea707400cef1cde155189db0d841 | 16,533 | cpp | C++ | xsbench-sycl/Simulation.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 58 | 2020-08-06T18:53:44.000Z | 2021-10-01T07:59:46.000Z | xsbench-sycl/Simulation.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 2 | 2020-12-04T12:35:02.000Z | 2021-03-04T22:49:25.000Z | xsbench-sycl/Simulation.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 13 | 2020-08-19T13:44:18.000Z | 2021-09-08T04:25:34.000Z | #include "XSbench_header.h"
////////////////////////////////////////////////////////////////////////////////////
// BASELINE FUNCTIONS
////////////////////////////////////////////////////////////////////////////////////
// All "baseline" code is at the top of this file. The baseline code is a simple
// implementation ... | 38.09447 | 141 | 0.642654 | [
"object"
] |
4d7ae5852206bb1730fbf6dde0ea426ea44b8269 | 8,161 | cpp | C++ | lib/har/src/world/world.cpp | Ocead/HAR | 341738dd6d513573635f4d6c51b9c7bd8abfcc2b | [
"BSD-2-Clause"
] | 2 | 2020-09-11T18:11:10.000Z | 2020-10-20T17:25:38.000Z | lib/har/src/world/world.cpp | Ocead/HAR | 341738dd6d513573635f4d6c51b9c7bd8abfcc2b | [
"BSD-2-Clause"
] | null | null | null | lib/har/src/world/world.cpp | Ocead/HAR | 341738dd6d513573635f4d6c51b9c7bd8abfcc2b | [
"BSD-2-Clause"
] | null | null | null | //
// Created by Johannes on 26.05.2020.
//
#include <iomanip>
#include "world/world.hpp"
using namespace har;
world::world() : _model({ MODEL_GRID, dcoords_t() }, part::invalid()),
_bank({ BANK_GRID, dcoords_t() }, part::invalid()),
_cargo() {
}
world::world(const dcoords_t & mo... | 28.635088 | 119 | 0.483152 | [
"model"
] |
4d7ae858f91f62b7c2bb8292976402d8f15572a8 | 4,324 | cpp | C++ | Session_11/FFT_00_visualize/src/ofApp.cpp | bakercp/ExperimentalMedia2015 | bb596b20ebd7ffd5d85e4987e0d2d3e8f3e57e24 | [
"MIT"
] | 3 | 2015-09-01T23:34:44.000Z | 2015-09-18T04:25:18.000Z | Session_11/FFT_00_visualize/src/ofApp.cpp | bakercp/ExperimentalMedia2015 | bb596b20ebd7ffd5d85e4987e0d2d3e8f3e57e24 | [
"MIT"
] | null | null | null | Session_11/FFT_00_visualize/src/ofApp.cpp | bakercp/ExperimentalMedia2015 | bb596b20ebd7ffd5d85e4987e0d2d3e8f3e57e24 | [
"MIT"
] | null | null | null | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
windowWidth = ofGetWidth();
binSize = 512; //512 divisions form 0 - sampling rate (44100)
// to get the freq of the bin -> (samplingrate/binSize) * index of the bin
//this also means... | 38.265487 | 141 | 0.61679 | [
"vector"
] |
4d8008eaf1ff3580527f0f478ae86be147a760b1 | 9,226 | cpp | C++ | Examples/exOperations/exOperationApp.cpp | breseight/MAF2 | 77b517b5450cc7fe82cb99c5bb23db89980e30e8 | [
"Apache-2.0"
] | null | null | null | Examples/exOperations/exOperationApp.cpp | breseight/MAF2 | 77b517b5450cc7fe82cb99c5bb23db89980e30e8 | [
"Apache-2.0"
] | null | null | null | Examples/exOperations/exOperationApp.cpp | breseight/MAF2 | 77b517b5450cc7fe82cb99c5bb23db89980e30e8 | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
Program: MAF2
Module: exOperationApp
Authors: Paolo Quadrani
Copyright (c) B3C
All rights reserved. See Copyright.txt or
http://www.scsitaly.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; ... | 38.441667 | 125 | 0.586928 | [
"transform"
] |
4d87030c48dcc7483da4b753873c31ee55c39d93 | 11,887 | cc | C++ | performance/src/android/http_metric.cc | oliwilkinsonio/firebase-cpp-sdk | 1a2790030e92f77ad2aaa87000a1222d12dcabfc | [
"Apache-2.0"
] | 193 | 2019-03-18T16:30:43.000Z | 2022-03-30T17:39:32.000Z | performance/src/android/http_metric.cc | oliwilkinsonio/firebase-cpp-sdk | 1a2790030e92f77ad2aaa87000a1222d12dcabfc | [
"Apache-2.0"
] | 647 | 2019-03-18T20:50:41.000Z | 2022-03-31T18:32:33.000Z | performance/src/android/http_metric.cc | oliwilkinsonio/firebase-cpp-sdk | 1a2790030e92f77ad2aaa87000a1222d12dcabfc | [
"Apache-2.0"
] | 86 | 2019-04-21T09:40:38.000Z | 2022-03-26T20:48:37.000Z | // Copyright 2021 Google LLC
#import "performance/src/include/firebase/performance/http_metric.h"
#include <jni.h>
#include <string>
#include "app/src/assert.h"
#include "app/src/include/firebase/internal/common.h"
#include "app/src/log.h"
#include "app/src/util_android.h"
#include "performance/src/android/performa... | 33.866097 | 80 | 0.719273 | [
"object"
] |
4d8c8b2789391b50e60b25d5c585b3e593e3e16a | 4,112 | cpp | C++ | src/CostAdaptiveStateManager.cpp | wilseypa/warped | 8842cf88b11213b6b69e53de5e969c4e3c2c8bd5 | [
"MIT"
] | 12 | 2015-03-13T09:58:25.000Z | 2021-09-23T11:48:42.000Z | src/CostAdaptiveStateManager.cpp | wilseypa/warped | 8842cf88b11213b6b69e53de5e969c4e3c2c8bd5 | [
"MIT"
] | 1 | 2015-12-09T05:21:44.000Z | 2015-12-17T19:37:12.000Z | src/CostAdaptiveStateManager.cpp | wilseypa/warped | 8842cf88b11213b6b69e53de5e969c4e3c2c8bd5 | [
"MIT"
] | null | null | null | #include <ostream> // for operator<<, basic_ostream, etc
#include <string> // for char_traits, operator<<
#include "CostAdaptiveStateManager.h"
#include "DefaultObjectID.h" // for OBJECT_ID
#include "ObjectID.h" // for ObjectID
#include "Simulatio... | 38.074074 | 100 | 0.698444 | [
"object"
] |
4da9e3467dd9aeee932bb80a70fb46b69834a925 | 1,474 | cpp | C++ | Spoj/LongestPathInATree/main.cpp | jeevanpuchakay/a2oj | f867e9b2ced6619be3ca6b1a1a1838107322782d | [
"MIT"
] | null | null | null | Spoj/LongestPathInATree/main.cpp | jeevanpuchakay/a2oj | f867e9b2ced6619be3ca6b1a1a1838107322782d | [
"MIT"
] | null | null | null | Spoj/LongestPathInATree/main.cpp | jeevanpuchakay/a2oj | f867e9b2ced6619be3ca6b1a1a1838107322782d | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long double ld;
typedef long long int ll;
vector<vector<ll> > adjlist;
ll max(ll x,ll y) {return (x>y)?x:y;}
#define min(x,y) (x>y)?y:x
#define sfor(a,n,i) for(ll i=a;i<n;i++)
#define rfor(n,a,i) for(ll i=n;i>=a;i--)
#define mod 1000000007
#define pb push_back
#defi... | 16.75 | 55 | 0.485075 | [
"vector"
] |
4dab2958ae79d0dca4f726d1949f1bb54800ce46 | 1,975 | cpp | C++ | Phase 1 Placement Specific/Graph Problems/Planets and Kingdoms.cpp | aashitachouhan/CPP-DSA | 582cb72d6d5f2a6208cca7be57d50a2dc76e3e70 | [
"Apache-2.0"
] | null | null | null | Phase 1 Placement Specific/Graph Problems/Planets and Kingdoms.cpp | aashitachouhan/CPP-DSA | 582cb72d6d5f2a6208cca7be57d50a2dc76e3e70 | [
"Apache-2.0"
] | null | null | null | Phase 1 Placement Specific/Graph Problems/Planets and Kingdoms.cpp | aashitachouhan/CPP-DSA | 582cb72d6d5f2a6208cca7be57d50a2dc76e3e70 | [
"Apache-2.0"
] | null | null | null | /*Problem Statement:
A game has n planets, connected by m teleporters. Two planets a and b belong
to the same kingdom exactly when there is a route both from a to b and from b
to a. Your task is to determine for each planet its kingdom.
Constraints
1≤n≤105
1≤m≤2⋅105
1≤a,b≤n
Example
Input:
5 6
1 2
2 3
3 1
3 4
4 5
5 4
... | 17.954545 | 77 | 0.551392 | [
"vector"
] |
4dbc78df570b826e2d82bba5020e8cfe7524af8d | 2,314 | cpp | C++ | raytracer/sphere.cpp | bdolinar/ray_tracer_challenge_cpp | 96e746b58ca4a173583ecbccfcde714a22b12935 | [
"BSD-2-Clause"
] | null | null | null | raytracer/sphere.cpp | bdolinar/ray_tracer_challenge_cpp | 96e746b58ca4a173583ecbccfcde714a22b12935 | [
"BSD-2-Clause"
] | null | null | null | raytracer/sphere.cpp | bdolinar/ray_tracer_challenge_cpp | 96e746b58ca4a173583ecbccfcde714a22b12935 | [
"BSD-2-Clause"
] | null | null | null | #include <memory>
#include <raytracer/sphere.h>
#include <algorithm>
#include <raytracer/intersection.h>
//------------------------------------------------------------------------------
std::unique_ptr<Sphere> Sphere::new_ptr()
{
return std::make_unique<Sphere>();
}
//------------------------------------------... | 27.223529 | 80 | 0.496543 | [
"vector",
"transform"
] |
4dca1284cf8c355bdc061958b01501b2456524ba | 1,105 | cxx | C++ | src/Ray.cxx | fermi-lat/geometry | 71a08bdb0caf952566fed8d8aeb62bd264a4bab7 | [
"BSD-3-Clause"
] | null | null | null | src/Ray.cxx | fermi-lat/geometry | 71a08bdb0caf952566fed8d8aeb62bd264a4bab7 | [
"BSD-3-Clause"
] | null | null | null | src/Ray.cxx | fermi-lat/geometry | 71a08bdb0caf952566fed8d8aeb62bd264a4bab7 | [
"BSD-3-Clause"
] | null | null | null | // $Id: Ray.cxx,v 1.2 2001/09/21 18:37:19 atwood Exp $
#include "geometry/Ray.h"
Ray::Ray( const Point& p, const Vector& d )
: pos( p ), dir(d.unit()) , arclength(0), flag(0)
{
}
Ray::Ray( const Ray& r )
:pos(r.pos),GeomObject(), dir(r.dir), arclength(r.arclength)
{ // copy constructor
}
Point
Ray::position(doubl... | 18.728814 | 60 | 0.622624 | [
"geometry",
"vector",
"transform"
] |
4dcd4b8141c23f07c1349fd41a25ee3bbf5f5b41 | 9,889 | cpp | C++ | VR360VideoIos/src/VR360VideoIosApp.cpp | eighteight/CinderEigh | d9dfc6a0ad9a9e6c5b82624971127f0335d91639 | [
"Apache-2.0"
] | null | null | null | VR360VideoIos/src/VR360VideoIosApp.cpp | eighteight/CinderEigh | d9dfc6a0ad9a9e6c5b82624971127f0335d91639 | [
"Apache-2.0"
] | null | null | null | VR360VideoIos/src/VR360VideoIosApp.cpp | eighteight/CinderEigh | d9dfc6a0ad9a9e6c5b82624971127f0335d91639 | [
"Apache-2.0"
] | null | null | null | #include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "cinder/qtime/QuickTimeGl.h"
#include "cinder/MotionManager.h"
#include "cinder/Utilities.h"
#include "cinder/Log.h"
#include "cinder/Timeline.h"
#include "cinder/audio/MonitorNode.h"
#include "cinder/audio/Device.h"
us... | 33.408784 | 147 | 0.643948 | [
"mesh",
"vector"
] |
4dcd9d32ca73b1e340cc34a835cbae39897efe25 | 7,867 | hpp | C++ | include/questui_components/context.hpp | raineio/QuestUI-Playground | f4276bc287666d0956776642e6a46d98dfc3d280 | [
"MIT"
] | null | null | null | include/questui_components/context.hpp | raineio/QuestUI-Playground | f4276bc287666d0956776642e6a46d98dfc3d280 | [
"MIT"
] | null | null | null | include/questui_components/context.hpp | raineio/QuestUI-Playground | f4276bc287666d0956776642e6a46d98dfc3d280 | [
"MIT"
] | null | null | null | #pragma once
#include "key.hpp"
#include <concepts>
#include <tuple>
#include <any>
#include "UnityEngine/GameObject.hpp"
#include "UnityEngine/Transform.hpp"
namespace QUC {
template <typename T>
struct PtrWrapper {
T ptr;
};
struct UnsafeAny {
UnsafeAny() = default;
Unsafe... | 32.916318 | 136 | 0.557265 | [
"render",
"object",
"vector",
"transform"
] |
4dcf853ffed26713c292330721637a4b4585deba | 5,739 | cpp | C++ | src/source/Image.cpp | Matistjati/Mandelbuld-renderer | 0330eb6a1c8dee822ae2f8b8f7c82a89a6303f94 | [
"MIT"
] | 3 | 2019-06-21T21:34:12.000Z | 2022-01-26T10:45:29.000Z | src/source/Image.cpp | Matistjati/Mandelbuld-renderer | 0330eb6a1c8dee822ae2f8b8f7c82a89a6303f94 | [
"MIT"
] | 1 | 2019-05-25T17:39:40.000Z | 2019-06-02T11:05:54.000Z | src/source/Image.cpp | Matistjati/Mandelbuld-renderer | 0330eb6a1c8dee822ae2f8b8f7c82a89a6303f94 | [
"MIT"
] | null | null | null | #include "headers/Image.h"
#include "headers/Debug.h"
#include <stdexcept>
#include <iostream>
Image::Image(int width, int height, std::vector<Pixel> *pixels) : width(width), height(height), pixels(pixels), pixelsInitialized(false), hasAlpha(false)
{}
Image::Image(int width, int height, std::vector<glm::ivec4> pixels... | 22.417969 | 153 | 0.666492 | [
"vector"
] |
4dd796ab41726fecf7cbfbfcdd84ea439d93ca3f | 12,807 | cpp | C++ | muller-brown/muller_brown.cpp | muhammadhasyim/tps-torch | 21201458d037649fa66794b993ccfba7d7414028 | [
"BSD-3-Clause"
] | 3 | 2021-05-05T12:09:45.000Z | 2021-05-17T18:39:54.000Z | muller-brown/muller_brown.cpp | muhammadhasyim/tps-torch | 21201458d037649fa66794b993ccfba7d7414028 | [
"BSD-3-Clause"
] | null | null | null | muller-brown/muller_brown.cpp | muhammadhasyim/tps-torch | 21201458d037649fa66794b993ccfba7d7414028 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <fstream>
#include <random>
#include <algorithm>
#include <math.h>
#include <ctime>
#include <string>
#include <vector>
#include <chrono>
#include "saruprng.hpp"
#include "muller_brown.h"
using namespace std;
MullerBrown::MullerBrown() {
// Constructor, currently does nothing
stat... | 32.178392 | 183 | 0.563754 | [
"vector"
] |
4dd8ee7becc632494273186324f4afc5d7c0263b | 4,223 | cpp | C++ | src/NetService.cpp | Lw-Cui/Compression-server | 3501d746f14145d3764700d40d3672a0da0b2eae | [
"MIT"
] | 3 | 2016-12-10T16:06:20.000Z | 2017-06-25T12:47:06.000Z | src/NetService.cpp | Lw-Cui/Compression-server | 3501d746f14145d3764700d40d3672a0da0b2eae | [
"MIT"
] | 2 | 2017-05-15T15:22:36.000Z | 2017-05-20T15:01:25.000Z | src/NetService.cpp | Lw-Cui/Tiny-server | 3501d746f14145d3764700d40d3672a0da0b2eae | [
"MIT"
] | null | null | null | #include <NetService.hpp>
using namespace std;
int Client::connectServer(const std::string &hostname, int port, SocketType type) {
if ((connfd = socket(AF_INET, type, 0)) < 0)
err_sys("Open socket error");
struct hostent *hostInfo = nullptr;
if ((hostInfo = gethostbyname(hostname.c_str())) == nul... | 30.164286 | 102 | 0.624438 | [
"vector"
] |
4dd9e513125dc8b32e07d89fea4f4ddb6e09b220 | 707 | cpp | C++ | Cplus/TheSkylineProblem.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | 1 | 2018-01-22T12:06:28.000Z | 2018-01-22T12:06:28.000Z | Cplus/TheSkylineProblem.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | Cplus/TheSkylineProblem.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | #include <set>
#include <vector>
using namespace std;
/*
range check
*/
class Solution
{
public:
vector<vector<int>> getSkyline(vector<vector<int>> &buildings)
{
vector<vector<int>> res;
int maxheight = 0;
multiset<pair<int, int>> criticalpoint; //{range bounder,height}
for (auto &b : buildings)
{
crit... | 18.605263 | 66 | 0.623762 | [
"vector"
] |
4ddaaa6b508061d3fcf9c50ba8db9a8959559b38 | 19,293 | cc | C++ | connectivity/shill/test-rpc-proxy/proxy_rpc_server.cc | Keneral/asystem | df12381b72ef3d629c8efc61100cc8c714195320 | [
"Unlicense"
] | null | null | null | connectivity/shill/test-rpc-proxy/proxy_rpc_server.cc | Keneral/asystem | df12381b72ef3d629c8efc61100cc8c714195320 | [
"Unlicense"
] | null | null | null | connectivity/shill/test-rpc-proxy/proxy_rpc_server.cc | Keneral/asystem | df12381b72ef3d629c8efc61100cc8c714195320 | [
"Unlicense"
] | null | null | null | //
// Copyright (C) 2015 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... | 33.611498 | 82 | 0.742445 | [
"vector"
] |
4ddd609801e13f73db298ef1b5b5ed82916f74ae | 25,226 | cc | C++ | chrome/browser/chromeos/policy/handlers/minimum_version_policy_handler.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-10-18T02:33:40.000Z | 2020-10-18T02:33:40.000Z | chrome/browser/chromeos/policy/handlers/minimum_version_policy_handler.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2021-05-17T16:28:52.000Z | 2021-05-21T22:42:22.000Z | chrome/browser/chromeos/policy/handlers/minimum_version_policy_handler.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2017 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/chromeos/policy/handlers/minimum_version_policy_handler.h"
#include <algorithm>
#include <string>
#include <utility>
#inclu... | 38.690184 | 97 | 0.741378 | [
"vector"
] |
4e2878293cacab9613385ca7cf2377c9387784c7 | 4,097 | cpp | C++ | experimental/benchmarks/benchmarks/cache/benchmark_structure_and_array.cpp | Dllieu/experimental | 05a32a786d541b5560f713e2cf87e147142999cb | [
"MIT"
] | null | null | null | experimental/benchmarks/benchmarks/cache/benchmark_structure_and_array.cpp | Dllieu/experimental | 05a32a786d541b5560f713e2cf87e147142999cb | [
"MIT"
] | 26 | 2017-10-10T18:02:16.000Z | 2019-08-12T03:06:39.000Z | experimental/benchmarks/benchmarks/cache/benchmark_structure_and_array.cpp | Dllieu/experimental | 05a32a786d541b5560f713e2cf87e147142999cb | [
"MIT"
] | null | null | null | #include <algorithm>
#include <benchmark/benchmark.h>
#include <limits>
#include <random>
#include <utils/cache_information.h>
namespace
{
template <typename F>
void RunBenchmark(benchmark::State& iState, F&& iFunctor)
{
std::size_t size = iState.range(0);
for ([[maybe_unused]] auto handle... | 32.007813 | 140 | 0.557481 | [
"vector"
] |
4e2a73384060fe2a5c33acfc5d57639c35f58272 | 818 | hpp | C++ | lib/include/Room.hpp | glbwsk/oop | 7856a909bfdd197dc13c0f6945ef9c6e00aaa889 | [
"MIT"
] | 1 | 2020-07-02T17:16:29.000Z | 2020-07-02T17:16:29.000Z | lib/include/Room.hpp | glbwsk/oop | 7856a909bfdd197dc13c0f6945ef9c6e00aaa889 | [
"MIT"
] | null | null | null | lib/include/Room.hpp | glbwsk/oop | 7856a909bfdd197dc13c0f6945ef9c6e00aaa889 | [
"MIT"
] | 1 | 2021-05-28T13:13:19.000Z | 2021-05-28T13:13:19.000Z | #ifndef ROOM_HPP
#define ROOM_HPP
#include "Date.hpp"
#include "Equipment.hpp"
#include <vector>
#include <memory>
class Room
{
public:
Room( int number = 0,
int floorNumber = 0,
int pricePerDay = 100 );
virtual ~Room() = default;
// getters & setters
int getNum... | 19.95122 | 61 | 0.621027 | [
"vector"
] |
4e2e1292358d6294ff8cced244d640c8d1ae5ce4 | 77,131 | cpp | C++ | Source/Services/Social/Manager/social_graph.cpp | KevinAsgari/xbox-live-api | ffd23ba0a9f93790afd67de222011be0c2147a29 | [
"MIT"
] | null | null | null | Source/Services/Social/Manager/social_graph.cpp | KevinAsgari/xbox-live-api | ffd23ba0a9f93790afd67de222011be0c2147a29 | [
"MIT"
] | null | null | null | Source/Services/Social/Manager/social_graph.cpp | KevinAsgari/xbox-live-api | ffd23ba0a9f93790afd67de222011be0c2147a29 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "pch.h"
#include "social_manager_internal.h"
#include "xsapi/services.h"
#include "xsapi/system.h"
#include "xsapi/presence.h"
#include "xbox_live_context_impl.h"
#inclu... | 37.082212 | 228 | 0.663909 | [
"vector"
] |
4e3025c6b94b5d1d2ee43ba605d718bdcf0b6d66 | 1,539 | cpp | C++ | 980.cpp | ducthienbui97/Random-leetcode | 209cbf537319875735b5dea876103f13eecef6d1 | [
"MIT"
] | null | null | null | 980.cpp | ducthienbui97/Random-leetcode | 209cbf537319875735b5dea876103f13eecef6d1 | [
"MIT"
] | null | null | null | 980.cpp | ducthienbui97/Random-leetcode | 209cbf537319875735b5dea876103f13eecef6d1 | [
"MIT"
] | null | null | null | // Leetcode 980. Unique Paths III
class Solution {
public:
constexpr const static int xDir[4] = {0,0,1,-1};
constexpr const static int yDir[4] = {1,-1,0,0};
int visit(int x, int y, int finishX, int finishY, int rows, int cols, int visited, int mark) {
int current = 1 << (x*cols) + y;
if(curr... | 32.0625 | 98 | 0.411956 | [
"vector"
] |
4e30ee81ced49ed184e38b049e6801a116936e54 | 13,923 | cpp | C++ | Trash/sandbox/qt_webkit/qt-qtwebkit-examples/examples/webkitwidgets/embedded/anomaly/src/flickcharm.cpp | ruslankuzmin/julia | 2ad5bfb9c9684b1c800e96732a9e2f1e844b856f | [
"BSD-3-Clause"
] | null | null | null | Trash/sandbox/qt_webkit/qt-qtwebkit-examples/examples/webkitwidgets/embedded/anomaly/src/flickcharm.cpp | ruslankuzmin/julia | 2ad5bfb9c9684b1c800e96732a9e2f1e844b856f | [
"BSD-3-Clause"
] | null | null | null | Trash/sandbox/qt_webkit/qt-qtwebkit-examples/examples/webkitwidgets/embedded/anomaly/src/flickcharm.cpp | ruslankuzmin/julia | 2ad5bfb9c9684b1c800e96732a9e2f1e844b856f | [
"BSD-3-Clause"
] | 1 | 2020-08-30T20:40:25.000Z | 2020-08-30T20:40:25.000Z | /****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees hold... | 34.548387 | 118 | 0.591324 | [
"object"
] |
4e33e11e16b604df70f95902fdb92dc34f658b4f | 26,069 | cxx | C++ | vtkview/vtkview.cxx | sferanchuk/tbev | 71e62ae093719aa0e0de4708e87e589129b44f96 | [
"MIT"
] | null | null | null | vtkview/vtkview.cxx | sferanchuk/tbev | 71e62ae093719aa0e0de4708e87e589129b44f96 | [
"MIT"
] | null | null | null | vtkview/vtkview.cxx | sferanchuk/tbev | 71e62ae093719aa0e0de4708e87e589129b44f96 | [
"MIT"
] | null | null | null |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <map>
#include <string>
#include <set>
using namespace std;
#include <vtkSmartPointer.h>
#include <vtkVersion.h>
#include <vtkParametricFunctionSource.h>
#include <vtkTupleInterpolator.h>
#include <vtkTubeFilter.h>
#include <vtkP... | 32.708908 | 199 | 0.640761 | [
"render"
] |
4e36e985334777ea682b37b8084bf9f157157d0e | 1,928 | hpp | C++ | 3rdParty/boost/1.71.0/libs/hana/test/_include/auto/for_each.hpp | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | 3rdParty/boost/1.71.0/libs/hana/test/_include/auto/for_each.hpp | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | 3rdParty/boost/1.71.0/libs/hana/test/_include/auto/for_each.hpp | rajeev02101987/arangodb | 817e6c04cb82777d266f3b444494140676da98e2 | [
"Apache-2.0"
] | 1,343 | 2017-12-08T19:47:19.000Z | 2022-03-26T11:31:36.000Z | // Copyright Louis Dionne 2013-2017
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#ifndef BOOST_HANA_TEST_AUTO_FOR_EACH_HPP
#define BOOST_HANA_TEST_AUTO_FOR_EACH_HPP
#include <boost/hana/assert.hpp>
#include <boost/hana/... | 29.661538 | 97 | 0.592842 | [
"vector"
] |
4e38a15b9a1af2cd5a31c483e27970f5a4c45250 | 1,719 | cc | C++ | 2021/Vjudge/2017 Multi-University Training Contest - Team 6/H.cc | slowbear/TrainingCode | 688872b9dab784a410069b787457f8c0871648aa | [
"CC0-1.0"
] | null | null | null | 2021/Vjudge/2017 Multi-University Training Contest - Team 6/H.cc | slowbear/TrainingCode | 688872b9dab784a410069b787457f8c0871648aa | [
"CC0-1.0"
] | null | null | null | 2021/Vjudge/2017 Multi-University Training Contest - Team 6/H.cc | slowbear/TrainingCode | 688872b9dab784a410069b787457f8c0871648aa | [
"CC0-1.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using LL = long long;
using Pii = pair<int, int>;
using Pll = pair<LL, LL>;
using VI = vector<int>;
using VP = vector<pair<int, int>>;
#define rep(i, a, b) for (auto i = (a); i < (b); ++i)
#define rev(i, a, b) for (auto i = (b - 1); i >= (a); --i)
#define grep(i, u) for (au... | 24.211268 | 60 | 0.400233 | [
"vector"
] |
4e3960cc7fada00072bf6181fe08aa5efda85657 | 1,059 | cc | C++ | racional/racional_main.cc | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-Marcant97 | d1dbcfb1ea8e478b869c10ae718cada45155a8ae | [
"MIT"
] | null | null | null | racional/racional_main.cc | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-Marcant97 | d1dbcfb1ea8e478b869c10ae718cada45155a8ae | [
"MIT"
] | null | null | null | racional/racional_main.cc | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-Marcant97 | d1dbcfb1ea8e478b869c10ae718cada45155a8ae | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <cstring>
#include <algorithm>
#include "racional.h"
// #include "tools.h"
int main(){
// Usage(argc, argv);
std::string fichero_entrada{};
std::cin>>fichero_entrada;
// std::string fichero_salida{argv[2]};
racional result... | 23.533333 | 47 | 0.672332 | [
"vector"
] |
4e3cfc936024373c472448eb4fdd65993f0f132b | 821 | cpp | C++ | src/processor.cpp | sk-banerjee/system-monitor | 17f4b3c2f57497f1e4c1cae5b49670d4538c78fa | [
"MIT"
] | null | null | null | src/processor.cpp | sk-banerjee/system-monitor | 17f4b3c2f57497f1e4c1cae5b49670d4538c78fa | [
"MIT"
] | null | null | null | src/processor.cpp | sk-banerjee/system-monitor | 17f4b3c2f57497f1e4c1cae5b49670d4538c78fa | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
#include <numeric>
#include <unistd.h>
#include "processor.h"
#include "linux_parser.h"
using namespace std;
// Return the aggregate CPU utilization
float Processor::Utilization() {
float utilization = 0;
long active = LinuxParser::ActiveJiffies();
long idle = LinuxParser::... | 23.457143 | 57 | 0.696711 | [
"vector"
] |
4e3e7cca7a99a4e8ca52697183c64a6378768ebd | 59 | cpp | C++ | src/core/Vector.cpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 11 | 2018-11-22T03:07:10.000Z | 2022-03-31T15:51:29.000Z | src/core/Vector.cpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 2 | 2019-02-14T15:05:42.000Z | 2019-07-26T06:07:13.000Z | src/core/Vector.cpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 4 | 2018-12-18T12:40:07.000Z | 2022-03-31T15:51:31.000Z | #include <core\Vector.hpp>
NAMESPACE_BEGIN
NAMESPACE_END
| 9.833333 | 26 | 0.813559 | [
"vector"
] |
4e411119bde9487bd96f675bddba0d3f5e8b3e39 | 9,274 | cc | C++ | content/browser/indexed_db/indexed_db_factory.cc | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/indexed_db/indexed_db_factory.cc | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/indexed_db/indexed_db_factory.cc | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013 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 "content/browser/indexed_db/indexed_db_factory.h"
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
#include "base/... | 36.085603 | 80 | 0.703796 | [
"vector"
] |
4e48d6f69e9b97268a57de65927816128c149943 | 2,301 | cpp | C++ | binding/matlab/S2M_ContactGamma.cpp | fmoissenet/biorbd | 3b3352bf06b9e8fbbdf4f77c852b6a115522becf | [
"MIT"
] | null | null | null | binding/matlab/S2M_ContactGamma.cpp | fmoissenet/biorbd | 3b3352bf06b9e8fbbdf4f77c852b6a115522becf | [
"MIT"
] | null | null | null | binding/matlab/S2M_ContactGamma.cpp | fmoissenet/biorbd | 3b3352bf06b9e8fbbdf4f77c852b6a115522becf | [
"MIT"
] | null | null | null |
void S2M_ContactGamma( int nlhs, mxArray *plhs[],
int nrhs, const mxArray*prhs[] ){
// Verifier les arguments d'entrée
checkNombreInputParametres(nrhs, 4, 4, "4 arguments are required where the 2nd is the handler on the model, 3rd is the Q and 4th is the Qdot");
// Recevoir le model
s2mMusculoSkeletalMode... | 43.415094 | 147 | 0.64146 | [
"model"
] |
4e4a645f073d90caa4098bc60b77f209f10bcb42 | 1,633 | cpp | C++ | CppSTL/Chapter1/vectors/vec2.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 19 | 2019-09-15T12:23:51.000Z | 2020-06-18T08:31:26.000Z | CppSTL/Chapter1/vectors/vec2.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 15 | 2021-12-07T06:46:03.000Z | 2022-01-31T07:55:32.000Z | CppSTL/Chapter1/vectors/vec2.cpp | SebastianTirado/Cpp-Learning-Archive | fb83379d0cc3f9b2390cef00119464ec946753f4 | [
"MIT"
] | 13 | 2019-06-29T02:58:27.000Z | 2020-05-07T08:52:22.000Z | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
template<class T>
class Vector {
template<class U>
friend istream& operator>>( istream&, Vector<U>&);
template<class U>
friend ostream& operator<<( ostream&, Vector<U>&);
private:
T size;
vector<T> vect;
public:
tem... | 21.486842 | 61 | 0.490508 | [
"vector"
] |
4e4d002265ba8cf24345a764275bc4aade21988f | 11,395 | hpp | C++ | SRC/Maps/MapUtils.hpp | poli0048/Recon | d3836b3ea569f389c238469b17390ed6e9c34b65 | [
"BSD-3-Clause"
] | 1 | 2021-12-26T12:53:35.000Z | 2021-12-26T12:53:35.000Z | SRC/Maps/MapUtils.hpp | poli0048/Recon | d3836b3ea569f389c238469b17390ed6e9c34b65 | [
"BSD-3-Clause"
] | null | null | null | SRC/Maps/MapUtils.hpp | poli0048/Recon | d3836b3ea569f389c238469b17390ed6e9c34b65 | [
"BSD-3-Clause"
] | 2 | 2021-06-12T18:34:18.000Z | 2021-12-26T12:53:44.000Z | //This module provides utility functions for coordinate conversions, tile lookup, and related things
//Author: Bryan Poling
//Copyright (c) 2020 Sentek Systems, LLC. All rights reserved.
#pragma once
//System Includes
#include <cstdint>
#include <tuple>
#include <cmath>
//Eigen Includes
#include "../../../eigen/Eige... | 47.677824 | 164 | 0.714173 | [
"vector"
] |
4e4e0e2b7c2108e31d9c36948adbfedab430c638 | 6,849 | cpp | C++ | Old Files/Car3D_Intersection/Car3D_Intersection/fourway_intersection_1.cpp | karenl7/stlhj | c3f35aefe81e2f6c721e4723ba4d07930b2661e7 | [
"MIT"
] | 6 | 2019-01-30T00:11:55.000Z | 2022-03-09T02:44:51.000Z | Old Files/Car3D_Intersection/Car3D_Intersection/fourway_intersection_1.cpp | StanfordASL/stlhj | c3f35aefe81e2f6c721e4723ba4d07930b2661e7 | [
"MIT"
] | null | null | null | Old Files/Car3D_Intersection/Car3D_Intersection/fourway_intersection_1.cpp | StanfordASL/stlhj | c3f35aefe81e2f6c721e4723ba4d07930b2661e7 | [
"MIT"
] | 4 | 2018-09-08T00:16:55.000Z | 2022-03-09T02:44:54.000Z | #include "add_lane.cpp"
#include "add_sq.cpp"
#include "get_subvector.cpp"
#include "update_lane.cpp"
void fourway_intersection(
beacls::FloatVec& lane,
levelset::HJI_Grid* g,
beacls::FloatVec gmin,
beacls::FloatVec gmax,
int Command)
{
FLOAT_TYPE vehicle_width = 1.;
FLOAT_TYPE lane_width = 4.;
... | 43.624204 | 100 | 0.634691 | [
"shape",
"vector"
] |
4e521fe8ac2bb5baedd8977b7395b2f800e4becb | 3,464 | hpp | C++ | dockerfiles/gaas_tutorial_2/GAAS/software/SLAM/ygz_slam_ros/Thirdparty/PCL/surface/include/pcl/surface/impl/marching_cubes_hoppe.hpp | hddxds/scripts_from_gi | afb8977c001b860335f9062464e600d9115ea56e | [
"Apache-2.0"
] | 2 | 2019-04-10T14:04:52.000Z | 2019-05-29T03:41:58.000Z | software/SLAM/ygz_slam_ros/Thirdparty/PCL/surface/include/pcl/surface/impl/marching_cubes_hoppe.hpp | glider54321/GAAS | 5c3b8c684e72fdf7f62c5731a260021e741069e7 | [
"BSD-3-Clause"
] | null | null | null | software/SLAM/ygz_slam_ros/Thirdparty/PCL/surface/include/pcl/surface/impl/marching_cubes_hoppe.hpp | glider54321/GAAS | 5c3b8c684e72fdf7f62c5731a260021e741069e7 | [
"BSD-3-Clause"
] | 1 | 2021-12-20T06:54:41.000Z | 2021-12-20T06:54:41.000Z | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code mu... | 36.083333 | 107 | 0.659065 | [
"vector"
] |
4e5da5d2dfdf7a8f5676a36966d24a9e00cc9370 | 16,565 | cpp | C++ | src/shape.cpp | jondgoodwin/pegasus3d | b30cf4bcc707b4aca9c32c3fbd5aafc3798d7ec5 | [
"MIT-0",
"MIT"
] | 4 | 2018-01-01T08:57:08.000Z | 2021-12-01T14:36:58.000Z | src/shape.cpp | jondgoodwin/pegasus3d | b30cf4bcc707b4aca9c32c3fbd5aafc3798d7ec5 | [
"MIT-0",
"MIT"
] | null | null | null | src/shape.cpp | jondgoodwin/pegasus3d | b30cf4bcc707b4aca9c32c3fbd5aafc3798d7ec5 | [
"MIT-0",
"MIT"
] | null | null | null | /** Shape type - Handles a 3-D geometric mesh
* @file
*
* This source file is part of the Pegasus3d browser.
* See Copyright Notice in pegasus3d.h
*/
#include "pegasus3d.h"
#include "xyzmath.h"
#include <math.h>
/** Generate a sphere shape centered at (0,0,0), passing radius and nsegments.
The geometry is via lon... | 36.168122 | 107 | 0.666948 | [
"mesh",
"geometry",
"render",
"object",
"shape"
] |
4e6373be0d8032f03a28171c37907ce21b0655e2 | 8,030 | cc | C++ | Code/Components/Services/icewrapper/current/tosmetadata/TypedValueMapConstMapper.cc | rtobar/askapsoft | 6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | Code/Components/Services/icewrapper/current/tosmetadata/TypedValueMapConstMapper.cc | rtobar/askapsoft | 6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | Code/Components/Services/icewrapper/current/tosmetadata/TypedValueMapConstMapper.cc | rtobar/askapsoft | 6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | /// @file TypedValueMapConstMapper.cc
///
/// @copyright (c) 2010 CSIRO
/// Australia Telescope National Facility (ATNF)
/// Commonwealth Scientific and Industrial Research Organisation (CSIRO)
/// PO Box 76, Epping NSW 1710, Australia
/// atnf-enquiries@csiro.au
///
/// This file is part of the ASKAP software distribu... | 33.881857 | 106 | 0.708219 | [
"vector"
] |
4e6a90623a723d02db3048d593b2904c6200bf91 | 5,141 | cpp | C++ | src/xrGame/CarLights.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 2 | 2015-02-23T10:43:02.000Z | 2015-06-11T14:45:08.000Z | src/xrGame/CarLights.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 17 | 2022-01-25T08:58:23.000Z | 2022-03-28T17:18:28.000Z | src/xrGame/CarLights.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 1 | 2015-06-05T20:04:00.000Z | 2015-06-05T20:04:00.000Z | #include "StdAfx.h"
#include "CarLights.h"
#ifdef DEBUG
#include "PHDebug.h"
#endif
#include "alife_space.h"
#include "Hit.h"
#include "PHDestroyable.h"
#include "Car.h"
#include "Include/xrRender/Kinematics.h"
// extern CPHWorld* ph_world;
#include "xrPhysics/IPHWorld.h"
SCarLight::SCarLight()
{
light_render = ... | 26.364103 | 98 | 0.641898 | [
"render"
] |
4e7517470b1dc29140cbdfecb8cf68d30b22e70d | 2,389 | hpp | C++ | plugin/lua/src/minko/component/LuaSurface.hpp | undeadinu/minko | 9171805751fb3a50c6fcab0b78892cdd4253ee11 | [
"BSD-3-Clause"
] | null | null | null | plugin/lua/src/minko/component/LuaSurface.hpp | undeadinu/minko | 9171805751fb3a50c6fcab0b78892cdd4253ee11 | [
"BSD-3-Clause"
] | null | null | null | plugin/lua/src/minko/component/LuaSurface.hpp | undeadinu/minko | 9171805751fb3a50c6fcab0b78892cdd4253ee11 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2014 Aerys
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicens... | 37.328125 | 142 | 0.670992 | [
"geometry",
"render"
] |
4e7a2ed6f3ef7d58a2ca7f1627315fbb2b41bbb9 | 5,216 | hpp | C++ | pixy/src/host/libpixyusb/src/pixyinterpreter.hpp | GambuzX/Pixy-SIW | 8d76b0c41402756533f444e1f99b332f74123618 | [
"MIT"
] | 1 | 2019-05-30T00:52:06.000Z | 2019-05-30T00:52:06.000Z | pixy/src/host/libpixyusb/src/pixyinterpreter.hpp | GambuzX/Pixy-SIW | 8d76b0c41402756533f444e1f99b332f74123618 | [
"MIT"
] | 1 | 2015-05-11T19:51:54.000Z | 2015-05-11T19:51:54.000Z | pixy/src/host/libpixyusb/src/pixyinterpreter.hpp | GambuzX/Pixy-SIW | 8d76b0c41402756533f444e1f99b332f74123618 | [
"MIT"
] | null | null | null | //
// begin license header
//
// This file is part of Pixy CMUcam5 or "Pixy" for short
//
// All Pixy source code is provided under the terms of the
// GNU General Public License v2 (http://www.gnu.org/licenses/gpl-2.0.html).
// Those wishing to use Pixy source code, software and/or
// technologies under differ... | 32.397516 | 97 | 0.60046 | [
"object",
"vector"
] |
4e81633d6bb30fecd26c3a9c8f57e087b44e4628 | 1,170 | cpp | C++ | cpp/lib/dp/knapsack/01_knapsack_v.cpp | KATO-Hiro/atcoder-1 | c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2 | [
"MIT"
] | null | null | null | cpp/lib/dp/knapsack/01_knapsack_v.cpp | KATO-Hiro/atcoder-1 | c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2 | [
"MIT"
] | null | null | null | cpp/lib/dp/knapsack/01_knapsack_v.cpp | KATO-Hiro/atcoder-1 | c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
// --------------------------------------------------------
template<class T> bool chmax(T& a, const T b) { if (a < b) { a = b; return 1; } return 0; }
#define FOR(i,l,r) for (ll i = (l); i < (r); ++i)
#define REP(i,n) FOR(i,0,n)
#define ALL(c) (c).beg... | 28.536585 | 91 | 0.442735 | [
"vector"
] |
4e83976a3575a1ec34c5cb9b07bd74165032fd8d | 7,196 | cpp | C++ | dali/array/op/spatial_utils.cpp | bzcheeseman/Dali | a77c7ce60b20ce150a5927747e128688657907eb | [
"MIT"
] | null | null | null | dali/array/op/spatial_utils.cpp | bzcheeseman/Dali | a77c7ce60b20ce150a5927747e128688657907eb | [
"MIT"
] | null | null | null | dali/array/op/spatial_utils.cpp | bzcheeseman/Dali | a77c7ce60b20ce150a5927747e128688657907eb | [
"MIT"
] | null | null | null | #include "spatial_utils.h"
#include "dali/utils/make_message.h"
#include "dali/utils/assert2.h"
#include "dali/utils/print_utils.h"
namespace {
int int_ceil(int numerator, int denominator) {
return (numerator + denominator - 1) / denominator;
}
struct DataFormatDimMapping {
int n_dim;
... | 42.579882 | 93 | 0.555447 | [
"vector"
] |
4e846852f80a8b9b3c7d2522f94a985bff2f191c | 44,464 | cpp | C++ | Viewer/ecflowUI/src/VModelData.cpp | ecmwf/ecflow | 2498d0401d3d1133613d600d5c0e0a8a30b7b8eb | [
"Apache-2.0"
] | 11 | 2020-08-07T14:42:45.000Z | 2021-10-21T01:59:59.000Z | Viewer/ecflowUI/src/VModelData.cpp | CoollRock/ecflow | db61dddc84d3d2c7dd6af95fd799d717c6bc2a6d | [
"Apache-2.0"
] | 10 | 2020-08-07T14:36:27.000Z | 2022-02-22T06:51:24.000Z | Viewer/ecflowUI/src/VModelData.cpp | CoollRock/ecflow | db61dddc84d3d2c7dd6af95fd799d717c6bc2a6d | [
"Apache-2.0"
] | 6 | 2020-08-07T14:34:38.000Z | 2022-01-10T12:06:27.000Z | //============================================================================
// Copyright 2009-2020 ECMWF.
// This software is licensed under the terms of the Apache Licence version 2.0
// which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
// In applying this licence, ECMWF does not waive the privil... | 26.866465 | 132 | 0.610044 | [
"vector",
"model"
] |
4e8a7c07e84ffdb088bee9586e2f2ebf935016f4 | 938 | hpp | C++ | src/engine/components/HitboxComponent.hpp | arthurchaloin/indie | 84fa7f0864c54e4b35620235ca4e852d7b85fffd | [
"MIT"
] | null | null | null | src/engine/components/HitboxComponent.hpp | arthurchaloin/indie | 84fa7f0864c54e4b35620235ca4e852d7b85fffd | [
"MIT"
] | null | null | null | src/engine/components/HitboxComponent.hpp | arthurchaloin/indie | 84fa7f0864c54e4b35620235ca4e852d7b85fffd | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2018
** Thomas Arbona
** File description:
** engine
*/
#pragma once
#include <irrlicht/irrlicht.h>
#include <vector>
#include <functional>
#include "engine/utils/ComponentConstraint.hpp"
#include "../helpers/GeometryHelper.hpp"
namespace engine {
class Entity;
struct HitboxComponent {
... | 22.333333 | 69 | 0.666311 | [
"vector"
] |
4e97c8862d7f4e85ce1d600cb13a7c39931b1e28 | 25,781 | cpp | C++ | android/android_42/base/libs/hwui/FontRenderer.cpp | yakuizhao/intel-vaapi-driver | b2bb0383352694941826543a171b557efac2219b | [
"MIT"
] | null | null | null | android/android_42/base/libs/hwui/FontRenderer.cpp | yakuizhao/intel-vaapi-driver | b2bb0383352694941826543a171b557efac2219b | [
"MIT"
] | null | null | null | android/android_42/base/libs/hwui/FontRenderer.cpp | yakuizhao/intel-vaapi-driver | b2bb0383352694941826543a171b557efac2219b | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 33.56901 | 100 | 0.608355 | [
"render",
"shape",
"vector"
] |
4e9b93af7bff97a38d234a130a9fa32b89d18b3d | 2,912 | cpp | C++ | Google CodeJam/CJ191Ba.cpp | anubhawbhalotia/Competitive-Programming | 32d7003abf9af4999b3dfa78fe1df9022ebbf50b | [
"MIT"
] | null | null | null | Google CodeJam/CJ191Ba.cpp | anubhawbhalotia/Competitive-Programming | 32d7003abf9af4999b3dfa78fe1df9022ebbf50b | [
"MIT"
] | null | null | null | Google CodeJam/CJ191Ba.cpp | anubhawbhalotia/Competitive-Programming | 32d7003abf9af4999b3dfa78fe1df9022ebbf50b | [
"MIT"
] | 1 | 2020-05-20T18:36:31.000Z | 2020-05-20T18:36:31.000Z | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define mp make_pair
#define pb push_back
#define lb lower_bound
#define ub upper_bound
#define all(v) v.begin(),v.end()
#define allr(v) v.rbegin(),v.rend()
#define fi first
#define se second
#define f(i,s,n) for(long i=s;i<n;i++)
#define fe(i,s,n) for(l... | 20.507042 | 68 | 0.545673 | [
"vector"
] |
4e9cc8f3700530aeb9e2cc7ba48bc891b9e404d5 | 1,962 | cpp | C++ | src/compute/ComputeModule.cpp | DavHau/Riner | f9e9815b713572f03497f0e4e66c3f82a0241b66 | [
"MIT"
] | 4 | 2019-07-24T03:24:08.000Z | 2022-03-04T07:41:08.000Z | src/compute/ComputeModule.cpp | DavHau/Riner | f9e9815b713572f03497f0e4e66c3f82a0241b66 | [
"MIT"
] | 3 | 2019-07-30T22:10:39.000Z | 2020-06-15T15:57:08.000Z | src/compute/ComputeModule.cpp | DavHau/Riner | f9e9815b713572f03497f0e4e66c3f82a0241b66 | [
"MIT"
] | 6 | 2019-07-30T21:33:07.000Z | 2022-03-21T20:53:11.000Z |
#include "ComputeModule.h"
#include <src/common/OpenCL.h>
#include <src/common/Optional.h>
#include <src/util/Logging.h>
#include <src/common/Assert.h>
#include <src/compute/opencl/CLProgramLoader.h>
#include <src/config/Config.h>
namespace riner {
ComputeModule::ComputeModule(const Config &config)
: allDevi... | 33.254237 | 100 | 0.634047 | [
"vector"
] |
4e9eaa0a1f3cbd4479105e570054505c483a0066 | 15,235 | cpp | C++ | tools/driver/driver.cpp | ralic/gnu_comma | f66c6ad0fca1679aaf25fccfd598af4456ee219a | [
"MIT"
] | null | null | null | tools/driver/driver.cpp | ralic/gnu_comma | f66c6ad0fca1679aaf25fccfd598af4456ee219a | [
"MIT"
] | null | null | null | tools/driver/driver.cpp | ralic/gnu_comma | f66c6ad0fca1679aaf25fccfd598af4456ee219a | [
"MIT"
] | null | null | null |
// This tool is temporary. It drives the lexer, parser, and type checker over
// the contents of a single file.
#include "config.h"
#include "SourceManager.h"
#include "comma/ast/Ast.h"
#include "comma/ast/AstResource.h"
#include "comma/basic/TextManager.h"
#include "comma/basic/IdentifierPool.h"
#include "comma/cod... | 32.209302 | 80 | 0.608139 | [
"vector",
"transform"
] |
4ea447d0972df390ee9daeb42ff4720cd90111bd | 1,339 | hpp | C++ | ligador/include/linker.hpp | bandreghetti/SB_2018-2 | bcfba7a05a7cc609420306e0823b2cdbeeefe97d | [
"MIT"
] | null | null | null | ligador/include/linker.hpp | bandreghetti/SB_2018-2 | bcfba7a05a7cc609420306e0823b2cdbeeefe97d | [
"MIT"
] | null | null | null | ligador/include/linker.hpp | bandreghetti/SB_2018-2 | bcfba7a05a7cc609420306e0823b2cdbeeefe97d | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <list>
#include <map>
#include <vector>
#include <set>
#include <utils.hpp>
class Linker {
private:
std::regex intRegEx = std::regex("(\\+|-)?[0-9]+");
std::regex hexRegEx = std::regex("0(x|X)[0-9a-f]{1,4}");
std::regex natRegEx = std::regex("... | 29.755556 | 88 | 0.587752 | [
"vector"
] |
4ea581c8630ab5dda1ae954a92529a5c33fd8fcb | 1,536 | hh | C++ | include/vcf2multialign/variant_processor.hh | tsnorri/vcf2multialign | ee987f55b376a5db9c260e6a38201a09d940fd7e | [
"MIT"
] | 2 | 2019-06-13T16:16:16.000Z | 2020-10-17T00:40:58.000Z | include/vcf2multialign/variant_processor.hh | tsnorri/vcf2multialign | ee987f55b376a5db9c260e6a38201a09d940fd7e | [
"MIT"
] | 1 | 2020-01-05T10:48:08.000Z | 2020-01-05T13:19:28.000Z | include/vcf2multialign/variant_processor.hh | tsnorri/vcf2multialign | ee987f55b376a5db9c260e6a38201a09d940fd7e | [
"MIT"
] | 1 | 2018-05-18T08:46:52.000Z | 2018-05-18T08:46:52.000Z | /*
* Copyright (c) 2019 Tuukka Norri
* This code is licensed under MIT license (see LICENSE for details).
*/
#ifndef VCF2MULTIALIGN_VARIANT_PROCESSOR_HH
#define VCF2MULTIALIGN_VARIANT_PROCESSOR_HH
#include <libbio/vcf/subfield.hh>
#include <vcf2multialign/types.hh>
#include <vcf2multialign/variant_processor_delega... | 23.272727 | 77 | 0.729167 | [
"vector"
] |
4ea70f65a520720b61f55b156dad64492a426987 | 385 | cpp | C++ | 1877/P1877/P1877/main.cpp | swy20190/Leetcode-Cracker | 3b80eacfa63983d5fcc50442f0813296d5c1af94 | [
"MIT"
] | null | null | null | 1877/P1877/P1877/main.cpp | swy20190/Leetcode-Cracker | 3b80eacfa63983d5fcc50442f0813296d5c1af94 | [
"MIT"
] | null | null | null | 1877/P1877/P1877/main.cpp | swy20190/Leetcode-Cracker | 3b80eacfa63983d5fcc50442f0813296d5c1af94 | [
"MIT"
] | null | null | null | #include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
class Solution {
public:
int minPairSum(vector<int>& nums) {
sort(nums.begin(), nums.end());
int answer = INT_MIN;
for (int i = 0; i < nums.size() / 2; i++) {
int pair_sum = nums[i] + nums[nums.size() - 1 - i];
if (pair_sum >... | 19.25 | 54 | 0.605195 | [
"vector"
] |
4eb501b3c30e4c9666d8e04b229a91f6c79c1878 | 2,555 | cpp | C++ | src/objparser.cpp | ccoverstreet/Tarcza | 8cb49b8fac7026201b0a6d25a351ec70542ac431 | [
"MIT"
] | null | null | null | src/objparser.cpp | ccoverstreet/Tarcza | 8cb49b8fac7026201b0a6d25a351ec70542ac431 | [
"MIT"
] | 4 | 2021-10-18T03:52:13.000Z | 2022-01-26T22:50:45.000Z | src/objparser.cpp | ccoverstreet/Tarcza | 8cb49b8fac7026201b0a6d25a351ec70542ac431 | [
"MIT"
] | null | null | null | #include "./objparser.h"
#include <string>
#include <iostream>
#include <cstdint>
#include <cmath>
#include <map>
Geometry parseObjFile(const char *filename, YAML::Node partname_map, YAML::Node material_map) {
std::fstream input_file(filename);
std::vector<Eigen::Vector3f> vertices;
std::vector<Triangle> triangle... | 26.071429 | 139 | 0.629746 | [
"geometry",
"vector"
] |
4eba3b4b11c035f53921fb2a55798433b670ef60 | 16,872 | cpp | C++ | src/astro/gravitation/gravityFieldVariations.cpp | kimonito98/tudat | c28f2a3e78b8492e2e054ad5e0d1f9ad785cd092 | [
"BSD-3-Clause"
] | null | null | null | src/astro/gravitation/gravityFieldVariations.cpp | kimonito98/tudat | c28f2a3e78b8492e2e054ad5e0d1f9ad785cd092 | [
"BSD-3-Clause"
] | null | null | null | src/astro/gravitation/gravityFieldVariations.cpp | kimonito98/tudat | c28f2a3e78b8492e2e054ad5e0d1f9ad785cd092 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2010-2019, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are permitted exclusively
* under the terms of the Modified BSD license. You should have received
*... | 45.477089 | 159 | 0.665481 | [
"object",
"vector",
"model"
] |
4ebc1806733b69e5f12bdb33371f0bf574babc75 | 4,060 | cpp | C++ | cpp/structures/wavelet_matrix.cpp | indy256/codelibrary-sandbox | fd49b2de1cf578084f222a087a472f0760a4fa4d | [
"Unlicense"
] | 6 | 2018-04-20T22:58:22.000Z | 2021-03-25T13:09:57.000Z | cpp/structures/wavelet_matrix.cpp | indy256/codelibrary-sandbox | fd49b2de1cf578084f222a087a472f0760a4fa4d | [
"Unlicense"
] | null | null | null | cpp/structures/wavelet_matrix.cpp | indy256/codelibrary-sandbox | fd49b2de1cf578084f222a087a472f0760a4fa4d | [
"Unlicense"
] | 2 | 2018-06-05T18:30:17.000Z | 2018-11-14T16:56:19.000Z | #include <bits/stdc++.h>
using namespace std;
struct BitVector {
using uint = uint32_t;
vector<uint> blocks, ranktable;
int len, blocks_len, count;
BitVector(int n = 0) { init(n); }
void set(int i) { blocks[i >> 5] |= 1 << (i & 31); }
bool get(int i) const { return blocks[i >> 5] >> (i & 31... | 30.298507 | 90 | 0.470197 | [
"vector"
] |
4ebc83bbc2279f99aea0995be4dc4c3d7dfb70b8 | 509 | hpp | C++ | include/vsim/env/physics_scene.hpp | malasiot/vsim | 2a69e27364bab29194328af3d050e34f907e226b | [
"MIT"
] | null | null | null | include/vsim/env/physics_scene.hpp | malasiot/vsim | 2a69e27364bab29194328af3d050e34f907e226b | [
"MIT"
] | null | null | null | include/vsim/env/physics_scene.hpp | malasiot/vsim | 2a69e27364bab29194328af3d050e34f907e226b | [
"MIT"
] | null | null | null | #ifndef __VSIM_PHYSICS_SCENE_HPP__
#define __VSIM_PHYSICS_SCENE_HPP__
#include <string>
#include <vector>
#include <memory>
#include <map>
#include <Eigen/Core>
#include <vsim/env/scene_fwd.hpp>
#include <vsim/env/base_element.hpp>
namespace vsim {
// a physics scene contains all bodies and models comprising the si... | 18.178571 | 75 | 0.752456 | [
"vector"
] |
4ebdb4e94285dd4067856e3b58f85a2044a68da7 | 2,843 | hpp | C++ | openstudiocore/src/model/ZoneAirHeatBalanceAlgorithm.hpp | BIMDataHub/OpenStudio-1 | 13ec115b00aa6a2af1426ceb26446f05014c8c8d | [
"blessing"
] | 4 | 2015-05-02T21:04:15.000Z | 2015-10-28T09:47:22.000Z | openstudiocore/src/model/ZoneAirHeatBalanceAlgorithm.hpp | BIMDataHub/OpenStudio-1 | 13ec115b00aa6a2af1426ceb26446f05014c8c8d | [
"blessing"
] | null | null | null | openstudiocore/src/model/ZoneAirHeatBalanceAlgorithm.hpp | BIMDataHub/OpenStudio-1 | 13ec115b00aa6a2af1426ceb26446f05014c8c8d | [
"blessing"
] | 1 | 2020-11-12T21:52:36.000Z | 2020-11-12T21:52:36.000Z | /**********************************************************************
* Copyright (c) 2008-2015, Alliance for Sustainable Energy.
* 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 publishe... | 29.309278 | 123 | 0.690116 | [
"object",
"vector",
"model"
] |
4ec8eea73e359ff18aaef606cbc94fd79f953537 | 515 | hpp | C++ | include/Entity/Sphere.hpp | xubury/OpenGLApp | 60d199351ec0406b372dd0aeaaea0a5b1664a327 | [
"BSD-3-Clause"
] | 2 | 2021-06-27T12:52:57.000Z | 2021-08-24T21:25:57.000Z | include/Entity/Sphere.hpp | xubury/OpenGLApp | 60d199351ec0406b372dd0aeaaea0a5b1664a327 | [
"BSD-3-Clause"
] | null | null | null | include/Entity/Sphere.hpp | xubury/OpenGLApp | 60d199351ec0406b372dd0aeaaea0a5b1664a327 | [
"BSD-3-Clause"
] | null | null | null | #ifndef SPHERE_HPP
#define SPHERE_HPP
#include "Entity/EntityBase.hpp"
#include "Graphic/VertexArray.hpp"
#include "Graphic/Material.hpp"
namespace te {
class Sphere : public EntityBase {
public:
Sphere(EntityManager<EntityBase> *manager, uint32_t id, float radius,
Ref<Material> material);
voi... | 20.6 | 79 | 0.71068 | [
"transform"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.