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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c74278df6f0e3a7bcc7c673ba0fa1ac763f0efdd | 3,780 | cpp | C++ | KClient/release/moc_mainwindow.cpp | adricatena/TD3-Ethernet | f2113676614ae71e10b5073d1623a9c7941ba111 | [
"MIT"
] | null | null | null | KClient/release/moc_mainwindow.cpp | adricatena/TD3-Ethernet | f2113676614ae71e10b5073d1623a9c7941ba111 | [
"MIT"
] | null | null | null | KClient/release/moc_mainwindow.cpp | adricatena/TD3-Ethernet | f2113676614ae71e10b5073d1623a9c7941ba111 | [
"MIT"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'mainwindow.h'
**
** Created: Thu 29. Sep 11:25:29 2016
** by: The Qt Meta Object Compiler version 63 (Qt 4.8.1)
**
** WARNING! All changes made in this file will be lost!
****************... | 33.451327 | 102 | 0.593915 | [
"object"
] |
c743ac88ef7ee199bb0187f5a05898d16ce476f8 | 851 | hpp | C++ | src/RendererSectionData.hpp | uis246/AltCraft | 2659824ef8d48b3dd371d74a7792792002b367a5 | [
"Apache-2.0"
] | 4 | 2021-06-22T19:44:24.000Z | 2022-01-19T07:01:37.000Z | src/RendererSectionData.hpp | uis246/AltCraft | 2659824ef8d48b3dd371d74a7792792002b367a5 | [
"Apache-2.0"
] | 4 | 2020-08-08T23:22:59.000Z | 2021-07-06T17:23:39.000Z | src/RendererSectionData.hpp | uis246/AltCraft | 2659824ef8d48b3dd371d74a7792792002b367a5 | [
"Apache-2.0"
] | 1 | 2021-09-22T07:31:25.000Z | 2021-09-22T07:31:25.000Z | #pragma once
#include <vector>
#include <glm/mat4x4.hpp>
#include "Vector.hpp"
#include "Section.hpp"
#include "AssetManager.hpp"
class World;
struct BlockLightness {
unsigned char face[FaceDirection::none] = { 0,0,0,0,0,0 };
};
struct SectionsData {
Section *section = nullptr;
Section *west = nullptr;
Sectio... | 20.261905 | 66 | 0.72973 | [
"vector"
] |
c7470ded46a7581ba7c53d926fe8e93566c6e0d3 | 3,806 | cpp | C++ | roundssqlmodel.cpp | jonkjenn/ChessTour | 0df7366250de02811708a6d24dab9209f703097c | [
"CC-BY-3.0"
] | null | null | null | roundssqlmodel.cpp | jonkjenn/ChessTour | 0df7366250de02811708a6d24dab9209f703097c | [
"CC-BY-3.0"
] | null | null | null | roundssqlmodel.cpp | jonkjenn/ChessTour | 0df7366250de02811708a6d24dab9209f703097c | [
"CC-BY-3.0"
] | null | null | null | #include "roundssqlmodel.h"
#include <QtSql/QSqlRecord>
#include <QtSql/QSqlQuery>
#include <QtSql/QSqlError>
#include <QDebug>
RoundsSqlModel::RoundsSqlModel(QObject *parent, QSqlDatabase database):
QSqlTableModel(parent), database(database)
{
}
QVariant RoundsSqlModel::data(int row, QString columnName)const
{
... | 28.192593 | 120 | 0.682606 | [
"model"
] |
c750ebb9058b2f78325971f45eafb520eb769903 | 2,666 | cpp | C++ | src/common/protocol/types/ArrayOf.cpp | smartdu/kafkaclient-cpp | 03d108808a50a13d7a26e63461a1ac27c5bc141c | [
"Apache-2.0"
] | 5 | 2019-04-29T11:09:55.000Z | 2019-11-28T02:53:59.000Z | src/common/protocol/types/ArrayOf.cpp | smartdu/kafkaclient-cpp | 03d108808a50a13d7a26e63461a1ac27c5bc141c | [
"Apache-2.0"
] | 2 | 2019-05-10T09:37:49.000Z | 2019-05-14T02:40:16.000Z | src/common/protocol/types/ArrayOf.cpp | smartdu/kafkaclient-cpp | 03d108808a50a13d7a26e63461a1ac27c5bc141c | [
"Apache-2.0"
] | 1 | 2019-05-10T10:07:50.000Z | 2019-05-10T10:07:50.000Z | #include "ArrayOf.h"
#include "ByteBuffer.h"
#include "ObjectArray.h"
#include "SchemaException.h"
#include "Object.h"
#include "Type.h"
const char* ArrayOf::ARRAY_TYPE_NAME = "ARRAY";
ArrayOf::ArrayOf(Type *type)
{
this->type_ = type;
this->nullable_ = false;
}
ArrayOf::ArrayOf(Type *type, bool nul... | 20.992126 | 151 | 0.610278 | [
"object"
] |
c75446378360d435f8f26f09e65ed989c2f4e6aa | 2,630 | hpp | C++ | src/ct_icp/evaluate_slam.hpp | xiang-1208/ct_icp | 42928e584c24595c49e147e2ea120f8cc31ec716 | [
"MIT"
] | 123 | 2021-10-08T01:51:45.000Z | 2022-03-31T08:55:15.000Z | src/ct_icp/evaluate_slam.hpp | ZuoJiaxing/ct_icp | 1c371331aad833faec157c015fb8f72143019caa | [
"MIT"
] | 9 | 2021-10-19T07:25:46.000Z | 2022-03-31T03:20:19.000Z | src/ct_icp/evaluate_slam.hpp | ZuoJiaxing/ct_icp | 1c371331aad833faec157c015fb8f72143019caa | [
"MIT"
] | 23 | 2021-10-08T01:49:01.000Z | 2022-03-24T15:35:07.000Z |
#ifndef EVALUATE_HPP_
#define EVALUATE_HPP_
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <fstream>
#include <iostream>
#include <limits>
#include <sstream>
#include <vector>
#include <map>
#include <exception>
#include <Eigen/Dense>
#include "yaml-cpp/yaml.h"
#include "io.hpp"
#include "types.h... | 27.395833 | 105 | 0.620532 | [
"vector"
] |
c763d8358809a97a2e57f457665e541b6da83290 | 1,403 | hpp | C++ | graph/strongly_connected_components_tarjan.hpp | cormoran/LibAlgorithm | 9eec05a36343c891be5fee475678a283081c68d3 | [
"MIT"
] | 1 | 2020-03-28T23:46:14.000Z | 2020-03-28T23:46:14.000Z | graph/strongly_connected_components_tarjan.hpp | cormoran/LibAlgorithm | 9eec05a36343c891be5fee475678a283081c68d3 | [
"MIT"
] | null | null | null | graph/strongly_connected_components_tarjan.hpp | cormoran/LibAlgorithm | 9eec05a36343c891be5fee475678a283081c68d3 | [
"MIT"
] | null | null | null | #pragma once
#include "common/simple_header.hpp"
using EdgeList = vector<vector<int>>;
// 非連結を含む,グラフ E を強連結成分に分解(Tarjan's algorithm)
// O(N + M) N: 頂点数, M: 辺数
// -> 強連結成分ごとのグループ
// グループはトポロジカル順序の逆順(のはず)http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=GRL_4_A&lang=jp
// でチェック
vector<vector<int>> strongly_connec... | 30.5 | 96 | 0.480399 | [
"vector"
] |
c76525e2c64bf158542b9a42494efc23ab081783 | 5,611 | cc | C++ | tensorflow/lite/micro/kernels/xtensa/reduce_vision.cc | trinitylundgren/tflite-micro | 262a902bff6a2845027391429c8cf71d86adc990 | [
"Apache-2.0"
] | null | null | null | tensorflow/lite/micro/kernels/xtensa/reduce_vision.cc | trinitylundgren/tflite-micro | 262a902bff6a2845027391429c8cf71d86adc990 | [
"Apache-2.0"
] | null | null | null | tensorflow/lite/micro/kernels/xtensa/reduce_vision.cc | trinitylundgren/tflite-micro | 262a902bff6a2845027391429c8cf71d86adc990 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2021 The TensorFlow Authors. 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 applicable law or a... | 36.673203 | 80 | 0.681875 | [
"vector"
] |
c76e007d3b1becf0b30541b06ccb899e02d96382 | 2,260 | hpp | C++ | baidu/sample/dc/BDSSDKMessage.hpp | wangjinyu124419/long_audio_asr | d8dabf6cb10b282e3bd4981207c4a0f478977c9b | [
"MIT"
] | 6 | 2019-06-10T12:57:32.000Z | 2020-11-27T10:56:13.000Z | baidu/sample/dc/BDSSDKMessage.hpp | wangjinyu124419/long_audio_asr | d8dabf6cb10b282e3bd4981207c4a0f478977c9b | [
"MIT"
] | 1 | 2021-02-19T02:39:47.000Z | 2021-02-19T02:39:47.000Z | include/BDSSDKMessage.hpp | formattor/asr-linux-cpp-change | 630c54daf78f4f0f68e51f7aa996298ee517f2b1 | [
"MIT"
] | 1 | 2019-11-15T10:29:52.000Z | 2019-11-15T10:29:52.000Z | /***************************************************************************
*
* Copyright (c) 2016 Baidu.com, Inc. All Rights Reserved
*
**************************************************************************/
/**
* @file BDSSDKMessage.hpp
* @author Vaino(lappivaeinoe@baidu.com)
* @date 2016/10/26 17:51:32
... | 33.731343 | 93 | 0.612389 | [
"vector"
] |
c7830e60960953eca683e9287e197b677351c5bb | 8,385 | cc | C++ | CommBasicObjects/smartsoft/src-gen/CommBasicObjects/CommBasePoseCore.cc | canonical-robots/DomainModelsRepositories | 68b9286d84837e5feb7b200833b158ab9c2922a4 | [
"BSD-3-Clause"
] | null | null | null | CommBasicObjects/smartsoft/src-gen/CommBasicObjects/CommBasePoseCore.cc | canonical-robots/DomainModelsRepositories | 68b9286d84837e5feb7b200833b158ab9c2922a4 | [
"BSD-3-Clause"
] | 2 | 2020-08-20T14:49:47.000Z | 2020-10-07T16:10:07.000Z | CommBasicObjects/smartsoft/src-gen/CommBasicObjects/CommBasePoseCore.cc | canonical-robots/DomainModelsRepositories | 68b9286d84837e5feb7b200833b158ab9c2922a4 | [
"BSD-3-Clause"
] | 8 | 2018-06-25T08:41:28.000Z | 2020-08-13T10:39:30.000Z | //--------------------------------------------------------------------------
// Code generated by the SmartSoft MDSD Toolchain
// The SmartSoft Toolchain has been developed by:
//
// Service Robotics Research Center
// University of Applied Sciences Ulm
// Prittwitzstr. 10
// 89075 Ulm (Germany)
//
// Information abo... | 33.27381 | 120 | 0.687537 | [
"vector"
] |
c7863d35fd27600a945fe617a2e29b86d8ae2a8c | 2,586 | cpp | C++ | motor_control/basic_xy/UDP_FullDuplexS9/UDP_FullDuplexS9.cpp | csteinmetz1/ah-clark | f421e214d6085ea3346ddba3d717516ed226278f | [
"Apache-2.0"
] | null | null | null | motor_control/basic_xy/UDP_FullDuplexS9/UDP_FullDuplexS9.cpp | csteinmetz1/ah-clark | f421e214d6085ea3346ddba3d717516ed226278f | [
"Apache-2.0"
] | null | null | null | motor_control/basic_xy/UDP_FullDuplexS9/UDP_FullDuplexS9.cpp | csteinmetz1/ah-clark | f421e214d6085ea3346ddba3d717516ed226278f | [
"Apache-2.0"
] | null | null | null | // UDP_FullDuplexS9.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
// Two neccessary header files you need to include.
// Place the include for winsock2.h at the beginning of your include statements to avoid a conflict with an older library
#include <winsock2.h>
#... | 22.486957 | 134 | 0.683681 | [
"vector"
] |
c7986808fb202e725219486ec4427d2a95e28c78 | 9,940 | cc | C++ | 18 Spring/4611 Programming Interative Graphics and Games/Assignments/a5-artrender/artrender_app.cc | oway13/Schoolwork | 294f407c288ef532f8f187a6ee0bd9fd0e7559ab | [
"MIT"
] | null | null | null | 18 Spring/4611 Programming Interative Graphics and Games/Assignments/a5-artrender/artrender_app.cc | oway13/Schoolwork | 294f407c288ef532f8f187a6ee0bd9fd0e7559ab | [
"MIT"
] | null | null | null | 18 Spring/4611 Programming Interative Graphics and Games/Assignments/a5-artrender/artrender_app.cc | oway13/Schoolwork | 294f407c288ef532f8f187a6ee0bd9fd0e7559ab | [
"MIT"
] | null | null | null | /** CSci-4611 Assignment 5: Art Render
*/
#include "artrender_app.h"
#include "config.h"
#include <iostream>
#include <sstream>
using namespace std;
ArtRenderApp::ArtRenderApp() : GraphicsApp(1024,768, "Art Render"),
shader_style_(0), current_model_(0), light_pos_(3,3,3),
diffuse_ramp_(GL_CLAMP_TO_EDGE)... | 37.938931 | 100 | 0.697485 | [
"mesh",
"render",
"object",
"model"
] |
c79dfef951126f86371b000437c67301c8738c75 | 2,975 | hpp | C++ | tracking/include/pcl/tracking/impl/kld_adaptive_particle_filter.hpp | zhangxaochen/CuFusion | e8bab7a366b1f2c85a80b95093d195d9f0774c11 | [
"MIT"
] | 52 | 2017-09-05T13:31:44.000Z | 2022-03-14T08:48:29.000Z | tracking/include/pcl/tracking/impl/kld_adaptive_particle_filter.hpp | GucciPrada/CuFusion | 522920bcf316d1ddf9732fc71fa457174168d2fb | [
"MIT"
] | 4 | 2018-05-17T22:45:35.000Z | 2020-02-01T21:46:42.000Z | tracking/include/pcl/tracking/impl/kld_adaptive_particle_filter.hpp | GucciPrada/CuFusion | 522920bcf316d1ddf9732fc71fa457174168d2fb | [
"MIT"
] | 21 | 2015-07-27T13:00:36.000Z | 2022-01-17T08:18:41.000Z | #ifndef PCL_TRACKING_IMPL_KLD_ADAPTIVE_PARTICLE_FILTER_H_
#define PCL_TRACKING_IMPL_KLD_ADAPTIVE_PARTICLE_FILTER_H_
template <typename PointInT, typename StateT> bool
pcl::tracking::KLDAdaptiveParticleFilterTracker<PointInT, StateT>::initCompute ()
{
if (!Tracker<PointInT, StateT>::initCompute ())
{
PC... | 31.989247 | 187 | 0.662857 | [
"vector"
] |
c7a08cbf9df2355e6b9fbf13903f27022fed763a | 1,117 | cpp | C++ | 1021.cpp | Insensatez/URI | b1f0a431ec935b5b86af4b383d0103352c3a4dea | [
"Unlicense"
] | null | null | null | 1021.cpp | Insensatez/URI | b1f0a431ec935b5b86af4b383d0103352c3a4dea | [
"Unlicense"
] | null | null | null | 1021.cpp | Insensatez/URI | b1f0a431ec935b5b86af4b383d0103352c3a4dea | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main(){
double valor;
vector<int> notas;
notas.push_back(100);
notas.push_back(50);
notas.push_back(20);
notas.push_back(10);
notas.push_back(5);
notas.push_back(2);
vector<double> moedas;
moedas.push_back(1.00);
... | 25.386364 | 93 | 0.512086 | [
"vector"
] |
c7a15f23575a403260b1db708b74e47eee8266fa | 1,573 | cpp | C++ | Codeforces/Round-294-Div2/E.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-01-30T13:21:30.000Z | 2018-01-30T13:21:30.000Z | Codeforces/Round-294-Div2/E.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | null | null | null | Codeforces/Round-294-Div2/E.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-08-29T13:26:50.000Z | 2018-08-29T13:26:50.000Z | // Binary Lifting
// 5
// 07-10-2019
#include <bits/stdc++.h>
using namespace std;
const int MAX_V = 1e5 + 10, LG = 17;
int V, H[MAX_V], up[LG][MAX_V], sz[MAX_V];
vector <int> G[MAX_V];
int dfs (int u, int p = -1) {
sz[u] = 1;
for (int bit = 1; bit < LG; bit++) {
int v = up[bit - 1][u];
if (v == -1) br... | 20.428571 | 96 | 0.438652 | [
"vector"
] |
c7a5a95baf13bec342f5e73ea0590c7baeb4a04b | 1,041 | cpp | C++ | tests/map/accounting_map.cpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | 17 | 2018-08-22T06:48:20.000Z | 2022-02-22T21:20:09.000Z | tests/map/accounting_map.cpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | null | null | null | tests/map/accounting_map.cpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | null | null | null | // Copyright 2018 Oleksandr Bacherikov.
//
// Distributed under the Boost Software License, Version 1.0
// (see accompanying file LICENSE.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#include <actl/map/accounting_map.hpp>
#include <actl/std/map.hpp>
#include "test.hpp"
template <bool Invertible>
void te... | 24.785714 | 65 | 0.598463 | [
"vector"
] |
c7aafd8c00cb4af65b1128eab4e217f1401793a4 | 12,652 | cpp | C++ | tests/Unit/Evolution/Systems/NewtonianEuler/Subcell/Test_TimeDerivative.cpp | nilsvu/spectre | 1455b9a8d7e92db8ad600c66f54795c29c3052ee | [
"MIT"
] | 117 | 2017-04-08T22:52:48.000Z | 2022-03-25T07:23:36.000Z | tests/Unit/Evolution/Systems/NewtonianEuler/Subcell/Test_TimeDerivative.cpp | nilsvu/spectre | 1455b9a8d7e92db8ad600c66f54795c29c3052ee | [
"MIT"
] | 3,177 | 2017-04-07T21:10:18.000Z | 2022-03-31T23:55:59.000Z | tests/Unit/Evolution/Systems/NewtonianEuler/Subcell/Test_TimeDerivative.cpp | nilsvu/spectre | 1455b9a8d7e92db8ad600c66f54795c29c3052ee | [
"MIT"
] | 85 | 2017-04-07T19:36:13.000Z | 2022-03-01T10:21:00.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Framework/TestingFramework.hpp"
#include <array>
#include <cstddef>
#include <memory>
#include <utility>
#include <vector>
#include "DataStructures/DataBox/DataBox.hpp"
#include "DataStructures/DataVector.hpp"
#include "DataStructures/Te... | 42.599327 | 86 | 0.71301 | [
"mesh",
"vector"
] |
c7ab52f9422182e68aa58ec79172dbbc2b2b2ed1 | 13,510 | cc | C++ | chrome/browser/gtk/options/passwords_page_gtk.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | chrome/browser/gtk/options/passwords_page_gtk.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/gtk/options/passwords_page_gtk.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2009 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/gtk/options/passwords_page_gtk.h"
#include "app/gfx/gtk_util.h"
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
... | 41.189024 | 80 | 0.70792 | [
"vector",
"model"
] |
c7ae05cb24e3503aa4bb7abcb3902ce533236998 | 3,054 | hpp | C++ | Std/Forward.hpp | asynts/picoos | 5197f86ce1902fc6572cecd10f97ca68109f2f86 | [
"MIT"
] | 1 | 2021-08-24T05:59:32.000Z | 2021-08-24T05:59:32.000Z | Std/Forward.hpp | asynts/picoos | 5197f86ce1902fc6572cecd10f97ca68109f2f86 | [
"MIT"
] | 3 | 2021-03-31T15:36:01.000Z | 2021-04-19T14:17:44.000Z | Std/Forward.hpp | asynts/picoos | 5197f86ce1902fc6572cecd10f97ca68109f2f86 | [
"MIT"
] | null | null | null | #pragma once
#include <Std/Types.hpp>
constexpr usize KiB = 1024;
constexpr usize MiB = KiB * KiB;
#ifndef TEST
constexpr void* operator new(usize count, void* ptr)
{
return ptr;
}
constexpr void* operator new[](usize count, void* ptr)
{
return ptr;
}
void* operator new(usize);
void* operator new[](usize);
v... | 24.047244 | 138 | 0.67649 | [
"object"
] |
c7cf82017dbf14d05d3edf5d989790530059eba6 | 2,979 | cpp | C++ | Classes/MoonScene.cpp | elimu-ai/egma-nyas-space-quest-qd | f92f1d2a893ac52909a986f3ec9fc7c9d409c738 | [
"MIT"
] | null | null | null | Classes/MoonScene.cpp | elimu-ai/egma-nyas-space-quest-qd | f92f1d2a893ac52909a986f3ec9fc7c9d409c738 | [
"MIT"
] | 7 | 2017-06-09T10:50:50.000Z | 2017-06-29T12:15:49.000Z | Classes/MoonScene.cpp | elimu-ai/egma-nyas-space-quest-qd | f92f1d2a893ac52909a986f3ec9fc7c9d409c738 | [
"MIT"
] | 2 | 2017-05-28T22:04:45.000Z | 2017-06-28T14:44:14.000Z | //
// MoonScene.cpp
// akua
//
// Created by German Torres on 8/3/15.
// Moon Map class
//
#include "MoonScene.h"
using namespace CocosDenshion;
Scene* Moon::createScene()
{
auto scene = Scene::create();
auto layer = Moon::create();
layer->loadMap();
scene->addChild(layer);
return ... | 23.456693 | 86 | 0.681772 | [
"object"
] |
c7d7ca4cfa35321e0ce58a2fa313df952ee6b580 | 13,094 | cpp | C++ | darkness-engine/include/shaders/core/outline/Outline.ps.cpp | Karmiska/Darkness | c87eaf067a2707a0141909125ff461f69a3812e0 | [
"MIT"
] | 6 | 2019-10-17T11:31:55.000Z | 2022-02-11T08:51:20.000Z | darkness-engine/include/shaders/core/outline/Outline.ps.cpp | Karmiska/Darkness | c87eaf067a2707a0141909125ff461f69a3812e0 | [
"MIT"
] | 1 | 2020-08-11T09:01:29.000Z | 2020-08-11T09:01:29.000Z | darkness-engine/include/shaders/core/outline/Outline.ps.cpp | Karmiska/Darkness | c87eaf067a2707a0141909125ff461f69a3812e0 | [
"MIT"
] | 1 | 2020-06-02T15:48:20.000Z | 2020-06-02T15:48:20.000Z | #include "Outline.ps.h"
#include "engine/graphics/ShaderStorage.h"
#include "engine/graphics/Sampler.h"
#include "tools/ByteRange.h"
#include "tools/Debug.h"
#include <memory>
namespace engine
{
namespace shaders
{
#pragma warning( push )
#pragma warning( disable : 4702 )
std::shared_ptr<const ShaderBi... | 24.158672 | 226 | 0.470903 | [
"vector"
] |
93a0858d10abb0bd856961778fc0cb84965c0f60 | 8,961 | cc | C++ | src/test/unit-test/test_limitdir.cc | yutannihilation/mdbm | 2899ae42fddfb0cb6d12a046700d304ef6e6dd01 | [
"BSD-3-Clause"
] | 286 | 2015-01-02T01:21:44.000Z | 2022-03-28T09:59:33.000Z | src/test/unit-test/test_limitdir.cc | yutannihilation/mdbm | 2899ae42fddfb0cb6d12a046700d304ef6e6dd01 | [
"BSD-3-Clause"
] | 55 | 2015-01-16T20:27:04.000Z | 2021-02-16T20:03:29.000Z | src/test/unit-test/test_limitdir.cc | yutannihilation/mdbm | 2899ae42fddfb0cb6d12a046700d304ef6e6dd01 | [
"BSD-3-Clause"
] | 69 | 2015-01-06T10:47:28.000Z | 2022-03-10T10:58:46.000Z | /* Copyright 2013 Yahoo! Inc. */
/* See LICENSE in the root of the distribution for licensing details. */
// Unit Tests for mdbm_limit_dir_size
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <... | 37.182573 | 158 | 0.689544 | [
"vector"
] |
93a15cf82a34259f98de39474f09697103e2f74c | 1,791 | cpp | C++ | src/GameObjectCollection.cpp | jenningsm42/sfml-boilerplate | fb7ecafeaae2e598f6c5d5b2cc9ece00eaf1e4f9 | [
"MIT"
] | 1 | 2020-12-08T00:11:38.000Z | 2020-12-08T00:11:38.000Z | src/GameObjectCollection.cpp | jenningsm42/sfml-boilerplate | fb7ecafeaae2e598f6c5d5b2cc9ece00eaf1e4f9 | [
"MIT"
] | null | null | null | src/GameObjectCollection.cpp | jenningsm42/sfml-boilerplate | fb7ecafeaae2e598f6c5d5b2cc9ece00eaf1e4f9 | [
"MIT"
] | null | null | null | #include "GameObjectCollection.hpp"
std::weak_ptr<GameObject> GameObjectCollection::getObject(const std::string& name) const noexcept {
if (m_gameObjectMap.find(name) != m_gameObjectMap.end()) {
return m_gameObjectMap.at(name);
}
return std::weak_ptr<GameObject>();
}
void GameObjectCollection::ad... | 36.55102 | 111 | 0.744277 | [
"object"
] |
93a65ac12d8833d581ca1ba44f9359a094015ba1 | 9,864 | cpp | C++ | cpp/min_path_to_Bucharest.cpp | fastbird/astar-algorithm-cpp | 7e24991518c89f21406ccd6776ef92ceccd6b603 | [
"MIT"
] | 336 | 2015-01-29T03:40:15.000Z | 2022-03-30T12:40:07.000Z | cpp/min_path_to_Bucharest.cpp | fastbird/astar-algorithm-cpp | 7e24991518c89f21406ccd6776ef92ceccd6b603 | [
"MIT"
] | 20 | 2015-01-29T17:29:58.000Z | 2021-04-25T20:04:23.000Z | cpp/min_path_to_Bucharest.cpp | fastbird/astar-algorithm-cpp | 7e24991518c89f21406ccd6776ef92ceccd6b603 | [
"MIT"
] | 165 | 2015-01-02T18:48:43.000Z | 2022-02-25T03:39:09.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// This example code illustrate how to use STL A* Search implementation to find the minimum path between two
// cities given a map. The example is taken from the book AI: A Modern Approach, 3rd Ed., by Rus... | 31.314286 | 195 | 0.658962 | [
"vector"
] |
93a69c2d6f008caf15b800f16ea194192012febe | 281 | cpp | C++ | engine/runtime/ecs/constructs/prefab.cpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 791 | 2016-11-04T14:13:41.000Z | 2022-03-20T20:47:31.000Z | engine/runtime/ecs/constructs/prefab.cpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 28 | 2016-12-01T05:59:30.000Z | 2021-03-20T09:49:26.000Z | engine/runtime/ecs/constructs/prefab.cpp | ValtoForks/EtherealEngine | ab769803dcd71a61c2805afd259959b62fcdc1ff | [
"BSD-2-Clause"
] | 151 | 2016-12-21T09:44:43.000Z | 2022-03-31T13:42:18.000Z | #include "prefab.h"
#include "utils.h"
runtime::entity prefab::instantiate()
{
std::vector<runtime::entity> out_data;
if(!data)
return {};
if(!ecs::utils::deserialize_data(*data, out_data))
return {};
if(out_data.empty())
return {};
else
return out_data.front();
}
| 15.611111 | 51 | 0.66548 | [
"vector"
] |
93b0c34a495311747f10d85259f0c3327f0cf278 | 166 | cpp | C++ | FMEGraphics/src/IKeyBoardController.cpp | FullMetalNicky/FullMetalEngine | 26fbdd14332f9ab158180efea176e7aaa47f570c | [
"MIT"
] | 12 | 2018-08-05T17:55:40.000Z | 2021-08-22T07:17:12.000Z | FMEGraphics/src/IKeyBoardController.cpp | FullMetalNicky/FullMetalEngine | 26fbdd14332f9ab158180efea176e7aaa47f570c | [
"MIT"
] | null | null | null | FMEGraphics/src/IKeyBoardController.cpp | FullMetalNicky/FullMetalEngine | 26fbdd14332f9ab158180efea176e7aaa47f570c | [
"MIT"
] | 1 | 2020-06-08T10:46:05.000Z | 2020-06-08T10:46:05.000Z | #include "IKeyBoardController.h"
using namespace FME::Graphics;
void IKeyBoardController::SetControlKeys(const std::vector<char>& keys)
{
m_keys = keys;
} | 18.444444 | 72 | 0.728916 | [
"vector"
] |
93bff6b0e75f2b71604143880c81d9fb0f6bbaee | 6,446 | cpp | C++ | tcob/src/game/Game.cpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | 2 | 2021-08-18T19:14:35.000Z | 2021-12-01T14:14:49.000Z | tcob/src/game/Game.cpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | null | null | null | tcob/src/game/Game.cpp | TobiasBohnen/tcob | 53092b3c8e657f1ff5e48ce961659edf7cb1cb05 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Tobias Bohnen
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#include <tcob/game/Game.hpp>
#include <SDL.h>
#include <numeric>
#include <tcob/gfx/Canvas.hpp>
namespace tcob {
using hrc = std::chrono::high_resolution_clock;
constexpr MilliSeconds ... | 21.344371 | 95 | 0.59153 | [
"render"
] |
93d8fcad485ce360c632a9e54cc8cee9e04008eb | 7,620 | cpp | C++ | circe/vk/io/swapchain.cpp | gui-works/circe | c126a8f9521dca1eb23ac47c8f2e8081f2102f17 | [
"MIT"
] | 1 | 2021-09-17T18:12:47.000Z | 2021-09-17T18:12:47.000Z | circe/vk/io/swapchain.cpp | gui-works/circe | c126a8f9521dca1eb23ac47c8f2e8081f2102f17 | [
"MIT"
] | null | null | null | circe/vk/io/swapchain.cpp | gui-works/circe | c126a8f9521dca1eb23ac47c8f2e8081f2102f17 | [
"MIT"
] | 2 | 2021-09-17T18:13:02.000Z | 2021-09-17T18:16:21.000Z | /// Copyright (c) 2019, FilipeCN.
///
/// The MIT License (MIT)
///
/// 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
/// righ... | 38.291457 | 107 | 0.706693 | [
"vector"
] |
93dcb71b312792513e60e4d44d09555980575f8f | 950 | hpp | C++ | src/include/template.hpp | AbstractXan/mdToWebsite | ae1df41ce3884ac226b60a11445539cfcdcb744a | [
"MIT"
] | null | null | null | src/include/template.hpp | AbstractXan/mdToWebsite | ae1df41ce3884ac226b60a11445539cfcdcb744a | [
"MIT"
] | null | null | null | src/include/template.hpp | AbstractXan/mdToWebsite | ae1df41ce3884ac226b60a11445539cfcdcb744a | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <vector>
#include <unordered_map>
struct Template
{
std::string name;
std::vector<std::string> args;
std::vector<std::string> textContentList;
std::vector<std::string> argContentList;
};
typedef std::unordered_map<std::string, Template *> TemplateMap;
class TemplateM... | 27.941176 | 108 | 0.766316 | [
"vector"
] |
93deb485fefaca2f677ac2f1f027a3275edd3038 | 778 | cpp | C++ | 61.cpp | machinecc/leetcode | 32bbf6c1f9124049c046a235c85b14ca9168daa8 | [
"MIT"
] | null | null | null | 61.cpp | machinecc/leetcode | 32bbf6c1f9124049c046a235c85b14ca9168daa8 | [
"MIT"
] | null | null | null | 61.cpp | machinecc/leetcode | 32bbf6c1f9124049c046a235c85b14ca9168daa8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <string>
#include <unordered_set>
#include <vector>
#include <algorithm>
#include <climits>
#include <stack>
#include <sstream>
#include <numeric>
#include <unordered_map>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), ne... | 13.413793 | 50 | 0.579692 | [
"vector"
] |
93e861eae38bb91111c67e4cc4a6717b0cd4709f | 955 | cpp | C++ | 4. Алгоритмы на графах/72. Алгоритм Дейкстры #3831/[OK]220289.cpp | godnoTA/acm.bsu.by | 3e1cf1c545c691de82b5e1d2e0768b41ea581734 | [
"Unlicense"
] | 19 | 2018-05-19T16:37:14.000Z | 2022-03-23T20:13:43.000Z | 4. Алгоритмы на графах/72. Алгоритм Дейкстры #3831/[OK]220289.cpp | godnoTA/acm.bsu.by | 3e1cf1c545c691de82b5e1d2e0768b41ea581734 | [
"Unlicense"
] | 6 | 2020-05-07T21:06:48.000Z | 2020-06-05T17:52:57.000Z | 4. Алгоритмы на графах/72. Алгоритм Дейкстры #3831/[OK]220289.cpp | godnoTA/acm.bsu.by | 3e1cf1c545c691de82b5e1d2e0768b41ea581734 | [
"Unlicense"
] | 31 | 2019-03-01T21:41:38.000Z | 2022-03-27T17:56:39.000Z | #include <iostream>
#include <fstream>
#include <vector>
#include <set>
using namespace std;
vector < pair<int, int> > g[200000];
long long d[200000];
#define INF INT64_MAX
int main()
{
ifstream fin("input.txt");
ofstream fout("output.txt");
int n, m;
fin >> n >> m;
for (int i = 0; i < m; i++) {
... | 20.319149 | 43 | 0.495288 | [
"vector"
] |
93efa992d0795bc8c417f010b0960375b16f0e40 | 1,655 | cpp | C++ | ACC/acc3p3.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | ACC/acc3p3.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | ACC/acc3p3.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define gc getchar_unlocked()
#define pc(x) putchar_unlocked(x)
template<typename T> void scan(T &x){x = 0;register bool _=0;register T c=gc;_=c==45;c=_?gc:c;while(c<48||c>57)c=gc;for(;c<48||c>57;c=gc);for(;c>47&&c<58;c=gc)x=(x<<3)+(x<<1)+(c&15);x=_?-x:x;}
template<typename T> void print(T ... | 26.693548 | 193 | 0.43142 | [
"vector"
] |
93f79b27b13367307abe0add7b3288088eb9b213 | 3,872 | cpp | C++ | dev/Code/Sandbox/Plugins/CryDesigner/Core/SmoothingGroup.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Code/Sandbox/Plugins/CryDesigner/Core/SmoothingGroup.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Code/Sandbox/Plugins/CryDesigner/Core/SmoothingGroup.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 28.262774 | 115 | 0.675878 | [
"vector",
"model"
] |
9e04f6e16622067b6a279db83b3d24d852ff5afd | 58,763 | cpp | C++ | src/memory_implicit.cpp | WatorVapor/wator.dmnn | af33c1a2647175a5b19a0c7594b43ee53498e64d | [
"MIT"
] | null | null | null | src/memory_implicit.cpp | WatorVapor/wator.dmnn | af33c1a2647175a5b19a0c7594b43ee53498e64d | [
"MIT"
] | null | null | null | src/memory_implicit.cpp | WatorVapor/wator.dmnn | af33c1a2647175a5b19a0c7594b43ee53498e64d | [
"MIT"
] | null | null | null | /*
Copyright (c) 2015, Wator Vapor
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 conditions and the following di... | 36.206408 | 78 | 0.748907 | [
"vector"
] |
9e05543dc6f9e3799876659cd234ac6907374516 | 1,431 | cpp | C++ | codes/Bipartite Checking.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/Bipartite Checking.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | codes/Bipartite Checking.cpp | smmehrab/problem-solving | 4aeab1673f18d3270ee5fc9b64ed6805eacf4af5 | [
"MIT"
] | null | null | null | /*
************************************************
username : smmehrab
fullname : s.m.mehrabul islam
email : mehrab.24csedu.001@gmail.com
institute : university of dhaka, bangladesh
session : 2017-2018
************************************************
*/
#include<bits/stdc++.h>
using namesp... | 19.08 | 63 | 0.45283 | [
"vector"
] |
9e07fcf430539fa2e8e16191d60cf5867fa08146 | 1,348 | cpp | C++ | Coding Sites Submissions/udemy/WordSearch.cpp | RawRapter/CPlusPlus-Codes | 5c88fa6aaee47f6414fdfaafe8274522cb227605 | [
"MIT"
] | null | null | null | Coding Sites Submissions/udemy/WordSearch.cpp | RawRapter/CPlusPlus-Codes | 5c88fa6aaee47f6414fdfaafe8274522cb227605 | [
"MIT"
] | null | null | null | Coding Sites Submissions/udemy/WordSearch.cpp | RawRapter/CPlusPlus-Codes | 5c88fa6aaee47f6414fdfaafe8274522cb227605 | [
"MIT"
] | null | null | null | /*
Word Search
Given an MxN grid of characters board and a string word , return true if word exists in the grid.
The word can be constructed from letters of sequentially adjacent cells, where adjacent cells are
horizontally or vertically neighboring. The same letter cell may not be used more than once.
Input:
In the... | 25.923077 | 98 | 0.55638 | [
"vector"
] |
9e091c0d953995f45705fc00482826a3caeddff0 | 518 | cpp | C++ | ACM Training/2018-07-02/POJ3384.cpp | Wycers/Codelib | 86d83787aa577b8f2d66b5410e73102411c45e46 | [
"MIT"
] | 22 | 2018-08-07T06:55:10.000Z | 2021-06-12T02:12:19.000Z | ACM Training/2018-07-02/POJ3384.cpp | Wycers/Codelib | 86d83787aa577b8f2d66b5410e73102411c45e46 | [
"MIT"
] | 28 | 2020-03-04T23:47:22.000Z | 2022-02-26T18:50:00.000Z | ACM Training/2018-07-02/POJ3384.cpp | Wycers/Codelib | 86d83787aa577b8f2d66b5410e73102411c45e46 | [
"MIT"
] | 4 | 2019-11-09T15:41:26.000Z | 2021-10-10T08:56:57.000Z | #include <cstdio>
using namespace std;
const double eps = 1e-8;
const int N = 105;
struct Vector
{
double x, y;
Vector () {}
Vector (double _x, double _y)
{
x = _x;
y = _y;
}
void Init()
{
scanf("%lf%lf", &x, &y);
}
};
struct Line
{
Vector p, v;
Line () {... | 13.631579 | 33 | 0.436293 | [
"vector"
] |
9e0bf80606746ddf7bd5cb08f26dc014657234fd | 3,045 | cpp | C++ | src/CameraCalibration.cpp | mazenmel/Camera-Calib-and-Panorama-Stitching | dcf3a9fbe15aaad2860f2b4e4eff085927307746 | [
"MIT"
] | 1 | 2021-03-03T15:18:04.000Z | 2021-03-03T15:18:04.000Z | src/CameraCalibration.cpp | mazenmel/Camera-Calib-and-Panorama-Stitching | dcf3a9fbe15aaad2860f2b4e4eff085927307746 | [
"MIT"
] | null | null | null | src/CameraCalibration.cpp | mazenmel/Camera-Calib-and-Panorama-Stitching | dcf3a9fbe15aaad2860f2b4e4eff085927307746 | [
"MIT"
] | null | null | null | /*
* [2020] Computer vision course - lab 04
* All Rights Reserved.
*
* @Author Mazen Mel 1237873
*/
#include "CameraCalibration.h"
CameraCalibration::CameraCalibration(const std::string& Path, int cols, int rows, float square_size) :imagesPath{ Path },
... | 38.0625 | 135 | 0.518227 | [
"vector"
] |
9e0c2f102b291f199a16dcbe784485bb98922538 | 670 | hpp | C++ | sputnik/src/component/OriginDrag.hpp | SimonWallner/sputnik | d01159dfcc6f087cb312d027060f8f99395fbc41 | [
"MIT"
] | 3 | 2017-02-23T04:14:07.000Z | 2021-05-25T04:03:11.000Z | sputnik/src/component/OriginDrag.hpp | SimonWallner/sputnik | d01159dfcc6f087cb312d027060f8f99395fbc41 | [
"MIT"
] | null | null | null | sputnik/src/component/OriginDrag.hpp | SimonWallner/sputnik | d01159dfcc6f087cb312d027060f8f99395fbc41 | [
"MIT"
] | null | null | null | #ifndef SPUTNIK_COMPONENT_ORIGIN_DRAG_HPP
#define SPUTNIK_COMPONENT_ORIGIN_DRAG_HPP
#include <kocmoc-core/componentSystem/Component.hpp>
#include <kocmoc-core/component/ObjectBehaviour.hpp>
#include <glm/glm.hpp>
namespace sputnik
{
namespace component
{
/**
* Simple component/behaviour that pulls the object ... | 18.611111 | 69 | 0.720896 | [
"object"
] |
9e0cb1e81c430e7736883b4efd1f9dc7188ebafc | 3,665 | cpp | C++ | cpp/p3/source/p3/backend/OpenGLRenderTarget.cpp | mfkiwl/p3ui | 639030830cf3366e722b2a251c847972ff8df11e | [
"MIT"
] | null | null | null | cpp/p3/source/p3/backend/OpenGLRenderTarget.cpp | mfkiwl/p3ui | 639030830cf3366e722b2a251c847972ff8df11e | [
"MIT"
] | null | null | null | cpp/p3/source/p3/backend/OpenGLRenderTarget.cpp | mfkiwl/p3ui | 639030830cf3366e722b2a251c847972ff8df11e | [
"MIT"
] | null | null | null | /***************************************************************************//*/
Copyright (c) 2021 Martin Rudoff
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, inclu... | 36.287129 | 104 | 0.680218 | [
"render"
] |
9e0cec4bb70d90623f45f113699a11c20d1c9fbe | 58,326 | cpp | C++ | src/nanogi.cpp | lighttransport/nano | 98cd6b40b8a5b0f96a62e631b51faf4b57c341b3 | [
"BSD-3-Clause"
] | 157 | 2015-09-03T15:16:04.000Z | 2021-12-31T06:15:21.000Z | src/nanogi.cpp | lighttransport/nano | 98cd6b40b8a5b0f96a62e631b51faf4b57c341b3 | [
"BSD-3-Clause"
] | 2 | 2015-09-23T12:32:47.000Z | 2017-08-12T07:58:59.000Z | src/nanogi.cpp | lighttransport/nano | 98cd6b40b8a5b0f96a62e631b51faf4b57c341b3 | [
"BSD-3-Clause"
] | 21 | 2015-09-06T16:56:51.000Z | 2021-10-20T22:19:44.000Z | /*
nanogi - A small, reference GI renderer
Copyright (c) 2015 Light Transport Entertainment Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the ab... | 27.090571 | 193 | 0.531838 | [
"render",
"vector",
"transform"
] |
9e13f65d6dcba5a2b58e44ae9295430f6fd4b707 | 20,260 | cpp | C++ | lib/ccmutate/Mutex/LockUnlockPairs.cpp | markus-kusano/CCMutator | 66eca5c6a38fbdf8b5f5758b3646fc2604c6c51b | [
"NCSA"
] | 15 | 2016-03-31T12:03:50.000Z | 2021-01-30T08:24:05.000Z | lib/ccmutate/Mutex/LockUnlockPairs.cpp | markus-kusano/CCMutator | 66eca5c6a38fbdf8b5f5758b3646fc2604c6c51b | [
"NCSA"
] | null | null | null | lib/ccmutate/Mutex/LockUnlockPairs.cpp | markus-kusano/CCMutator | 66eca5c6a38fbdf8b5f5758b3646fc2604c6c51b | [
"NCSA"
] | 3 | 2017-11-24T15:18:12.000Z | 2020-08-06T13:12:31.000Z | /**
* This file is distributed under the University of Illinois Open Source
* License. See LICENSE for details.
*/
#include "LockUnlockPairs.h"
#include "../Tools/ItaniumDemangle.h"
#include "../Tools/FileInfo.h"
#include "llvm/Support/InstIterator.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/DebugInfo.h... | 32.73021 | 104 | 0.571718 | [
"vector"
] |
9e2f22e2a391e721bd3acebb09c97d40ee3c0cc4 | 3,540 | hpp | C++ | platform/NpapiPluginInstance.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 26 | 2015-04-22T05:25:25.000Z | 2020-11-15T11:07:56.000Z | platform/NpapiPluginInstance.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 2 | 2015-01-05T10:41:27.000Z | 2015-01-06T20:46:11.000Z | platform/NpapiPluginInstance.hpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 5 | 2016-08-02T11:13:57.000Z | 2018-10-26T11:19:27.000Z | #ifndef ___INANITY_PLATFORM_NPAPI_PLUGIN_INSTANCE_HPP___
#define ___INANITY_PLATFORM_NPAPI_PLUGIN_INSTANCE_HPP___
#include "npapi.hpp"
#include "../graphics/graphics.hpp"
#include "../input/input.hpp"
#include "../script/np/np.hpp"
#include "../Handler.hpp"
BEGIN_INANITY
class File;
END_INANITY
BEGIN_INANITY_GRAPH... | 22.83871 | 91 | 0.764972 | [
"object"
] |
9e2f2ef221576796771817d3c9833df15cc73c85 | 3,024 | cpp | C++ | src/ezlog_lock.cpp | JennyGH/ezlog | 274f7bf1719e1cb751038e2423abcb086cf916c7 | [
"MIT"
] | 2 | 2021-03-16T14:16:46.000Z | 2022-01-04T08:43:07.000Z | src/ezlog_lock.cpp | JennyGH/ezlog | 274f7bf1719e1cb751038e2423abcb086cf916c7 | [
"MIT"
] | 1 | 2022-01-18T07:02:19.000Z | 2022-01-18T07:02:19.000Z | src/ezlog_lock.cpp | JennyGH/ezlog | 274f7bf1719e1cb751038e2423abcb086cf916c7 | [
"MIT"
] | null | null | null | #include "ezlog_lock.h"
#include "system.h"
#include <stdio.h>
#include <stdlib.h>
#if _MSC_VER
# include <Windows.h>
# define USE_CRITICAL_SECTION 1
# if USE_CRITICAL_SECTION
typedef CRITICAL_SECTION ezlog_lock_t;
# else
typedef HANDLE ezlog_lock_t;
# endif // USE_CRITICAL_SECTION
#else
# include <un... | 24.192 | 88 | 0.650794 | [
"object"
] |
9e3727f893c571d1307790a8c18616f6ad9cf270 | 5,277 | hpp | C++ | metric/modules/utils/poor_mans_quantum.hpp | Stepka/telegram_clustering_contest | 52a012af2ce821410caa98cba840364710eb4256 | [
"Apache-2.0"
] | 2 | 2019-12-03T17:08:04.000Z | 2021-08-25T05:06:29.000Z | metric/modules/utils/poor_mans_quantum.hpp | Stepka/telegram_clustering_contest | 52a012af2ce821410caa98cba840364710eb4256 | [
"Apache-2.0"
] | 1 | 2021-09-02T02:25:51.000Z | 2021-09-02T02:25:51.000Z | metric/modules/utils/poor_mans_quantum.hpp | Stepka/telegram_clustering_contest | 52a012af2ce821410caa98cba840364710eb4256 | [
"Apache-2.0"
] | null | null | null | /* PANDA presents
██████╗ ██████╗ ██████╗ ██████╗ ███╗ ███╗ █████╗ ███╗ ██╗███████╗ ██████╗ ██╗ ██╗ █████╗ ███╗ ██╗████████╗██╗ ██╗███╗ ███╗
██╔══██╗██╔═══██╗██╔═══██╗██╔══██╗ ████╗ ████║██╔══██╗████╗ ██║██╔════╝ ██╔═══██╗██║ ██║██╔══██╗████╗ ██║╚══██╔... | 24.658879 | 180 | 0.40667 | [
"object",
"vector"
] |
9e3af51d9f34bd54ad1df8dad063823639d1a6fb | 3,314 | cpp | C++ | source/omni/core/model/literal_expression.cpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | 33 | 2015-03-21T04:12:45.000Z | 2021-04-18T21:44:33.000Z | source/omni/core/model/literal_expression.cpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | null | null | null | source/omni/core/model/literal_expression.cpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | 2 | 2016-03-05T12:57:05.000Z | 2017-09-12T10:11:52.000Z | #include <omni/core/model/literal_expression.hpp>
#include <omni/core/model/builtin_literal_expression.hpp>
#include <omni/core/not_implemented_error.hpp>
#include <sstream>
// See meta_info.cpp for initialization.
namespace omniMetaImpl {
extern omni::core::model::meta_info literal_expressionMetaInfo;
}
/**
@brief ... | 44.186667 | 179 | 0.777007 | [
"object",
"model"
] |
eafd5de283b5fd1efa79b6822c81802eb0a6c174 | 1,939 | cpp | C++ | aws-cpp-sdk-fsx/source/model/OpenZFSUserOrGroupQuota.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-fsx/source/model/OpenZFSUserOrGroupQuota.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-fsx/source/model/OpenZFSUserOrGroupQuota.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/fsx/model/OpenZFSUserOrGroupQuota.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
n... | 20.410526 | 93 | 0.738525 | [
"model"
] |
d8000f37e4be8ed72c0c5850d4686a0ffbab68cd | 2,180 | cpp | C++ | altFillTheMat.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | altFillTheMat.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | altFillTheMat.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <map>
#include <queue>
using namespace std;
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
int n,qu;
scanf("%d%d",&n,&qu);
int i,j,val;
vector<int> a(n+1);
vector< pair<int,int> > vec[n+1];
int flag=0;
for(int k=0;k<qu;k++)
{
scanf("%d%d%d",&i,&j... | 19.292035 | 126 | 0.43945 | [
"vector"
] |
d809376ea9895eaeea64a6d7035bafa0b899190d | 3,046 | cpp | C++ | ManagedScripts/MCommandLineParser.cpp | mpforums/RenSharp | 5b3fb8bff2a1772a82a4148bcf3e1265a11aa097 | [
"Apache-2.0"
] | 1 | 2021-10-04T02:34:33.000Z | 2021-10-04T02:34:33.000Z | ManagedScripts/MCommandLineParser.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 9 | 2019-07-03T19:19:59.000Z | 2020-03-02T22:00:21.000Z | ManagedScripts/MCommandLineParser.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 2 | 2019-08-14T08:37:36.000Z | 2020-09-29T06:44:26.000Z | /*
Copyright 2020 Neijwiert
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
distr... | 22.397059 | 102 | 0.752134 | [
"object"
] |
d8122c3d1bac91f7132e48e1c5e484c251bc010b | 7,735 | cpp | C++ | LilEngie/Core/src/Game/SceneLoader.cpp | Nordaj/LilEngie | 453cee13c45ae33abe2665e1446fc90e67b1117a | [
"MIT"
] | null | null | null | LilEngie/Core/src/Game/SceneLoader.cpp | Nordaj/LilEngie | 453cee13c45ae33abe2665e1446fc90e67b1117a | [
"MIT"
] | null | null | null | LilEngie/Core/src/Game/SceneLoader.cpp | Nordaj/LilEngie | 453cee13c45ae33abe2665e1446fc90e67b1117a | [
"MIT"
] | null | null | null | #include <string>
#include <fstream>
#include <vector>
#include <unordered_map>
#include <Graphics/ModelHandler.h>
#include <Graphics/Model.h>
#include <Graphics/Texture.h>
#include <Graphics/TextureHandler.h>
#include <Graphics/Shader.h>
#include <Graphics/ShaderHandler.h>
#include <Graphics/Material.h>
#include <Grap... | 22.42029 | 94 | 0.632321 | [
"object",
"vector",
"model"
] |
d813aa224151a0881ff46a6ab06601292a247bc8 | 5,701 | cpp | C++ | src/main.cpp | DrXVII/websocket_playground | 221ee76bc57f6038dca3f69cd8c0940518792ac0 | [
"MIT"
] | null | null | null | src/main.cpp | DrXVII/websocket_playground | 221ee76bc57f6038dca3f69cd8c0940518792ac0 | [
"MIT"
] | null | null | null | src/main.cpp | DrXVII/websocket_playground | 221ee76bc57f6038dca3f69cd8c0940518792ac0 | [
"MIT"
] | null | null | null | #include "client_ws.hpp"
#include "server_ws.hpp"
using namespace std;
using WsServer = SimpleWeb::SocketServer<SimpleWeb::WS>;
using WsClient = SimpleWeb::SocketClient<SimpleWeb::WS>;
void replace_char(string* _str, const char _from, const char _to);
int main() {
// WebSocket (WS)-server at port 8080 using 1 t... | 38.52027 | 139 | 0.586739 | [
"vector"
] |
d813fe138de37a4b266527e1dbc5ed143e87da2f | 7,058 | cpp | C++ | diffsim_torch3d/arcsim/src/util.cpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | diffsim_torch3d/arcsim/src/util.cpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | diffsim_torch3d/arcsim/src/util.cpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
Copyright ©2013 The Regents of the University of California
(Regents). All Rights Reserved. Permission to use, copy, modify, and
distribute this software and its documentation for educational,
research, and not-for-profit purposes, without fee and without a
signed licensing agreement, is hereby granted, pr... | 33.292453 | 113 | 0.579201 | [
"mesh",
"object",
"vector"
] |
d8165af4b181c5070385b31514054b6973a7e791 | 9,590 | hpp | C++ | src/main/resources/FactParser.hpp | HarvardPL/formulog | 508c7688bbe826a6951cc8c3e70026e57548e044 | [
"Apache-2.0"
] | 109 | 2019-05-10T16:51:36.000Z | 2022-03-13T02:39:31.000Z | src/main/resources/FactParser.hpp | HarvardPL/formulog | 508c7688bbe826a6951cc8c3e70026e57548e044 | [
"Apache-2.0"
] | 11 | 2020-12-03T18:37:29.000Z | 2022-02-14T17:11:34.000Z | src/main/resources/FactParser.hpp | HarvardPL/formulog | 508c7688bbe826a6951cc8c3e70026e57548e044 | [
"Apache-2.0"
] | 5 | 2019-10-08T10:00:27.000Z | 2021-02-22T17:06:05.000Z | #pragma once
#include <cmath>
#include <iostream>
#include <limits>
#include <string>
// The Souffle header is here just to make sure that it is pulled in before the
// Antlr one, since the latter unsets the EOF macro it depends on.
#include <souffle/CompiledSouffle.h>
#include <antlr4-runtime.h>
#include "parsing/F... | 34.007092 | 97 | 0.745255 | [
"vector"
] |
d8192db11401b4de9aef3dc2b248192460747ecd | 52,301 | cpp | C++ | Src/SettingsUI.cpp | slgoldberg/LiveTraffic | 3a051853d2a75151a912be736ca325e03c72b07c | [
"MIT"
] | null | null | null | Src/SettingsUI.cpp | slgoldberg/LiveTraffic | 3a051853d2a75151a912be736ca325e03c72b07c | [
"MIT"
] | null | null | null | Src/SettingsUI.cpp | slgoldberg/LiveTraffic | 3a051853d2a75151a912be736ca325e03c72b07c | [
"MIT"
] | null | null | null | //
// SettingsUI.cpp
// LiveTraffic
/*
* Copyright (c) 2018, Birger Hoppe
*
* 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 ri... | 57.410538 | 224 | 0.667693 | [
"object",
"model"
] |
d81974b9a2522c715193cb8c45a9507a6788aa98 | 372 | hpp | C++ | inc/TupleStat.hpp | LorisFriedel/learning-sign-language | f87767c43a11c01885628c1de10daa9d1a58e6ad | [
"MIT"
] | null | null | null | inc/TupleStat.hpp | LorisFriedel/learning-sign-language | f87767c43a11c01885628c1de10daa9d1a58e6ad | [
"MIT"
] | null | null | null | inc/TupleStat.hpp | LorisFriedel/learning-sign-language | f87767c43a11c01885628c1de10daa9d1a58e6ad | [
"MIT"
] | null | null | null | //
// @author Loris Friedel
//
#pragma once
#include <vector>
class TupleStat {
public:
TupleStat(const bool success, const int predictedLetter,
const float trustPercentage, const std::vector<float> &predictOutput);
const bool success;
const int predictedLabel;
const float trustPercen... | 19.578947 | 84 | 0.701613 | [
"vector"
] |
d81a961a1e33fff83c2115294b6314e3f75da142 | 10,829 | cpp | C++ | src/sweepc/source/swp_sintering_model.cpp | sm453/MOpS | f1a706c6552bbdf3ceab504121a02391a1b51ede | [
"MIT"
] | 3 | 2020-09-08T14:06:33.000Z | 2020-12-04T07:52:19.000Z | src/sweepc/source/swp_sintering_model.cpp | sm453/MOpS | f1a706c6552bbdf3ceab504121a02391a1b51ede | [
"MIT"
] | null | null | null | src/sweepc/source/swp_sintering_model.cpp | sm453/MOpS | f1a706c6552bbdf3ceab504121a02391a1b51ede | [
"MIT"
] | 3 | 2021-11-15T05:18:26.000Z | 2022-03-01T13:51:20.000Z | /*
Author(s): Matthew Celnik (msc37)
Project: sweepc (population balance solver)
Sourceforge: http://sourceforge.net/projects/mopssuite
Copyright (C) 2008 Matthew S Celnik.
File purpose:
Implementation of the SinteringModel class declared in the
swp_sintering_model.h header file.
... | 31.388406 | 89 | 0.606889 | [
"object",
"model"
] |
d81c5542a38b1029ef8167d72e1dbf1ce4cd3fd7 | 11,769 | cpp | C++ | core/src/utils/JsonParserPath.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 92 | 2016-11-13T01:28:34.000Z | 2022-03-25T01:11:37.000Z | core/src/utils/JsonParserPath.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 242 | 2016-11-28T11:13:09.000Z | 2022-03-04T13:02:53.000Z | core/src/utils/JsonParserPath.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 91 | 2017-06-20T10:35:28.000Z | 2022-03-09T14:15:40.000Z | /*
*
* JsonParserPath.cpp
* ledger-core
*
* Created by Pierre Pollastri on 26/06/2019.
*
* The MIT License (MIT)
*
* Copyright (c) 2019 Ledger
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* i... | 41.006969 | 131 | 0.517206 | [
"object"
] |
d82ffebb6dbfc6690b66abfff900b0836e216a19 | 8,747 | cpp | C++ | LegOOPolis/Main.cpp | DanielMagro97/LegOOPolis | 7d0441365a46ca3c6fef772d0e43740001682f30 | [
"MIT"
] | null | null | null | LegOOPolis/Main.cpp | DanielMagro97/LegOOPolis | 7d0441365a46ca3c6fef772d0e43740001682f30 | [
"MIT"
] | null | null | null | LegOOPolis/Main.cpp | DanielMagro97/LegOOPolis | 7d0441365a46ca3c6fef772d0e43740001682f30 | [
"MIT"
] | null | null | null | #include <iostream>
#include "CSVReader.h"
#include "Quarry.h"
#include "City.h"
#include "Contractors/Bob.h"
#include "Contractors/Peter.h"
#include "Contractors/Jane.h"
using namespace std;
// function which frees memory on exit
void garbageCollection(Quarry quarry, City city);
// Launcher
int main(int argc, char... | 43.735 | 111 | 0.460158 | [
"object",
"vector"
] |
d8316ab2401256535aaaeef8c024deb5e1586ed4 | 2,715 | hpp | C++ | p3iv_utils_probability/include/p3iv_utils_probability/internal/approximations.hpp | fzi-forschungszentrum-informatik/P3IV | 51784e6dc03dcaa0ad58a5078475fa4daec774bd | [
"BSD-3-Clause"
] | 4 | 2021-07-27T06:56:22.000Z | 2022-03-22T11:21:30.000Z | p3iv_utils_probability/include/p3iv_utils_probability/internal/approximations.hpp | fzi-forschungszentrum-informatik/P3IV | 51784e6dc03dcaa0ad58a5078475fa4daec774bd | [
"BSD-3-Clause"
] | null | null | null | p3iv_utils_probability/include/p3iv_utils_probability/internal/approximations.hpp | fzi-forschungszentrum-informatik/P3IV | 51784e6dc03dcaa0ad58a5078475fa4daec774bd | [
"BSD-3-Clause"
] | 1 | 2021-10-10T01:56:44.000Z | 2021-10-10T01:56:44.000Z | /*
* This file is part of the Interpolated Polyline (https://github.com/fzi-forschungszentrum-informatik/P3IV),
* copyright by FZI Forschungszentrum Informatik, licensed under the BSD-3 license (see LICENSE file in main directory)
*/
#pragma once
#include <cassert>
#include <cmath>
#include <vector>
namespace ut... | 30.505618 | 119 | 0.548435 | [
"vector"
] |
d841445732349e602d3503242245635e28469617 | 6,805 | cc | C++ | math/unit_vector3d_test.cc | aprvs/robotics-common | 0ce23c2e4c09d466d918f10cd8ac0f23571d13df | [
"MIT"
] | 1 | 2021-05-30T22:37:44.000Z | 2021-05-30T22:37:44.000Z | math/unit_vector3d_test.cc | aprvs/robotics-common | 0ce23c2e4c09d466d918f10cd8ac0f23571d13df | [
"MIT"
] | null | null | null | math/unit_vector3d_test.cc | aprvs/robotics-common | 0ce23c2e4c09d466d918f10cd8ac0f23571d13df | [
"MIT"
] | null | null | null | #include "robotics-common/math/unit_vector3d.h"
#include "gtest/gtest.h"
namespace robotics_common {
namespace math {
TEST(UnitVector3dTest, ConstructDestructTest) { UnitVector3d unit_vector; }
TEST(UnitVector3dTest, NormalizeConstructTest) {
common::ErrorOr<UnitVector3d> result =
UnitVector3d::Construct(0.... | 38.664773 | 80 | 0.68626 | [
"vector"
] |
d843ebad641f630862593315b228d27fcf5be69d | 11,636 | cpp | C++ | src/sockets.cpp | jlwitthuhn/cycles-shader-editor | 0d6771801402ca7ecff006f399be90b1beea2884 | [
"MIT"
] | 11 | 2018-04-05T06:52:17.000Z | 2021-12-14T07:02:52.000Z | src/sockets.cpp | jlwitthuhn/cycles-shader-editor | 0d6771801402ca7ecff006f399be90b1beea2884 | [
"MIT"
] | 2 | 2018-01-18T04:30:58.000Z | 2020-07-25T09:49:23.000Z | src/sockets.cpp | jlwitthuhn/cycles-shader-editor | 0d6771801402ca7ecff006f399be90b1beea2884 | [
"MIT"
] | 4 | 2018-04-02T13:36:40.000Z | 2021-08-21T21:23:23.000Z | #include "sockets.h"
#include "curve.h"
#include <algorithm>
#include <cassert>
#include <memory>
static constexpr float CURVE_CREATE_POINT_IGNORE_MARGIN = 0.012f;
static constexpr float CURVE_POINT_SELECT_MARGIN = 0.05f;
static bool Float2_x_lt(const cse::Float2 a, const cse::Float2 b)
{
return a.x < b.x;
}
cse:... | 25.077586 | 150 | 0.728429 | [
"vector"
] |
d84a8ccf08e5d024a86e8ca5f5043d4e71f8bab8 | 7,794 | cpp | C++ | software/libvot/src/utils/io_utils.cpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | 181 | 2015-09-18T13:46:17.000Z | 2022-02-15T06:14:11.000Z | software/libvot/src/utils/io_utils.cpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | 23 | 2015-12-29T21:39:16.000Z | 2019-07-31T10:44:36.000Z | software/libvot/src/utils/io_utils.cpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | 60 | 2015-09-18T13:46:47.000Z | 2021-11-09T03:26:07.000Z | /*
Copyright (c) 2015, Tianwei Shen
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 conditions and the following d... | 25.223301 | 87 | 0.663844 | [
"vector"
] |
d852b6ede3166c4ea1111032c19175354cd7835c | 6,193 | cpp | C++ | lab2/src/uloha2.cpp | patrotom/bez | b1c37163a85be438173c26301824756947e1c744 | [
"MIT"
] | null | null | null | lab2/src/uloha2.cpp | patrotom/bez | b1c37163a85be438173c26301824756947e1c744 | [
"MIT"
] | null | null | null | lab2/src/uloha2.cpp | patrotom/bez | b1c37163a85be438173c26301824756947e1c744 | [
"MIT"
] | null | null | null | #include <openssl/evp.h>
#include "hexa_byte_convertor.h"
using namespace std;
//Class that handles ciphering and determinating the OT from public OT, public CT and its own CT
class RC4 {
public:
//Constructor will load two open texts and type of cipher and will prepare all of the necessary variables to be used wh... | 40.743421 | 235 | 0.608106 | [
"object",
"vector"
] |
d85dd6013fd109cf31cb8f9df7ff60d31c971625 | 1,033 | cpp | C++ | code/wolf.cpp | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | 8 | 2020-02-21T22:21:01.000Z | 2022-02-16T05:30:54.000Z | code/wolf.cpp | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | null | null | null | code/wolf.cpp | matthewReff/Kattis-Problems | 848628af630c990fb91bde6256a77afad6a3f5f6 | [
"MIT"
] | 3 | 2020-08-05T05:42:35.000Z | 2021-08-30T05:39:51.000Z | #include <iostream>
#include <vector>
using namespace std;
int main()
{
int cards;
int value;
char suit;
vector<int> c;
vector<int> s;
vector<int> h;
vector<int> d;
cin >> cards;
if (cards < 26) {
cout << "impossible";
}
else if(cards > 26){
cout << "possible";
}
else{
for (int i = 0; i < 26; i++) {
... | 16.140625 | 38 | 0.454017 | [
"vector"
] |
d860f5e7db0daa938d82a94c7c0049cb6bac4f86 | 9,554 | hpp | C++ | state_extract.hpp | cschreib/qphot | b71de6175088ec165876ee9369299c8c8e9d207f | [
"MIT"
] | null | null | null | state_extract.hpp | cschreib/qphot | b71de6175088ec165876ee9369299c8c8e9d207f | [
"MIT"
] | null | null | null | state_extract.hpp | cschreib/qphot | b71de6175088ec165876ee9369299c8c8e9d207f | [
"MIT"
] | null | null | null | void get_background_apertures(const vec2b& mask, double radius, vec1u& y, vec1u& x) {
y.clear();
x.clear();
// First segment the mask
segment_output sdo;
vec2u seg = segment(mask, sdo);
// Add segments at the edges
seg(0,_) = seg(seg.dims[0]-1,_) = seg(_,0) = seg(_,seg.dims[1]-1) = max(sdo... | 38.369478 | 118 | 0.520934 | [
"vector",
"model"
] |
d86223d871253580c079457d898e1fe89ecb046e | 2,221 | hpp | C++ | include/lxgui/gui_rendertarget.hpp | cschreib/lxgui | b317774d9b4296dda8a70b994950987378a05678 | [
"MIT"
] | 50 | 2015-01-15T10:00:31.000Z | 2022-02-04T20:45:25.000Z | include/lxgui/gui_rendertarget.hpp | cschreib/lxgui | b317774d9b4296dda8a70b994950987378a05678 | [
"MIT"
] | 88 | 2020-03-15T17:40:04.000Z | 2022-03-15T08:21:44.000Z | include/lxgui/gui_rendertarget.hpp | cschreib/lxgui | b317774d9b4296dda8a70b994950987378a05678 | [
"MIT"
] | 19 | 2017-03-11T04:32:01.000Z | 2022-01-12T22:47:12.000Z | #ifndef LXGUI_GUI_RENDERTARGET_HPP
#define LXGUI_GUI_RENDERTARGET_HPP
#include <lxgui/lxgui.hpp>
#include <lxgui/utils.hpp>
#include "lxgui/gui_bounds2.hpp"
#include "lxgui/gui_color.hpp"
namespace lxgui {
namespace gui
{
/// A place to render things (the screen, a texture, ...)
/** \note This is ... | 30.424658 | 80 | 0.591625 | [
"render"
] |
d865162e56506432e45303356fd614d8fe517800 | 6,163 | cpp | C++ | src/generated/camera_device.cpp | kailiu-aibee/python-ricoh-camera-sdk | b84a7738e965adcb2983eac777237321aeaaf02f | [
"MIT"
] | null | null | null | src/generated/camera_device.cpp | kailiu-aibee/python-ricoh-camera-sdk | b84a7738e965adcb2983eac777237321aeaaf02f | [
"MIT"
] | 1 | 2020-08-02T15:08:16.000Z | 2020-08-03T05:31:25.000Z | src/generated/camera_device.cpp | kailiu-aibee/python-ricoh-camera-sdk | b84a7738e965adcb2983eac777237321aeaaf02f | [
"MIT"
] | 1 | 2022-01-10T07:56:36.000Z | 2022-01-10T07:56:36.000Z | // generate by pypp
// original source code: ricoh_camera_sdk/camera_device.hpp
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "ricoh_camera_sdk/camera_device_setting.hpp"
#include "ricoh_camera_sdk/camera_image_list.hpp"
#include "ricoh_camera_sdk/camera_storage_list.hpp"
#include "ricoh_camera_sd... | 69.247191 | 224 | 0.72919 | [
"vector"
] |
d865e74fe660ee60581a18e5a915d6082c051c4b | 844 | cpp | C++ | src/algo/index_search.cpp | setyolegowo/ITB-IF5111-2019 | 4b53c9a69e49bb801fa65b633689670bf2edf4ff | [
"MIT"
] | null | null | null | src/algo/index_search.cpp | setyolegowo/ITB-IF5111-2019 | 4b53c9a69e49bb801fa65b633689670bf2edf4ff | [
"MIT"
] | null | null | null | src/algo/index_search.cpp | setyolegowo/ITB-IF5111-2019 | 4b53c9a69e49bb801fa65b633689670bf2edf4ff | [
"MIT"
] | null | null | null | /**
* index_search.cpp file.
* Implementation.
*
* @author Setyo Legowo <gw.tio145@gmail.com>
* @since 2019.02.26
*/
#include <string>
#include <stdexcept>
#include "index_search.hpp"
IndexSearch::IndexSearch(int _index)
{
this->index = _index;
}
IndexSearch *IndexSearch::createFromConsoleArgument(int arg... | 18.755556 | 74 | 0.619668 | [
"vector"
] |
d86a266c2043393a528f7d4e5cc53359961b1f5e | 2,497 | cpp | C++ | src/application/views/TS_ViewTerminal.cpp | thomasschwarz96/ts-timetracker | df3a190fac0d91df31dd871edd0bcf6d3a688d2d | [
"MIT"
] | 7 | 2020-02-03T08:24:16.000Z | 2020-02-26T23:51:36.000Z | src/application/views/TS_ViewTerminal.cpp | tomschwarz/ts-timetracker | df3a190fac0d91df31dd871edd0bcf6d3a688d2d | [
"MIT"
] | null | null | null | src/application/views/TS_ViewTerminal.cpp | tomschwarz/ts-timetracker | df3a190fac0d91df31dd871edd0bcf6d3a688d2d | [
"MIT"
] | null | null | null | /**
* TS-ViewTerminal
*
* Terminal, text driven view class.
*
* @package TS-TimeTracker
* @author Thomas Schwarz
* @copyright Copyright (c) 2019, Thomas Schwarz
* @license MIT License (https://opensource.org/licenses/MIT)
* @since Version 0.1.0
* @filesource
*/
#include "TS_IView.h"
#in... | 24.242718 | 118 | 0.575891 | [
"render",
"model"
] |
d86bcfe271be3f09b00e6a4ebe90e6bef1bdd25b | 8,654 | cpp | C++ | algorithms.cpp | snowiow/SIFT | 83364b87f60cd8c859a058fb67f4cf321e016a07 | [
"MIT"
] | 41 | 2016-04-21T21:15:37.000Z | 2021-11-12T02:46:54.000Z | algorithms.cpp | snowiow/SIFT | 83364b87f60cd8c859a058fb67f4cf321e016a07 | [
"MIT"
] | 13 | 2015-06-09T07:10:18.000Z | 2017-07-17T08:09:11.000Z | algorithms.cpp | snowiow/SIFT | 83364b87f60cd8c859a058fb67f4cf321e016a07 | [
"MIT"
] | 16 | 2017-02-28T06:11:05.000Z | 2021-08-21T04:46:53.000Z | #include "algorithms.hpp"
#include <vigra/convolution.hxx>
#include <vigra/linear_algebra.hxx>
using namespace vigra::linalg;
namespace sift {
namespace alg {
const vigra::MultiArray<2, f32_t> convolveWithGauss(const vigra::MultiArray<2, f32_t>& img,
f32_t sigma) {
vigra::Ke... | 38.292035 | 122 | 0.471574 | [
"shape",
"vector",
"transform"
] |
d873dbd34b241b22170a63806b8a69198492db68 | 10,907 | cpp | C++ | Testing/ComparatorBlockTest.cpp | ncorgan/PothosArrayFire | b2ce286827cefdc45507dbae65879a943e977479 | [
"BSD-3-Clause"
] | 2 | 2021-01-19T02:21:48.000Z | 2022-03-26T23:05:49.000Z | Testing/ComparatorBlockTest.cpp | ncorgan/PothosArrayFire | b2ce286827cefdc45507dbae65879a943e977479 | [
"BSD-3-Clause"
] | 3 | 2020-07-26T18:48:21.000Z | 2020-10-28T00:45:42.000Z | Testing/ComparatorBlockTest.cpp | pothosware/PothosArrayFire | b2ce286827cefdc45507dbae65879a943e977479 | [
"BSD-3-Clause"
] | 1 | 2022-03-24T06:22:20.000Z | 2022-03-24T06:22:20.000Z | // Copyright (c) 2019-2020 Nicholas Corgan
// SPDX-License-Identifier: BSD-3-Clause
#include "TestUtility.hpp"
#include "Utility.hpp"
#include <Pothos/Exception.hpp>
#include <Pothos/Framework.hpp>
#include <Pothos/Object.hpp>
#include <Pothos/Proxy.hpp>
#include <Pothos/Testing.hpp>
#include <arrayfire.h>
#include... | 32.85241 | 84 | 0.594756 | [
"object",
"vector"
] |
f22135a6ad7707c0c58957e4a76ea5aaa6a2abba | 1,242 | hpp | C++ | cpp/common.hpp | wooseokyourself/capstone_xu4 | 2aa7d4ed6ce627a749d689fce27af3c2a0a3daf1 | [
"Beerware"
] | 1 | 2020-03-17T17:55:20.000Z | 2020-03-17T17:55:20.000Z | cpp/common.hpp | wooseokyourself/capstone_xu4 | 2aa7d4ed6ce627a749d689fce27af3c2a0a3daf1 | [
"Beerware"
] | 2 | 2020-03-18T05:04:15.000Z | 2020-05-31T11:30:09.000Z | cpp/common.hpp | wooseokyourself/capstone_xu4 | 2aa7d4ed6ce627a749d689fce27af3c2a0a3daf1 | [
"Beerware"
] | 2 | 2020-05-24T00:41:04.000Z | 2020-05-31T08:04:00.000Z | #ifndef COMMON
#define COMMON
#include <cstdio>
#include <cstdlib>
#include <cassert>
#include <ctime>
#include <cstring>
#include <fstream>
#include <string>
#include <utility>
#include <vector>
#include <thread>
#include <mutex>
#include <opencv2/core/mat.hpp>
#include <opencv2/dnn.hpp>
#include ... | 17.742857 | 59 | 0.692432 | [
"vector"
] |
f2266820961296e7d3b2a56db2e1ad78fa0fdbfe | 1,638 | cpp | C++ | flint/Checks/IncludeAssociatedHeader.cpp | AaronDMarasco/FlintPlusPlus | d1e4afc99d8c0616b8574bf8edc52a92170c6e10 | [
"BSL-1.0"
] | 1 | 2020-08-11T21:58:41.000Z | 2020-08-11T21:58:41.000Z | flint/Checks/IncludeAssociatedHeader.cpp | AaronDMarasco/FlintPlusPlus | d1e4afc99d8c0616b8574bf8edc52a92170c6e10 | [
"BSL-1.0"
] | null | null | null | flint/Checks/IncludeAssociatedHeader.cpp | AaronDMarasco/FlintPlusPlus | d1e4afc99d8c0616b8574bf8edc52a92170c6e10 | [
"BSL-1.0"
] | null | null | null | #include "../Checks.hpp"
using namespace std;
namespace flint {
/**
* Ensures .cpp files include their associated header first
* (this catches #include-time dependency bugs where .h files don't
* include things they depend on)
*
* @param errors
* Struct to track how many errors/warnings/advice occured
*... | 29.25 | 103 | 0.633089 | [
"vector"
] |
f22ea41752b76b0a1b9d55f410fac62b1d55d052 | 2,153 | cpp | C++ | test/test_timing_elements.cpp | mahilab/mahi-experiment | 30cb500744db2df5ac32d3f8d568b5c460ffb6d7 | [
"MIT"
] | 1 | 2020-11-18T23:42:12.000Z | 2020-11-18T23:42:12.000Z | test/test_timing_elements.cpp | mahilab/mahi-experiment | 30cb500744db2df5ac32d3f8d568b5c460ffb6d7 | [
"MIT"
] | null | null | null | test/test_timing_elements.cpp | mahilab/mahi-experiment | 30cb500744db2df5ac32d3f8d568b5c460ffb6d7 | [
"MIT"
] | null | null | null | #include<Mahi/Util.hpp>
using namespace mahi::util;
// enum so that I can use training/testing instead of ambiguous 0 and 1
enum Session{
training, // 0
testing // 1
};
int main(int argc, char* argv[]) {
std::vector<std::string> session_strings = {"Training", "Testing"};
// times that we will ... | 43.06 | 204 | 0.669763 | [
"vector"
] |
f239ab8496654d430a368a0ccd7ccb79c36df7b7 | 9,940 | cpp | C++ | src/door.cpp | adct-the-experimenter/Door-To-Life-Minimal | a4a08d13443bdf21d4efc27f8509f5d5f8d57584 | [
"BSD-2-Clause"
] | null | null | null | src/door.cpp | adct-the-experimenter/Door-To-Life-Minimal | a4a08d13443bdf21d4efc27f8509f5d5f8d57584 | [
"BSD-2-Clause"
] | null | null | null | src/door.cpp | adct-the-experimenter/Door-To-Life-Minimal | a4a08d13443bdf21d4efc27f8509f5d5f8d57584 | [
"BSD-2-Clause"
] | null | null | null | #include "door.h"
bool loadDoorMedia(SDL_Renderer* gRenderer,
LTexture* doorTexture,
ALuint* source,
ALuint* doorBufferOpen,
ALuint* doorBufferFail,
std::vector <SDL_Rect> &doorClips)
{
bool success = true;
//initialize texture for door
std::string doorTexFilePath = DATADIR_STR + std::string("/Graph... | 29.064327 | 146 | 0.617103 | [
"render",
"vector"
] |
f23c6d35aefe5a317c5851a59fa29c4863e7762e | 2,940 | cpp | C++ | dependencies/thermite3d/source/scriptable/Light.cpp | paroj/voxeliens | 64322d13d1661b6d5f88032b16f410516b9690b8 | [
"MIT"
] | 2 | 2020-12-13T12:11:15.000Z | 2021-06-22T13:54:53.000Z | dependencies/thermite3d/source/scriptable/Light.cpp | paroj/voxeliens | 64322d13d1661b6d5f88032b16f410516b9690b8 | [
"MIT"
] | null | null | null | dependencies/thermite3d/source/scriptable/Light.cpp | paroj/voxeliens | 64322d13d1661b6d5f88032b16f410516b9690b8 | [
"MIT"
] | 2 | 2021-03-27T04:27:57.000Z | 2021-06-22T13:54:54.000Z | #include "Light.h"
#include "Utility.h"
#include "OgreEntity.h"
#include "OgreRoot.h"
namespace Thermite
{
Light::Light(Object* parent)
:RenderComponent(parent)
,m_colColour(255,255,255)
,mType(PointLight)
,mDirectionalFixupSceneNode(0)
,mOgreLight(0)
{
}
Light::~Light()
{
if(mD... | 30 | 148 | 0.710544 | [
"mesh",
"object"
] |
f23fc55d9a93957aebeea2a0a75802cbc7cbf651 | 79,890 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Services/Server/src/elastos/droid/server/wifi/WifiServiceImpl.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Services/Server/src/elastos/droid/server/wifi/WifiServiceImpl.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Services/Server/src/elastos/droid/server/wifi/WifiServiceImpl.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos 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
//
// ... | 33.937978 | 154 | 0.626399 | [
"object",
"3d"
] |
f25f3599902e9df75b487acaa9a39c7e3cd65d39 | 678 | cc | C++ | ui/display/chromeos/ozone/touchscreen_delegate_ozone.cc | shaochangbin/chromium-crosswalk | 634d34e4cf82b4f7400357c53ec12efaffe94add | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-16T03:57:28.000Z | 2021-01-23T15:29:45.000Z | ui/display/chromeos/ozone/touchscreen_delegate_ozone.cc | shaochangbin/chromium-crosswalk | 634d34e4cf82b4f7400357c53ec12efaffe94add | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ui/display/chromeos/ozone/touchscreen_delegate_ozone.cc | shaochangbin/chromium-crosswalk | 634d34e4cf82b4f7400357c53ec12efaffe94add | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2017-03-15T13:21:38.000Z | 2017-03-15T13:21:38.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/display/chromeos/ozone/touchscreen_delegate_ozone.h"
namespace ui {
TouchscreenDelegateOzone::TouchscreenDelegateOzone() {}
TouchscreenDel... | 27.12 | 73 | 0.781711 | [
"vector"
] |
f26344a483d3c710a0779b3a46e04d3d7d5816de | 4,348 | hpp | C++ | lib/utils.hpp | c-vigo/mudirac | 86c71f6ec25c8328ac7c32abde21c240f41f73e2 | [
"MIT"
] | 3 | 2021-03-04T09:17:20.000Z | 2022-03-03T04:13:16.000Z | lib/utils.hpp | c-vigo/mudirac | 86c71f6ec25c8328ac7c32abde21c240f41f73e2 | [
"MIT"
] | null | null | null | lib/utils.hpp | c-vigo/mudirac | 86c71f6ec25c8328ac7c32abde21c240f41f73e2 | [
"MIT"
] | 2 | 2022-03-11T10:29:16.000Z | 2022-03-25T16:05:47.000Z | /**
* MuDirac - A muonic atom Dirac equation solver
* by Simone Sturniolo (2019-2020)
*
* utils.hpp
*
* Utility functions of various sorts - header file
*
* @author Simone Sturniolo
* @version 1.0 20/03/2020
*/
#include <cmath>
#include <string>
#include <vector>
#include <fstream>
#include <stdexcept>
#incl... | 24.022099 | 100 | 0.589926 | [
"vector"
] |
f2656c6f87bcfa6a4427f40f658f9a8ef1dac935 | 1,287 | cpp | C++ | core/src/Scripting/ScriptingEngine.cpp | tokongs/yage | 14c9411d8efce08b89c0deb134b5c3023a32c577 | [
"MIT"
] | null | null | null | core/src/Scripting/ScriptingEngine.cpp | tokongs/yage | 14c9411d8efce08b89c0deb134b5c3023a32c577 | [
"MIT"
] | null | null | null | core/src/Scripting/ScriptingEngine.cpp | tokongs/yage | 14c9411d8efce08b89c0deb134b5c3023a32c577 | [
"MIT"
] | null | null | null | #include "ScriptingEngine.h"
namespace yage {
sol::state ScriptingEngine::mLuaState = sol::state();
void ScriptingEngine::Init() {
OpenLuaLibs(&mLuaState);
SetupInputAPI(&mLuaState);
SetupGameObjectsAPI(&mLuaState);
SetupSceneAPI(&mLuaState);
SetupMathAPI(&mLuaState);
... | 28.6 | 91 | 0.574981 | [
"object"
] |
f268eb277c51f0cc0df300e0de60bd1a6fcb7abd | 130,217 | cpp | C++ | Source/SystemQOR/MSWindows/WinQL/System/FileSystem/WinQLStream.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/SystemQOR/MSWindows/WinQL/System/FileSystem/WinQLStream.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/SystemQOR/MSWindows/WinQL/System/FileSystem/WinQLStream.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //WinQLStream.cpp
// Copyright Querysoft Limited 2016
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to use, reproduce, display, distribute,
// execute, and transmit the Sof... | 24.546089 | 285 | 0.520823 | [
"object"
] |
f26db166da969e8ea326c55d5a327ac578c5994e | 2,043 | cpp | C++ | src/utils/strparse/strparse.cpp | wangzhezhe/observerchain | faa8fb9d845a2720704538f01e1e7597083d4510 | [
"MIT"
] | null | null | null | src/utils/strparse/strparse.cpp | wangzhezhe/observerchain | faa8fb9d845a2720704538f01e1e7597083d4510 | [
"MIT"
] | null | null | null | src/utils/strparse/strparse.cpp | wangzhezhe/observerchain | faa8fb9d845a2720704538f01e1e7597083d4510 | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
#include "./strparse.h"
using namespace std;
vector<int> strSplit(string str)
{
vector<int> words;
int leftIdx = 0;
int rightIdx = 0;
while (rightIdx < str.size())
{
while (rightIdx < str.size() && str[rightIdx] != ',')
rightIdx++;
w... | 24.035294 | 80 | 0.632893 | [
"vector"
] |
f26e1709a575a9e79fa57076076533ea074c7a80 | 2,565 | cpp | C++ | src/EncodersOdometry.cpp | Orion3k/Siryo-Differential-Drive-Robot | f3a64e4584ba63c88589bc90e87a23b1eae56e3f | [
"MIT"
] | null | null | null | src/EncodersOdometry.cpp | Orion3k/Siryo-Differential-Drive-Robot | f3a64e4584ba63c88589bc90e87a23b1eae56e3f | [
"MIT"
] | null | null | null | src/EncodersOdometry.cpp | Orion3k/Siryo-Differential-Drive-Robot | f3a64e4584ba63c88589bc90e87a23b1eae56e3f | [
"MIT"
] | null | null | null | #include "ros/ros.h"
#include "nav_msgs/Odometry.h"
#include "tf/transform_broadcaster.h"
#include "geometry_msgs/Vector3Stamped.h"
#include "math.h"
class Odom_class{
private:
ros::NodeHandle nh;
ros::Subscriber speed_sub;
ros::Publisher odom_pub;
tf::TransformBroadcaster tf_pub;
... | 28.820225 | 106 | 0.552437 | [
"vector",
"transform"
] |
f270b0847ad301fc648e3ad382a6648847a57969 | 3,346 | cpp | C++ | src/parser/parser.cpp | adamhutchings/chirpc | 70d190fa79fa9f968b8de14ca41a8f50bae0019b | [
"MIT"
] | 1 | 2021-06-02T13:24:13.000Z | 2021-06-02T13:24:13.000Z | src/parser/parser.cpp | dekrain/chirpc | 93a6230da746d1e6e16230d79b151dee0d3f4a09 | [
"MIT"
] | null | null | null | src/parser/parser.cpp | dekrain/chirpc | 93a6230da746d1e6e16230d79b151dee0d3f4a09 | [
"MIT"
] | null | null | null | #include "parser.hpp"
void parser::load_tokens(std::string fn, std::vector<token> t)
{
this->filename = fn;
this->tkns = t;
}
std::vector<helper> parser::get_helpers()
{
return this->helpers;
}
ast parser::get_ast()
{
return this->tree;
}
void parser::parse()
{
this->ok = true;
//this->tree.... | 21.448718 | 70 | 0.472803 | [
"vector"
] |
f27b5cdaa66c8e6b921608cf58b7318083f36000 | 46,475 | cpp | C++ | src/opbox/net/nnti/NetNnti.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-01-25T21:21:07.000Z | 2021-04-29T17:24:00.000Z | src/opbox/net/nnti/NetNnti.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 8 | 2018-10-09T14:35:30.000Z | 2020-09-30T20:09:42.000Z | src/opbox/net/nnti/NetNnti.cpp | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-04-23T19:01:36.000Z | 2021-05-11T07:44:55.000Z | // Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#include <algorithm>
#include <functional>
#include <iostream>
#include <sstream>
#include <thread>
#include <sy... | 32.614035 | 148 | 0.620054 | [
"vector"
] |
f286cb2abebfa0519fa296b28f587a1dfa8d3c09 | 11,171 | cpp | C++ | Dev/Cpp/Test/SIMD/SIMDTest.cpp | emadurandal/Effekseer | c5cb963c9a8483258a9f972bd681b0c08b2ceef3 | [
"Apache-2.0",
"BSD-3-Clause"
] | 957 | 2015-01-03T11:44:51.000Z | 2022-03-29T06:50:43.000Z | Dev/Cpp/Test/SIMD/SIMDTest.cpp | emadurandal/Effekseer | c5cb963c9a8483258a9f972bd681b0c08b2ceef3 | [
"Apache-2.0",
"BSD-3-Clause"
] | 305 | 2015-01-03T04:04:43.000Z | 2022-03-28T13:29:11.000Z | Dev/Cpp/Test/SIMD/SIMDTest.cpp | emadurandal/Effekseer | c5cb963c9a8483258a9f972bd681b0c08b2ceef3 | [
"Apache-2.0",
"BSD-3-Clause"
] | 175 | 2015-01-22T11:58:49.000Z | 2022-03-28T07:41:56.000Z | #include <cassert>
#include "SIMD/Float4.h"
#include "SIMD/Int4.h"
#include "SIMD/Bridge.h"
#include "SIMD/Vec2f.h"
#include "SIMD/Vec3f.h"
#include "SIMD/Vec4f.h"
#include "SIMD/Mat43f.h"
#include "SIMD/Mat44f.h"
#include "SIMD/Utils.h"
#include "Effekseer.Vector2D.h"
#include "Effekseer.Vector3D.h"
#include "Effeksee... | 21.157197 | 112 | 0.518485 | [
"transform"
] |
f2afc135a11fdd5f034dae85123ece7e8ed1fe6b | 4,021 | cpp | C++ | src/core/lib/core_data_model/asset_browser/asset_browser_model20.cpp | wgsyd/wgtf | d8cacb43e2c5d40080d33c18a8c2f5bd27d21bed | [
"BSD-3-Clause"
] | 28 | 2016-06-03T05:28:25.000Z | 2019-02-14T12:04:31.000Z | src/core/lib/core_data_model/asset_browser/asset_browser_model20.cpp | karajensen/wgtf | 740397bcfdbc02bc574231579d57d7c9cd5cc26d | [
"BSD-3-Clause"
] | null | null | null | src/core/lib/core_data_model/asset_browser/asset_browser_model20.cpp | karajensen/wgtf | 740397bcfdbc02bc574231579d57d7c9cd5cc26d | [
"BSD-3-Clause"
] | 14 | 2016-06-03T05:52:27.000Z | 2019-03-21T09:56:03.000Z |
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//
// asset_browser_model.cpp
//
//---------------------------------------------------------------------------------------------------------... | 25.13125 | 177 | 0.668242 | [
"vector"
] |
f2b17d75ee702cafe29febff95f17981d3879259 | 990 | hpp | C++ | data-manager/src/server/dataManagerServer/session/frameElaboration/JPEGDecoder.hpp | Saafke/4dm | 68e235164afb1f127def35e9c15ca883ec1426d4 | [
"MIT"
] | 8 | 2021-03-16T06:48:57.000Z | 2021-11-30T09:34:09.000Z | data-manager/src/server/dataManagerServer/session/frameElaboration/JPEGDecoder.hpp | Saafke/4dm | 68e235164afb1f127def35e9c15ca883ec1426d4 | [
"MIT"
] | null | null | null | data-manager/src/server/dataManagerServer/session/frameElaboration/JPEGDecoder.hpp | Saafke/4dm | 68e235164afb1f127def35e9c15ca883ec1426d4 | [
"MIT"
] | 3 | 2021-05-02T15:38:17.000Z | 2021-07-07T09:19:48.000Z | /*
* JPEGDecoder.hpp
*
* Created on: Apr 23, 2019
* Author: mbortolon
*/
#ifndef SRC_DATAMANAGERSERVER_SESSION_FRAMEELABORATION_JPEGDECODER_HPP_
#define SRC_DATAMANAGERSERVER_SESSION_FRAMEELABORATION_JPEGDECODER_HPP_
#include "AbstractDecoder.hpp"
#include <string>
#include <vector>
#include "src/common/d... | 26.052632 | 106 | 0.79697 | [
"vector"
] |
f2c62059a98a0279c23bb9e177e621e25febd3a9 | 12,512 | cpp | C++ | native/dqnagent.cpp | xdavidwu/2048-dqn | 3e97bff69d7ce51bfb73cdbf9cbfd0c1d0898d29 | [
"MIT"
] | 3 | 2019-01-08T12:58:28.000Z | 2019-01-12T11:32:59.000Z | native/dqnagent.cpp | xdavidwu/2048-dqn | 3e97bff69d7ce51bfb73cdbf9cbfd0c1d0898d29 | [
"MIT"
] | 1 | 2019-01-08T12:58:17.000Z | 2019-01-09T10:14:56.000Z | native/dqnagent.cpp | xdavidwu/2048-dqn | 3e97bff69d7ce51bfb73cdbf9cbfd0c1d0898d29 | [
"MIT"
] | null | null | null | #include "2048.h"
#include <cmath>
#include <vector>
#include <random>
#include <thread>
#include <experimental/algorithm>
#include <tensorflow/cc/client/client_session.h>
#include <tensorflow/cc/ops/standard_ops.h>
#include <tensorflow/core/framework/tensor.h>
#include <tensorflow/cc/framework/gradients.h>
#include <... | 34.373626 | 167 | 0.702925 | [
"vector"
] |
f2d545f79846d97070a5a8c387b71a44483ee67e | 864 | cpp | C++ | DSA-450/01Array/24longestSeq.cpp | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | DSA-450/01Array/24longestSeq.cpp | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | DSA-450/01Array/24longestSeq.cpp | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | // question link: https://leetcode.com/problems/longest-consecutive-sequence/
#include <bits/stdc++.h>
using namespace std;
int longestConsecutive(vector<int> &nums)
{
if (nums.size() == 1)
return 1;
sort(nums.begin(), nums.end());
vector<int> seq;
int count = 0, max = 0;
seq.push_back(n... | 18.782609 | 77 | 0.457176 | [
"vector"
] |
f2d8847532361a1b7ea154d493f9e8f5e689ac54 | 12,964 | cpp | C++ | fundamentals/battleship/memberfunc.cpp | kaanguney/c_plus_plus | cc7c4d26184ea9dd86aec588aa8a07dbcd65b33a | [
"MIT"
] | null | null | null | fundamentals/battleship/memberfunc.cpp | kaanguney/c_plus_plus | cc7c4d26184ea9dd86aec588aa8a07dbcd65b33a | [
"MIT"
] | null | null | null | fundamentals/battleship/memberfunc.cpp | kaanguney/c_plus_plus | cc7c4d26184ea9dd86aec588aa8a07dbcd65b33a | [
"MIT"
] | null | null | null | #include "myboard.h"
#include "players.h"
#include <iostream>
#include <iomanip> // for setw
using namespace std;
myboard::myboard() { // default constructor for myboard.h, initialize all to zero...
for(int i=0; i<6; i++) {
for(int j=0; j<6; j++) {
theBoard[i][j] = 0... | 25.22179 | 101 | 0.266893 | [
"shape"
] |
f2e2221c8936c703a188047c6d63c4e9a1e97efa | 4,315 | cpp | C++ | Distance.cpp | puzzgames/juddperft | 467fdadd755a691304acbc292a3f58cde0fd1c24 | [
"MIT"
] | null | null | null | Distance.cpp | puzzgames/juddperft | 467fdadd755a691304acbc292a3f58cde0fd1c24 | [
"MIT"
] | null | null | null | Distance.cpp | puzzgames/juddperft | 467fdadd755a691304acbc292a3f58cde0fd1c24 | [
"MIT"
] | null | null | null | //
// Created by andrzej on 9/17/21.
//
#include "Distance.h"
int Distance::lcslen(std::string a, std::string b) {
int h = a.length() + 1;
int w = b.length() + 1;
int *C = new int[w * h]; // (a, b).length() + 1
for (int i = 0; i <= a.length(); i++)
C[i * w + 0] = 0;
for (int j = 0; j <= b.... | 28.388158 | 92 | 0.504519 | [
"vector"
] |
f2f526bbf3b3a601aaeb27a2c51f6ebe8ccd9532 | 11,534 | cpp | C++ | AAM_PDM.cpp | wuxuef2/face | 377f5d17e0d3500720f4f609c0a4d70fa02fc11b | [
"MIT"
] | 18 | 2015-05-07T13:54:53.000Z | 2020-02-29T05:21:34.000Z | AAM_PDM.cpp | wuxuef2/face | 377f5d17e0d3500720f4f609c0a4d70fa02fc11b | [
"MIT"
] | null | null | null | AAM_PDM.cpp | wuxuef2/face | 377f5d17e0d3500720f4f609c0a4d70fa02fc11b | [
"MIT"
] | 16 | 2015-12-22T05:43:53.000Z | 2019-12-26T02:37:09.000Z | /****************************************************************************
*
* Copyright (c) 2008 by Yao Wei, all rights reserved.
*
* Author: Yao Wei
* Contact: njustyw@gmail.com
*
* This software is partly based on the following open source:
*
* - OpenCV
*
**********************************************... | 28.408867 | 129 | 0.58748 | [
"shape",
"vector",
"model"
] |
f2f784467e340521d771731057aecacc16854381 | 983 | cpp | C++ | android-31/android/net/UrlQuerySanitizer_ParameterValuePair.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/net/UrlQuerySanitizer_ParameterValuePair.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/net/UrlQuerySanitizer_ParameterValuePair.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "./UrlQuerySanitizer.hpp"
#include "../../JString.hpp"
#include "./UrlQuerySanitizer_ParameterValuePair.hpp"
namespace android::net
{
// Fields
JString UrlQuerySanitizer_ParameterValuePair::mParameter()
{
return getObjectField(
"mParameter",
"Ljava/lang/String;"
);
}
JString UrlQuerySanitizer_P... | 25.205128 | 141 | 0.745677 | [
"object"
] |
f2fbc149fb42257359842c120da8ae7dbe03baf1 | 14,096 | cc | C++ | problems/TwoDModel/TwoDModel.cc | ppnathan/HMSHS | ae65c7622cf4b10d710722084d73a2ad8636bc9e | [
"Apache-2.0"
] | null | null | null | problems/TwoDModel/TwoDModel.cc | ppnathan/HMSHS | ae65c7622cf4b10d710722084d73a2ad8636bc9e | [
"Apache-2.0"
] | null | null | null | problems/TwoDModel/TwoDModel.cc | ppnathan/HMSHS | ae65c7622cf4b10d710722084d73a2ad8636bc9e | [
"Apache-2.0"
] | null | null | null | #include "TwoDModel.h"
#include "Utilities.h"
#include <cmath>
#include <cstdlib>
#include <random>
#include <iostream>
#include <array>
using namespace std;
const double Discount_2DMdl = 0.95;
const int NumCStateVar_2DMdl = 2; // number of continuous state variables
const int NumDState_2DMdl = 4; // number of d... | 41.952381 | 135 | 0.515253 | [
"vector",
"model"
] |
8406963291ea145182819150ff41485d2ddcd6ca | 409 | hpp | C++ | src/output/matlab_m_output.hpp | michaeldel/portfolio-optimizer | 1cf8e417442b780294ce3ad6009a8712626d8bfd | [
"MIT"
] | null | null | null | src/output/matlab_m_output.hpp | michaeldel/portfolio-optimizer | 1cf8e417442b780294ce3ad6009a8712626d8bfd | [
"MIT"
] | null | null | null | src/output/matlab_m_output.hpp | michaeldel/portfolio-optimizer | 1cf8e417442b780294ce3ad6009a8712626d8bfd | [
"MIT"
] | null | null | null | #ifndef DEFINE_MATLAB_M_OUTPUT_HPP
#define DEFINE_MATLAB_M_OUTPUT_HPP
#include "result_output.hpp"
#include "types.hpp"
class MatlabMOutput: public ResultOutput {
public:
MatlabMOutput(const std::string& path);
void write_result(
const Vector& xs, const Vector& ts,
const Matrix& portfolio_valu... | 20.45 | 60 | 0.728606 | [
"vector"
] |
8409787cc25a399b1691a37471266714e09db4c7 | 1,844 | cpp | C++ | UVa/11496/code.cpp | fspaniol/Competitive-Programming | 5ebd53c9d966750800e16f74273b194c04bb7f70 | [
"MIT"
] | null | null | null | UVa/11496/code.cpp | fspaniol/Competitive-Programming | 5ebd53c9d966750800e16f74273b194c04bb7f70 | [
"MIT"
] | null | null | null | UVa/11496/code.cpp | fspaniol/Competitive-Programming | 5ebd53c9d966750800e16f74273b194c04bb7f70 | [
"MIT"
] | null | null | null | #include <map>
#include <set>
#include <list>
#include <cmath>
#include <ctime>
#include <deque>
#include <queue>
#include <stack>
#include <string>
#include <bitset>
#include <cstdio>
#include <limits>
#include <vector>
#include <climits>
#include <cstring>
#include <cstdlib>
#include <fstream>
#include <numeric>
#inc... | 22.765432 | 93 | 0.37961 | [
"vector"
] |
840a006a1cda25036e030c34396a8d08a597bf15 | 13,378 | cpp | C++ | tests/CryptoTest.cpp | Manuvr/ManuvrOS | e3a812c9b609ad69670ff2f8050a07bd423ebc78 | [
"Apache-2.0"
] | 5 | 2015-03-26T22:58:58.000Z | 2021-06-15T05:36:57.000Z | tests/CryptoTest.cpp | Manuvr/ManuvrOS | e3a812c9b609ad69670ff2f8050a07bd423ebc78 | [
"Apache-2.0"
] | 2 | 2016-09-26T09:25:58.000Z | 2017-08-03T05:27:24.000Z | tests/CryptoTest.cpp | Manuvr/ManuvrOS | e3a812c9b609ad69670ff2f8050a07bd423ebc78 | [
"Apache-2.0"
] | 2 | 2016-04-29T07:43:32.000Z | 2020-02-07T06:43:01.000Z | /*
File: CryptoTest.cpp
Author: J. Ian Lindsay
Date: 2016.09.25
Copyright 2016 Manuvr, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unles... | 31.477647 | 136 | 0.596427 | [
"3d"
] |
84117a9d1b16847803a057b848cda374eef0053c | 3,369 | cpp | C++ | test/find_dag_equivalence.cpp | mdsudara/percy | b593922b98c9c20fe0a3e4726e50401e54b9cb09 | [
"MIT"
] | 14 | 2018-03-10T21:50:20.000Z | 2021-11-22T04:09:09.000Z | test/find_dag_equivalence.cpp | mdsudara/percy | b593922b98c9c20fe0a3e4726e50401e54b9cb09 | [
"MIT"
] | 3 | 2018-06-12T15:17:22.000Z | 2019-06-20T12:00:45.000Z | test/find_dag_equivalence.cpp | mdsudara/percy | b593922b98c9c20fe0a3e4726e50401e54b9cb09 | [
"MIT"
] | 12 | 2018-03-10T17:02:07.000Z | 2022-01-09T16:04:56.000Z | #include <percy/percy.hpp>
#include <chrono>
#include <thread>
#define MAX_TESTS 512
#if 0
using namespace percy;
using kitty::static_truth_table;
/*******************************************************************************
In this module, we test the equivalence of the sequential and parallel
find_dag ... | 27.842975 | 98 | 0.563075 | [
"transform"
] |
8428c1f2d512f5af7015d9a37ea7427f6ad5fbb9 | 4,476 | hpp | C++ | src/Module_trigSeq.hpp | miRackModular/trowaSoft-VCV | 56ab2f95bcd0f788b3eb8714718c972cbb0546d9 | [
"MIT"
] | null | null | null | src/Module_trigSeq.hpp | miRackModular/trowaSoft-VCV | 56ab2f95bcd0f788b3eb8714718c972cbb0546d9 | [
"MIT"
] | null | null | null | src/Module_trigSeq.hpp | miRackModular/trowaSoft-VCV | 56ab2f95bcd0f788b3eb8714718c972cbb0546d9 | [
"MIT"
] | null | null | null | #ifndef MODULE_TRIGSEQ_HPP
#define MODULE_TRIGSEQ_HPP
#include <string.h>
#include <stdio.h>
//#include "trowaSoft.hpp"
//#include "dsp/digital.hpp"
#include "TSSequencerWidgetBase.hpp"
#include "trowaSoftComponents.hpp"
#include "trowaSoftUtilities.hpp"
#include "TSSequencerModuleBase.hpp"
#define trigSe... | 39.964286 | 163 | 0.476765 | [
"model"
] |
842dc1279297664737efb6f74d979c6ed0e46af5 | 880 | cpp | C++ | Algorithms/0929.Unique_Email_Addresses.cpp | metehkaya/LeetCode | 52f4a1497758c6f996d515ced151e8783ae4d4d2 | [
"MIT"
] | 2 | 2020-07-20T06:40:22.000Z | 2021-11-20T01:23:26.000Z | Problems/LeetCode/Problems/0929.Unique_Email_Addresses.cpp | metehkaya/Algo-Archive | 03b5fdcf06f84a03125c57762c36a4e03ca6e756 | [
"MIT"
] | null | null | null | Problems/LeetCode/Problems/0929.Unique_Email_Addresses.cpp | metehkaya/Algo-Archive | 03b5fdcf06f84a03125c57762c36a4e03ca6e756 | [
"MIT"
] | null | null | null | class Solution {
public:
int numUniqueEmails(vector<string>& emails) {
unordered_set<string> myset;
int n = emails.size();
for( int i = 0 ; i < n ; i++ ) {
int len = emails[i].size();
int indexDomain = 0;
bool isPlus = false;
string localName =... | 35.2 | 85 | 0.455682 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.