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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
35948260eacf69345ad5291410fa778288f5d296 | 1,492 | cpp | C++ | audio.cpp | nbonaker/ticker | 4a9bab2916344914cbc96910c7eff4d9f0e10570 | [
"MIT"
] | null | null | null | audio.cpp | nbonaker/ticker | 4a9bab2916344914cbc96910c7eff4d9f0e10570 | [
"MIT"
] | 1 | 2018-11-06T09:30:23.000Z | 2018-11-06T09:30:23.000Z | audio.cpp | nbonaker/ticker | 4a9bab2916344914cbc96910c7eff4d9f0e10570 | [
"MIT"
] | 1 | 2019-01-23T14:46:11.000Z | 2019-01-23T14:46:11.000Z | #include "audio.h"
#include "fmod_alphabet_player.h"
#include <iostream>
static AlphabetPlayer alphabet_player = AlphabetPlayer();
void playNext(void) { alphabet_player.playNext(); }
int isReady(void) { return alphabet_player.isReady(); }
void setChannels(int i_nchannels) { alphabet_player.setChannels(i_nchannels);... | 24.459016 | 79 | 0.754692 | [
"vector"
] |
359a6496986c544f1dfa819a8331c787eb864b02 | 3,373 | cpp | C++ | src/core/context/Manager.cpp | lsgw/longd | 31caabd42a47c05857ae98716ef877052092aabe | [
"MIT"
] | null | null | null | src/core/context/Manager.cpp | lsgw/longd | 31caabd42a47c05857ae98716ef877052092aabe | [
"MIT"
] | null | null | null | src/core/context/Manager.cpp | lsgw/longd | 31caabd42a47c05857ae98716ef877052092aabe | [
"MIT"
] | null | null | null | #include "Manager.h"
#include "Module.h"
#include "EventLoop.h"
#include "Singleton.h"
#define DEFAULT_SLOT_SIZE 8
#define HANDLE_MASK 0xffffffff
Manager::Manager() :
loop(true),
lock_(),
index_(1),
size_(DEFAULT_SLOT_SIZE),
slot_(DEFAULT_SLOT_SIZE, ContextPtr())
{
}
uint32_t Manager::newContext(const std::stri... | 18.635359 | 114 | 0.641862 | [
"vector"
] |
35b4a2d3965581ad468e951cc9c90dba8c8e4500 | 4,626 | cpp | C++ | src/fade2d/Fade2D.cpp | Gigi1237/Bounce | 6e674dd7babda0192b930cc532f692c75219d1fd | [
"MIT"
] | null | null | null | src/fade2d/Fade2D.cpp | Gigi1237/Bounce | 6e674dd7babda0192b930cc532f692c75219d1fd | [
"MIT"
] | 2 | 2015-02-11T02:46:15.000Z | 2015-02-26T14:41:30.000Z | src/fade2d/Fade2D.cpp | Gigi1237/Bounce | 6e674dd7babda0192b930cc532f692c75219d1fd | [
"MIT"
] | null | null | null | #include "internal.h"
///
/// Constructor for Fade2D
///
/// @param resX Diagonal resolution of the desired window
/// @param resY Vertical resolution of the desired window
/// @param name Name of the desired window
///
Fade2D::Fade2D(int resX, int resY, const char* name){
//Start GL context and open windows
if (!gl... | 25.988764 | 190 | 0.693039 | [
"object"
] |
35b5c7c448032b4a8211512e671ad059dd6226c6 | 1,139 | cpp | C++ | Contests/Codeforces/div2/573/a.cpp | rodrigoAMF7/Notebook---Maratonas | 06b38197a042bfbd27b20f707493e0a19fda7234 | [
"MIT"
] | 4 | 2019-01-25T21:22:55.000Z | 2019-03-20T18:04:01.000Z | Contests/Codeforces/div2/573/a.cpp | rodrigoAMF/competitive-programming-notebook | 06b38197a042bfbd27b20f707493e0a19fda7234 | [
"MIT"
] | null | null | null | Contests/Codeforces/div2/573/a.cpp | rodrigoAMF/competitive-programming-notebook | 06b38197a042bfbd27b20f707493e0a19fda7234 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define MOD 1000000007
#define INF 0x3f3f3f3f
#define INFLL 0x3f3f3f3f3f3f3f3f
#define EPS 1e-9
#define PI 3.141592653589793238462643383279502884
#define pb push_back
#define pf push_front
#define fi first
#define se second
#define mp make_pair
#define sz (x) int(x.size())
#define all (x) x.be... | 20.339286 | 64 | 0.658472 | [
"vector"
] |
35bdee494197e4724d5f8ca415a5cd548bae3bac | 8,314 | cpp | C++ | main.cpp | leewz/xmlparse | 16d7bf9cbd14f5093668795cd144c9e684cce651 | [
"MIT"
] | null | null | null | main.cpp | leewz/xmlparse | 16d7bf9cbd14f5093668795cd144c9e684cce651 | [
"MIT"
] | null | null | null | main.cpp | leewz/xmlparse | 16d7bf9cbd14f5093668795cd144c9e684cce651 | [
"MIT"
] | null | null | null | //third attempt
//just read EVERYTHING into a buffer and then deal with it later.
//ugh, there are attrvals with leading whitespace. whyyy
#include<map>
#include<set>
#include<vector>
#include<functional>
#include<iostream>
#include<fstream>
#include<cassert>
#include<cstdlib>
#define private public
using namespac... | 20.033735 | 80 | 0.619918 | [
"vector"
] |
35c57d8249f0478f41a5b9aae34eb82693376789 | 4,115 | cpp | C++ | TEngine/src/core/Transform.cpp | Twixuss/TEngine | 024f4208673410bfe9de9aeee4ea5c87facad319 | [
"Apache-2.0"
] | null | null | null | TEngine/src/core/Transform.cpp | Twixuss/TEngine | 024f4208673410bfe9de9aeee4ea5c87facad319 | [
"Apache-2.0"
] | null | null | null | TEngine/src/core/Transform.cpp | Twixuss/TEngine | 024f4208673410bfe9de9aeee4ea5c87facad319 | [
"Apache-2.0"
] | null | null | null | #include "Transform.h"
namespace TEngine
{
Transform::Transform(float3 pos, float3 rot, float3 scl, Transform *parent) :
m_Position(pos.x, pos.y, pos.z, 0),
m_Rotation(rot.x, rot.y, rot.z, 0),
m_Scaling(scl.x, scl.y, scl.z, 0),
m_Dirty(true),
m_Parent(parent)
{
}
void Transform... | 24.640719 | 162 | 0.599514 | [
"transform"
] |
35c67060efad004a527f5e8a2f07d84ffb5f7747 | 1,095 | cpp | C++ | Online Judges/LeetCode/30-day-leetcoding-challenge/Week-5/Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | 4 | 2017-02-20T17:41:14.000Z | 2019-07-15T14:15:34.000Z | Online Judges/LeetCode/30-day-leetcoding-challenge/Week-5/Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | Online Judges/LeetCode/30-day-leetcoding-challenge/Week-5/Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree.cpp | moni-roy/COPC | f5918304815413c18574ef4af2e23a604bd9f704 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 26.071429 | 93 | 0.445662 | [
"vector"
] |
35cff66cfd92d1bde5398e08c9dfc40b864259c5 | 6,217 | cpp | C++ | HDU/4266.cpp | CodingYue/acm-icpc | 667596efae998f5480819870714c37e9af0740eb | [
"Unlicense"
] | 1 | 2015-11-03T09:31:07.000Z | 2015-11-03T09:31:07.000Z | HDU/4266.cpp | CodingYue/acm-icpc | 667596efae998f5480819870714c37e9af0740eb | [
"Unlicense"
] | null | null | null | HDU/4266.cpp | CodingYue/acm-icpc | 667596efae998f5480819870714c37e9af0740eb | [
"Unlicense"
] | null | null | null | // File Name: 3DHull.cpp
// Author: YangYue
// Created Time: Fri May 17 10:00:59 2013
//headers
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <ctime>
#include <string>
#include <queue>
#include <set>
#include <map>
#include <ios... | 27.267544 | 89 | 0.421103 | [
"vector"
] |
35d18868b903b5aba6d6054046153c785028d223 | 2,058 | cpp | C++ | UESTC/2526.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | UESTC/2526.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | UESTC/2526.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include <bits/stdc++.h>
#define MAXN 200005
using namespace std;
const int C=50;
const long long msk=(1LL<<(C+1))-1;
int n,m,T=1,rt,in[MAXN],out[MAXN],lazy[1<<19];
long long x[1<<19];
vector <int> g[MAXN],v;
int cache[C+1];
unordered_map <int,int> mp;
inline void add(int x,int y)
{
if (!x) v.push_back(y);
else g[... | 17.589744 | 68 | 0.575802 | [
"vector"
] |
35e28cba6fb6228bab50f9613de07b0df6cccda4 | 18,385 | cpp | C++ | src/motioncore/protocols/data_management/unsimdify_gate.cpp | tompetersen/MOTION | 7a985f88075c10ecfa3071572d7fd23871740143 | [
"MIT"
] | 45 | 2020-09-21T12:42:04.000Z | 2022-03-26T13:19:31.000Z | src/motioncore/protocols/data_management/unsimdify_gate.cpp | tompetersen/MOTION | 7a985f88075c10ecfa3071572d7fd23871740143 | [
"MIT"
] | 17 | 2021-04-17T04:54:55.000Z | 2022-03-31T15:05:51.000Z | src/motioncore/protocols/data_management/unsimdify_gate.cpp | tompetersen/MOTION | 7a985f88075c10ecfa3071572d7fd23871740143 | [
"MIT"
] | 23 | 2020-12-14T14:17:48.000Z | 2022-03-29T18:50:12.000Z | // MIT License
//
// Copyright (c) 2021 Oleksandr Tkachenko
// Cryptography and Privacy Engineering Group (ENCRYPTO)
// TU Darmstadt, Germany
//
// 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 Soft... | 39.794372 | 100 | 0.610661 | [
"vector"
] |
e301721955ed0e3b2ccbc35c6d652f5281cd3714 | 3,689 | cpp | C++ | Project/Engine/Source/Graphics/RenderPipeline.cpp | lcomstive/Graphics-Assessment | bc52f41b31646ca5d2bb20669704db83c4f77361 | [
"MIT-0"
] | null | null | null | Project/Engine/Source/Graphics/RenderPipeline.cpp | lcomstive/Graphics-Assessment | bc52f41b31646ca5d2bb20669704db83c4f77361 | [
"MIT-0"
] | null | null | null | Project/Engine/Source/Graphics/RenderPipeline.cpp | lcomstive/Graphics-Assessment | bc52f41b31646ca5d2bb20669704db83c4f77361 | [
"MIT-0"
] | 1 | 2022-03-23T00:28:52.000Z | 2022-03-23T00:28:52.000Z | #include <algorithm>
#include <Engine/Application.hpp>
#include <Engine/Graphics/Mesh.hpp>
#include <Engine/ResourceManager.hpp>
#include <Engine/Components/Light.hpp>
#include <Engine/Graphics/Renderer.hpp>
#include <Engine/Components/Camera.hpp>
#include <Engine/Graphics/Framebuffer.hpp>
#include <Engine/Services/Sce... | 27.529851 | 104 | 0.751423 | [
"mesh",
"vector"
] |
e31367d500573d451fbd0e3a90c2e02594938967 | 9,383 | cpp | C++ | OptionPanel.cpp | Pachira762/ScreenHistogram | 98300c6447e179e21c3a4bdd77812d1386623528 | [
"MIT"
] | null | null | null | OptionPanel.cpp | Pachira762/ScreenHistogram | 98300c6447e179e21c3a4bdd77812d1386623528 | [
"MIT"
] | null | null | null | OptionPanel.cpp | Pachira762/ScreenHistogram | 98300c6447e179e21c3a4bdd77812d1386623528 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "OptionPanel.h"
#include "GuiLayout.h"
#include "WinUtil.h"
#include "Theme.h"
using namespace std;
static OptionPanel* pThis = nullptr;
OptionPanel::OptionPanel():
layout_(make_unique<GuiLayout>(MarginX, MarginY))
{
pThis = this;
}
void OptionPanel::Show()
{
ShowWindow(hwnd_, ... | 24.30829 | 123 | 0.611958 | [
"vector"
] |
e314a557d239cf3e66ad586b11e9e2ea480089e4 | 730 | cpp | C++ | apps/calculator/src/cli/MetricsManager.cpp | mcfongtw/LostInCompilation | ca6a61f7a4fa6f215207a5ab8970471ef2568fd6 | [
"MIT"
] | 1 | 2016-11-29T13:41:28.000Z | 2016-11-29T13:41:28.000Z | apps/calculator/src/cli/MetricsManager.cpp | mcfongtw/LostInCompilation | ca6a61f7a4fa6f215207a5ab8970471ef2568fd6 | [
"MIT"
] | null | null | null | apps/calculator/src/cli/MetricsManager.cpp | mcfongtw/LostInCompilation | ca6a61f7a4fa6f215207a5ab8970471ef2568fd6 | [
"MIT"
] | null | null | null | #include "cli/MetricsManager.h"
#include <sstream>
// Allocating and initializing MetricsManager's
// static data member. The pointer is being
// allocated - not the object inself.
EventListenerPtr MetricsManager::INSTANCE = 0;
EventListenerPtr MetricsManager::getInstance() {
if(INSTANCE == 0) {
INSTANCE... | 23.548387 | 77 | 0.709589 | [
"object"
] |
e31bb288ecfb681f8908dd97e00c077d73b57c71 | 2,891 | cpp | C++ | ros_controllers/mode_state_controller/src/mode_state_controller.cpp | hect1995/Robotics_intro | 1b687585c20db5f1114d8ca6811a70313d325dd6 | [
"BSD-3-Clause"
] | 7 | 2018-10-24T14:52:20.000Z | 2021-01-12T14:59:00.000Z | ros_controllers/mode_state_controller/src/mode_state_controller.cpp | hect1995/Robotics_intro | 1b687585c20db5f1114d8ca6811a70313d325dd6 | [
"BSD-3-Clause"
] | null | null | null | ros_controllers/mode_state_controller/src/mode_state_controller.cpp | hect1995/Robotics_intro | 1b687585c20db5f1114d8ca6811a70313d325dd6 | [
"BSD-3-Clause"
] | 17 | 2019-09-29T10:22:41.000Z | 2021-04-08T12:38:37.000Z | #include <algorithm>
#include <cstddef>
#include <mode_state_controller/mode_state_controller.h>
namespace mode_state_controller
{
bool ModeStateController::init(hardware_interface::JointModeInterface* hw,
ros::NodeHandle& root_nh, ros::NodeHandle& controller_nh)
{
// get all joint na... | 31.769231 | 104 | 0.681425 | [
"vector"
] |
e31bffe90ea1280972855ba1957be965389398ca | 2,668 | cc | C++ | src/vtk_viewer.cc | Arthur-Na/parallel-heat | 492f79fb057541f7195ce8eea879ce61d5a96c5d | [
"MIT"
] | null | null | null | src/vtk_viewer.cc | Arthur-Na/parallel-heat | 492f79fb057541f7195ce8eea879ce61d5a96c5d | [
"MIT"
] | null | null | null | src/vtk_viewer.cc | Arthur-Na/parallel-heat | 492f79fb057541f7195ce8eea879ce61d5a96c5d | [
"MIT"
] | null | null | null | #include "vtk_viewer.hh"
namespace vtk
{
VtkViewer::VtkViewer()
: structured_grid_(vtkSmartPointer<vtkStructuredGrid>::New())
, points_(vtkSmartPointer<vtkPoints>::New())
, colors_(vtkSmartPointer<vtkUnsignedCharArray>::New())
, geometry_filter_(vtkSmartPointer<vtkStructuredGridGeometryFilter>::New()... | 30.318182 | 97 | 0.681784 | [
"render",
"vector"
] |
e330bd05957b99b63297c2d6082c673e9c963e6a | 42,161 | cpp | C++ | services/bluetooth_standard/service/src/ble/ble_central_manager_impl.cpp | openharmony-sig-ci/communication_bluetooth | c9d9614e881224abfb423505e25e72163dd25df3 | [
"Apache-2.0"
] | null | null | null | services/bluetooth_standard/service/src/ble/ble_central_manager_impl.cpp | openharmony-sig-ci/communication_bluetooth | c9d9614e881224abfb423505e25e72163dd25df3 | [
"Apache-2.0"
] | null | null | null | services/bluetooth_standard/service/src/ble/ble_central_manager_impl.cpp | openharmony-sig-ci/communication_bluetooth | c9d9614e881224abfb423505e25e72163dd25df3 | [
"Apache-2.0"
] | 1 | 2021-09-13T11:16:33.000Z | 2021-09-13T11:16:33.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 ... | 37.509786 | 127 | 0.684068 | [
"vector"
] |
e336715da5cbebdb8c58f2578234575cb84d1cc3 | 9,373 | cpp | C++ | src/json.cpp | jyf111/easy-json | a341b0437b9d3cd36b88d1e2e11ea7dde3cb4633 | [
"MIT"
] | null | null | null | src/json.cpp | jyf111/easy-json | a341b0437b9d3cd36b88d1e2e11ea7dde3cb4633 | [
"MIT"
] | null | null | null | src/json.cpp | jyf111/easy-json | a341b0437b9d3cd36b88d1e2e11ea7dde3cb4633 | [
"MIT"
] | null | null | null | #include "json.h"
#include <iostream>
#include <assert.h>
json::json() {
type = JSON_NULL;
}
json::json(bool _b) : b(_b) {
type = JSON_BOOLEAN;
}
json::json(double _num) : num(_num) {
type = JSON_NUMBER;
}
json::json(string _value) : value(_value) {
type = JSON_STRING;
}
json::json(vector<shared_p... | 29.945687 | 122 | 0.471567 | [
"object",
"shape",
"vector"
] |
e33f6c1058e13d6705e97b9151fb648a3bc8abbf | 194,609 | cpp | C++ | tf2_src/utils/hlfaceposer/phonemeeditor.cpp | d3fc0n6/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | tf2_src/utils/hlfaceposer/phonemeeditor.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | null | null | null | tf2_src/utils/hlfaceposer/phonemeeditor.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//===========================================================================//
#include <Assert.h>
#include <stdio.h>
#include <math.h>
#include "hlfaceposer.h"
#include "PhonemeEditor.h"
#include "Phoneme... | 22.114659 | 244 | 0.589844 | [
"model"
] |
e349cd422e2d5776c24af65efb52a1ede131fd9c | 756 | cpp | C++ | LeetCode/ThousandOne/0066-plus_1.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0066-plus_1.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0066-plus_1.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 66. 加一
给定一个由整数组成的非空数组所表示的非负整数,在该数的基础上加一。
最高位数字存放在数组的首位, 数组中每个元素只存储单个数字。
你可以假设除了整数 0 之外,这个整数不会以零开头。
示例 1:
输入: [1,2,3]
输出: [1,2,4]
解释: 输入数组表示数字 123。
示例 2:
输入: [4,3,2,1]
输出: [4,3,2,2]
解释: 输入数组表示数字 4321。
*/
vector<int> plusOne(vector<int>& A)
{
int len = static_cast<int>(A.size());
div_... | 14 | 38 | 0.55291 | [
"vector"
] |
e3558c50a88323da6f8b8b356cc1715a472e0477 | 7,366 | cpp | C++ | src/core/scene.cpp | PtCu/Platinum | 2cb30fb8b988ed3cb5efeef4e05c1f6f6c892856 | [
"MIT"
] | null | null | null | src/core/scene.cpp | PtCu/Platinum | 2cb30fb8b988ed3cb5efeef4e05c1f6f6c892856 | [
"MIT"
] | null | null | null | src/core/scene.cpp | PtCu/Platinum | 2cb30fb8b988ed3cb5efeef4e05c1f6f6c892856 | [
"MIT"
] | null | null | null | // The MIT License (MIT)
// Copyright (c) 2021 PtCU
// 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, modi... | 35.584541 | 145 | 0.568151 | [
"object",
"vector"
] |
e359cbd72c67da209f6d05fdd9492a9b7ca2e227 | 3,343 | hpp | C++ | include/GlobalNamespace/IBeatmapLevelPack.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/IBeatmapLevelPack.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/IBeatmapLevelPack.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: IAnnotatedBeatmapLevelCollection
#include "GlobalNamespace/IAnnotatedBeatmapLe... | 49.161765 | 181 | 0.737362 | [
"vector"
] |
e35a2547903e9504b6da97c5770f1131b9ab65b2 | 5,747 | cpp | C++ | insertInterval/insert_interval.cpp | pitanyc/toy-problems | 502ef2d2774373349aae7cffdaf287e5ca8613f9 | [
"MIT"
] | null | null | null | insertInterval/insert_interval.cpp | pitanyc/toy-problems | 502ef2d2774373349aae7cffdaf287e5ca8613f9 | [
"MIT"
] | null | null | null | insertInterval/insert_interval.cpp | pitanyc/toy-problems | 502ef2d2774373349aae7cffdaf287e5ca8613f9 | [
"MIT"
] | null | null | null | /**
* LEETCODE 57. Insert Interval
*
* https://leetcode.com/problems/insert-interval/
*
* You are given an array of non-overlapping intervals intervals where
* intervals[i] = [starti, endi] represent the start and the end of the
* ith interval and intervals is sorted in ascending order by starti.
* You are also... | 30.407407 | 116 | 0.553854 | [
"vector"
] |
e35da5db9f72161630c74251a2941e3343bc36e3 | 43,003 | cpp | C++ | B2G/gecko/accessible/src/atk/AccessibleWrap.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/gecko/accessible/src/atk/AccessibleWrap.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/gecko/accessible/src/atk/AccessibleWrap.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/* 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/. */
... | 31.666421 | 101 | 0.661117 | [
"object"
] |
e37045fc6859168be6d56c3702bc2824551c2d06 | 3,571 | cc | C++ | folding_libs/MELIBS/arpack++/examples/reverse/complex/rcompshf.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | 1 | 2016-05-16T02:27:46.000Z | 2016-05-16T02:27:46.000Z | arpack++/examples/reverse/complex/rcompshf.cc | red2901/sandbox | fae6c1624cc9957593d030f3b0306dbded29f0a2 | [
"MIT"
] | null | null | null | arpack++/examples/reverse/complex/rcompshf.cc | red2901/sandbox | fae6c1624cc9957593d030f3b0306dbded29f0a2 | [
"MIT"
] | null | null | null | /*
ARPACK++ v1.2 2/18/2000
c++ interface to ARPACK code.
MODULE RCompShf.cc.
Example program that illustrates how to solve a complex
standard eigenvalue problem in shift and invert mode
using the ARrcCompStdEig class.
1) Problem description:
In this example we try to solve A*x = x*lambda ... | 27.898438 | 72 | 0.659199 | [
"vector"
] |
e372a84395527cf00745a138c917ab1e91c8dc65 | 8,713 | cpp | C++ | podi_navigation_helpers/src/grid.cpp | CMU-TBD/IROS19-Human-Robot-Coupling | 403137fad1f5f8c2d0291939cfa99594c8fbb70c | [
"MIT"
] | 5 | 2019-12-02T14:43:14.000Z | 2021-11-09T14:51:20.000Z | podi_navigation_helpers/src/grid.cpp | CMU-TBD/IROS19-Human-Robot-Coupling | 403137fad1f5f8c2d0291939cfa99594c8fbb70c | [
"MIT"
] | null | null | null | podi_navigation_helpers/src/grid.cpp | CMU-TBD/IROS19-Human-Robot-Coupling | 403137fad1f5f8c2d0291939cfa99594c8fbb70c | [
"MIT"
] | null | null | null | #include <podi_navigation_helpers/grid.h>
#include <cmath>
#include <tuple>
#include <vector>
#include <ros/console.h>
namespace podi_navigation_helpers {
// Initialize the grid
Grid::Grid(std::vector<std::vector<unsigned int> > gridSizes, std::vector<unsigned int> distanceThresholds,
std::vector<int> gridOrigin) {... | 45.145078 | 135 | 0.688511 | [
"vector"
] |
be77e53f3ac4d157195f598afc008bceeb5660b3 | 1,964 | cpp | C++ | Sandbox/src/Example2DLayer.cpp | Ali-Elganzory/Cajo | bfeac89f076f3ba4a7e8f6fa2b5ebefd5804ca2f | [
"MIT"
] | 2 | 2020-06-28T02:16:54.000Z | 2020-08-25T23:49:50.000Z | Sandbox/src/Example2DLayer.cpp | Ali-Elganzory/Cajo | bfeac89f076f3ba4a7e8f6fa2b5ebefd5804ca2f | [
"MIT"
] | null | null | null | Sandbox/src/Example2DLayer.cpp | Ali-Elganzory/Cajo | bfeac89f076f3ba4a7e8f6fa2b5ebefd5804ca2f | [
"MIT"
] | null | null | null | #include "Example2DLayer.h"
#include <ImGui/imgui.h>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
Example2DLayer::Example2DLayer(const std::string& name)
: Layer(name), m_CameraController((float)(1280.0 / 720.0), true)
{
}
void Example2DLayer::OnAttach()
{
m_CheckboardTexture = Cajo::Te... | 25.179487 | 123 | 0.641039 | [
"render"
] |
be8fb7fce72f4d6551e70e470c43f40a0e418fd7 | 5,797 | cpp | C++ | salmon/vm/function.cpp | sdilts/Salmon | e378475a4093525425760bb15f4486e02a6f34ba | [
"MIT"
] | 5 | 2020-02-10T10:28:51.000Z | 2021-03-12T20:40:03.000Z | salmon/vm/function.cpp | sdilts/Salmon | e378475a4093525425760bb15f4486e02a6f34ba | [
"MIT"
] | null | null | null | salmon/vm/function.cpp | sdilts/Salmon | e378475a4093525425760bb15f4486e02a6f34ba | [
"MIT"
] | null | null | null | #include <sstream>
#include <vm/function.hpp>
#include <vm/vm.hpp>
namespace salmon::vm {
static std::vector<Symbol*> convert(const std::vector<vm_ptr<Symbol>> &list) {
std::vector<Symbol*> arr;
arr.reserve(list.size());
for(auto &item : list) {
arr.push_back(item.get());
}
return arr;
}
stati... | 31 | 97 | 0.685527 | [
"vector"
] |
be900d14e6607708803c68e8b21447c071dea813 | 11,293 | cpp | C++ | src/caffe/SSD/rdetection_output_layer.cpp | xyt2008/frcnn | 32a559e881cceeba09a90ff45ad4aae1dabf92a1 | [
"BSD-2-Clause"
] | 198 | 2018-01-07T13:44:29.000Z | 2022-03-21T12:06:16.000Z | src/caffe/SSD/rdetection_output_layer.cpp | xyt2008/frcnn | 32a559e881cceeba09a90ff45ad4aae1dabf92a1 | [
"BSD-2-Clause"
] | 18 | 2018-02-01T13:24:53.000Z | 2021-04-26T10:51:47.000Z | src/caffe/SSD/rdetection_output_layer.cpp | xyt2008/frcnn | 32a559e881cceeba09a90ff45ad4aae1dabf92a1 | [
"BSD-2-Clause"
] | 82 | 2018-01-06T14:21:43.000Z | 2022-02-16T09:39:58.000Z | #include <algorithm>
#include <fstream> // NOLINT(readability/streams)
#include <map>
#include <string>
#include <utility>
#include <vector>
#include "boost/filesystem.hpp"
#include "boost/foreach.hpp"
#include "rdetection_output_layer.hpp"
//#include "caffe/layers/rdetection_output_layer.hpp"
namespace caffe
{
tem... | 34.535168 | 104 | 0.693527 | [
"vector"
] |
be9ec3936d29aec238b8cfdb4f57c6c3f814845d | 1,600 | cpp | C++ | src/question312.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | src/question312.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | src/question312.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
vector<vector<int>> rec;
vector<int> val;
int solve(int left, int right){
if(left >= right - 1){
return 0;
}
if(rec[left][right] != -1){
return rec[left][right];
}
... | 25.396825 | 59 | 0.401875 | [
"vector"
] |
bea3b4f85ffce0b160eac46476528ff051d7c3ce | 4,722 | cpp | C++ | src/openxc/message_set.cpp | redpesk-common/canbus-generator | b0b520e15d105f363ac66e471c9128b8f4b1f17f | [
"Apache-2.0"
] | null | null | null | src/openxc/message_set.cpp | redpesk-common/canbus-generator | b0b520e15d105f363ac66e471c9128b8f4b1f17f | [
"Apache-2.0"
] | null | null | null | src/openxc/message_set.cpp | redpesk-common/canbus-generator | b0b520e15d105f363ac66e471c9128b8f4b1f17f | [
"Apache-2.0"
] | 1 | 2021-08-08T17:55:46.000Z | 2021-08-08T17:55:46.000Z | #include <sstream>
#include "message_set.hpp"
namespace openxc
{
message_set::message_set()
: name_{""}
, version_{"1.0"}
, bit_numbering_inverted_{false}
, max_message_frequency_{0}
, raw_can_mode_{can_bus_mode::off}
, parents_{}
, initializers_{}
, loopers_{}
, buses_{}
, messages... | 28.792683 | 168 | 0.646125 | [
"vector"
] |
bea5f834bc79137454c5a9493a24486e5af5d20c | 2,517 | cpp | C++ | src/plugins/orbbec_skeleton/orbbec_skeleton_plugin.cpp | Delicode/astra | 2654b99102b999a15d3221b0e5a11bb5291f7689 | [
"Apache-2.0"
] | 170 | 2015-10-20T08:31:16.000Z | 2021-12-01T01:47:32.000Z | src/plugins/orbbec_skeleton/orbbec_skeleton_plugin.cpp | Delicode/astra | 2654b99102b999a15d3221b0e5a11bb5291f7689 | [
"Apache-2.0"
] | 42 | 2015-10-20T23:20:17.000Z | 2022-03-18T05:47:08.000Z | src/plugins/orbbec_skeleton/orbbec_skeleton_plugin.cpp | Delicode/astra | 2654b99102b999a15d3221b0e5a11bb5291f7689 | [
"Apache-2.0"
] | 83 | 2015-10-22T14:53:00.000Z | 2021-11-04T03:09:48.000Z | // This file is part of the Orbbec Astra SDK [https://orbbec3d.com]
// Copyright (c) 2015 Orbbec 3D
//
// 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/LI... | 42.661017 | 106 | 0.586412 | [
"3d"
] |
beb1a5eef710686abe9bf82926652074e45a3aba | 938 | cpp | C++ | src/dale/Operation/CloseScope/CloseScope.cpp | ChengCat/dale | 4a764895611679cd1670d9a43ffdbee136661759 | [
"BSD-3-Clause"
] | 1,083 | 2015-03-18T09:42:49.000Z | 2022-03-29T03:17:47.000Z | src/dale/Operation/CloseScope/CloseScope.cpp | ChengCat/dale | 4a764895611679cd1670d9a43ffdbee136661759 | [
"BSD-3-Clause"
] | 195 | 2015-01-04T03:06:41.000Z | 2022-03-18T18:16:27.000Z | src/dale/Operation/CloseScope/CloseScope.cpp | ChengCat/dale | 4a764895611679cd1670d9a43ffdbee136661759 | [
"BSD-3-Clause"
] | 56 | 2015-03-18T20:02:13.000Z | 2022-01-22T19:35:27.000Z | #include "CloseScope.h"
#include <vector>
#include "../Destruct/Destruct.h"
namespace dale {
namespace Operation {
bool CloseScope(Context *ctx, Function *fn, llvm::BasicBlock *block,
llvm::Value *skip_value, bool entire) {
std::vector<Variable *> stack_vars;
if (entire && fn->index) {
... | 26.055556 | 68 | 0.558635 | [
"vector"
] |
beb2d371de1c6690aab51d6da8192a19083f3a5e | 12,182 | cc | C++ | mysql-server/sql/dd/impl/types/foreign_key_impl.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/sql/dd/impl/types/foreign_key_impl.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/sql/dd/impl/types/foreign_key_impl.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /* Copyright (c) 2014, 2020, Oracle and/or its affiliates.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain software (including... | 36.473054 | 85 | 0.637662 | [
"object"
] |
bebe75de268b82493a5b4dbd9fa0f7aab42fcbc3 | 3,765 | hpp | C++ | framework/core/include/cnstream_common.hpp | chenxy1988/CNStream | cf2564b0fed892c62213a335c01559d3da18d91b | [
"Apache-2.0"
] | null | null | null | framework/core/include/cnstream_common.hpp | chenxy1988/CNStream | cf2564b0fed892c62213a335c01559d3da18d91b | [
"Apache-2.0"
] | null | null | null | framework/core/include/cnstream_common.hpp | chenxy1988/CNStream | cf2564b0fed892c62213a335c01559d3da18d91b | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
* Copyright (C) [2019] by Cambricon, Inc. 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 a... | 29.880952 | 92 | 0.689243 | [
"vector"
] |
bed611a71f0874b5a5f8dae39104312f0cef1372 | 808 | hpp | C++ | src/cppio/impl/basic_reactor.hpp | yamashi/cppio | a6fa39ccfd72361d0a8b11948a30db030de2ac33 | [
"MIT"
] | 4 | 2021-08-29T13:46:22.000Z | 2021-11-14T20:27:30.000Z | src/cppio/impl/basic_reactor.hpp | yamashi/cppio | a6fa39ccfd72361d0a8b11948a30db030de2ac33 | [
"MIT"
] | null | null | null | src/cppio/impl/basic_reactor.hpp | yamashi/cppio | a6fa39ccfd72361d0a8b11948a30db030de2ac33 | [
"MIT"
] | null | null | null | #pragma once
#include <cppio/impl/abstract_reactor.hpp>
namespace cppio::impl
{
template<class T>
struct basic_reactor : abstract_reactor
{
basic_reactor(size_t worker_count = 1);
~basic_reactor();
void run();
static basic_task* get_current_task();
static basic_... | 23.085714 | 68 | 0.680693 | [
"vector"
] |
bee0b6a2e6149c98563e692e042e1c00d387ef90 | 10,833 | cpp | C++ | ext/tiny_gltf/rb_tiny_gltf_types.cpp | marnad7/tiny_gltf-ruby | cbb58dd3273a2fb3d5e561267074c0771e60e64c | [
"MIT"
] | 1 | 2021-02-12T09:31:05.000Z | 2021-02-12T09:31:05.000Z | ext/tiny_gltf/rb_tiny_gltf_types.cpp | marnad7/tiny_gltf-ruby | cbb58dd3273a2fb3d5e561267074c0771e60e64c | [
"MIT"
] | 2 | 2022-03-15T21:21:09.000Z | 2022-03-16T20:51:28.000Z | ext/tiny_gltf/rb_tiny_gltf_types.cpp | marnad7/tiny_gltf-ruby | cbb58dd3273a2fb3d5e561267074c0771e60e64c | [
"MIT"
] | 3 | 2021-06-25T06:04:51.000Z | 2021-08-13T19:42:22.000Z | #include "rb_tiny_gltf.h"
/*
void Model_free(void* data) {
Model *obj = (Model *) data;
delete obj;
}
size_t Model_size(const void* data) {
return sizeof(Model);
}
static const rb_data_type_t T_Model = {
.wrap_struct_name = "TinyGLTFModel",
.function = {
.dmark = NULL,
.dfre... | 47.513158 | 108 | 0.604542 | [
"mesh",
"vector",
"model"
] |
beefd4ae21591d6ea845632088f664849d7eea80 | 2,962 | cpp | C++ | src/ingredientview.cpp | mattcaron/qbrew | c56cb00db69b6f13af6e19de136944c7a48d3207 | [
"BSD-2-Clause"
] | 1 | 2015-04-27T03:53:25.000Z | 2015-04-27T03:53:25.000Z | src/ingredientview.cpp | mattcaron/qbrew | c56cb00db69b6f13af6e19de136944c7a48d3207 | [
"BSD-2-Clause"
] | null | null | null | src/ingredientview.cpp | mattcaron/qbrew | c56cb00db69b6f13af6e19de136944c7a48d3207 | [
"BSD-2-Clause"
] | null | null | null | /***************************************************************************
ingredientview.cpp
-------------------
Ingredient view
-------------------
Copyright 2006-2008, David Johnson
Please see the header file for copyright and license information
*******************************************************... | 31.510638 | 80 | 0.51688 | [
"model"
] |
bef233b6573046d49fb6110df336a1b0481ec066 | 1,907 | cpp | C++ | TDEngine2/source/graphics/CGraphicsLayersInfo.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 1 | 2019-07-15T01:14:15.000Z | 2019-07-15T01:14:15.000Z | TDEngine2/source/graphics/CGraphicsLayersInfo.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 76 | 2018-10-27T16:59:36.000Z | 2022-03-30T17:40:39.000Z | TDEngine2/source/graphics/CGraphicsLayersInfo.cpp | bnoazx005/TDEngine2 | 93ebfecf8af791ff5ecd4f57525a6935e34cd05c | [
"Apache-2.0"
] | 1 | 2019-07-29T02:02:08.000Z | 2019-07-29T02:02:08.000Z | #include "../../include/graphics/CGraphicsLayersInfo.h"
#include <climits>
#include <cmath>
namespace TDEngine2
{
CGraphicsLayersInfo::CGraphicsLayersInfo():
CBaseObject()
{
}
E_RESULT_CODE CGraphicsLayersInfo::Init()
{
if (mIsInitialized)
{
return RC_FAIL;
}
mIsInitialized = true;
return RC_OK... | 21.670455 | 135 | 0.712113 | [
"vector"
] |
bef29675161d3559b0b8e0278f151a6c506fb660 | 15,101 | cpp | C++ | iphoneos/AngryMetal/AngryKit/player_animation_system.cpp | ivan-ushakov/AngryMetal | 0e358be545efe50fbe83664676a9f1fcd03b8825 | [
"Apache-2.0"
] | null | null | null | iphoneos/AngryMetal/AngryKit/player_animation_system.cpp | ivan-ushakov/AngryMetal | 0e358be545efe50fbe83664676a9f1fcd03b8825 | [
"Apache-2.0"
] | null | null | null | iphoneos/AngryMetal/AngryKit/player_animation_system.cpp | ivan-ushakov/AngryMetal | 0e358be545efe50fbe83664676a9f1fcd03b8825 | [
"Apache-2.0"
] | null | null | null | //
// player_animation_system.cpp
// AngryKit
//
// Created by Ivan Ushakov on 25.05.2021.
//
#include "player_animation_system.hpp"
#include <simd/simd.h>
#include <stdexcept>
#include <string>
#include <unordered_map>
#include "animation_component.hpp"
#include "health_component.hpp"
#include "mesh_component.... | 38.522959 | 164 | 0.625521 | [
"mesh",
"vector",
"transform"
] |
befff531799e8cff3f880caaf674fdc9635a0c57 | 876 | cpp | C++ | LeetCode/daily/5716. 好因子的最大数目.cpp | xmmmmmovo/MyAlgorithmSolutions | f5198d438f36f41cc4f72d53bb71d474365fa80d | [
"MIT"
] | 1 | 2020-03-26T13:40:52.000Z | 2020-03-26T13:40:52.000Z | LeetCode/daily/5716. 好因子的最大数目.cpp | xmmmmmovo/MyAlgorithmSolutions | f5198d438f36f41cc4f72d53bb71d474365fa80d | [
"MIT"
] | null | null | null | LeetCode/daily/5716. 好因子的最大数目.cpp | xmmmmmovo/MyAlgorithmSolutions | f5198d438f36f41cc4f72d53bb71d474365fa80d | [
"MIT"
] | null | null | null | /**
* author: xmmmmmovo
* generation time: 2021/03/28
* filename: 5716. 好因子的最大数目.cpp
* language & build version : C 11 & C++ 17
*/
#include <algorithm>
#include <iostream>
#include <numeric>
#include <stack>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
const int M = 1e9 + 7;
ll... | 20.372093 | 61 | 0.528539 | [
"vector"
] |
8300bb2b88a1c72d35ee0ae2a59fca9dfc62320a | 1,963 | cpp | C++ | src/Collisions/ObstacleCollisionDealer.cpp | lucashflores/jogo-tecprog | 21b114f21b933247a321e17905338a4f51620d2a | [
"MIT"
] | null | null | null | src/Collisions/ObstacleCollisionDealer.cpp | lucashflores/jogo-tecprog | 21b114f21b933247a321e17905338a4f51620d2a | [
"MIT"
] | null | null | null | src/Collisions/ObstacleCollisionDealer.cpp | lucashflores/jogo-tecprog | 21b114f21b933247a321e17905338a4f51620d2a | [
"MIT"
] | null | null | null | #include "Collisions/ObstacleCollisionDealer.h"
using namespace Collisions;
ObstacleCollisionDealer::ObstacleCollisionDealer() {
}
ObstacleCollisionDealer::~ObstacleCollisionDealer() {
}
void ObstacleCollisionDealer::oilTileCollision(Entities::Entity *pE1, Entities::Entity *pE2,
... | 35.053571 | 130 | 0.642384 | [
"vector"
] |
830dddf7d4d36ba2804950fe41aedd4e2e68da6c | 634 | hpp | C++ | example/prog-guide/distobj-reduce_to_rank0.hpp | snake0/upcxx-2020.10.0 | dcd313a65587efcdefdb4fdfb197389a0e390ccd | [
"BSD-3-Clause-LBNL"
] | null | null | null | example/prog-guide/distobj-reduce_to_rank0.hpp | snake0/upcxx-2020.10.0 | dcd313a65587efcdefdb4fdfb197389a0e390ccd | [
"BSD-3-Clause-LBNL"
] | null | null | null | example/prog-guide/distobj-reduce_to_rank0.hpp | snake0/upcxx-2020.10.0 | dcd313a65587efcdefdb4fdfb197389a0e390ccd | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-06-10T11:14:25.000Z | 2021-06-10T11:14:25.000Z | int64_t reduce_to_rank0(int64_t my_hits)
{
// declare a distributed on every rank
upcxx::dist_object<int64_t> all_hits(0);
// set the local value of the distributed object on each rank
*all_hits = my_hits;
upcxx::barrier();
int64_t hits = 0;
if (upcxx::rank_me() == 0) {
// rank 0 get... | 31.7 | 78 | 0.608833 | [
"object"
] |
23fe7ce530354d0f459a69cd57fa714d557da906 | 1,932 | cpp | C++ | MatchStuff/MatchAll.cpp | mple/sigmod-programming-contest2013 | 900a969822f192793fa5f4152383cc9f5daafab4 | [
"MIT"
] | 1 | 2016-09-10T17:08:56.000Z | 2016-09-10T17:08:56.000Z | MatchStuff/MatchAll.cpp | mple/sigmod-programming-contest2013 | 900a969822f192793fa5f4152383cc9f5daafab4 | [
"MIT"
] | null | null | null | MatchStuff/MatchAll.cpp | mple/sigmod-programming-contest2013 | 900a969822f192793fa5f4152383cc9f5daafab4 | [
"MIT"
] | null | null | null | /*
* MatchAll1.cpp
*
* Created on: Mar 23, 2013
* Author: vagos
*/
#include "../QueryIndex/QueryIndex.h"
#include "../QueryIndex/QidsVault.h"
#include "../QueryIndex/QueryInfo.h"
#include "../QueryIndex/bitarea.h"
#include "../QueryIndex/Query.h"
#include "../JobScheduler/JobMatchPrune.h"
#include "../JobSc... | 21.466667 | 75 | 0.658903 | [
"vector"
] |
9b01165c6cc65c50fff6f2e46bfb301b79fe8a7a | 1,393 | hpp | C++ | Leetcode_C++/Leetcode_C++/Solution72.hpp | cwwise/Leetcode | 5f8879945057312acd76492370e48314e4ec3b64 | [
"MIT"
] | null | null | null | Leetcode_C++/Leetcode_C++/Solution72.hpp | cwwise/Leetcode | 5f8879945057312acd76492370e48314e4ec3b64 | [
"MIT"
] | null | null | null | Leetcode_C++/Leetcode_C++/Solution72.hpp | cwwise/Leetcode | 5f8879945057312acd76492370e48314e4ec3b64 | [
"MIT"
] | null | null | null | //
// Solution72.hpp
// Leetcode_C++
//
// Created by chenwei on 2020/4/12.
// Copyright © 2020 chenwei. All rights reserved.
//
#ifndef Solution72_hpp
#define Solution72_hpp
#include <stdio.h>
/**
给你两个单词 word1 和 word2,请你计算出将 word1 转换成 word2 所使用的最少操作数 。
你可以对一个单词进行如下三种操作:
插入一个字符
删除一个字符
替换一个字符
示例 1:
... | 19.9 | 82 | 0.472362 | [
"vector"
] |
9b01c87bfdd3f3b8c9c0194e6e8b5ef6ac6129fa | 9,907 | cpp | C++ | extension/sv_helper/SGA/SuffixTools/SampledSuffixArray.cpp | GenePlus/ncsv | f0f426ae4b64de86eee88518e3a1daf5718ce407 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-09-30T09:31:20.000Z | 2020-09-30T09:31:20.000Z | extension/sv_helper/SGA/SuffixTools/SampledSuffixArray.cpp | GenePlus/ncsv | f0f426ae4b64de86eee88518e3a1daf5718ce407 | [
"Apache-2.0",
"MIT"
] | null | null | null | extension/sv_helper/SGA/SuffixTools/SampledSuffixArray.cpp | GenePlus/ncsv | f0f426ae4b64de86eee88518e3a1daf5718ce407 | [
"Apache-2.0",
"MIT"
] | null | null | null | //-----------------------------------------------
// Copyright 2011 Wellcome Trust Sanger Institute
// Written by Jared Simpson (js18@sanger.ac.uk)
// Released under the GPL
//-----------------------------------------------
//
// SampledSuffixArray - Data structure holding
// a subset of suffix array positions. From th... | 31.154088 | 106 | 0.608156 | [
"vector"
] |
9b06f31ab5e9732c6648f5413271159977cb1ea1 | 481 | cpp | C++ | cpp/turbodbc/Library/src/result_sets/result_set.cpp | arikfr/turbodbc | 80a29a7edfbdabf12410af01c0c0ae74bfc3aab4 | [
"MIT"
] | 537 | 2016-03-18T21:46:05.000Z | 2022-03-29T04:43:17.000Z | cpp/turbodbc/Library/src/result_sets/result_set.cpp | arikfr/turbodbc | 80a29a7edfbdabf12410af01c0c0ae74bfc3aab4 | [
"MIT"
] | 325 | 2016-04-08T11:54:41.000Z | 2022-03-21T23:58:42.000Z | cpp/turbodbc/Library/src/result_sets/result_set.cpp | arikfr/turbodbc | 80a29a7edfbdabf12410af01c0c0ae74bfc3aab4 | [
"MIT"
] | 83 | 2016-06-15T13:55:44.000Z | 2022-03-26T02:32:26.000Z | #include <turbodbc/result_sets/result_set.h>
namespace turbodbc { namespace result_sets {
result_set::result_set() = default;
result_set::~result_set() = default;
std::size_t result_set::fetch_next_batch()
{
return do_fetch_next_batch();
}
std::vector<column_info> result_set::get_column_info() const
{
return do_g... | 19.24 | 103 | 0.765073 | [
"vector"
] |
9b0e6f285a7ec0a02c519f7dd503eda309fc9d6b | 1,974 | cc | C++ | vendor/chromium/base/sampling_heap_profiler/module_cache.cc | thorium-cfx/fivem | 587eb7c12066a2ebf8631bde7bb39ee2df1b5a0c | [
"MIT"
] | 5,411 | 2017-04-14T08:57:56.000Z | 2022-03-30T19:35:15.000Z | vendor/chromium/base/sampling_heap_profiler/module_cache.cc | thorium-cfx/fivem | 587eb7c12066a2ebf8631bde7bb39ee2df1b5a0c | [
"MIT"
] | 802 | 2017-04-21T14:18:36.000Z | 2022-03-31T21:20:48.000Z | vendor/chromium/base/sampling_heap_profiler/module_cache.cc | thorium-cfx/fivem | 587eb7c12066a2ebf8631bde7bb39ee2df1b5a0c | [
"MIT"
] | 2,011 | 2017-04-14T09:44:15.000Z | 2022-03-31T15:40:39.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/sampling_heap_profiler/module_cache.h"
#include <utility>
namespace base {
ModuleCache::ModuleCache() = default;
ModuleCache::~ModuleCac... | 32.360656 | 80 | 0.678825 | [
"vector"
] |
9b14116c039d2a2ab499bd5d74bd19f07a5a5d08 | 3,829 | cpp | C++ | CI3-14/src/Supermercado.cpp | pemesteves/AEDA_1819-exercises | c8158547a53865c3910e420208b853579d0971c6 | [
"MIT"
] | 2 | 2018-11-28T10:59:27.000Z | 2018-12-21T14:33:12.000Z | CI3-14/src/Supermercado.cpp | pemesteves/AEDA_1819-exercises | c8158547a53865c3910e420208b853579d0971c6 | [
"MIT"
] | null | null | null | CI3-14/src/Supermercado.cpp | pemesteves/AEDA_1819-exercises | c8158547a53865c3910e420208b853579d0971c6 | [
"MIT"
] | 1 | 2018-11-18T23:41:41.000Z | 2018-11-18T23:41:41.000Z | /*
* Supermercado.cpp
*
* Created on: Dec 3, 2014
*
*/
#include "Supermercado.h"
#include <map>
#include <utility>
#include <sstream>
int Cliente::numeroItens() const{
int num = 0;
for(list<Cesto>::const_iterator it = cestos.begin(); it != cestos.end(); it++){
num += it->getItens().size();
}
return num;
}
... | 19.535714 | 80 | 0.591277 | [
"vector"
] |
9b1b9bfed562090cf096e903fca4982596351a03 | 735 | cpp | C++ | Problemset/longest-valid-parentheses/longest-valid-parentheses.cpp | Singularity0909/LeetCode | d46fb1c8ed9b16339d46d5c37f69d44e5c178954 | [
"MIT"
] | 1 | 2020-10-06T01:06:45.000Z | 2020-10-06T01:06:45.000Z | Problemset/longest-valid-parentheses/longest-valid-parentheses.cpp | Singularity0909/LeetCode | d46fb1c8ed9b16339d46d5c37f69d44e5c178954 | [
"MIT"
] | null | null | null | Problemset/longest-valid-parentheses/longest-valid-parentheses.cpp | Singularity0909/LeetCode | d46fb1c8ed9b16339d46d5c37f69d44e5c178954 | [
"MIT"
] | 1 | 2021-11-17T13:52:51.000Z | 2021-11-17T13:52:51.000Z |
// @Title: 最长有效括号 (Longest Valid Parentheses)
// @Author: Singularity0909
// @Date: 2020-10-01 01:15:18
// @Runtime: 4 ms
// @Memory: 7.3 MB
class Solution {
public:
int longestValidParentheses(string s)
{
int mx = 0, n = (int)s.length();
vector<int> dp(n, 0);
for (int i = 1; i < n; ++... | 27.222222 | 95 | 0.361905 | [
"vector"
] |
9b280c4acc66cf6ac9b2dabc6ecd1ff127f64557 | 1,732 | cpp | C++ | src/TantechEngine/input_system.cpp | evinstk/TantechEngine | 6621b6d159629547c8d75a49ffdf099a8052a2f6 | [
"MIT"
] | null | null | null | src/TantechEngine/input_system.cpp | evinstk/TantechEngine | 6621b6d159629547c8d75a49ffdf099a8052a2f6 | [
"MIT"
] | 2 | 2015-11-16T16:05:08.000Z | 2015-11-16T16:06:10.000Z | src/TantechEngine/input_system.cpp | evinstk/TantechEngine | 6621b6d159629547c8d75a49ffdf099a8052a2f6 | [
"MIT"
] | null | null | null | #include "command_system.h"
#include <algorithm>
namespace te
{
InputSystem::InputSystem(std::shared_ptr<CommandSystem> pCommandSystem)
: mpCommandSystem(pCommandSystem)
, mKeyPressMap()
, mKeyReleaseMap()
{
assert(pCommandSystem);
}
static void assignCommand(char ch, ... | 29.355932 | 96 | 0.572748 | [
"vector"
] |
9b2a81a8427b5460908a4a40caf6dae24bd38f94 | 14,071 | cpp | C++ | Source/Utility/BridgeSunset/BridgeSunset.cpp | paintdream/PaintsNow | 52e14de651b56c100caac0ce2b14348441543e1a | [
"MIT"
] | 15 | 2016-09-17T16:29:42.000Z | 2021-11-24T06:21:27.000Z | Source/Utility/BridgeSunset/BridgeSunset.cpp | paintdream/PaintsNow | 52e14de651b56c100caac0ce2b14348441543e1a | [
"MIT"
] | null | null | null | Source/Utility/BridgeSunset/BridgeSunset.cpp | paintdream/PaintsNow | 52e14de651b56c100caac0ce2b14348441543e1a | [
"MIT"
] | 3 | 2017-04-07T13:33:57.000Z | 2021-03-31T02:04:48.000Z | #include "BridgeSunset.h"
using namespace PaintsNow;
SharedContext::SharedContext() : next(nullptr) {
atomicValue.store(0, std::memory_order_release);
}
SharedContext::~SharedContext() {
SharedContext* p = next.exchange(nullptr, std::memory_order_acq_rel);
while (p != nullptr) {
SharedContext* t = p;
... | 37.323607 | 198 | 0.757515 | [
"vector"
] |
9b2d2d1ded28b431214b406e6f1b579ff83d9249 | 2,614 | cpp | C++ | week-02/beach-bars/src/main.cpp | tehwalris/algolab | 489e0f6dd137336fa32b8002fc6eed8a7d35d87a | [
"MIT"
] | 1 | 2021-01-17T08:21:32.000Z | 2021-01-17T08:21:32.000Z | week-02/beach-bars/src/main.cpp | tehwalris/algolab | 489e0f6dd137336fa32b8002fc6eed8a7d35d87a | [
"MIT"
] | null | null | null | week-02/beach-bars/src/main.cpp | tehwalris/algolab | 489e0f6dd137336fa32b8002fc6eed8a7d35d87a | [
"MIT"
] | null | null | null | #include <iostream>
#include <bitset>
#include <vector>
#include <assert.h>
#include <algorithm>
#include <deque>
#include <limits>
const int max_parasols = 1'000'000;
const int beach_size = 2 * max_parasols + 1;
const int beach_middle = beach_size / 2;
const int max_near_distance = 100;
void testcase()
{
std::bits... | 25.881188 | 120 | 0.637337 | [
"vector"
] |
9b32ac806abbc295ab9a63e769786ebfc113e1ba | 52,168 | cpp | C++ | LeopardFF8.cpp | TheBlueMatt/leopard | e078197da272b2fb50d2c4eaf0216cb5cc8f05f7 | [
"BSD-3-Clause"
] | 2 | 2017-06-29T19:08:18.000Z | 2021-06-27T14:22:43.000Z | LeopardFF8.cpp | TheBlueMatt/leopard | e078197da272b2fb50d2c4eaf0216cb5cc8f05f7 | [
"BSD-3-Clause"
] | null | null | null | LeopardFF8.cpp | TheBlueMatt/leopard | e078197da272b2fb50d2c4eaf0216cb5cc8f05f7 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2017 Christopher A. Taylor. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of ... | 30.650999 | 105 | 0.55467 | [
"vector",
"transform"
] |
9b38c021e30ceac1410f18e44b06d7ca233ffdd4 | 5,442 | hpp | C++ | include/mist/algorithm/TupleSpace.hpp | andbanman/mist | 2546fb41bccea1f89a43dbdbed7ce3a257926b54 | [
"MIT"
] | null | null | null | include/mist/algorithm/TupleSpace.hpp | andbanman/mist | 2546fb41bccea1f89a43dbdbed7ce3a257926b54 | [
"MIT"
] | 4 | 2021-03-30T21:40:44.000Z | 2021-11-08T18:54:34.000Z | include/mist/algorithm/TupleSpace.hpp | andbanman/mist | 2546fb41bccea1f89a43dbdbed7ce3a257926b54 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <map>
#include <memory>
#include <set>
#include <vector>
#ifdef BOOST_PYTHON_EXTENSIONS
#include <boost/python.hpp>
namespace p = boost::python;
#endif
#include "../Variable.hpp"
#include "it/EntropyCalculator.hpp"
namespace mist {
namespace algorithm {
/** Interface for p... | 34.0125 | 121 | 0.73043 | [
"object",
"vector"
] |
9b4042855f4c512ca9450a0b32f41727e4e04958 | 9,046 | cpp | C++ | ContextCommon/src/md5.cpp | crutchwalkfactory/jaikuengine-mobile-client | c47100ec009d47a4045b3d98addc9b8ad887b132 | [
"MIT"
] | null | null | null | ContextCommon/src/md5.cpp | crutchwalkfactory/jaikuengine-mobile-client | c47100ec009d47a4045b3d98addc9b8ad887b132 | [
"MIT"
] | null | null | null | ContextCommon/src/md5.cpp | crutchwalkfactory/jaikuengine-mobile-client | c47100ec009d47a4045b3d98addc9b8ad887b132 | [
"MIT"
] | null | null | null | // Copyright (c) 2007-2009 Google Inc.
// Copyright (c) 2006-2007 Jaiku Ltd.
// Copyright (c) 2002-2006 Mika Raento and Renaud Petit
//
// This software is licensed at your choice under either 1 or 2 below.
//
// 1. MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of thi... | 32.894545 | 82 | 0.627239 | [
"transform"
] |
9b4370adcb68c70d180a676a245607bc20ad8cdc | 741 | cpp | C++ | leetcode/140. Word Break II/tle.cpp | joycse06/LeetCode-1 | ad105bd8c5de4a659c2bbe6b19f400b926c82d93 | [
"Fair"
] | 1 | 2021-02-11T01:23:10.000Z | 2021-02-11T01:23:10.000Z | leetcode/140. Word Break II/tle.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | null | null | null | leetcode/140. Word Break II/tle.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 1 | 2021-03-25T17:11:14.000Z | 2021-03-25T17:11:14.000Z | class Solution {
private:
vector<string> ans;
unordered_set<string> dict;
void dfs(string &s, int start, string tmp) {
if (start == s.size()) {
ans.push_back(tmp);
return;
}
for (int i = start; i < s.size(); ++i) {
string sub = s.substr(start, i - ... | 29.64 | 71 | 0.492578 | [
"vector"
] |
9b45a6555fb6c80b006ad74dea1c3c4eb0731315 | 1,031 | cpp | C++ | tests/test_message_parser.cpp | pmakaruk/-Network-File-System | 8fddd7d9c5d850f1e3b621481f21fe378b1e8a21 | [
"MIT"
] | null | null | null | tests/test_message_parser.cpp | pmakaruk/-Network-File-System | 8fddd7d9c5d850f1e3b621481f21fe378b1e8a21 | [
"MIT"
] | null | null | null | tests/test_message_parser.cpp | pmakaruk/-Network-File-System | 8fddd7d9c5d850f1e3b621481f21fe378b1e8a21 | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <cassert>
#include "./utils.hpp"
#include "../libraries/core/serializers.hpp"
int main() {
std::vector<u_int8_t> data = std::vector<u_int8_t>{
(u_int8_t) MessageType::CLOSE_REQUEST,
0x00, 0x00, 0x00, 5,
0x69,
0x12, 0x34, 0x56, 0x78,
0x99, 0x99, 0x... | 29.457143 | 78 | 0.659554 | [
"vector"
] |
9b460704bdb75b1c3bb93c251fb3c3395d81416c | 1,798 | cpp | C++ | 02_Trees/05_Disjoint_Set.cpp | premnaaath/DSA | e63598d33f52e398556b71ae92a3f9c3fe29f8a4 | [
"MIT"
] | 6 | 2021-07-10T15:09:22.000Z | 2022-03-29T10:06:49.000Z | 02_Trees/05_Disjoint_Set.cpp | premnaaath/DSA | e63598d33f52e398556b71ae92a3f9c3fe29f8a4 | [
"MIT"
] | null | null | null | 02_Trees/05_Disjoint_Set.cpp | premnaaath/DSA | e63598d33f52e398556b71ae92a3f9c3fe29f8a4 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define deb(x) cout << #x << ": " << x << "\n"
class disjointSet
{
private:
vector<int> parent;
vector<int> weight;
public:
disjointSet(int n)
{
for (int i = 0; i < n; ++i)
{
parent.push_back(i);
... | 20.906977 | 58 | 0.532258 | [
"vector"
] |
9b46abbc49b756c528208cd6b8dcc9a5c35160e2 | 718 | hpp | C++ | include/Ball.hpp | IyadHamid/Bored | 1e865548a2c2c12043a43084a6e5306a4893d45b | [
"MIT"
] | 1 | 2021-01-27T23:46:26.000Z | 2021-01-27T23:46:26.000Z | include/Ball.hpp | IyadHamid/Bored | 1e865548a2c2c12043a43084a6e5306a4893d45b | [
"MIT"
] | null | null | null | include/Ball.hpp | IyadHamid/Bored | 1e865548a2c2c12043a43084a6e5306a4893d45b | [
"MIT"
] | null | null | null | #pragma once
#include <SFML/Graphics.hpp>
class Ball : public sf::Drawable {
public:
Ball(float radius, float maxRange, sf::Vector2f pos = sf::Vector2f(0, 0), size_t points = 50);
void setPhysics(float gravity, float drag, float bouncy);
void setVisibility(bool visible, float timeTotal = 0);
void addForce(float... | 27.615385 | 95 | 0.732591 | [
"shape"
] |
9b56ae2ea29059c63d49986a1281c03c6ea2f835 | 4,902 | hpp | C++ | include/codegen/include/UnityEngine/ProBuilder/Experimental/CSG/CSG_VertexUtility.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/ProBuilder/Experimental/CSG/CSG_VertexUtility.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/ProBuilder/Experimental/CSG/CSG_VertexUtility.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:22 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
// Including type... | 74.272727 | 526 | 0.768462 | [
"mesh",
"object",
"transform"
] |
9b6dcb907ba7c2a302f57f478eaaf432183aaaaa | 5,993 | cpp | C++ | src/io.cpp | ps142020/flinng4dense | b35e0dc35e611bb59d590e72dfabb2bb3ad5a0ce | [
"MIT"
] | null | null | null | src/io.cpp | ps142020/flinng4dense | b35e0dc35e611bb59d590e72dfabb2bb3ad5a0ce | [
"MIT"
] | null | null | null | src/io.cpp | ps142020/flinng4dense | b35e0dc35e611bb59d590e72dfabb2bb3ad5a0ce | [
"MIT"
] | null | null | null | #include "io.h"
namespace flinng {
void FlinngIndex::write_index(const char* fname){
FileIO idx_stream;
size_t ret;
short * bits;
int *inds;
std::vector<int> rambo_size;
int lsh_size;
idx_stream.fname = fname;
idx_stream.fp = fopen(fname, "wb");
if (idx_stream.fp == NU... | 45.06015 | 123 | 0.661271 | [
"vector"
] |
9b715d32b02615cf1875d83e16b8433c71026a34 | 3,218 | hpp | C++ | hello/hello.hpp | apollolux/hello-phoenix | 71510b5f329804c525a9576fb0367fe8ab2487cd | [
"MIT"
] | 4 | 2015-08-02T06:48:46.000Z | 2017-10-15T14:46:35.000Z | hello/hello.hpp | apollolux/hello-phoenix | 71510b5f329804c525a9576fb0367fe8ab2487cd | [
"MIT"
] | null | null | null | hello/hello.hpp | apollolux/hello-phoenix | 71510b5f329804c525a9576fb0367fe8ab2487cd | [
"MIT"
] | null | null | null | #include <nall/nall.hpp>
using namespace nall;
#include <phoenix/phoenix.hpp>
using namespace phoenix;
#include "nthings.hpp"
#include "nterra.hpp"
namespace NTerra {
struct device_t {
camera_t camera;
matrix_t projection;
matrix_t view;
/****
TODO: set up back-buffer (copy of NCanvas.data())
TODO: set up flip... | 30.647619 | 159 | 0.65289 | [
"mesh",
"render",
"transform"
] |
f92b41ca4333860ce4e7321f591c95007a611295 | 3,916 | cpp | C++ | mathtools/src/matrix_operator.cpp | lygbuaa/eco_tracker | d77afb97d356769bfe5f7d9cb5e96b3cf40c4601 | [
"MIT"
] | 14 | 2019-04-20T05:38:18.000Z | 2021-04-08T06:30:41.000Z | mathtools/src/matrix_operator.cpp | lygbuaa/eco_tracker | d77afb97d356769bfe5f7d9cb5e96b3cf40c4601 | [
"MIT"
] | 2 | 2020-06-06T11:12:06.000Z | 2020-08-10T11:27:12.000Z | mathtools/src/matrix_operator.cpp | lygbuaa/eco_tracker | d77afb97d356769bfe5f7d9cb5e96b3cf40c4601 | [
"MIT"
] | 7 | 2019-07-12T03:47:34.000Z | 2021-04-08T06:44:17.000Z | #include "matrix_operator.hpp"
EcoFeats operator+(const EcoFeats &feats1, const EcoFeats &feats2) {
EcoFeats result;
if (feats1.size() != feats2.size()) {
printf("two feature size are not equal!\n");
assert(false);
}
// for each feature
for (size_t i = 0; i < feats1.size(); i++) {
std::vector<Eigen::Mat... | 25.933775 | 69 | 0.622063 | [
"vector"
] |
f930ab81a56b0b3d0dcb2fe807d87ae2d55610e2 | 12,714 | cpp | C++ | c++/src/NeuralNetwork.cpp | RyanStonebraker/Snowball | 19f735d04ebd7262f500f205f22f2fe34eec2f5d | [
"MIT"
] | null | null | null | c++/src/NeuralNetwork.cpp | RyanStonebraker/Snowball | 19f735d04ebd7262f500f205f22f2fe34eec2f5d | [
"MIT"
] | null | null | null | c++/src/NeuralNetwork.cpp | RyanStonebraker/Snowball | 19f735d04ebd7262f500f205f22f2fe34eec2f5d | [
"MIT"
] | 1 | 2019-06-29T02:46:27.000Z | 2019-06-29T02:46:27.000Z | // NeuralNetwork.cpp
// Cpp for the container class for all Snowball functionality
#include "NeuralNetwork.h"
#include <string>
#include <fstream>
#include <utility>
#include "constants.h"
#include "WeightedNode.h"
#include <random>
using std::random_device;
using std::mt19937;
using std::uniform_real_distribution;
#in... | 34.643052 | 146 | 0.728646 | [
"vector",
"transform"
] |
f9334023dc75239a8e06b9c531524977efa8dc19 | 3,103 | hpp | C++ | libs/actor/test/test_object_pool.hpp | nousxiong/gce | 722edb8c91efaf16375664d66134ecabb16e1447 | [
"BSL-1.0"
] | 118 | 2015-01-24T01:16:46.000Z | 2022-03-09T07:31:21.000Z | libs/actor/test/test_object_pool.hpp | txwdyzcb/gce | 722edb8c91efaf16375664d66134ecabb16e1447 | [
"BSL-1.0"
] | 1 | 2015-09-24T13:03:11.000Z | 2016-12-24T04:00:59.000Z | libs/actor/test/test_object_pool.hpp | txwdyzcb/gce | 722edb8c91efaf16375664d66134ecabb16e1447 | [
"BSL-1.0"
] | 30 | 2015-03-12T09:21:45.000Z | 2021-12-15T01:55:08.000Z | ///
/// Copyright (c) 2009-2014 Nous Xiong (348944179 at qq dot com)
///
/// Distributed under the Boost Software License, Version 1.0. (See accompanying
/// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
///
/// See https://github.com/nousxiong/gce for latest version.
///
#include <gce... | 21.548611 | 96 | 0.515308 | [
"object",
"vector"
] |
f933ebdc4845d5dbea8d761177069e527222c586 | 1,976 | cpp | C++ | ImportantExample/ObjectInspectorDemo/objectinspector/model/transformpropertynode.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | 3 | 2018-12-24T19:35:52.000Z | 2022-02-04T14:45:59.000Z | ImportantExample/ObjectInspectorDemo/objectinspector/model/transformpropertynode.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | null | null | null | ImportantExample/ObjectInspectorDemo/objectinspector/model/transformpropertynode.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | 1 | 2019-05-09T02:42:40.000Z | 2019-05-09T02:42:40.000Z | #include "transformpropertynode.h"
#include <QTransform>
TransformPropertyNode::TransformPropertyNode(QObject *parent):
PropertyTreeNode(parent)
{
setExpandable(true);
PropertyTreeNode * node;
for(int i=0;i<9;i++)
{
node = new PropertyTreeNode;
node->setType(detailedNode);
... | 28.228571 | 79 | 0.641194 | [
"transform"
] |
f93e4d08b918c90d8a80c784a61bc257c80bb923 | 6,309 | cpp | C++ | Drag/SecondCase.cpp | GEslinger/PhysClass | 5e34167c34ca0e8779e4002063d95ffa24a24c9d | [
"BSD-2-Clause"
] | null | null | null | Drag/SecondCase.cpp | GEslinger/PhysClass | 5e34167c34ca0e8779e4002063d95ffa24a24c9d | [
"BSD-2-Clause"
] | null | null | null | Drag/SecondCase.cpp | GEslinger/PhysClass | 5e34167c34ca0e8779e4002063d95ffa24a24c9d | [
"BSD-2-Clause"
] | null | null | null | #include <gnuplot-iostream/gnuplot-iostream.h>
#include <boost/tuple/tuple.hpp>
#include <iostream>
#include <iomanip>
#include <functional>
#include <vector>
#include <cmath>
#include "Tools.hpp"
#define PI 3.14159265
using namespace std;
/***********************************************************************
Secon... | 38.944444 | 163 | 0.671263 | [
"object",
"vector"
] |
f946f154e9c370b85c23f644e02824e194906f3e | 597 | cpp | C++ | dp/Matrix_Chain_Multiplication/MCM.cpp | N9199/apuntes_icpc | 198571d3d516d09e5418ab51893b400bceb01acd | [
"MIT"
] | 1 | 2020-03-06T20:32:33.000Z | 2020-03-06T20:32:33.000Z | dp/Matrix_Chain_Multiplication/MCM.cpp | N9199/apuntes_icpc | 198571d3d516d09e5418ab51893b400bceb01acd | [
"MIT"
] | null | null | null | dp/Matrix_Chain_Multiplication/MCM.cpp | N9199/apuntes_icpc | 198571d3d516d09e5418ab51893b400bceb01acd | [
"MIT"
] | null | null | null | #include "../../headers/headers.h"
int inline op(int a, int b) { return (a + b) % 100; }
int inline cost(int a, int b) { return a * b; }
vector<vector<ll>> DP;
vector<vector<int>> A;
// Minimize on [i,j]
ll func(int i, int j)
{
if (DP[i][j] != -1)
return DP[i][j];
ll temp, ans = 1e9;
repx(k, i, j... | 23.88 | 100 | 0.489112 | [
"vector"
] |
f94f3b655ffbb1829d7fc58ddc9915654ccba415 | 5,969 | cpp | C++ | Test/TestTopDown.cpp | edgargabriel/HPCMetaMorpheus | 160cc269464b8e563fa2f62f6843690b6a2533ee | [
"MIT"
] | 2 | 2020-09-10T19:14:20.000Z | 2021-09-11T16:36:56.000Z | Test/TestTopDown.cpp | edgargabriel/HPCMetaMorpheus | 160cc269464b8e563fa2f62f6843690b6a2533ee | [
"MIT"
] | null | null | null | Test/TestTopDown.cpp | edgargabriel/HPCMetaMorpheus | 160cc269464b8e563fa2f62f6843690b6a2533ee | [
"MIT"
] | 3 | 2020-09-11T01:19:47.000Z | 2021-09-02T02:05:01.000Z | #include "TestTopDown.h"
#include "../EngineLayer/CommonParameters.h"
#include "../EngineLayer/PrecursorSearchModes/SinglePpmAroundZeroMassDiffAcceptor.h"
#include "../TaskLayer/MetaMorpheusTask.h"
#include "../EngineLayer/PeptideSpectralMatch.h"
using namespace EngineLayer;
using namespace EngineLayer::Classi... | 52.359649 | 207 | 0.774502 | [
"vector"
] |
f9563f56d8f162af855fd20ffda9e6196f5ccdcf | 4,232 | cpp | C++ | Game/Game/Sprite.cpp | nguyenlamlll/directx-game | 984942291a8dda1b6814dda9fc26215f067b9228 | [
"MIT"
] | 1 | 2021-02-17T13:06:38.000Z | 2021-02-17T13:06:38.000Z | Game/Game/Sprite.cpp | nguyenlamlll/directx-game | 984942291a8dda1b6814dda9fc26215f067b9228 | [
"MIT"
] | 26 | 2019-09-28T09:02:09.000Z | 2019-12-27T07:24:22.000Z | Game/Game/Sprite.cpp | nguyenlamlll/directx-game | 984942291a8dda1b6814dda9fc26215f067b9228 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Sprite.h"
bool Sprite::IsRect(RECT rect)
{
if (rect.left == rect.right)
return false;
if (rect.top == rect.bottom)
return false;
return true;
}
Sprite::Sprite()
{
//Default the m_sprite to m_position (0, 0, 0)
m_position.x = 0;
m_position.y = 0;
m_position.z = 0;
//When co... | 22.752688 | 88 | 0.68242 | [
"object"
] |
f95993a995ac2efdd2be5426a5218a9c403cb7b4 | 1,355 | cpp | C++ | bfs.cpp | rakshitraj/lol | c490916f74f1bdbd4d62a86c279c496417cf2e81 | [
"MIT"
] | null | null | null | bfs.cpp | rakshitraj/lol | c490916f74f1bdbd4d62a86c279c496417cf2e81 | [
"MIT"
] | null | null | null | bfs.cpp | rakshitraj/lol | c490916f74f1bdbd4d62a86c279c496417cf2e81 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <queue>
using namespace std;
std::vector<vector<int>> vec;
std::vector<bool> visited;
void bfs(int node){
std::queue<int> lst;
lst.push(node);
visited[node] = true;
while(!lst.empty())
{
node = lst.front();
lst.pop();
cout... | 17.828947 | 50 | 0.478967 | [
"vector"
] |
f96c289669ec0dd88bb6186099a6f6f996665179 | 38,081 | cpp | C++ | src/CameraProcessor.cpp | hamlyn-centre/daVinciToolTrack | 01f1a17abbe2859b70e323780ec69a112a8c7d7c | [
"BSD-3-Clause"
] | 2 | 2017-08-25T14:11:18.000Z | 2021-09-07T11:47:34.000Z | src/CameraProcessor.cpp | magnumye/daVinciToolTrack | 01f1a17abbe2859b70e323780ec69a112a8c7d7c | [
"BSD-3-Clause"
] | null | null | null | src/CameraProcessor.cpp | magnumye/daVinciToolTrack | 01f1a17abbe2859b70e323780ec69a112a8c7d7c | [
"BSD-3-Clause"
] | 6 | 2017-08-16T16:19:08.000Z | 2020-08-05T06:13:20.000Z | #include "simulator.h"
#include "CameraProcessor.h"
#include "ShapeContextPro.h"
void decompose_rotation_xyz(const cv::Mat &R, double& thetaX,
double& thetaY, double& thetaZ);
void compose_rotation(const double &thetaX, const double &thetaY,
const double &thetaZ, cv::Mat &R);
CameraProcessor::Cam... | 34.904675 | 135 | 0.664373 | [
"shape",
"vector"
] |
f97348efcf5fef7c0957425e533f9969df0e18c4 | 15,054 | cc | C++ | src/off_trans.cc | antiprism/antiprism | c1bc8cc44a92773dd42540de26d578b1e2c831c7 | [
"MIT"
] | 45 | 2016-04-11T19:21:10.000Z | 2022-03-30T08:47:43.000Z | src/off_trans.cc | CyberSpock/antiprism | 0a3278d8285d308e21d0aa660b860fe2b803a562 | [
"MIT"
] | null | null | null | src/off_trans.cc | CyberSpock/antiprism | 0a3278d8285d308e21d0aa660b860fe2b803a562 | [
"MIT"
] | 7 | 2016-04-12T11:35:53.000Z | 2022-03-30T08:47:46.000Z | /*
Copyright (c) 2003-2016, Adrian Rossiter
Antiprism - http://www.antiprism.com
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
... | 34.527523 | 80 | 0.589611 | [
"geometry",
"vector",
"transform"
] |
f994655a0bc38664fc0bc6bf1fe73e0f4e563fcc | 1,705 | cpp | C++ | Codeforces/378/c.cpp | eyangch/competitive-programming | 59839efcec72cb792e61b7d316f83ad54f16a166 | [
"MIT"
] | 14 | 2019-08-14T00:43:10.000Z | 2021-12-16T05:43:31.000Z | Codeforces/378/c.cpp | eyangch/competitive-programming | 59839efcec72cb792e61b7d316f83ad54f16a166 | [
"MIT"
] | null | null | null | Codeforces/378/c.cpp | eyangch/competitive-programming | 59839efcec72cb792e61b7d316f83ad54f16a166 | [
"MIT"
] | 6 | 2020-12-30T03:30:17.000Z | 2022-03-11T03:40:02.000Z | #include <bits/stdc++.h>
#define f first
#define s second
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pii;
template <typename T1, typename T2>
ostream &operator <<(ostream &os, pair<T1, T2> p){os << p.first << " " << p.second; return os;}
template <typename T>
ostream &o... | 26.230769 | 101 | 0.447507 | [
"vector"
] |
f99d9b8ae05f96c46e13145caf4cfb23a7780139 | 18,934 | cpp | C++ | bindings/bindings.cpp | shamanDevel/Ray-Splitting-for-DVR | 1747a01271d753739697fc9532894955d8c887fd | [
"MIT"
] | 1 | 2021-09-23T20:45:22.000Z | 2021-09-23T20:45:22.000Z | bindings/bindings.cpp | shamanDevel/Ray-Splitting-for-DVR | 1747a01271d753739697fc9532894955d8c887fd | [
"MIT"
] | null | null | null | bindings/bindings.cpp | shamanDevel/Ray-Splitting-for-DVR | 1747a01271d753739697fc9532894955d8c887fd | [
"MIT"
] | 2 | 2021-06-03T14:04:16.000Z | 2021-06-03T14:16:02.000Z | #include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include <pybind11/stl.h>
#include <json.hpp>
#include <fstream>
#include <json.hpp>
#include <tinyformat.h>
#include <lib.h>
#include <renderer_settings.cuh>
#ifdef WIN32
#ifndef NOMINMAX
#define NOMINMAX 1
#endif
#include <Windows.h>
#endif
namespace py = ... | 36.064762 | 146 | 0.718073 | [
"render",
"vector"
] |
f9a31ad8894c44393ddc569ccf84b980ffd2ce1d | 9,376 | hpp | C++ | include/util/datastream/sketch/Level2Sketch.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 31 | 2015-03-03T19:13:42.000Z | 2020-09-03T08:11:56.000Z | include/util/datastream/sketch/Level2Sketch.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 1 | 2016-12-24T00:12:11.000Z | 2016-12-24T00:12:11.000Z | include/util/datastream/sketch/Level2Sketch.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 8 | 2015-09-06T01:55:21.000Z | 2021-12-20T02:16:13.000Z | #ifndef IZENELIB_UTIL_bucket_LEVEL2SKETCH_H_
#define IZENELIB_UTIL_bucket_LEVEL2SKETCH_H_
#include <util/hashFunction.h>
#include <vector>
#include <iostream>
NS_IZENELIB_UTIL_BEGIN
template <typename ElemType>
class Level2Bucket
{
public:
typedef ElemType DataTypeT;
private:
typedef std::vector<uint32_t> L... | 26.636364 | 117 | 0.597483 | [
"vector"
] |
f9a8aeb1665b41621526ae72810c1825757026fa | 39,773 | cpp | C++ | cisco-ios-xe/ydk/models/cisco_ios_xe/IP_FORWARD_MIB.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-12-02T05:45:49.000Z | 2022-02-10T19:32:54.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/IP_FORWARD_MIB.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-03-27T15:22:38.000Z | 2019-11-05T08:30:16.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/IP_FORWARD_MIB.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2016-12-02T05:45:52.000Z | 2019-11-07T08:28:17.000Z |
#include <sstream>
#include <iostream>
#include <ydk/entity_util.hpp>
#include "bundle_info.hpp"
#include "generated_entity_lookup.hpp"
#include "IP_FORWARD_MIB.hpp"
using namespace ydk;
namespace cisco_ios_xe {
namespace IP_FORWARD_MIB {
IPFORWARDMIB::IPFORWARDMIB()
:
ipforward(std::make_shared<IPFORWARDMI... | 36.589696 | 495 | 0.723204 | [
"vector"
] |
3911127d6c46e470308b7277de6b010a89d1a0ed | 12,978 | cpp | C++ | OpenGLSandbox/src/Engine/Rendering/Mesh.cpp | conholo/OpenGLSandbox | c8c35f275dacd9c873c78aa003b840822db719a8 | [
"MIT"
] | null | null | null | OpenGLSandbox/src/Engine/Rendering/Mesh.cpp | conholo/OpenGLSandbox | c8c35f275dacd9c873c78aa003b840822db719a8 | [
"MIT"
] | null | null | null | OpenGLSandbox/src/Engine/Rendering/Mesh.cpp | conholo/OpenGLSandbox | c8c35f275dacd9c873c78aa003b840822db719a8 | [
"MIT"
] | null | null | null | #include "Engine/Rendering/Mesh.h"
#include "Engine/Core/Math.h"
#include <iostream>
#include <unordered_map>
namespace Engine
{
#define PI 3.14159265359
Mesh::Mesh(float* vertices, uint32_t vertexCount, uint32_t* indices, uint32_t indexCount)
{
m_Vertices.resize(vertexCount);
memcpy(m_Vertices.data(), vertices... | 30.753555 | 151 | 0.588766 | [
"mesh",
"vector"
] |
39225b5df5bc054f3445754172c730620a682076 | 266 | cpp | C++ | cpp/cpp_primer/chapter10/ex_10_34.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | 2 | 2019-12-21T00:53:47.000Z | 2020-01-01T10:36:30.000Z | cpp/cpp_primer/chapter10/ex_10_34.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | null | null | null | cpp/cpp_primer/chapter10/ex_10_34.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | null | null | null | //
// Created by kaiser on 18-12-17.
//
#include <cstdint>
#include <iostream>
#include <vector>
int main() {
std::vector<std::int32_t> vi{1, 2, 3};
for (auto begin{std::crbegin(vi)}; begin != std::crend(vi); ++begin) {
std::cout << *begin << '\n';
}
}
| 16.625 | 72 | 0.575188 | [
"vector"
] |
392546ddffe6c44a24aacc98f75798d3a96fdf5f | 1,484 | cpp | C++ | tests/test_dbuf.cpp | Conservify/phylum | c091e84cf6b5ae1760c086f73731c7180afb58f0 | [
"BSD-3-Clause"
] | 10 | 2019-11-26T11:35:56.000Z | 2021-07-03T07:21:38.000Z | tests/test_dbuf.cpp | conservify/phylum | 9e81f86d1ee1c4a1625182ca96296fa216063831 | [
"BSD-3-Clause"
] | 1 | 2019-07-03T06:27:21.000Z | 2019-09-06T09:21:27.000Z | tests/test_dbuf.cpp | conservify/phylum | 9e81f86d1ee1c4a1625182ca96296fa216063831 | [
"BSD-3-Clause"
] | 1 | 2019-09-23T18:13:51.000Z | 2019-09-23T18:13:51.000Z | #include <data_chain.h>
#include "phylum_tests.h"
#include "geometry.h"
using namespace phylum;
template <typename T> class DelimitedBufferFixture : public PhylumFixture {};
typedef ::testing::Types<layout_256, layout_4096, layout_4096> Implementations;
TYPED_TEST_SUITE(DelimitedBufferFixture, Implementations);
T... | 22.830769 | 79 | 0.737871 | [
"geometry"
] |
3927f2b7a378f0b097525d897aae1685afa81ece | 138,118 | cpp | C++ | Temp/StagingArea/Il2Cpp/il2cppOutput/UnityEngine.ParticleSystemModule.cpp | UtkayF/Ekonomiyi-Kurtar | 4567ece8dcff8cf323fb97950ddc79eb75b4f96e | [
"Apache-2.0"
] | null | null | null | Temp/StagingArea/Il2Cpp/il2cppOutput/UnityEngine.ParticleSystemModule.cpp | UtkayF/Ekonomiyi-Kurtar | 4567ece8dcff8cf323fb97950ddc79eb75b4f96e | [
"Apache-2.0"
] | null | null | null | Temp/StagingArea/Il2Cpp/il2cppOutput/UnityEngine.ParticleSystemModule.cpp | UtkayF/Ekonomiyi-Kurtar | 4567ece8dcff8cf323fb97950ddc79eb75b4f96e | [
"Apache-2.0"
] | null | null | null | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "codegen/il2cpp-codegen.h"
#include "il2cpp-object-internals.h"
// Syste... | 58.277637 | 426 | 0.865847 | [
"mesh",
"object"
] |
392ecff956e830e01596de94877c90cb96c37597 | 893 | cpp | C++ | code/arkin-apx/strip_cover/strip_cover.cpp | d-krupke/turncost | 2bbe1f1b31eddca5c6e686988e715be7d76c37a3 | [
"MIT"
] | null | null | null | code/arkin-apx/strip_cover/strip_cover.cpp | d-krupke/turncost | 2bbe1f1b31eddca5c6e686988e715be7d76c37a3 | [
"MIT"
] | null | null | null | code/arkin-apx/strip_cover/strip_cover.cpp | d-krupke/turncost | 2bbe1f1b31eddca5c6e686988e715be7d76c37a3 | [
"MIT"
] | null | null | null | //
// Created by Dominik Krupke, http://krupke.cc on 10/9/17.
//
#include "strip_cover.h"
namespace turncostcover {
namespace arkinapx {
std::vector<Strip>
ComputeStripCover(const GridGraph &graph) {
StripExtractor stripExtractor{};
auto strips = stripExtractor.ExtractStrips(graph);
using AuxGraph = boost::adj... | 26.264706 | 87 | 0.674132 | [
"vector"
] |
3931bb7f91972e29b64ea27a5fb66e5786867dd2 | 4,572 | cc | C++ | MetroSVG/Internal/StyleSheet.cc | isabella232/metrosvg | 2297bc32bd5b611cd4355deb2cba9dba6337e3e6 | [
"Apache-2.0"
] | 15 | 2016-01-29T06:10:46.000Z | 2021-10-12T03:15:42.000Z | MetroSVG/Internal/StyleSheet.cc | isabella232/metrosvg | 2297bc32bd5b611cd4355deb2cba9dba6337e3e6 | [
"Apache-2.0"
] | 1 | 2021-07-12T12:51:44.000Z | 2021-07-12T12:51:44.000Z | MetroSVG/Internal/StyleSheet.cc | isabella232/metrosvg | 2297bc32bd5b611cd4355deb2cba9dba6337e3e6 | [
"Apache-2.0"
] | 9 | 2016-01-25T04:22:55.000Z | 2021-07-12T12:51:24.000Z | /*
* Copyright 2016 Google Inc. 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 applica... | 31.972028 | 75 | 0.558618 | [
"vector"
] |
393621e63c0c5daf0e20ad9463d29b0c3cfba53e | 9,340 | cpp | C++ | src/nv38box/nv/nv_manip.cpp | darwin/inferno | e87017763abae0cfe09d47987f5f6ac37c4f073d | [
"Zlib"
] | 2 | 2016-05-09T11:57:28.000Z | 2021-07-28T16:46:08.000Z | src/nv38box/nv/nv_manip.cpp | darwin/inferno | e87017763abae0cfe09d47987f5f6ac37c4f073d | [
"Zlib"
] | null | null | null | src/nv38box/nv/nv_manip.cpp | darwin/inferno | e87017763abae0cfe09d47987f5f6ac37c4f073d | [
"Zlib"
] | null | null | null |
#ifndef _nv_manip_h_
#include "nv_manip.h"
#endif // _nv_manip_h_
nv_manip::nv_manip() :
_mode(_NIL),
_behavior(CAMERA|PAN|TRANSLATE|ROTATE),
_track_quat(quat_id),
_curquat(quat_id),
_mouse_start(vec2_null),
_eye_pos(vec3_null),
_focus_pos(vec3_null),
_eye_y(vec3_z), // _e... | 23.826531 | 122 | 0.575268 | [
"object"
] |
393de34dcd88cfdd5e032d465a2333a6dbdc5f12 | 18,503 | cpp | C++ | Server-Client/GameClientState.cpp | matzar/SFML-Networking | 2623ae7c38ada2dfcbbdf725345222e58a86336b | [
"MIT"
] | null | null | null | Server-Client/GameClientState.cpp | matzar/SFML-Networking | 2623ae7c38ada2dfcbbdf725345222e58a86336b | [
"MIT"
] | null | null | null | Server-Client/GameClientState.cpp | matzar/SFML-Networking | 2623ae7c38ada2dfcbbdf725345222e58a86336b | [
"MIT"
] | null | null | null | #include "GameClientState.h"
#include <sstream>
GameClientState::GameClientState(sf::RenderWindow* hwnd, Input* in)
{
window = hwnd;
input = in;
lerp_mode = true;
debug_mode = false;
text.setFont(font);
text.setCharacterSize(32);
text.setPosition(10, 0);
text.setString("");
// player
player.setSize(sf::V... | 39.201271 | 259 | 0.757661 | [
"render"
] |
39436de2c8c4c5eb5b0dc6ab10897da5e4e02ee0 | 465 | cpp | C++ | object.cpp | Adnan-Ali-Ahmad/RK4-R3BP-SE | b76c0e3711cc0efa1ef1a2972c0ce939391afa8f | [
"Unlicense"
] | null | null | null | object.cpp | Adnan-Ali-Ahmad/RK4-R3BP-SE | b76c0e3711cc0efa1ef1a2972c0ce939391afa8f | [
"Unlicense"
] | null | null | null | object.cpp | Adnan-Ali-Ahmad/RK4-R3BP-SE | b76c0e3711cc0efa1ef1a2972c0ce939391afa8f | [
"Unlicense"
] | null | null | null | #include <object.h>
object::object(double m,double R,double T,double density,double a,double e,double i,double w,double Om,double M)
{
this->m = m;
this->R = R;
this->T = T;
this->x = x;
this->y = y;
this->z = z;
this->vx = vx;
this->vy = vy;
this->vz = vz;
this->a = a;
thi... | 16.607143 | 112 | 0.505376 | [
"object"
] |
394390e527a6d2ea14a6ba18aaab6a1b4350e6dc | 3,093 | cpp | C++ | Source/Ilum/Renderer/RenderPass/PreProcess/KullaConty.cpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | 11 | 2022-01-09T05:32:56.000Z | 2022-03-28T06:35:16.000Z | Source/Ilum/Renderer/RenderPass/PreProcess/KullaConty.cpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | null | null | null | Source/Ilum/Renderer/RenderPass/PreProcess/KullaConty.cpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | 1 | 2021-11-20T15:39:03.000Z | 2021-11-20T15:39:03.000Z | #include "KullaConty.hpp"
#include "Renderer/RenderGraph/RenderGraph.hpp"
#include "Renderer/Renderer.hpp"
#include "Graphics/Vulkan/VK_Debugger.h"
#include "ImGui/ImGuiContext.hpp"
#include <imgui.h>
namespace Ilum::pass
{
void KullaContyEnergy::setupPipeline(PipelineState &state)
{
state.shader.load(std::string... | 32.557895 | 165 | 0.770773 | [
"render"
] |
394dcbe6663803255550f16658b11df7df62adc7 | 19,203 | cpp | C++ | src/modules/localization/src/segmentation/point_cloud_segmenter.cpp | joeyzhu00/FusionAD | 7c912e399b9fcfa657d623f74be64921fc1a11ac | [
"MIT"
] | 33 | 2018-06-03T19:45:42.000Z | 2022-02-17T09:18:11.000Z | src/modules/localization/src/segmentation/point_cloud_segmenter.cpp | joeyzhu00/FusionAD | 7c912e399b9fcfa657d623f74be64921fc1a11ac | [
"MIT"
] | 167 | 2018-05-17T03:48:11.000Z | 2019-04-30T21:57:01.000Z | src/modules/localization/src/segmentation/point_cloud_segmenter.cpp | joeyzhu00/FusionAD | 7c912e399b9fcfa657d623f74be64921fc1a11ac | [
"MIT"
] | 26 | 2018-07-04T04:32:54.000Z | 2022-02-22T10:10:49.000Z | /***************************************************************************************
Author: Mitchell Sayer
Program Name: point_cloud_segmenter.cc
Brief:
Date: MAR 1 2018
***************************************************************************************/
#include "localization/segmentation/point_cloud_... | 28.704036 | 151 | 0.597094 | [
"vector"
] |
39536c20095f88f290c4099541c4413a8fd77a7f | 10,034 | cpp | C++ | src/lib/data/Image.cpp | kaifeichen/MARVEL | 87d6aa0bb126f739450529069cb5cdf42c66c3fd | [
"Unlicense"
] | 5 | 2018-01-23T21:55:08.000Z | 2021-02-07T00:56:40.000Z | src/lib/data/Image.cpp | kaifeichen/MARVEL | 87d6aa0bb126f739450529069cb5cdf42c66c3fd | [
"Unlicense"
] | null | null | null | src/lib/data/Image.cpp | kaifeichen/MARVEL | 87d6aa0bb126f739450529069cb5cdf42c66c3fd | [
"Unlicense"
] | 2 | 2018-03-26T09:03:21.000Z | 2021-02-07T00:56:58.000Z | #include "lib/data/Image.h"
Image::Image(int id, int roomId, const cv::Mat &image, const cv::Mat &depth,
const Transform &pose, const CameraModel &camera)
: _id(id), _roomId(roomId), _image(image), _depth(depth), _pose(pose),
_camera(camera) {}
int Image::getId() const { return _id; }
int Imag... | 33.446667 | 80 | 0.529201 | [
"vector",
"model",
"transform"
] |
3956ceb3a1a58036b444c8bd3772b57f2d809e7a | 51,485 | cpp | C++ | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/3ds/ReaderWriter3DS.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 3 | 2018-08-20T12:12:43.000Z | 2021-06-06T09:43:27.000Z | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/3ds/ReaderWriter3DS.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | null | null | null | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgPlugins/3ds/ReaderWriter3DS.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 1 | 2022-03-31T03:12:23.000Z | 2022-03-31T03:12:23.000Z |
#include <osg/Notify>
#include <osg/Group>
#include <osg/Geode>
#include <osg/Geometry>
#include <osg/Texture2D>
#include <osg/Material>
#include <osg/TexEnv>
#include <osg/ref_ptr>
#include <osg/MatrixTransform>
#include <osg/BlendFunc>
#include <osg/TexEnvCombine>
#include <osgDB/Registry>
#include <osgDB/FileUtils... | 40.285603 | 377 | 0.643372 | [
"mesh",
"geometry",
"object",
"vector",
"model",
"transform",
"3d"
] |
39601cb2f7e0648d45a71ca1a245c7a42bdf4b68 | 2,209 | hpp | C++ | remodet_repository_wdh_part/include/caffe/mask/visual_mask_layer.hpp | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | remodet_repository_wdh_part/include/caffe/mask/visual_mask_layer.hpp | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | remodet_repository_wdh_part/include/caffe/mask/visual_mask_layer.hpp | UrwLee/Remo_experience | a59d5b9d6d009524672e415c77d056bc9dd88c72 | [
"MIT"
] | null | null | null | #ifndef CAFFE_VISUAL_MASK_LAYER_HPP_
#define CAFFE_VISUAL_MASK_LAYER_HPP_
#include "caffe/blob.hpp"
#include "caffe/layer.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/mask/bbox_func.hpp"
namespace caffe {
/**
* 该层作为Mask的可视化层,它提供了如下方法:
* 1.可视化实例的boxes
* 2.可视化实例的关节点
* 3.可视化实例的Mask
*/
template <typename... | 24.544444 | 80 | 0.663196 | [
"vector"
] |
3962bf1e4e743e18a79ee370d7ccaff23b37240b | 9,935 | cpp | C++ | src/cryptographic/sha1.cpp | namralkeeg/QHashlib | 5b4fdb33833b6b0a1856c87a6d4696371aecfe59 | [
"MIT"
] | null | null | null | src/cryptographic/sha1.cpp | namralkeeg/QHashlib | 5b4fdb33833b6b0a1856c87a6d4696371aecfe59 | [
"MIT"
] | null | null | null | src/cryptographic/sha1.cpp | namralkeeg/QHashlib | 5b4fdb33833b6b0a1856c87a6d4696371aecfe59 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2017 Larry Lopez
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish... | 32.788779 | 114 | 0.611173 | [
"transform"
] |
3967d808ee28fee13bd73813892f955ca51c07eb | 1,570 | cpp | C++ | library/computationalGeometry/convexFunctions.cpp | bluedawnstar/algorithm_library | 4c7f64ec61fc2ba059b64ad7ba20fcb5b838ced6 | [
"Unlicense"
] | 40 | 2017-11-26T05:29:18.000Z | 2020-11-13T00:29:26.000Z | library/computationalGeometry/convexFunctions.cpp | bluedawnstar/algorithm_library | 4c7f64ec61fc2ba059b64ad7ba20fcb5b838ced6 | [
"Unlicense"
] | 101 | 2019-02-09T06:06:09.000Z | 2021-12-25T16:55:37.000Z | library/computationalGeometry/convexFunctions.cpp | bluedawnstar/algorithm_library | 4c7f64ec61fc2ba059b64ad7ba20fcb5b838ced6 | [
"Unlicense"
] | 6 | 2017-01-03T14:17:58.000Z | 2021-01-22T10:37:04.000Z | #include <cmath>
#include <tuple>
#include <functional>
#include <vector>
#include <algorithm>
using namespace std;
#include "convexFunctions.h"
#include "../math/ternarySearch3D.h"
/////////// For Testing ///////////////////////////////////////////////////////
#include <time.h>
#include <cassert>
#include <string>... | 32.708333 | 96 | 0.527389 | [
"vector"
] |
3968a4f868ce5789a1e45a5c8fca586c061d37b4 | 2,613 | cpp | C++ | Sample022/src/mesh_instance.cpp | Monsho/D3D12Samples | 4624fd64b57c12fee1085ecfba1f770f802a236c | [
"MIT"
] | 32 | 2017-10-11T00:23:17.000Z | 2022-01-02T14:08:56.000Z | Sample022/src/mesh_instance.cpp | Monsho/D3D12Samples | 4624fd64b57c12fee1085ecfba1f770f802a236c | [
"MIT"
] | null | null | null | Sample022/src/mesh_instance.cpp | Monsho/D3D12Samples | 4624fd64b57c12fee1085ecfba1f770f802a236c | [
"MIT"
] | 6 | 2019-01-18T13:16:01.000Z | 2021-09-07T09:43:20.000Z | #include "mesh_instance.h"
namespace sl12
{
//----
bool MeshletRenderComponent::Initialize(Device* pDev, const std::vector<ResourceItemMesh::Meshlet>& meshlets)
{
struct MeshletData
{
DirectX::XMFLOAT3 aabbMin;
u32 indexOffset;
DirectX::XMFLOAT3 aabbMax;
u32 indexCount;
};
if (!meshle... | 24.650943 | 214 | 0.704171 | [
"vector"
] |
39691d87d790a4c313c1d29834b2c89219ad59ff | 392 | cpp | C++ | src/core/EmptyScene.cpp | kyle-piddington/SharkProject | d34d27cd7a7fbd385dd9edccd69b2d2257be70f2 | [
"MIT"
] | 2 | 2015-11-27T10:15:37.000Z | 2020-10-17T23:57:11.000Z | src/core/EmptyScene.cpp | kyle-piddington/SharkProject | d34d27cd7a7fbd385dd9edccd69b2d2257be70f2 | [
"MIT"
] | null | null | null | src/core/EmptyScene.cpp | kyle-piddington/SharkProject | d34d27cd7a7fbd385dd9edccd69b2d2257be70f2 | [
"MIT"
] | 1 | 2021-02-18T14:42:03.000Z | 2021-02-18T14:42:03.000Z | #include "EmptyScene.h"
EmptyScene::EmptyScene() : Scene()
{
}
EmptyScene::~EmptyScene()
{
}
void EmptyScene::initPrograms()
{
}
void EmptyScene::initialBind()
{
glClearColor(0.75f, 0.52f, 0.3f, 1.0f);
glEnable(GL_DEPTH_TEST);
}
void EmptyScene::render()
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFE... | 12.25 | 54 | 0.681122 | [
"render"
] |
3971dda86531e1ecdd5d8c4bceec3e7e18cb273b | 2,328 | cpp | C++ | modules/goblin/register_types.cpp | filipworksdev/goblin-test | c2a251fc66e43f7e74327cbec73b1d1fc5aa4b1d | [
"MIT",
"Apache-2.0",
"Unlicense"
] | 9 | 2022-02-07T09:53:17.000Z | 2022-03-31T17:50:38.000Z | modules/goblin/register_types.cpp | filipworksdev/goblin-test | c2a251fc66e43f7e74327cbec73b1d1fc5aa4b1d | [
"MIT",
"Apache-2.0",
"Unlicense"
] | null | null | null | modules/goblin/register_types.cpp | filipworksdev/goblin-test | c2a251fc66e43f7e74327cbec73b1d1fc5aa4b1d | [
"MIT",
"Apache-2.0",
"Unlicense"
] | 6 | 2021-11-27T17:31:06.000Z | 2022-03-26T02:22:11.000Z | /* register_types.cpp */
#include "core/class_db.h"
#include "register_types.h"
#include "editor/editor_node.h"
#include "editor/mixin_script_editor.h"
#include "editor/mixin_script_editor_plugin.h"
#include "mixin_script.h"
#include "core/script_language.h"
#include "image_indexed.h"
#include "io/image_loader_indexed... | 29.1 | 115 | 0.808419 | [
"object"
] |
397722edd69628c4d2050a244605bf61a76b14f3 | 7,129 | cpp | C++ | test/api_ConsoleTest.cpp | smorey2/litehtml | 9400244dba01f7239e40d3468b020f2c4a1acca2 | [
"BSD-3-Clause"
] | null | null | null | test/api_ConsoleTest.cpp | smorey2/litehtml | 9400244dba01f7239e40d3468b020f2c4a1acca2 | [
"BSD-3-Clause"
] | null | null | null | test/api_ConsoleTest.cpp | smorey2/litehtml | 9400244dba01f7239e40d3468b020f2c4a1acca2 | [
"BSD-3-Clause"
] | null | null | null | #include <assert.h>
#include "litehtml.h"
#include "test/container_test.h"
using namespace litehtml;
static context ctx;
static container_test container;
static document::ptr MakeDocument(wchar_t* source) { return document::createFromString(source, &container, &ctx); }
static void Test() {
Console* conso... | 23.684385 | 116 | 0.54622 | [
"model"
] |
39776bab99acdf4f0defa5dfb58d69dec583298c | 520 | cpp | C++ | arrayLeftRotation/sol.cpp | SandSnip3r/HackerRankCTCI | 47f670c5cfa5a68f278ea50079825c8be6bc4347 | [
"MIT"
] | null | null | null | arrayLeftRotation/sol.cpp | SandSnip3r/HackerRankCTCI | 47f670c5cfa5a68f278ea50079825c8be6bc4347 | [
"MIT"
] | null | null | null | arrayLeftRotation/sol.cpp | SandSnip3r/HackerRankCTCI | 47f670c5cfa5a68f278ea50079825c8be6bc4347 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <iterator>
#include <vector>
using namespace std;
int main() {
int numberOfElements, rotationCount;
cin >> numberOfElements >> rotationCount;
vector<int> myNums;
myNums.reserve(numberOfElements);
for (int i=0; i<numberOfElements; ++i) {
int temp;
cin >> temp;... | 23.636364 | 70 | 0.696154 | [
"vector"
] |
397bc75b2e7509564774ebe011a2a8fe407a7bca | 11,864 | cpp | C++ | src/RTL/Component/Common/CIFXHashMap.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 44 | 2016-05-06T00:47:11.000Z | 2022-02-11T06:51:37.000Z | src/RTL/Component/Common/CIFXHashMap.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 3 | 2016-06-27T12:37:31.000Z | 2021-03-24T12:39:48.000Z | src/RTL/Component/Common/CIFXHashMap.cpp | alemuntoni/u3d | 7907b907464a2db53dac03fdc137dcb46d447513 | [
"Apache-2.0"
] | 15 | 2016-02-28T11:08:30.000Z | 2021-06-01T03:32:01.000Z | //***************************************************************************
//
// Copyright (c) 1999 - 2006 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
//
// ... | 26.189845 | 82 | 0.580748 | [
"object"
] |
303eb29797846da5d1889996c2e615422714f17d | 7,159 | cpp | C++ | tools/generators/grpc/ClassDescriptor.cpp | b-com-software-basis/xpcf | 26ce21929ff6209ef69117270cf49844348c988f | [
"Apache-2.0"
] | null | null | null | tools/generators/grpc/ClassDescriptor.cpp | b-com-software-basis/xpcf | 26ce21929ff6209ef69117270cf49844348c988f | [
"Apache-2.0"
] | 7 | 2020-02-13T20:35:16.000Z | 2021-11-19T17:46:15.000Z | tools/generators/grpc/ClassDescriptor.cpp | b-com-software-basis/xpcf | 26ce21929ff6209ef69117270cf49844348c988f | [
"Apache-2.0"
] | 1 | 2018-02-26T14:10:43.000Z | 2018-02-26T14:10:43.000Z | #include "ClassDescriptor.h"
#include <iostream>
#include "MethodDescriptor.h"
#include <cppast/cpp_entity_kind.hpp>
#include <xpcf/core/helpers.h>
#include <boost/algorithm/string.hpp>
namespace xpcf = org::bcom::xpcf;
ClassDescriptor::ClassDescriptor(const cppast::cpp_entity& c, const std::string & nameSpace, cons... | 40.446328 | 176 | 0.563626 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.