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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
62805541e1d7de474f14cb19b99873123c90c18a | 121,020 | cpp | C++ | LambdaEngine/Source/Game/ECS/Systems/Rendering/RenderSystem.cpp | IbexOmega/CrazyCanvas | f60f01aaf9c988e4da8990dc1ef3caac20cecf7e | [
"MIT"
] | 18 | 2020-09-04T08:00:54.000Z | 2021-08-29T23:04:45.000Z | LambdaEngine/Source/Game/ECS/Systems/Rendering/RenderSystem.cpp | IbexOmega/LambdaEngine | f60f01aaf9c988e4da8990dc1ef3caac20cecf7e | [
"MIT"
] | 32 | 2020-09-12T19:24:50.000Z | 2020-12-11T14:29:44.000Z | LambdaEngine/Source/Game/ECS/Systems/Rendering/RenderSystem.cpp | IbexOmega/LambdaEngine | f60f01aaf9c988e4da8990dc1ef3caac20cecf7e | [
"MIT"
] | 2 | 2020-12-15T15:36:13.000Z | 2021-03-27T14:27:02.000Z | #include "Game/ECS/Systems/Rendering/RenderSystem.h"
#include "Rendering/Core/API/GraphicsDevice.h"
#include "Rendering/Core/API/CommandAllocator.h"
#include "Rendering/Core/API/CommandQueue.h"
#include "Rendering/Core/API/CommandList.h"
#include "Rendering/Core/API/SwapChain.h"
#include "Rendering/Core/API/Texture.h"... | 36.851401 | 233 | 0.761601 | [
"mesh",
"render",
"transform"
] |
628d789b26accff1e4d641e1af5af91041a927f0 | 1,186 | cpp | C++ | 1000/50/1059b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 1000/50/1059b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 1000/50/1059b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <string>
#include <vector>
template <typename T>
std::istream& operator >>(std::istream& input, std::vector<T>& v)
{
for (T& a : v)
input >> a;
return input;
}
void answer(bool v)
{
constexpr const char* s[2] = { "NO", "YES" };
std::cout << s[v] << '\n';
}
void s... | 19.442623 | 101 | 0.409781 | [
"vector"
] |
628e298e26685b99ba21ed9b696466f98c198a6c | 12,437 | cpp | C++ | tests/test_tensor.cpp | stdml/stdtensor | 61226b63c26ca92d345f718afef96d97630e778a | [
"MIT"
] | 4 | 2020-09-08T10:46:01.000Z | 2021-04-03T09:08:42.000Z | tests/test_tensor.cpp | lgarithm/stdtensor | 61226b63c26ca92d345f718afef96d97630e778a | [
"MIT"
] | 39 | 2018-09-21T12:32:45.000Z | 2020-03-10T00:22:14.000Z | tests/test_tensor.cpp | lgarithm/stdtensor | 61226b63c26ca92d345f718afef96d97630e778a | [
"MIT"
] | 2 | 2018-11-05T06:15:52.000Z | 2019-10-08T00:26:23.000Z | #include "testing.hpp"
#include <numeric>
#include <type_traits>
#include <ttl/experimental/flat_tensor>
#include <ttl/experimental/raw_tensor>
#include <ttl/tensor>
using ttl::tensor;
using ttl::tensor_ref;
using ttl::tensor_view;
TEST(tensor_test, test_size)
{
using T0 = ttl::tensor<uint8_t, 0>;
using R0 ... | 24.482283 | 78 | 0.524323 | [
"shape"
] |
628f90be61361659658783828528f210172bdd77 | 701 | hpp | C++ | src/lib/lua/glue/core/base.hpp | amenoyoya/aula | 337ad7e552a24449446c0fe567967ea372661bd7 | [
"MIT"
] | null | null | null | src/lib/lua/glue/core/base.hpp | amenoyoya/aula | 337ad7e552a24449446c0fe567967ea372661bd7 | [
"MIT"
] | null | null | null | src/lib/lua/glue/core/base.hpp | amenoyoya/aula | 337ad7e552a24449446c0fe567967ea372661bd7 | [
"MIT"
] | null | null | null | #pragma once
#include <aula/core/base/object.hpp>
namespace Aula {
inline void open_base_library(sol::state &lua) {
auto aula = lua["Aula"].get_or_create<sol::table>();
aula.new_usertype<Object>(
"Object",
sol::constructors<Object()>(),
"getState", &Ob... | 29.208333 | 68 | 0.537803 | [
"object"
] |
62990ab851c98dd5a736d3fc8a30d358b6c71b39 | 10,216 | cpp | C++ | apps/hello_world/firmware/src/app_ml.cpp | Microchip-MPLAB-Harmony/tflite-micro-apps | af7664f319c43a8dc9949430757d93d8ab597abb | [
"BSD-3-Clause-Attribution"
] | null | null | null | apps/hello_world/firmware/src/app_ml.cpp | Microchip-MPLAB-Harmony/tflite-micro-apps | af7664f319c43a8dc9949430757d93d8ab597abb | [
"BSD-3-Clause-Attribution"
] | null | null | null | apps/hello_world/firmware/src/app_ml.cpp | Microchip-MPLAB-Harmony/tflite-micro-apps | af7664f319c43a8dc9949430757d93d8ab597abb | [
"BSD-3-Clause-Attribution"
] | null | null | null | /*******************************************************************************
* Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries.
*
* Subject to your compliance with these terms, you may use Microchip software
* and any derivatives exclusively with Microchip products. It is your
* responsibility to ... | 36.355872 | 108 | 0.54072 | [
"model"
] |
62a82412422b21266de4815ee173667f6632f2d3 | 1,420 | cpp | C++ | Gems/Atom/RPI/Code/Source/RPI.Public/Pass/SlowClearPass.cpp | BreakerOfThings/o3de | f4c59f868c726470ec910623facd836047d059c3 | [
"Apache-2.0",
"MIT"
] | 11 | 2021-07-08T09:58:26.000Z | 2022-03-17T17:59:26.000Z | Gems/Atom/RPI/Code/Source/RPI.Public/Pass/SlowClearPass.cpp | BreakerOfThings/o3de | f4c59f868c726470ec910623facd836047d059c3 | [
"Apache-2.0",
"MIT"
] | 29 | 2021-07-06T19:33:52.000Z | 2022-03-22T10:27:49.000Z | Gems/Atom/RPI/Code/Source/RPI.Public/Pass/SlowClearPass.cpp | BreakerOfThings/o3de | f4c59f868c726470ec910623facd836047d059c3 | [
"Apache-2.0",
"MIT"
] | 4 | 2021-07-06T19:24:43.000Z | 2022-03-31T12:42:27.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <Atom/RPI.Public/Pass/SlowClearPass.h>
#include <Atom/RPI.Public/Pass/PassUtils.h>
#incl... | 30.869565 | 102 | 0.638732 | [
"3d"
] |
62b2419bde9723c14554b4d6515be3b81decfaf8 | 914 | cpp | C++ | Graph/1153. String Transforms Into Another String/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 1 | 2021-11-19T19:58:33.000Z | 2021-11-19T19:58:33.000Z | Graph/1153. String Transforms Into Another String/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | null | null | null | Graph/1153. String Transforms Into Another String/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 2 | 2021-11-26T12:47:27.000Z | 2022-01-13T16:14:46.000Z | //
// main.cpp
// 1153. String Transforms Into Another String
//
// Created by 边俊林 on 2019/12/10.
// Copyright © 2019 边俊林. All rights reserved.
//
#include <map>
#include <set>
#include <queue>
#include <string>
#include <stack>
#include <vector>
#include <cstdio>
#include <numeric>
#include <cstdlib>
#include <ut... | 19.869565 | 67 | 0.603939 | [
"vector"
] |
62b8e23b6ebeff9f7c5eb58caa7af874e7c7b2bb | 8,361 | cpp | C++ | src/modules/camerasmooths.cpp | mrxen/slinfirehud | e3a2cd46cefd22cdd5aba1d13385c0a97194c6da | [
"BSD-2-Clause"
] | null | null | null | src/modules/camerasmooths.cpp | mrxen/slinfirehud | e3a2cd46cefd22cdd5aba1d13385c0a97194c6da | [
"BSD-2-Clause"
] | null | null | null | src/modules/camerasmooths.cpp | mrxen/slinfirehud | e3a2cd46cefd22cdd5aba1d13385c0a97194c6da | [
"BSD-2-Clause"
] | null | null | null | /*
* camerasmooths.cpp
* StatusSpec project
*
* Copyright (c) 2014-2015 Forward Command Post
* BSD 2-Clause License
* http://opensource.org/licenses/BSD-2-Clause
*
*/
#include "camerasmooths.h"
#include "cbase.h"
#include "convar.h"
#include "hltvcamera.h"
#include "shareddefs.h"
#include "toolframework/... | 32.034483 | 272 | 0.754814 | [
"vector"
] |
62ba029e8aaf44bb5b7698be8a23c8c212819206 | 27,401 | cpp | C++ | indra/lscript/lscript_library/lscript_alloc.cpp | SaladDais/LSO2-VM-Performance | d7ec9ad9daa9a2c9e48c5f06cd768606e3e50638 | [
"ISC"
] | null | null | null | indra/lscript/lscript_library/lscript_alloc.cpp | SaladDais/LSO2-VM-Performance | d7ec9ad9daa9a2c9e48c5f06cd768606e3e50638 | [
"ISC"
] | null | null | null | indra/lscript/lscript_library/lscript_alloc.cpp | SaladDais/LSO2-VM-Performance | d7ec9ad9daa9a2c9e48c5f06cd768606e3e50638 | [
"ISC"
] | null | null | null | /**
* @file lscript_alloc.cpp
* @brief general heap management for scripting system
*
* $LicenseInfo:firstyear=2002&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of... | 24.099384 | 114 | 0.682238 | [
"vector"
] |
62bedf83696d63c8d23ddbbf2da35f741ba2464d | 357,170 | cpp | C++ | PlayFabSDK/Plugins/PlayFab/Source/PlayFab/Private/Core/PlayFabClientDataModels.cpp | fordream/UnrealCppSdk | 84a38f3f32712334c29704892c5c8358804b40ae | [
"Apache-2.0"
] | null | null | null | PlayFabSDK/Plugins/PlayFab/Source/PlayFab/Private/Core/PlayFabClientDataModels.cpp | fordream/UnrealCppSdk | 84a38f3f32712334c29704892c5c8358804b40ae | [
"Apache-2.0"
] | null | null | null | PlayFabSDK/Plugins/PlayFab/Source/PlayFab/Private/Core/PlayFabClientDataModels.cpp | fordream/UnrealCppSdk | 84a38f3f32712334c29704892c5c8358804b40ae | [
"Apache-2.0"
] | 1 | 2020-04-09T10:55:33.000Z | 2020-04-09T10:55:33.000Z | // This is automatically generated by PlayFab SDKGenerator. DO NOT modify this manually!
#include "PlayFabPrivatePCH.h"
#include "Core/PlayFabClientDataModels.h"
#include "Core/PlayFabJsonHelpers.h"
using namespace PlayFab;
using namespace PlayFab::ClientModels;
PlayFab::ClientModels::FAcceptTradeRequest::~FAccept... | 31.150358 | 187 | 0.686303 | [
"cad"
] |
4987302cc788e555f0d9120c651e58f535880e9d | 3,154 | hpp | C++ | include/amtrs/.driver/g3d-opengl-devices_vertex.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-12-10T02:12:49.000Z | 2019-12-10T02:12:49.000Z | include/amtrs/.driver/g3d-opengl-devices_vertex.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | include/amtrs/.driver/g3d-opengl-devices_vertex.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /* Copyright (c) 2019, isaponsoft (Isao Shibuya) All rights reserved. *
* Use of this source code is governed by a BSD-style license that *
* can be found in the LICENSE file. */
#ifndef __libamtrs__graphics__opengl__devices_vertex__hpp
#define __libamtrs__graphics__opengl__device... | 25.852459 | 123 | 0.7435 | [
"vector"
] |
498ccc9f68636ae13b2f72e4ac881f24d1c9d20c | 2,377 | cpp | C++ | src/main.cpp | hockeyhurd/Makefile-Generator | 3848a9e8d2778b6e93096f8290964a2fee7491ca | [
"MIT-0",
"MIT"
] | null | null | null | src/main.cpp | hockeyhurd/Makefile-Generator | 3848a9e8d2778b6e93096f8290964a2fee7491ca | [
"MIT-0",
"MIT"
] | null | null | null | src/main.cpp | hockeyhurd/Makefile-Generator | 3848a9e8d2778b6e93096f8290964a2fee7491ca | [
"MIT-0",
"MIT"
] | 1 | 2018-08-17T01:28:53.000Z | 2018-08-17T01:28:53.000Z | /*
* MIT License
*
* Copyright (c) 2017 hockeyhurd
*
* 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... | 27.964706 | 80 | 0.720656 | [
"vector"
] |
4993d68c9b83b366a48801457d122e8e552a7e01 | 5,720 | cpp | C++ | src/report.cpp | karimdavoodi/iptv_rest | 93fdc83ce9ace2c733179caf26394d8aaa010de0 | [
"MIT"
] | 1 | 2020-09-16T01:45:24.000Z | 2020-09-16T01:45:24.000Z | src/report.cpp | karimdavoodi/iptv_rest | 93fdc83ce9ace2c733179caf26394d8aaa010de0 | [
"MIT"
] | null | null | null | src/report.cpp | karimdavoodi/iptv_rest | 93fdc83ce9ace2c733179caf26394d8aaa010de0 | [
"MIT"
] | null | null | null | #include "auth.hpp"
#include "mongo_driver.hpp"
#include "util.hpp"
#include "report.hpp"
#include "hardware.hpp"
#include <chrono>
using namespace std;
void status_information_get(served::response &res, const served::request &req)
{
CHECK_AUTH;
try{
... | 41.151079 | 101 | 0.518531 | [
"object",
"model"
] |
4995f7500bc1778e45893d958bf24367e38b7d1c | 8,065 | cc | C++ | components/update_client/update_checker.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/update_client/update_checker.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/update_client/update_checker.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 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.
#include "components/update_client/update_checker.h"
#include <stddef.h>
#include <memory>
#include <string>
#include <vector>
#include "base/bind.h"
#... | 35.844444 | 80 | 0.718785 | [
"vector"
] |
499ea08b84555e499b9ddd974d602053100f5b34 | 16,468 | hpp | C++ | boost/numeric/ublasx/expression/vector_binary_functor.hpp | comcon1/boost-ublasx | 290b92b643a944825df99bece3468a4f81518056 | [
"BSL-1.0"
] | null | null | null | boost/numeric/ublasx/expression/vector_binary_functor.hpp | comcon1/boost-ublasx | 290b92b643a944825df99bece3468a4f81518056 | [
"BSL-1.0"
] | null | null | null | boost/numeric/ublasx/expression/vector_binary_functor.hpp | comcon1/boost-ublasx | 290b92b643a944825df99bece3468a4f81518056 | [
"BSL-1.0"
] | null | null | null | /**
* \file boost/numeric/ublasx/expression/vector_binary_functor.hpp
*
* \brief Vector expression for applying binary functors to a vector expression.
*
* Copyright (c) 2015, Marco Guazzone
*
* Distributed under the Boost Software License, Version 1.0. (See
* accompanying file LICENSE_1_0.txt or copy at
* htt... | 24.253314 | 146 | 0.748968 | [
"vector"
] |
49a003f0809ab59cd9a059630e2e4fb761e7fbf7 | 9,085 | cpp | C++ | vrpc/addon.cpp | cstim/vrpc | 5b46eedcbe1cc3ba593a1ef2d6869c651a5b34e5 | [
"MIT"
] | null | null | null | vrpc/addon.cpp | cstim/vrpc | 5b46eedcbe1cc3ba593a1ef2d6869c651a5b34e5 | [
"MIT"
] | null | null | null | vrpc/addon.cpp | cstim/vrpc | 5b46eedcbe1cc3ba593a1ef2d6869c651a5b34e5 | [
"MIT"
] | null | null | null | /*
__/\\\________/\\\____/\\\\\\\\\______/\\\\\\\\\\\\\_________/\\\\\\\\\_
__\/\\\_______\/\\\__/\\\///////\\\___\/\\\/////////\\\____/\\\////////__
__\//\\\______/\\\__\/\\\_____\/\\\___\/\\\_______\/\\\__/\\\/___________
___\//\\\____/\\\___\/\\\\\\\\\\\/____\/\\\\\\\\\\\\\/__/\\\_____________
____\//\\\__/\\\... | 34.154135 | 82 | 0.675179 | [
"object"
] |
49a22f75e028e6689f8bc18d8d6f1f22af3b08db | 8,171 | cxx | C++ | Source/VTKExtensions/General/vtkCMBProjectManager.cxx | developkits/cmb | caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb | [
"BSD-3-Clause"
] | null | null | null | Source/VTKExtensions/General/vtkCMBProjectManager.cxx | developkits/cmb | caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb | [
"BSD-3-Clause"
] | null | null | null | Source/VTKExtensions/General/vtkCMBProjectManager.cxx | developkits/cmb | caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb | [
"BSD-3-Clause"
] | null | null | null | //=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... | 26.615635 | 99 | 0.698813 | [
"object",
"vector",
"model"
] |
49a3468b48d32c7b8977cc26f4b53100615c6ac9 | 1,886 | cc | C++ | src/compiler/compile.cc | jamiebuilds/tree-sitter | 16376c43f5cc75bbc5297e6d5716bd94d55ccc05 | [
"MIT"
] | null | null | null | src/compiler/compile.cc | jamiebuilds/tree-sitter | 16376c43f5cc75bbc5297e6d5716bd94d55ccc05 | [
"MIT"
] | null | null | null | src/compiler/compile.cc | jamiebuilds/tree-sitter | 16376c43f5cc75bbc5297e6d5716bd94d55ccc05 | [
"MIT"
] | null | null | null | #include "tree_sitter/compiler.h"
#include "compiler/prepare_grammar/prepare_grammar.h"
#include "compiler/build_tables/parse_table_builder.h"
#include "compiler/generate_code/c_code.h"
#include "compiler/syntax_grammar.h"
#include "compiler/log.h"
#include "compiler/lexical_grammar.h"
#include "compiler/parse_grammar.... | 31.966102 | 90 | 0.758218 | [
"vector"
] |
49b1234c30ad0e2887b622c26d4216b333c32959 | 9,877 | cpp | C++ | src/3rdparty/khtml/src/dom/dom_string.cpp | afarcat/QtHtmlView | fff12b6f5c08c2c6db15dd73e4f0b55421827b39 | [
"Apache-2.0"
] | null | null | null | src/3rdparty/khtml/src/dom/dom_string.cpp | afarcat/QtHtmlView | fff12b6f5c08c2c6db15dd73e4f0b55421827b39 | [
"Apache-2.0"
] | null | null | null | src/3rdparty/khtml/src/dom/dom_string.cpp | afarcat/QtHtmlView | fff12b6f5c08c2c6db15dd73e4f0b55421827b39 | [
"Apache-2.0"
] | null | null | null | /**
* This file is part of the DOM implementation for KDE.
*
* Copyright 1999 Lars Knoll (knoll@kde.org)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of t... | 19.833333 | 87 | 0.534272 | [
"vector"
] |
49b413b3a4320a103c808d497dcd10a034b25e1e | 1,428 | cc | C++ | src/dwt2.cc | zhehangd/lastro | 337b9bb62f4f84443484e6eaa33e95efa175e232 | [
"MIT"
] | null | null | null | src/dwt2.cc | zhehangd/lastro | 337b9bb62f4f84443484e6eaa33e95efa175e232 | [
"MIT"
] | null | null | null | src/dwt2.cc | zhehangd/lastro | 337b9bb62f4f84443484e6eaa33e95efa175e232 | [
"MIT"
] | null | null | null | #include "dwt2.h"
#include <glog/logging.h>
#include "wavelib/wavelib.h"
namespace {
void DWT2HighPassGray(cv::Mat src, cv::Mat &dst, int level) {
int rows = src.rows;
int cols = src.cols;
const char *name = "db2";
const char *ext = "sym";
wave_object obj = wave_init(name);
wt2_object wt = wt2_init(ob... | 23.409836 | 68 | 0.639356 | [
"vector"
] |
49b492c4560edaa97c82486e24866eea9fe252c4 | 858 | cpp | C++ | IronCat/src/IronCat/Platforms/OpenGL/OpenGLTexture.cpp | Dalvent/GoblinEngine | 83836f08995aebf064c01a69ac6ba316d0e1921b | [
"Apache-2.0"
] | null | null | null | IronCat/src/IronCat/Platforms/OpenGL/OpenGLTexture.cpp | Dalvent/GoblinEngine | 83836f08995aebf064c01a69ac6ba316d0e1921b | [
"Apache-2.0"
] | null | null | null | IronCat/src/IronCat/Platforms/OpenGL/OpenGLTexture.cpp | Dalvent/GoblinEngine | 83836f08995aebf064c01a69ac6ba316d0e1921b | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "OpenGLTexture.h"
#include "IronCat/Render/RenderApi.h"
#include <GLAD/glad.h>
namespace IronCat
{
OpenGLTexture2D::OpenGLTexture2D(const Image& image)
{
_width = image.GetWidth();
_height = image.GetHeight();
glCreateTextures(GL_TEXTURE_2D, 1, &_id);
glTextureStorage2D(_id, 1,
... | 24.514286 | 68 | 0.745921 | [
"render"
] |
49b8619628bbe6433889aa8b32b6a2cce3ac1495 | 1,439 | cpp | C++ | backup/2/codesignal/c++/possible-sums.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/codesignal/c++/possible-sums.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/codesignal/c++/possible-sums.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 41.114286 | 345 | 0.635163 | [
"vector"
] |
49b9864b1fe2dc424e5a4f44382e9b3ba02386eb | 34,860 | cpp | C++ | core/archive/local_history.cpp | Vavilon3000/icq | 9fe7a3c42c07eb665d2e3b0ec50052de382fd89c | [
"Apache-2.0"
] | 1 | 2021-03-18T20:00:07.000Z | 2021-03-18T20:00:07.000Z | core/archive/local_history.cpp | Vavilon3000/icq | 9fe7a3c42c07eb665d2e3b0ec50052de382fd89c | [
"Apache-2.0"
] | null | null | null | core/archive/local_history.cpp | Vavilon3000/icq | 9fe7a3c42c07eb665d2e3b0ec50052de382fd89c | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "../../common.shared/url_parser/url_parser.h"
#include "../../corelib/collection_helper.h"
#include "../log/log.h"
#include "image_cache.h"
#include "history_message.h"
#include "contact_archive.h"
#include "archive_index.h"
#include "not_sent_messages.h"
#include "messages... | 31.069519 | 192 | 0.655192 | [
"vector"
] |
49bbb6bab0f2be0a02a1c6104ce571ec3cb817f8 | 2,238 | cpp | C++ | computationalGraph/Func.cpp | sonsongithub/llvm_jit_compile | 3118f00b4e5b96121d2db29ca73f980a28a0c1f6 | [
"MIT"
] | 3 | 2020-01-26T06:59:00.000Z | 2020-12-22T17:52:15.000Z | computationalGraph/Func.cpp | sonsongithub/llvm_jit_compile | 3118f00b4e5b96121d2db29ca73f980a28a0c1f6 | [
"MIT"
] | null | null | null | computationalGraph/Func.cpp | sonsongithub/llvm_jit_compile | 3118f00b4e5b96121d2db29ca73f980a28a0c1f6 | [
"MIT"
] | null | null | null | // MIT License
//
// Copyright (c) 2020 sonson
//
// 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, merg... | 33.909091 | 90 | 0.709562 | [
"vector"
] |
49bdb9f50c58f797eff45f5dc662fbd3512c6a4e | 4,291 | hpp | C++ | include/nitro/broken_options/options.hpp | kinnarr/nitro | a048e3530a2247701bfde5876072582ce828608d | [
"BSD-3-Clause"
] | null | null | null | include/nitro/broken_options/options.hpp | kinnarr/nitro | a048e3530a2247701bfde5876072582ce828608d | [
"BSD-3-Clause"
] | null | null | null | include/nitro/broken_options/options.hpp | kinnarr/nitro | a048e3530a2247701bfde5876072582ce828608d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2015-2016, Technische Universität Dresden, Germany
* 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.787402 | 100 | 0.649965 | [
"vector"
] |
49bf23095edadf3323a642df8a2add919f7c52f5 | 2,659 | cpp | C++ | Game/src/game/GameData.cpp | franticsoftware/starports | d723404b20383949874868c251c60cfa06120fde | [
"MIT"
] | 5 | 2016-11-13T08:13:57.000Z | 2019-03-31T10:22:38.000Z | Game/src/game/GameData.cpp | franticsoftware/starports | d723404b20383949874868c251c60cfa06120fde | [
"MIT"
] | null | null | null | Game/src/game/GameData.cpp | franticsoftware/starports | d723404b20383949874868c251c60cfa06120fde | [
"MIT"
] | 1 | 2016-12-23T11:25:35.000Z | 2016-12-23T11:25:35.000Z | /*
Amine Rehioui
Created: June 15th 2013
*/
#include "Game.h"
#include "GameData.h"
#include "File.h"
namespace shoot
{
DEFINE_OBJECT(GameData);
//! statics
const char* GameData::m_sSaveFile = "GameData.xml";
//! constructor
GameData::GameData()
// properties
: m_CurrentLevel(0)
, m_LastUnlockedLeve... | 20.773438 | 123 | 0.676946 | [
"object"
] |
49bf36ef96dd1f70d95f147a28b7e5fe8a00c99e | 4,284 | cpp | C++ | tests/OpenVDS/RequestVolumeSamples.cpp | wadesalazar/open-vds2 | 71b6a49f39f79c913b1a560be1869c8bd391de19 | [
"Apache-2.0"
] | null | null | null | tests/OpenVDS/RequestVolumeSamples.cpp | wadesalazar/open-vds2 | 71b6a49f39f79c913b1a560be1869c8bd391de19 | [
"Apache-2.0"
] | null | null | null | tests/OpenVDS/RequestVolumeSamples.cpp | wadesalazar/open-vds2 | 71b6a49f39f79c913b1a560be1869c8bd391de19 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
** Copyright 2019 The Open Group
** Copyright 2019 Bluware, 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... | 35.404959 | 213 | 0.695378 | [
"vector"
] |
49c4a01eb814901443fd9b6868cf1312aa3da6ba | 17,479 | cpp | C++ | libaudio/alsa_utils.cpp | TegraDevelopment/android_device_google_molly-revived | 7ae38d9beebe480588844e88add6400be2cc8a7e | [
"Apache-2.0"
] | 1 | 2020-08-01T19:16:40.000Z | 2020-08-01T19:16:40.000Z | libaudio/alsa_utils.cpp | TegraDevelopment/android_device_google_molly-revived | 7ae38d9beebe480588844e88add6400be2cc8a7e | [
"Apache-2.0"
] | null | null | null | libaudio/alsa_utils.cpp | TegraDevelopment/android_device_google_molly-revived | 7ae38d9beebe480588844e88add6400be2cc8a7e | [
"Apache-2.0"
] | null | null | null | /*
**
** Copyright 2014, 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 appl... | 33.041588 | 100 | 0.595343 | [
"vector"
] |
49c7f59935640314c7a08d221352505276dfbd09 | 14,301 | cpp | C++ | Cbc/Cbc/examples/CbcBranchUser.cpp | fadi-alkhoury/coin-or-cbc-with-cmake | b4a216118d8e773b694b44c5f27cd75a251cc2cb | [
"MIT"
] | null | null | null | Cbc/Cbc/examples/CbcBranchUser.cpp | fadi-alkhoury/coin-or-cbc-with-cmake | b4a216118d8e773b694b44c5f27cd75a251cc2cb | [
"MIT"
] | null | null | null | Cbc/Cbc/examples/CbcBranchUser.cpp | fadi-alkhoury/coin-or-cbc-with-cmake | b4a216118d8e773b694b44c5f27cd75a251cc2cb | [
"MIT"
] | null | null | null | // $Id: CbcBranchUser.cpp 2469 2019-01-06 23:17:46Z unxusr $
// Copyright (C) 2002, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#include <cassert>
#include <cmath>
#include <cfloat>
#include "CoinPragma.... | 31.921875 | 101 | 0.615901 | [
"object",
"model"
] |
49d4327aee8a8068709e88603f6927d8828e30eb | 931 | cpp | C++ | soj/3075.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/3075.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/3075.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <climits>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <deque>
#include <algorithm>
using namespace std;
int n;
char str... | 19 | 51 | 0.487648 | [
"vector"
] |
49d4504402d2de972c0dee10fd3bda242f0e63c7 | 2,708 | cpp | C++ | cgo/msdfgen-cgo.cpp | propellerfactory/msdfgen | bcbf40bf9e4338c15108c0fa8740fafd6bab101c | [
"MIT"
] | null | null | null | cgo/msdfgen-cgo.cpp | propellerfactory/msdfgen | bcbf40bf9e4338c15108c0fa8740fafd6bab101c | [
"MIT"
] | null | null | null | cgo/msdfgen-cgo.cpp | propellerfactory/msdfgen | bcbf40bf9e4338c15108c0fa8740fafd6bab101c | [
"MIT"
] | null | null | null | #include "../msdfgen.h"
#include "../msdfgen-cgo.h"
#define LARGE_VALUE 1e240
using namespace msdfgen;
int bridge_generateMSDFA(const char* shapeDescription, int width, int height, double pxRange,
void* bitmap, struct Metrics *metrics) {
Vector2 frame(width, height);
double edgeThreshold = 1.001;
do... | 34.717949 | 94 | 0.597489 | [
"shape"
] |
49dad7c8c90193c8921b71ec6d72279fa62b995e | 7,830 | cpp | C++ | addons/ofxGuido/lib/guidolib-code/src/lib/GUIDOFactory.cpp | k4rm/AscoGraph | 9038ae785b6f4f144a3ab5c4c5520761c0cd08f2 | [
"MIT"
] | 18 | 2015-01-18T22:34:22.000Z | 2020-09-06T20:30:30.000Z | addons/ofxGuido/lib/guidolib-code/src/lib/GUIDOFactory.cpp | k4rm/AscoGraph | 9038ae785b6f4f144a3ab5c4c5520761c0cd08f2 | [
"MIT"
] | 2 | 2015-08-04T00:07:46.000Z | 2017-05-10T15:53:51.000Z | addons/ofxGuido/lib/guidolib-code/src/lib/GUIDOFactory.cpp | k4rm/AscoGraph | 9038ae785b6f4f144a3ab5c4c5520761c0cd08f2 | [
"MIT"
] | 10 | 2015-01-18T23:46:10.000Z | 2019-08-25T12:10:04.000Z | /*
GUIDO Library
Copyright (C) 2003, 2004 Grame
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Ly... | 31.071429 | 113 | 0.560409 | [
"object"
] |
49db7c5e293f9c75ccf40b4d8f6b57d18a1ec05d | 3,425 | cpp | C++ | CPPExamples/threadExShrPtr.cpp | tpayne/lang-examples | 4aeb71e7c2269f4b056f91159528a5faac249747 | [
"MIT"
] | null | null | null | CPPExamples/threadExShrPtr.cpp | tpayne/lang-examples | 4aeb71e7c2269f4b056f91159528a5faac249747 | [
"MIT"
] | 1 | 2021-12-23T18:24:09.000Z | 2021-12-23T18:24:09.000Z | CPPExamples/threadExShrPtr.cpp | tpayne/lang-examples | 4aeb71e7c2269f4b056f91159528a5faac249747 | [
"MIT"
] | null | null | null | /*
* threadExShrPtr.cpp
*
* Created on: 1 Mar 2017
* Author: alexgray
*/
#include "threadExShrPtr.h"
namespace uniqueExPtr {
// a function consuming a unique_ptr can take it by value or by rvalue reference
std::unique_ptr<D> pass_through(std::unique_ptr<D> p)
{
p->bar();
return p;
}
void useUniqu... | 29.525862 | 86 | 0.582482 | [
"object",
"vector"
] |
49ea34b0ed04cb2d66e1aa1c9188046233319835 | 28,713 | cc | C++ | DetectorModel/DetSurfaceSet.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | DetectorModel/DetSurfaceSet.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | DetectorModel/DetSurfaceSet.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | // ---------------------------------------------------------------------------
// File and Version Information:
// $Id: DetSurfaceSet.cc,v 1.53 2004/12/14 07:10:18 bartoldu Exp $
//
// Description:
// Special form of a DetSet where the elements are arranged roughly around
// a surface.
//
// Copyright Informati... | 30.065969 | 93 | 0.658169 | [
"geometry",
"vector",
"transform"
] |
49ff9b5ab3ac6ef5e6e390ef8d9e4a47dfedd599 | 66,351 | cpp | C++ | Yggdrasil/src/Yggdrasil/RenderEngine/Context.cpp | rtryan98/Yggdrasil | 95dcee7d930298cb44b2706d5ab517bd9d87ee3d | [
"BSD-3-Clause"
] | 13 | 2021-02-25T18:51:52.000Z | 2021-09-30T15:39:08.000Z | Yggdrasil/src/Yggdrasil/RenderEngine/Context.cpp | rtryan98/Yggdrasil | 95dcee7d930298cb44b2706d5ab517bd9d87ee3d | [
"BSD-3-Clause"
] | null | null | null | Yggdrasil/src/Yggdrasil/RenderEngine/Context.cpp | rtryan98/Yggdrasil | 95dcee7d930298cb44b2706d5ab517bd9d87ee3d | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2021 Robert Ryan. See LICENCE.md.
#include "Yggdrasil/pch.h"
#include "Yggdrasil/RenderEngine/Context.h"
#include "Yggdrasil/Common/Util/Logger.h"
#include "Yggdrasil/RenderEngine/Shader/ShaderCompiler.h"
#include "Yggdrasil/Common/Window/Window.h"
#include <sstream>
#include <iomanip>
#include <unordere... | 42.669453 | 182 | 0.673449 | [
"vector",
"3d"
] |
8e64ea432997ee8c4e573e0078e15c18becbef83 | 1,789 | cpp | C++ | src/MotorController.cpp | crownedone/RaspiStepperControl | f90c10dd91a6d2781c9ac75c71ecc9815f499cbd | [
"MIT"
] | null | null | null | src/MotorController.cpp | crownedone/RaspiStepperControl | f90c10dd91a6d2781c9ac75c71ecc9815f499cbd | [
"MIT"
] | null | null | null | src/MotorController.cpp | crownedone/RaspiStepperControl | f90c10dd91a6d2781c9ac75c71ecc9815f499cbd | [
"MIT"
] | null | null | null | #include "MotorController.hpp"
#include <boost/filesystem.hpp>
#include <future>
#include "Focuser.hpp"
#if RASPI == 1
#include <wiringPi.h>
#include "StepperMotor.hpp"
#else
// fake class
class StepperMotor
{
public:
void setGPIOutputs(int, int, int, int) {};
bool isRunning() const
{
... | 20.329545 | 83 | 0.629961 | [
"vector"
] |
8e68d177a7d21fd3e1f10b4ad7ecf60992f77331 | 2,251 | cpp | C++ | Session 2019/Misc/Quick Select.cpp | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 13 | 2019-10-12T14:36:32.000Z | 2021-06-08T04:26:30.000Z | Session 2019/Misc/Quick Select.cpp | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 1 | 2020-02-29T14:02:39.000Z | 2020-02-29T14:02:39.000Z | Session 2019/Misc/Quick Select.cpp | JanaSabuj/Leetcode-solutions | 78d10926b15252a969df598fbf1f9b69b2760b79 | [
"MIT"
] | 3 | 2020-02-08T12:04:28.000Z | 2020-03-17T11:53:00.000Z | /*--------------------------"SABUJ-JANA"------"JADAVPUR UNIVERSITY"--------*/
/*-------------------------------@greenindia-----------------------------------*/
//
// _____ _ _ _
// / ____| | | (_) | |
// | (___ __ _| |__ _ _ _ | | __ _ _ __ __ _
// \___ \ / _... | 23.206186 | 126 | 0.451355 | [
"vector"
] |
8e7dc8abd0fb6371fb0de05b45aa0f1a6c7deed0 | 5,434 | cpp | C++ | src/Generic/parse/ParserTrainer/HeadlessParseNode.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | 1 | 2022-03-24T19:57:00.000Z | 2022-03-24T19:57:00.000Z | src/Generic/parse/ParserTrainer/HeadlessParseNode.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | null | null | null | src/Generic/parse/ParserTrainer/HeadlessParseNode.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | null | null | null | // Copyright 2008 by BBN Technologies Corp.
// All Rights Reserved.
#include "Generic/common/leak_detection.h"
#include <cstddef>
#include <string>
#include "Generic/parse/ParserTrainer/HeadlessParseNode.h"
#include "Generic/common/Symbol.h"
#include "Generic/common/UTF8Token.h"
#include "Generic/trainers/H... | 26 | 86 | 0.656238 | [
"object"
] |
8e7f377368d51a67b32e4b5dcfc26eecb4337f85 | 4,020 | cpp | C++ | third_party_builtin/tuvok/tuvok/Basics/MC.cpp | ahota/visit_ospray | d80b2e18ff5654d04bfb56ae4d6f42e45f87c9b9 | [
"BSD-3-Clause"
] | null | null | null | third_party_builtin/tuvok/tuvok/Basics/MC.cpp | ahota/visit_ospray | d80b2e18ff5654d04bfb56ae4d6f42e45f87c9b9 | [
"BSD-3-Clause"
] | null | null | null | third_party_builtin/tuvok/tuvok/Basics/MC.cpp | ahota/visit_ospray | d80b2e18ff5654d04bfb56ae4d6f42e45f87c9b9 | [
"BSD-3-Clause"
] | null | null | null | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2008 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (... | 30.454545 | 98 | 0.704975 | [
"transform"
] |
8e816b6d8eb4c7d2e3e9f20ae1db9b5d9a8789f3 | 7,200 | cpp | C++ | Sandbox/src/SandboxApp.cpp | DaveKobrin/Hazel_DK | c04d8b179a5cd0a47c23b6b612623c645cd5e1f8 | [
"Apache-2.0"
] | null | null | null | Sandbox/src/SandboxApp.cpp | DaveKobrin/Hazel_DK | c04d8b179a5cd0a47c23b6b612623c645cd5e1f8 | [
"Apache-2.0"
] | null | null | null | Sandbox/src/SandboxApp.cpp | DaveKobrin/Hazel_DK | c04d8b179a5cd0a47c23b6b612623c645cd5e1f8 | [
"Apache-2.0"
] | null | null | null | //A generic Hazel application for testing while developing the Hazel Engine
#include <Hazel.h>
#include "ImGui/imgui.h"
#include "Hazel/Platform/OpenGL/OpenGLShader.h"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
class TestLayer : public Hazel::Layer
{
public:
TestLayer()
: Layer("test ... | 25.714286 | 110 | 0.671944 | [
"transform"
] |
8e865ca5bfbf42e607ed526ca6cb1c3a77b06468 | 10,306 | cpp | C++ | PSSPANN/PSSP-gui/PredictionMainFrame.cpp | LuezhenYuan/BioinformaticsTools | 2f3ace60263fee3c570eb6d806a8e36702182fad | [
"MIT"
] | 3 | 2016-12-07T11:32:03.000Z | 2017-03-17T09:56:32.000Z | PSSPANN/PSSP-gui/PredictionMainFrame.cpp | LuezhenYuan/BioinformaticsTools | 2f3ace60263fee3c570eb6d806a8e36702182fad | [
"MIT"
] | null | null | null | PSSPANN/PSSP-gui/PredictionMainFrame.cpp | LuezhenYuan/BioinformaticsTools | 2f3ace60263fee3c570eb6d806a8e36702182fad | [
"MIT"
] | null | null | null | #include "PredictionMainFrame.h"
#include <boost/tokenizer.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/classification.hpp> // boost::is_any_of
#include "try.h"
#include "PSSPANNdata.h"
#include "ANNCore.h"
#include "GUI_action.h"
#include <boost/thread.hpp>
//(*InternalHeaders(Pred... | 48.158879 | 204 | 0.709975 | [
"vector"
] |
8e87a34cca071322be6ae5ca470797f26f79ed59 | 7,641 | cpp | C++ | src/hdl_graph_slam/building_tools.cpp | Ronicasss/hdl_graph_slam | 75370587cb16278d36dd524bcc13d51bf9d7603d | [
"BSD-2-Clause"
] | null | null | null | src/hdl_graph_slam/building_tools.cpp | Ronicasss/hdl_graph_slam | 75370587cb16278d36dd524bcc13d51bf9d7603d | [
"BSD-2-Clause"
] | null | null | null | src/hdl_graph_slam/building_tools.cpp | Ronicasss/hdl_graph_slam | 75370587cb16278d36dd524bcc13d51bf9d7603d | [
"BSD-2-Clause"
] | null | null | null | #include "hdl_graph_slam/building_tools.hpp"
//DEBUG = 1 -> print debug lines
//DEBUG different from 1 -> print nothing
#define DEBUG 0
namespace hdl_graph_slam {
BuildingTools::BuildingTools(void) {
}
std::vector<Building> BuildingTools::parseBuildings(std::string result, Eigen::Vector3d zero_utm) {
std::stri... | 35.050459 | 275 | 0.560529 | [
"geometry",
"vector"
] |
8e8dac0673f5c8cdc686a3db2726399b4cc5ec7b | 12,333 | cpp | C++ | MMOCoreORB/src/server/zone/objects/player/sessions/vendor/CreateVendorSessionImplementation.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/src/server/zone/objects/player/sessions/vendor/CreateVendorSessionImplementation.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/src/server/zone/objects/player/sessions/vendor/CreateVendorSessionImplementation.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | /*
* CreateVendorSessionImplementation.cpp
*
* Created on: May 20, 2012
* Author: Kyle
*/
#include "server/zone/objects/player/sessions/vendor/CreateVendorSession.h"
#include "server/zone/ZoneServer.h"
#include "server/zone/ZoneProcessServer.h"
#include "server/zone/managers/vendor/VendorManager.h"
#include... | 32.800532 | 163 | 0.742804 | [
"vector"
] |
8e91f5d9fc4d9ff2bd12ec64b31e35bb7c477397 | 1,077 | cpp | C++ | Courses/001 - Algorithms Toolbox/week3_greedy_algorithms/2_maximum_value_of_the_loot/fractional_knapsack.cpp | aKhfagy/Data-Structures-and-Algorithms-Specialization | 3f5582f10c55e108add47292fa40e0eda6910e2d | [
"CC0-1.0"
] | 1 | 2021-01-25T09:56:15.000Z | 2021-01-25T09:56:15.000Z | Courses/001 - Algorithms Toolbox/week3_greedy_algorithms/2_maximum_value_of_the_loot/fractional_knapsack.cpp | aKhfagy/data-structures-algorithms | 3f5582f10c55e108add47292fa40e0eda6910e2d | [
"CC0-1.0"
] | null | null | null | Courses/001 - Algorithms Toolbox/week3_greedy_algorithms/2_maximum_value_of_the_loot/fractional_knapsack.cpp | aKhfagy/data-structures-algorithms | 3f5582f10c55e108add47292fa40e0eda6910e2d | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
using std::vector;
double get_optimal_value(int capacity, vector<int> weights, vector<int> values) {
double value = 0.0;
int n = weights.size();
for(int idx = 0; idx < n; ++idx) {
if(capacity == 0)
return... | 18.894737 | 81 | 0.558032 | [
"vector"
] |
8e971cd17d2e1e54b912d75c18fd0ac6e79ca104 | 6,738 | cpp | C++ | Eleusis_sln/Eleusis_UITest/test_windows/SelectEditTestWindow.cpp | bognikol/Eleusis | ee518ede31893689eb6d3c5539e0bd757aeb0294 | [
"MIT"
] | 4 | 2019-05-31T19:55:23.000Z | 2020-10-27T10:00:32.000Z | Eleusis_sln/Eleusis_UITest/test_windows/SelectEditTestWindow.cpp | bognikol/Eleusis | ee518ede31893689eb6d3c5539e0bd757aeb0294 | [
"MIT"
] | null | null | null | Eleusis_sln/Eleusis_UITest/test_windows/SelectEditTestWindow.cpp | bognikol/Eleusis | ee518ede31893689eb6d3c5539e0bd757aeb0294 | [
"MIT"
] | 3 | 2019-04-29T14:09:38.000Z | 2020-10-27T10:00:33.000Z |
#include "SelectEditTestWindow.h"
#include <sstream>
using namespace Eleusis;
using namespace Eleusis::Test;
using namespace std;
SelectEditTestWindow::SelectEditTestWindow()
{
Eleusis::Rectangle* rect = new Eleusis::Rectangle(2000, 1200);
rect->fillColor_set(Colors::White);
insertChild(rect);
/*... | 39.403509 | 917 | 0.663253 | [
"vector"
] |
8e9e7de354b16d3b566d02d86c1ceaf6f32c5569 | 2,554 | cpp | C++ | D3D9_Renderer/D3D9_Renderer/source/renderer/Mesh.cpp | codenameone-akshat/D3D9_Renderer | 9925a827e45f987639f144aebd53974b27ddfb18 | [
"MIT"
] | null | null | null | D3D9_Renderer/D3D9_Renderer/source/renderer/Mesh.cpp | codenameone-akshat/D3D9_Renderer | 9925a827e45f987639f144aebd53974b27ddfb18 | [
"MIT"
] | null | null | null | D3D9_Renderer/D3D9_Renderer/source/renderer/Mesh.cpp | codenameone-akshat/D3D9_Renderer | 9925a827e45f987639f144aebd53974b27ddfb18 | [
"MIT"
] | null | null | null | #include <cassert>
#include "Mesh.h"
namespace renderer
{
Mesh::Mesh()
:m_numVertices(0),
m_numNormals(0),
m_numTexcoords(0),
m_numIndices(0),
m_numTris(0),
m_vertices(),
m_normals(),
m_texcoords(),
m_indices(),
m_name(),
m_materialIndex(0)
{
}
Mesh::~Mes... | 22.403509 | 106 | 0.657792 | [
"mesh"
] |
8ea2f5f491588ea8e421e65ce79527a1c68b0124 | 4,492 | cpp | C++ | src/editor/properties/PropertySheet.cpp | CounterPillow/tungsten | 2428201c44f2910d1984bd40f80b0c275848e9cf | [
"Apache-2.0",
"Unlicense"
] | 1 | 2017-11-09T18:53:56.000Z | 2017-11-09T18:53:56.000Z | src/editor/properties/PropertySheet.cpp | CounterPillow/tungsten | 2428201c44f2910d1984bd40f80b0c275848e9cf | [
"Apache-2.0",
"Unlicense"
] | null | null | null | src/editor/properties/PropertySheet.cpp | CounterPillow/tungsten | 2428201c44f2910d1984bd40f80b0c275848e9cf | [
"Apache-2.0",
"Unlicense"
] | null | null | null | #include "PropertySheet.hpp"
#include "TextureProperty.hpp"
#include "MediumProperty.hpp"
#include "VectorProperty.hpp"
#include "StringProperty.hpp"
#include "FloatProperty.hpp"
#include "PathProperty.hpp"
#include "ListProperty.hpp"
#include "BsdfProperty.hpp"
#include "BoolProperty.hpp"
#include "IntProperty.hpp"
#... | 38.393162 | 134 | 0.717943 | [
"vector"
] |
8ea8bea210bed1d6c398f5effea701a1a506e118 | 3,491 | cpp | C++ | source/main.cpp | MatthewScholefield/sdl-renderer-demo | ee486ae7369e31af16c4995774dceedc9f7f0df8 | [
"MIT"
] | 1 | 2015-10-24T00:36:40.000Z | 2015-10-24T00:36:40.000Z | source/main.cpp | MatthewScholefield/sdl-renderer-demo | ee486ae7369e31af16c4995774dceedc9f7f0df8 | [
"MIT"
] | null | null | null | source/main.cpp | MatthewScholefield/sdl-renderer-demo | ee486ae7369e31af16c4995774dceedc9f7f0df8 | [
"MIT"
] | null | null | null | #include <vector>
#include <SDL.h>
template<typename T> inline const T abs(T const & x)
{
return ( x < 0) ? -x : x;
}
const int SIZE_X = 800, SIZE_Y = 600;
const int MAX_PARTICLES = 200;
class Particle
{
enum Color
{
RED,
GREEN,
BLUE
};
enum Direction
{
LEFT,
RIGHT,
UP,
DOWN
};
int getRed(Col... | 17.455 | 107 | 0.604411 | [
"vector"
] |
8eb76a4330c4b1498138f8e2ea5d8c5d2310afb8 | 10,469 | hpp | C++ | backend/V8/V8Engine.hpp | GerHobbelt/ScriptX | 337913406a6ca0940a1f0d91841f9b786939925d | [
"BSL-1.0"
] | 330 | 2021-03-23T06:25:20.000Z | 2022-03-27T01:42:29.000Z | backend/V8/V8Engine.hpp | GerHobbelt/ScriptX | 337913406a6ca0940a1f0d91841f9b786939925d | [
"BSL-1.0"
] | 20 | 2021-03-23T13:16:06.000Z | 2022-03-19T16:04:15.000Z | backend/V8/V8Engine.hpp | GerHobbelt/ScriptX | 337913406a6ca0940a1f0d91841f9b786939925d | [
"BSL-1.0"
] | 49 | 2021-03-23T12:58:03.000Z | 2022-03-09T12:33:46.000Z | /*
* Tencent is pleased to support the open source community by making ScriptX available.
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | 38.774074 | 100 | 0.65288 | [
"object"
] |
8eb79644c03dd7c508a1bf8245d6cc614cff5aed | 3,785 | cpp | C++ | examples/fatfs_reader/fatfs_reader.cpp | bli19/stm32plus | fdf0b74bd8df95c4b0085e1e03b461ea5ca48d86 | [
"BSD-3-Clause"
] | 1 | 2015-10-31T09:01:16.000Z | 2015-10-31T09:01:16.000Z | examples/fatfs_reader/fatfs_reader.cpp | bli19/stm32plus | fdf0b74bd8df95c4b0085e1e03b461ea5ca48d86 | [
"BSD-3-Clause"
] | null | null | null | examples/fatfs_reader/fatfs_reader.cpp | bli19/stm32plus | fdf0b74bd8df95c4b0085e1e03b461ea5ca48d86 | [
"BSD-3-Clause"
] | null | null | null | /*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012,2013 Andy Brown <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
#include "config/stm32plus.h"
#include "config/nvic.h"
#include "config/sdcard.h"
#include "config/filesystem.h"
#include "config/usart.h"
#inc... | 19.816754 | 90 | 0.633818 | [
"object"
] |
8ec24282d2d80f503f4e613b703c18f9d88f0862 | 6,159 | cpp | C++ | src/Apps/19CSSkinning/main.cpp | CU-Production/FlyCube-Demos | 2763720818499bc9244eb4b16e60e647a5c88827 | [
"MIT"
] | 8 | 2021-03-17T19:25:12.000Z | 2022-02-05T02:08:21.000Z | src/Apps/19CSSkinning/main.cpp | CU-Production/FlyCube-Demos | 2763720818499bc9244eb4b16e60e647a5c88827 | [
"MIT"
] | null | null | null | src/Apps/19CSSkinning/main.cpp | CU-Production/FlyCube-Demos | 2763720818499bc9244eb4b16e60e647a5c88827 | [
"MIT"
] | 1 | 2021-09-11T06:57:43.000Z | 2021-09-11T06:57:43.000Z | #include "AppBox/AppBox.h"
#include "AppBox/ArgsParser.h"
#include "RenderDevice/RenderDevice.h"
#include "Geometry/Geometry.h"
#include "Camera/Camera.h"
#include <glm/gtx/transform.hpp>
#include "ProgramRef/Shader_PS.h"
#include "ProgramRef/Shader_VS.h"
#include "ProgramRef/Skinning_CS.h"
int main(int argc, char* a... | 49.669355 | 139 | 0.691021 | [
"mesh",
"geometry",
"vector",
"model",
"transform"
] |
8ec39aaf75f57d11fee5399b8d8e9f15636b4a3c | 408 | cpp | C++ | cpp-reference/transform.cpp | frehberg/rust-wasm-strip | e71b4795aec255ed62837e68ec969d88f0e6e3cb | [
"Apache-2.0"
] | 4 | 2018-02-06T19:08:24.000Z | 2019-10-04T13:33:03.000Z | cpp-reference/transform.cpp | frehberg/rust-wasm-strip | e71b4795aec255ed62837e68ec969d88f0e6e3cb | [
"Apache-2.0"
] | null | null | null | cpp-reference/transform.cpp | frehberg/rust-wasm-strip | e71b4795aec255ed62837e68ec969d88f0e6e3cb | [
"Apache-2.0"
] | null | null | null | /// @file transform.cpp
#include <emscripten.h> // macro EMSCRIPTEN_KEEPALIVE
#include <stdint.h>
#include <numeric>
extern "C" {
/// @return 0 on success, otherwise error code
int32_t EMSCRIPTEN_KEEPALIVE transform(const int32_t arlen, uint8_t *ar) {
const char IVAL = 'i';
const char OVAL = 'y';
for (int i=0... | 29.142857 | 75 | 0.654412 | [
"transform"
] |
8ec7ac9429c195692331560c3ea663cedbb38ab6 | 18,072 | cpp | C++ | compiler/src/iree/compiler/Dialect/Flow/Transforms/DumpDispatchGraph.cpp | anthonycanino/iree | be167a62f8872597eac1b72e26b4c62e291bfd5c | [
"Apache-2.0"
] | null | null | null | compiler/src/iree/compiler/Dialect/Flow/Transforms/DumpDispatchGraph.cpp | anthonycanino/iree | be167a62f8872597eac1b72e26b4c62e291bfd5c | [
"Apache-2.0"
] | null | null | null | compiler/src/iree/compiler/Dialect/Flow/Transforms/DumpDispatchGraph.cpp | anthonycanino/iree | be167a62f8872597eac1b72e26b4c62e291bfd5c | [
"Apache-2.0"
] | null | null | null | // Copyright 2022 The IREE Authors
//
// Licensed under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//===------------------- DumpDispatchGraph.cpp ----------------------------===//
//
// Generate a... | 31.212435 | 80 | 0.61183 | [
"shape",
"vector",
"solid"
] |
8ec98f181564ff7adc1835ee7c3ba6dd916257ca | 4,272 | cpp | C++ | openrave/src/cppexamples/ormultithreadedplanning.cpp | jdsika/TUM_HOly | a2ac55fa1751a3a8038cf61d29b95005f36d6264 | [
"MIT"
] | 2 | 2015-11-13T16:40:57.000Z | 2017-09-15T15:37:19.000Z | openrave/src/cppexamples/ormultithreadedplanning.cpp | jdsika/holy | a2ac55fa1751a3a8038cf61d29b95005f36d6264 | [
"MIT"
] | 1 | 2016-06-13T01:29:51.000Z | 2016-06-14T00:38:27.000Z | openrave/src/cppexamples/ormultithreadedplanning.cpp | jdsika/holy | a2ac55fa1751a3a8038cf61d29b95005f36d6264 | [
"MIT"
] | null | null | null | /** \example ormultithreadedplanning.cpp
\author Rosen Diankov
Shows how to execute different planners simultaneously on different threads using environment cloning.
<b>Full Example Code:</b>
*/
#include <openrave-core.h>
#include <vector>
#include <sstream>
#include <boost/thread/thread.hpp>
#include <b... | 35.016393 | 141 | 0.632491 | [
"vector",
"transform"
] |
8ecd72179b07d37bd62cbd5ace065c9ee036a973 | 2,793 | cpp | C++ | benchmarks/source/copy_n.cpp | miscco/itsy_bitsy | 69b997e123fc0f6d5a2665555fd1e9aa467db277 | [
"BSL-1.0"
] | 92 | 2019-06-25T15:36:49.000Z | 2022-02-17T05:23:47.000Z | benchmarks/source/copy_n.cpp | miscco/itsy_bitsy | 69b997e123fc0f6d5a2665555fd1e9aa467db277 | [
"BSL-1.0"
] | 7 | 2020-01-26T12:58:37.000Z | 2021-08-03T00:03:11.000Z | benchmarks/source/copy_n.cpp | miscco/itsy_bitsy | 69b997e123fc0f6d5a2665555fd1e9aa467db277 | [
"BSL-1.0"
] | 11 | 2019-08-27T21:28:39.000Z | 2021-12-09T23:32:09.000Z | #include <benchmark/benchmark.h>
#include <itsy/bitsy.hpp>
#include <bitset>
#include <vector>
#include <array>
#include <cstdlib>
#include <climits>
#include <limits>
#include <algorithm>
static void
sized_copy_by_hand(benchmark::State& state)
{
constexpr std::size_t size_bits = sizeof(std::size_t) ... | 20.688889 | 82 | 0.605084 | [
"vector"
] |
8ed0ca1710bb7e7ffefd0e014390c0e0923dbfa5 | 1,557 | cpp | C++ | src/transform.cpp | amanshenoy/mesh-viewer | 915b722bb678b251d45c88ae63c3f52a81088aad | [
"MIT"
] | 11 | 2021-08-09T07:00:06.000Z | 2022-02-23T13:58:55.000Z | src/transform.cpp | amanshenoy/object-viewer | 915b722bb678b251d45c88ae63c3f52a81088aad | [
"MIT"
] | null | null | null | src/transform.cpp | amanshenoy/object-viewer | 915b722bb678b251d45c88ae63c3f52a81088aad | [
"MIT"
] | 3 | 2021-12-10T08:24:46.000Z | 2022-02-11T07:48:35.000Z | #include <iostream>
#include "transform.h"
namespace gl {
mat3 Transform::rotate(const float degrees, const vec3& axis){
const float radian = degrees * (3.14159265f / 180.0f);
glm::mat3 dot = glm::mat3(
axis.x * axis.x, axis.x * axis.y, axis.x * axis.z,
axis.x * axis.y, axis.y * axis.y, axis.y * axis.z,
axi... | 25.112903 | 78 | 0.612717 | [
"transform"
] |
8ed574b3deb3e06fe7ebb17bbb8b3965036cbe6d | 698 | cc | C++ | Cpp_Primer/5rd/0310/stack/adapter_iterator.cc | honeytavis/cpp | 232cb0add3f5b481b62a9a23d086514e2c425279 | [
"MIT"
] | null | null | null | Cpp_Primer/5rd/0310/stack/adapter_iterator.cc | honeytavis/cpp | 232cb0add3f5b481b62a9a23d086514e2c425279 | [
"MIT"
] | null | null | null | Cpp_Primer/5rd/0310/stack/adapter_iterator.cc | honeytavis/cpp | 232cb0add3f5b481b62a9a23d086514e2c425279 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iterator>
#include <vector>
#include <list>
int main()
{
std::vector<int> myVec = {0, 1, 2};
std::list<int> myList;
copy(myVec.begin(),
myVec.end(),
std::back_insert_iterator<std::list<int> >(myList));
for (auto i : myList) {
std::cout << i << ' ';
}
std::cout << '\n'... | 18.864865 | 69 | 0.550143 | [
"vector"
] |
8ee4aea2f3e418a9fac3925ed182790fb384ce89 | 2,955 | cpp | C++ | extra/news/src/xk/external/udpipe/udpipe/morphodita/tagset_converter/pdt_to_conll2009_tagset_converter.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | extra/news/src/xk/external/udpipe/udpipe/morphodita/tagset_converter/pdt_to_conll2009_tagset_converter.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | extra/news/src/xk/external/udpipe/udpipe/morphodita/tagset_converter/pdt_to_conll2009_tagset_converter.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | // This file is part of MorphoDiTa <http://github.com/ufal/morphodita/>.
//
// Copyright 2015 Institute of Formal and Applied Linguistics, Faculty of
// Mathematics and Physics, Charles University in Prague, Czech Republic.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If... | 33.202247 | 134 | 0.699492 | [
"vector"
] |
8ee72c7ece87e62347b5d7fff91b36ae5aa4e483 | 10,221 | cpp | C++ | bindings/ruby/sfml-graphics/graphics/Font.cpp | yoyonel/sflm2-custom | 1ebeabe7cfe6605590b341f7b415b24bed1f50d1 | [
"Zlib"
] | null | null | null | bindings/ruby/sfml-graphics/graphics/Font.cpp | yoyonel/sflm2-custom | 1ebeabe7cfe6605590b341f7b415b24bed1f50d1 | [
"Zlib"
] | null | null | null | bindings/ruby/sfml-graphics/graphics/Font.cpp | yoyonel/sflm2-custom | 1ebeabe7cfe6605590b341f7b415b24bed1f50d1 | [
"Zlib"
] | null | null | null | /* rbSFML - Copyright (c) 2010 Henrik Valter Vogelius Hansson - groogy@groogy.se
* This software is provided 'as-is', without any express or
* implied warranty. In no event will the authors be held
* liable for any damages arising from the use of this software.
*
* Permission is granted to anyone to use this softw... | 38.424812 | 121 | 0.719988 | [
"render",
"object"
] |
8ee734688b74da87d0a71f6235aa6ba18ff8502b | 1,985 | cxx | C++ | panda/src/mathutil/finiteBoundingVolume.cxx | cmarshall108/panda3d-python3 | 8bea2c0c120b03ec1c9fd179701fdeb7510bb97b | [
"PHP-3.0",
"PHP-3.01"
] | null | null | null | panda/src/mathutil/finiteBoundingVolume.cxx | cmarshall108/panda3d-python3 | 8bea2c0c120b03ec1c9fd179701fdeb7510bb97b | [
"PHP-3.0",
"PHP-3.01"
] | null | null | null | panda/src/mathutil/finiteBoundingVolume.cxx | cmarshall108/panda3d-python3 | 8bea2c0c120b03ec1c9fd179701fdeb7510bb97b | [
"PHP-3.0",
"PHP-3.01"
] | null | null | null | /**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file finiteBoundingVolume.cx... | 26.824324 | 78 | 0.714861 | [
"object",
"shape",
"3d"
] |
8ee93436dc9fd109e86b4052cc0e7a96fa229bf7 | 26,522 | cxx | C++ | main/dbaccess/source/core/dataaccess/definitioncontainer.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/dbaccess/source/core/dataaccess/definitioncontainer.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/dbaccess/source/core/dataaccess/definitioncontainer.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 35.6 | 201 | 0.615187 | [
"object",
"vector"
] |
8eefc66ad6db17d276ea1456dbec3ba97d0176b1 | 2,105 | cpp | C++ | lc501_modeInBST/findmode.cpp | Hacky-DH/codingsea | 84247cb5a7dbdb269256f9305e057b1d931547b0 | [
"MIT"
] | 1 | 2018-08-12T01:29:40.000Z | 2018-08-12T01:29:40.000Z | lc501_modeInBST/findmode.cpp | Hacky-DH/codingsea | 84247cb5a7dbdb269256f9305e057b1d931547b0 | [
"MIT"
] | null | null | null | lc501_modeInBST/findmode.cpp | Hacky-DH/codingsea | 84247cb5a7dbdb269256f9305e057b1d931547b0 | [
"MIT"
] | null | null | null | /*******************************************************************
Copyright (c) 2020 Hacky DH
This file is distributed under MIT License.
See the LICENSE file for details.
*******************************************************************/
/*
501. Find Mode in Binary Search Tree
Given a binary search tree (BST) w... | 25.670732 | 80 | 0.582423 | [
"vector"
] |
8eff5ff954addc45fa4c8d343cea993390a26f1e | 5,422 | cpp | C++ | SquareRunX/SquareRunX/Source/Game/States/Menus/LeaderboardMenu.cpp | BKhalil85/SquareRun-X | fed69b295a9594f3712df363157eb5e7587d4dec | [
"Apache-2.0"
] | 2 | 2021-11-22T10:17:24.000Z | 2022-01-15T00:04:14.000Z | SquareRunX/SquareRunX/Source/Game/States/Menus/LeaderboardMenu.cpp | BAKAJ77/SquareRun-X | fed69b295a9594f3712df363157eb5e7587d4dec | [
"Apache-2.0"
] | null | null | null | SquareRunX/SquareRunX/Source/Game/States/Menus/LeaderboardMenu.cpp | BAKAJ77/SquareRun-X | fed69b295a9594f3712df363157eb5e7587d4dec | [
"Apache-2.0"
] | null | null | null | #include "LeaderboardMenu.h"
#include "MainMenu.h"
#include "Game/States/Other/ResourceLoading.h"
#include "Game/Utils/TransitionHandler.h"
namespace
{
constexpr uint8_t LEADERBOARD_MAX = 3;
}
void LeaderboardMenu::InitState()
{
// Get the fonts needed
this->ArialRoundedFont = ResourceLoading::GetGameState()->Get... | 33.263804 | 125 | 0.710623 | [
"render"
] |
f102b5f04952a450ce88b68542e26986463e09d6 | 2,506 | cpp | C++ | unit_test/kbase/test_console.cpp | raine0524/base_platform | 8d2cee59e53660f3da5a60fe35e2254cc05fdee4 | [
"WTFPL"
] | 6 | 2018-05-04T06:31:33.000Z | 2020-04-01T01:36:28.000Z | unit_test/kbase/test_console.cpp | raine0524/kbase | 8d2cee59e53660f3da5a60fe35e2254cc05fdee4 | [
"WTFPL"
] | null | null | null | unit_test/kbase/test_console.cpp | raine0524/kbase | 8d2cee59e53660f3da5a60fe35e2254cc05fdee4 | [
"WTFPL"
] | 1 | 2019-11-16T16:03:54.000Z | 2019-11-16T16:03:54.000Z | #include "stdafx.h"
class console_helper : public crx::console
{
public:
bool init(int argc, char **argv) override { return true; }
void destroy() override {}
};
class ConsoleTest : public MockFileSystem
{
public:
void cmd_helper_adder(std::vector<std::string>& args);
void SetUp() override
{
... | 30.560976 | 105 | 0.658819 | [
"vector"
] |
f10c49801d64d9cb631541eee1f04321394d58c4 | 4,112 | cpp | C++ | enduser/netmeeting/ulsldap/splprot.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | enduser/netmeeting/ulsldap/splprot.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | enduser/netmeeting/ulsldap/splprot.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /* ----------------------------------------------------------------------
Module: ULS.DLL (Service Provider)
File: splprot.cpp
Content: This file contains the local protocol object.
History:
10/15/96 Chu, Lon-Chan [lonchanc]
Created.
Copyright (c) Microsoft Corporation 1996-1997
-----------... | 21.087179 | 89 | 0.643969 | [
"object"
] |
f10dc065e567e087f65e2822f82aa869cd283f0a | 5,659 | cc | C++ | largest-rectangle-in-histogram.cc | sonald/leetcode | 3c34e2779a736acc880876f4244f1becd7b199ed | [
"MIT"
] | null | null | null | largest-rectangle-in-histogram.cc | sonald/leetcode | 3c34e2779a736acc880876f4244f1becd7b199ed | [
"MIT"
] | null | null | null | largest-rectangle-in-histogram.cc | sonald/leetcode | 3c34e2779a736acc880876f4244f1becd7b199ed | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cmath>
#include <random>
#include <set>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <queue>
#include <algorithm>
#include <cmath>
using namespace std;
template<class T, class S>
ostream& operator<<(ostream& os, const unordered_map<T, S>& v)... | 26.693396 | 102 | 0.458738 | [
"vector"
] |
47de0fde59f1222c1676d406ef1f27681df62ff3 | 41,631 | tpp | C++ | core/src/specialized_solver/multidomain_solver/multidomain_with_fat_solver.tpp | maierbn/opendihu | 577650e2f6b36a7306766b0f4176f8124458cbf0 | [
"MIT"
] | 17 | 2018-11-25T19:29:34.000Z | 2021-09-20T04:46:22.000Z | core/src/specialized_solver/multidomain_solver/multidomain_with_fat_solver.tpp | maierbn/opendihu | 577650e2f6b36a7306766b0f4176f8124458cbf0 | [
"MIT"
] | 1 | 2020-11-12T15:15:58.000Z | 2020-12-29T15:29:24.000Z | core/src/specialized_solver/multidomain_solver/multidomain_with_fat_solver.tpp | maierbn/opendihu | 577650e2f6b36a7306766b0f4176f8124458cbf0 | [
"MIT"
] | 4 | 2018-10-17T12:18:10.000Z | 2021-05-28T13:24:20.000Z | #include "specialized_solver/multidomain_solver/multidomain_with_fat_solver.h"
#include <Python.h> // has to be the first included header
namespace TimeSteppingScheme
{
template<typename FiniteElementMethodPotentialFlow,typename FiniteElementMethodDiffusionMuscle,typename FiniteElementMethodDiffusionFat>
Multidomai... | 47.523973 | 272 | 0.721914 | [
"mesh",
"object",
"vector",
"transform"
] |
47e506afa6565cf3e3e1e5fcb585b064c3249dd6 | 142 | hpp | C++ | include/usagi/geometry/size.hpp | SachiSakurane/usagi | 952a07d87ead0c7b5839648d0bde54213effde09 | [
"BSL-1.0"
] | 1 | 2021-07-24T17:45:16.000Z | 2021-07-24T17:45:16.000Z | include/usagi/geometry/size.hpp | SachiSakurane/usagi | 952a07d87ead0c7b5839648d0bde54213effde09 | [
"BSL-1.0"
] | 11 | 2021-11-09T06:38:47.000Z | 2021-11-27T15:56:23.000Z | include/usagi/geometry/size.hpp | SachiSakurane/usagi | 952a07d87ead0c7b5839648d0bde54213effde09 | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <usagi/geometry/size/function.hpp>
#include <usagi/geometry/size/operator.hpp>
#include <usagi/geometry/size/size.hpp>
| 23.666667 | 43 | 0.78169 | [
"geometry"
] |
47e53bef97274727911dfe87f98b8b0e7006674e | 933 | cpp | C++ | books/C++_advanced_programming/code/Chapter16/testVector_4.cpp | liangjisheng/C-Cpp | 8b33ba1f43580a7bdded8bb4ce3d92983ccedb81 | [
"MIT"
] | 5 | 2019-09-17T09:12:15.000Z | 2021-05-29T10:54:39.000Z | STL/vector/testVector_4.cpp | liangjisheng/C-Cpp | 8b33ba1f43580a7bdded8bb4ce3d92983ccedb81 | [
"MIT"
] | null | null | null | STL/vector/testVector_4.cpp | liangjisheng/C-Cpp | 8b33ba1f43580a7bdded8bb4ce3d92983ccedb81 | [
"MIT"
] | 2 | 2021-07-26T06:36:12.000Z | 2022-01-23T15:20:30.000Z | #include <iostream>
#include <vector>
using namespace std;
void printVector(const vector<int>& src);
int main()
{
vector<int> vectorOne = {1,2,3,5};
vector<int> vectorTwo;
// forget to add 4. Insert it in the correct place
vectorOne.insert(vectorOne.cbegin() + 3, 4);
// add element 6 through 10 ... | 20.733333 | 58 | 0.620579 | [
"vector"
] |
47ebc5c3f8a92689d87975ce431a2123f1dbc35d | 544 | cc | C++ | dev/g++/projects/embedded/security/src/ecdsa_signature.cc | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | null | null | null | dev/g++/projects/embedded/security/src/ecdsa_signature.cc | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | null | null | null | dev/g++/projects/embedded/security/src/ecdsa_signature.cc | YannGarcia/repo | 0f3de24c71d942c752ada03c10861e83853fdf71 | [
"MIT"
] | 1 | 2017-01-27T12:53:50.000Z | 2017-01-27T12:53:50.000Z | #include "ecdsa_signature.hh"
namespace security {
ecdsa_signature::ecdsa_signature(const keys_pair& p_keys) {
}
ecdsa_signature::~ecdsa_signature() {
}
int ecdsa_signature::sign(const std::vector<uint8_t> p_message, std::vector<uint8_t> p_signature) {
return -1;
}
bool ecdsa_signature::ver... | 21.76 | 115 | 0.698529 | [
"vector"
] |
47eeaa428aea190a12633f564767a322064e314b | 4,690 | cpp | C++ | src/kot_tonestack.cpp | transmogrifox/transmogriFX_bela | 1b8fae86d1253fcd062053c44032001421609f04 | [
"Unlicense"
] | 27 | 2018-02-17T17:36:02.000Z | 2022-03-31T17:54:10.000Z | src/kot_tonestack.cpp | transmogrifox/transmogriFX_bela | 1b8fae86d1253fcd062053c44032001421609f04 | [
"Unlicense"
] | 8 | 2020-10-28T03:39:42.000Z | 2020-11-06T17:05:38.000Z | src/kot_tonestack.cpp | rhaleblian/transmogriFX_bela | 1b8fae86d1253fcd062053c44032001421609f04 | [
"Unlicense"
] | 9 | 2019-08-08T14:40:49.000Z | 2022-01-24T02:36:06.000Z | //
// KOT style tonestack
//
//#include <stdio.h>
#include "kot_tonestack.h"
void kotstack_compute_filter_coeffs(kot_stack* ks)
{
// Local variables to make following formulas easier
// Tone pot ratios
float apos = ks->tone_pot_pos;
float bpos = 1.0 - apos; // Alternate pot leg resistance ratio
//... | 28.083832 | 133 | 0.541578 | [
"transform"
] |
47f602b0f25ad25f5cd305d1e491c7cb46f06357 | 6,336 | cpp | C++ | include/taichi/visual/scene.cpp | pawopawo/taichi | d3f76813d36e24b9696d02961c04f74e4a3aa95b | [
"MIT"
] | 1 | 2020-07-02T16:18:12.000Z | 2020-07-02T16:18:12.000Z | include/taichi/visual/scene.cpp | pawopawo/taichi | d3f76813d36e24b9696d02961c04f74e4a3aa95b | [
"MIT"
] | null | null | null | include/taichi/visual/scene.cpp | pawopawo/taichi | d3f76813d36e24b9696d02961c04f74e4a3aa95b | [
"MIT"
] | null | null | null | /*******************************************************************************
Copyright (c) The Taichi Authors (2016- ). All Rights Reserved.
The use of this software is governed by the LICENSE file.
*******************************************************************************/
#include <taichi/visual/sce... | 33.347368 | 81 | 0.60322 | [
"mesh",
"object",
"vector",
"transform"
] |
9a0464ef4a306207235b13f36c4c1b4c69290bcd | 2,081 | cpp | C++ | outbreak4elfi.cpp | vuolleko/outbreak | 182f687a05bf6086194684dd9d2b4bfaafba2c1f | [
"BSD-3-Clause"
] | null | null | null | outbreak4elfi.cpp | vuolleko/outbreak | 182f687a05bf6086194684dd9d2b4bfaafba2c1f | [
"BSD-3-Clause"
] | null | null | null | outbreak4elfi.cpp | vuolleko/outbreak | 182f687a05bf6086194684dd9d2b4bfaafba2c1f | [
"BSD-3-Clause"
] | null | null | null | #include <boost/python/numpy.hpp>
#include "outbreak.cpp"
namespace p = boost::python;
namespace np = boost::python::numpy;
typedef Eigen::Matrix<int, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> RowMatrixXi;
// simulate a batch of outbreaks each with a different R0
np::ndarray simulateR0(np::ndarray &py_R0, uint... | 33.031746 | 91 | 0.596828 | [
"object"
] |
9a0b377afe29eb82b06367f03e145d76021b9e21 | 5,335 | cc | C++ | stapl_release/benchmarks/kernels/min_element/min_element_flat.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/benchmarks/kernels/min_element/min_element_flat.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/benchmarks/kernels/min_element/min_element_flat.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | /*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whole or in part withou... | 23.399123 | 80 | 0.630928 | [
"vector"
] |
9a11cc18d0d35b04530801cc58b68da285510dea | 21,024 | cpp | C++ | Source/SIMPLib/DataContainers/DataContainerArrayProxy.cpp | v7t/SIMPL | 41c941ac957960ec17d067ffe5c566390c4a2553 | [
"NRL"
] | null | null | null | Source/SIMPLib/DataContainers/DataContainerArrayProxy.cpp | v7t/SIMPL | 41c941ac957960ec17d067ffe5c566390c4a2553 | [
"NRL"
] | null | null | null | Source/SIMPLib/DataContainers/DataContainerArrayProxy.cpp | v7t/SIMPL | 41c941ac957960ec17d067ffe5c566390c4a2553 | [
"NRL"
] | null | null | null | /* ============================================================================
* Copyright (c) 2009-2016 BlueQuartz Software, LLC
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must ... | 37.745063 | 147 | 0.570681 | [
"object"
] |
9a126869040c43447686ed0724ad131791fee657 | 1,170 | cpp | C++ | leetcode/Algorithms/HouseRobberII/solution.cpp | hxdone/puzzles | b729bce8a61f77ad7cbb70957e00c5ade9a0a35f | [
"Apache-2.0"
] | 2 | 2015-07-03T03:05:30.000Z | 2015-07-03T03:05:31.000Z | leetcode/Algorithms/HouseRobberII/solution.cpp | hxdone/puzzles | b729bce8a61f77ad7cbb70957e00c5ade9a0a35f | [
"Apache-2.0"
] | null | null | null | leetcode/Algorithms/HouseRobberII/solution.cpp | hxdone/puzzles | b729bce8a61f77ad7cbb70957e00c5ade9a0a35f | [
"Apache-2.0"
] | null | null | null | // Iterative solution by hxdone
class Solution {
public:
int rob(vector<int>& nums) {
if (nums.size() == 0)
return 0;
else if (nums.size() == 1)
return nums[0];
else if (nums.size() == 2)
return max(nums[0], nums[1]);
int* gain_1 = new int[nums.si... | 36.5625 | 88 | 0.498291 | [
"vector"
] |
9a227524d8f92600cb7529f9c22dfe4b7a1db3db | 16,121 | cpp | C++ | Simulator/SimulatorBase/test/test01.cpp | tomcool420/SimulatorSWTOR | 4d2866f997fc3f75b69a97dd5fc474227185de81 | [
"MIT"
] | null | null | null | Simulator/SimulatorBase/test/test01.cpp | tomcool420/SimulatorSWTOR | 4d2866f997fc3f75b69a97dd5fc474227185de81 | [
"MIT"
] | null | null | null | Simulator/SimulatorBase/test/test01.cpp | tomcool420/SimulatorSWTOR | 4d2866f997fc3f75b69a97dd5fc474227185de81 | [
"MIT"
] | null | null | null | #include "../Ability.h"
#include "../AbilityBuff.h"
#include "../AbilityDebuff.h"
#include "../StatBuff.h"
#include "../abilities.h"
#include "../detail/calculations.h"
#include "../detail/helpers.h"
#include <gtest/gtest.h>
#include <spdlog/spdlog.h>
using namespace Simulator;
TEST(calculations, initial) {
EXPECT... | 45.030726 | 488 | 0.553067 | [
"vector"
] |
9a2715b8e0fc34c1fdf4b7aebfa036cf1937b3ae | 5,658 | cpp | C++ | src/cli/parser/theories/Core.cpp | salekh/smt-c | 7088b32089cd4c3ffa6e13baa1ec3f93bb586e97 | [
"MIT"
] | null | null | null | src/cli/parser/theories/Core.cpp | salekh/smt-c | 7088b32089cd4c3ffa6e13baa1ec3f93bb586e97 | [
"MIT"
] | null | null | null | src/cli/parser/theories/Core.cpp | salekh/smt-c | 7088b32089cd4c3ffa6e13baa1ec3f93bb586e97 | [
"MIT"
] | null | null | null | #include "Core.h"
#include "ParserState.h"
namespace smtrat {
namespace parser {
struct CoreInstantiator: public FunctionInstantiator {
bool operator()(const std::vector<types::TermType>& arguments, types::TermType& result, TheoryError& errors) const {
std::vector<FormulaT> args;
if (!convert(arguments, args... | 38.753425 | 165 | 0.691587 | [
"vector"
] |
9a2d9845df047455197abe448f07e756f87d7bdb | 972 | hpp | C++ | elog_serialize.hpp | Alpana07/phosphor-logging | 1be39849bd974c2f7df7fa932edcd7f71a2c6d59 | [
"Apache-2.0"
] | 5 | 2017-12-01T19:34:13.000Z | 2020-12-29T10:50:32.000Z | elog_serialize.hpp | Alpana07/phosphor-logging | 1be39849bd974c2f7df7fa932edcd7f71a2c6d59 | [
"Apache-2.0"
] | 26 | 2017-02-02T08:20:10.000Z | 2021-11-16T18:28:44.000Z | elog_serialize.hpp | Alpana07/phosphor-logging | 1be39849bd974c2f7df7fa932edcd7f71a2c6d59 | [
"Apache-2.0"
] | 28 | 2016-07-20T16:46:54.000Z | 2022-03-16T11:20:03.000Z | #pragma once
#include "config.h"
#include "elog_entry.hpp"
#include <filesystem>
#include <string>
#include <vector>
namespace phosphor
{
namespace logging
{
namespace fs = std::filesystem;
/** @brief Serialize and persist error d-bus object
* @param[in] a - const reference to error entry.
* @param[in] dir - ... | 26.27027 | 79 | 0.682099 | [
"object",
"vector"
] |
9a42999a04dfa14176c535c9d1654fb21d1673b7 | 9,379 | cpp | C++ | src/libgcv/plugins/asc/asc_v5.cpp | dservin/brlcad | 34b72d3efd24ac2c84abbccf9452323231751cd1 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | src/libgcv/plugins/asc/asc_v5.cpp | dservin/brlcad | 34b72d3efd24ac2c84abbccf9452323231751cd1 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | src/libgcv/plugins/asc/asc_v5.cpp | dservin/brlcad | 34b72d3efd24ac2c84abbccf9452323231751cd1 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | /* A S C _ V 5 . C P P
* BRL-CAD
*
* Copyright (c) 2020-2022 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 a... | 28.080838 | 110 | 0.637275 | [
"cad",
"geometry",
"object"
] |
9a43549937647eec688f41f254601390212e3083 | 9,080 | cpp | C++ | src/ros_intel_movidius_ncs/movidius_ncs_stream/src/ncs_nodelet.cpp | epfl-lasa/obstacleAvoidance_Cpp | 8719b61852e4da7cb90575a42bd0ca6918cb6b07 | [
"MIT"
] | 7 | 2019-03-21T19:45:37.000Z | 2020-09-22T08:27:54.000Z | movidius_ncs_stream/src/ncs_nodelet.cpp | tzven0/ros_intel_movidius_ncs | 866dcac2e70f29639dd90ef84ff631643b9bf71c | [
"Apache-2.0"
] | 1 | 2019-07-15T16:02:05.000Z | 2019-07-15T16:02:05.000Z | movidius_ncs_stream/src/ncs_nodelet.cpp | tzven0/ros_intel_movidius_ncs | 866dcac2e70f29639dd90ef84ff631643b9bf71c | [
"Apache-2.0"
] | 5 | 2019-05-22T08:03:07.000Z | 2021-06-13T06:22:44.000Z | /*
* Copyright (c) 2017 Intel Corporation
*
* 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... | 28.375 | 119 | 0.705396 | [
"object",
"vector"
] |
9a4a87ce86db7cbd4653ea692c7fa2ca8ac825c0 | 9,134 | cpp | C++ | src/nimbro/tools/trajectory_editor/src/inversespace.cpp | nvtienanh/UXA_OP | a06a3f1113721627e7d384f89718369036e8028e | [
"BSD-3-Clause"
] | 2 | 2018-11-22T08:15:43.000Z | 2020-07-22T07:18:50.000Z | src/nimbro/tools/trajectory_editor/src/inversespace.cpp | nvtienanh/UXA_OP | a06a3f1113721627e7d384f89718369036e8028e | [
"BSD-3-Clause"
] | 1 | 2018-11-22T08:34:34.000Z | 2018-11-22T08:34:34.000Z | src/nimbro/tools/trajectory_editor/src/inversespace.cpp | nvtienanh/UXA_OP | a06a3f1113721627e7d384f89718369036e8028e | [
"BSD-3-Clause"
] | null | null | null | #include <trajectory_editor/spaces/inversespace.h>
#include <ros/package.h>
#include <ros/console.h>
#include <QSpacerItem>
#include <math.h>
using namespace gait;
using namespace std;
InverseSpace::InverseSpace(const std::vector<std::string> &jointList, QWidget *parent)
: BasicSpace(jointList, parent)
{
m_inver... | 31.068027 | 129 | 0.7552 | [
"vector"
] |
9a52ef181f973bfebfca5301fd080cb581fe669b | 3,127 | cpp | C++ | src/XF-201.cpp | freddyz/SubmarineFree | 6e2efcc0ffe1bf228be50a55f99738e1799b4c68 | [
"BSD-3-Clause"
] | null | null | null | src/XF-201.cpp | freddyz/SubmarineFree | 6e2efcc0ffe1bf228be50a55f99738e1799b4c68 | [
"BSD-3-Clause"
] | null | null | null | src/XF-201.cpp | freddyz/SubmarineFree | 6e2efcc0ffe1bf228be50a55f99738e1799b4c68 | [
"BSD-3-Clause"
] | null | null | null | #include "XF.hpp"
struct XF_201 : XF {
static const int deviceCount = 1;
enum ParamIds {
PARAM_CV_1,
PARAM_MODE_1,
PARAM_FADE_1,
NUM_PARAMS
};
enum InputIds {
INPUT_A_1,
INPUT_AR_1,
INPUT_B_1,
INPUT_BR_1,
INPUT_CV_1,
NUM_INPUTS
};
enum OutputIds {
OUTPUT_1,
OUTPUTR_1,
NUM_OUTPUTS
};
e... | 35.134831 | 126 | 0.676687 | [
"model"
] |
9a531b589f3a26aab01c3a91ef25b4ce76591022 | 7,092 | cpp | C++ | vem/proxy/compression.cpp | bh107/bohrium | 5b83e7117285fefc7779ed0e9acb0f8e74c7e068 | [
"Apache-2.0"
] | 236 | 2015-03-31T15:39:30.000Z | 2022-03-24T01:43:14.000Z | vem/proxy/compression.cpp | bh107/bohrium | 5b83e7117285fefc7779ed0e9acb0f8e74c7e068 | [
"Apache-2.0"
] | 324 | 2015-05-27T10:35:38.000Z | 2021-12-10T07:34:10.000Z | vem/proxy/compression.cpp | bh107/bohrium | 5b83e7117285fefc7779ed0e9acb0f8e74c7e068 | [
"Apache-2.0"
] | 41 | 2015-05-26T12:38:42.000Z | 2022-01-10T15:16:37.000Z | /*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3
of the License, or (at your option) ... | 37.723404 | 111 | 0.603356 | [
"shape",
"vector"
] |
9a5c9c4a7616002774fb4537eb9d385cf2b7ce29 | 1,176 | cpp | C++ | codeforces/contests/1333/B.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | codeforces/contests/1333/B.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | codeforces/contests/1333/B.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | /*
Codeforces Round #632 (Div. 2) - B. Kind Anton
https://codeforces.com/contest/1333/problem/B
*/
#include <bits/stdc++.h>
using namespace std;
#define FAST_INP ios_base::sync_with_stdio(false);cin.tie(NULL)
void solve(){
// by observation, if a[i] is not same as b[i], we need either 1 or -1 to equalise a[i] a... | 22.615385 | 100 | 0.543367 | [
"vector"
] |
9a62d0999b8f99d7865ae8bc74e5d1641a06b1e2 | 6,159 | cpp | C++ | third_party/WebKit/Source/core/svg/SVGGradientElement.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/svg/SVGGradientElement.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/svg/SVGGradientElement.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
* Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
* Copyright (C) Research In Motion Limited 2010. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of th... | 36.017544 | 80 | 0.7308 | [
"object",
"vector"
] |
9a66ab500ca998656fc7cc0bee41cfe5853c2e63 | 1,433 | cpp | C++ | Interview/wap.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | Interview/wap.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | Interview/wap.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
const int N = 1e5 + 5;
const int inf = 999999;
int n, m;
vector<int> G[N], S[N];
int result;
int main() {
scanf("%d%d", &n, &m);
vector<int> Graph[N];
for(int i = 0; i < m; i++) {
int k;
scanf("%d", &k);
... | 22.046154 | 55 | 0.404047 | [
"vector"
] |
9a672eb0d7d34cbae12745e94a813a38122bc89d | 975 | cpp | C++ | Replay Demo/ControllableBall.cpp | VGAD/ECSE | 70b03e2d3d9f9433d5d0bb128e3d69f962231811 | [
"MIT"
] | 5 | 2016-07-03T08:56:46.000Z | 2019-05-14T16:05:06.000Z | Replay Demo/ControllableBall.cpp | VGAD/ECSE | 70b03e2d3d9f9433d5d0bb128e3d69f962231811 | [
"MIT"
] | 2 | 2015-01-08T01:44:46.000Z | 2015-01-09T00:51:35.000Z | Replay Demo/ControllableBall.cpp | VGAD/ECSE | 70b03e2d3d9f9433d5d0bb128e3d69f962231811 | [
"MIT"
] | 3 | 2015-01-04T07:33:39.000Z | 2019-08-10T22:39:07.000Z | #include "ECSE/World.h"
#include "ECSE/Engine.h"
#include "ECSE/VectorMath.h"
#include "ControllableBall.h"
#include "Bindings.h"
namespace ReplayDemo
{
void ControllableBall::init()
{
inputMan = &world->getEngine()->inputManager;
const float radius = 16.f;
circle.setFillColor(sf::Color(255, 255, 255));... | 23.780488 | 74 | 0.707692 | [
"render",
"transform"
] |
9a6b124bdf2921de18bc9574cf3598067abca59b | 3,478 | cpp | C++ | benchmark.cpp | ChaosKit/ChaosKit | e7cba03db1ae34160868656ea357c7166ae1d84a | [
"Apache-2.0"
] | 3 | 2021-01-09T17:25:18.000Z | 2021-07-11T00:04:22.000Z | benchmark.cpp | ChaosKit/ChaosKit | e7cba03db1ae34160868656ea357c7166ae1d84a | [
"Apache-2.0"
] | 1 | 2021-03-21T13:17:04.000Z | 2021-03-21T14:03:46.000Z | benchmark.cpp | ChaosKit/ChaosKit | e7cba03db1ae34160868656ea357c7166ae1d84a | [
"Apache-2.0"
] | 1 | 2020-04-03T16:32:53.000Z | 2020-04-03T16:32:53.000Z | #include <chrono>
#include <cmath>
#include <iostream>
#include <memory>
#include "ast/helpers.h"
#include "core/SystemParticle.h"
#include "core/SystemProcessor.h"
#include "core/ThreadLocalRng.h"
#include "core/TransformSystem.h"
class Implementation {
public:
virtual void setUp() {}
virtual void tearDown() {}
... | 29.226891 | 80 | 0.642898 | [
"transform"
] |
9a6b407cd8f034b64c7d9c484d7d67c19276d777 | 2,307 | cpp | C++ | src/Application.cpp | yasenAlexiev/LearnOpenGL | 27e409fb1c1f6a5dffff00d2aaade76908094d18 | [
"MIT"
] | null | null | null | src/Application.cpp | yasenAlexiev/LearnOpenGL | 27e409fb1c1f6a5dffff00d2aaade76908094d18 | [
"MIT"
] | null | null | null | src/Application.cpp | yasenAlexiev/LearnOpenGL | 27e409fb1c1f6a5dffff00d2aaade76908094d18 | [
"MIT"
] | null | null | null | #include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "Renderer.h"
#include "Texture.h"
#include "IndexBuffer.h"
#include "VertexBuffer.h"
#include "VertexBufferLayout.h"
#include "VertexArray.h"
#include "Shader.h"
#include <iostream>
int main( void )
{
GLFWwindow* window;
/* Initialize the library */
if ( !g... | 18.909836 | 66 | 0.642826 | [
"render"
] |
9a6ebb87976af0a566c4303747a60bde729a3175 | 2,570 | cpp | C++ | o14e2grz/grz.cpp | czers/oi-tasks | b862cd33bd2230c7cea135333056954388ba9502 | [
"Unlicense"
] | null | null | null | o14e2grz/grz.cpp | czers/oi-tasks | b862cd33bd2230c7cea135333056954388ba9502 | [
"Unlicense"
] | null | null | null | o14e2grz/grz.cpp | czers/oi-tasks | b862cd33bd2230c7cea135333056954388ba9502 | [
"Unlicense"
] | null | null | null | #include <cstdlib>
#include <cstdio>
#include <vector>
#include <stack>
#include <utility>
const int MAXN = 1000;
const int ny[] = { -1, -1, -1, 0, 0, 1, 1, 1 };
const int nx[] = { -1, 0, 1, -1, 1, -1, 0, 1 };
const int nl = 8;
const int NOTFOUND = -1;
using namespace std;
int main()
{
int n, summit = 0, valle... | 29.204545 | 67 | 0.33035 | [
"vector"
] |
9a74d3efeb9c55d5df1e0eb5f4d790138db7de28 | 909 | cpp | C++ | 3.7.0/lldb-3.7.0.src/test/lang/cpp/wchar_t/main.cpp | androm3da/clang_sles | 2ba6d0711546ad681883c42dfb8661b842806695 | [
"MIT"
] | 3 | 2016-02-10T14:18:40.000Z | 2018-02-05T03:15:56.000Z | 3.7.0/lldb-3.7.0.src/test/lang/cpp/wchar_t/main.cpp | androm3da/clang_sles | 2ba6d0711546ad681883c42dfb8661b842806695 | [
"MIT"
] | 1 | 2016-02-10T15:40:03.000Z | 2016-02-10T15:40:03.000Z | 3.7.0/lldb-3.7.0.src/test/lang/cpp/wchar_t/main.cpp | androm3da/clang_sles | 2ba6d0711546ad681883c42dfb8661b842806695 | [
"MIT"
] | null | null | null | //===-- main.c --------------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 25.971429 | 82 | 0.517052 | [
"object"
] |
9a7922bf5c0537c45cb6f1f8a2cd72737b43ec08 | 4,720 | hh | C++ | include/mcnla/isvd/integrator/row_block_gramian_kolmogorov_nagumo_integrator.hh | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | include/mcnla/isvd/integrator/row_block_gramian_kolmogorov_nagumo_integrator.hh | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | include/mcnla/isvd/integrator/row_block_gramian_kolmogorov_nagumo_integrator.hh | emfomy/mcnla | 9f9717f4d6449bbd467c186651856d6212035667 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @file include/mcnla/isvd/integrator/row_block_gramian_kolmogorov_nagumo_integrator.hh
/// @brief The definition of Gramian Kolmogorov-Nagumo-type integrator (row-block version).
///
... | 31.466667 | 128 | 0.683051 | [
"vector"
] |
9a7e6acbfed87f7d5c7e2e61b374796731f40ab3 | 22,072 | cpp | C++ | wzskcmbd/CrdWzskNav/PnlWzskNavGlry_blks.cpp | mpsitech/wzsk-Whiznium-StarterK | 94a0a8a05a0fac06c4360b8f835556a299b9425a | [
"MIT"
] | 1 | 2020-09-20T16:25:07.000Z | 2020-09-20T16:25:07.000Z | wzskcmbd/CrdWzskNav/PnlWzskNavGlry_blks.cpp | mpsitech/wzsk-Whiznium-StarterKit | 94a0a8a05a0fac06c4360b8f835556a299b9425a | [
"MIT"
] | null | null | null | wzskcmbd/CrdWzskNav/PnlWzskNavGlry_blks.cpp | mpsitech/wzsk-Whiznium-StarterKit | 94a0a8a05a0fac06c4360b8f835556a299b9425a | [
"MIT"
] | null | null | null | /**
* \file PnlWzskNavGlry_blks.cpp
* job handler for job PnlWzskNavGlry (implementation of blocks)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Emily Johnson (auto-generation)
* \date created: 11 Mar 2021
*/
// IP header --- ABOVE
using namespace std;
using namespace Sbecore;
using namespace Xmli... | 32.602659 | 169 | 0.669038 | [
"object",
"vector"
] |
9a813782f4d63c860f4e9ca2c05635d616c1d74a | 4,091 | cpp | C++ | test/main.cpp | CaoYuchen/PlaneTracker | da94ce0eeea5654f8dd4b1aaf1dea92689d50dde | [
"MIT"
] | 1 | 2021-09-14T07:17:30.000Z | 2021-09-14T07:17:30.000Z | test/main.cpp | CaoYuchen/PlaneTracker | da94ce0eeea5654f8dd4b1aaf1dea92689d50dde | [
"MIT"
] | null | null | null | test/main.cpp | CaoYuchen/PlaneTracker | da94ce0eeea5654f8dd4b1aaf1dea92689d50dde | [
"MIT"
] | null | null | null | /******************************************************************************
* Author: Laurent Kneip *
* Contact: kneip.laurent@gmail.com *
* License: Copyright (c) 2016 Laurent Kneip. All rights reserved. *
... | 38.59434 | 116 | 0.610853 | [
"vector"
] |
9a854f23b9611a8cfcd837c5ffbe075c34b6ea0e | 1,096 | cpp | C++ | codes/cses/DynamicProgramming/MoneySums.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/cses/DynamicProgramming/MoneySums.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/cses/DynamicProgramming/MoneySums.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | /*
************************************************
username : smmehrab
fullname : s.m.mehrabul islam
email : mehrab.24csedu.001@gmail.com
institute : university of dhaka, bangladesh
session : 2017-2018
************************************************
*/
#include <bits/stdc++.h>
using namesp... | 26.095238 | 96 | 0.458029 | [
"vector"
] |
894c739d88de5edeb4e88c1b292a5975a351a173 | 39,894 | cpp | C++ | cpp/common_SDL/SDL2OGL/Draw3D.cpp | Aki78/FlightAI | 9c5480f2392c9c89b9fee4902db0c4cde5323a6c | [
"MIT"
] | 1 | 2019-02-15T08:31:59.000Z | 2019-02-15T08:31:59.000Z | cpp/common_SDL/SDL2OGL/Draw3D.cpp | Aki78/FlightAI | 9c5480f2392c9c89b9fee4902db0c4cde5323a6c | [
"MIT"
] | null | null | null | cpp/common_SDL/SDL2OGL/Draw3D.cpp | Aki78/FlightAI | 9c5480f2392c9c89b9fee4902db0c4cde5323a6c | [
"MIT"
] | null | null | null |
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "Vec2.h"
#include "Draw.h"
#include "Draw3D.h" // THE HEADER
namespace Draw3D{
void drawPoint( const Vec3f& vec ){
//glDisable (GL_LIGHTING);
glBegin (GL_POINTS);
glVertex3d( vec.x, vec.y, vec.z );
glEnd();
};
void drawPointCross( const Vec3f& ve... | 35.55615 | 156 | 0.529929 | [
"mesh",
"shape"
] |
8953dc1cbf5dd22d0f338300971c590ba30fb06a | 5,705 | cpp | C++ | core/Font.cpp | Xecutor/glider | 811bfa91a76cb5dbc918a219681ad2e97cb553fa | [
"MIT"
] | null | null | null | core/Font.cpp | Xecutor/glider | 811bfa91a76cb5dbc918a219681ad2e97cb553fa | [
"MIT"
] | null | null | null | core/Font.cpp | Xecutor/glider | 811bfa91a76cb5dbc918a219681ad2e97cb553fa | [
"MIT"
] | null | null | null | #include "Font.hpp"
#include "SysHeaders.hpp"
#ifdef __APPLE__
#include <SDL2_ttf/SDL_ttf.h>
#else
#include <SDL2/SDL_ttf.h>
#endif
#include <memory.h>
#include <kst/Throw.hpp>
namespace glider {
Font::Font() {
memset(glyphs, 0, sizeof(glyphs));
font = 0;
img = 0;
texSize = 512;
curX = 0;
curY = 0;
ne... | 24.590517 | 120 | 0.547415 | [
"vector"
] |
89581abf484857830b3f0531566c2b45c69364ff | 15,257 | cpp | C++ | src/test/estoraged_test.cpp | openbmc/estoraged | 4906f4ef7e04ddbbf18a401a5b9963748270cce2 | [
"Apache-2.0"
] | 1 | 2021-11-23T19:22:16.000Z | 2021-11-23T19:22:16.000Z | src/test/estoraged_test.cpp | openbmc/estoraged | 4906f4ef7e04ddbbf18a401a5b9963748270cce2 | [
"Apache-2.0"
] | 1 | 2021-11-04T01:58:36.000Z | 2021-11-04T01:58:36.000Z | src/test/estoraged_test.cpp | openbmc/estoraged | 4906f4ef7e04ddbbf18a401a5b9963748270cce2 | [
"Apache-2.0"
] | null | null | null | #include "estoraged_test.hpp"
#include "estoraged.hpp"
#include <unistd.h>
#include <boost/asio/io_context.hpp>
#include <sdbusplus/asio/connection.hpp>
#include <sdbusplus/asio/object_server.hpp>
#include <xyz/openbmc_project/Common/error.hpp>
#include <xyz/openbmc_project/Inventory/Item/Volume/client.hpp>
#includ... | 33.679912 | 79 | 0.671364 | [
"vector"
] |
89582ec20f39c2d5e62cbda951057a77635ba648 | 1,754 | cpp | C++ | leetcode/top-interview-questions/C++/单词拆分_ejg.cpp | Jiyugaoka/Algorithm-video-solution | fa7c5c5c326bf32aeeaca84cfe506277e884a213 | [
"MIT"
] | 7 | 2020-12-20T13:07:13.000Z | 2021-07-13T09:15:58.000Z | leetcode/top-interview-questions/C++/单词拆分_ejg.cpp | Jiyugaoka/Algorithm-video-solution | fa7c5c5c326bf32aeeaca84cfe506277e884a213 | [
"MIT"
] | null | null | null | leetcode/top-interview-questions/C++/单词拆分_ejg.cpp | Jiyugaoka/Algorithm-video-solution | fa7c5c5c326bf32aeeaca84cfe506277e884a213 | [
"MIT"
] | 4 | 2020-12-13T12:17:16.000Z | 2021-03-15T01:36:41.000Z | class Solution {
private:
bool backtrack(vector<int>& memo,
int ind,
const string& s,
const unordered_set<string>& wordDictSet) {
int N = s.size();
if (ind >= N) return true;
/** 0代表false, 非0代表true*/
if (memo[ind] != -1) return memo... | 31.321429 | 93 | 0.469783 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.