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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ad04bab2fe86591ffc2d59bf7eba46ea91de8ecb | 1,859 | cpp | C++ | fetch_demos_common/src/grasp_suggestion_node.cpp | moriarty/fetch_demos | 63ae8ac0050370f11dae7d50dbe2d1e52419b486 | [
"Apache-2.0"
] | 2 | 2020-08-16T08:55:30.000Z | 2021-04-05T07:28:26.000Z | fetch_demos_common/src/grasp_suggestion_node.cpp | moriarty/fetch_demos | 63ae8ac0050370f11dae7d50dbe2d1e52419b486 | [
"Apache-2.0"
] | null | null | null | fetch_demos_common/src/grasp_suggestion_node.cpp | moriarty/fetch_demos | 63ae8ac0050370f11dae7d50dbe2d1e52419b486 | [
"Apache-2.0"
] | 5 | 2019-03-29T17:13:03.000Z | 2021-08-24T22:25:03.000Z | #include <vector>
#include <ros/ros.h>
#include <fetch_demos_common/grasp_suggestion_interface.h>
#include <rail_manipulation_msgs/SegmentedObjectList.h>
#include <rail_manipulation_msgs/SegmentedObject.h>
class GraspSuggestionNode
{
public:
GraspSuggestionNode(ros::NodeHandle &nh)
{
gr... | 32.051724 | 122 | 0.663798 | [
"vector"
] |
ad12229694e6f2d299671b0c77bb4beffa8725b7 | 9,360 | cpp | C++ | demos/env/main.cpp | island-org/soloud | 0b7ea3dbf0aaa1a2f1414920731add78d20b91a6 | [
"Zlib"
] | 1 | 2017-02-17T03:27:56.000Z | 2017-02-17T03:27:56.000Z | demos/env/main.cpp | island-org/soloud | 0b7ea3dbf0aaa1a2f1414920731add78d20b91a6 | [
"Zlib"
] | null | null | null | demos/env/main.cpp | island-org/soloud | 0b7ea3dbf0aaa1a2f1414920731add78d20b91a6 | [
"Zlib"
] | null | null | null | /*
SoLoud audio engine
Copyright (c) 2013-2014 Jari Komppa
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 software for any purpose,
including comm... | 21.920375 | 127 | 0.633226 | [
"render"
] |
ad1659807af1af30dd8bbc4923421783d14a9247 | 261,566 | cpp | C++ | groups/bdl/bdlde/bdlde_utf8util.t.cpp | seanbaxter/bde-1 | 149176ebc2ae49c3b563895a7332fe638a760782 | [
"Apache-2.0"
] | 1 | 2020-03-17T21:11:48.000Z | 2020-03-17T21:11:48.000Z | groups/bdl/bdlde/bdlde_utf8util.t.cpp | seanbaxter/bde-1 | 149176ebc2ae49c3b563895a7332fe638a760782 | [
"Apache-2.0"
] | null | null | null | groups/bdl/bdlde/bdlde_utf8util.t.cpp | seanbaxter/bde-1 | 149176ebc2ae49c3b563895a7332fe638a760782 | [
"Apache-2.0"
] | 1 | 2020-09-15T14:29:35.000Z | 2020-09-15T14:29:35.000Z | // bdlde_utf8util.t.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// NOTICE
//
// This component is not up to date with current BDE coding standards, and
// should not be used as an example f... | 51.408412 | 79 | 0.42983 | [
"vector",
"3d"
] |
ad22d61fc6f3681aab89cf2ccd28e4ac07104b8c | 1,708 | hpp | C++ | src/opengl/render/BoxMesh.hpp | log0div0/just_for_fun | 737fc18c61e2c6a698de34cb7ea80f9eeee32362 | [
"MIT"
] | null | null | null | src/opengl/render/BoxMesh.hpp | log0div0/just_for_fun | 737fc18c61e2c6a698de34cb7ea80f9eeee32362 | [
"MIT"
] | null | null | null | src/opengl/render/BoxMesh.hpp | log0div0/just_for_fun | 737fc18c61e2c6a698de34cb7ea80f9eeee32362 | [
"MIT"
] | null | null | null |
#pragma once
#include "../../Vertex.hpp"
#include <glad/glad.h>
#include <mogl/mogl.hpp>
#include "ShaderProgram.hpp"
namespace render {
struct BoxMesh {
static const inline GLuint binding_index = 1; // any vacant value
BoxMesh() {
vertex_buffer.setData(box_vertices.size() * sizeof(Vertex), box_vertices.data... | 27.111111 | 101 | 0.757026 | [
"render"
] |
ad268312d19ab13312c75535fd76a60a40c39589 | 2,626 | cpp | C++ | src/PrimitiveCube.cpp | valvy/BlockSnake | c4f0f99617d4976a37ca4e93cefe7ccdbca05a1c | [
"BSD-2-Clause"
] | 2 | 2021-06-28T12:00:57.000Z | 2021-06-28T23:46:31.000Z | src/PrimitiveCube.cpp | valvy/BlockSnake | c4f0f99617d4976a37ca4e93cefe7ccdbca05a1c | [
"BSD-2-Clause"
] | null | null | null | src/PrimitiveCube.cpp | valvy/BlockSnake | c4f0f99617d4976a37ca4e93cefe7ccdbca05a1c | [
"BSD-2-Clause"
] | null | null | null | #include "PrimitiveCube.hpp"
PrimitiveCube::PrimitiveCube(int uniqueNumber) : PrimitiveForm(uniqueNumber, "cube"){
std::vector<GLfloat> vertexVBO{
-1.0f,-1.0f,-1.0f,
-1.0f,-1.0f, 1.0f,
-1.0f, 1.0f, 1.0f,
1.0f, 1.0f,-1.0f,
-1.0f,-1.0f,-1.0f,
-1.0f, 1.0f,-1.0f,
... | 29.840909 | 85 | 0.487053 | [
"vector"
] |
ad32a037c160d984a8f544a760b487c31f888663 | 62,083 | cc | C++ | lib/k2hshmque.cc | hiwakaba/k2hash | 154257ccc3e0aaa5cefdb0361a354ec19b53616d | [
"MIT"
] | 38 | 2016-12-09T01:44:43.000Z | 2021-06-24T01:33:17.000Z | lib/k2hshmque.cc | hiwakaba/k2hash | 154257ccc3e0aaa5cefdb0361a354ec19b53616d | [
"MIT"
] | 6 | 2016-12-09T05:38:38.000Z | 2020-11-16T05:20:30.000Z | lib/k2hshmque.cc | hiwakaba/k2hash | 154257ccc3e0aaa5cefdb0361a354ec19b53616d | [
"MIT"
] | 18 | 2016-12-09T01:48:33.000Z | 2021-01-20T06:33:00.000Z | /*
* K2HASH
*
* Copyright 2013-2015 Yahoo Japan Corporation.
*
* K2HASH is key-valuew store base libraries.
* K2HASH is made for the purpose of the construction of
* original KVS system and the offer of the library.
* The characteristic is this KVS library which Key can
* layer. And can support multi-processin... | 34.318961 | 276 | 0.665448 | [
"object"
] |
ad33a2ab0e1e02973f0bdf914cb5157ac1122b4e | 2,786 | hpp | C++ | src/mbgl/renderer/layers/render_symbol_layer.hpp | truthiswill/mapbox-gl-native | d0a1526a94dd596e02306ae8c3638ca58e24a323 | [
"BSL-1.0",
"Apache-2.0"
] | 2 | 2019-04-18T21:25:22.000Z | 2019-04-18T21:25:24.000Z | src/mbgl/renderer/layers/render_symbol_layer.hpp | whitemike889/mapbox-gl-native | d0a1526a94dd596e02306ae8c3638ca58e24a323 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | src/mbgl/renderer/layers/render_symbol_layer.hpp | whitemike889/mapbox-gl-native | d0a1526a94dd596e02306ae8c3638ca58e24a323 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | #pragma once
#include <mbgl/text/glyph.hpp>
#include <mbgl/renderer/render_layer.hpp>
#include <mbgl/renderer/layers/render_layer_symbol_interface.hpp>
#include <mbgl/style/image_impl.hpp>
#include <mbgl/style/layers/symbol_layer_impl.hpp>
#include <mbgl/style/layers/symbol_layer_properties.hpp>
namespace mbgl {
nam... | 31.659091 | 133 | 0.751256 | [
"render",
"vector"
] |
ad35ec09a36f90300c890d04383d0dacf911237f | 2,085 | cpp | C++ | scrimmage/src/network/ScrimmageServiceImpl.cpp | ddfan/swarm_evolve | cd2d972c021e9af5946673363fbfd39cff18f13f | [
"MIT"
] | 10 | 2019-04-29T03:01:19.000Z | 2022-03-22T03:11:30.000Z | scrimmage/src/network/ScrimmageServiceImpl.cpp | lyers179/swarm_evolve | cd2d972c021e9af5946673363fbfd39cff18f13f | [
"MIT"
] | 3 | 2018-10-29T02:14:10.000Z | 2020-11-23T02:36:14.000Z | scrimmage/src/network/ScrimmageServiceImpl.cpp | lyers179/swarm_evolve | cd2d972c021e9af5946673363fbfd39cff18f13f | [
"MIT"
] | 8 | 2018-10-29T02:07:56.000Z | 2022-01-04T06:37:53.000Z | #if ENABLE_GRPC
#include <scrimmage/network/ScrimmageServiceImpl.h>
scrimmage::ScrimmageServiceImpl::ScrimmageServiceImpl(scrimmage::Interface *interface) : interface_(interface){ }
grpc::Status scrimmage::ScrimmageServiceImpl::SendFrame(grpc::ServerContext *context, const scrimmage_proto::Frame *frame, scrimmage_pr... | 47.386364 | 185 | 0.774101 | [
"shape"
] |
ad3861837d633e2b71966cba3b05964061b93e35 | 2,541 | hpp | C++ | benchmark_apps/elmerfem/ElmerGUI/netgen/libsrc/csg/edgeflw.hpp | readex-eu/readex-apps | 38493b11806c306f4e8f1b7b2d97764b45fac8e2 | [
"BSD-3-Clause"
] | 2 | 2020-11-25T13:10:11.000Z | 2021-03-15T20:26:35.000Z | elmerfem/ElmerGUI/netgen/libsrc/csg/edgeflw.hpp | jcmcmurry/pipelining | 8fface1a501b5050f58e7b902aacdcdde68e9648 | [
"MIT"
] | null | null | null | elmerfem/ElmerGUI/netgen/libsrc/csg/edgeflw.hpp | jcmcmurry/pipelining | 8fface1a501b5050f58e7b902aacdcdde68e9648 | [
"MIT"
] | 2 | 2021-08-02T23:23:40.000Z | 2022-02-26T12:39:30.000Z | #ifndef FILE_EDGEFLW
#define FILE_EDGEFLW
/**************************************************************************/
/* File: edgeflw.hh */
/* Author: Joachim Schoeberl */
/* Date: 01. Okt. 95 ... | 24.2 | 79 | 0.571822 | [
"mesh",
"geometry",
"solid"
] |
ad39aa66ba628d76277bfd537dcd40a4eaec5b83 | 734 | cpp | C++ | mathematics/PickingCards.cpp | HannoFlohr/hackerrank | 9644c78ce05a6b1bc5d8f542966781d53e5366e3 | [
"MIT"
] | null | null | null | mathematics/PickingCards.cpp | HannoFlohr/hackerrank | 9644c78ce05a6b1bc5d8f542966781d53e5366e3 | [
"MIT"
] | null | null | null | mathematics/PickingCards.cpp | HannoFlohr/hackerrank | 9644c78ce05a6b1bc5d8f542966781d53e5366e3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
const int MOD = 1000000007;
int main()
{
int t, n, x, drawn, cur, i;
ll result;
cin >> t;
while(t--) {
cin >> n;
vector<int> c (n);
for(i=0; i<n; i++)
cin >> c[i];
sort(c.begin(),c.end... | 19.837838 | 61 | 0.416894 | [
"vector"
] |
ad3ea9ed07483c87526aa343d230c529dffa7915 | 4,728 | cpp | C++ | main.cpp | mbartling/tflm-flat-buffer-weight-dumper | b0d5fff17b15217095078499d56e5f1e793e0be9 | [
"Apache-2.0"
] | null | null | null | main.cpp | mbartling/tflm-flat-buffer-weight-dumper | b0d5fff17b15217095078499d56e5f1e793e0be9 | [
"Apache-2.0"
] | null | null | null | main.cpp | mbartling/tflm-flat-buffer-weight-dumper | b0d5fff17b15217095078499d56e5f1e793e0be9 | [
"Apache-2.0"
] | null | null | null | // Dont just my gross hacky code
#include <iostream>
#include <fstream>
#include <vector>
#include <cassert>
#include "tensorflow/lite/experimental/micro/kernels/all_ops_resolver.h"
#include "tensorflow/lite/experimental/micro/micro_error_reporter.h"
#include "tensorflow/lite/experimental/micro/micro_interpreter.h"
#i... | 32.163265 | 84 | 0.571701 | [
"vector",
"model"
] |
ad480e3ff5ab2deae3679e092b09bd33fa8bea3b | 7,414 | cpp | C++ | WickedEngine/Matrix_BindLua.cpp | sadernalwis/WickedEngine | a1924cc97d36d0dac5e405f4197a9b1e982b2740 | [
"WTFPL",
"MIT"
] | 3,589 | 2015-06-20T23:08:26.000Z | 2022-03-31T13:45:07.000Z | WickedEngine/Matrix_BindLua.cpp | sadernalwis/WickedEngine | a1924cc97d36d0dac5e405f4197a9b1e982b2740 | [
"WTFPL",
"MIT"
] | 303 | 2015-11-23T18:23:59.000Z | 2022-03-31T09:31:03.000Z | WickedEngine/Matrix_BindLua.cpp | sadernalwis/WickedEngine | a1924cc97d36d0dac5e405f4197a9b1e982b2740 | [
"WTFPL",
"MIT"
] | 496 | 2015-06-22T18:14:06.000Z | 2022-03-30T21:53:21.000Z | #include "Matrix_BindLua.h"
#include "Vector_BindLua.h"
using namespace DirectX;
const char Matrix_BindLua::className[] = "Matrix";
Luna<Matrix_BindLua>::FunctionType Matrix_BindLua::methods[] = {
lunamethod(Matrix_BindLua, GetRow),
lunamethod(Matrix_BindLua, Translation),
lunamethod(Matrix_BindLua, Rotation),
... | 23.762821 | 101 | 0.672377 | [
"vector"
] |
ad484901461c3e825990c02adc0437db78171f34 | 15,888 | cpp | C++ | render/shader.cpp | vasukas/rodent | 91224465eaa89467916971a8c5ed1357fa487bdf | [
"FTL",
"CC0-1.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | render/shader.cpp | vasukas/rodent | 91224465eaa89467916971a8c5ed1357fa487bdf | [
"FTL",
"CC0-1.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | render/shader.cpp | vasukas/rodent | 91224465eaa89467916971a8c5ed1357fa487bdf | [
"FTL",
"CC0-1.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | #include "core/hard_paths.hpp"
#include "vaslib/vas_cpp_utils.hpp"
#include "vaslib/vas_file.hpp"
#include "vaslib/vas_log.hpp"
#include "vaslib/vas_misc.hpp"
#include "vaslib/vas_string_utils.hpp"
#include "shader.hpp"
/*
Format directives:
//@vert [NAME] // begins new block or includes existing (vertex sha... | 21.704918 | 131 | 0.604481 | [
"geometry",
"vector"
] |
ad534909408596c9b991012bdf76ccdd05261191 | 11,369 | cc | C++ | chrome/browser/ash/web_applications/camera_app/chrome_camera_app_ui_delegate.cc | Yannic/chromium | ab32e8aacb08c9fce0dc4bf09eec456ba46e3710 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/ash/web_applications/camera_app/chrome_camera_app_ui_delegate.cc | Yannic/chromium | ab32e8aacb08c9fce0dc4bf09eec456ba46e3710 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-03-13T10:32:53.000Z | 2019-03-13T11:05:30.000Z | chrome/browser/ash/web_applications/camera_app/chrome_camera_app_ui_delegate.cc | Yannic/chromium | ab32e8aacb08c9fce0dc4bf09eec456ba46e3710 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ash/web_applications/camera_app/chrome_camera_app_ui_delegate.h"
#include <vector>
#include "ash/constants/devicetype.h"
#inclu... | 37.153595 | 90 | 0.735509 | [
"vector"
] |
ad559a4cb6d2d9415b21b4d2ceab57e223814111 | 6,868 | cpp | C++ | pythonAnimator.cpp | indigames/pyxie | 4536730c73ca4fcd16b676ab5f707e6fabfdb46c | [
"MIT"
] | 1 | 2019-09-19T01:41:54.000Z | 2019-09-19T01:41:54.000Z | pythonAnimator.cpp | indigames/pyxie | 4536730c73ca4fcd16b676ab5f707e6fabfdb46c | [
"MIT"
] | 1 | 2019-09-02T04:31:13.000Z | 2019-09-02T04:31:13.000Z | pythonAnimator.cpp | indigames/pyxiepython | 4536730c73ca4fcd16b676ab5f707e6fabfdb46c | [
"MIT"
] | null | null | null | #include "pyxie.h"
#include "pythonResource.h"
#include "pyxieResourceCreator.h"
#include "pythonAnimator_doc_en.h"
namespace pyxie
{
PyObject *animator_new(PyTypeObject *type, PyObject *args, PyObject *kw) {
char* path;
animator_obj * self = NULL;
if (PyArg_ParseTuple(args, "s", &path)) {
self... | 35.220513 | 139 | 0.583285 | [
"object"
] |
ad5ef530a875d997d8f3ed2b5970df7eddbfb8fd | 965 | cpp | C++ | LeetCode/0153. Find Minimum in Rotated Sorted Array/solution.cpp | InnoFang/oh-my-algorithms | f559dba371ce725a926725ad28d5e1c2facd0ab2 | [
"Apache-2.0"
] | 19 | 2018-08-26T03:10:58.000Z | 2022-03-07T18:12:52.000Z | LeetCode/0153. Find Minimum in Rotated Sorted Array/solution.cpp | InnoFang/Algorithm-Library | 1896b9d8b1fa4cd73879aaecf97bc32d13ae0169 | [
"Apache-2.0"
] | null | null | null | LeetCode/0153. Find Minimum in Rotated Sorted Array/solution.cpp | InnoFang/Algorithm-Library | 1896b9d8b1fa4cd73879aaecf97bc32d13ae0169 | [
"Apache-2.0"
] | 6 | 2020-03-16T23:00:06.000Z | 2022-01-13T07:02:08.000Z | /**
* 150 / 150 test cases passed.
* Runtime: 8 ms
* Memory Usage: 9.9 MB
*/
class Solution {
public:
int findMin(vector<int>& nums) {
int left = 0, right = nums.size() - 1;
while (left <= right) {
if (nums[left] <= nums[right]) return nums[left];
int mid = left + ((rig... | 22.44186 | 61 | 0.429016 | [
"vector"
] |
ad5fcccc50a3a19eb21997b4d94785622d67a4a3 | 9,688 | cpp | C++ | src/qt/veil/tutorialwidget.cpp | jskitty-repos/veil | 075f51693a5ac39e4c8bf22a9f12cd851fb29a1c | [
"MIT"
] | 124 | 2018-12-25T00:01:18.000Z | 2021-12-26T19:38:43.000Z | src/qt/veil/tutorialwidget.cpp | MatWaller/veil | 072cc3a63bda5f0c47c09cdc74635ee3bc68e160 | [
"MIT"
] | 702 | 2018-12-16T18:07:18.000Z | 2022-03-18T16:52:14.000Z | src/qt/veil/tutorialwidget.cpp | MatWaller/veil | 072cc3a63bda5f0c47c09cdc74635ee3bc68e160 | [
"MIT"
] | 151 | 2018-12-13T07:33:34.000Z | 2022-01-29T11:35:23.000Z | // Copyright (c) 2019 The Veil developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/veil/tutorialwidget.h>
#include <qt/veil/forms/ui_tutorialwidget.h>
#include <qt/guiutil.h>
#include <QDebug>
#include <QFile... | 38.29249 | 179 | 0.514967 | [
"vector"
] |
ad604414d9a29c53903de04a58d5808b12f1034f | 392 | hpp | C++ | item.hpp | malcx95/tilde | 880331fccff76b93f83115c837894f49e3f2d4ea | [
"Xnet",
"X11"
] | null | null | null | item.hpp | malcx95/tilde | 880331fccff76b93f83115c837894f49e3f2d4ea | [
"Xnet",
"X11"
] | null | null | null | item.hpp | malcx95/tilde | 880331fccff76b93f83115c837894f49e3f2d4ea | [
"Xnet",
"X11"
] | null | null | null | #ifndef ITEM_H
#define ITEM_H
#include <SFML/Graphics.hpp>
#include "constants.hpp"
const int MAX_ITEMS = 10;
struct Item {
bool being_carried;
bool in_box;
sf::Sprite sprite;
sf::Clock drop_clock;
};
void spawn_item(std::vector<Item*>& items, std::vector<sf::Texture*> item_textures);
void remove_i... | 18.666667 | 84 | 0.696429 | [
"vector"
] |
ad6331e9f11669428080397efb10bc80a6cd56d6 | 495 | cpp | C++ | codesignal/array/electionsWinners.cpp | peterlamar/cpp-cp-cheatsheet | 23af2e893992141572005de7a438c3a2d376547e | [
"Apache-2.0"
] | null | null | null | codesignal/array/electionsWinners.cpp | peterlamar/cpp-cp-cheatsheet | 23af2e893992141572005de7a438c3a2d376547e | [
"Apache-2.0"
] | null | null | null | codesignal/array/electionsWinners.cpp | peterlamar/cpp-cp-cheatsheet | 23af2e893992141572005de7a438c3a2d376547e | [
"Apache-2.0"
] | null | null | null | /*
For votes = [2, 3, 5, 2] and k = 3, the output should be
electionsWinners(votes, k) = 2.
*/
int electionsWinners(vector<int> votes, int k) {
auto mx = max_element(votes.begin(), votes.end());
int rtn = 0;
// if no more votes
if (k == 0){
if (count(votes.begin(), votes.end(), *mx) == 1)
... | 20.625 | 56 | 0.468687 | [
"vector"
] |
ad65658935dd68fdf9475b9f401c111cc48c95a6 | 25,190 | cpp | C++ | src/python_wrapper/_pydeform.cpp | noumannahmad/deform | 4212cac5682da27d63eb7583bf9a517664313eb4 | [
"MIT"
] | 15 | 2019-06-15T10:19:24.000Z | 2022-02-18T05:35:58.000Z | src/python_wrapper/_pydeform.cpp | noumannahmad/deform | 4212cac5682da27d63eb7583bf9a517664313eb4 | [
"MIT"
] | 36 | 2019-06-24T14:32:04.000Z | 2022-01-16T21:16:09.000Z | src/python_wrapper/_pydeform.cpp | simeks/deform | 3d6ab6f3c398ef18343b77c84874cec64b918e57 | [
"MIT"
] | 4 | 2019-06-25T20:01:28.000Z | 2021-08-29T17:33:47.000Z | #include <pybind11/iostream.h>
#include <pybind11/numpy.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <cassert>
#include <map>
#include <string>
#include <deform_lib/defer.h>
#include <deform_lib/jacobian.h>
#include <deform_lib/make_unique.h>
#include <deform_lib/regularize.h>
#include <deform... | 30.496368 | 100 | 0.589877 | [
"object",
"shape",
"vector",
"transform"
] |
ad7103cd05ad1e1632dd3ccb0f0fd58428abab33 | 3,300 | cpp | C++ | MetroMiniABSBiDir-noCANSlave/MetroMiniABSBiDir-noCANSlave/ABSSlaveBus.cpp | RobertPHeller/RPi-RRCircuits | 19aff23e20eebdbd028c0407d68eef77cc6ee0ec | [
"CC-BY-4.0"
] | 10 | 2018-09-04T02:12:39.000Z | 2022-03-17T20:29:32.000Z | MetroMiniABSBiDir-noCANSlave/MetroMiniABSBiDir-noCANSlave/ABSSlaveBus.cpp | RobertPHeller/RPi-RRCircuits | 19aff23e20eebdbd028c0407d68eef77cc6ee0ec | [
"CC-BY-4.0"
] | null | null | null | MetroMiniABSBiDir-noCANSlave/MetroMiniABSBiDir-noCANSlave/ABSSlaveBus.cpp | RobertPHeller/RPi-RRCircuits | 19aff23e20eebdbd028c0407d68eef77cc6ee0ec | [
"CC-BY-4.0"
] | 1 | 2018-12-26T00:32:27.000Z | 2018-12-26T00:32:27.000Z | // -!- C++ -!- //////////////////////////////////////////////////////////////
//
// System :
// Module :
// Object Name : $RCSfile$
// Revision : $Revision$
// Date : $Date$
// Author : $Author$
// Created By : Robert Heller
// Created : Tue Jun 12 23:52:07 2018
/... | 35.483871 | 88 | 0.521212 | [
"object"
] |
ad73b0e738ca857dbf9509e2e6de903b84bb602d | 39,520 | cpp | C++ | src/util/gfx.cpp | churay/hmp | d149c89e63f331db7198f8e97a1751e466063374 | [
"MIT"
] | 1 | 2018-10-26T05:39:07.000Z | 2018-10-26T05:39:07.000Z | src/util/gfx.cpp | churay/hmp | d149c89e63f331db7198f8e97a1751e466063374 | [
"MIT"
] | 92 | 2018-10-26T05:56:48.000Z | 2020-07-16T05:33:27.000Z | src/util/gfx.cpp | churay/hmp | d149c89e63f331db7198f8e97a1751e466063374 | [
"MIT"
] | null | null | null | #include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include <SDL2/SDL_opengl_glext.h>
#include <glm/glm.hpp>
#include <glm/ext/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/transform.hpp>
#include <glm/gtx/vector_angle.hpp>
#include <glm/gtx/string_cast.hpp>
#include <cstring>
#include <limi... | 56.863309 | 135 | 0.486108 | [
"render",
"vector",
"transform"
] |
ad73ba0de7245b00724054a484426d271508d353 | 25,032 | hh | C++ | src/phantasm-hardware-interface/types.hh | project-arcana/phantasm-hardware-interface | d75e23b0ac46efb304246930d680851bbe7f6561 | [
"MIT"
] | 6 | 2020-12-09T13:53:26.000Z | 2021-12-24T14:13:17.000Z | src/phantasm-hardware-interface/types.hh | project-arcana/phantasm-hardware-interface | d75e23b0ac46efb304246930d680851bbe7f6561 | [
"MIT"
] | 5 | 2020-01-29T09:46:36.000Z | 2020-09-04T16:15:53.000Z | src/phantasm-hardware-interface/types.hh | project-arcana/phantasm-hardware-interface | d75e23b0ac46efb304246930d680851bbe7f6561 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <cstring>
#include <clean-core/flags.hh>
#include <phantasm-hardware-interface/handles.hh>
#define PHI_DEFINE_FLAG_TYPE(_flags_t_, _enum_t_, _max_num_) \
using _flags_t_ = cc::flags<_enum_t_, uint32_t(_max_num_)>; \
CC_FLAGS_ENUM_SIZED(_enum_t_, uint32_t(_max_num_... | 28.575342 | 162 | 0.689477 | [
"geometry",
"render",
"transform"
] |
ad76400bdbcc2e48a457c99715b9d937f494cc50 | 2,702 | cpp | C++ | include/util/ShadowMap.cpp | hvidal/GameEngine3D | 1794ad891d2200260be935283645a03af3ebcfcc | [
"MIT"
] | 6 | 2020-07-03T21:14:56.000Z | 2021-11-11T09:37:40.000Z | include/util/ShadowMap.cpp | hvidal/GameEngine3D | 1794ad891d2200260be935283645a03af3ebcfcc | [
"MIT"
] | null | null | null | include/util/ShadowMap.cpp | hvidal/GameEngine3D | 1794ad891d2200260be935283645a03af3ebcfcc | [
"MIT"
] | 2 | 2020-08-15T22:37:21.000Z | 2021-01-17T11:31:27.000Z | #include "ShadowMap.h"
#include "Texture.h"
#include "math/Matrix4x4.h"
const std::string& ShadowMap::SERIALIZE_ID = "ShadowMap";
//-----------------------------------------------------------------------------
ShadowMap::ShadowMap(GLuint slot, unsigned int size) {
mDepthTexture = std::make_unique<Texture>(slot, GL_... | 26.490196 | 124 | 0.698372 | [
"vector"
] |
ad81e27470a72595d95846376e5f30807b2d613d | 3,215 | hpp | C++ | src/Feedback/FigureFeedback.hpp | cleissom/ofxTableGestures | 163819d79203d07aa0f14202c4599deea2f6e5a4 | [
"MIT"
] | null | null | null | src/Feedback/FigureFeedback.hpp | cleissom/ofxTableGestures | 163819d79203d07aa0f14202c4599deea2f6e5a4 | [
"MIT"
] | null | null | null | src/Feedback/FigureFeedback.hpp | cleissom/ofxTableGestures | 163819d79203d07aa0f14202c4599deea2f6e5a4 | [
"MIT"
] | null | null | null | /*
ofxTableGestures (formerly OF-TangibleFramework)
Developed for Taller de Sistemes Interactius I
Universitat Pompeu Fabra
Copyright (c) 2010 Daniel Gallardo Grassot <daniel.gallardo@upf.edu>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and as... | 34.945652 | 94 | 0.668118 | [
"object"
] |
ad85b272a83322cc9658a26ad5360f4373866736 | 11,444 | cpp | C++ | src/particle_filter.cpp | wkhattak/Kidnapped-Vehicle | 5af72554923e45507d1be1c88c66eba10cae9248 | [
"CC-BY-3.0"
] | null | null | null | src/particle_filter.cpp | wkhattak/Kidnapped-Vehicle | 5af72554923e45507d1be1c88c66eba10cae9248 | [
"CC-BY-3.0"
] | null | null | null | src/particle_filter.cpp | wkhattak/Kidnapped-Vehicle | 5af72554923e45507d1be1c88c66eba10cae9248 | [
"CC-BY-3.0"
] | null | null | null | #include <random>
#include <algorithm>
#include <iostream>
#include <numeric>
#include <math.h>
#include <iostream>
#include <sstream>
#include <string>
#include <iterator>
#include "particle_filter.h"
using namespace std;
void ParticleFilter::init(double x, double y, double theta, double std[]) {
// TODO: Set the... | 45.776 | 201 | 0.630898 | [
"vector",
"transform"
] |
ad88e32926bff2bfdefeb7358eada15f8de9b4aa | 2,237 | cpp | C++ | runtime/tests/bitmap_page_alignment_test.cpp | openharmony-gitee-mirror/ark_runtime_core | 2e6f195caf482dc9607efda7cfb5cc5f98da5598 | [
"Apache-2.0"
] | 1 | 2021-09-09T03:17:23.000Z | 2021-09-09T03:17:23.000Z | runtime/tests/bitmap_page_alignment_test.cpp | openharmony-gitee-mirror/ark_runtime_core | 2e6f195caf482dc9607efda7cfb5cc5f98da5598 | [
"Apache-2.0"
] | null | null | null | runtime/tests/bitmap_page_alignment_test.cpp | openharmony-gitee-mirror/ark_runtime_core | 2e6f195caf482dc9607efda7cfb5cc5f98da5598 | [
"Apache-2.0"
] | 1 | 2021-09-13T11:21:57.000Z | 2021-09-13T11:21:57.000Z | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 30.643836 | 116 | 0.688422 | [
"vector"
] |
ad8db3125330b52453009b46321cb00be7a1869f | 3,357 | hpp | C++ | SarvLibrary/Kmerize/dsk/thirdparty/gatb-core/gatb-core/src/gatb/kmer/impl/DebloomMinimizerAlgorithm.hpp | cwright7101/llvm_sarvavid | 7567d617a7be78fecfde71ab04ebd8e9506a64e4 | [
"MIT"
] | null | null | null | SarvLibrary/Kmerize/dsk/thirdparty/gatb-core/gatb-core/src/gatb/kmer/impl/DebloomMinimizerAlgorithm.hpp | cwright7101/llvm_sarvavid | 7567d617a7be78fecfde71ab04ebd8e9506a64e4 | [
"MIT"
] | null | null | null | SarvLibrary/Kmerize/dsk/thirdparty/gatb-core/gatb-core/src/gatb/kmer/impl/DebloomMinimizerAlgorithm.hpp | cwright7101/llvm_sarvavid | 7567d617a7be78fecfde71ab04ebd8e9506a64e4 | [
"MIT"
] | null | null | null | /*****************************************************************************
* GATB : Genome Assembly Tool Box
* Copyright (C) 2014 INRIA
* Authors: R.Chikhi, G.Rizk, E.Drezen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public ... | 36.89011 | 82 | 0.541257 | [
"model"
] |
ad8eb666b9f6bb78baa8fdfe806ecb7deb6f5e1d | 7,261 | hpp | C++ | include/Hord/Object/Unit.hpp | komiga/hord | 32be8ffb11bd74959c5cd5254e36d87f224b6f60 | [
"MIT"
] | null | null | null | include/Hord/Object/Unit.hpp | komiga/hord | 32be8ffb11bd74959c5cd5254e36d87f224b6f60 | [
"MIT"
] | null | null | null | include/Hord/Object/Unit.hpp | komiga/hord | 32be8ffb11bd74959c5cd5254e36d87f224b6f60 | [
"MIT"
] | null | null | null | /**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
@file
@brief Object base class.
@ingroup object
*/
#pragma once
#include <Hord/config.hpp>
#include <Hord/aux.hpp>
#include <Hord/traits.hpp>
#include <Hord/String.hpp>
#include <Hord/utility.hpp>
#include <Hord/IO/Defs.hpp>
#include <Hord/... | 16.577626 | 72 | 0.674976 | [
"object"
] |
ad8fccbaac9310314235cd7a4b66e53bbf52b21c | 214 | hpp | C++ | src/utils/extents.hpp | lanl/shoccs | 6fd72a612e872df62749eec6b010bd1f1e5ee1e7 | [
"BSD-3-Clause"
] | null | null | null | src/utils/extents.hpp | lanl/shoccs | 6fd72a612e872df62749eec6b010bd1f1e5ee1e7 | [
"BSD-3-Clause"
] | 2 | 2022-02-18T22:43:06.000Z | 2022-02-18T22:43:19.000Z | src/utils/extents.hpp | lanl/shoccs | 6fd72a612e872df62749eec6b010bd1f1e5ee1e7 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "index_extents.hpp"
#include "mesh/mesh_types.hpp"
#include <sol/forward.hpp>
namespace ccs
{
std::optional<std::pair<index_extents, domain_extents>>
extents_from_lua(const sol::table&);
}
| 16.461538 | 55 | 0.761682 | [
"mesh"
] |
ad920ca5cc5ab22501258b4657830540fb9aaaec | 2,187 | cpp | C++ | src/goto-instrument/source_lines.cpp | clayne/cbmc | e78eacff0d84646becbdd8287386d489ae268b90 | [
"BSD-4-Clause"
] | null | null | null | src/goto-instrument/source_lines.cpp | clayne/cbmc | e78eacff0d84646becbdd8287386d489ae268b90 | [
"BSD-4-Clause"
] | null | null | null | src/goto-instrument/source_lines.cpp | clayne/cbmc | e78eacff0d84646becbdd8287386d489ae268b90 | [
"BSD-4-Clause"
] | null | null | null | /*******************************************************************\
Module: Source Lines
Author: Mark R. Tuttle
\*******************************************************************/
/// \file
/// Set of source code lines contributing to a basic block
#include "source_lines.h"
#include <util/format_number_range.... | 28.776316 | 79 | 0.587106 | [
"vector"
] |
74f57d0e4912386209c815b7b1732cae7a945ae5 | 4,591 | cpp | C++ | src/cppipc/common/message_types.cpp | shreyasvj25/turicreate | 32e84ca16aef8d04aff3d49ae9984bd49326bffd | [
"BSD-3-Clause"
] | 1 | 2018-12-15T20:03:51.000Z | 2018-12-15T20:03:51.000Z | src/cppipc/common/message_types.cpp | shreyasvj25/turicreate | 32e84ca16aef8d04aff3d49ae9984bd49326bffd | [
"BSD-3-Clause"
] | 3 | 2021-09-08T02:18:00.000Z | 2022-03-12T00:39:44.000Z | src/cppipc/common/message_types.cpp | ZeroInfinite/turicreate | dd210c2563930881abd51fd69cb73007955b33fd | [
"BSD-3-Clause"
] | 1 | 2019-06-01T18:49:28.000Z | 2019-06-01T18:49:28.000Z | /* Copyright © 2017 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
*/
#include <cppipc/common/message_types.hpp>
#include <serialization/serialization_includes.hpp>
names... | 28.515528 | 86 | 0.692442 | [
"object"
] |
74ff1ac2c93e8351efa6b2cd32c4ecb0ea72f1fb | 499 | hpp | C++ | Inventario/node_modules/node-sass/src/libsass/src/backtrace.hpp | alvarosanmartinh/Duoc-Inventario | e46a57b8cb4071800ee2b494b39e96a31be69c49 | [
"MIT"
] | null | null | null | Inventario/node_modules/node-sass/src/libsass/src/backtrace.hpp | alvarosanmartinh/Duoc-Inventario | e46a57b8cb4071800ee2b494b39e96a31be69c49 | [
"MIT"
] | null | null | null | Inventario/node_modules/node-sass/src/libsass/src/backtrace.hpp | alvarosanmartinh/Duoc-Inventario | e46a57b8cb4071800ee2b494b39e96a31be69c49 | [
"MIT"
] | null | null | null | #ifndef SASS_BACKTRACE_H
#define SASS_BACKTRACE_H
#include <vector>
#include <sstream>
#include "file.hpp"
#include "position.hpp"
namespace Sass {
struct Backtrace {
ParserState pstate;
std::string caller;
Backtrace(ParserState pstate, std::string c = "")
: pstate(pstate),
... | 16.633333 | 84 | 0.641283 | [
"vector"
] |
2d05576c2750925058b4bc36ac1e2d72ba2071bc | 6,027 | cc | C++ | utils/print.cc | abcinje/FAWN-KV | 6c557b3793010eb0b2f08d4bd0d47b5e68801080 | [
"Apache-2.0"
] | null | null | null | utils/print.cc | abcinje/FAWN-KV | 6c557b3793010eb0b2f08d4bd0d47b5e68801080 | [
"Apache-2.0"
] | null | null | null | utils/print.cc | abcinje/FAWN-KV | 6c557b3793010eb0b2f08d4bd0d47b5e68801080 | [
"Apache-2.0"
] | null | null | null | /* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include <iostream>
#include <stdio.h>
#include <unistd.h>
#include "print.h"
void bytes_into_hex_string(const u_char *data, u_int len, string& dststr)
{
static const char hexes[] = "0123456789ABCDEF";
dststr.reserve(dststr.size() + len*2);
... | 24.302419 | 114 | 0.557657 | [
"vector"
] |
2d078c0874b26fadf9a94673e9926b6d6a289cc1 | 38,144 | cpp | C++ | webmsplit/webmsplitfilter.cpp | roh0sun/webmdshow | 311dd9686dc896baa4d418c6da79938e94799e55 | [
"BSD-3-Clause"
] | null | null | null | webmsplit/webmsplitfilter.cpp | roh0sun/webmdshow | 311dd9686dc896baa4d418c6da79938e94799e55 | [
"BSD-3-Clause"
] | null | null | null | webmsplit/webmsplitfilter.cpp | roh0sun/webmdshow | 311dd9686dc896baa4d418c6da79938e94799e55 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2010 The WebM project authors. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing p... | 22.464075 | 94 | 0.557545 | [
"vector"
] |
2d08ae4a286b33d24c683f5cf220828ec9ee3613 | 727 | hpp | C++ | Luna Programming Language/lexer.hpp | OnyxFlames/Luna-Programming-Language | 56dd384caa115be7ba95cbcd3722e39fead98916 | [
"MIT"
] | 3 | 2018-01-21T21:41:32.000Z | 2021-12-24T14:29:46.000Z | Luna Programming Language/lexer.hpp | OnyxFlames/Luna-Programming-Language | 56dd384caa115be7ba95cbcd3722e39fead98916 | [
"MIT"
] | null | null | null | Luna Programming Language/lexer.hpp | OnyxFlames/Luna-Programming-Language | 56dd384caa115be7ba95cbcd3722e39fead98916 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include "token.hpp"
class Lexer
{
private:
std::ifstream input;
std::vector<token> *tokens;
bool is_keyword(const std::string &word, std::vector<std::string> word_pool);
void handle_identifier(std::string val, int start, in... | 22.71875 | 78 | 0.737276 | [
"vector"
] |
2d0950cb2bb2864b061c77149fe6d2978ded9483 | 2,308 | hxx | C++ | OCC/inc/BVH_Set.hxx | cy15196/FastCAE | 0870752ec2e590f3ea6479e909ebf6c345ac2523 | [
"BSD-3-Clause"
] | 117 | 2020-03-07T12:07:05.000Z | 2022-03-27T07:35:22.000Z | opencascade/BVH_Set.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 33 | 2019-11-13T18:09:51.000Z | 2021-11-26T17:24:12.000Z | opencascade/BVH_Set.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 76 | 2020-03-16T01:47:46.000Z | 2022-03-21T16:37:07.000Z | // Created on: 2013-12-20
// Created by: Denis BOGOLEPOV
// Copyright (c) 2013-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 ... | 28.493827 | 81 | 0.659879 | [
"geometry",
"object",
"vector"
] |
2d0a2828747fa06be9129e41b8ff60b6188c2f2a | 10,934 | cpp | C++ | level_zero/core/test/unit_tests/sources/driver/test_driver.cpp | 8tab/compute-runtime | 71bd96ad7184df83c7af04ffa8e0d6678ab26f99 | [
"MIT"
] | null | null | null | level_zero/core/test/unit_tests/sources/driver/test_driver.cpp | 8tab/compute-runtime | 71bd96ad7184df83c7af04ffa8e0d6678ab26f99 | [
"MIT"
] | null | null | null | level_zero/core/test/unit_tests/sources/driver/test_driver.cpp | 8tab/compute-runtime | 71bd96ad7184df83c7af04ffa8e0d6678ab26f99 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/os_interface/device_factory.h"
#include "shared/source/os_interface/hw_info_config.h"
#include "shared/test/unit_test/helpers/debug_manager_state_restore.h"
#include "test.h"
#include "level_zero/core/source/... | 43.217391 | 181 | 0.715017 | [
"vector"
] |
2d17db9d443705d2f756b1bc3da32e50b39e5d9c | 5,155 | cpp | C++ | DemoApps/GLES2/Blur/source/TestScene.cpp | alejandrolozano2/OpenGL_DemoFramework | 5fd85f05c98cc3d0c0a68bac438035df8cabaee7 | [
"MIT",
"BSD-3-Clause"
] | 3 | 2019-01-19T20:21:24.000Z | 2021-08-10T02:11:32.000Z | DemoApps/GLES2/Blur/source/TestScene.cpp | alejandrolozano2/OpenGL_DemoFramework | 5fd85f05c98cc3d0c0a68bac438035df8cabaee7 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | DemoApps/GLES2/Blur/source/TestScene.cpp | alejandrolozano2/OpenGL_DemoFramework | 5fd85f05c98cc3d0c0a68bac438035df8cabaee7 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-08-10T02:11:33.000Z | 2021-08-10T02:11:33.000Z | /****************************************************************************************************************************************************
* Copyright (c) 2015 Freescale Semiconductor, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permi... | 39.653846 | 149 | 0.685742 | [
"vector"
] |
2d202e6a5d90f79e4a49ce8b36aca1f17a26c195 | 10,406 | cpp | C++ | source/world/skeletal_mesh.cpp | zhaijialong/RealEngine | d3e57c85591e88875951d101a30f640658ef92db | [
"MIT"
] | 14 | 2022-03-10T05:49:25.000Z | 2022-03-26T10:35:07.000Z | source/world/skeletal_mesh.cpp | zhaijialong/RealEngine | d3e57c85591e88875951d101a30f640658ef92db | [
"MIT"
] | null | null | null | source/world/skeletal_mesh.cpp | zhaijialong/RealEngine | d3e57c85591e88875951d101a30f640658ef92db | [
"MIT"
] | null | null | null | #include "skeletal_mesh.h"
#include "skeleton.h"
#include "animation.h"
#include "mesh_material.h"
#include "resource_cache.h"
#include "core/engine.h"
SkeletalMeshData::~SkeletalMeshData()
{
ResourceCache* cache = ResourceCache::GetInstance();
cache->RelaseSceneBuffer(uvBufferAddress);
cache->RelaseScene... | 34.230263 | 154 | 0.687007 | [
"mesh",
"geometry",
"render",
"model",
"transform"
] |
2d268b9ae5850513a45c3b50fc2471673296c133 | 1,345 | hpp | C++ | runtime/src/aderite/scene/selectors/TagSelector.hpp | nfwGytautas/aderite | 87a6a5c24a6dcaca80088cb7a4fca1f846a7f22c | [
"MIT"
] | null | null | null | runtime/src/aderite/scene/selectors/TagSelector.hpp | nfwGytautas/aderite | 87a6a5c24a6dcaca80088cb7a4fca1f846a7f22c | [
"MIT"
] | null | null | null | runtime/src/aderite/scene/selectors/TagSelector.hpp | nfwGytautas/aderite | 87a6a5c24a6dcaca80088cb7a4fca1f846a7f22c | [
"MIT"
] | null | null | null | #pragma once
#include "aderite/scene/EntitySelector.hpp"
namespace aderite {
namespace scene {
/**
* @brief Entity selector where entities that match the tag list are selected
*/
class TagSelector final : public EntitySelector {
public:
/**
* @brief Add tag to the selector
* @param tag Tag to add
... | 25.865385 | 92 | 0.674349 | [
"vector"
] |
2d274a82ef3731d25b5f5dbac7095c8372a1f013 | 2,328 | hpp | C++ | lib/DataBase.hpp | mensinda/modbusSMA | 0c2ddd28123ee6a3032fc82d5be8e9c6cfd9a979 | [
"Apache-2.0"
] | 1 | 2020-03-15T18:53:26.000Z | 2020-03-15T18:53:26.000Z | lib/DataBase.hpp | mensinda/modbusSMA | 0c2ddd28123ee6a3032fc82d5be8e9c6cfd9a979 | [
"Apache-2.0"
] | null | null | null | lib/DataBase.hpp | mensinda/modbusSMA | 0c2ddd28123ee6a3032fc82d5be8e9c6cfd9a979 | [
"Apache-2.0"
] | 1 | 2022-03-14T11:06:26.000Z | 2022-03-14T11:06:26.000Z | //! \file
/*
* Copyright (C) 2018 Daniel Mensinger
*
* 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 la... | 27.388235 | 113 | 0.687715 | [
"vector"
] |
2d3138b994fd0406644c79cc36bbc9f38b7d080c | 74,049 | cpp | C++ | Compile/src/SpirVProcessor.cpp | akb825/ModularShaderLanguage | 5116afac2a27db5d3e62fac38353fce701c8997b | [
"Apache-2.0"
] | 6 | 2018-12-06T10:17:24.000Z | 2020-09-20T16:26:47.000Z | Compile/src/SpirVProcessor.cpp | akb825/ModularShaderLanguage | 5116afac2a27db5d3e62fac38353fce701c8997b | [
"Apache-2.0"
] | 2 | 2020-02-08T09:32:06.000Z | 2020-03-30T02:11:21.000Z | Compile/src/SpirVProcessor.cpp | akb825/ModularShaderLanguage | 5116afac2a27db5d3e62fac38353fce701c8997b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2016-2019 Aaron Barany
*
* 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 agre... | 26.780832 | 98 | 0.651758 | [
"geometry",
"vector"
] |
2d314239c23b81fe1a21155af797676bf620b7a6 | 48,194 | cpp | C++ | deps/opensubdiv-3.4.0/opensubdiv/vtr/refinement.cpp | julescmay/LuxCore | 3a6233f37afaf064300f52854715c0ab9ca2103e | [
"Apache-2.0"
] | 1,463 | 2015-01-02T08:23:51.000Z | 2022-03-29T13:44:29.000Z | deps/opensubdiv-3.4.0/opensubdiv/vtr/refinement.cpp | julescmay/LuxCore | 3a6233f37afaf064300f52854715c0ab9ca2103e | [
"Apache-2.0"
] | 531 | 2017-12-03T17:21:06.000Z | 2022-03-20T19:22:11.000Z | deps/opensubdiv-3.4.0/opensubdiv/vtr/refinement.cpp | julescmay/LuxCore | 3a6233f37afaf064300f52854715c0ab9ca2103e | [
"Apache-2.0"
] | 429 | 2015-01-09T00:54:52.000Z | 2022-03-31T20:32:55.000Z | //
// Copyright 2014 DreamWorks Animation LLC.
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted an... | 38.49361 | 120 | 0.645205 | [
"mesh"
] |
2d31c9bbedd580d064d08bd86a69a390d27b22a4 | 5,090 | cxx | C++ | odb-tests-2.4.0/boost/sqlite/date-time/driver.cxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-tests-2.4.0/boost/sqlite/date-time/driver.cxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-tests-2.4.0/boost/sqlite/date-time/driver.cxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | // file : boost/sqlite/date-time/driver.cxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
// Test boost date/time type persistence. SQLite version.
//
#include <memory> // std::auto_ptr
#include <cassert>
#include <iostream>
#include <o... | 24.238095 | 77 | 0.634578 | [
"object"
] |
2d321a6eacd4800421717ec0b3454f8bc6c1eeff | 36,622 | cpp | C++ | Development/Src/Engine/Src/UnkDOP.cpp | addstone/unrealengine3 | 4579d360dfd52b12493292120b27bb430f978fc8 | [
"FSFAP"
] | 37 | 2020-05-22T18:18:47.000Z | 2022-03-19T06:51:54.000Z | Development/Src/Engine/Src/UnkDOP.cpp | AdanosGotoman/unrealengine3 | 4579d360dfd52b12493292120b27bb430f978fc8 | [
"FSFAP"
] | null | null | null | Development/Src/Engine/Src/UnkDOP.cpp | AdanosGotoman/unrealengine3 | 4579d360dfd52b12493292120b27bb430f978fc8 | [
"FSFAP"
] | 27 | 2020-05-17T01:03:30.000Z | 2022-03-06T19:10:14.000Z | /*=============================================================================
UnkDOP.cpp: k-DOP collision
Copyright 2004 Epic Games, Inc. All Rights Reserved.
Revision history:
* Created by Joe Graf
=============================================================================*/
#include "EnginePrivate.h"
#includ... | 34.258185 | 174 | 0.622549 | [
"mesh",
"vector",
"transform"
] |
2d37286db6f80e9f3e4f3b213f2e30a074aed164 | 3,211 | cc | C++ | stats/src/builder.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 40 | 2015-03-10T07:55:39.000Z | 2021-06-11T10:13:56.000Z | stats/src/builder.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 297 | 2015-04-30T10:02:04.000Z | 2022-03-09T13:31:54.000Z | stats/src/builder.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 29 | 2015-08-03T10:04:15.000Z | 2021-11-25T12:21:00.000Z | /*
* Copyright 2011 - 2021 Centreon (https://www.centreon.com/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | 24.7 | 80 | 0.650576 | [
"object",
"vector"
] |
2d3a56c63084b777fb03d676f104ac4297a17419 | 4,201 | cpp | C++ | android/spatialiteandroidlibrary/src/main/jni/geos-3.2.2/source/util/Profiler.cpp | fedort/react-native-spatial | f12fe12c567ecb6c088a2b0cb9468c2f28d4cbba | [
"MIT"
] | null | null | null | android/spatialiteandroidlibrary/src/main/jni/geos-3.2.2/source/util/Profiler.cpp | fedort/react-native-spatial | f12fe12c567ecb6c088a2b0cb9468c2f28d4cbba | [
"MIT"
] | null | null | null | android/spatialiteandroidlibrary/src/main/jni/geos-3.2.2/source/util/Profiler.cpp | fedort/react-native-spatial | f12fe12c567ecb6c088a2b0cb9468c2f28d4cbba | [
"MIT"
] | 1 | 2021-01-13T17:59:17.000Z | 2021-01-13T17:59:17.000Z | /**********************************************************************
* $Id: Profiler.cpp 1820 2006-09-06 16:54:23Z mloskot $
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This is free software; you can redistribute and/or modify it u... | 20.492683 | 124 | 0.625089 | [
"geometry"
] |
2d47eb7a213293c775b077676f3054ba54d90d63 | 3,506 | cpp | C++ | Luogu/4180.cpp | miaowh/ICPC | c1f141ea005fb5d9582878e154c49f22b0f217ff | [
"MIT"
] | 1 | 2021-10-03T07:25:22.000Z | 2021-10-03T07:25:22.000Z | Luogu/4180.cpp | MiaoWH/ICPC | c1f141ea005fb5d9582878e154c49f22b0f217ff | [
"MIT"
] | null | null | null | Luogu/4180.cpp | MiaoWH/ICPC | c1f141ea005fb5d9582878e154c49f22b0f217ff | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int maxn = 4e5 + 5;
using ll = long long;
struct Edge {
int u, v, w;
bool operator<(const Edge &rhs) const { return w < rhs.w; }
};
vector<Edge> edges;
int n, m;
struct LCT {
int val[maxn], max[maxn], smax[maxn]; // 基于点权
int rev[maxn], ch[maxn][2], fa[maxn];... | 24.517483 | 78 | 0.478893 | [
"vector"
] |
2d4a9e8f5e81dc18180410b45132a8d3feb68582 | 889 | cpp | C++ | 322.cpp | adlternative/algorithm-Brush | 0ad801ae519a0d1258faac364a8802e435397899 | [
"Apache-2.0"
] | null | null | null | 322.cpp | adlternative/algorithm-Brush | 0ad801ae519a0d1258faac364a8802e435397899 | [
"Apache-2.0"
] | null | null | null | 322.cpp | adlternative/algorithm-Brush | 0ad801ae519a0d1258faac364a8802e435397899 | [
"Apache-2.0"
] | null | null | null | //
// Created by adl on 2020/11/30.
//
#include<bits/stdc++.h>
using namespace std;
class Solution {
public:
int coinChange(vector<int> &coins, int amount) {
if (amount == 0) {
return 0;
} else if (amount < 0) {
return -1;
}
int size = coins.size();
... | 22.225 | 52 | 0.434196 | [
"vector"
] |
2d4b68c28d18b6e02a0b2b6d2288ecffe17b3d3a | 5,091 | cc | C++ | src/Battery.cc | NobodyXu/swaystatus | 18d131631ac25a92a78630e033e89d751ebe3306 | [
"MIT"
] | 18 | 2021-02-16T09:06:42.000Z | 2021-12-09T19:08:02.000Z | src/Battery.cc | NobodyXu/swaystatus | 18d131631ac25a92a78630e033e89d751ebe3306 | [
"MIT"
] | 18 | 2021-02-23T06:46:22.000Z | 2021-07-26T06:10:13.000Z | src/Battery.cc | NobodyXu/swaystatus | 18d131631ac25a92a78630e033e89d751ebe3306 | [
"MIT"
] | 1 | 2021-07-27T03:14:48.000Z | 2021-07-27T03:14:48.000Z | #ifndef _GNU_SOURCE
# define _GNU_SOURCE /* For strchrnul, strcasestr */
#endif
#include <cstddef>
#include <cstring>
#include <err.h>
#include <fcntl.h> /* For O_RDONLY */
#include <unistd.h> /* For close, lseek and fstat */
#include <utility>
#include "formatting/fmt/include/fmt/core.h"
#include "ut... | 27.518919 | 101 | 0.605775 | [
"vector"
] |
2d536c570f782282e3a804ac1897b4e057d38efe | 14,363 | hpp | C++ | bench/diffusion/diffusion.hpp | frRoy/Numerical | 97e2167cf794eceaeba395bb1958fee72d8cbecf | [
"MIT"
] | null | null | null | bench/diffusion/diffusion.hpp | frRoy/Numerical | 97e2167cf794eceaeba395bb1958fee72d8cbecf | [
"MIT"
] | null | null | null | bench/diffusion/diffusion.hpp | frRoy/Numerical | 97e2167cf794eceaeba395bb1958fee72d8cbecf | [
"MIT"
] | null | null | null | /**
* @file diffusion.hpp
* @brief Collections of diffusion problem, definitions.
* @author Francois Roy
* @date 12/01/2019
*/
#ifndef DIFFUSION_H
#define DIFFUSION_H
#include <string>
#include <Eigen/Core>
#include "spdlog/spdlog.h"
#include "numerical/fdm/fdm.hpp"
namespace bench{
n... | 34.526442 | 80 | 0.599248 | [
"mesh"
] |
2d541b599f54718a855e4c9a75d8cb5cf5f0df9b | 1,893 | cpp | C++ | Service_lane.cpp | power-factory/hackerrank | a0f6c6a40a1eff4f0430fd866061378ebd2b5204 | [
"MIT"
] | null | null | null | Service_lane.cpp | power-factory/hackerrank | a0f6c6a40a1eff4f0430fd866061378ebd2b5204 | [
"MIT"
] | null | null | null | Service_lane.cpp | power-factory/hackerrank | a0f6c6a40a1eff4f0430fd866061378ebd2b5204 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
string ltrim(const string &);
string rtrim(const string &);
vector<string> split(const string &);
/*
* Complete the 'serviceLane' function below.
*
* The function is expected to return an INTEGER_ARRAY.
* The function accepts following parameters:
* 1. INTEGER n
*... | 21.511364 | 103 | 0.619123 | [
"vector"
] |
2d5ab43dd005ea8bbbd88bb84f0febb3684c29ee | 13,779 | cpp | C++ | 002.cpp | Mateorid/BI-PA2 | 0f77d20f061f1cad2829a2401c8891a63333629d | [
"MIT"
] | null | null | null | 002.cpp | Mateorid/BI-PA2 | 0f77d20f061f1cad2829a2401c8891a63333629d | [
"MIT"
] | null | null | null | 002.cpp | Mateorid/BI-PA2 | 0f77d20f061f1cad2829a2401c8891a63333629d | [
"MIT"
] | null | null | null | #ifndef __PROGTEST__
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cassert>
#include <cstring>
#include <iostream>
#include <iomanip>
#include <string>
#include <utility>
#include <vector>
#include <memory>
#include <functional>
#include <stdexcept>
#include <algorithm>
using namespace std;
#endif /... | 33.938424 | 162 | 0.625735 | [
"vector"
] |
2d5d084a2458192e9ddd7f501219d9039292e80b | 7,342 | cc | C++ | software/cpp/test/parquetwriter_test.cc | fnonnenmacher/fast-p2a | e76d604b642794670e544f617b1549baf76266ec | [
"Apache-2.0"
] | 1 | 2021-12-18T22:32:48.000Z | 2021-12-18T22:32:48.000Z | software/cpp/test/parquetwriter_test.cc | fnonnenmacher/fast-p2a | e76d604b642794670e544f617b1549baf76266ec | [
"Apache-2.0"
] | 6 | 2021-08-20T12:27:26.000Z | 2021-08-31T16:01:24.000Z | software/cpp/test/parquetwriter_test.cc | fnonnenmacher/fast-p2a | e76d604b642794670e544f617b1549baf76266ec | [
"Apache-2.0"
] | 2 | 2020-06-08T16:48:40.000Z | 2021-08-31T16:20:04.000Z | // 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, software
// distributed ... | 32.201754 | 123 | 0.65854 | [
"vector"
] |
2d6a6a050b29957523173f3f3c12d8d071b4b401 | 16,937 | hpp | C++ | lib/mtl4/boost/numeric/mtl/vector/crtp_base_vector.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | 2 | 2018-07-04T16:44:04.000Z | 2021-01-03T07:26:27.000Z | lib/mtl4/boost/numeric/mtl/vector/crtp_base_vector.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | null | null | null | lib/mtl4/boost/numeric/mtl/vector/crtp_base_vector.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | null | null | null | // Software License for MTL
//
// Copyright (c) 2007 The Trustees of Indiana University.
// 2008 Dresden University of Technology and the Trustees of Indiana University.
// 2010 SimuNova UG (haftungsbeschränkt), www.simunova.com.
// All rights reserved.
// Authors: Peter Gottschling and And... | 30.517117 | 119 | 0.708685 | [
"vector"
] |
06235268b117e9470ffd87c3671e7308d16acc68 | 1,835 | cpp | C++ | cpp/leetcodes/Kth_Smallest_Element_in_a_BST.cpp | shhuan/algorithms | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | [
"MIT"
] | null | null | null | cpp/leetcodes/Kth_Smallest_Element_in_a_BST.cpp | shhuan/algorithms | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | [
"MIT"
] | null | null | null | cpp/leetcodes/Kth_Smallest_Element_in_a_BST.cpp | shhuan/algorithms | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | [
"MIT"
] | 1 | 2022-03-09T04:52:55.000Z | 2022-03-09T04:52:55.000Z | /*
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it.
Note:
You may assume k is always valid, 1 ? k ? BST's total elements.
Follow up:
What if the BST is modified (insert/delete operations) often and you need to find the kth smallest frequently? How would you optimize the... | 24.797297 | 158 | 0.554768 | [
"vector"
] |
0625caa1ada5e88a6d6fc34346ad7092a089930a | 47,649 | cpp | C++ | emulator/src/frontend/mame/ui/viewgfx.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/frontend/mame/ui/viewgfx.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/frontend/mame/ui/viewgfx.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:BSD-3-Clause
// copyright-holders:Nicola Salmoria, Aaron Giles, Nathan Woods
/*********************************************************************
ui/viewgfx.cpp
Internal graphics viewer.
*********************************************************************/
#include "emu.h"
#include "ui/ui.h"
#... | 35.718891 | 185 | 0.655963 | [
"render"
] |
062660f6dfba2b90f8abb64b3c5db47866f8827d | 1,791 | cpp | C++ | tests/unit/model/graph_handle_test.cpp | AO-StreetArt/CLyman | b4f3c6fce1c41fb47a6a9d89bb40c05466d0d092 | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2018-09-14T13:29:03.000Z | 2018-09-14T13:29:03.000Z | tests/unit/model/graph_handle_test.cpp | AO-StreetArt/CLyman | b4f3c6fce1c41fb47a6a9d89bb40c05466d0d092 | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 62 | 2016-04-18T06:31:45.000Z | 2019-08-22T23:55:22.000Z | tests/unit/model/graph_handle_test.cpp | AO-StreetArt/CLyman | b4f3c6fce1c41fb47a6a9d89bb40c05466d0d092 | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*
Apache2 License Notice
Copyright 2017 Alex Barry
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 wr... | 37.3125 | 72 | 0.731435 | [
"vector"
] |
062d1c4d63ac120db0bf8d87ac3d3ee07a6a70d7 | 601 | cpp | C++ | CodeForces/Contest/Good Bye 2016/A/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | CodeForces/Contest/Good Bye 2016/A/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | CodeForces/Contest/Good Bye 2016/A/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<ctime>
#include<cstring>
#include<algorithm>
#include<vector>
#include<map>
#include<set>
#include<queue>
#define cls(a) memset(a,0,sizeof(a))
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define rg register
#... | 18.212121 | 47 | 0.660566 | [
"vector"
] |
063208e3fad72a09f54a51a65804cbc8b3dca2ad | 1,269 | cpp | C++ | test/unit/math/prim/fun/linspaced_array_test.cpp | HaoZeke/math | fdf7f70dceed60f3b3f93137c6ac123a457b80a3 | [
"BSD-3-Clause"
] | 1 | 2020-05-18T13:10:50.000Z | 2020-05-18T13:10:50.000Z | test/unit/math/prim/fun/linspaced_array_test.cpp | HaoZeke/math | fdf7f70dceed60f3b3f93137c6ac123a457b80a3 | [
"BSD-3-Clause"
] | 2 | 2019-07-23T12:45:30.000Z | 2020-05-01T20:43:03.000Z | test/unit/math/prim/fun/linspaced_array_test.cpp | SteveBronder/math | 3f21445458866897842878f65941c6bcb90641c2 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/prim.hpp>
#include <test/unit/math/prim/fun/expect_matrix_eq.hpp>
#include <gtest/gtest.h>
#include <limits>
#include <vector>
void expect_linspaced_array(int K, double low, double high,
const std::vector<double>& expected) {
std::vector<double> found = stan::math::lin... | 34.297297 | 72 | 0.698188 | [
"vector"
] |
063b131861e9aafebdd80ad075b4ddb1265fca63 | 751 | hpp | C++ | src/daemon/daemon.hpp | cognitom/processwarp | 1c70e76578821907fa8ab28923041300232d32d2 | [
"MIT"
] | null | null | null | src/daemon/daemon.hpp | cognitom/processwarp | 1c70e76578821907fa8ab28923041300232d32d2 | [
"MIT"
] | null | null | null | src/daemon/daemon.hpp | cognitom/processwarp | 1c70e76578821907fa8ab28923041300232d32d2 | [
"MIT"
] | null | null | null | #pragma once
#include <uv.h>
#include <picojson.h>
#include <string>
#include "daemon_define.hpp"
#include "logger_syslog.hpp"
namespace processwarp {
class Daemon {
public:
Daemon();
int entry(int argc, char* argv[]);
private:
/** Syslog logger. */
Logger::Syslog logger;
/** Daemon run mode. */
Daem... | 20.297297 | 60 | 0.685752 | [
"object"
] |
063e0bcbc3cd4466ab71e56d6d5b71454cdf57f5 | 907 | cpp | C++ | basespecs.cpp | devkral/simplegraph | ffb90576c6fa03237abdc1cb77ae1011889e9668 | [
"BSD-3-Clause"
] | null | null | null | basespecs.cpp | devkral/simplegraph | ffb90576c6fa03237abdc1cb77ae1011889e9668 | [
"BSD-3-Clause"
] | null | null | null | basespecs.cpp | devkral/simplegraph | ffb90576c6fa03237abdc1cb77ae1011889e9668 | [
"BSD-3-Clause"
] | null | null | null |
#include <iostream>
#include "basespecs.h"
namespace sgraph{
debugactor::debugactor(uint8_t loglevel) : sgactor(0,-1, 1, 1) {
this->loglevel=loglevel;
}
void debugactor::enter(const std::vector<sgstreamspec*> &in,const std::vector<std::string> &out)
{
if (out.size()>0)
{
throw(sgraphException("outstreams a... | 19.297872 | 96 | 0.635061 | [
"vector"
] |
063ecebe553c964e7a26c40a59fc03f4e9b34183 | 9,904 | cpp | C++ | Arduino/Arduino_E-Motion/AndroidAccessory.cpp | pdulapalli/E-Motion | f68a0d33b26d4bd8a195343c11e02741e5a2c838 | [
"Apache-2.0"
] | null | null | null | Arduino/Arduino_E-Motion/AndroidAccessory.cpp | pdulapalli/E-Motion | f68a0d33b26d4bd8a195343c11e02741e5a2c838 | [
"Apache-2.0"
] | null | null | null | Arduino/Arduino_E-Motion/AndroidAccessory.cpp | pdulapalli/E-Motion | f68a0d33b26d4bd8a195343c11e02741e5a2c838 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2011 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 requir... | 28.790698 | 88 | 0.57815 | [
"model"
] |
06422ed3947d5a885885a27b046cdeeee2d8933a | 46,542 | cpp | C++ | src/postgres/backend/utils/sort/tuplestore.cpp | jessesleeping/my_peloton | a19426cfe34a04692a11008eaffc9c3c9b49abc4 | [
"Apache-2.0"
] | 6 | 2017-04-28T00:38:52.000Z | 2018-11-06T07:06:49.000Z | src/postgres/backend/utils/sort/tuplestore.cpp | jessesleeping/my_peloton | a19426cfe34a04692a11008eaffc9c3c9b49abc4 | [
"Apache-2.0"
] | 57 | 2016-03-19T22:27:55.000Z | 2017-07-08T00:41:51.000Z | src/postgres/backend/utils/sort/tuplestore.cpp | eric-haibin-lin/pelotondb | 904d6bbd041a0498ee0e034d4f9f9f27086c3cab | [
"Apache-2.0"
] | 4 | 2016-07-17T20:44:56.000Z | 2018-06-27T01:01:36.000Z | /*-------------------------------------------------------------------------
*
* tuplestore.c
* Generalized routines for temporary tuple storage.
*
* This module handles temporary storage of tuples for purposes such
* as Materialize nodes, hashjoin batch files, etc. It is essentially
* a dumbed-down version of... | 30.320521 | 79 | 0.693481 | [
"object"
] |
06442d32fe70304a05ad0d0eb91fd20c181d0471 | 970 | cpp | C++ | src/gwmessage/GWUnpairResponse.cpp | tacr-iotcloud/base | caa10794b965c578f596d616e9654a6a8ef2c169 | [
"BSD-3-Clause"
] | null | null | null | src/gwmessage/GWUnpairResponse.cpp | tacr-iotcloud/base | caa10794b965c578f596d616e9654a6a8ef2c169 | [
"BSD-3-Clause"
] | null | null | null | src/gwmessage/GWUnpairResponse.cpp | tacr-iotcloud/base | caa10794b965c578f596d616e9654a6a8ef2c169 | [
"BSD-3-Clause"
] | 1 | 2019-01-08T14:48:29.000Z | 2019-01-08T14:48:29.000Z | #include "gwmessage/GWUnpairResponse.h"
using namespace std;
using namespace Poco;
using namespace Poco::JSON;
using namespace BeeeOn;
GWUnpairResponse::GWUnpairResponse():
GWResponse(GWMessageType::UNPAIR_RESPONSE)
{
}
GWUnpairResponse::GWUnpairResponse(const Object::Ptr object):
GWResponse(object)
{
}
void GWUn... | 20.638298 | 71 | 0.71134 | [
"object"
] |
0648dd7fbb45b1d07e375e844ee0dc29d665b891 | 9,414 | hpp | C++ | include/System/Security/Cryptography/X509Certificates/X509Helper2.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/System/Security/Cryptography/X509Certificates/X509Helper2.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/System/Security/Cryptography/X509Certificates/X509Helper2.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
#include "beatsaber-hook/shared/utils/typedefs-array.h... | 69.220588 | 331 | 0.778521 | [
"vector"
] |
064d9af8418cd2531a0f593a0869e09f84f91307 | 4,746 | cpp | C++ | src/caffe/test/test_yolo_bbs_layer.cpp | MSRCCS/Caffe | 2eb05997f077fe93832b89d56ea0cd1ea72e3275 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/test/test_yolo_bbs_layer.cpp | MSRCCS/Caffe | 2eb05997f077fe93832b89d56ea0cd1ea72e3275 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/test/test_yolo_bbs_layer.cpp | MSRCCS/Caffe | 2eb05997f077fe93832b89d56ea0cd1ea72e3275 | [
"BSD-2-Clause"
] | null | null | null | #include <vector>
#include "boost/scoped_ptr.hpp"
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/yolo_bbs_layer.hpp"
#include "caffe/layers/sigmoid_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradie... | 33.659574 | 107 | 0.633165 | [
"vector"
] |
0655e220a6e7332c36a92fdb1830b785d3a7077f | 851 | cpp | C++ | sycl/test/esimd/regression/simd_wrapper.cpp | kathywar/llvm | 5589fdd236b26340d86b3558480296b90bbf744a | [
"Apache-2.0"
] | 61 | 2019-04-12T18:49:57.000Z | 2022-03-19T22:23:16.000Z | sycl/test/esimd/regression/simd_wrapper.cpp | kathywar/llvm | 5589fdd236b26340d86b3558480296b90bbf744a | [
"Apache-2.0"
] | 127 | 2019-04-09T00:55:50.000Z | 2022-03-21T15:35:41.000Z | sycl/test/esimd/regression/simd_wrapper.cpp | kathywar/llvm | 5589fdd236b26340d86b3558480296b90bbf744a | [
"Apache-2.0"
] | 10 | 2019-04-02T18:25:40.000Z | 2022-02-15T07:11:37.000Z | // RUN: %clangxx -fsycl -fsyntax-only -Xclang -verify %s
#include <limits>
#include <sycl/ext/intel/experimental/esimd.hpp>
#include <utility>
// This is a regression test for simd object being non-trivial copy
// constructible. In order to fix it, you need to provide copy constructor for
// SimdWrapper, e.g.:
// S... | 29.344828 | 143 | 0.706228 | [
"object"
] |
065660c521b591a11565f65d94254a970656bcd5 | 1,606 | hpp | C++ | modules/python/src/Aquila/python/nodes.hpp | dtmoodie/Acquilla | b395b7d1338221369f9b0b46c7abc20f7bc5e827 | [
"MIT"
] | null | null | null | modules/python/src/Aquila/python/nodes.hpp | dtmoodie/Acquilla | b395b7d1338221369f9b0b46c7abc20f7bc5e827 | [
"MIT"
] | null | null | null | modules/python/src/Aquila/python/nodes.hpp | dtmoodie/Acquilla | b395b7d1338221369f9b0b46c7abc20f7bc5e827 | [
"MIT"
] | null | null | null | #pragma once
#include "Aquila/core/detail/Export.hpp"
#include <RuntimeObjectSystem/ObjectInterface.h>
#include <RuntimeObjectSystem/shared_ptr.hpp>
#include <vector>
struct IObjectConstructor;
namespace aq
{
class IGraph;
namespace python
{
template <class T>
struct GraphOwnerWrapper
... | 24.333333 | 85 | 0.511208 | [
"vector"
] |
065740ac0612fc0f81a68f3fb31c155983b1eb50 | 770 | cpp | C++ | Codeforces/1000~1999/1251/E2.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | 6 | 2018-12-30T06:16:54.000Z | 2022-03-23T08:03:33.000Z | Codeforces/1000~1999/1251/E2.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | Codeforces/1000~1999/1251/E2.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <queue>
#include <vector>
typedef long long ll;
const int N = 2e5 + 52;
std::priority_queue<int, std::vector<int>, std::greater<int>> pq;
int n, cnt, p[N], m[N], pre[N];
std::vector<int> v[N];
ll ans;
int main() {
for (scanf("%*d"); ~scanf("%d", &n);... | 28.518519 | 84 | 0.509091 | [
"vector"
] |
065868e971c92eb7149c3503aa07b10be7c81e9a | 13,989 | cpp | C++ | Modules/ModelFit/src/Common/mitkModelFitInfo.cpp | SVRTK/MITK | 52252d60e42702e292d188e30f6717fe50c23962 | [
"BSD-3-Clause"
] | null | null | null | Modules/ModelFit/src/Common/mitkModelFitInfo.cpp | SVRTK/MITK | 52252d60e42702e292d188e30f6717fe50c23962 | [
"BSD-3-Clause"
] | null | null | null | Modules/ModelFit/src/Common/mitkModelFitInfo.cpp | SVRTK/MITK | 52252d60e42702e292d188e30f6717fe50c23962 | [
"BSD-3-Clause"
] | null | null | null | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | 32.532558 | 234 | 0.675531 | [
"model"
] |
065c3af845d5a2d1b4d8e90f7c60d1178c5c420e | 6,393 | cpp | C++ | TapInfo.cpp | tap3edit/tap3xml | 65225e823379e73df70817baf68b42cd4e820320 | [
"Unlicense"
] | 5 | 2019-01-14T18:04:29.000Z | 2021-12-16T23:53:16.000Z | TapInfo.cpp | tap3edit/tap3xml | 65225e823379e73df70817baf68b42cd4e820320 | [
"Unlicense"
] | 3 | 2020-04-29T06:28:46.000Z | 2021-11-28T17:02:48.000Z | TapInfo.cpp | tap3edit/tap3xml | 65225e823379e73df70817baf68b42cd4e820320 | [
"Unlicense"
] | 2 | 2020-02-17T13:32:23.000Z | 2020-04-30T08:20:04.000Z | /****************************************************************************
|*
|* tap3xml: both directions XML<->TAP3 Converter.
|*
|* tap3edit Tools (https://github.com/tap3edit)
|*
|* Copyright (C) 2005-2018 Javier Gutierrez. All rights reserved.
|* email address <https://github.com/tap3edit/tap3xml>
|*
|* Perm... | 23.765799 | 112 | 0.523385 | [
"vector"
] |
066549e77b0308b5336c1145db44e5c441a80218 | 1,794 | hpp | C++ | krest/core/AbstractProxyModel.hpp | mwoehlke-kitware/krest | fe83740bd685507e358c4cdfb2438b3e3e70266f | [
"BSD-3-Clause"
] | 1 | 2021-04-06T16:07:59.000Z | 2021-04-06T16:07:59.000Z | krest/core/AbstractProxyModel.hpp | mwoehlke-kitware/krest | fe83740bd685507e358c4cdfb2438b3e3e70266f | [
"BSD-3-Clause"
] | 1 | 2021-01-13T16:49:46.000Z | 2021-01-13T16:49:46.000Z | krest/core/AbstractProxyModel.hpp | mwoehlke-kitware/krest | fe83740bd685507e358c4cdfb2438b3e3e70266f | [
"BSD-3-Clause"
] | 2 | 2021-01-19T15:14:50.000Z | 2021-01-19T15:16:16.000Z | /* This file is part of Krest, and is distributed under the OSI-approved BSD
* 3-Clause License. See top-level LICENSE file or
* https://github.com/Kitware/krest/blob/master/LICENSE for details. */
#ifndef krest_core_AbstractProxyModel_hpp
#define krest_core_AbstractProxyModel_hpp
#include <krest/core/Export.h>
#i... | 28.03125 | 79 | 0.72854 | [
"model"
] |
066abfd7d592f0a1baeed200ed4d1b21f6d8d3c7 | 511 | cpp | C++ | C++/1150.cpp | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | C++/1150.cpp | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | C++/1150.cpp | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
class Solution {
public:
bool isMajorityElement(vector<int>& nums, int target) {
int n=nums.size();
int cnt=0;
for(int i=0;i<n;i++){
if(nums[i]==target) cnt++;
}
return cnt*2>n;
}
};
________... | 31.9375 | 98 | 0.808219 | [
"vector"
] |
0671f785adfc3ab3e19a0664b6b9d66b4da8f38d | 5,267 | cpp | C++ | Classes/Vegolution.cpp | Fahien/vegolution | 27f764e3f51d1e778fe476446938be50b4fd549f | [
"Apache-2.0"
] | 3 | 2016-10-16T13:57:57.000Z | 2016-10-28T09:23:25.000Z | Classes/Vegolution.cpp | Fahien/vegolution | 27f764e3f51d1e778fe476446938be50b4fd549f | [
"Apache-2.0"
] | null | null | null | Classes/Vegolution.cpp | Fahien/vegolution | 27f764e3f51d1e778fe476446938be50b4fd549f | [
"Apache-2.0"
] | null | null | null | #include "Vegolution.h"
#include "SimpleAudioEngine.h"
#include "scene/SplashScene.h"
#include "scene/GameScene.h"
USING_NS_CC;
static Size designSize{ 570, 320 };
// Information about resources
typedef struct tagResource {
// The size that this resource is designed for
Size size;
// If the screen size i... | 34.651316 | 133 | 0.700778 | [
"object",
"vector"
] |
067519d89e115bd88fdab13d425f2f73169bcda9 | 508 | hpp | C++ | Scene.hpp | JzObs/hyperx | 8f7435d54a67dd65de8920099a3712ca309db652 | [
"BSD-3-Clause"
] | null | null | null | Scene.hpp | JzObs/hyperx | 8f7435d54a67dd65de8920099a3712ca309db652 | [
"BSD-3-Clause"
] | null | null | null | Scene.hpp | JzObs/hyperx | 8f7435d54a67dd65de8920099a3712ca309db652 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#ifndef HYPERX_SCENE_HPP
#define HYPERX_SCENE_HPP
#include "Object.hpp"
#include "Renderer.hpp"
#include "Texture.hpp"
#include <array>
class Scene
{
public:
Scene(unsigned int width, unsigned int height);
void AddBackground(Texture&& texture);
void AddCloud(Texture&& texture);
void Draw... | 19.538462 | 51 | 0.712598 | [
"object"
] |
0675d8df263ad36a4babb2343ddf82295a0f3f89 | 2,494 | hpp | C++ | src/algorithms/data_structures/string/valid_palindrome.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2020-07-31T14:13:56.000Z | 2021-02-03T09:51:43.000Z | src/algorithms/data_structures/string/valid_palindrome.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 28 | 2015-09-22T07:38:21.000Z | 2018-10-02T11:00:58.000Z | src/algorithms/data_structures/string/valid_palindrome.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2018-10-11T14:10:50.000Z | 2021-02-27T08:53:50.000Z | #ifndef VALID_PALINDROME_HPP
#define VALID_PALINDROME_HPP
#include <string>
#include <algorithm>
#include <locale>
namespace Algo::DS::String {
class ValidPalindrome {
public:
/*
https://leetcode.com/problems/valid-palindrome/description/
Given a string, determine if it is a palindrome... | 28.022472 | 98 | 0.473136 | [
"transform"
] |
0678edced534e4ed5bcb49afad18859af63c834c | 91,641 | cc | C++ | xapian/xapian-core-1.2.13/tests/termgentest.cc | pgs7179/xapian_modified | 0229c9efb9eca19be4c9f463cd4b793672f24198 | [
"MIT"
] | 2 | 2021-01-13T21:17:42.000Z | 2021-01-13T21:17:42.000Z | xapian/xapian-core-1.2.13/tests/termgentest.cc | Loslove55/tailbench | fbbf3f31e3f0af1bb7db7f07c2e7193b84abb1eb | [
"MIT"
] | null | null | null | xapian/xapian-core-1.2.13/tests/termgentest.cc | Loslove55/tailbench | fbbf3f31e3f0af1bb7db7f07c2e7193b84abb1eb | [
"MIT"
] | null | null | null | /* termgentest.cc: Tests of Xapian::TermGenerator
*
* Copyright (C) 2002,2003,2004,2005,2006,2007,2008,2009,2010 Olly Betts
* Copyright (C) 2007 Lemur Consulting Ltd
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by t... | 106.932322 | 1,726 | 0.618402 | [
"vector",
"model",
"3d"
] |
0687ec08dc67dc896605ba52abc19a877e68dd3f | 8,768 | cc | C++ | alb/src/model/UpdateListenerAttributeRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | alb/src/model/UpdateListenerAttributeRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | alb/src/model/UpdateListenerAttributeRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 47.394595 | 252 | 0.779539 | [
"vector",
"model"
] |
06972df6bf17e830ac725983d8d1217d8ca3a3a7 | 29,823 | cpp | C++ | lib/game_save_gbaimpl.cpp | ncorgan/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 4 | 2017-06-10T13:21:44.000Z | 2019-10-30T21:20:19.000Z | lib/game_save_gbaimpl.cpp | PMArkive/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 12 | 2017-04-05T11:13:34.000Z | 2018-06-03T14:31:03.000Z | lib/game_save_gbaimpl.cpp | PMArkive/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 2 | 2019-01-22T21:02:31.000Z | 2019-10-30T21:20:20.000Z | /*
* Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com)
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/licenses/MIT)
*/
#include "exception_internal.hpp"
#include "game_save_gbaimpl.hpp"
#include "item_bag_gbaimpl.hpp"
#include "item_lis... | 32.772527 | 108 | 0.592529 | [
"vector"
] |
069878f467973aba16587b2841bc3d4cb5c5415b | 5,446 | hpp | C++ | modules/tracking/src/tldTracker.hpp | onearrow/opencv_calib | c6f1922adec976b565aba4b4a54d8790bdce2cfa | [
"BSD-3-Clause"
] | 17 | 2020-03-13T00:10:28.000Z | 2021-09-06T17:13:17.000Z | opencv_contrib-3.4.1/modules/tracking/src/tldTracker.hpp | luoyongheng/opencv_add_contrib | 99fc5c28f5e39ebb1a2b76c592ef72d598c429cb | [
"BSD-3-Clause"
] | 1 | 2020-03-12T08:10:07.000Z | 2020-03-12T08:10:07.000Z | opencv_contrib-3.4.1/modules/tracking/src/tldTracker.hpp | luoyongheng/opencv_add_contrib | 99fc5c28f5e39ebb1a2b76c592ef72d598c429cb | [
"BSD-3-Clause"
] | 3 | 2018-02-26T06:43:33.000Z | 2021-03-18T09:13:30.000Z | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, i... | 31.12 | 139 | 0.720162 | [
"vector",
"model"
] |
0698ae7ea159ae88eb22a55df958cc08716acb23 | 4,511 | cpp | C++ | hello_directx_12/src/hello_d3d9on12/build_window_environment.cpp | kingofthebongo2008/computer-games-sofia-univeristy | 1d54a02a456b3dde5eb5793e01a99a76daf6f033 | [
"Apache-2.0"
] | 5 | 2019-03-29T16:47:47.000Z | 2019-05-08T18:34:50.000Z | hello_directx_12/src/hello_d3d9on12/build_window_environment.cpp | kingofthebongo2008/computer-games-sofia-univeristy | 1d54a02a456b3dde5eb5793e01a99a76daf6f033 | [
"Apache-2.0"
] | 3 | 2019-04-21T08:05:04.000Z | 2019-04-21T08:05:44.000Z | hello_directx_12/src/hello_d3d9on12/build_window_environment.cpp | kingofthebongo2008/computer-games-sofia-univeristy | 1d54a02a456b3dde5eb5793e01a99a76daf6f033 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "pch.h"
#include "build_window_environment.h"
#include <ShellScalingApi.h>
namespace sample
{
inline DXGI_MODE_ROTATION compute_display_rotation(window_environment::DisplayOrientations native_orientation, window_environment::DisplayOrientations current_orientation)
{
DXGI_MODE_RO... | 38.555556 | 175 | 0.649523 | [
"render"
] |
06a0b9147facb8293c325e566d867d769162ca9a | 9,739 | cpp | C++ | ct_optcon/test/dms/oscillator/oscDMSTest.cpp | romainreignier/control-toolbox | 6ee83d401b1a8d2fbfda2646a0ec1ec0e67b7c96 | [
"BSD-2-Clause"
] | 864 | 2019-04-26T18:18:23.000Z | 2022-03-28T17:38:48.000Z | ct_optcon/test/dms/oscillator/oscDMSTest.cpp | romainreignier/control-toolbox | 6ee83d401b1a8d2fbfda2646a0ec1ec0e67b7c96 | [
"BSD-2-Clause"
] | 154 | 2019-04-27T05:32:19.000Z | 2022-03-28T16:17:00.000Z | ct_optcon/test/dms/oscillator/oscDMSTest.cpp | romainreignier/control-toolbox | 6ee83d401b1a8d2fbfda2646a0ec1ec0e67b7c96 | [
"BSD-2-Clause"
] | 249 | 2019-05-03T11:34:36.000Z | 2022-03-14T19:17:05.000Z | /**********************************************************************************************************************
This file is part of the Control Toolbox (https://github.com/ethz-adrl/control-toolbox), copyright by ETH Zurich
Licensed under the BSD-2 license (see LICENSE file in main directory)
*****************... | 35.158845 | 124 | 0.679947 | [
"vector"
] |
a62a828c3fcff12d4cb091fd971cdfc606e05a58 | 945 | cpp | C++ | Range Queries/Static Range Minimum Queries.cpp | DecSP/cses-downloader | 12a8f37665a33f6f790bd2c355f84dea8a0e332c | [
"MIT"
] | 2 | 2022-02-12T12:30:13.000Z | 2022-02-12T13:59:20.000Z | Range Queries/Static Range Minimum Queries.cpp | DecSP/cses-downloader | 12a8f37665a33f6f790bd2c355f84dea8a0e332c | [
"MIT"
] | 2 | 2022-02-12T11:09:41.000Z | 2022-02-12T11:55:49.000Z | Range Queries/Static Range Minimum Queries.cpp | DecSP/cses-downloader | 12a8f37665a33f6f790bd2c355f84dea8a0e332c | [
"MIT"
] | null | null | null | # include <bits/stdc++.h>
# define ll long long
# define all(x) x.begin(), x.end()
# define fastio ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
# define MOD 1000000007
using namespace std;
vector<int> st;
vector<int> arr;
void build(int v,int tl,int tr){
if (tl==tr){
st[v]=arr[tl];
}
... | 21.477273 | 80 | 0.556614 | [
"vector"
] |
a63008fa83fa9fb7c45fcabdec9cccead2a1fd72 | 2,393 | hpp | C++ | hougeo/ttl/collection.hpp | all-in-one-of/hougeo | 7ef770562f0095b59a4ce876976fc5c34a8b5533 | [
"MIT"
] | 9 | 2017-04-24T08:55:48.000Z | 2021-12-21T13:15:02.000Z | hougeo/ttl/collection.hpp | all-in-one-of/hougeo | 7ef770562f0095b59a4ce876976fc5c34a8b5533 | [
"MIT"
] | null | null | null | hougeo/ttl/collection.hpp | all-in-one-of/hougeo | 7ef770562f0095b59a4ce876976fc5c34a8b5533 | [
"MIT"
] | 2 | 2019-02-19T20:16:16.000Z | 2019-08-22T08:51:26.000Z | // collection.hpp
//
// Copyright (c) 2004 Eugene Gladyshev
//
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all copies.
// This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitabil... | 20.62931 | 94 | 0.697869 | [
"vector"
] |
a6300d40bdf357b84d693bb2c59e829abb495fd8 | 1,162 | cpp | C++ | test/test_nvim_eval.cpp | Mu-L/nvui | 568e9cb17970c56cee8909ac4f39ea7ab52bc46a | [
"MIT"
] | 1,503 | 2021-08-29T16:57:50.000Z | 2022-03-29T12:15:09.000Z | test/test_nvim_eval.cpp | Mu-L/nvui | 568e9cb17970c56cee8909ac4f39ea7ab52bc46a | [
"MIT"
] | 94 | 2021-08-29T17:06:23.000Z | 2022-03-26T03:32:20.000Z | test/test_nvim_eval.cpp | Mu-L/nvui | 568e9cb17970c56cee8909ac4f39ea7ab52bc46a | [
"MIT"
] | 44 | 2021-08-29T18:11:09.000Z | 2022-03-14T08:05:35.000Z | #include "nvim.hpp"
#include "utils.hpp"
#include <catch2/catch.hpp>
#include <atomic>
#include <iostream>
#include <memory>
#include <string>
#include <utility>
#include "object.hpp"
using namespace std::chrono_literals;
TEST_CASE("nvim_eval callbacks work", "[eval_cb]")
{
Nvim nvim;
REQUIRE(nvim.running());
S... | 23.714286 | 67 | 0.614458 | [
"object"
] |
a634f8916fd1333c31fe033cf7c31729b0b6a0b8 | 10,361 | cpp | C++ | lib/Instrumenters/Preparer.cpp | sdasgup3/neongoby | 961a043c21c46c139b1f7a4e11d1a3918c84da55 | [
"BSD-3-Clause"
] | 2 | 2020-08-29T15:04:36.000Z | 2020-08-29T15:05:45.000Z | lib/Instrumenters/Preparer.cpp | sdasgup3/neongoby | 961a043c21c46c139b1f7a4e11d1a3918c84da55 | [
"BSD-3-Clause"
] | null | null | null | lib/Instrumenters/Preparer.cpp | sdasgup3/neongoby | 961a043c21c46c139b1f7a4e11d1a3918c84da55 | [
"BSD-3-Clause"
] | null | null | null | // vim: sw=2
#define DEBUG_TYPE "dyn-aa"
#include <string>
#include "llvm/Module.h"
#include "llvm/Pass.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Constants.h"
#include "llvm/Support/CallSite.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/CommandLine.h"
#include... | 32.177019 | 80 | 0.621079 | [
"vector"
] |
a6351431578ef34d89cb899ea0746091a90747ea | 2,267 | hpp | C++ | sourceCode/dotNet4.6/wpf/src/printing/cpp/inc/genericprinterlevelthunk.hpp | csoap/csoap.github.io | 2a8db44eb63425deff147652b65c5912f065334e | [
"Apache-2.0"
] | 5 | 2017-03-03T02:13:16.000Z | 2021-08-18T09:59:56.000Z | sourceCode/dotNet4.6/wpf/src/printing/cpp/inc/genericprinterlevelthunk.hpp | 295007712/295007712.github.io | 25241dbf774427545c3ece6534be6667848a6faf | [
"Apache-2.0"
] | null | null | null | sourceCode/dotNet4.6/wpf/src/printing/cpp/inc/genericprinterlevelthunk.hpp | 295007712/295007712.github.io | 25241dbf774427545c3ece6534be6667848a6faf | [
"Apache-2.0"
] | 4 | 2016-11-15T05:20:12.000Z | 2021-11-13T16:32:11.000Z | #pragma once
#ifndef __GENERICPRINTEREVELTHUNK_HPP__
#define __GENERICPRINTEREVELTHUNK_HPP__
/*++
Copyright (C) 2002 - 2003 Microsoft Corporation
All rights reserved. ... | 26.988095 | 116 | 0.55139 | [
"object"
] |
a6425148f65f4fd933eec08b3df589f3276da37d | 14,680 | cpp | C++ | isis/src/newhorizons/objs/NewHorizonsMvicFrameCamera/NewHorizonsMvicFrameCameraDistortionMap.cpp | ihumphrey-usgs/ISIS3_old | 284cc442b773f8369d44379ee29a9b46961d8108 | [
"Unlicense"
] | 1 | 2019-10-13T15:31:33.000Z | 2019-10-13T15:31:33.000Z | isis/src/newhorizons/objs/NewHorizonsMvicFrameCamera/NewHorizonsMvicFrameCameraDistortionMap.cpp | ihumphrey-usgs/ISIS3_old | 284cc442b773f8369d44379ee29a9b46961d8108 | [
"Unlicense"
] | null | null | null | isis/src/newhorizons/objs/NewHorizonsMvicFrameCamera/NewHorizonsMvicFrameCameraDistortionMap.cpp | ihumphrey-usgs/ISIS3_old | 284cc442b773f8369d44379ee29a9b46961d8108 | [
"Unlicense"
] | 1 | 2021-07-12T06:05:03.000Z | 2021-07-12T06:05:03.000Z | /**
* @file
*
* Unless noted otherwise, the portions of Isis written by the USGS are public
* domain. See individual third-party library and package descriptions for
* intellectual property information,user agreements, and related information.
*
* Although Isis has been used by the USGS, no warranty, ex... | 34.704492 | 115 | 0.661717 | [
"vector"
] |
a64ac58c21ab8547bfb52620de5ebee69bf7a5ed | 13,233 | hpp | C++ | src/thirdparty/stlsoft/STLSoft/include/inetstl/filesystem/ftpdir_sequence.hpp | nneesshh/servercore | 8aceb7c9d5b26976469645a708b4ab804864c03f | [
"MIT"
] | null | null | null | src/thirdparty/stlsoft/STLSoft/include/inetstl/filesystem/ftpdir_sequence.hpp | nneesshh/servercore | 8aceb7c9d5b26976469645a708b4ab804864c03f | [
"MIT"
] | null | null | null | src/thirdparty/stlsoft/STLSoft/include/inetstl/filesystem/ftpdir_sequence.hpp | nneesshh/servercore | 8aceb7c9d5b26976469645a708b4ab804864c03f | [
"MIT"
] | 2 | 2020-11-04T03:07:09.000Z | 2020-11-05T08:14:45.000Z | /* /////////////////////////////////////////////////////////////////////////
* File: inetstl/filesystem/ftpdir_sequence.hpp
*
* Purpose: Contains the basic_ftpdir_sequence template class, and ANSI
* and Unicode specialisations thereof.
*
* Created: 18th January 2006
* Updated: 19t... | 36.860724 | 104 | 0.654198 | [
"vector"
] |
a64ad36e6e99223205b7f3c5143446dbc01bc2fb | 11,039 | cxx | C++ | Base/QTCLI/qSlicerCLIProgressBar.cxx | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null | Base/QTCLI/qSlicerCLIProgressBar.cxx | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null | Base/QTCLI/qSlicerCLIProgressBar.cxx | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null | /*==============================================================================
Program: 3D Slicer
Copyright (c) Kitware Inc.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Unless required by applicable law or agreed to in writing, software
distributed under the License... | 34.176471 | 110 | 0.648519 | [
"object",
"3d"
] |
a658976824c0404ca00f274b63c953f2deca0aa8 | 2,085 | cpp | C++ | cppcore/tests/test_detail.cpp | lise1020/pybinding | 921d5c2ac0ecc0ef317ba28b0bf68899ea30709a | [
"BSD-2-Clause"
] | 159 | 2016-01-20T17:40:48.000Z | 2022-03-24T06:08:55.000Z | cppcore/tests/test_detail.cpp | deilynazar/pybinding | ec1128aaa84a1b43a74fb970479ce4544bd63179 | [
"BSD-2-Clause"
] | 36 | 2016-11-01T17:15:12.000Z | 2022-03-08T14:31:51.000Z | cppcore/tests/test_detail.cpp | deilynazar/pybinding | ec1128aaa84a1b43a74fb970479ce4544bd63179 | [
"BSD-2-Clause"
] | 57 | 2016-04-23T22:12:01.000Z | 2022-03-08T12:33:04.000Z | #include <catch.hpp>
#include <complex>
#include "Model.hpp"
#include "detail/algorithm.hpp"
using namespace cpb;
namespace static_test_typelist {
using List = TypeList<float, double, std::complex<float>, std::complex<double>>;
static_assert(tl::AnyOf<List, float>::value, "");
static_assert(!tl::AnyOf<Li... | 35.338983 | 87 | 0.56211 | [
"vector",
"model"
] |
a658b58d2ef0d10ff4fcfa8e2d160cc8c9c7c566 | 1,187 | cpp | C++ | src/eigen.cpp | fritzo/kazoo | 7281fe382b98ec81a0e223bfc76c49749543afdb | [
"MIT"
] | 3 | 2015-04-29T11:38:29.000Z | 2018-08-31T01:32:13.000Z | src/eigen.cpp | fritzo/kazoo | 7281fe382b98ec81a0e223bfc76c49749543afdb | [
"MIT"
] | null | null | null | src/eigen.cpp | fritzo/kazoo | 7281fe382b98ec81a0e223bfc76c49749543afdb | [
"MIT"
] | null | null | null |
#include "eigen.h"
#include <fstream>
#define EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET
#include <Eigen/Eigen>
#include <Eigen/Sparse>
Vector<float> as_vector (const VectorXf & x)
{
return Vector<float>(x.size(), const_cast<float *>(x.data()));
}
Vector<float> as_vector (const MatrixXf & x)
{
return Vect... | 20.465517 | 66 | 0.582982 | [
"vector"
] |
a65e3a12b0a97ec6acb70c4b7ede349bf8d24202 | 38,100 | cpp | C++ | shared/ebm_native/ApplyModelUpdateTraining.cpp | ashishpatel26/interpret | c7cff5ca8f31b78e0435e90526fa7cd16f9b1a6a | [
"MIT"
] | null | null | null | shared/ebm_native/ApplyModelUpdateTraining.cpp | ashishpatel26/interpret | c7cff5ca8f31b78e0435e90526fa7cd16f9b1a6a | [
"MIT"
] | null | null | null | shared/ebm_native/ApplyModelUpdateTraining.cpp | ashishpatel26/interpret | c7cff5ca8f31b78e0435e90526fa7cd16f9b1a6a | [
"MIT"
] | 1 | 2021-01-05T15:56:30.000Z | 2021-01-05T15:56:30.000Z | // Copyright (c) 2018 Microsoft Corporation
// Licensed under the MIT license.
// Author: Paul Koch <ebm@koch.ninja>
#include "PrecompiledHeader.h"
#include <stddef.h> // size_t, ptrdiff_t
#include "ebm_native.h"
#include "EbmInternal.h"
// very independent includes
#include "Logging.h" // EBM_ASSERT & LOG
#include ... | 48.971722 | 169 | 0.72748 | [
"vector",
"model"
] |
a665fe38a6caa4d4f7b41572a2416a4784cf6879 | 1,107 | cpp | C++ | Entropy/Matrix22.cpp | Shadorc/Entropy | 8608f41eb5f3339f73578dedd54acc40ee6e8d1e | [
"Zlib"
] | null | null | null | Entropy/Matrix22.cpp | Shadorc/Entropy | 8608f41eb5f3339f73578dedd54acc40ee6e8d1e | [
"Zlib"
] | null | null | null | Entropy/Matrix22.cpp | Shadorc/Entropy | 8608f41eb5f3339f73578dedd54acc40ee6e8d1e | [
"Zlib"
] | null | null | null | #include "Precompiled.h"
Matrix22::Matrix22()
: Matrix22(0.0f, 0.0f, 0.0f, 0.0f)
{
}
Matrix22::Matrix22(float m00, float m01, float m10, float m11)
: m00(m00)
, m01(m01)
, m10(m10)
, m11(m11)
{
}
Matrix22::Matrix22(float angle)
{
FromAngle(angle);
}
void Matrix22::Reset()
{
m00 = 0.0f;
m01 = 0.0f;
m10 = 0.... | 15.591549 | 62 | 0.63776 | [
"vector"
] |
a6660e972b02d3992801c35aa7d3301189ab57da | 2,057 | cc | C++ | src/util/util.cc | agarick/emergence | 9d49828909b4eba19f11c108756ffe73c7d1eb66 | [
"MIT"
] | null | null | null | src/util/util.cc | agarick/emergence | 9d49828909b4eba19f11c108756ffe73c7d1eb66 | [
"MIT"
] | 16 | 2020-11-02T20:21:07.000Z | 2021-06-02T00:19:57.000Z | src/util/util.cc | blobject/emergence | 3c4ea9c0cfd1e4b41cc9d1eb325ba20aee448980 | [
"MIT"
] | null | null | null | #include "common.hh"
#include "util.hh"
std::string
Util::execution_dir()
{
std::vector<char> buf(1024, 0);
std::vector<char>::size_type size = buf.size();
bool path_yes = false;
bool go = true;
while (go) {
int res = readlink("/proc/self/exe", &buf[0], size);
if (0 > res) {
go = false;
}... | 25.7125 | 78 | 0.519689 | [
"vector"
] |
a66a80b84c2a783db78d992e7b975b0ecd8961c4 | 4,264 | cpp | C++ | src/vision/matcher/RandomICPMatcher.cpp | eagleeye1105/VForce | 8a0b80ff633ccabff4410eaf7c368de2cfb0f15c | [
"MIT"
] | 17 | 2018-05-04T04:55:47.000Z | 2021-07-03T06:56:23.000Z | src/vision/matcher/RandomICPMatcher.cpp | eagleeye1105/VForce | 8a0b80ff633ccabff4410eaf7c368de2cfb0f15c | [
"MIT"
] | 1 | 2019-08-06T06:22:58.000Z | 2019-08-06T06:22:58.000Z | src/vision/matcher/RandomICPMatcher.cpp | freealong/VForce | 8a0b80ff633ccabff4410eaf7c368de2cfb0f15c | [
"MIT"
] | 17 | 2018-05-04T04:53:01.000Z | 2021-09-28T15:51:33.000Z | //
// Created by yongqi on 17-12-4.
//
#include "RandomICPMatcher.hpp"
#include <glog/logging.h>
#include <opencv2/opencv.hpp>
#include <pcl/io/pcd_io.h>
#include <pcl/registration/icp.h>
#include "utils/PointCloudUtils.hpp"
namespace VForce {
using namespace std;
RandomICPMatcher::RandomICPMatcher(const string &cf... | 34.112 | 101 | 0.676829 | [
"model"
] |
a66af5bce368f32a7402bcde9ca0e9666b1afa28 | 143,466 | cpp | C++ | Contrib/at67/keywords.cpp | xopr/gigatron-rom | 3db078626c23f259702962488e47184e7feda9e9 | [
"BSD-2-Clause"
] | null | null | null | Contrib/at67/keywords.cpp | xopr/gigatron-rom | 3db078626c23f259702962488e47184e7feda9e9 | [
"BSD-2-Clause"
] | null | null | null | Contrib/at67/keywords.cpp | xopr/gigatron-rom | 3db078626c23f259702962488e47184e7feda9e9 | [
"BSD-2-Clause"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <cmath>
#include <algorithm>
#include "memory.h"
#include "cpu.h"
#include "assembler.h"
#include "keywords.h"
#include "operators.h"
namespace Keywords
{
enum EmitStringResult {SyntaxError, InvalidStringVar, ValidStringVar};
std::vector<std... | 44.889237 | 261 | 0.576889 | [
"vector"
] |
a674b3ac42dd04a15d4980bb4e2242e696a95d3b | 22,620 | cpp | C++ | BookSmithEPUB/main.cpp | ldraconus/NovelSmith | a0bcb04f701f58a35c9ff23a0119bf4bf2cc4534 | [
"Apache-2.0"
] | null | null | null | BookSmithEPUB/main.cpp | ldraconus/NovelSmith | a0bcb04f701f58a35c9ff23a0119bf4bf2cc4534 | [
"Apache-2.0"
] | 1 | 2020-09-13T18:55:33.000Z | 2020-09-13T18:55:33.000Z | BookSmithEPUB/main.cpp | ldraconus/BookSmith | a0bcb04f701f58a35c9ff23a0119bf4bf2cc4534 | [
"Apache-2.0"
] | null | null | null | #include "mainwindow.h"
#include "Zippy/Zippy.hpp"
#include <map>
#include <QApplication>
#include <QTextDocumentWriter>
#include <QTextDocument>
#include <QTextBlock>
#include <QTextEdit>
#include <QTextFormat>
#include <QFile>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QUuid>
n... | 43.416507 | 171 | 0.511848 | [
"object"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.