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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
922d7425276ac5108fe2404b664bb1b4b9d66b8e | 31,800 | hpp | C++ | 3rdparty/GPSTk/core/lib/TimeHandling/Epoch.hpp | mfkiwl/ICE | e660d031bb1bcea664db1de4946fd8781be5b627 | [
"MIT"
] | 50 | 2019-10-12T01:22:20.000Z | 2022-02-15T23:28:26.000Z | 3rdparty/GPSTk/core/lib/TimeHandling/Epoch.hpp | wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation | 2f1ff054b7c5059da80bb3b2f80c05861a02cc36 | [
"MIT"
] | null | null | null | 3rdparty/GPSTk/core/lib/TimeHandling/Epoch.hpp | wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation | 2f1ff054b7c5059da80bb3b2f80c05861a02cc36 | [
"MIT"
] | 14 | 2019-11-05T01:50:29.000Z | 2021-08-06T06:23:44.000Z | //============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk 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; ei... | 33.333333 | 80 | 0.564214 | [
"object"
] |
9239b3b1afbac3f0ada9ab46fd929bee644ff173 | 18,949 | cpp | C++ | Samples/SensorStreamViewer/SensorStreamViewer.xaml.cpp | Joon-Jung/HoloLensForCV | fad1818ff1e6afd8bae3a91b710c23a653cbd722 | [
"MIT"
] | 250 | 2017-07-26T20:54:22.000Z | 2019-05-03T09:21:12.000Z | Samples/SensorStreamViewer/SensorStreamViewer.xaml.cpp | Joon-Jung/HoloLensForCV | fad1818ff1e6afd8bae3a91b710c23a653cbd722 | [
"MIT"
] | 79 | 2017-08-08T20:08:02.000Z | 2019-05-06T14:32:45.000Z | Samples/SensorStreamViewer/SensorStreamViewer.xaml.cpp | Joon-Jung/HoloLensForCV | fad1818ff1e6afd8bae3a91b710c23a653cbd722 | [
"MIT"
] | 88 | 2017-07-28T09:11:51.000Z | 2019-05-04T03:48:44.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the Microsoft Public License.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS F... | 37.973948 | 169 | 0.604623 | [
"render",
"object"
] |
9239b4ca41e63e9fbf93b26bedf65c05b69e25d0 | 546 | cpp | C++ | contest-1000-problem-A.cpp | ss6364/CodeForces-contests | 40a2ea7fd75d754d9c42c596c5bbfccf8b3ebdc1 | [
"Unlicense"
] | 2 | 2019-05-06T04:29:05.000Z | 2019-05-06T09:19:03.000Z | contest-1000-problem-A.cpp | ss6364/CodeForces-contests | 40a2ea7fd75d754d9c42c596c5bbfccf8b3ebdc1 | [
"Unlicense"
] | null | null | null | contest-1000-problem-A.cpp | ss6364/CodeForces-contests | 40a2ea7fd75d754d9c42c596c5bbfccf8b3ebdc1 | [
"Unlicense"
] | null | null | null | #include<bits/stdc++.h>
using namespace std ;
int main(){
int n,count=0;
cin>>n;
int n2=n;
char a[1000],b[1000];
vector<string> vect1;
vector<string> vect;
while(n--){
cin>>a;
vect.push_back(a);
}
n=n2;
while(n2--){
cin>>b;
vect2.push_back(a);
}
vect.sort(vect.begin(),vect.end());
vect1.sort(vect1.... | 15.6 | 39 | 0.565934 | [
"vector"
] |
923dd141f05e2422ef308916ad213394d8f3e518 | 1,527 | cc | C++ | gquiche/quic/tools/quic_server_bin.cc | Moxoo/quiche | 16a9562e5040eeac7263ace423fedaf7202f24c5 | [
"Apache-2.0"
] | null | null | null | gquiche/quic/tools/quic_server_bin.cc | Moxoo/quiche | 16a9562e5040eeac7263ace423fedaf7202f24c5 | [
"Apache-2.0"
] | null | null | null | gquiche/quic/tools/quic_server_bin.cc | Moxoo/quiche | 16a9562e5040eeac7263ace423fedaf7202f24c5 | [
"Apache-2.0"
] | null | null | null | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// A binary wrapper for QuicServer. It listens forever on --port
// (default 6121) until it's killed or ctrl-cd to death.
#include <vector>
#include "g... | 36.357143 | 73 | 0.715783 | [
"vector"
] |
9243edd29879c399f0f81d5c14936b7e9349bdbc | 1,899 | cc | C++ | src/abc065/d.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc065/d.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc065/d.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
vector<vector<pair<ll, int>>> build_graph(int n, vector<ll> x, vector<ll> y) {
vector<vector<pair<ll, int>>> edges(n, vector<pair<ll, int>>());
vector<int> ids(n);
iota(ids.begin(), ids.end(), 0);
sort(ids.begin(), ids.end(), [&](int ... | 27.926471 | 80 | 0.493944 | [
"vector"
] |
92480632bb1008254e38bd289576267ad346232f | 4,679 | cxx | C++ | physics/neutron/nudy/src/TNudyEndfTab1.cxx | Geant-RnD/geant | ffff95e23547531f3254ada2857c062a31f33e8f | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2016-10-16T14:37:42.000Z | 2018-04-05T15:49:09.000Z | physics/neutron/nudy/src/TNudyEndfTab1.cxx | Geant-RnD/geant | ffff95e23547531f3254ada2857c062a31f33e8f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | physics/neutron/nudy/src/TNudyEndfTab1.cxx | Geant-RnD/geant | ffff95e23547531f3254ada2857c062a31f33e8f | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
This is the main class supporting an ENDF section in R-ENDF format
*/
// @(#)root/meta:$Id: TNuEndf.h 29000 2009-06-15 13:53:52Z rdm $
// Author: F.Carminati 02/05/09
#include "Geant/TNudyEndfTab1.h"
using namespace Nudy;
#ifdef USE_ROOT
ClassImp(TNudyEndfTab1)
#endif
//_________________________________... | 28.186747 | 103 | 0.584527 | [
"3d"
] |
925495b284f920635c81b09dcfef7d9882d8807f | 598 | cpp | C++ | clu/Operators/FullFileOperator.cpp | ShaiRoitman/clu | c8816455a78ed70d1885fa23f6442d1d2a823a16 | [
"MIT"
] | null | null | null | clu/Operators/FullFileOperator.cpp | ShaiRoitman/clu | c8816455a78ed70d1885fa23f6442d1d2a823a16 | [
"MIT"
] | 3 | 2017-01-10T18:37:43.000Z | 2017-01-15T07:11:46.000Z | clu/Operators/FullFileOperator.cpp | ShaiRoitman/clu | c8816455a78ed70d1885fa23f6442d1d2a823a16 | [
"MIT"
] | null | null | null | #include "FullFileOperator.h"
bool FullFileOperator::OnLineRead(string& line)
{
m_data.push_back(line);
return true;
}
void FullFileOperator::PrintData()
{
for (vector<string>::iterator iter = m_data.begin(); iter != m_data.end(); ++iter)
{
string& cur_line = *iter;
m_OutputHandler->OutputLineFeed(cur_line);
... | 19.290323 | 93 | 0.70903 | [
"vector"
] |
925b4c0461f7cbf5d3195e3b833065c435632dc1 | 107,211 | hpp | C++ | include/System/DateTimeParse.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/System/DateTimeParse.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/System/DateTimeParse.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Enum
#... | 78.142128 | 348 | 0.744942 | [
"vector"
] |
925bf6bbf7d49587e4fdf0f403ed23c6c1e90b3e | 6,669 | cpp | C++ | include/rogue.cpp | denisjackman/Cee | 2176e9dccc17ac93463bd5473f437f1c76ba9c3c | [
"CC-BY-4.0"
] | null | null | null | include/rogue.cpp | denisjackman/Cee | 2176e9dccc17ac93463bd5473f437f1c76ba9c3c | [
"CC-BY-4.0"
] | 2 | 2016-06-30T14:31:43.000Z | 2016-07-01T08:43:03.000Z | include/rogue.cpp | denisjackman/game | 2176e9dccc17ac93463bd5473f437f1c76ba9c3c | [
"CC-BY-4.0"
] | null | null | null | #include <string>
#include <iostream>
#include <stdio.h>
#include "../include/constants.h"
#include "../include/rogue.h"
using namespace std;
void CreatureDefence(creature_type creature)
{
if (creature.cdefense & CD_SLAY_DRAGON)
{
cout << creature.name << " can be damaged by slay dragon " << endl;... | 27.557851 | 138 | 0.557955 | [
"object"
] |
925d3599d14f243f345ec65287c9e9573573f666 | 111,331 | cpp | C++ | Bld1/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs9.cpp | Reality-Hack-2022/TEAM-30 | f3346ea1d7aa307f518730f12ec42cd18f5543e6 | [
"MIT"
] | 1 | 2022-03-28T07:59:17.000Z | 2022-03-28T07:59:17.000Z | Bld1/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs9.cpp | Reality-Hack-2022/TEAM-30 | f3346ea1d7aa307f518730f12ec42cd18f5543e6 | [
"MIT"
] | null | null | null | Bld1/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs9.cpp | Reality-Hack-2022/TEAM-30 | f3346ea1d7aa307f518730f12ec42cd18f5543e6 | [
"MIT"
] | 1 | 2022-03-26T18:23:31.000Z | 2022-03-26T18:23:31.000Z | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <limits>
#include "vm/CachedCCWBase.h"
#include "utils/New.h"
// System.Collections.Generic.IEqualityComparer`1<System.Int32>
struct IEqualityComparer_1_t62010156673DE1460AB1D1CEBE5DCD48665... | 51.878378 | 416 | 0.837646 | [
"object"
] |
925d92131c484ae25146faeb740c5796a2c34d10 | 2,710 | hpp | C++ | fileid/document/excel/records/SupBookRecord.hpp | DBHeise/fileid | 3e3bacf859445020999d0fc30301ac86973c3737 | [
"MIT"
] | 13 | 2016-03-13T17:57:46.000Z | 2021-12-21T12:11:41.000Z | fileid/document/excel/records/SupBookRecord.hpp | DBHeise/fileid | 3e3bacf859445020999d0fc30301ac86973c3737 | [
"MIT"
] | 9 | 2016-04-07T13:07:58.000Z | 2020-05-30T13:31:59.000Z | fileid/document/excel/records/SupBookRecord.hpp | DBHeise/fileid | 3e3bacf859445020999d0fc30301ac86973c3737 | [
"MIT"
] | 5 | 2017-04-20T14:47:55.000Z | 2021-03-08T03:27:17.000Z | #pragma once
#include "Record.hpp"
#include "../structures/XLUnicodeString.hpp"
namespace oless {
namespace excel {
namespace records {
// see: https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-xls/31ed3738-e4ff-4b60-804c-ac49ac1ee6c0
// The SupBook record specifies a supporting link and spe... | 29.78022 | 261 | 0.550185 | [
"vector"
] |
1789724b7d9482c54903202b0eb65dae3eddcc71 | 11,219 | cpp | C++ | encodedlength.cpp | billvaglienti/ProtoGen | 55da08b1823be24b4247ecd54627c4590df79d13 | [
"MIT"
] | 22 | 2016-02-29T19:53:23.000Z | 2022-03-31T04:54:48.000Z | encodedlength.cpp | billvaglienti/ProtoGen | 55da08b1823be24b4247ecd54627c4590df79d13 | [
"MIT"
] | 72 | 2015-02-25T16:33:01.000Z | 2021-10-31T19:52:18.000Z | encodedlength.cpp | billvaglienti/ProtoGen | 55da08b1823be24b4247ecd54627c4590df79d13 | [
"MIT"
] | 12 | 2015-02-25T12:45:25.000Z | 2021-11-16T22:07:39.000Z | #include "encodedlength.h"
#include "shuntingyard.h"
#include "protocolsupport.h"
EncodedLength::EncodedLength() :
minEncodedLength(),
maxEncodedLength(),
nonDefaultEncodedLength()
{
}
/*!
* Clear the encoded length
*/
void EncodedLength::clear(void)
{
minEncodedLength.clear();
maxEncodedLength... | 30.158602 | 173 | 0.614137 | [
"vector"
] |
179382a2fbdb2fd1e5ddd3d0f5acb68b1b64223e | 19,323 | cpp | C++ | src/databasetools.cpp | sfbg/harbour-vocabulary | 778cbb610eab7fa7730d4ea26cb494ec0dfea37e | [
"Apache-2.0"
] | 4 | 2016-10-25T09:52:20.000Z | 2017-12-17T14:05:14.000Z | src/databasetools.cpp | sfbg/harbour-vocabulary | 778cbb610eab7fa7730d4ea26cb494ec0dfea37e | [
"Apache-2.0"
] | 29 | 2016-10-24T09:50:56.000Z | 2021-10-03T00:32:55.000Z | src/databasetools.cpp | sfbg/harbour-vocabulary | 778cbb610eab7fa7730d4ea26cb494ec0dfea37e | [
"Apache-2.0"
] | 8 | 2017-03-22T17:54:13.000Z | 2019-11-15T21:02:15.000Z | /*
* Copyright 2017 Marcus Soll
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing... | 33.144082 | 254 | 0.499871 | [
"vector"
] |
179756f6a350deb0cf123b0ec74a569e3e9b82df | 2,005 | cpp | C++ | rclcpp/src/rclcpp/detail/utilities.cpp | jlack1987/rclcpp | d107a844eae6f4d6a86515f0b3e469802ab1e785 | [
"Apache-2.0"
] | 271 | 2015-04-07T15:26:53.000Z | 2022-03-31T17:42:58.000Z | rclcpp/src/rclcpp/detail/utilities.cpp | jlack1987/rclcpp | d107a844eae6f4d6a86515f0b3e469802ab1e785 | [
"Apache-2.0"
] | 1,676 | 2015-01-15T23:46:56.000Z | 2022-03-31T21:32:06.000Z | rclcpp/src/rclcpp/detail/utilities.cpp | irobot-ros/rclcpp | edcae47df2528a9c06cfd98f204ad9b5d2da56b4 | [
"Apache-2.0"
] | 299 | 2015-10-05T16:51:32.000Z | 2022-03-30T11:23:18.000Z | // Copyright 2019 Open Source Robotics Foundation, 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 appli... | 30.846154 | 92 | 0.727182 | [
"vector"
] |
179ea19a250b4154b35f9db64b14dfaeb94cf906 | 4,085 | hpp | C++ | src/Common.hpp | Yenaled/bustools | 6fa0731f7f32c68645f0f60b1c1c89771b1c8061 | [
"BSD-2-Clause"
] | null | null | null | src/Common.hpp | Yenaled/bustools | 6fa0731f7f32c68645f0f60b1c1c89771b1c8061 | [
"BSD-2-Clause"
] | null | null | null | src/Common.hpp | Yenaled/bustools | 6fa0731f7f32c68645f0f60b1c1c89771b1c8061 | [
"BSD-2-Clause"
] | null | null | null | #ifndef BUSTOOLS_COMMON_HPP
#define BUSTOOLS_COMMON_HPP
#include <cassert>
#include <cmath>
#include <algorithm>
#include <stdint.h>
#include <vector>
#include <string>
#include <unordered_map>
#include <sstream>
#define BUSTOOLS_VERSION "0.41.0"
enum CAPTURE_TYPE : char
{
CAPTURE_NONE = 0,
CAPTURE_TX,
CAPTURE... | 24.171598 | 310 | 0.665606 | [
"vector"
] |
179ebbefdcdac1ad3a3e2774240f1de8e0c925c9 | 666 | cpp | C++ | atcoder/abc060-arc073/c.cpp | L3Sota/atcoder | 7d9444e03837b537ebc6f4f917b9567af6cf5483 | [
"MIT"
] | null | null | null | atcoder/abc060-arc073/c.cpp | L3Sota/atcoder | 7d9444e03837b537ebc6f4f917b9567af6cf5483 | [
"MIT"
] | null | null | null | atcoder/abc060-arc073/c.cpp | L3Sota/atcoder | 7d9444e03837b537ebc6f4f917b9567af6cf5483 | [
"MIT"
] | null | null | null | // DATA STRUCTURES
#include <vector>
// MISCELLANEOUS
#include <iostream>//cin/cout/wcin/wcout/left/right/internal/dec/hex/oct/fixed/scientific
#ifndef REPST
#define REPST(i,n) for (size_t i = 0; i < n; ++i)
#endif
typedef unsigned long long ull;
// ------------------------------------------------------------------... | 19.588235 | 89 | 0.477477 | [
"vector"
] |
17a227528e9c7e2e7bbbc25914b7cf21464764b1 | 4,674 | hpp | C++ | source/file-pool.hpp | ict-project/libict-queue | 2f5a9a37873d195153200f209d73c1431818fdb0 | [
"BSD-3-Clause"
] | null | null | null | source/file-pool.hpp | ict-project/libict-queue | 2f5a9a37873d195153200f209d73c1431818fdb0 | [
"BSD-3-Clause"
] | null | null | null | source/file-pool.hpp | ict-project/libict-queue | 2f5a9a37873d195153200f209d73c1431818fdb0 | [
"BSD-3-Clause"
] | null | null | null | //! @file
//! @brief File pool module - header file.
//! @author Mariusz Ornowski (mariusz.ornowski@ict-project.pl)
//! @version 1.0
//! @date 2012-2021
//! @copyright ICT-Project Mariusz Ornowski (ict-project.pl)
/* **************************************************************
Copyright (c) 2012-2021, ICT-Project Mar... | 34.367647 | 87 | 0.61703 | [
"vector"
] |
17a39b020143c32a67ae83bb5f23fc2414a9bde9 | 1,662 | hh | C++ | src/kafka/producer/batcher.hh | avelanarius/seastar | d56ec0b618d42b4b9c9dc4839fbd369ae845a94c | [
"Apache-2.0"
] | null | null | null | src/kafka/producer/batcher.hh | avelanarius/seastar | d56ec0b618d42b4b9c9dc4839fbd369ae845a94c | [
"Apache-2.0"
] | 7 | 2019-11-19T14:43:39.000Z | 2019-12-14T19:00:49.000Z | src/kafka/producer/batcher.hh | avelanarius/seastar | d56ec0b618d42b4b9c9dc4839fbd369ae845a94c | [
"Apache-2.0"
] | null | null | null | /*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... | 29.678571 | 90 | 0.734657 | [
"vector"
] |
17a48245eb3a97cdf40ad16a2589517198654013 | 7,669 | cpp | C++ | ZouavZEngine/src/Component/MeshRenderer.cpp | Neziiap/ZouavZEngine | 7327053871ee5faaa8c87c81f79e093a81da5542 | [
"Unlicense"
] | null | null | null | ZouavZEngine/src/Component/MeshRenderer.cpp | Neziiap/ZouavZEngine | 7327053871ee5faaa8c87c81f79e093a81da5542 | [
"Unlicense"
] | null | null | null | ZouavZEngine/src/Component/MeshRenderer.cpp | Neziiap/ZouavZEngine | 7327053871ee5faaa8c87c81f79e093a81da5542 | [
"Unlicense"
] | null | null | null | #include "Rendering/Camera.hpp"
#include "GameObject.hpp"
#include "Maths/Mat4.hpp"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "System/ResourcesManager.hpp"
#include "Component/MeshRenderer.hpp"
#include "Component/Animation.hpp"
#include "System/Debug.hpp"
#include "imgui.h"
MeshRenderer::MeshRenderer(Ga... | 39.127551 | 170 | 0.643369 | [
"mesh",
"model"
] |
17a4f69d521acdc3699745e81fe1e011cf72cb86 | 7,721 | hpp | C++ | packages/+GT/GenericTargetCode/source/GenericTarget/UDPSocket.hpp | RobertDamerius/GenericTarget | 6b26793c2d580797ac8104ca5368987cbb570ef8 | [
"MIT"
] | 1 | 2021-02-02T09:01:24.000Z | 2021-02-02T09:01:24.000Z | packages/+GT/GenericTargetCode/source/GenericTarget/UDPSocket.hpp | RobertDamerius/GenericTarget | 6b26793c2d580797ac8104ca5368987cbb570ef8 | [
"MIT"
] | null | null | null | packages/+GT/GenericTargetCode/source/GenericTarget/UDPSocket.hpp | RobertDamerius/GenericTarget | 6b26793c2d580797ac8104ca5368987cbb570ef8 | [
"MIT"
] | 2 | 2021-02-02T09:01:45.000Z | 2021-10-02T13:08:16.000Z | #pragma once
#include <Endpoint.hpp>
class UDPSocket {
public:
/**
* @brief Create a UDP socket object.
*/
UDPSocket();
/**
* @brief Destroy the UDP socket object.
*/
~UDPSocket();
/**
* @brief Open the socket.
* ... | 45.686391 | 173 | 0.610025 | [
"object"
] |
17a8e53607b4f97ea9d10ae886d223d5eb41c75b | 9,248 | cpp | C++ | vm/external_libs/llvm/tools/llvm-prof/llvm-prof.cpp | marnen/rubinius | 05b3f9789d01bada0604a7f09921c956bc9487e7 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T16:58:14.000Z | 2016-05-08T16:58:14.000Z | vm/external_libs/llvm/tools/llvm-prof/llvm-prof.cpp | taf2/rubinius | 493bfa2351fc509ca33d3bb03991c2e9c2b6dafa | [
"BSD-3-Clause"
] | null | null | null | vm/external_libs/llvm/tools/llvm-prof/llvm-prof.cpp | taf2/rubinius | 493bfa2351fc509ca33d3bb03991c2e9c2b6dafa | [
"BSD-3-Clause"
] | null | null | null | //===- llvm-prof.cpp - Read in and process llvmprof.out data files --------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------------... | 36.698413 | 80 | 0.569312 | [
"vector"
] |
17afdca529bdfebf1ebb5996c7312218b720e182 | 1,695 | hpp | C++ | inc/vpp/stage/tracker.hpp | ezdayo/vpp | 90d13ed9ab49ff0db7188ef72a89821f0c14a9bf | [
"MIT"
] | 1 | 2020-06-18T14:01:50.000Z | 2020-06-18T14:01:50.000Z | inc/vpp/stage/tracker.hpp | ezdayo/vpp | 90d13ed9ab49ff0db7188ef72a89821f0c14a9bf | [
"MIT"
] | null | null | null | inc/vpp/stage/tracker.hpp | ezdayo/vpp | 90d13ed9ab49ff0db7188ef72a89821f0c14a9bf | [
"MIT"
] | null | null | null | /**
*
* @file vpp/stage/tracker.hpp
*
* @brief These is the VPP tracker stage definitions
*
* This file is part of the VPP framework (see link).
*
* @author Olivier Stoltz-Douchet <ezdayo@gmail.com>
*
* @copyright (c) 2019-2020 Olivier Stoltz-Douchet
* @license http://opensource.org/... | 27.33871 | 74 | 0.621829 | [
"vector"
] |
17b2237057d27c26ed137fc7f5fb29d80046bb4f | 4,754 | cpp | C++ | SCRIPTER CODE -- VB6/VB6/VB-NT/00_Send_To/Send To Text List of Files/aw-source/gen_activewa.cpp | Matthew-Lancaster/matthew-lancaster | c36ccdb6b3a482fcbfcad1f3b8b1b7db6ad5a311 | [
"Unlicense"
] | null | null | null | SCRIPTER CODE -- VB6/VB6/VB-NT/00_Send_To/Send To Text List of Files/aw-source/gen_activewa.cpp | Matthew-Lancaster/matthew-lancaster | c36ccdb6b3a482fcbfcad1f3b8b1b7db6ad5a311 | [
"Unlicense"
] | null | null | null | SCRIPTER CODE -- VB6/VB6/VB-NT/00_Send_To/Send To Text List of Files/aw-source/gen_activewa.cpp | Matthew-Lancaster/matthew-lancaster | c36ccdb6b3a482fcbfcad1f3b8b1b7db6ad5a311 | [
"Unlicense"
] | null | null | null | /*************************************************************************
*
* ActiveWinamp
*
* An automation plugin for Winamp. This exposes a lot of winamp functionality
* through COM / ActiveX. You may use this to write VB or .NET or any other
* applications which interact with Winamp.
*
* You can automate Winamp... | 28.297619 | 120 | 0.725705 | [
"object"
] |
17b5e933fd0c29d46110b872e9be66bf2de1bccd | 4,172 | cpp | C++ | lib/cpp-core/src/sceneManager.cpp | PixDay/Merline-Engine | 3e7e83bee307a702b686c5d83b0288a4b663760f | [
"MIT"
] | null | null | null | lib/cpp-core/src/sceneManager.cpp | PixDay/Merline-Engine | 3e7e83bee307a702b686c5d83b0288a4b663760f | [
"MIT"
] | null | null | null | lib/cpp-core/src/sceneManager.cpp | PixDay/Merline-Engine | 3e7e83bee307a702b686c5d83b0288a4b663760f | [
"MIT"
] | 1 | 2022-02-04T21:05:15.000Z | 2022-02-04T21:05:15.000Z | /*
** File name :
** sceneManager.cpp
** File creator :
** Adrien Colombier
*/
#include <iostream>
#include "sceneManager.hpp"
SceneManager::SceneManager():
_currentScene(0)
{
this->addScene("default");
}
void SceneManager::clearSceneContent(std::string const &name)
{
size_t index = getScene(name);
whil... | 23.977011 | 97 | 0.605225 | [
"object",
"vector"
] |
17b6b9c2fe017b416b12b1e87ecc32c25595e02e | 1,598 | cpp | C++ | Libs/Library/Source/GameObjects/DefaultGameComponent/ChaseComponent.cpp | butibuti/ButiEngine | 0d5b68461060fdcf9049a4afd51211c84f3472d1 | [
"MIT"
] | null | null | null | Libs/Library/Source/GameObjects/DefaultGameComponent/ChaseComponent.cpp | butibuti/ButiEngine | 0d5b68461060fdcf9049a4afd51211c84f3472d1 | [
"MIT"
] | null | null | null | Libs/Library/Source/GameObjects/DefaultGameComponent/ChaseComponent.cpp | butibuti/ButiEngine | 0d5b68461060fdcf9049a4afd51211c84f3472d1 | [
"MIT"
] | null | null | null | #include "stdafx.h"
ButiEngine::ChaseComponent::ChaseComponent(std::shared_ptr<Transform> arg_shp_target, const float arg_speed)
{
shp_target = arg_shp_target;
speed = arg_speed;
}
void ButiEngine::ChaseComponent::OnUpdate()
{
if (!shp_target) { return; }
auto velocity = Vector3(shp_target->GetWorldPosition() - ... | 21.890411 | 119 | 0.678974 | [
"transform"
] |
17b86fab841a4619b3c5f960b2cfe1157b333731 | 2,667 | cpp | C++ | source/assets/image.cpp | xeek-pro/isometric | 6f7d05ce597683552d5dc3078a1634fddd41092b | [
"MIT"
] | 1 | 2021-08-02T04:49:44.000Z | 2021-08-02T04:49:44.000Z | source/assets/image.cpp | xeek-pro/isometric | 6f7d05ce597683552d5dc3078a1634fddd41092b | [
"MIT"
] | null | null | null | source/assets/image.cpp | xeek-pro/isometric | 6f7d05ce597683552d5dc3078a1634fddd41092b | [
"MIT"
] | 1 | 2021-09-09T16:49:53.000Z | 2021-09-09T16:49:53.000Z | #include <SDL.h>
#include <SDL_image.h>
#include <format>
#include "image.h"
#include "../source/application/application.h"
using namespace isometric::assets;
image::image(const std::string& name, const std::string& path)
: asset(name)
{
if (!application::get_app() || !application::get_app()->is_initialized()... | 21.508065 | 126 | 0.612298 | [
"object"
] |
17bd6774abe266c0f86d0d020772df752f7fc63d | 728 | cpp | C++ | Spoj/CRDS_Cards.cpp | shiva92/Contests | 720bb3699f774a6ea1f99e888e0cd784e63130c8 | [
"Apache-2.0"
] | null | null | null | Spoj/CRDS_Cards.cpp | shiva92/Contests | 720bb3699f774a6ea1f99e888e0cd784e63130c8 | [
"Apache-2.0"
] | null | null | null | Spoj/CRDS_Cards.cpp | shiva92/Contests | 720bb3699f774a6ea1f99e888e0cd784e63130c8 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#define vi vector<int>
#define all(v) v.begin(),v.end()
#define pii pair<int,int>
#define mp make_pair
const long long MOD = 1000007;
using namespace std;
long long arr[1000007];
int main() {
// #ifndef ONLINE_JUDGE
// freopen("/home/shiva/Learning/1.txt", "r", stdin);
// freopen("/home/shiva/Learni... | 22.75 | 94 | 0.550824 | [
"vector"
] |
17beaf97cf35dcc1844ecb81852214c2bfe54657 | 5,129 | cpp | C++ | framework/source/wrap/pipeline_g_info.cpp | wobakj/VulkanFramework | 960628dbc9743f0d74bc13b7d990d0795e32a542 | [
"MIT"
] | null | null | null | framework/source/wrap/pipeline_g_info.cpp | wobakj/VulkanFramework | 960628dbc9743f0d74bc13b7d990d0795e32a542 | [
"MIT"
] | null | null | null | framework/source/wrap/pipeline_g_info.cpp | wobakj/VulkanFramework | 960628dbc9743f0d74bc13b7d990d0795e32a542 | [
"MIT"
] | null | null | null | #include "wrap/pipeline_g_info.hpp"
#include "wrap/shader.hpp"
#include "geometry.hpp"
#include "geometry_lod.hpp"
GraphicsPipelineInfo::GraphicsPipelineInfo()
:PipelineInfo{}
,info_vert{}
,info_assembly{}
,info_viewports{}
,info_ms{}
,info_ds{}
,info_raster{}
,info_blending{}
,info_dynamic{}
,info_viewport... | 28.337017 | 119 | 0.74342 | [
"geometry",
"vector"
] |
17c6302a8e2e0efd1ba2bcbd22f2a4c942a183a0 | 9,750 | cpp | C++ | util/ezh5.cpp | ClarkResearchGroup/tensor-tools | 25fe4553991d2680b43301aef1960e4c20f1e146 | [
"Apache-2.0"
] | 8 | 2020-07-14T01:55:51.000Z | 2022-02-12T14:06:59.000Z | util/ezh5.cpp | ClarkResearchGroup/tensor-tools | 25fe4553991d2680b43301aef1960e4c20f1e146 | [
"Apache-2.0"
] | 1 | 2020-07-31T02:43:25.000Z | 2020-08-08T16:18:36.000Z | util/ezh5.cpp | ClarkResearchGroup/tensor-tools | 25fe4553991d2680b43301aef1960e4c20f1e146 | [
"Apache-2.0"
] | 1 | 2020-12-01T03:40:26.000Z | 2020-12-01T03:40:26.000Z | /*
* Copyright 2020 Ryan Levy, Xiongjie Yu, and Bryan K. Clark
*
* 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 requir... | 44.117647 | 113 | 0.680718 | [
"vector"
] |
17cfa52727b37cba1f33f22124bf66a8df85ab30 | 3,297 | cpp | C++ | src/utility/exporter.cpp | AlterB/chronovise | 5c5fac329b143f3e62ebbc8523d7e205835dd4cb | [
"Apache-2.0"
] | 2 | 2021-02-04T18:22:41.000Z | 2021-12-08T10:57:00.000Z | src/utility/exporter.cpp | AlterB/chronovise | 5c5fac329b143f3e62ebbc8523d7e205835dd4cb | [
"Apache-2.0"
] | 9 | 2018-03-20T10:24:22.000Z | 2018-08-27T21:53:56.000Z | src/utility/exporter.cpp | AlterB/chronovise | 5c5fac329b143f3e62ebbc8523d7e205835dd4cb | [
"Apache-2.0"
] | 4 | 2018-05-16T14:27:55.000Z | 2022-01-28T17:18:24.000Z | #include "utility/exporter.hpp"
#include "statistical/distribution_uniform.hpp"
#include "evt/gev_distribution.hpp"
#include "evt/gpd_distribution.hpp"
#include "global.hpp"
#include <iostream>
namespace chronovise {
template<typename T_INPUT, typename T_TIME>
std::unique_ptr<std::ofstream> Exporter<T_INPUT... | 35.074468 | 103 | 0.531695 | [
"shape"
] |
17d4ca00ce3080036dc7f9a9c2423e6329e68033 | 6,198 | cpp | C++ | Programs/ResourceEditor/Classes/Qt/Tools/ExportSceneDialog/ExportSceneDialog.cpp | reven86/dava.engine | ca47540c8694668f79774669b67d874a30188c20 | [
"BSD-3-Clause"
] | 5 | 2020-02-11T12:04:17.000Z | 2022-01-30T10:18:29.000Z | Programs/ResourceEditor/Classes/Qt/Tools/ExportSceneDialog/ExportSceneDialog.cpp | reven86/dava.engine | ca47540c8694668f79774669b67d874a30188c20 | [
"BSD-3-Clause"
] | null | null | null | Programs/ResourceEditor/Classes/Qt/Tools/ExportSceneDialog/ExportSceneDialog.cpp | reven86/dava.engine | ca47540c8694668f79774669b67d874a30188c20 | [
"BSD-3-Clause"
] | 4 | 2019-11-28T19:24:34.000Z | 2021-08-24T19:12:50.000Z | #include "Tools/ExportSceneDialog/ExportSceneDialog.h"
#include "Tools/Widgets/FilePathBrowser.h"
#include "Classes/Application/REGlobal.h"
#include "Classes/Project/ProjectManagerData.h"
#include "Settings/SettingsManager.h"
#include <Tools/TextureCompression/TextureConverter.h>
#include "Base/GlobalEnum.h"
#includ... | 30.53202 | 120 | 0.680703 | [
"vector",
"3d"
] |
17d70ebcdecb1781249c25a6cb2dd5374fc1a277 | 513 | cpp | C++ | P11650.cpp | daily-boj/SkyLightQP | 5038819b6ad31f94d84a66c7679c746a870bb857 | [
"Unlicense"
] | 6 | 2020-04-08T09:05:38.000Z | 2022-01-20T08:09:48.000Z | P11650.cpp | daily-boj/SkyLightQP | 5038819b6ad31f94d84a66c7679c746a870bb857 | [
"Unlicense"
] | null | null | null | P11650.cpp | daily-boj/SkyLightQP | 5038819b6ad31f94d84a66c7679c746a870bb857 | [
"Unlicense"
] | 1 | 2020-05-23T21:17:10.000Z | 2020-05-23T21:17:10.000Z | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef pair<int, int> pii;
vector<pii> arr;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int N;
cin >> N;
for (int i = 0; i < N; i++) {
int a, b;
cin >> a >> b;... | 16.03125 | 61 | 0.497076 | [
"vector"
] |
17d8bf58830d8c53aca011870628b07361dded62 | 1,593 | cpp | C++ | 912.Sort an Array/main.cpp | Kingpie/leetcode | b5fd90a12f34f5baf24a3d4fa04c0914dd3e000f | [
"Apache-2.0"
] | null | null | null | 912.Sort an Array/main.cpp | Kingpie/leetcode | b5fd90a12f34f5baf24a3d4fa04c0914dd3e000f | [
"Apache-2.0"
] | null | null | null | 912.Sort an Array/main.cpp | Kingpie/leetcode | b5fd90a12f34f5baf24a3d4fa04c0914dd3e000f | [
"Apache-2.0"
] | null | null | null | /*Given an array of integers nums, sort the array in ascending order.
Example 1:
Input: nums = [5,2,3,1]
Output: [1,2,3,5]
Example 2:
Input: nums = [5,1,1,2,0,0]
Output: [0,0,1,1,2,5]
Constraints:
1 <= nums.length <= 50000
-50000 <= nums[i] <= 50000
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/sort-an... | 20.960526 | 69 | 0.516635 | [
"vector"
] |
17e05c0458ad402fff5da9afca6882551dd04284 | 4,859 | cpp | C++ | client/moc_texttool.cpp | vorushin/moodbox_aka_risovaska | 5943452e4c7fc9e3c828f62f565cd2da9a040e92 | [
"MIT"
] | 1 | 2015-08-23T11:03:58.000Z | 2015-08-23T11:03:58.000Z | client/moc_texttool.cpp | vorushin/moodbox_aka_risovaska | 5943452e4c7fc9e3c828f62f565cd2da9a040e92 | [
"MIT"
] | null | null | null | client/moc_texttool.cpp | vorushin/moodbox_aka_risovaska | 5943452e4c7fc9e3c828f62f565cd2da9a040e92 | [
"MIT"
] | 3 | 2016-12-05T02:43:52.000Z | 2021-06-30T21:35:46.000Z | /****************************************************************************
** Meta object code from reading C++ file 'texttool.h'
**
** Created: Wed Jun 24 21:01:26 2009
** by: The Qt Meta Object Compiler version 61 (Qt 4.5.1)
**
** WARNING! All changes made in this file will be lost!
**************************... | 32.393333 | 91 | 0.620704 | [
"object"
] |
17e11f73cb19d79ef28d291737b30c5efeeb29af | 4,669 | cpp | C++ | 1743.RestoreTheArrayFromAdjacentPairs.cpp | mrdrivingduck/leet-code | fee008f3a62849a21ca703e05f755378996a1ff5 | [
"MIT"
] | null | null | null | 1743.RestoreTheArrayFromAdjacentPairs.cpp | mrdrivingduck/leet-code | fee008f3a62849a21ca703e05f755378996a1ff5 | [
"MIT"
] | null | null | null | 1743.RestoreTheArrayFromAdjacentPairs.cpp | mrdrivingduck/leet-code | fee008f3a62849a21ca703e05f755378996a1ff5 | [
"MIT"
] | null | null | null | /**
* @author Mr Dk.
* @version 2021/07/25
*/
/*
There is an integer array nums that consists of n unique elements,
but you have forgotten it. However, you do remember every pair of
adjacent elements in nums.
You are given a 2D integer array adjacentPairs of size n - 1 where
each adjacentPairs[... | 28.29697 | 77 | 0.53973 | [
"vector"
] |
17e29847e9380292fffe28429b911c851a509531 | 7,105 | cpp | C++ | pywinrt/winsdk/src/py.Windows.System.Inventory.cpp | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | 3 | 2022-02-14T14:53:08.000Z | 2022-03-29T20:48:54.000Z | pywinrt/winsdk/src/py.Windows.System.Inventory.cpp | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | 4 | 2022-01-28T02:53:52.000Z | 2022-02-26T18:10:05.000Z | pywinrt/winsdk/src/py.Windows.System.Inventory.cpp | pywinrt/python-winsdk | 1e2958a712949579f5e84d38220062b2cec12511 | [
"MIT"
] | null | null | null | // WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.4
#include "pybase.h"
#include "py.Windows.System.Inventory.h"
PyTypeObject* py::winrt_type<winrt::Windows::System::Inventory::InstalledDesktopApp>::python_type;
namespace py::cpp::Windows::System::Inventory
{
// ----- Installe... | 31.71875 | 209 | 0.599015 | [
"object"
] |
17e642674246648ad380db549224dd50d45cd330 | 4,658 | cpp | C++ | src/s2mGroupeMusculaire.cpp | CamWilhelm/biorbd | 67d36e77d90cc09aa748c3acf2c2bdff5065d3c9 | [
"MIT"
] | null | null | null | src/s2mGroupeMusculaire.cpp | CamWilhelm/biorbd | 67d36e77d90cc09aa748c3acf2c2bdff5065d3c9 | [
"MIT"
] | null | null | null | src/s2mGroupeMusculaire.cpp | CamWilhelm/biorbd | 67d36e77d90cc09aa748c3acf2c2bdff5065d3c9 | [
"MIT"
] | null | null | null | #define BIORBD_API_EXPORTS
#include "../include/s2mGroupeMusculaire.h"
s2mGroupeMusculaire::s2mGroupeMusculaire(const s2mString &name, const s2mString &o, const s2mString &i) :
m_name(name),
m_originName(o),
m_insertName(i)
{
}
s2mGroupeMusculaire::~s2mGroupeMusculaire()
{
}
std::shared_ptr<s2mMuscle> s2... | 37.564516 | 205 | 0.684629 | [
"vector"
] |
17e7ba0e46611a1bd0a824f688bdf8c0d9a63ea4 | 4,921 | cc | C++ | src/opt_validate.cc | PixelToast/bfvm | 7fe23332661ee6ca93ff91dca9d2fc646c101d52 | [
"BSD-3-Clause"
] | 2 | 2020-09-05T04:35:28.000Z | 2021-11-10T17:21:06.000Z | src/opt_validate.cc | PixelToast/stackvm | 34557926c80969cb8cba67b3fa58e1452cb17b46 | [
"BSD-3-Clause"
] | null | null | null | src/opt_validate.cc | PixelToast/stackvm | 34557926c80969cb8cba67b3fa58e1452cb17b46 | [
"BSD-3-Clause"
] | null | null | null | #include <unordered_set>
#include <algorithm>
#include <cassert>
#include "opt.h"
using namespace IR;
void Opt::validate(Graph &graph) {
#ifdef NDEBUG
return;
#else
std::unordered_set<int> instIds;
for (Block *block : graph.blocks) {
// Make sure our block id hasn't been clobbered
asse... | 30.006098 | 79 | 0.53668 | [
"vector"
] |
17e893daa9bdbcf837bfd4c0c1f47b4a8637dd1b | 8,710 | cpp | C++ | DicomTest/dicom_test/data/UCTest.cpp | drleq/CppDicom | e320fad8414fabfb51c5eb80964f8b6def578247 | [
"MIT"
] | null | null | null | DicomTest/dicom_test/data/UCTest.cpp | drleq/CppDicom | e320fad8414fabfb51c5eb80964f8b6def578247 | [
"MIT"
] | null | null | null | DicomTest/dicom_test/data/UCTest.cpp | drleq/CppDicom | e320fad8414fabfb51c5eb80964f8b6def578247 | [
"MIT"
] | null | null | null | #include "dicomtest_pch.h"
#include "CppUnitTestFramework.hpp"
#include "dicom/data/UC.h"
#include "dicom_test/data/detail/constants.h"
using namespace dicom;
using namespace dicom::data;
namespace {
struct UCTest {};
}
namespace dicom_test::data {
TEST_CASE(UCTest, Constructors) {
// UC()
... | 36.751055 | 114 | 0.539954 | [
"vector"
] |
17ea35c700c938bf2ae47e0ce8e75e969366d4ae | 21,668 | cpp | C++ | src/game_api/render_api.cpp | spelunky-fyi/rust-injector | 45ba8acbb6c8505ace288640e764e8557c6f298f | [
"MIT"
] | null | null | null | src/game_api/render_api.cpp | spelunky-fyi/rust-injector | 45ba8acbb6c8505ace288640e764e8557c6f298f | [
"MIT"
] | null | null | null | src/game_api/render_api.cpp | spelunky-fyi/rust-injector | 45ba8acbb6c8505ace288640e764e8557c6f298f | [
"MIT"
] | 1 | 2020-11-15T05:43:12.000Z | 2020-11-15T05:43:12.000Z | #include "render_api.hpp"
#include <cstddef>
#include <detours.h>
#include <string>
#include "entity.hpp"
#include "level_api.hpp"
#include "memory.hpp"
#include "script/events.hpp"
#include "state.hpp"
#include "texture.hpp"
RenderAPI& RenderAPI::get()
{
static RenderAPI render_api = []()
{
... | 44.401639 | 225 | 0.731955 | [
"vector"
] |
17f7fd23ce1e98504a5d7acb4b034ef6cf329f1d | 8,761 | cpp | C++ | source/opengl/state_tracking.cpp | Not-Smelly-Garbage/reshade | 6c25ad402169521b646b1d7a66ae9345aa39a735 | [
"BSD-3-Clause"
] | 58 | 2020-12-16T01:43:41.000Z | 2022-03-28T07:49:20.000Z | source/opengl/state_tracking.cpp | FransBouma/reshade | 61fe2486d02179907e51b70c7df82a6b1a78cbe1 | [
"BSD-3-Clause"
] | null | null | null | source/opengl/state_tracking.cpp | FransBouma/reshade | 61fe2486d02179907e51b70c7df82a6b1a78cbe1 | [
"BSD-3-Clause"
] | 9 | 2020-12-22T13:28:02.000Z | 2022-03-27T08:21:29.000Z | /*
* Copyright (C) 2014 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#include "state_tracking.hpp"
#include <cmath>
#include <cassert>
void reshade::opengl::state_tracking::reset(GLuint default_width, GLuint default_height, GLenum default_format)
{
// Reset statisti... | 32.568773 | 163 | 0.763497 | [
"object"
] |
17faf9f017942bd18d421fb7cebd3834608c4a76 | 535 | hpp | C++ | libs/core/render/include/bksge/core/render/vulkan/detail/fwd/device_fwd.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/core/render/include/bksge/core/render/vulkan/detail/fwd/device_fwd.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/core/render/include/bksge/core/render/vulkan/detail/fwd/device_fwd.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file device_fwd.hpp
*
* @brief Device クラスの前方宣言
*
* @author myoukaku
*/
#ifndef BKSGE_CORE_RENDER_VULKAN_DETAIL_FWD_DEVICE_FWD_HPP
#define BKSGE_CORE_RENDER_VULKAN_DETAIL_FWD_DEVICE_FWD_HPP
#include <bksge/fnd/memory/shared_ptr.hpp>
namespace bksge
{
namespace render
{
namespace vul... | 16.212121 | 61 | 0.730841 | [
"render"
] |
aa04218a9b99df6c538fd846bec9b04e2da369d1 | 3,214 | cpp | C++ | geometry/MultiVolumeGrid.cpp | smeng9/KrisLibrary | 4bd1aa4d9a2d5e40954f5d0b8e3e8a9f19c32add | [
"BSD-3-Clause"
] | 57 | 2015-05-07T18:07:11.000Z | 2022-03-18T18:44:39.000Z | geometry/MultiVolumeGrid.cpp | smeng9/KrisLibrary | 4bd1aa4d9a2d5e40954f5d0b8e3e8a9f19c32add | [
"BSD-3-Clause"
] | 7 | 2018-12-10T21:46:52.000Z | 2022-01-20T19:49:11.000Z | geometry/MultiVolumeGrid.cpp | smeng9/KrisLibrary | 4bd1aa4d9a2d5e40954f5d0b8e3e8a9f19c32add | [
"BSD-3-Clause"
] | 36 | 2015-01-10T18:36:45.000Z | 2022-01-20T19:49:24.000Z | #include "MultiVolumeGrid.h"
#include <algorithm>
using namespace std;
using namespace Meshing;
using namespace Geometry;
MultiVolumeGrid::MultiVolumeGrid()
{
channelNames.push_back("value");
channels.resize(1);
}
void MultiVolumeGrid::AddChannel(const std::string& name)
{
channelNames.push_back(name);
channe... | 27.947826 | 82 | 0.724642 | [
"geometry",
"vector"
] |
aa05163d029d9bf9cec70014076844eb69326ef3 | 1,750 | cpp | C++ | C++/1561. MaximumNumberOfCoinsYouCanGet.cpp | nizD/LeetCode-Solutions | 7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349 | [
"MIT"
] | 263 | 2020-10-05T18:47:29.000Z | 2022-03-31T19:44:46.000Z | C++/1561. MaximumNumberOfCoinsYouCanGet.cpp | nizD/LeetCode-Solutions | 7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349 | [
"MIT"
] | 1,264 | 2020-10-05T18:13:05.000Z | 2022-03-31T23:16:35.000Z | C++/1561. MaximumNumberOfCoinsYouCanGet.cpp | nizD/LeetCode-Solutions | 7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349 | [
"MIT"
] | 760 | 2020-10-05T18:22:51.000Z | 2022-03-29T06:06:20.000Z | /*
PROBLEM - 1561. Maximum Number of Coins You Can Get
DESCRIPTION -
There are 3n piles of coins of varying size, you and your friends will take
piles of coins as follows:
== In each step, you will choose any 3 piles of coins (not necessarily consecutive).
== Of your choice, Alice will pick the pile with the maximum ... | 31.25 | 86 | 0.625714 | [
"vector"
] |
aa070f11550395277a35ce76b22c019615c6ce1e | 2,915 | cpp | C++ | TheLargeMonProject/largeMon.cpp | Eromonsele/TheLargeMonProject | 883735e54f17fd278fc4de3efa6ae8a77858e6fc | [
"MIT"
] | null | null | null | TheLargeMonProject/largeMon.cpp | Eromonsele/TheLargeMonProject | 883735e54f17fd278fc4de3efa6ae8a77858e6fc | [
"MIT"
] | null | null | null | TheLargeMonProject/largeMon.cpp | Eromonsele/TheLargeMonProject | 883735e54f17fd278fc4de3efa6ae8a77858e6fc | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "largeMon.h"
#include <map>
#include <utility>
/**
* The largemon objects, holds the largemon healthpoints, attackpoints
* name, description,size and weakness
*
* Author: Eromosele Okhilua
*
*/
// constructor
LargeMon::LargeMon(string type, string name, string lsize, string description, ... | 22.251908 | 177 | 0.69331 | [
"vector"
] |
aa0a441cfb8f77964439c7362df4fcf887de8f43 | 1,433 | cpp | C++ | c-bindings/integration/utilities/internal/colored_printing.cpp | nabarunnag/geode-native | 4ccd5f7d5f37728b83798b4ec2b5e7532bafc7b0 | [
"Apache-2.0"
] | null | null | null | c-bindings/integration/utilities/internal/colored_printing.cpp | nabarunnag/geode-native | 4ccd5f7d5f37728b83798b4ec2b5e7532bafc7b0 | [
"Apache-2.0"
] | 19 | 2020-10-30T00:31:27.000Z | 2022-03-11T20:02:19.000Z | c_bindings/integration/utilities/internal/colored_printing.cpp | moleske/geode-native | 5ef2c7850c5d1359991f326defe6aff493be364e | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 44.78125 | 80 | 0.750872 | [
"object"
] |
aa0d6b3d5b49751140975f40ba03e6e31b47e8fe | 20,192 | cxx | C++ | rdpfuzz-winafl/cmake-3.16.0/Source/cmWorkerPool.cxx | fengjixuchui/rdpfuzz | 4561b6fbf73ada553ce78ad44918fd0930ee4e85 | [
"Apache-2.0"
] | 107 | 2021-08-28T20:08:42.000Z | 2022-03-22T08:02:16.000Z | rdpfuzz-winafl/cmake-3.16.0/Source/cmWorkerPool.cxx | fengjixuchui/rdpfuzz | 4561b6fbf73ada553ce78ad44918fd0930ee4e85 | [
"Apache-2.0"
] | null | null | null | rdpfuzz-winafl/cmake-3.16.0/Source/cmWorkerPool.cxx | fengjixuchui/rdpfuzz | 4561b6fbf73ada553ce78ad44918fd0930ee4e85 | [
"Apache-2.0"
] | 16 | 2021-08-30T06:57:36.000Z | 2022-03-22T08:05:52.000Z | /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmWorkerPool.h"
#include <algorithm>
#include <array>
#include <condition_variable>
#include <cstddef>
#include <deque>
#include <functional>
#include <mutex>
#i... | 26.429319 | 79 | 0.657934 | [
"vector"
] |
aa10112442e2008248bc541ac4010ccdef3f62a1 | 2,999 | cpp | C++ | src/oneDPL/complex_sum_soa.cpp | UoB-HPC/everythingsreduced | 72e69dafdf0d155c35df38bfda7786d9f88c641a | [
"MIT"
] | null | null | null | src/oneDPL/complex_sum_soa.cpp | UoB-HPC/everythingsreduced | 72e69dafdf0d155c35df38bfda7786d9f88c641a | [
"MIT"
] | 5 | 2021-08-18T10:12:33.000Z | 2021-09-10T13:21:18.000Z | src/oneDPL/complex_sum_soa.cpp | UoB-HPC/everythingsreduced | 72e69dafdf0d155c35df38bfda7786d9f88c641a | [
"MIT"
] | 1 | 2021-08-03T16:08:39.000Z | 2021-08-03T16:08:39.000Z | // Copyright (c) 2021 Everything's Reduced authors
// SPDX-License-Identifier: MIT
#include <iostream>
#include "../complex_sum_soa.hpp"
#include "../sycl/common.hpp"
#include <oneapi/dpl/algorithm>
#include <oneapi/dpl/execution>
template <typename T>
struct complex_sum_soa<T>::data {
data(long N) : real(N), ima... | 34.471264 | 122 | 0.603868 | [
"transform"
] |
aa17c39b86fc2fb0140459e93d3e593e2fb7c5a8 | 1,907 | cpp | C++ | src/common.cpp | Izumemori/muscord-cpp | 49cb50dc5ed17023b0c91f1699a9e9832b591bb5 | [
"MIT"
] | 2 | 2019-06-08T14:02:06.000Z | 2019-06-22T12:55:34.000Z | src/common.cpp | Izumemori/muscord-cpp | 49cb50dc5ed17023b0c91f1699a9e9832b591bb5 | [
"MIT"
] | 2 | 2020-04-02T04:31:15.000Z | 2021-11-11T04:37:40.000Z | src/common.cpp | Izumemori/muscord-cpp | 49cb50dc5ed17023b0c91f1699a9e9832b591bb5 | [
"MIT"
] | null | null | null | #include "common.h"
#include <cstdlib>
#include <string>
#include <sstream>
#include <vector>
#include <iterator>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
void muscord::replace(std::string& str, const std::string& from, const std::string& to) {
size_t start_pos = str.find(from);
if (sta... | 24.766234 | 126 | 0.608285 | [
"vector"
] |
aa1997eb35d61725240408765112363de8ab20d7 | 12,651 | cpp | C++ | DivisionCore/Tile.cpp | Papishushi/Gametility | 4220f89dbaa911422f9b96d70069e360c3748cc2 | [
"MIT"
] | null | null | null | DivisionCore/Tile.cpp | Papishushi/Gametility | 4220f89dbaa911422f9b96d70069e360c3748cc2 | [
"MIT"
] | null | null | null | DivisionCore/Tile.cpp | Papishushi/Gametility | 4220f89dbaa911422f9b96d70069e360c3748cc2 | [
"MIT"
] | null | null | null | /**
* @file Tile.cpp
* @author Daniel Molinero Lucas (Papishushi)
* @section Copyright © <2021+> <Daniel Molinero Lucas (Papishushi)> 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 th... | 36.776163 | 161 | 0.460991 | [
"vector"
] |
aa1a405eca8ba9744728a33ff5171f1fbcc7cbfe | 23,147 | hpp | C++ | renv/library/R-4.1/x86_64-w64-mingw32/TMB/include/distributions_R.hpp | rebeccagb/gtsummary | 04996e385acab0b76a9938378e8af87526117aef | [
"MIT"
] | null | null | null | renv/library/R-4.1/x86_64-w64-mingw32/TMB/include/distributions_R.hpp | rebeccagb/gtsummary | 04996e385acab0b76a9938378e8af87526117aef | [
"MIT"
] | null | null | null | renv/library/R-4.1/x86_64-w64-mingw32/TMB/include/distributions_R.hpp | rebeccagb/gtsummary | 04996e385acab0b76a9938378e8af87526117aef | [
"MIT"
] | null | null | null | // Copyright (C) 2013-2015 Kasper Kristensen
// License: GPL-2
/** \file
\brief Probability distribution functions.
*/
/** \brief Distribution function of the normal distribution (following R argument convention).
\ingroup R_style_distribution
*/
template<class Type>
Type pnorm(Type q, Type mean = 0., Type sd =... | 27.787515 | 156 | 0.687476 | [
"shape",
"vector"
] |
aa1b9ea83312974d24a32022ad3e7073f8564436 | 541 | hpp | C++ | taskflow/sanitizer/nonreachable_sanitizer.hpp | junlinmessi/taskflow | 9339b395742e63b0937760cff434f21f19d6ff53 | [
"MIT"
] | 318 | 2021-08-20T10:16:12.000Z | 2022-03-24T03:08:16.000Z | Source/IntegratedExternals/taskflow/sanitizer/nonreachable_sanitizer.hpp | s-nase/XeGTAO | 11e439c33e3dd7c1e4ea0fc73733ca840bc95bec | [
"MIT"
] | 5 | 2021-09-03T11:40:54.000Z | 2022-02-09T12:37:12.000Z | Source/IntegratedExternals/taskflow/sanitizer/nonreachable_sanitizer.hpp | s-nase/XeGTAO | 11e439c33e3dd7c1e4ea0fc73733ca840bc95bec | [
"MIT"
] | 22 | 2021-09-02T03:33:18.000Z | 2022-02-23T06:36:39.000Z | #pragma once
#include "../core/taskflow.hpp"
namespace tf {
class NonReachableSanitizer {
struct nrsNode {
bool reachable {false};
Node* node {nullptr};
};
struct nrsGraph {
std::vector<nrsNode> nodes;
};
public:
NonReachableSanitizer(const Taskflow& taskflow) : _taskflow {taskflow} {... | 14.236842 | 76 | 0.613678 | [
"vector"
] |
aa260b38f76cea65d50eec4ad9a9ba9b2632b055 | 13,828 | cpp | C++ | third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 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 "bindings/core/v8/ScriptCustomElementDefinition.h"
#include "bindings/core/v8/V8BindingForCore.h"
#include "bindings/core/v8/V8CustomElementRegi... | 39.508571 | 90 | 0.728956 | [
"object"
] |
aa2877e656631a937dc08aaccc512b79e4ebdbcf | 5,576 | cpp | C++ | VkRenderer/Source/VkCore/VkCorePhysicalDevice.cpp | JanVijfhuizen/VkRenderer | 5f5848f637dcf587b55ff8bd52bdb56fcf9caab4 | [
"MIT"
] | null | null | null | VkRenderer/Source/VkCore/VkCorePhysicalDevice.cpp | JanVijfhuizen/VkRenderer | 5f5848f637dcf587b55ff8bd52bdb56fcf9caab4 | [
"MIT"
] | null | null | null | VkRenderer/Source/VkCore/VkCorePhysicalDevice.cpp | JanVijfhuizen/VkRenderer | 5f5848f637dcf587b55ff8bd52bdb56fcf9caab4 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "VkCore/VkCorePhysicalDevice.h"
#include "VkCore/VkCoreInstance.h"
#include "VkCore/VkCoreInfo.h"
#include "VkCore/VkCoreSwapchain.h"
namespace vi
{
VkCorePhysicalDevice::QueueFamilies::operator bool() const
{
for (const auto& family : values)
if (family == UINT32_MAX)
return fals... | 29.978495 | 139 | 0.761657 | [
"render"
] |
a8f85c89e42fd3d50f271df50568d687868e76da | 981 | cpp | C++ | hotel-rsvp/cpp/HotelTest.cpp | naomijub/tw-old-challenges | 1214793e2269a2e589fcdca53a1e32f4336fb10e | [
"Unlicense"
] | 1 | 2021-06-15T20:34:14.000Z | 2021-06-15T20:34:14.000Z | hotel-rsvp/cpp/HotelTest.cpp | naomijub/tw-old-challenges | 1214793e2269a2e589fcdca53a1e32f4336fb10e | [
"Unlicense"
] | null | null | null | hotel-rsvp/cpp/HotelTest.cpp | naomijub/tw-old-challenges | 1214793e2269a2e589fcdca53a1e32f4336fb10e | [
"Unlicense"
] | null | null | null | #include "gtest/gtest.h"
#include "Hotel.h"
#include "Client.h"
#include "gmock/gmock.h"
using namespace ::testing;
class AHotelRsvp: public Test {
public:
Hotel* hotel;
void SetUp() override {
std::string* name = new std::string("lakewood");
hotel = new Hotel(
3, name, 11, 17, 3, ... | 24.525 | 66 | 0.627931 | [
"vector"
] |
a8f9d9b6b735863040a71ab0d359f8fc5e2196aa | 23,389 | cxx | C++ | source/OOSQL/Compiler/compiler/OOSQL_Compiler.cxx | odysseus-oosql/ODYSSEUS-OOSQL | 49a5e32b6f73cea611dafdcc0e6767f80d4450ae | [
"BSD-3-Clause"
] | 6 | 2016-08-29T08:03:21.000Z | 2022-03-25T09:56:23.000Z | source/OOSQL/Compiler/compiler/OOSQL_Compiler.cxx | odysseus-oosql/ODYSSEUS-OOSQL | 49a5e32b6f73cea611dafdcc0e6767f80d4450ae | [
"BSD-3-Clause"
] | null | null | null | source/OOSQL/Compiler/compiler/OOSQL_Compiler.cxx | odysseus-oosql/ODYSSEUS-OOSQL | 49a5e32b6f73cea611dafdcc0e6767f80d4450ae | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************/
/* */
/* Copyright (c) 1990-2016, KAIST */
/* All rights reserved. ... | 33.701729 | 163 | 0.544658 | [
"object"
] |
a8fc2626cd8be60ff980fc565c5a52b4d326b582 | 28,013 | cpp | C++ | src/ACAN2515.cpp | Arjan-Woltjer/acan2515 | 4e95abcc438e9216fd34708be700de2b296d9635 | [
"MIT"
] | null | null | null | src/ACAN2515.cpp | Arjan-Woltjer/acan2515 | 4e95abcc438e9216fd34708be700de2b296d9635 | [
"MIT"
] | null | null | null | src/ACAN2515.cpp | Arjan-Woltjer/acan2515 | 4e95abcc438e9216fd34708be700de2b296d9635 | [
"MIT"
] | null | null | null | //——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
// A CAN driver for MCP2515
// by Pierre Molinaro
// https://github.com/pierremolinaro/acan2515
//
//——————————————————————————————————————————————————————————————————————————————————————————————————... | 39.069735 | 120 | 0.509192 | [
"object"
] |
d10174740f3a696399a621d3eb95dbf904c4de8a | 3,481 | hpp | C++ | include/rcpputils/split.hpp | pal-robotics-forks/rcpputils | 4e2b95cde54d559d546e9382f89a368fca701fd3 | [
"Apache-2.0"
] | null | null | null | include/rcpputils/split.hpp | pal-robotics-forks/rcpputils | 4e2b95cde54d559d546e9382f89a368fca701fd3 | [
"Apache-2.0"
] | null | null | null | include/rcpputils/split.hpp | pal-robotics-forks/rcpputils | 4e2b95cde54d559d546e9382f89a368fca701fd3 | [
"Apache-2.0"
] | 2 | 2020-06-04T23:55:02.000Z | 2020-11-12T21:37:29.000Z | // Copyright (c) 2019, Open Source Robotics Foundation, Inc.
// All rights reserved.
//
// Software License Agreement (BSD License 2.0)
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redistributions of s... | 35.161616 | 124 | 0.734846 | [
"vector"
] |
d10ce52e786b0766e6cfa163e184b2d5fab572d0 | 3,828 | cpp | C++ | fbpcs/data_processing/id_combiner/test/GroupByTest.cpp | adshastri/fbpcs | 81d816ee56ea36f8f58dca6ae803fa50138cb91e | [
"MIT"
] | null | null | null | fbpcs/data_processing/id_combiner/test/GroupByTest.cpp | adshastri/fbpcs | 81d816ee56ea36f8f58dca6ae803fa50138cb91e | [
"MIT"
] | null | null | null | fbpcs/data_processing/id_combiner/test/GroupByTest.cpp | adshastri/fbpcs | 81d816ee56ea36f8f58dca6ae803fa50138cb91e | [
"MIT"
] | null | null | null | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "../GroupBy.h"
#include <chrono>
#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <gflags/gflags.h>
... | 27.539568 | 74 | 0.621996 | [
"vector"
] |
d116842563f635d13730a7e0783f4f3986707d08 | 3,808 | hpp | C++ | openstudiocore/src/analysis/SequentialSearchOptions.hpp | zhouchong90/OpenStudio | f8570cb8297547b5e9cc80fde539240d8f7b9c24 | [
"BSL-1.0",
"blessing"
] | null | null | null | openstudiocore/src/analysis/SequentialSearchOptions.hpp | zhouchong90/OpenStudio | f8570cb8297547b5e9cc80fde539240d8f7b9c24 | [
"BSL-1.0",
"blessing"
] | null | null | null | openstudiocore/src/analysis/SequentialSearchOptions.hpp | zhouchong90/OpenStudio | f8570cb8297547b5e9cc80fde539240d8f7b9c24 | [
"BSL-1.0",
"blessing"
] | null | null | null | /**********************************************************************
* Copyright (c) 2008-2014, 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... | 40.510638 | 99 | 0.722426 | [
"vector"
] |
d11dda215410b3d6e50df888c2e2673630c20d1a | 1,491 | cpp | C++ | KiteOpenGLDriverCore/KiteDriverFbxVisitor.cpp | awyhhwxz/KiteOpenGLDriver | cce0a67b93431d3958a485d0cc9420ecb6295d42 | [
"BSD-3-Clause"
] | 2 | 2018-08-19T04:08:00.000Z | 2018-08-19T04:08:44.000Z | KiteOpenGLDriverCore/KiteDriverFbxVisitor.cpp | awyhhwxz/KiteOpenGLDriver | cce0a67b93431d3958a485d0cc9420ecb6295d42 | [
"BSD-3-Clause"
] | null | null | null | KiteOpenGLDriverCore/KiteDriverFbxVisitor.cpp | awyhhwxz/KiteOpenGLDriver | cce0a67b93431d3958a485d0cc9420ecb6295d42 | [
"BSD-3-Clause"
] | null | null | null | #include "stdafx.h"
#include "KiteDriverFbxVisitor.h"
namespace kite_driver
{
KiteDriverFbxVisitor::KiteDriverFbxVisitor()
{
}
KiteDriverFbxVisitor::~KiteDriverFbxVisitor()
{
}
void KiteDriverFbxVisitor::LoadFbx(const tchar* fbx_path)
{
kite_fbx::FbxParser fbx_parser;
auto node_parser = fbx_parser.LoadF... | 28.673077 | 116 | 0.722334 | [
"mesh"
] |
d1231476fd644517816d8009d2edf301accc191e | 12,867 | cpp | C++ | src/EulerianUnsplitAdvectionAllLevels.cpp | gdeskos/amr-offshore-utils | 9876c15c89327cf0847ac7d3a0d8a8448560e920 | [
"Apache-2.0"
] | null | null | null | src/EulerianUnsplitAdvectionAllLevels.cpp | gdeskos/amr-offshore-utils | 9876c15c89327cf0847ac7d3a0d8a8448560e920 | [
"Apache-2.0"
] | null | null | null | src/EulerianUnsplitAdvectionAllLevels.cpp | gdeskos/amr-offshore-utils | 9876c15c89327cf0847ac7d3a0d8a8448560e920 | [
"Apache-2.0"
] | null | null | null | #include "AmrGVOF.H"
#include "Kernels.H"
#include <AMReX_MultiFabUtil.H>
using namespace amrex;
// advance all levels for a single time step
void
AmrGVOF::EulerianUnsplitAdvectionAllLevels (Real time, Real dt_lev, int iteration)
{
constexpr int num_grow = 3;
Vector< Array<MultiFab,AMREX_SPACEDIM> > fluxes(... | 37.955752 | 104 | 0.404756 | [
"vector",
"3d"
] |
d123f72363e60dd84187afd03c7bb7db8aed4d5d | 27,352 | cpp | C++ | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/vtf/ReaderWriterVTF.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 3 | 2018-08-20T12:12:43.000Z | 2021-06-06T09:43:27.000Z | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/vtf/ReaderWriterVTF.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | null | null | null | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/vtf/ReaderWriterVTF.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 1 | 2022-03-31T03:12:23.000Z | 2022-03-31T03:12:23.000Z | /**********************************************************************
*
* FILE: ReaderWriterVTF.cpp
*
* DESCRIPTION: Class for reading a Valve Texture Format (VTF) file
* into an osg::Image.
*
* Borrows heavily from the DDS plugin for OSG, as well
* ... | 33.893432 | 137 | 0.582078 | [
"object",
"vector"
] |
d1241c2354bc9ebf3c1b29021dfa41eb5813ef5d | 10,105 | cpp | C++ | test/libpldmresponder_platform_test.cpp | mine260309/pldm | ac3c45aebd29a8e1d9ec36e3a9c33773dec1cbb3 | [
"Apache-2.0"
] | null | null | null | test/libpldmresponder_platform_test.cpp | mine260309/pldm | ac3c45aebd29a8e1d9ec36e3a9c33773dec1cbb3 | [
"Apache-2.0"
] | null | null | null | test/libpldmresponder_platform_test.cpp | mine260309/pldm | ac3c45aebd29a8e1d9ec36e3a9c33773dec1cbb3 | [
"Apache-2.0"
] | null | null | null | #include "libpldmresponder/pdr.hpp"
#include "libpldmresponder/pdr_utils.hpp"
#include "libpldmresponder/platform.hpp"
#include <iostream>
#include <gmock/gmock-matchers.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
using namespace pldm::responder;
using namespace pldm::responder::platform;
using namespace pl... | 36.348921 | 80 | 0.68481 | [
"vector"
] |
d124f39fddde6d7ecdb8400d5d6e6f9af5943b8d | 49,793 | cxx | C++ | inetcore/wininet/dll/thrdinfo.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetcore/wininet/dll/thrdinfo.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetcore/wininet/dll/thrdinfo.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1994 Microsoft Corporation
Module Name:
thrdinfo.cxx
Abstract:
Functions to manipulate an INTERNET_THREAD_INFO
Contents:
InternetCreateThreadInfo
InternetDestroyThreadInfo
InternetTerminateThreadInfo
InternetGetThreadInfo
Int... | 24.846806 | 117 | 0.557388 | [
"object"
] |
d12dc54290d9110b0a4e9c3f67441e420a294795 | 22,922 | cpp | C++ | vulkan/texture.cpp | rickmarson/vulkan_experiments | c48956212edd0105007e553af1d49ff92aad6e20 | [
"MIT"
] | 2 | 2021-02-15T14:09:58.000Z | 2021-11-11T22:07:23.000Z | vulkan/texture.cpp | rickmarson/vulkan_experiments | c48956212edd0105007e553af1d49ff92aad6e20 | [
"MIT"
] | null | null | null | vulkan/texture.cpp | rickmarson/vulkan_experiments | c48956212edd0105007e553af1d49ff92aad6e20 | [
"MIT"
] | null | null | null | /*
* texture.hpp
*
* Copyright (C) 2020 Riccardo Marson
*/
#include "texture.hpp"
#include "vulkan_backend.hpp"
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
namespace {
bool isFormatSupported(VkPhysicalDevice physical_device, VkFormat format, VkImageTiling tiling, VkFormatFeatureFlags features) {
... | 38.076412 | 183 | 0.708446 | [
"vector"
] |
d132a060fa3de0dfbcc51e8e7b17c2603804f0f9 | 9,153 | cpp | C++ | test/ParserTests.cpp | guidowb/lightshow-render | 32f927f399b61748ceb897639e0cda6f3ac585b7 | [
"Apache-2.0"
] | null | null | null | test/ParserTests.cpp | guidowb/lightshow-render | 32f927f399b61748ceb897639e0cda6f3ac585b7 | [
"Apache-2.0"
] | null | null | null | test/ParserTests.cpp | guidowb/lightshow-render | 32f927f399b61748ceb897639e0cda6f3ac585b7 | [
"Apache-2.0"
] | null | null | null | #include <stdlib.h>
#include <cppunit/extensions/HelperMacros.h>
#include "../src/Parser.h"
#include "TestHelpers.h"
class ParserTests : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE( ParserTests );
CPPUNIT_TEST( testSimpleCommand );
CPPUNIT_TEST( testExtraArguments );
CPPUNIT_TEST( testInvalidInt... | 40.144737 | 100 | 0.678903 | [
"solid"
] |
d13419237fd49302a226b9b88e0e61cebb0a4e92 | 6,305 | cpp | C++ | src/GridSide.cpp | johnnymac647/humlib | c67954045fb5570915d6a1c75d9a1e36cc9bdf93 | [
"BSD-2-Clause"
] | 19 | 2016-06-18T02:03:56.000Z | 2022-02-23T17:26:32.000Z | src/GridSide.cpp | johnnymac647/humlib | c67954045fb5570915d6a1c75d9a1e36cc9bdf93 | [
"BSD-2-Clause"
] | 43 | 2017-03-09T07:32:12.000Z | 2022-03-23T20:18:35.000Z | src/GridSide.cpp | johnnymac647/humlib | c67954045fb5570915d6a1c75d9a1e36cc9bdf93 | [
"BSD-2-Clause"
] | 5 | 2019-11-14T22:24:02.000Z | 2021-09-07T18:27:21.000Z | //
// Programmer: Craig Stuart Sapp <craig@ccrma.stanford.edu>
// Creation Date: Sun Oct 16 16:08:05 PDT 2016
// Last Modified: Sun Oct 16 16:08:08 PDT 2016
// Filename: GridSide.cpp
// URL: https://github.com/craigsapp/hum2ly/blob/master/src/GridSide.cpp
// Syntax: C++11; humlib
// vim: ... | 15.4914 | 82 | 0.569072 | [
"object"
] |
d1394b4e3913841b549c2294726375a53765f23a | 8,652 | cpp | C++ | icpc/4186-LuckyCities/LuckyCities.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | 1 | 2019-05-12T23:41:00.000Z | 2019-05-12T23:41:00.000Z | icpc/4186-LuckyCities/LuckyCities.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | icpc/4186-LuckyCities/LuckyCities.cpp | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | #if defined(LOCAL)
#define PROBLEM_NAME "LuckyCities"
const double _max_double_error = 1e-9;
#include "testutils.h"
#define L(x...) debug(x)
#else
#define L(x, ...) (x)
#include <bits/stdc++.h>
#endif
using namespace std;
using vi = vector<int>; using vvi = vector<vi>;
using ii = pair<int,int>; using vii = vector<ii>;... | 25.826866 | 85 | 0.553051 | [
"vector"
] |
d1397b0b320961f09ccbcf5f951b04884bdb5946 | 58,965 | cxx | C++ | STEER/STEER/AliGeomManager.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | STEER/STEER/AliGeomManager.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | STEER/STEER/AliGeomManager.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 32.66759 | 154 | 0.684983 | [
"geometry",
"object",
"vector"
] |
d14111de10cdc0017bab5ccab4a00583bbff5f93 | 715 | cc | C++ | minimum-moves-to-equal-array-elements.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | minimum-moves-to-equal-array-elements.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | minimum-moves-to-equal-array-elements.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | #include <vector>
#include <algorithm>
#include <numeric>
class Solution
{
public:
int minMoves(std::vector<int> &nums)
{
int min_elem = *std::min_element(nums.begin(), nums.end());
int res = 0;
for (int i = 0; i < nums.size(); i++)
res += nums[i] - min_elem;
return... | 18.815789 | 67 | 0.437762 | [
"vector"
] |
d14437fc197269bf9473dea99a012945beb30e66 | 4,285 | hpp | C++ | lib/Framework/TopologyImpl.hpp | lsbharadwaj/PothosCore | 02b3491ed06f23924a4c749f35b7fade88b81a14 | [
"BSL-1.0"
] | 180 | 2017-09-11T00:44:36.000Z | 2022-03-25T09:23:47.000Z | lib/Framework/TopologyImpl.hpp | lsbharadwaj/PothosCore | 02b3491ed06f23924a4c749f35b7fade88b81a14 | [
"BSL-1.0"
] | 109 | 2015-01-19T07:33:38.000Z | 2017-08-12T00:29:13.000Z | lib/Framework/TopologyImpl.hpp | lsbharadwaj/PothosCore | 02b3491ed06f23924a4c749f35b7fade88b81a14 | [
"BSL-1.0"
] | 32 | 2017-09-20T10:47:29.000Z | 2022-03-24T06:13:03.000Z | // Copyright (c) 2014-2017 Josh Blum
// SPDX-License-Identifier: BSL-1.0
#pragma once
#include <Pothos/Framework/Topology.hpp>
#include "Framework/PortsAndFlows.hpp"
#include <unordered_map>
#include <map>
#include <vector>
#include <string>
/*!
* Utility to make a port that is unique to its destination environment.... | 34.28 | 144 | 0.537223 | [
"object",
"vector"
] |
d14ab91cce6338579f7026ccd815f6a7296dfede | 8,965 | hpp | C++ | src/xalanc/PlatformSupport/ReusableArenaAllocator.hpp | kidaa/xalan-c | bb666d0ab3d0a192410823e6857c203d83c27b16 | [
"Apache-2.0"
] | null | null | null | src/xalanc/PlatformSupport/ReusableArenaAllocator.hpp | kidaa/xalan-c | bb666d0ab3d0a192410823e6857c203d83c27b16 | [
"Apache-2.0"
] | 1 | 2021-08-18T12:32:31.000Z | 2021-08-18T12:32:31.000Z | src/xalanc/PlatformSupport/ReusableArenaAllocator.hpp | AaronNGray/xalan | 6741bbdcb64a9d33df8bd7e21b558d66bb4292ec | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the "License");
* you m... | 26.761194 | 98 | 0.551701 | [
"object"
] |
d14c8e125784d8ca4cd24b4b7ca9a5c6f7b61894 | 8,556 | cpp | C++ | test/util/tpcc/order_status.cpp | hjhhsy120/terrier | c53e1ac9de629ec340c42e9797a7460fdf2a56dc | [
"MIT"
] | 1 | 2019-08-18T21:33:57.000Z | 2019-08-18T21:33:57.000Z | test/util/tpcc/order_status.cpp | LiuXiaoxuanPKU/terrier | 35916e9435201016903d8a01e3f587b8edb36f0b | [
"MIT"
] | null | null | null | test/util/tpcc/order_status.cpp | LiuXiaoxuanPKU/terrier | 35916e9435201016903d8a01e3f587b8edb36f0b | [
"MIT"
] | null | null | null | #include "util/tpcc/order_status.h"
#include <map>
#include <string>
#include <vector>
namespace terrier::tpcc {
// 2.6.2
bool OrderStatus::Execute(transaction::TransactionManager *const txn_manager, Database *const db, Worker *const worker,
const TransactionArgs &args) const {
TERRIER_ASS... | 58.60274 | 119 | 0.772207 | [
"vector"
] |
d14ccc6c7cf7c1b6060041f75dd856cf7ea725e1 | 11,597 | cpp | C++ | src/winc-tm/ui/run_tournament_menu.cpp | ropelinen/winc-tm | 9e6b476f6a1f7dcfe136a2df51b88888614e6ee5 | [
"MIT"
] | null | null | null | src/winc-tm/ui/run_tournament_menu.cpp | ropelinen/winc-tm | 9e6b476f6a1f7dcfe136a2df51b88888614e6ee5 | [
"MIT"
] | null | null | null | src/winc-tm/ui/run_tournament_menu.cpp | ropelinen/winc-tm | 9e6b476f6a1f7dcfe136a2df51b88888614e6ee5 | [
"MIT"
] | null | null | null | #include "precompiled.h"
#include "run_tournament_menu.h"
#include "3rd_party/imgui/imgui.h"
#include "core/file_io.h"
#include "data/state.h"
#include "data/tournament_data.h"
namespace winc
{
namespace
{
enum tournament_state
{
setup,
pools,
elims,
finals,
};
tournament_state get_current_sta... | 26.537757 | 169 | 0.654825 | [
"vector"
] |
d14e8d0b88522c7ebaa2b42b4e05d3ab501c36f0 | 48,058 | cc | C++ | src/box/xlog.cc | Khatskevich/tarantool | 1e154ede60ccd2b301cfba2b8ab7e961a3dd0783 | [
"BSD-2-Clause"
] | null | null | null | src/box/xlog.cc | Khatskevich/tarantool | 1e154ede60ccd2b301cfba2b8ab7e961a3dd0783 | [
"BSD-2-Clause"
] | null | null | null | src/box/xlog.cc | Khatskevich/tarantool | 1e154ede60ccd2b301cfba2b8ab7e961a3dd0783 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2010-2016, Tarantool AUTHORS, please see AUTHORS file.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
*
* 1. Redistributions of source code must retain the above
* copyright notice, this lis... | 25.508493 | 86 | 0.660806 | [
"object",
"vector"
] |
d15165285863c256b2b3af6125d60b657b6a330b | 703 | cpp | C++ | Volume112/11242 - Tour de France/11242-alternative.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | 1 | 2017-01-25T18:07:49.000Z | 2017-01-25T18:07:49.000Z | Volume112/11242 - Tour de France/11242-alternative.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | null | null | null | Volume112/11242 - Tour de France/11242-alternative.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define N 128000
using namespace std;
typedef pair<int,int> ii;
int f,r;
int front[N];
int rear[N];
vector<double> ratio;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
while(cin>>f && f!=0)
{
cin>>r;
for(int i=0;i<f;++i)
cin>>front[i];
for(int i=0;i<r;++i)
cin>>rear[i... | 16.348837 | 46 | 0.571835 | [
"vector"
] |
d157332e72198ec004da61e9b54e5ea4fc0ffcb6 | 11,125 | cpp | C++ | tests/bitboard_tests.cpp | adajed/chessplusplus | b6bad18a1adfdd00eecefedd196b7c06c1b0a738 | [
"MIT"
] | 1 | 2019-10-25T12:33:18.000Z | 2019-10-25T12:33:18.000Z | tests/bitboard_tests.cpp | adajed/chess-engine | b6bad18a1adfdd00eecefedd196b7c06c1b0a738 | [
"MIT"
] | 1 | 2021-04-21T10:00:12.000Z | 2021-05-23T10:54:00.000Z | tests/bitboard_tests.cpp | adajed/chess-engine | b6bad18a1adfdd00eecefedd196b7c06c1b0a738 | [
"MIT"
] | null | null | null | #include <gtest/gtest-param-test.h>
#include <gtest/gtest.h>
#include "types.h"
#include "bitboard.h"
#include "bithacks.h"
#include "position_bitboards.h"
#include "positions.h"
#include "zobrist_hash.h"
#include <functional>
#include <gtest/internal/gtest-param-util.h>
#include <map>
#include <gtest/gtest_pred_impl.... | 28.164557 | 122 | 0.499775 | [
"vector"
] |
d158f3401f3d09cacaac038f0904a31a89675557 | 726 | hpp | C++ | Magic_Recode/Header++/Includes.hpp | wasdasf/Magic | 9ecbc8ea194b01ecd68b6ea77a4d2b6cc506857e | [
"Unlicense"
] | null | null | null | Magic_Recode/Header++/Includes.hpp | wasdasf/Magic | 9ecbc8ea194b01ecd68b6ea77a4d2b6cc506857e | [
"Unlicense"
] | null | null | null | Magic_Recode/Header++/Includes.hpp | wasdasf/Magic | 9ecbc8ea194b01ecd68b6ea77a4d2b6cc506857e | [
"Unlicense"
] | null | null | null | #pragma once
#include <d3d9.h>
#include "Redirection_Manager.hpp"
#include "Byte_Manager.hpp"
#include "Menu_Select.hpp"
#include "Controller_Move.hpp"
#include <vector>
#include <cmath>
#include "Copy_User_Command.hpp"
#include "Client_Send_Move.hpp"
#include "Write_User_Command_Delta_To_Buffer.hpp"
#includ... | 16.883721 | 105 | 0.783747 | [
"vector"
] |
d159d837a35801b9d8b7c7c486087089babe9dcd | 10,647 | cpp | C++ | packages/python/pyfora/src/PyObjectUtils.cpp | ufora/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 571 | 2015-11-05T20:07:07.000Z | 2022-01-24T22:31:09.000Z | packages/python/pyfora/src/PyObjectUtils.cpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 218 | 2015-11-05T20:37:55.000Z | 2021-05-30T03:53:50.000Z | packages/python/pyfora/src/PyObjectUtils.cpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 40 | 2015-11-07T21:42:19.000Z | 2021-05-23T03:48:19.000Z | /***************************************************************************
Copyright 2016 Ufora 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/licen... | 29.25 | 92 | 0.592937 | [
"object"
] |
d16354ec806e0fe89188e3221c5ac69154410d6d | 19,199 | cpp | C++ | src/matrix.cpp | ivanbukhtiyarov/OpenBPS | e87e8221ff24cbb06af44a57bcac56b124575fdc | [
"BSD-3-Clause"
] | 1 | 2021-04-01T19:54:09.000Z | 2021-04-01T19:54:09.000Z | src/matrix.cpp | ivanbukhtiyarov/OpenBPS | e87e8221ff24cbb06af44a57bcac56b124575fdc | [
"BSD-3-Clause"
] | 3 | 2020-12-08T18:04:43.000Z | 2020-12-18T15:51:35.000Z | src/matrix.cpp | ivanbukhtiyarov/OpenBPS | e87e8221ff24cbb06af44a57bcac56b124575fdc | [
"BSD-3-Clause"
] | 1 | 2020-10-01T16:39:44.000Z | 2020-10-01T16:39:44.000Z | #include "openbps/matrix.h"
#include <vector>
#include <memory>
#include <initializer_list>
#include <cmath>
#include "xtensor/xarray.hpp"
#include "xtensor/xadapt.hpp"
#include "xtensor/xview.hpp"
#include "openbps/uncertainty.h"
#include "openbps/functionals.h"
#include "openbps/nuclide.h"
#include "openbps/chain.h"
... | 43.436652 | 82 | 0.434762 | [
"shape",
"vector"
] |
d1723408d96012d59998d394fb3a340a4cd72cfc | 40,854 | cc | C++ | src/formats/cnf.cc | nerdling/SBSAT | 6328c6aa105b75693d06bf0dae4a3b5ca220318b | [
"Unlicense"
] | 4 | 2015-03-08T07:56:29.000Z | 2017-10-12T04:19:27.000Z | src/formats/cnf.cc | nerdling/SBSAT | 6328c6aa105b75693d06bf0dae4a3b5ca220318b | [
"Unlicense"
] | null | null | null | src/formats/cnf.cc | nerdling/SBSAT | 6328c6aa105b75693d06bf0dae4a3b5ca220318b | [
"Unlicense"
] | null | null | null | /* =========FOR INTERNAL USE ONLY. NO DISTRIBUTION PLEASE ========== */
/*********************************************************************
Copyright 1999-2007, University of Cincinnati. All rights reserved.
By using this software the USER indicates that he or she has read,
understood and will comply with the f... | 32.761828 | 164 | 0.589636 | [
"shape",
"solid"
] |
ab6cd600242e0c8ec251b3b6d9b9eeaaea8abdce | 3,034 | cpp | C++ | src/BabylonCpp/src/maths/frustum.cpp | sacceus/BabylonCpp | 94669cf7cbe3214ec6e905cbf249fa0c9daf6222 | [
"Apache-2.0"
] | 277 | 2017-05-18T08:27:10.000Z | 2022-03-26T01:31:37.000Z | src/BabylonCpp/src/maths/frustum.cpp | sacceus/BabylonCpp | 94669cf7cbe3214ec6e905cbf249fa0c9daf6222 | [
"Apache-2.0"
] | 77 | 2017-09-03T15:35:02.000Z | 2022-03-28T18:47:20.000Z | src/BabylonCpp/src/maths/frustum.cpp | sacceus/BabylonCpp | 94669cf7cbe3214ec6e905cbf249fa0c9daf6222 | [
"Apache-2.0"
] | 37 | 2017-03-30T03:36:24.000Z | 2022-01-28T08:28:36.000Z | #include <babylon/maths/frustum.h>
#include <babylon/maths/matrix.h>
#include <babylon/maths/plane.h>
namespace BABYLON {
std::array<Plane, 6> Frustum::GetPlanes(const Matrix& transform)
{
std::array<Plane, 6> frustumPlanes{
{Plane(0.f, 0.f, 0.f, 0.f), Plane(0.f, 0.f, 0.f, 0.f),
Plane(0.f, 0.f,... | 30.039604 | 80 | 0.621292 | [
"transform"
] |
ab6e5fafd920d0eac022eee8e4b9e7dd0e40f64e | 1,364 | hpp | C++ | include/J3D/J3DUtil.hpp | Sage-of-Mirrors/J3DUltra | bc823846a6a547e74beb4ed9acad38b3ccd63ad3 | [
"MIT"
] | 1 | 2022-01-31T14:45:12.000Z | 2022-01-31T14:45:12.000Z | include/J3D/J3DUtil.hpp | Sage-of-Mirrors/J3DUltra | bc823846a6a547e74beb4ed9acad38b3ccd63ad3 | [
"MIT"
] | null | null | null | include/J3D/J3DUtil.hpp | Sage-of-Mirrors/J3DUltra | bc823846a6a547e74beb4ed9acad38b3ccd63ad3 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <string>
#include <type_traits>
#include <filesystem>
#include <cstddef>
#include <algorithm>
namespace J3DUtility {
// Returns the index of the given element in the given vector, or -1 if the element is not in that vector.
template<typename T>
ptrdiff_t VectorIndex... | 29.021277 | 130 | 0.648827 | [
"vector"
] |
ab6f0f0a337215e94e67c98071d8bab916545355 | 2,516 | hpp | C++ | tse/include/tse/application.hpp | jeffrey-cochran/tsl | a9ae6fb2755fcbd1311c16e9faff87445419f7f0 | [
"Apache-2.0",
"MIT"
] | 4 | 2020-03-05T04:34:28.000Z | 2022-02-17T04:39:51.000Z | tse/include/tse/application.hpp | jeffrey-cochran/tsl | a9ae6fb2755fcbd1311c16e9faff87445419f7f0 | [
"Apache-2.0",
"MIT"
] | 47 | 2019-02-21T11:16:20.000Z | 2019-07-10T20:30:13.000Z | tse/include/tse/application.hpp | jovobe/tsl | 6c024a2325d1c6cb3019b4169a6f3f214a224587 | [
"Apache-2.0",
"MIT"
] | 4 | 2020-06-20T15:36:11.000Z | 2022-01-04T03:22:45.000Z | #ifndef TSE_APPLICATION_HPP
#define TSE_APPLICATION_HPP
#include <map>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "tse/window.hpp"
using std::string;
using std::map;
namespace tse {
class window;
/**
* @brief This class represents the running application. Because only one istance of this can be used ... | 26.208333 | 111 | 0.692766 | [
"object"
] |
ab7251c12c3453d90533f4fde70d1c3fccb5bfb8 | 8,904 | hpp | C++ | shared.hpp | vsklad/cnfgen | 58bd621f174c8b92aeb597acdf4cadb210cdced5 | [
"MIT"
] | 19 | 2018-10-28T17:49:51.000Z | 2022-02-14T08:11:04.000Z | shared.hpp | vsklad/cnfgen | 58bd621f174c8b92aeb597acdf4cadb210cdced5 | [
"MIT"
] | 3 | 2021-03-08T07:44:02.000Z | 2021-03-21T17:55:47.000Z | shared.hpp | vsklad/cnfgen | 58bd621f174c8b92aeb597acdf4cadb210cdced5 | [
"MIT"
] | 4 | 2019-07-20T10:11:16.000Z | 2021-04-29T05:02:39.000Z | //
// CGen
// https://cgen.sophisticatedways.net
// Copyright © 2018-2020 Volodymyr Skladanivskyy. All rights reserved.
// Published under terms of MIT license.
//
#ifndef shared_hpp
#define shared_hpp
#include <map>
#include <vector>
#include "variablesarray.hpp"
#define APP_VERSION "1.2"
#define APP_TITLE "CGe... | 55.304348 | 139 | 0.780773 | [
"vector"
] |
ab7d2a9b981fdb97bbe3dde45303f9f5873f29de | 624 | cpp | C++ | src/objects/terrain/BaseTerrain.cpp | asilvaigor/opengl_winter | 0081c6ee39d493eb4f9e0ac92222937062866776 | [
"MIT"
] | 1 | 2020-04-24T22:55:51.000Z | 2020-04-24T22:55:51.000Z | src/objects/terrain/BaseTerrain.cpp | asilvaigor/opengl_winter | 0081c6ee39d493eb4f9e0ac92222937062866776 | [
"MIT"
] | null | null | null | src/objects/terrain/BaseTerrain.cpp | asilvaigor/opengl_winter | 0081c6ee39d493eb4f9e0ac92222937062866776 | [
"MIT"
] | null | null | null | //
// Created by Aloysio Galvão Lopes on 2020-05-08.
//
#include "BaseTerrain.h"
BaseTerrain::BaseTerrain(float xSize, float ySize) : Object(false), xSize(xSize), ySize(ySize) {}
BaseTerrain::~BaseTerrain() {}
void BaseTerrain::setLight(std::vector<std::shared_ptr<vcl::light_source>> &lights, int currentLight) {
... | 20.8 | 103 | 0.701923 | [
"object",
"vector"
] |
ab816bc0895eb41c67ce2b06eef72ce6639b4a0c | 1,038 | cc | C++ | src/utilities/test/test_Iterators.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/utilities/test/test_Iterators.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/utilities/test/test_Iterators.cc | baklanovp/libdetran | 820efab9d03ae425ccefb9520bdb6c086fdbf939 | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*-----------------------------------//
/**
* @file test_Iterators.cc
* @brief Test of InputDB
* @note Copyright (C) 2013 Jeremy Roberts
*/
//----------------------------------------------------------------------------//
// LIST OF TEST FUNCTIONS
#define TEST_LIST ... | 27.315789 | 80 | 0.352601 | [
"vector"
] |
ab867d326ed72753b23573e692f50af71f919777 | 35,883 | cpp | C++ | compiler/resolution/visibleCandidates.cpp | krishnakeshav/chapel | c7840d76944cfb1b63878e51e81138d1a0c808cf | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | compiler/resolution/visibleCandidates.cpp | krishnakeshav/chapel | c7840d76944cfb1b63878e51e81138d1a0c808cf | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | compiler/resolution/visibleCandidates.cpp | krishnakeshav/chapel | c7840d76944cfb1b63878e51e81138d1a0c808cf | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2004-2017 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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
*
*... | 34.403643 | 102 | 0.542095 | [
"object",
"vector"
] |
ab8b8950c29866801af1ffffe877b6141efad74a | 1,046 | cc | C++ | src/ray/core_worker/task_interface.cc | dmadeka/ray | 4f8e100fe0417da4fe1098defbfa478088502244 | [
"Apache-2.0"
] | null | null | null | src/ray/core_worker/task_interface.cc | dmadeka/ray | 4f8e100fe0417da4fe1098defbfa478088502244 | [
"Apache-2.0"
] | null | null | null | src/ray/core_worker/task_interface.cc | dmadeka/ray | 4f8e100fe0417da4fe1098defbfa478088502244 | [
"Apache-2.0"
] | null | null | null | #include "task_interface.h"
namespace ray {
Status CoreWorkerTaskInterface::SubmitTask(const RayFunction &function,
const std::vector<TaskArg> &args,
const TaskOptions &task_options,
std::v... | 38.740741 | 84 | 0.536329 | [
"vector"
] |
ab926029fe8d03ce2409555d8196ae5da7805c9b | 1,363 | cpp | C++ | Cpp/Codes/Practice/LeetCode/295 Find Median from Data Stream.cpp | QuincyWork/AllCodes | 59fe045608dda924cb993dde957da4daff769438 | [
"MIT"
] | null | null | null | Cpp/Codes/Practice/LeetCode/295 Find Median from Data Stream.cpp | QuincyWork/AllCodes | 59fe045608dda924cb993dde957da4daff769438 | [
"MIT"
] | null | null | null | Cpp/Codes/Practice/LeetCode/295 Find Median from Data Stream.cpp | QuincyWork/AllCodes | 59fe045608dda924cb993dde957da4daff769438 | [
"MIT"
] | 1 | 2019-04-01T10:30:03.000Z | 2019-04-01T10:30:03.000Z | #include <gtest\gtest.h>
#include <common\util.h>
#include <queue>
#include <math.h>
using namespace std;
class MedianFinder
{
public:
// Adds a number into the data structure.
void addNum(int num)
{
if (maxHeap.size() == 0 || num < maxHeap.top())
{
maxHeap.push(num);
if (maxHeap.size() > m... | 17.701299 | 68 | 0.608217 | [
"object",
"vector"
] |
ab952c4343dae865ce2f2a36ed85546cfb6859b5 | 4,928 | cpp | C++ | src/IStrategizer/AttackEntityAction.cpp | ogail/IStrategizer | d214f150fdfee3c3a865a826546058d131dd9100 | [
"Apache-2.0"
] | 1 | 2017-12-20T13:53:09.000Z | 2017-12-20T13:53:09.000Z | src/IStrategizer/AttackEntityAction.cpp | ogail/IStrategizer | d214f150fdfee3c3a865a826546058d131dd9100 | [
"Apache-2.0"
] | null | null | null | src/IStrategizer/AttackEntityAction.cpp | ogail/IStrategizer | d214f150fdfee3c3a865a826546058d131dd9100 | [
"Apache-2.0"
] | null | null | null | #include "AttackEntityAction.h"
#include <cassert>
#include "Vector2.h"
#include "OnlineCaseBasedPlannerEx.h"
#include "AbstractAdapter.h"
#include "CellFeature.h"
#include "CaseBasedReasonerEx.h"
#include "DataMessage.h"
#include "EngineAssist.h"
#include "RtsGame.h"
#include "GamePlayer.h"
#include "GameTechTree.h"
... | 36.776119 | 123 | 0.603896 | [
"vector"
] |
ab9a87f7b4048599f7b1944cb160d952546bdcd5 | 5,691 | cpp | C++ | Display/Display.cpp | ozanarmagan/NESEmulator | e4f7d5662caae85f1147fa8b57ce3dfa222ea164 | [
"MIT"
] | 11 | 2021-11-29T15:05:21.000Z | 2022-03-25T06:36:19.000Z | Display/Display.cpp | ozanarmagan/NESEmulator | e4f7d5662caae85f1147fa8b57ce3dfa222ea164 | [
"MIT"
] | null | null | null | Display/Display.cpp | ozanarmagan/NESEmulator | e4f7d5662caae85f1147fa8b57ce3dfa222ea164 | [
"MIT"
] | null | null | null | #include "Display.h"
namespace nesemulator
{
Display::Display(SDL_Event* event,Controller& controller) : eventPtr(event),controller(controller),notificationManager(renderer,font)
{
if(SDL_Init(SDL_INIT_EVERYTHING) != 0)
std::cout << "ERROR: SDL Couldn't initialized!\n";
init()... | 29.335052 | 146 | 0.574943 | [
"render"
] |
aba5dfed1d3d4ebc66be484b4b8898ac532fb27c | 2,547 | cpp | C++ | Sesion16/main.cpp | Miguel445Ar/A-y-R-Algoritmos-1 | c9b64573965d5c4371d2de1a1fff1a9425c34388 | [
"CC0-1.0"
] | null | null | null | Sesion16/main.cpp | Miguel445Ar/A-y-R-Algoritmos-1 | c9b64573965d5c4371d2de1a1fff1a9425c34388 | [
"CC0-1.0"
] | null | null | null | Sesion16/main.cpp | Miguel445Ar/A-y-R-Algoritmos-1 | c9b64573965d5c4371d2de1a1fff1a9425c34388 | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <functional>
#include <vector>
using std::function;
using std::vector;
using std::cout;
using std::cin;
// left child -> 2 * i + 1
// right chuld -> 2 * i + 2
// parent of a node i -> (i - 1) / 2
template<class T>
class Heap {
vector<T>* heap;
function<bool(T,T)> comp;
public:
... | 24.490385 | 90 | 0.44523 | [
"vector"
] |
abaf3b38509174b2d459a73bced366b6323917c9 | 3,810 | cpp | C++ | src/module/ModuleScene.cpp | marcorod94/Engine-Demo-MR | 7fcbcfa809cbe21afaf44c35dff5dd9c443c3bfe | [
"Apache-2.0"
] | 1 | 2020-01-24T18:28:26.000Z | 2020-01-24T18:28:26.000Z | src/module/ModuleScene.cpp | marcorod94/Engine-Demo-MR | 7fcbcfa809cbe21afaf44c35dff5dd9c443c3bfe | [
"Apache-2.0"
] | null | null | null | src/module/ModuleScene.cpp | marcorod94/Engine-Demo-MR | 7fcbcfa809cbe21afaf44c35dff5dd9c443c3bfe | [
"Apache-2.0"
] | null | null | null | #include "main/Application.h"
#include "ModuleScene.h"
#include "GL/glew.h"
#include "MathGeoLib.h"
#include "ModuleProgram.h"
#include "ModuleTexture.h"
#include "ModuleCamera.h"
#include "ModuleModel.h"
#include "ModuleFileSystem.h"
#include "component/Mesh.h"
#include "component/Material.h"
#include "module/ModuleI... | 29.307692 | 149 | 0.69895 | [
"mesh",
"object"
] |
abb64a18b71d66843caec4a6478f5e03fe2b550f | 370 | cpp | C++ | reference.cpp | Arsenic-ATG/CP-setup | 4bb07641e6778213263e86f8dd7c6bf9d6ac1c0f | [
"MIT"
] | 3 | 2020-10-02T00:30:14.000Z | 2021-02-21T15:43:25.000Z | reference.cpp | Arsenic-ATG/CP-setup | 4bb07641e6778213263e86f8dd7c6bf9d6ac1c0f | [
"MIT"
] | 6 | 2020-11-23T10:16:50.000Z | 2020-12-12T08:44:14.000Z | reference.cpp | Arsenic-ATG/CP-setup | 4bb07641e6778213263e86f8dd7c6bf9d6ac1c0f | [
"MIT"
] | 3 | 2020-12-12T08:08:18.000Z | 2021-09-03T14:36:57.000Z | // There will be more added to this file in the future
#include <iostream>
#include <string>
#include <cmath>
#include <vector>
// to take input from a vector
void input(std::vector<int> &v,int n)
{
for (int i = 0; i < n; ++i)
{
int e;
std::cin>>e;
v.push_back(e);
}
}
int main()
{
int T;
std::cin>>T;
whi... | 13.214286 | 54 | 0.6 | [
"vector"
] |
abb85dd72eb6f2df6eeb209f6151394201a7f5d4 | 5,988 | cpp | C++ | src/test_ell2.cpp | gaowenliang/fsrk | 4e6492b4bc133d0953bb85cf5416f0414c503644 | [
"MIT"
] | 31 | 2018-06-01T12:53:02.000Z | 2022-03-22T07:06:30.000Z | src/test_ell2.cpp | gaowenliang/fsrk | 4e6492b4bc133d0953bb85cf5416f0414c503644 | [
"MIT"
] | 1 | 2019-03-05T04:38:08.000Z | 2019-04-18T12:04:15.000Z | src/test_ell2.cpp | gaowenliang/fsrk | 4e6492b4bc133d0953bb85cf5416f0414c503644 | [
"MIT"
] | 4 | 2018-07-20T02:49:08.000Z | 2021-09-29T13:54:32.000Z | #define BACKWARD_HAS_DW 1
#include "backward.hpp"
namespace backward
{
backward::SignalHandling sh;
}
#include "fsrk/shape/circle.h"
#include "fsrk/shape/ellipse.h"
#include <code_utils/cv_utils/randomcolor.h>
#include <code_utils/sys_utils/tic_toc.h>
#include <opencv2/opencv.hpp>
using namespace std;
#define WINDOW... | 28.927536 | 98 | 0.492318 | [
"shape",
"vector"
] |
abbe3887948e6568b63045080e66e25a0d08ff09 | 2,344 | cpp | C++ | src/object_uart_settings.cpp | ic3man5/python_ics | e2dfbb60e14d6292a14c6f7685ca8dd4ce2f6916 | [
"Unlicense"
] | 1 | 2019-07-22T07:19:22.000Z | 2019-07-22T07:19:22.000Z | src/object_uart_settings.cpp | ic3man5/python_ics | e2dfbb60e14d6292a14c6f7685ca8dd4ce2f6916 | [
"Unlicense"
] | null | null | null | src/object_uart_settings.cpp | ic3man5/python_ics | e2dfbb60e14d6292a14c6f7685ca8dd4ce2f6916 | [
"Unlicense"
] | null | null | null | #include "object_uart_settings.h"
PyTypeObject uart_settings_object_type = {
PyVarObject_HEAD_INIT(NULL, 0)
MODULE_NAME "." UART_SETTINGS_OBJECT_NAME, /* tp_name */
sizeof(uart_settings_object), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)0, /* tp_dealloc... | 42.618182 | 97 | 0.458191 | [
"object"
] |
abc053096ecebab55ee187760c0ed68f156d943f | 666 | cpp | C++ | Week-4/Editorials/Contest_1/problem_2.cpp | tanayduggad0299/CP-Buddy-Series | 29b85801f216e10e1817ce0769dd2d9d98856163 | [
"MIT"
] | 58 | 2020-08-02T16:38:43.000Z | 2021-04-11T15:17:07.000Z | Week-4/Editorials/Contest_1/problem_2.cpp | tanayduggad0299/CP-Buddy-Series | 29b85801f216e10e1817ce0769dd2d9d98856163 | [
"MIT"
] | 29 | 2020-08-03T08:48:05.000Z | 2020-10-05T08:25:09.000Z | Week-4/Editorials/Contest_1/problem_2.cpp | tanayduggad0299/CP-Buddy-Series | 29b85801f216e10e1817ce0769dd2d9d98856163 | [
"MIT"
] | 44 | 2020-08-02T16:51:08.000Z | 2021-03-04T13:51:01.000Z | int equalStacks(vector<int> h1, vector<int> h2, vector<int> h3)
{
stack<int>s1,s2,s3;
s1.push(0);
s2.push(0);
s3.push(0);
for(int i=h1.size()-1;i>=0;i--)
s1.push(s1.top()+h1[i]);
for(int i=h2.size()-1;i>=0;i--)
s2.push(s2.top()+h2[i]);
for(int i=h3.size()-1;i>=0;i--)
... | 25.615385 | 64 | 0.453453 | [
"vector"
] |
abc1887d21c29373ff6405f7a655b20d4a80349c | 39,799 | cpp | C++ | segmatch/src/segmatch.cpp | jidebingfeng/segmatch | c662324d23b9e049fbb49b52cda7895d1a4d2798 | [
"BSD-3-Clause"
] | 13 | 2018-11-28T12:02:48.000Z | 2021-12-22T01:04:49.000Z | segmatch/src/segmatch.cpp | yuekaka/segmatch | c662324d23b9e049fbb49b52cda7895d1a4d2798 | [
"BSD-3-Clause"
] | 2 | 2019-03-03T01:50:51.000Z | 2019-08-19T08:06:41.000Z | segmatch/src/segmatch.cpp | yuekaka/segmatch | c662324d23b9e049fbb49b52cda7895d1a4d2798 | [
"BSD-3-Clause"
] | 8 | 2019-06-18T19:40:35.000Z | 2020-06-15T17:43:06.000Z | #include "segmatch/segmatch.hpp"
#include <algorithm>
#include <limits>
#include <laser_slam/common.hpp>
#include <pcl/recognition/cg/geometric_consistency.h>
namespace segmatch {
using namespace laser_slam;
SegMatch::SegMatch(const SegMatchParams& params) {
init(params);
}
SegMatch::SegMatch() {
LOG(INFO) <<... | 41.805672 | 110 | 0.670846 | [
"vector",
"transform"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.