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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e06a306958fbf6d0071a38580e86508ba3f44a5b | 1,093 | cpp | C++ | Source/T1Project/T1AWeapon.cpp | BaekTaehyun/T1Project | d7d98c7cfc88e57513631124c32dfee8794307db | [
"MIT"
] | 3 | 2019-06-25T05:09:47.000Z | 2020-09-30T18:06:17.000Z | Source/T1Project/T1AWeapon.cpp | BaekTaehyun/T1Project | d7d98c7cfc88e57513631124c32dfee8794307db | [
"MIT"
] | null | null | null | Source/T1Project/T1AWeapon.cpp | BaekTaehyun/T1Project | d7d98c7cfc88e57513631124c32dfee8794307db | [
"MIT"
] | 2 | 2018-10-15T08:09:16.000Z | 2020-04-07T05:25:52.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "T1AWeapon.h"
#include "ConstructorHelpers.h"
#include "CoreMinimal.h"
#include "Engine/SkeletalMesh.h"
#include "Components/SkeletalMeshComponent.h"
// Sets default values
AT1AWeapon::AT1AWeapon()
{
// Set this actor to call Ti... | 24.840909 | 115 | 0.770357 | [
"object"
] |
e073e3204e4d89f25ecdb171a027a6e0da0356e0 | 1,196 | cpp | C++ | hdoj/hdu2108.cpp | songhn233/ACM_Steps | 6f2edeca9bf4fc999a8148bc90b2d8d0e59d48fe | [
"CC0-1.0"
] | 1 | 2020-08-10T21:40:21.000Z | 2020-08-10T21:40:21.000Z | hdoj/hdu2108.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | hdoj/hdu2108.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | #include<cstdio>
#include<algorithm>
#include<cstring>
#include<iostream>
#include<vector>
#include<queue>
#include<cmath>
#include<map>
#include<set>
#define ll long long
#define F(i,a,b) for(int i=(a);i<=(b);i++)
#define mst(a,b) memset((a),(b),sizeof(a))
#define PII pair<int,int>
using namespace std;
template<class ... | 19.606557 | 67 | 0.587793 | [
"vector"
] |
2fda2215b45d625a098d6a3ef224296f7ffc2359 | 12,482 | cpp | C++ | components/qt_viewer/src/widget_lidarvisualizer.cpp | masszhou/lidarviewer | d5f821199544ddab24d1791b2994bead2467ea45 | [
"MIT"
] | 1 | 2021-01-22T14:14:17.000Z | 2021-01-22T14:14:17.000Z | components/qt_viewer/src/widget_lidarvisualizer.cpp | masszhou/lidarviewer | d5f821199544ddab24d1791b2994bead2467ea45 | [
"MIT"
] | null | null | null | components/qt_viewer/src/widget_lidarvisualizer.cpp | masszhou/lidarviewer | d5f821199544ddab24d1791b2994bead2467ea45 | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include <QDate>
#include "widget_lidarvisualizer.h"
#include "comm_funcs.h"
LidarVisualizerWidget::LidarVisualizerWidget(uint32_t server_port, QWidget *parent):
_screenshot_counter(0),
_dummy_box(nullptr)
{
initScene(server_port);
}
void LidarVisualizerWidget::ini... | 39.375394 | 191 | 0.601987 | [
"render",
"vector"
] |
2fdd43736863603b62f8a817c8a7c42a42a28850 | 8,395 | cpp | C++ | munin/src/text/default_singleline_document.cpp | KazDragon/paradice9 | bb89ce8bff2f99d2526f45b064bfdd3412feb992 | [
"MIT"
] | 9 | 2015-12-16T07:00:39.000Z | 2021-05-05T13:29:28.000Z | munin/src/text/default_singleline_document.cpp | KazDragon/paradice9 | bb89ce8bff2f99d2526f45b064bfdd3412feb992 | [
"MIT"
] | 43 | 2015-07-18T11:13:15.000Z | 2017-07-15T13:18:43.000Z | munin/src/text/default_singleline_document.cpp | KazDragon/paradice9 | bb89ce8bff2f99d2526f45b064bfdd3412feb992 | [
"MIT"
] | 3 | 2015-10-09T13:33:35.000Z | 2016-07-11T02:23:08.000Z | // ==========================================================================
// Munin Default Single Line Text Document.
//
// Copyright (C) 2010 Matthew Chaplain, All Rights Reserved.
//
// Permission to reproduce, distribute, perform, display, and to prepare
// derivitive works from this file under the followi... | 35.723404 | 88 | 0.473496 | [
"vector"
] |
2fe06d11c248c9ba3ce11ca311891b7b7e455d94 | 11,417 | cpp | C++ | src/SOP_TextureObstacle_Src.cpp | schreckc/FSWW_houdini | c5766304f35e2f3d9e159953aebeea5079e27f90 | [
"MIT"
] | 5 | 2019-11-05T08:27:09.000Z | 2021-12-09T08:05:46.000Z | src/SOP_TextureObstacle_Src.cpp | schreckc/FSWW_houdini | c5766304f35e2f3d9e159953aebeea5079e27f90 | [
"MIT"
] | null | null | null | src/SOP_TextureObstacle_Src.cpp | schreckc/FSWW_houdini | c5766304f35e2f3d9e159953aebeea5079e27f90 | [
"MIT"
] | 2 | 2019-08-22T09:56:18.000Z | 2022-02-24T04:58:04.000Z | /*
* MIT License
*
* Copyright (c) 2019 Camille Schreck
*
* 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... | 33.188953 | 135 | 0.649382 | [
"geometry",
"vector"
] |
2fe58e1b3f5ea7cf7c377e0801daa20427328a5f | 56,557 | cpp | C++ | windows/advcore/gdiplus/engine/render/scandci.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | windows/advcore/gdiplus/engine/render/scandci.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | windows/advcore/gdiplus/engine/render/scandci.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /**************************************************************************\
*
* Copyright (c) 1998-2000 Microsoft Corporation
*
* Abstract:
*
* Contains the scan-buffer routines for DCI and GDI.
*
* Plan:
*
* !!! [agodfrey]
* For batching across primitives, the DpContext code
* needs to ... | 29.456771 | 84 | 0.505296 | [
"render",
"vector",
"solid"
] |
2fe59d036c7ade93badbfae6ddb53ff13e41373c | 2,425 | cpp | C++ | DynusTNet/DynusTNet.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | DynusTNet/DynusTNet.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | DynusTNet/DynusTNet.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// DynusTNet.cpp - Convert Network to DynusT XML format
//*********************************************************
#include "DynusTNet.hpp"
char * DynusTNet::TIME_OF_DAY_FORMAT = "TIME_OF_DAY_FORMAT";
char * DynusTNet::SELECT_TIME_PERIOD = "SELECT_TIME_PE... | 26.944444 | 72 | 0.589278 | [
"shape"
] |
2fe910087e994113b9ff3f480fbcd31606d65442 | 700 | cpp | C++ | 11/11.7.cpp | kousikpramanik/C-_Primer_5th | e21fb665f04b26193fc13f9c2c263b782aea3f3c | [
"MIT"
] | null | null | null | 11/11.7.cpp | kousikpramanik/C-_Primer_5th | e21fb665f04b26193fc13f9c2c263b782aea3f3c | [
"MIT"
] | 2 | 2020-08-15T17:33:00.000Z | 2021-07-05T14:18:26.000Z | 11/11.7.cpp | kousikpramanik/C-_Primer_5th | e21fb665f04b26193fc13f9c2c263b782aea3f3c | [
"MIT"
] | 1 | 2020-08-15T17:24:54.000Z | 2020-08-15T17:24:54.000Z | #include <map>
#include <string>
#include <vector>
#include <iostream>
int main() {
std::map<std::string, std::vector<std::string>> families;
for (std::string input1, input2; true;) {
std::cout << "Enter last name of child: ";
if (!std::getline(std::cin, input1)) {
break;
}
... | 26.923077 | 93 | 0.528571 | [
"vector"
] |
2ff560332729a8146bba5bc5e5e1f915c3820714 | 3,718 | cpp | C++ | igen/Config.cpp | unsat/gentree | 694ad9f26ef693c6870935de3988f31130587afc | [
"MIT"
] | 1 | 2021-04-07T01:07:48.000Z | 2021-04-07T01:07:48.000Z | igen/Config.cpp | dynaroars/gentree | 694ad9f26ef693c6870935de3988f31130587afc | [
"MIT"
] | 1 | 2021-01-14T21:27:45.000Z | 2021-01-14T21:29:49.000Z | igen/Config.cpp | dynaroars/gentree | 694ad9f26ef693c6870935de3988f31130587afc | [
"MIT"
] | 1 | 2021-07-12T15:23:53.000Z | 2021-07-12T15:23:53.000Z | //
// Created by KH on 3/5/2020.
//
#include "Config.h"
#include "Domain.h"
#include "CoverageStore.h"
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
namespace igen {
Config::Config(PMutContext ctx, int id)
: Object(move(ctx)), id_(id), values_(size_t(dom()->n_vars()... | 28.381679 | 92 | 0.562937 | [
"object"
] |
2ffc3f626da634c0dcf68eac78a622bbba59df39 | 2,502 | cpp | C++ | algorithms/C++/Implementation/Angry Professor.cpp | Kumbong/hackerrank | 36125f3a17c3e0f1fa889495e8ad33b0aa424552 | [
"MIT"
] | 8 | 2019-09-19T19:38:09.000Z | 2022-02-14T13:59:37.000Z | algorithms/C++/Implementation/Angry Professor.cpp | Kumbong/hacker-rank | 36125f3a17c3e0f1fa889495e8ad33b0aa424552 | [
"MIT"
] | null | null | null | algorithms/C++/Implementation/Angry Professor.cpp | Kumbong/hacker-rank | 36125f3a17c3e0f1fa889495e8ad33b0aa424552 | [
"MIT"
] | 7 | 2019-09-23T13:17:27.000Z | 2022-01-27T18:02:16.000Z | #include <algorithm>
#include <bits/stdc++.h>
#include <cstdio>
using namespace std;
vector<string> split_string(string);
// Complete the cutTheSticks function below.
vector<int> cutTheSticks(vector<int> arr, int n) {
vector<int> num(n);
int shortest=0;
int count=0;
for(int x=0; x<n; x++){
... | 21.20339 | 115 | 0.502398 | [
"vector"
] |
6401435d292484e867f439ac08781f1c847c73be | 6,468 | hpp | C++ | include/anvil (deprecated)/ocl/Kernel.hpp | asmith-git/anvil | 5f31fdeccf70016b8276c261f8ac4f2525dc6f66 | [
"Apache-2.0"
] | null | null | null | include/anvil (deprecated)/ocl/Kernel.hpp | asmith-git/anvil | 5f31fdeccf70016b8276c261f8ac4f2525dc6f66 | [
"Apache-2.0"
] | null | null | null | include/anvil (deprecated)/ocl/Kernel.hpp | asmith-git/anvil | 5f31fdeccf70016b8276c261f8ac4f2525dc6f66 | [
"Apache-2.0"
] | null | null | null | //Copyright 2017 Adam G. Smith
//
//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... | 42.834437 | 128 | 0.677644 | [
"object"
] |
6402711d97e2daa7cf6a368696478ab31ce01ccc | 1,621 | cc | C++ | src/fft_r2c/validation.cc | merijn/host-template | 3e994b1368fc4084d073e7d2cca997803e4cf26f | [
"Apache-2.0"
] | null | null | null | src/fft_r2c/validation.cc | merijn/host-template | 3e994b1368fc4084d073e7d2cca997803e4cf26f | [
"Apache-2.0"
] | 6 | 2019-01-24T12:10:17.000Z | 2020-05-12T14:11:24.000Z | src/fft_r2c/validation.cc | merijn/host-template | 3e994b1368fc4084d073e7d2cca997803e4cf26f | [
"Apache-2.0"
] | 1 | 2019-02-21T09:53:15.000Z | 2019-02-21T09:53:15.000Z | #include <array>
#include <complex>
#include <gsl/span>
#include <fftw3.h>
#include <iostream>
#include <numeric>
#include "validation.hh"
using namespace TripleA2;
// Register<FFTImplementation<Config, complex64, complex64>>
// ("fft", complex_fft);
Errors validate_fft_r2c
( shape_t const &shape
, uns... | 28.946429 | 122 | 0.560148 | [
"shape",
"vector"
] |
6403c682197afec82b416a1ef7aa8a6f6134d55b | 2,901 | cc | C++ | julia_stars.cc | veluca93/fractal_gen | f62177e0c72cab27121e6299068aee04a5f73352 | [
"Apache-2.0"
] | null | null | null | julia_stars.cc | veluca93/fractal_gen | f62177e0c72cab27121e6299068aee04a5f73352 | [
"Apache-2.0"
] | null | null | null | julia_stars.cc | veluca93/fractal_gen | f62177e0c72cab27121e6299068aee04a5f73352 | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <random>
#include <stdio.h>
#include <vector>
#include "common.h"
constexpr size_t kSize = 4096;
constexpr size_t kMaxIters = 64;
int main() {
std::vector<unsigned char> img(kSize * kSize * 4, 255);
std::vector<unsigned char> st... | 33.344828 | 73 | 0.475009 | [
"vector"
] |
64092ebab33323921fa1d9f1f015164e8fddbc0d | 4,013 | cpp | C++ | src/mame/drivers/mt5510.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/mame/drivers/mt5510.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/mame/drivers/mt5510.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:AJR
/***********************************************************************************************************************************
Skeleton driver for Microterm Model 5510 terminal.
*************************************************************************************... | 32.104 | 133 | 0.659357 | [
"model"
] |
640982efdb3c78827fd4e8921d16d49212b1307b | 20,359 | cpp | C++ | 3.7.0/lldb-3.7.0.src/source/DataFormatters/NSArray.cpp | androm3da/clang_sles | 2ba6d0711546ad681883c42dfb8661b842806695 | [
"MIT"
] | 3 | 2016-02-10T14:18:40.000Z | 2018-02-05T03:15:56.000Z | 3.7.0/lldb-3.7.0.src/source/DataFormatters/NSArray.cpp | androm3da/clang_sles | 2ba6d0711546ad681883c42dfb8661b842806695 | [
"MIT"
] | 1 | 2016-02-10T15:40:03.000Z | 2016-02-10T15:40:03.000Z | 3.7.0/lldb-3.7.0.src/source/DataFormatters/NSArray.cpp | androm3da/clang_sles | 2ba6d0711546ad681883c42dfb8661b842806695 | [
"MIT"
] | null | null | null | //===-- NSArray.cpp ---------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 28.796322 | 139 | 0.616091 | [
"object",
"vector"
] |
64190289b2a23885968ef4fd6f707a8a1c6e330c | 595 | hpp | C++ | libs/core/render/include/bksge/core/render/vulkan/detail/fwd/uniform_buffer_fwd.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/core/render/include/bksge/core/render/vulkan/detail/fwd/uniform_buffer_fwd.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/core/render/include/bksge/core/render/vulkan/detail/fwd/uniform_buffer_fwd.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file uniform_buffer_fwd.hpp
*
* @brief UniformBuffer クラスの前方宣言
*
* @author myoukaku
*/
#ifndef BKSGE_CORE_RENDER_VULKAN_DETAIL_FWD_UNIFORM_BUFFER_FWD_HPP
#define BKSGE_CORE_RENDER_VULKAN_DETAIL_FWD_UNIFORM_BUFFER_FWD_HPP
#include <bksge/fnd/memory/unique_ptr.hpp>
namespace bksge
{
names... | 18.030303 | 69 | 0.757983 | [
"render"
] |
6421597fb585247c4f4642e6f3f4fbe6466ee242 | 386 | hpp | C++ | ietf/ydk/models/ietf/ietf_yang_smiv2.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-12-02T05:45:49.000Z | 2022-02-10T19:32:54.000Z | ietf/ydk/models/ietf/ietf_yang_smiv2.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-03-27T15:22:38.000Z | 2019-11-05T08:30:16.000Z | ietf/ydk/models/ietf/ietf_yang_smiv2.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2016-12-02T05:45:52.000Z | 2019-11-07T08:28:17.000Z | #ifndef _IETF_YANG_SMIV2_
#define _IETF_YANG_SMIV2_
#include <memory>
#include <vector>
#include <string>
#include <ydk/types.hpp>
#include <ydk/errors.hpp>
namespace ietf {
namespace ietf_yang_smiv2 {
class ObjectIdentity : public virtual ydk::Identity
{
public:
ObjectIdentity();
~ObjectIdentity... | 13.785714 | 51 | 0.704663 | [
"vector"
] |
6425a75e2cfacc361c414d68f162d61f60aeb562 | 4,660 | hpp | C++ | fractal_gen/cuda_fractals/fractalgen3d.hpp | alrikai/Fractal3d | a90e2c83857c1c3da540fd3fcbc5230999440f9c | [
"MIT"
] | null | null | null | fractal_gen/cuda_fractals/fractalgen3d.hpp | alrikai/Fractal3d | a90e2c83857c1c3da540fd3fcbc5230999440f9c | [
"MIT"
] | null | null | null | fractal_gen/cuda_fractals/fractalgen3d.hpp | alrikai/Fractal3d | a90e2c83857c1c3da540fd3fcbc5230999440f9c | [
"MIT"
] | null | null | null | /* fractalgen3d.hpp -- part of the CUDA fractal3d implementation
*
* Copyright (C) 2015 Alrik Firl
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#ifndef CUDA_FRACTALS_3D_HPP
#define CUDA_FRACTALS_3D_HPP
#include <iostream>
#incl... | 29.871795 | 134 | 0.660086 | [
"vector"
] |
642a1fe9ed6ca9c98cd4f3da2cf1dc9d756a886e | 865 | cxx | C++ | plugins/cmf_tt_gl_font/tt_gl_font_server.cxx | henne90gen/cgv | 31995e9f09d093f9997980093452a5424d0c1319 | [
"BSD-3-Clause"
] | null | null | null | plugins/cmf_tt_gl_font/tt_gl_font_server.cxx | henne90gen/cgv | 31995e9f09d093f9997980093452a5424d0c1319 | [
"BSD-3-Clause"
] | null | null | null | plugins/cmf_tt_gl_font/tt_gl_font_server.cxx | henne90gen/cgv | 31995e9f09d093f9997980093452a5424d0c1319 | [
"BSD-3-Clause"
] | null | null | null | #include "tt_gl_font_server.h"
namespace cgv {
cgv::media::font::font_ptr tt_gl_font_server::find_font(const std::string& font_name)
{
return cgv::find_font(font_name);
}
cgv::media::font::font_ptr tt_gl_font_server::default_font(bool mono_space)
{
cgv::media::font::font_ptr f;
if (f = font_server::default_... | 27.03125 | 101 | 0.734104 | [
"vector"
] |
642e8b8f15ace75468ce4fb2f621940ad9cb0fa4 | 15,283 | cpp | C++ | src/map_main.cpp | rmcolq/pandora | 93c541017a5c1ea45f999f5eabdb58be061711e0 | [
"MIT"
] | 77 | 2018-07-06T00:13:58.000Z | 2021-11-19T03:58:20.000Z | src/map_main.cpp | rmcolq/pandora | 93c541017a5c1ea45f999f5eabdb58be061711e0 | [
"MIT"
] | 215 | 2018-07-09T16:41:55.000Z | 2022-03-29T22:44:36.000Z | src/map_main.cpp | mbhall88/pandora | 16de553795267a55af223748b24510a904ca5ef9 | [
"MIT"
] | 16 | 2018-07-06T13:09:48.000Z | 2022-01-05T15:01:09.000Z | #include "map_main.h"
void setup_map_subcommand(CLI::App& app)
{
auto opt = std::make_shared<MapOptions>();
auto* map_subcmd = app.add_subcommand("map",
"Quasi-map reads to an indexed PRG, infer the sequence of present loci in the "
"sample, and optionally genotype variants.");
map_subcmd
... | 37.642857 | 88 | 0.62599 | [
"vector",
"model",
"transform"
] |
6431d02e0410a9cd2e4b3ef2cd4105b2c469a745 | 37,541 | cpp | C++ | src/Protocol/Play.cpp | NT-Bourgeois-Iridescence-Technologies/PSP-Craft-Server | 35f47ca9d8a5e4f83f94bcce5cecf5c3d4573d87 | [
"MIT"
] | 11 | 2020-05-12T05:46:45.000Z | 2020-07-13T13:11:56.000Z | src/Protocol/Play.cpp | NT-Bourgeois-Iridescence-Technologies/Craft-Server | 35f47ca9d8a5e4f83f94bcce5cecf5c3d4573d87 | [
"MIT"
] | 6 | 2020-05-18T22:34:28.000Z | 2020-07-11T01:17:55.000Z | src/Protocol/Play.cpp | NT-Bourgeois-Iridescence-Technologies/Craft-Server | 35f47ca9d8a5e4f83f94bcce5cecf5c3d4573d87 | [
"MIT"
] | 1 | 2020-07-04T02:19:01.000Z | 2020-07-04T02:19:01.000Z | #include "Play.h"
#include "../Networking/NetworkManager2.h"
#include "../Utilities/Utils.h"
#include <Utilities/JSON.h>
#include "../Utilities/Config.h"
#include "Login.h"
#include "../Internal/Registry/ItemRegistry.h"
#include "../Internal/Registry/BlockRegistry.h"
#include "../Internal/Registry/BlockDataRegistry.h"
... | 30.545972 | 468 | 0.663062 | [
"render",
"object",
"vector",
"solid"
] |
6433a71d28373338319faef69037ca522d1b50be | 1,739 | cc | C++ | src/q_1551_1600/q1572.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | null | null | null | src/q_1551_1600/q1572.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | 2 | 2021-12-15T10:51:15.000Z | 2022-01-26T17:03:16.000Z | src/q_1551_1600/q1572.cc | vNaonLu/daily-leetcode | 2830c2cd413d950abe7c6d9b833c771f784443b0 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <iostream>
#include <vector>
using namespace std;
/**
* This file is generated by leetcode_add.py
*
* 1572.
* Matrix Diagonal Sum
*
* ––––––––––––––––––––––––––––– Description –––––––––––––––––––––––––––––
*
* Given asquarematrix ‘mat’ , return the sum of the matrix
... | 22.881579 | 85 | 0.53594 | [
"vector"
] |
6434e6e32264d2073c20d01dd22babe5b0f7b75c | 6,169 | cpp | C++ | CuteEngine/basicprimitive.cpp | Code0100Food/CuteEngine | 8e8500c6414b94a8be6243a6b05334a27def7516 | [
"MIT"
] | null | null | null | CuteEngine/basicprimitive.cpp | Code0100Food/CuteEngine | 8e8500c6414b94a8be6243a6b05334a27def7516 | [
"MIT"
] | null | null | null | CuteEngine/basicprimitive.cpp | Code0100Food/CuteEngine | 8e8500c6414b94a8be6243a6b05334a27def7516 | [
"MIT"
] | null | null | null | #include "basicprimitive.h"
#include <QVBoxLayout>
#include <QGridLayout>
#include <QLabel>
#include <QComboBox>
#include <iostream>
#include <QPainter>
#include <transform.h>
#include <QSpinBox>
#include <QPushButton>
BasicPrimitive::BasicPrimitive(E_PRIMITIVE_TYPE _type) : primitive_type(_type), line_type(LT_SOLID)
... | 23.279245 | 111 | 0.704652 | [
"transform",
"solid"
] |
643641f327234488ee015d7faf49d77182a5dbce | 18,086 | cxx | C++ | inetcore/mshtml/src/site/base/window2.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetcore/mshtml/src/site/base/window2.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetcore/mshtml/src/site/base/window2.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+---------------------------------------------------------------------------
//
// Microsoft Forms
// Copyright (C) Microsoft Corporation, 1999
//
// File: window2.cxx
//
// Contents: Further implementation of CWindow
//
//--------------------------------------------------------------------------... | 34.318786 | 129 | 0.414962 | [
"object"
] |
644cfb0de3a8b8eac5d297bddce01ee26c1a6830 | 2,472 | cpp | C++ | native/services/sensorservice/SensorRecord.cpp | Keneral/aframeworks | af1d0010bfb88751837fb1afc355705bd8a9ad8b | [
"Unlicense"
] | null | null | null | native/services/sensorservice/SensorRecord.cpp | Keneral/aframeworks | af1d0010bfb88751837fb1afc355705bd8a9ad8b | [
"Unlicense"
] | null | null | null | native/services/sensorservice/SensorRecord.cpp | Keneral/aframeworks | af1d0010bfb88751837fb1afc355705bd8a9ad8b | [
"Unlicense"
] | null | null | null | /*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 30.146341 | 93 | 0.703479 | [
"vector"
] |
64549d1b58ec900acd05f7d8f46d0b60576bb90a | 3,186 | cc | C++ | tensorflow/core/framework/hash_table/hash_table_test.cc | ShaunHeNJU/DeepRec-1 | e280fb19de179f03dc05e1d8e3f4f7459796d96e | [
"Apache-2.0"
] | 292 | 2021-12-24T03:24:33.000Z | 2022-03-31T15:41:05.000Z | tensorflow/core/framework/hash_table/hash_table_test.cc | ShaunHeNJU/DeepRec-1 | e280fb19de179f03dc05e1d8e3f4f7459796d96e | [
"Apache-2.0"
] | 54 | 2021-12-24T06:40:09.000Z | 2022-03-30T07:57:24.000Z | tensorflow/core/framework/hash_table/hash_table_test.cc | ShaunHeNJU/DeepRec-1 | e280fb19de179f03dc05e1d8e3f4f7459796d96e | [
"Apache-2.0"
] | 75 | 2021-12-24T04:48:21.000Z | 2022-03-29T10:13:39.000Z | /* Copyright 2015 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... | 31.235294 | 111 | 0.636849 | [
"vector"
] |
6458f8e52be658c1f602d53e812467a7e75c9c5f | 13,404 | cpp | C++ | lotus/src/physics/Physics.cpp | mayant15/lotus | 6b01b6bc204c66f3f22c5d3ad59dc08312f1ad20 | [
"MIT"
] | 6 | 2020-11-13T14:02:02.000Z | 2021-11-30T14:26:50.000Z | lotus/src/physics/Physics.cpp | sps1112/lotus | 28c048b04a2f30cc1620f7fd10279038c101bd48 | [
"MIT"
] | 1 | 2020-07-16T10:51:56.000Z | 2020-07-16T10:51:56.000Z | lotus/src/physics/Physics.cpp | sps1112/lotus | 28c048b04a2f30cc1620f7fd10279038c101bd48 | [
"MIT"
] | 3 | 2020-07-13T11:36:29.000Z | 2020-10-20T09:13:32.000Z | #include "Physics.h"
#include <lotus/ecs/components/CTransform.h>
#include <lotus/Config.h>
#include <lotus/debug.h>
#define PX_RELEASE(x) if(x) { (x)->release(); (x) = nullptr; }
#define PVD_HOST "127.0.0.1"
namespace Lotus::Physics
{
static Physics::State state {};
static Vector3f toVector3f(... | 38.079545 | 121 | 0.589227 | [
"geometry",
"object",
"shape",
"transform"
] |
645aa8fb098feaadf62af4e40f5a59b6f4afe0e3 | 1,324 | cpp | C++ | leetcode/Reverse Linked List/Accepted (5).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | leetcode/Reverse Linked List/Accepted (5).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | leetcode/Reverse Linked List/Accepted (5).cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 04/13/2021 14:15
* solution_verdict: Accepted language: cpp
* run... | 37.828571 | 111 | 0.365559 | [
"vector"
] |
645ae6c8e3378c87983515af306db2d2ebd3f593 | 3,250 | cpp | C++ | ext/cgt/event/eventhandler.cpp | hmsgit/campvis | d97de6a86323866d6a8f81d2a641e3e0443a6b39 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2018-06-19T06:20:01.000Z | 2021-07-31T05:54:25.000Z | ext/cgt/event/eventhandler.cpp | hmsgit/campvis | d97de6a86323866d6a8f81d2a641e3e0443a6b39 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | ext/cgt/event/eventhandler.cpp | hmsgit/campvis | d97de6a86323866d6a8f81d2a641e3e0443a6b39 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /**********************************************************************
* *
* cgt - CAMP Graphics Toolbox, Copyright (C) 2012-2015 *
* Chair for Computer Aided Medical Procedures *
* Technische Universitaet M... | 38.690476 | 72 | 0.510462 | [
"vector"
] |
6460a1f1cda2c6e5ad6264b5374ae5b2476df2f8 | 7,255 | cpp | C++ | src/Nazara/Graphics/SkinningManager.cpp | AntoineJT/NazaraEngine | e0b05a7e7a2779e20a593b4083b4a881cc57ce14 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | src/Nazara/Graphics/SkinningManager.cpp | AntoineJT/NazaraEngine | e0b05a7e7a2779e20a593b4083b4a881cc57ce14 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | src/Nazara/Graphics/SkinningManager.cpp | AntoineJT/NazaraEngine | e0b05a7e7a2779e20a593b4083b4a881cc57ce14 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | // Copyright (C) 2017 Jérôme Leclercq
// This file is part of the "Nazara Engine - Graphics module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Graphics/SkinningManager.hpp>
#include <Nazara/Core/ErrorFlags.hpp>
#include <Nazara/Core/TaskScheduler.hpp>
#include <Naza... | 27.585551 | 179 | 0.739076 | [
"mesh",
"vector"
] |
64631ac517d55dd686c5e0be4bf359a59215bd35 | 3,807 | cc | C++ | EventWeight/plugins/WeightProdSum.cc | NTUHEP-Tstar/TstarAnalysis | d3bcdf6f0fd19b9a34bbacb1052143856917bea7 | [
"MIT"
] | null | null | null | EventWeight/plugins/WeightProdSum.cc | NTUHEP-Tstar/TstarAnalysis | d3bcdf6f0fd19b9a34bbacb1052143856917bea7 | [
"MIT"
] | null | null | null | EventWeight/plugins/WeightProdSum.cc | NTUHEP-Tstar/TstarAnalysis | d3bcdf6f0fd19b9a34bbacb1052143856917bea7 | [
"MIT"
] | null | null | null | /*******************************************************************************
*
* Filename : WeightProdSum.cc
* Description : Top Pt reweighting algorithm
* Author : Yi-Mu "Enoch" Chen [ ensc@hep1.phys.ntu.edu.tw ]
*
* Storing the product of a list of doubles sources as a single weight,
* also summes al... | 31.991597 | 95 | 0.54321 | [
"vector"
] |
6465cba773f5f3ddb5ff31a8d04ef514af7c1e18 | 1,200 | cpp | C++ | patch.cpp | nmakeenkov/simple-diff | 761459adcd00b545147aac52e088c1dc4ce8ca28 | [
"MIT"
] | null | null | null | patch.cpp | nmakeenkov/simple-diff | 761459adcd00b545147aac52e088c1dc4ce8ca28 | [
"MIT"
] | null | null | null | patch.cpp | nmakeenkov/simple-diff | 761459adcd00b545147aac52e088c1dc4ce8ca28 | [
"MIT"
] | null | null | null | #include "simple_diff.h"
#include <iostream>
#include <fstream>
namespace
{
std::vector<std::byte> readFile(char* path)
{
std::ifstream infile(path, std::ios_base::binary);
infile.seekg(0, std::ios::end);
size_t length = static_cast<size_t>(infile.tellg());
infile.seekg(0, std::ios::beg);
std::ve... | 21.052632 | 75 | 0.645 | [
"vector"
] |
6466cdcab9dbe62bf1bb28ef243a86c90876f689 | 727 | cpp | C++ | cpp/best_line_test.cpp | altayhunter/xkcd-2529 | 8ab52c33135e3cedfc4d3816a5a4eb3a21c8a3bb | [
"MIT"
] | 1 | 2021-11-22T23:17:55.000Z | 2021-11-22T23:17:55.000Z | cpp/best_line_test.cpp | altayhunter/xkcd-2529 | 8ab52c33135e3cedfc4d3816a5a4eb3a21c8a3bb | [
"MIT"
] | null | null | null | cpp/best_line_test.cpp | altayhunter/xkcd-2529 | 8ab52c33135e3cedfc4d3816a5a4eb3a21c8a3bb | [
"MIT"
] | null | null | null | #include "best_line.hpp" // BestLine
#include <cassert> // assert
#include <iostream> // cout
#include <sstream> // stringstream
using namespace std;
int main() {
// Four horizontal, three vertical
{
vector<Point> v = {
Point(0, 1),
Point(1, 1),
Point(1, 0),
Point(2, 1),
Point(1, 2... | 18.175 | 54 | 0.551582 | [
"vector"
] |
646a61543244dd56eb622a7243900ea69edaa4c5 | 2,271 | cpp | C++ | Chapter_6_String_Processing/String_Matching/kattis_geneticsearch.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 2 | 2021-12-29T04:12:59.000Z | 2022-03-30T09:32:19.000Z | Chapter_6_String_Processing/String_Matching/kattis_geneticsearch.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | null | null | null | Chapter_6_String_Processing/String_Matching/kattis_geneticsearch.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 1 | 2022-03-01T06:12:46.000Z | 2022-03-01T06:12:46.000Z | /**Kattis - geneticsearch
* It is probably overkill to use KMP for this string matching problem, but since it is an easy
* problem, its a good cchance to write a proper KMP implementation.
*
* Time: O((n + m) * m), Space: O(m^2 + n)
*/
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,pop... | 25.516854 | 95 | 0.446059 | [
"vector"
] |
646a894beb002e0f65d8bf3fd4dbab0236d04cd4 | 1,565 | hh | C++ | src/robot_model.hh | MaximilienNaveau/dynamic_graph_bridge | 6dafe58f9e72263fd361efa824c26ac49b96276d | [
"BSD-2-Clause"
] | null | null | null | src/robot_model.hh | MaximilienNaveau/dynamic_graph_bridge | 6dafe58f9e72263fd361efa824c26ac49b96276d | [
"BSD-2-Clause"
] | null | null | null | src/robot_model.hh | MaximilienNaveau/dynamic_graph_bridge | 6dafe58f9e72263fd361efa824c26ac49b96276d | [
"BSD-2-Clause"
] | 1 | 2021-11-29T16:46:35.000Z | 2021-11-29T16:46:35.000Z | #ifndef DYNAMIC_GRAPH_BRIDGE_ROBOT_MODEL_HH
# define DYNAMIC_GRAPH_BRIDGE_ROBOT_MODEL_HH
# include <string>
#include <sot-dynamic/dynamic.h>
#include <dynamic-graph/linear-algebra.h>
#include "XmlRpcValue.h"
namespace dynamicgraph
{
class RosRobotModel;
/// \brief This entity load either the current model avail... | 26.525424 | 78 | 0.709904 | [
"vector",
"model"
] |
646e96e7e5c30a620dae44d8424a6ef09237d991 | 502 | cpp | C++ | Competitive Programing Problem Solutions/Virtual Judge/M5/n-sales.cpp | BIJOY-SUST/ACM---ICPC | b382d80d327ddcab15ab15c0e763ccf8a22e0d43 | [
"Apache-2.0"
] | 1 | 2022-02-27T12:07:59.000Z | 2022-02-27T12:07:59.000Z | Competitive Programing Problem Solutions/Virtual Judge/M5/n-sales.cpp | BIJOY-SUST/Competitive-Programming | b382d80d327ddcab15ab15c0e763ccf8a22e0d43 | [
"Apache-2.0"
] | null | null | null | Competitive Programing Problem Solutions/Virtual Judge/M5/n-sales.cpp | BIJOY-SUST/Competitive-Programming | b382d80d327ddcab15ab15c0e763ccf8a22e0d43 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main(){
int T;
cin>>T;
while(T--){
int sum=0, N;
cin>>N;
vector<int>v;
for(int i=0;i<N;i++){
int k;
cin>>k;
v.push_back(k);
vector<int>::iterator low;
lo... | 21.826087 | 52 | 0.394422 | [
"vector"
] |
6473f4389626b641d40bbf2a06ba7fcc78699269 | 5,479 | cpp | C++ | cpp/libcore/test/geometry/test_coordinate.cpp | zeroset/simulator | d25ce20e51e0694f858716c0368d6783453028d3 | [
"MIT"
] | 5 | 2020-10-15T13:19:27.000Z | 2021-02-02T14:15:30.000Z | cpp/libcore/test/geometry/test_coordinate.cpp | zeroset/simulator | d25ce20e51e0694f858716c0368d6783453028d3 | [
"MIT"
] | 42 | 2020-10-17T19:46:57.000Z | 2021-09-07T06:11:00.000Z | cpp/libcore/test/geometry/test_coordinate.cpp | zeroset/simulator | d25ce20e51e0694f858716c0368d6783453028d3 | [
"MIT"
] | 7 | 2020-10-15T13:20:04.000Z | 2021-08-10T10:02:16.000Z | #include "geometry/coordinate.hpp"
#include "geometry/level.hpp"
#include "geometry/spatial_vector.hpp"
#include <gtest/gtest.h>
#include <tuple>
TEST(Coordinate, Constructors)
{
using namespace jps;
std::vector<std::tuple<LengthUnit, LengthUnit>> values{
{10.32423_m, 213_mm},
{-989.43854389_... | 38.314685 | 97 | 0.689359 | [
"geometry",
"vector"
] |
6477bc3bce8be68774db17ce22943281201c94e8 | 18,183 | hpp | C++ | src/test/src/uima/strptrlenpair.hpp | RoboSherlock/uima-uimacpp | 6eb3ce9f9a766dd28ff727feb9463636ef29288d | [
"Apache-2.0"
] | null | null | null | src/test/src/uima/strptrlenpair.hpp | RoboSherlock/uima-uimacpp | 6eb3ce9f9a766dd28ff727feb9463636ef29288d | [
"Apache-2.0"
] | null | null | null | src/test/src/uima/strptrlenpair.hpp | RoboSherlock/uima-uimacpp | 6eb3ce9f9a766dd28ff727feb9463636ef29288d | [
"Apache-2.0"
] | 1 | 2018-05-05T04:13:59.000Z | 2018-05-05T04:13:59.000Z | #ifndef UIMA_STRPTRLENPAIR_HPP
#define UIMA_STRPTRLENPAIR_HPP
/** \file strptrlenpair.hpp .
-----------------------------------------------------------------------------
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with thi... | 34.114447 | 203 | 0.598031 | [
"object",
"vector"
] |
647d9951ec4701af345cddaf6fce3d2154e84194 | 2,303 | hpp | C++ | tup_iter/tup_algo.hpp | Nicholas42/Cpp-Bits-and-Pieces | bb0cd359d07187319aa7717788dfb5445df0c66f | [
"CC0-1.0"
] | null | null | null | tup_iter/tup_algo.hpp | Nicholas42/Cpp-Bits-and-Pieces | bb0cd359d07187319aa7717788dfb5445df0c66f | [
"CC0-1.0"
] | null | null | null | tup_iter/tup_algo.hpp | Nicholas42/Cpp-Bits-and-Pieces | bb0cd359d07187319aa7717788dfb5445df0c66f | [
"CC0-1.0"
] | null | null | null | #ifndef TUP_ALGO_HPP
#define TUP_ALGO_HPP
#include "any_iter.hpp"
#include <optional>
#include <tuple>
#include <type_traits>
namespace tuple_iter {
// Type based find algorithm, only works on the types. Pred should be a class template that explicitly
// converts to bool.
template<template<class> class Pred, class B... | 32.43662 | 104 | 0.646548 | [
"object"
] |
648423db101f1d7832531d4fa3b38745c02c6170 | 8,303 | hpp | C++ | system/jlib/jatomic.hpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | system/jlib/jatomic.hpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | system/jlib/jatomic.hpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... | 37.400901 | 173 | 0.697459 | [
"model"
] |
64899f8fed4bdfeba1b879c69254b758da49d47a | 599 | cpp | C++ | AcWing/LeetCode究极班/72.cpp | LauZyHou/- | 66c047fe68409c73a077eae561cf82b081cf8e45 | [
"MIT"
] | 7 | 2019-02-25T13:15:00.000Z | 2021-12-21T22:08:39.000Z | AcWing/LeetCode究极班/72.cpp | LauZyHou/- | 66c047fe68409c73a077eae561cf82b081cf8e45 | [
"MIT"
] | null | null | null | AcWing/LeetCode究极班/72.cpp | LauZyHou/- | 66c047fe68409c73a077eae561cf82b081cf8e45 | [
"MIT"
] | 1 | 2019-04-03T06:12:46.000Z | 2019-04-03T06:12:46.000Z | class Solution {
public:
int minDistance(string a, string b) {
int n =a.size(), m = b.size();
a = ' ' + a, b = ' ' + b;
vector<vector<int>> f(n + 1, vector<int>(m + 1));
for (int i = 0; i <= n; i ++) f[i][0] = i;
for (int j = 0; j <= m; j ++) f[0][j] = j;
for (int i... | 29.95 | 60 | 0.323873 | [
"vector"
] |
52c0489af73eec801834decea9ab605510a502dd | 7,256 | cc | C++ | include/insnet/loss/loss.cc | ishine/N3LDG-plus | 7fdfd79b75265487df9240176ca7a2b1adbaadab | [
"Apache-2.0"
] | 27 | 2021-06-07T02:25:33.000Z | 2022-03-16T20:41:14.000Z | include/insnet/loss/loss.cc | ishine/N3LDG-plus | 7fdfd79b75265487df9240176ca7a2b1adbaadab | [
"Apache-2.0"
] | null | null | null | include/insnet/loss/loss.cc | ishine/N3LDG-plus | 7fdfd79b75265487df9240176ca7a2b1adbaadab | [
"Apache-2.0"
] | 3 | 2021-07-10T15:11:00.000Z | 2022-03-06T03:10:30.000Z | #include "insnet/loss/loss.h"
using std::vector;
using std::cerr;
using std::cout;
using std::endl;
using std::shared_ptr;
using std::pair;
using std::max_element;
namespace insnet {
namespace {
vector<vector<int>> cpuPredict(const vector<Node *> &nodes, int row) {
vector<vector<int>> result;
result.reserve... | 31.411255 | 99 | 0.574421 | [
"vector",
"transform"
] |
52c4a5ff04a46158e4d3ba05c5446cd08591c3a8 | 24,030 | cc | C++ | src/incremental/hasher.cc | Mikhus/node-murmurhash-native | 3945e1fa07002d06ee9d9bd6b89ef5b3d538ad37 | [
"MIT"
] | 46 | 2015-02-21T00:54:25.000Z | 2021-11-03T01:17:37.000Z | src/incremental/hasher.cc | Mikhus/node-murmurhash-native | 3945e1fa07002d06ee9d9bd6b89ef5b3d538ad37 | [
"MIT"
] | 19 | 2015-09-14T13:24:23.000Z | 2022-02-01T19:36:23.000Z | src/incremental/hasher.cc | Mikhus/node-murmurhash-native | 3945e1fa07002d06ee9d9bd6b89ef5b3d538ad37 | [
"MIT"
] | 8 | 2018-05-24T12:20:44.000Z | 2021-12-10T03:44:25.000Z | #include "static_assert.h"
#include "hasher.h"
#include "murmurhashutils.h"
#include "inputdata.h"
#include "hasher_impl.h"
#include "asyncupdate.h"
namespace MurmurHash {
using v8::Object;
using v8::Int32;
using v8::Uint32;
using v8::Function;
using v8::ObjectTemplate;
using v8::PropertyAttribute;
using... | 36.743119 | 112 | 0.642239 | [
"object"
] |
52d102278550231938551e1df5b04e2111259d88 | 21,212 | cpp | C++ | QtAV-1.9.0-VS2013/src/output/video/XVRenderer.cpp | fuyanzhi1234/DevelopQt | f4590cca8cde5e8b38ee19d97ea82c43257ec1b3 | [
"MIT"
] | null | null | null | QtAV-1.9.0-VS2013/src/output/video/XVRenderer.cpp | fuyanzhi1234/DevelopQt | f4590cca8cde5e8b38ee19d97ea82c43257ec1b3 | [
"MIT"
] | null | null | null | QtAV-1.9.0-VS2013/src/output/video/XVRenderer.cpp | fuyanzhi1234/DevelopQt | f4590cca8cde5e8b38ee19d97ea82c43257ec1b3 | [
"MIT"
] | null | null | null | /******************************************************************************
QtAV: Media play library based on Qt and FFmpeg
Copyright (C) 2012-2015 Wang Bin <wbsecg1@gmail.com>
* This file is part of QtAV
This library is free software; you can redistribute it and/or
modify it under the terms of... | 35.530988 | 167 | 0.617009 | [
"render"
] |
52d2f0ef541ec2cc05cbe438e7943ea32df6b4d9 | 7,940 | cc | C++ | src/tir/usmp/transform/assign_pool_info.cc | yangulei/tvm | d2cbdf381b68134951bfd7525c6a3a67838e5bdf | [
"Apache-2.0"
] | 1 | 2021-12-13T22:07:00.000Z | 2021-12-13T22:07:00.000Z | src/tir/usmp/transform/assign_pool_info.cc | driazati/tvm | b76c817986040dc070d215cf32523d9b2adc8e8b | [
"Apache-2.0"
] | 7 | 2022-02-17T23:04:46.000Z | 2022-03-31T22:22:55.000Z | src/tir/usmp/transform/assign_pool_info.cc | yelite/tvm | 7ae919292d42f5858d4db04533bca67b4b5bb44f | [
"Apache-2.0"
] | 1 | 2022-02-07T06:50:05.000Z | 2022-02-07T06:50:05.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 41.139896 | 100 | 0.702141 | [
"transform"
] |
52d3606a93b3c6b364a9971742f800b2348f1982 | 6,894 | cpp | C++ | src/util/util.cpp | juruen/cavalieri | c3451579193fc8f081b6228ae295b463a0fd23bd | [
"MIT"
] | 54 | 2015-01-14T21:11:56.000Z | 2021-06-27T13:29:40.000Z | src/util/util.cpp | juruen/cavalieri | c3451579193fc8f081b6228ae295b463a0fd23bd | [
"MIT"
] | null | null | null | src/util/util.cpp | juruen/cavalieri | c3451579193fc8f081b6228ae295b463a0fd23bd | [
"MIT"
] | 10 | 2015-07-15T05:09:34.000Z | 2019-01-10T07:32:02.000Z | #include <string>
#include <jsoncpp/json/json.h>
#include <sstream>
#include <algorithm>
#include <glog/logging.h>
#include <openssl/sha.h>
#include <boost/algorithm/string/replace.hpp>
#include <regex>
#include <curl/curl.h>
#include <util/util.h>
bool match_regex(const std::string value, const std::string re) {
re... | 24.360424 | 102 | 0.585582 | [
"vector"
] |
52d4a2cbd0b9bb1a4bbbeb2b66fe85347a2e0fb5 | 38,941 | cpp | C++ | src/BabylonCpp/src/misc/highdynamicrange/pmrem_generator.cpp | sacceus/BabylonCpp | 94669cf7cbe3214ec6e905cbf249fa0c9daf6222 | [
"Apache-2.0"
] | 277 | 2017-05-18T08:27:10.000Z | 2022-03-26T01:31:37.000Z | src/BabylonCpp/src/misc/highdynamicrange/pmrem_generator.cpp | sacceus/BabylonCpp | 94669cf7cbe3214ec6e905cbf249fa0c9daf6222 | [
"Apache-2.0"
] | 77 | 2017-09-03T15:35:02.000Z | 2022-03-28T18:47:20.000Z | src/BabylonCpp/src/misc/highdynamicrange/pmrem_generator.cpp | sacceus/BabylonCpp | 94669cf7cbe3214ec6e905cbf249fa0c9daf6222 | [
"Apache-2.0"
] | 37 | 2017-03-30T03:36:24.000Z | 2022-01-28T08:28:36.000Z | #include <babylon/misc/highdynamicrange/pmrem_generator.h>
#include <cmath>
namespace BABYLON {
template <typename ArrayBufferView>
const std::vector<std::vector<Float32Array>>
PMREMGenerator<ArrayBufferView>::_sgFace2DMapping = {
// XPOS face
{{0, 0, -1}, // u towards negative Z
{0, -1, 0}, // v towa... | 37.371401 | 97 | 0.641894 | [
"vector",
"model",
"transform",
"3d",
"solid"
] |
52ddf41ad0eaa48a81e63a6fe47de97f7794f332 | 13,498 | cpp | C++ | src/option.cpp | johannesgerer/fipster | 10e840e01d196cddef75bf3eeb427f720b3e0ad6 | [
"MIT"
] | 1 | 2020-11-29T14:33:37.000Z | 2020-11-29T14:33:37.000Z | src/option.cpp | johannesgerer/fipster | 10e840e01d196cddef75bf3eeb427f720b3e0ad6 | [
"MIT"
] | null | null | null | src/option.cpp | johannesgerer/fipster | 10e840e01d196cddef75bf3eeb427f720b3e0ad6 | [
"MIT"
] | null | null | null | #include "precompiled.h"
#ifndef AUTOMATIC_PRECOMPILATION
#include <boost/utility/in_place_factory.hpp>
#endif
#include "option.h"
#include "runtime_join_node.h"
#include "global_config.h"
#include "auto_connecting_body.h"
#include "expectation_value_node_factory.h"
#include "finite_difference_weights.h"
#include "PD... | 32.603865 | 97 | 0.65506 | [
"vector"
] |
52de26c36cf462ee2c3c54b290441a708fd5c9df | 1,741 | cpp | C++ | windows/pw6e.official/CPlusPlus/Chapter14/EasyCameraCapture/EasyCameraCapture/MainPage.xaml.cpp | nnaabbcc/exercise | 255fd32b39473b3d0e7702d4b1a8a97bed2a68f8 | [
"MIT"
] | 1 | 2016-11-23T08:18:08.000Z | 2016-11-23T08:18:08.000Z | windows/pw6e.official/CPlusPlus/Chapter14/EasyCameraCapture/EasyCameraCapture/MainPage.xaml.cpp | nnaabbcc/exercise | 255fd32b39473b3d0e7702d4b1a8a97bed2a68f8 | [
"MIT"
] | null | null | null | windows/pw6e.official/CPlusPlus/Chapter14/EasyCameraCapture/EasyCameraCapture/MainPage.xaml.cpp | nnaabbcc/exercise | 255fd32b39473b3d0e7702d4b1a8a97bed2a68f8 | [
"MIT"
] | 1 | 2016-11-23T08:17:34.000Z | 2016-11-23T08:17:34.000Z | //
// MainPage.xaml.cpp
// Implementation of the MainPage class.
//
#include "pch.h"
#include "MainPage.xaml.h"
using namespace EasyCameraCapture;
using namespace Concurrency;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespac... | 32.849057 | 112 | 0.669156 | [
"object"
] |
52e07c451b5446be4e0955c8e6e7951af7e39978 | 5,082 | cpp | C++ | GeoFenix/Graphics/Shading/shader.cpp | TheNachoBIT/GeoFenix-Engine | 9167edb4c44d70204e03f9551a7184184ec659c1 | [
"MIT"
] | 8 | 2020-08-17T22:35:53.000Z | 2021-11-08T09:41:55.000Z | GeoFenix/Graphics/Shading/shader.cpp | TheNachoBIT/GeoFenix-Engine | 9167edb4c44d70204e03f9551a7184184ec659c1 | [
"MIT"
] | null | null | null | GeoFenix/Graphics/Shading/shader.cpp | TheNachoBIT/GeoFenix-Engine | 9167edb4c44d70204e03f9551a7184184ec659c1 | [
"MIT"
] | null | null | null | #include "shader.h"
namespace geofenix
{
namespace graphics
{
Shader::Shader(const char* vertexPathMajor, const char* fragmentPathMajor, const char* vertexPathMinor, const char* fragmentPathMinor)
: vertPath(vertexPathMajor), fragPath(fragmentPathMajor), vertPathMinor(vertexPathMinor), fragPathMinor(fragmentPat... | 27.031915 | 136 | 0.698741 | [
"vector"
] |
52ea0a115205cb28d2c2c78b903118d9610c56fb | 1,259 | cpp | C++ | dsu.cpp | ernest-lu/TEM-PLATES | 95a452eb7e1c3305b51153418dbe267ab652f47f | [
"MIT"
] | null | null | null | dsu.cpp | ernest-lu/TEM-PLATES | 95a452eb7e1c3305b51153418dbe267ab652f47f | [
"MIT"
] | null | null | null | dsu.cpp | ernest-lu/TEM-PLATES | 95a452eb7e1c3305b51153418dbe267ab652f47f | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef long double LD;
typedef pair<LL,LL> pii;
typedef pair<LL,pii> ppi;
typedef pair<pii,pii> ppp;
#define FOR(i, n) for(int i = 1; i<=n; i++)
#define F0R(i, n) for(int i = 0; i<n; i++)
#define mp make_pair
#define pb push_back
#define f first
#defin... | 18.791045 | 164 | 0.55838 | [
"vector"
] |
52ef11c34c0da1b0b37114a02811dfad522c7f3d | 19,486 | cpp | C++ | src/rosbag_wrapper.cpp | cosmicog/matlab_rosbag | e3b41efd3a652ab355ac2320b284679ebce0e3de | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 80 | 2015-02-11T14:04:34.000Z | 2022-01-07T22:08:07.000Z | src/rosbag_wrapper.cpp | cosmicog/matlab_rosbag | e3b41efd3a652ab355ac2320b284679ebce0e3de | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 10 | 2015-03-21T05:15:05.000Z | 2021-12-07T13:16:44.000Z | src/rosbag_wrapper.cpp | cosmicog/matlab_rosbag | e3b41efd3a652ab355ac2320b284679ebce0e3de | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 41 | 2015-03-17T09:24:30.000Z | 2021-07-30T12:55:23.000Z |
#include "rosbag_wrapper.hpp"
#include <wordexp.h>
#include "matlab_util.hpp"
using namespace std;
// Specialization for ros::Time.
// Return a struct with integer 'sec', 'nsec', fields and a double 'time' field.
mxArray* mexWrap(const ros::Time &t) {
const char *fields[] = {"sec", "nsec", "time"};
mxArray *ti... | 33.829861 | 82 | 0.641538 | [
"vector",
"transform"
] |
52f0e5b8785c1ac3aa025c2afdd6b8a449be1acf | 16,069 | cpp | C++ | _test/src/smp_stl.cpp | tenk-a/ccwrap | 9d752761c15cdaaccd84d20cf4d5287844ee8941 | [
"BSL-1.0"
] | null | null | null | _test/src/smp_stl.cpp | tenk-a/ccwrap | 9d752761c15cdaaccd84d20cf4d5287844ee8941 | [
"BSL-1.0"
] | null | null | null | _test/src/smp_stl.cpp | tenk-a/ccwrap | 9d752761c15cdaaccd84d20cf4d5287844ee8941 | [
"BSL-1.0"
] | null | null | null | #define __STDC_LIMIT_MACROS
#include <cstdio>
#include <cstddef>
#include <cstdlib>
#include <cstdarg>
#include <cstring>
#include <cstdint>
#include <cinttypes>
#include <cassert>
#include <cerrno>
#include <climits>
#include <cmath>
#include <cfloat>
#include <cctype>
#include <cmath>
#include <csetj... | 28.092657 | 108 | 0.593939 | [
"vector"
] |
52f3f6fca78189cad2d2516f24b99d29a73c48e2 | 821 | cpp | C++ | GeeksforGeeks/Complete Interview Preparation/Heap/medianOfAStream.cpp | rs-ravi2/Codes | 8fc8bb64b429b3825e52394916c623ffcd0d5e21 | [
"MIT"
] | null | null | null | GeeksforGeeks/Complete Interview Preparation/Heap/medianOfAStream.cpp | rs-ravi2/Codes | 8fc8bb64b429b3825e52394916c623ffcd0d5e21 | [
"MIT"
] | null | null | null | GeeksforGeeks/Complete Interview Preparation/Heap/medianOfAStream.cpp | rs-ravi2/Codes | 8fc8bb64b429b3825e52394916c623ffcd0d5e21 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
void printMedians(int arr[],int n){
priority_queue<int> s;
priority_queue<int, vector<int>,greater<int>> g;
s.push(arr[0]);
cout<<arr[0]<<" ";
for(int i=1;i<n;i++){
int x=arr[i];
if(s.size()>g.size())
{
if(s.top()>x){... | 20.525 | 52 | 0.37637 | [
"vector"
] |
52fb7843244087af6c933c6fccbbb328382e8569 | 9,083 | cc | C++ | source/libtomo/accel/cxx/mlem.cc | WilliamJudge94/tomopy | 301ee367d18ca6d18f2b9b18e2c531c33d4739e4 | [
"BSD-3-Clause"
] | 229 | 2015-02-13T08:10:58.000Z | 2022-03-30T00:19:32.000Z | source/libtomo/accel/cxx/mlem.cc | WilliamJudge94/tomopy | 301ee367d18ca6d18f2b9b18e2c531c33d4739e4 | [
"BSD-3-Clause"
] | 459 | 2015-01-02T16:33:23.000Z | 2022-03-29T05:30:11.000Z | source/libtomo/accel/cxx/mlem.cc | WilliamJudge94/tomopy | 301ee367d18ca6d18f2b9b18e2c531c33d4739e4 | [
"BSD-3-Clause"
] | 272 | 2015-01-11T13:59:58.000Z | 2022-03-06T10:22:15.000Z | // Copyright (c) 2015, UChicago Argonne, LLC. All rights reserved.
// Copyright 2015. UChicago Argonne, LLC. This software was produced
// under U.S. Government contract DE-AC02-06CH11357 for Argonne National
// Laboratory (ANL), which is operated by UChicago Argonne, LLC for the
// U.S. Department of Energy. The ... | 37.688797 | 90 | 0.565672 | [
"object"
] |
5e0a0db9dca40e529176bf231f6a0f4278a2d9e7 | 1,085 | hh | C++ | WorldController/WorldController.hh | MOD-ASL/SimulationPlugins | c0438e4106087868839fd0cb0224a0ace34c0579 | [
"MIT"
] | 4 | 2016-06-10T07:51:30.000Z | 2019-06-19T19:18:36.000Z | WorldController/WorldController.hh | MOD-ASL/SimulationPlugins | c0438e4106087868839fd0cb0224a0ace34c0579 | [
"MIT"
] | 1 | 2015-01-19T21:09:19.000Z | 2015-03-18T19:53:51.000Z | WorldController/WorldController.hh | MOD-ASL/SimulationPlugins | c0438e4106087868839fd0cb0224a0ace34c0579 | [
"MIT"
] | null | null | null | #ifndef _GAZEBO_WORLD_CONTROLLER_HH_
#define _GAZEBO_WORLD_CONTROLLER_HH_
#include "WorldServer.hh"
#define INTIALCONFIGURATION "InitialConfiguration"
namespace gazebo{
/// Acts as the controller for normal simulation
//! Class which inherits WorldServer template
class WorldController : public WorldServer
{
public:... | 28.552632 | 68 | 0.758525 | [
"object"
] |
5e1170894675cea7d27dc46ff0ed36311f004840 | 10,969 | cpp | C++ | thirdparty/moab/src/io/FileTokenizer.cpp | yumin/SMTK | d280f10c5b70953b2a0196f71832955c7fc75e7f | [
"BSD-3-Clause-Clear"
] | null | null | null | thirdparty/moab/src/io/FileTokenizer.cpp | yumin/SMTK | d280f10c5b70953b2a0196f71832955c7fc75e7f | [
"BSD-3-Clause-Clear"
] | 4 | 2016-11-10T15:49:51.000Z | 2017-02-06T23:24:16.000Z | thirdparty/moab/src/io/FileTokenizer.cpp | yumin/SMTK | d280f10c5b70953b2a0196f71832955c7fc75e7f | [
"BSD-3-Clause-Clear"
] | null | null | null | /**
* MOAB, a Mesh-Oriented datABase, is a software component for creating,
* storing and accessing finite element mesh data.
*
* Copyright 2004 Sandia Corporation. Under the terms of Contract
* DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government
* retains certain rights in this software.
*
* This... | 24.267699 | 121 | 0.636156 | [
"mesh"
] |
5e11991beb1ab956a258b16fba771a851d993112 | 741 | cpp | C++ | ADFSetup.cpp | will-henderson/genetic-programming | ecff399429b5e71bdbefb3107adbd2441fe5bc69 | [
"MIT"
] | null | null | null | ADFSetup.cpp | will-henderson/genetic-programming | ecff399429b5e71bdbefb3107adbd2441fe5bc69 | [
"MIT"
] | null | null | null | ADFSetup.cpp | will-henderson/genetic-programming | ecff399429b5e71bdbefb3107adbd2441fe5bc69 | [
"MIT"
] | null | null | null | //
// ADFSetup.cpp
// Genetic Programming
//
// Created by William Henderson on 19/08/2018.
// Copyright © 2018 William Henderson. All rights reserved.
//
#include "ADFSetup.hpp"
ADFSetup::ADFSetup(std::vector<std::type_index> types_, std::vector<std::vector<double> > probabilityfvr_, std::vector<std::vector<int>... | 43.588235 | 394 | 0.769231 | [
"vector"
] |
5e1bbbd2a4f16bd5311392983fd7e0ccbda9520c | 4,015 | cpp | C++ | ArrtModel/ViewModel/BlobExplorer/DirectoryProvider.cpp | AleksandarTomicMs2/azure-remote-rendering-asset-tool | c3962231e02af6ff90c2867f51e7a3b20af8c592 | [
"MIT"
] | 42 | 2020-06-12T19:10:52.000Z | 2022-03-04T02:20:59.000Z | ArrtModel/ViewModel/BlobExplorer/DirectoryProvider.cpp | AleksandarTomicMs2/azure-remote-rendering-asset-tool | c3962231e02af6ff90c2867f51e7a3b20af8c592 | [
"MIT"
] | 91 | 2020-06-12T12:10:46.000Z | 2022-03-02T13:46:00.000Z | ArrtModel/ViewModel/BlobExplorer/DirectoryProvider.cpp | AleksandarTomicMs2/azure-remote-rendering-asset-tool | c3962231e02af6ff90c2867f51e7a3b20af8c592 | [
"MIT"
] | 10 | 2020-07-29T21:19:14.000Z | 2021-09-22T11:48:27.000Z | #include <Model\AzureStorageManager.h>
#include <QObject>
#include <QStandardItemModel>
#include <ViewModel\BlobExplorer\DirectoryProvider.h>
namespace
{
bool isDirectoryValid(const QString& directory)
{
if (!directory.isEmpty())
{
if (*directory.rbegin() != '/')
{
... | 26.414474 | 209 | 0.587049 | [
"model"
] |
5e37bb31310d0c8b950b2055e6fde7932db6cb44 | 831 | hpp | C++ | NEFT/include/NEFT/matrix2.hpp | leopnt/NEFT | bae0dc858a53809dd4ee59a7b4fe78ac5b8e3cf2 | [
"MIT"
] | null | null | null | NEFT/include/NEFT/matrix2.hpp | leopnt/NEFT | bae0dc858a53809dd4ee59a7b4fe78ac5b8e3cf2 | [
"MIT"
] | null | null | null | NEFT/include/NEFT/matrix2.hpp | leopnt/NEFT | bae0dc858a53809dd4ee59a7b4fe78ac5b8e3cf2 | [
"MIT"
] | null | null | null | #ifndef MATRIX2_HPP
#define MATRIX2_HPP
#include <iostream>
#include <iomanip> // for std::cout formatting
#include <vector>
#include "utils.hpp"
class Matrix2
{
private:
int index(const int& i, const int& j) const;
protected:
int m_rows;
int m_cols;
std::vector<float> m_array;
pub... | 21.307692 | 77 | 0.620939 | [
"vector"
] |
5e3d86589110bffc11fddebd5812b24552725005 | 2,543 | cpp | C++ | tools/Vitis-AI-Library/facedetectrecog/test/test_compare_l20.cpp | hito0512/Vitis-AI | 996459fb96cb077ed2f7e789d515893b1cccbc95 | [
"Apache-2.0"
] | 848 | 2019-12-03T00:16:17.000Z | 2022-03-31T22:53:17.000Z | tools/Vitis-AI-Library/facedetectrecog/test/test_compare_l20.cpp | wangyifan778/Vitis-AI | f61061eef7550d98bf02a171604c9a9f283a7c47 | [
"Apache-2.0"
] | 656 | 2019-12-03T00:48:46.000Z | 2022-03-31T18:41:54.000Z | tools/Vitis-AI-Library/facedetectrecog/test/test_compare_l20.cpp | wangyifan778/Vitis-AI | f61061eef7550d98bf02a171604c9a9f283a7c47 | [
"Apache-2.0"
] | 506 | 2019-12-03T00:46:26.000Z | 2022-03-30T10:34:56.000Z | /*
* Copyright 2019 Xilinx Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 28.255556 | 81 | 0.650413 | [
"vector"
] |
1e1505eff12d77450a783b367d60a8a8ed433f42 | 2,696 | cpp | C++ | src/SDLX/Keyboard.cpp | OutOfTheVoid/ProjectRed | 801327283f5a302be130c90d593b39957c84cce5 | [
"MIT"
] | 1 | 2020-06-14T06:14:50.000Z | 2020-06-14T06:14:50.000Z | src/SDLX/Keyboard.cpp | OutOfTheVoid/ProjectRed | 801327283f5a302be130c90d593b39957c84cce5 | [
"MIT"
] | null | null | null | src/SDLX/Keyboard.cpp | OutOfTheVoid/ProjectRed | 801327283f5a302be130c90d593b39957c84cce5 | [
"MIT"
] | null | null | null | #include <SDLX/Keyboard.h>
#include <iostream>
const uint8_t * SDLX::Keyboard :: KeyArray = NULL;
int32_t SDLX::Keyboard :: KeyCount = 0;
std :: vector <SDLX::Keyboard :: ListenerStruct> SDLX::Keyboard :: Listeners;
SDLX :: Mutex * SDLX::Keyboard :: ListenerLock = NULL;
void SDLX::Keyboard :: Init ()
{
KeyArray ... | 20.270677 | 154 | 0.668027 | [
"vector"
] |
1e1ce4b96bf9067cc935f183df1620ea11b2c308 | 3,080 | cpp | C++ | engine/components/Instancer.cpp | TristanFish/SuperBongoEngine | 3a6c67c0aa0c6b4f75e353690016b8f91d813717 | [
"MIT"
] | null | null | null | engine/components/Instancer.cpp | TristanFish/SuperBongoEngine | 3a6c67c0aa0c6b4f75e353690016b8f91d813717 | [
"MIT"
] | null | null | null | engine/components/Instancer.cpp | TristanFish/SuperBongoEngine | 3a6c67c0aa0c6b4f75e353690016b8f91d813717 | [
"MIT"
] | null | null | null | #include "Instancer.h"
#include "math/MMath.h"
#include "components/GameObject.h"
using namespace MATH;
Instancer::~Instancer()
{
modelMatrices.clear();
glDeleteBuffers(1, &instanceBuffer);
}
void Instancer::Init(std::shared_ptr<GameObject> g)
{
gameObject = g;
MeshRenderer* mr = g->GetComponent<MeshRenderer>(... | 32.421053 | 165 | 0.725649 | [
"model",
"transform"
] |
1e219a68b6ad474122d2a66b10f7843781958ec0 | 495 | cpp | C++ | src/ArgParser.cpp | TaiseiIto/GenImg | 85ffb97637904108cfd0a014a9d592d473cb1baa | [
"MIT"
] | null | null | null | src/ArgParser.cpp | TaiseiIto/GenImg | 85ffb97637904108cfd0a014a9d592d473cb1baa | [
"MIT"
] | null | null | null | src/ArgParser.cpp | TaiseiIto/GenImg | 85ffb97637904108cfd0a014a9d592d473cb1baa | [
"MIT"
] | null | null | null | #include <iostream>
#include "ArgParser.hpp"
ArgParser::ArgParser(unsigned int argc, char const * const * const argv) : args(std::vector<std::string>())
{
for(unsigned int argc_i = 0; argc_i < argc; argc_i++)
args.emplace_back(argv[argc_i]);
}
void ArgParser::print_args(void)const
{
for(std::vector<std::string>::... | 30.9375 | 107 | 0.648485 | [
"vector"
] |
1e248c98199e981849769ddd1d6b0532c89ceb34 | 996 | hpp | C++ | c++/src/problem0006.hpp | jamesbarnett/boring-attempts-to-learn-something-of-dubious-econmic-value | 269cdb921c30dbced780e031043fcdb758eb0ada | [
"MIT"
] | null | null | null | c++/src/problem0006.hpp | jamesbarnett/boring-attempts-to-learn-something-of-dubious-econmic-value | 269cdb921c30dbced780e031043fcdb758eb0ada | [
"MIT"
] | null | null | null | c++/src/problem0006.hpp | jamesbarnett/boring-attempts-to-learn-something-of-dubious-econmic-value | 269cdb921c30dbced780e031043fcdb758eb0ada | [
"MIT"
] | null | null | null | /* The sum of the squares of the first ten natural numbers is,
*
* 12 + 22 + ... + 102 = 385
* The square of the sum of the first ten natural numbers is,
*
* (1 + 2 + ... + 10)2 = 552 = 3025
* Hence the difference between the sum of the squares of the first ten natural
* numbers and the square of the sum is 3025... | 28.457143 | 79 | 0.672691 | [
"vector"
] |
1e24c2559f6ba89b45aa2b576c5e3fbd607198d8 | 3,878 | hh | C++ | libsrc/pylith/fekernels/Viscoelasticity.hh | cehanagan/pylith | cf5c1c34040460a82f79b6eb54df894ed1b1ee93 | [
"MIT"
] | 93 | 2015-01-08T16:41:22.000Z | 2022-02-25T13:40:02.000Z | libsrc/pylith/fekernels/Viscoelasticity.hh | sloppyjuicy/pylith | ac2c1587f87e45c948638b19560813d4d5b6a9e3 | [
"MIT"
] | 277 | 2015-02-20T16:27:35.000Z | 2022-03-30T21:13:09.000Z | libsrc/pylith/fekernels/Viscoelasticity.hh | sloppyjuicy/pylith | ac2c1587f87e45c948638b19560813d4d5b6a9e3 | [
"MIT"
] | 71 | 2015-03-24T12:11:08.000Z | 2022-03-03T04:26:02.000Z | /* -*- C++ -*-
*
* ----------------------------------------------------------------------
*
* Brad T. Aagaard, U.S. Geological Survey
* Charles A. Williams, GNS Science
* Matthew G. Knepley, University at Buffalo
*
* This code was developed as part of the Computational Infrastructure
* for Geodynamics (http:*g... | 36.242991 | 98 | 0.673027 | [
"3d"
] |
1e252f933967511a979042f25ca4f2b832966861 | 1,441 | hpp | C++ | Source/Ilum/Graphics/Model/Model.hpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | 11 | 2022-01-09T05:32:56.000Z | 2022-03-28T06:35:16.000Z | Source/Ilum/Graphics/Model/Model.hpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | null | null | null | Source/Ilum/Graphics/Model/Model.hpp | Chaf-Libraries/Ilum | 83d0b7d4f2ba6cc3ba586f5442a09d55b69aedf8 | [
"MIT"
] | 1 | 2021-11-20T15:39:03.000Z | 2021-11-20T15:39:03.000Z | #pragma once
#include "SubMesh.hpp"
#include "Graphics/Buffer/Buffer.h"
#include "Geometry/BoundingBox.hpp"
#include <meshoptimizer.h>
namespace Ilum
{
struct Meshlet
{
meshopt_Bounds bounds;
uint32_t indices_offset;
uint32_t indices_count;
uint32_t vertices_offset; // Global o... | 22.515625 | 65 | 0.697432 | [
"mesh",
"geometry",
"vector",
"model"
] |
1e25475a4bdaf48be95c8ef3bf10c6853859070d | 1,934 | hpp | C++ | src/shaders/shader.hpp | Reshurum/scenegraph-demo | 8ce3b6e7478cdd175017bc42b40d36e2f3219328 | [
"CC0-1.0"
] | 3 | 2017-08-29T05:15:51.000Z | 2021-12-03T17:53:40.000Z | src/shaders/shader.hpp | Reshurum/scenegraph-demo | 8ce3b6e7478cdd175017bc42b40d36e2f3219328 | [
"CC0-1.0"
] | null | null | null | src/shaders/shader.hpp | Reshurum/scenegraph-demo | 8ce3b6e7478cdd175017bc42b40d36e2f3219328 | [
"CC0-1.0"
] | 2 | 2020-03-03T10:47:26.000Z | 2021-12-12T05:25:56.000Z | #pragma once
#include <glm/glm.hpp>
#include <string>
namespace scenegraphdemo {
struct ShaderCompilationError : public std::exception {
const char *what() const throw() {
return "Unable to compile shader";
}
};
struct ShaderLinkingError : public std::exception {
const... | 37.921569 | 89 | 0.66908 | [
"object"
] |
1e274ca3a4f26ff2bfed1581c4f59fbed28ec7ec | 2,391 | cpp | C++ | Christmas_Training_2011/Contest_3/CROSS/cross.cpp | Zubieta/CPP | fb4a3cbf2e4edcc590df15663cd28fb9ecab679c | [
"MIT"
] | 8 | 2017-03-02T07:56:45.000Z | 2021-08-07T20:20:19.000Z | Christmas_Training_2011/Contest_3/CROSS/cross.cpp | zubie7a/Algorithms | fb4a3cbf2e4edcc590df15663cd28fb9ecab679c | [
"MIT"
] | null | null | null | Christmas_Training_2011/Contest_3/CROSS/cross.cpp | zubie7a/Algorithms | fb4a3cbf2e4edcc590df15663cd28fb9ecab679c | [
"MIT"
] | 1 | 2021-08-07T20:20:20.000Z | 2021-08-07T20:20:20.000Z | #include <iostream>
#include <numeric>
#include <fstream>
#include <climits>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <queue>
#include <list>
#include <map>
#include <set>
#include <stack>
#include <deque>
#include <vector>
#include <string>
#include <cstdlib>
#include <cassert>
#include <sstream>... | 15.132911 | 48 | 0.514847 | [
"vector"
] |
1e2e1ab6d483d2cd1b2796791209d5c498f536a1 | 1,704 | cpp | C++ | DWITE/DWITE '11 R2 #4 - Bear Trees.cpp | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | 2 | 2021-04-13T00:19:56.000Z | 2021-04-13T01:19:45.000Z | DWITE/DWITE '11 R2 #4 - Bear Trees.cpp | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | null | null | null | DWITE/DWITE '11 R2 #4 - Bear Trees.cpp | Joon7891/Competitive-Programming | d860b7ad932cd5a6fb91fdc8c53101da57f4a408 | [
"MIT"
] | 1 | 2020-08-26T12:36:08.000Z | 2020-08-26T12:36:08.000Z | #include <bits/stdc++.h>
//#define endl "\n"
#define INF 0x3f3f3f3f
using namespace std;
const int MAXN = 1005;
vector<int> edge[MAXN];
int vis[MAXN];
int adj[MAXN];
int N;
void setup()
{
queue<int> q; q.push(0);
while (!q.empty()) {
int cur = q.front(); q.pop();
vis[cur] = 1;
int c... | 21.037037 | 64 | 0.420188 | [
"vector"
] |
1e2fd5de8e3f54c623eceaba3422082268c56755 | 1,623 | cpp | C++ | source/aufgabe_8.cpp | saJonMR/programmiersprachen-aufgabenblatt_4 | 56ca532aea568938bfea40108126df5cb962fa9a | [
"MIT"
] | null | null | null | source/aufgabe_8.cpp | saJonMR/programmiersprachen-aufgabenblatt_4 | 56ca532aea568938bfea40108126df5cb962fa9a | [
"MIT"
] | null | null | null | source/aufgabe_8.cpp | saJonMR/programmiersprachen-aufgabenblatt_4 | 56ca532aea568938bfea40108126df5cb962fa9a | [
"MIT"
] | null | null | null | #include <cstdlib> // std::rand ()
#include <vector> // std::vector<>
#include <list> // std::list<>
#include <iostream> // std::cout
#include <iterator> // std::ostream_iterator <>
#include <algorithm> // std::reverse, std::generate
int main () {
//Initialize vector with size 10
std::vector... | 37.744186 | 139 | 0.59581 | [
"vector"
] |
1e32f793a001784b825e05c10455757fe3c0da30 | 1,474 | cpp | C++ | src/rotate.cpp | ericpko/computer-graphics-raster-images | 384e1961c84a36ce8822d3ddb9ac7670143da14d | [
"MIT"
] | null | null | null | src/rotate.cpp | ericpko/computer-graphics-raster-images | 384e1961c84a36ce8822d3ddb9ac7670143da14d | [
"MIT"
] | null | null | null | src/rotate.cpp | ericpko/computer-graphics-raster-images | 384e1961c84a36ce8822d3ddb9ac7670143da14d | [
"MIT"
] | null | null | null | #include "rotate.h"
void rotate(const std::vector<unsigned char> &input, const int width,
const int height, const int num_channels,
std::vector<unsigned char> &rotated)
{
rotated.resize(height * width * num_channels);
/////////////////////////////////////////////////////////////////////////... | 34.27907 | 78 | 0.504749 | [
"vector"
] |
1e377515f11e20d41e0e3bd211c1f8d8aa32e113 | 2,871 | cpp | C++ | UVA/450 - Little Black Book.cpp | knroy/Competitive-Programming | 5c03b1f4d15bdd1d4ba30a39464b42a7ded59e29 | [
"Apache-2.0"
] | null | null | null | UVA/450 - Little Black Book.cpp | knroy/Competitive-Programming | 5c03b1f4d15bdd1d4ba30a39464b42a7ded59e29 | [
"Apache-2.0"
] | null | null | null | UVA/450 - Little Black Book.cpp | knroy/Competitive-Programming | 5c03b1f4d15bdd1d4ba30a39464b42a7ded59e29 | [
"Apache-2.0"
] | 1 | 2019-08-07T15:26:19.000Z | 2019-08-07T15:26:19.000Z | #include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmat... | 27.342857 | 92 | 0.419366 | [
"vector"
] |
1e39d62cad8f4a199a872c4ee0c6a06af31fa851 | 489 | hpp | C++ | Sugar/Sources/Handler.hpp | dima424658/pancake | d7d1b804bb162d8b2f4053d5fbc34eb7ddc465c1 | [
"MIT"
] | null | null | null | Sugar/Sources/Handler.hpp | dima424658/pancake | d7d1b804bb162d8b2f4053d5fbc34eb7ddc465c1 | [
"MIT"
] | null | null | null | Sugar/Sources/Handler.hpp | dima424658/pancake | d7d1b804bb162d8b2f4053d5fbc34eb7ddc465c1 | [
"MIT"
] | 1 | 2021-05-21T15:43:31.000Z | 2021-05-21T15:43:31.000Z | #pragma once
#include <vector>
#include <thread>
#include <locale>
#include <functional>
#include <boost/asio.hpp>
#include <boost/locale.hpp>
#include <boost/locale/utf.hpp>
#include "Server/Listener.hpp"
#include "Utility/Settings.hpp"
class Handler
{
public:
Handler();
void Start(std::function<std::string(std... | 16.862069 | 69 | 0.725971 | [
"vector"
] |
1e3cbd7a25f5a50ea0f83210e1f1cd7301929394 | 1,153 | cpp | C++ | tests/Test6_assignment_operator.cpp | martilad/SmallVector | d60f3093a7b218f574d7dcf8c7375f8a7d016654 | [
"MIT"
] | null | null | null | tests/Test6_assignment_operator.cpp | martilad/SmallVector | d60f3093a7b218f574d7dcf8c7375f8a7d016654 | [
"MIT"
] | null | null | null | tests/Test6_assignment_operator.cpp | martilad/SmallVector | d60f3093a7b218f574d7dcf8c7375f8a7d016654 | [
"MIT"
] | null | null | null | #include <cassert>
#include <cstddef>
namespace test6{
class X
{
int i_;
public:
X(int i) : i_(i) { }
X(const X&) = default;
X(X&&) = default;
X& operator=(const X&) = default;
X& operator=(X&&) = default;
operator int() const { return i_; }
};
int main()
{
mpc::small_vector<X, 2> v;
... | 17.738462 | 51 | 0.507372 | [
"vector"
] |
1e3f1be35bbe85b68e96034d166b55d8156f1757 | 19,605 | cpp | C++ | hal/stm32/serial_usb_stm32.cpp | jlecoeur/MAVRIC_Library | 56281851da7541d5c1199490a8621d7f18482be1 | [
"BSD-3-Clause"
] | 12 | 2016-07-12T10:26:47.000Z | 2021-12-14T10:03:11.000Z | hal/stm32/serial_usb_stm32.cpp | jlecoeur/MAVRIC_Library | 56281851da7541d5c1199490a8621d7f18482be1 | [
"BSD-3-Clause"
] | 183 | 2015-01-22T12:35:18.000Z | 2017-06-09T10:11:26.000Z | hal/stm32/serial_usb_stm32.cpp | jlecoeur/MAVRIC_Library | 56281851da7541d5c1199490a8621d7f18482be1 | [
"BSD-3-Clause"
] | 25 | 2015-02-03T15:15:48.000Z | 2021-12-14T08:55:04.000Z | /*******************************************************************************
* Copyright (c) 2009-2016, MAV'RIC Development Team
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. R... | 42.252155 | 148 | 0.406631 | [
"object"
] |
1e4487b253153867915ae9c073d0d38312b3c330 | 36,306 | cpp | C++ | nemux/Cpu.cpp | svenzin/nemux | 087972503c490c8e26f24ff1b39284a4666dc7b7 | [
"MIT"
] | null | null | null | nemux/Cpu.cpp | svenzin/nemux | 087972503c490c8e26f24ff1b39284a4666dc7b7 | [
"MIT"
] | null | null | null | nemux/Cpu.cpp | svenzin/nemux | 087972503c490c8e26f24ff1b39284a4666dc7b7 | [
"MIT"
] | null | null | null | /*
* Cpu.cpp
*
* Created on: 10 Jun 2013
* Author: scorder
*/
#include "Cpu.h"
#include "BitUtil.h"
#include "Ppu.h"
#include "Controllers.h"
#include <iomanip>
#include <sstream>
#include <iostream>
using namespace std;
using namespace Instructions;
using namespace Addressing;
static const bool USE_RP2A... | 33.247253 | 107 | 0.549358 | [
"vector"
] |
1e4d4eec28614a1aabe8d8a81037ca8b8147eb39 | 28,603 | hpp | C++ | include/xframe/xdynamic_variable_impl.hpp | SylvainCorlay/xframe | ceb346b7be28cc0aea2ea91aa99533eed6e99bb3 | [
"BSD-3-Clause"
] | 176 | 2017-09-25T20:21:49.000Z | 2019-10-03T20:09:38.000Z | include/xframe/xdynamic_variable_impl.hpp | vishalbelsare/xframe | 24d65f462cb9345c0814264dc449c5552c2592bb | [
"BSD-3-Clause"
] | 53 | 2017-09-29T06:52:58.000Z | 2019-06-27T08:20:35.000Z | include/xframe/xdynamic_variable_impl.hpp | vishalbelsare/xframe | 24d65f462cb9345c0814264dc449c5552c2592bb | [
"BSD-3-Clause"
] | 20 | 2017-09-25T20:21:50.000Z | 2019-06-29T01:43:02.000Z | /***************************************************************************
* Copyright (c) Johan Mabille, Sylvain Corlay, Wolf Vollprecht and *
* Martin Renou *
* Copyright (c) QuantStack *
* ... | 37.635526 | 148 | 0.650246 | [
"shape",
"vector"
] |
1e531a540c8330e1c2865b9b55d64fceadd13ad6 | 22,518 | cpp | C++ | src/ground_truth_gui/ground_truth_gui.cpp | Pandinosaurus/PointCloudDonkey | 13bc486cf422dbd75cac395cb79503896c583bed | [
"BSD-3-Clause"
] | 10 | 2018-12-21T13:42:45.000Z | 2020-11-09T02:13:29.000Z | src/ground_truth_gui/ground_truth_gui.cpp | Pandinosaurus/PointCloudDonkey | 13bc486cf422dbd75cac395cb79503896c583bed | [
"BSD-3-Clause"
] | null | null | null | src/ground_truth_gui/ground_truth_gui.cpp | Pandinosaurus/PointCloudDonkey | 13bc486cf422dbd75cac395cb79503896c583bed | [
"BSD-3-Clause"
] | 6 | 2019-02-03T12:17:19.000Z | 2019-11-22T01:36:03.000Z | #include "ground_truth_gui.h"
#include "../vtk_utils/render_view.h"
#include "../implicit_shape_model/utils/utils.h"
#include "../implicit_shape_model/utils/normal_orientation.h"
// Qt
#include <QLayout>
#include <QVBoxLayout>
#include <QGridLayout>
#include <QLabel>
#include <QSlider>
#include <QGroupBox>
#include ... | 36.674267 | 181 | 0.624034 | [
"geometry",
"render",
"object",
"model",
"transform"
] |
1e5ac6ed05d790ba0390f34bed6e043589f53f53 | 7,481 | cpp | C++ | src/org/apache/poi/ddf/EscherSpRecord.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ddf/EscherSpRecord.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ddf/EscherSpRecord.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/ddf/EscherSpRecord.java
#include <org/apache/poi/ddf/EscherSpRecord.hpp>
#include <java/io/Serializable.hpp>
#include <java/lang/ArrayStoreException.hpp>
#include <java/lang/Cloneable.hpp>
#include <java/lang/Integer.hpp>
#include <java/lang/NullPointerException.hpp>
#include... | 31.170833 | 130 | 0.691485 | [
"object"
] |
1e5d51be5231dbdaa8a762f9b45832ec9fb7f151 | 89,129 | cpp | C++ | source/Genesis/World/World.cpp | paradoxnj/Genesis3D | 272fc6aa2580de4ee223274ea04a101199c535a1 | [
"Condor-1.1",
"Unlicense"
] | 3 | 2020-04-29T03:17:50.000Z | 2021-05-26T19:53:46.000Z | source/Genesis/World/World.cpp | paradoxnj/Genesis3D | 272fc6aa2580de4ee223274ea04a101199c535a1 | [
"Condor-1.1",
"Unlicense"
] | 1 | 2020-04-29T03:12:47.000Z | 2020-04-29T03:12:47.000Z | source/Genesis/World/World.cpp | paradoxnj/Genesis3D | 272fc6aa2580de4ee223274ea04a101199c535a1 | [
"Condor-1.1",
"Unlicense"
] | null | null | null | /****************************************************************************************/
/* World.c */
/* */
/* Author: John Pollard ... | 27.500463 | 143 | 0.596719 | [
"mesh",
"geometry",
"render",
"object",
"vector",
"model",
"transform",
"solid"
] |
1e6b9cf28808f92daaea3397dd6074f4c15d19e9 | 14,243 | cpp | C++ | libs/quadwild/libs/vcglib/wrap/qt/Outline2ToQImage.cpp | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | null | null | null | libs/quadwild/libs/vcglib/wrap/qt/Outline2ToQImage.cpp | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | null | null | null | libs/quadwild/libs/vcglib/wrap/qt/Outline2ToQImage.cpp | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | null | null | null | #include "Outline2ToQImage.h"
#include <wrap/qt/col_qt_convert.h>
using namespace vcg;
using namespace std;
void Outline2Dumper::rectSetToOutline2Vec(vector< Box2f > &rectVec, vector< vector<Point2f> > &outline2Vec)
{
outline2Vec.clear();
for(size_t i=0;i<rectVec.size();++i)
{
Box2f &b=rectVec[i];
outline2Vec.r... | 31.441501 | 168 | 0.666011 | [
"vector"
] |
1e75d1abe9e78447e646a8366ede1deb4ac26945 | 10,638 | cpp | C++ | chunking.cpp | rgeens/geniatagger | bc71fd5381359b1c86ae906d30cc2e601ef2ee0f | [
"BSD-2-Clause"
] | null | null | null | chunking.cpp | rgeens/geniatagger | bc71fd5381359b1c86ae906d30cc2e601ef2ee0f | [
"BSD-2-Clause"
] | null | null | null | chunking.cpp | rgeens/geniatagger | bc71fd5381359b1c86ae906d30cc2e601ef2ee0f | [
"BSD-2-Clause"
] | 1 | 2021-02-23T07:30:18.000Z | 2021-02-23T07:30:18.000Z | /*
* $Id: bidir.cpp,v 1.1 2005/09/04 13:33:10 tsuruoka Exp $
*/
#include <sys/time.h>
#include <stdio.h>
#include <fstream>
#include <map>
#include <list>
#include <iostream>
#include <sstream>
#include <cmath>
#include <set>
#include "maxent.h"
#include "common.h"
using namespace std;
const int TAG_WINDOW_SIZE = ... | 26.331683 | 132 | 0.495676 | [
"vector",
"model"
] |
1e7e673a4d5e8ed2a980bdd87285b62aaf66d7fe | 13,177 | cpp | C++ | IonEngine/RenderPass.cpp | Xenation/IonEngine | 458d70774209122072eff24d3b567d3d597cd913 | [
"MIT"
] | 4 | 2019-12-17T07:30:54.000Z | 2021-06-01T01:40:28.000Z | IonEngine/RenderPass.cpp | Xenation/IonEngine | 458d70774209122072eff24d3b567d3d597cd913 | [
"MIT"
] | 14 | 2019-11-28T01:09:07.000Z | 2020-02-09T22:27:57.000Z | IonEngine/RenderPass.cpp | Xenation/IonEngine | 458d70774209122072eff24d3b567d3d597cd913 | [
"MIT"
] | null | null | null | #include "RenderPass.h"
#include <gl3w.h>
#include "SpecializedShaderProgram.h"
#include "Material.h"
#include "Renderer.h"
#include "Framebuffer.h"
#include "ShaderProgram.h"
#include "Pipeline.h"
#include "LightManager.h"
#include "Light.h"
#include "UniformBuffer.h"
#include "Transform.h"
#include "ShadowCaster.h"
... | 37.223164 | 353 | 0.748957 | [
"mesh",
"render",
"transform"
] |
1e7f917fdcf6fa71501d48c34a191d422688ad48 | 5,495 | cpp | C++ | source/app/timer_task.cpp | TencentOpen/Pebble | 0f32f94db47b3bc1955ac2843bfa10372eeba1fb | [
"BSD-2-Clause"
] | 233 | 2016-05-12T02:28:44.000Z | 2020-08-24T18:11:49.000Z | source/app/timer_task.cpp | TencentOpen/Pebble | 0f32f94db47b3bc1955ac2843bfa10372eeba1fb | [
"BSD-2-Clause"
] | 1 | 2016-06-07T04:18:16.000Z | 2016-06-07T06:09:08.000Z | source/app/timer_task.cpp | TencentOpen/Pebble | 0f32f94db47b3bc1955ac2843bfa10372eeba1fb | [
"BSD-2-Clause"
] | 116 | 2016-05-24T10:55:49.000Z | 2019-11-24T06:57:08.000Z | /*
* Tencent is pleased to support the open source community by making Pebble available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the Lic... | 28.324742 | 100 | 0.621292 | [
"object",
"vector"
] |
1e82c4c38dda77156d230616ad322fe378323e80 | 1,858 | cpp | C++ | UVa/11577 - Letter Frequency/file.cpp | s1nisteR/CPSolutions | b840f1f1c7283b4bb581d1d5d54c27a828f5601d | [
"MIT"
] | 1 | 2022-02-05T10:54:11.000Z | 2022-02-05T10:54:11.000Z | UVa/11577 - Letter Frequency/file.cpp | s1nisteR/CPSolutions | b840f1f1c7283b4bb581d1d5d54c27a828f5601d | [
"MIT"
] | null | null | null | UVa/11577 - Letter Frequency/file.cpp | s1nisteR/CPSolutions | b840f1f1c7283b4bb581d1d5d54c27a828f5601d | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <sstream>
#include <queue>
#include <deque>
#include <bitset>
#include <iterator>
#include <list>
#include <stack>
#include <map>
#include <set>
#include <functional>
#include <numeric>
#include <utility>
#include <limits>
#include <t... | 18.959184 | 58 | 0.467169 | [
"vector"
] |
1e864ce20b2d041d11cf38c7cd1a958ed93767a1 | 37,080 | cpp | C++ | zombie2/zombie2/source/scenenodecomponentclientzombieone.cpp | DavidCoenFish/ancient-code-0 | 243fb47b9302a77f9b9392b6e3f90bba2ef3c228 | [
"Unlicense"
] | null | null | null | zombie2/zombie2/source/scenenodecomponentclientzombieone.cpp | DavidCoenFish/ancient-code-0 | 243fb47b9302a77f9b9392b6e3f90bba2ef3c228 | [
"Unlicense"
] | null | null | null | zombie2/zombie2/source/scenenodecomponentclientzombieone.cpp | DavidCoenFish/ancient-code-0 | 243fb47b9302a77f9b9392b6e3f90bba2ef3c228 | [
"Unlicense"
] | null | null | null | //
// SceneNodeComponentClientZombieOne.cpp
// Zombie
//
// Created by David Coen on 2011 01 29
// Copyright Pleasure seeking morons 2010. All rights reserved.
//
#include "SceneNodeComponentClientZombieOne.h"
#include "ZombieComponent.h"
#include "ZombieComponentLoad.h"
#include "ZombiePartLoad.h"
#include "Zomb... | 32.640845 | 208 | 0.774569 | [
"mesh",
"vector",
"transform"
] |
1e88cf8664046b22775afddc59c00f0bb876460f | 14,365 | cpp | C++ | deliverable/code/lib/biometrics/background_elimination.cpp | samdubuis/ma-semester-project | 058e7be9782727cb4428772f8384322686e82000 | [
"MIT"
] | null | null | null | deliverable/code/lib/biometrics/background_elimination.cpp | samdubuis/ma-semester-project | 058e7be9782727cb4428772f8384322686e82000 | [
"MIT"
] | null | null | null | deliverable/code/lib/biometrics/background_elimination.cpp | samdubuis/ma-semester-project | 058e7be9782727cb4428772f8384322686e82000 | [
"MIT"
] | null | null | null | #include <iostream>
#include <queue>
#include <vector>
#include <map>
#include <cmath>
#include <chrono>
#include <string>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
//If you have libopencv-dev in version 3.x, compile with
//g++ -std=c++11 background_... | 32.136465 | 149 | 0.599722 | [
"vector"
] |
1e9d2182f3cf5fc0aa4452073897a3aef34e5048 | 482 | cpp | C++ | AtCoder/ABC081/B/abc081_b.cpp | object-oriented-human/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | 1 | 2022-02-21T15:43:01.000Z | 2022-02-21T15:43:01.000Z | AtCoder/ABC081/B/abc081_b.cpp | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | AtCoder/ABC081/B/abc081_b.cpp | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define endl '\n'
#define fastio ios::sync_with_stdio(false); cin.tie(0); cout.tie(0)
signed main() {
fastio;
int n, t=0; cin >> n;
vector<int> A(n);
for (int i = 0; i < n; i++) cin >> A[i];
while (1) {
for (int i = 0; i < n... | 22.952381 | 67 | 0.421162 | [
"vector"
] |
1e9e8a59ffa2be6575fe5971be88f90e0c9c0094 | 3,132 | cc | C++ | ext/candc/src/lib/parser/feature_dep.cc | Shuailong/CCGSupertagging | 891a6a477a4a05daeb847d4a4c33a1bc929d97b2 | [
"MIT"
] | 3 | 2018-11-09T04:33:12.000Z | 2021-06-04T04:23:07.000Z | ext/candc/src/lib/parser/feature_dep.cc | Shuailong/CCGSupertagging | 891a6a477a4a05daeb847d4a4c33a1bc929d97b2 | [
"MIT"
] | 2 | 2017-03-13T02:56:09.000Z | 2019-07-27T02:47:29.000Z | ext/candc/src/lib/parser/feature_dep.cc | Shuailong/CCGSupertagging | 891a6a477a4a05daeb847d4a4c33a1bc929d97b2 | [
"MIT"
] | 1 | 2020-11-25T06:09:33.000Z | 2020-11-25T06:09:33.000Z | // C&C NLP tools
// Copyright (c) Universities of Edinburgh, Oxford and Sydney
// Copyright (c) James R. Curran
//
// This software is covered by a non-commercial use licence.
// See LICENCE.txt for the full text of the licence.
//
// If LICENCE.txt is not included in this distribution
// please email candc@it.usyd.edu... | 23.2 | 101 | 0.657088 | [
"vector"
] |
1ea431b63d627990d7366d94d5c92baca46beb05 | 616 | cpp | C++ | main.cpp | mykolakarpets/week1-converting-program | 1d0999682ef5f9e9162385762a76bd4646211aac | [
"MIT"
] | null | null | null | main.cpp | mykolakarpets/week1-converting-program | 1d0999682ef5f9e9162385762a76bd4646211aac | [
"MIT"
] | null | null | null | main.cpp | mykolakarpets/week1-converting-program | 1d0999682ef5f9e9162385762a76bd4646211aac | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using std::cout;
using std::endl;
using std::vector;
namespace {
constexpr int n_elements = 40;
template <class Summable>
inline void sum(Summable &result, vector<Summable>& data) {
result = 0;
for (Summable elem : data) {
result += elem;
... | 18.117647 | 70 | 0.569805 | [
"vector"
] |
1eaa36503c0474790988c028f99c8662f665422c | 4,522 | cpp | C++ | OGLPG-9th-Edition/OGLPG-9th-Edition/src/03-pointsprites/03-pointsprites.cpp | PablioMartins/graphic-computing | 639c93be07e2ec8a7cf1efdcc41b25a1680c704f | [
"MIT"
] | null | null | null | OGLPG-9th-Edition/OGLPG-9th-Edition/src/03-pointsprites/03-pointsprites.cpp | PablioMartins/graphic-computing | 639c93be07e2ec8a7cf1efdcc41b25a1680c704f | [
"MIT"
] | null | null | null | OGLPG-9th-Edition/OGLPG-9th-Edition/src/03-pointsprites/03-pointsprites.cpp | PablioMartins/graphic-computing | 639c93be07e2ec8a7cf1efdcc41b25a1680c704f | [
"MIT"
] | 1 | 2022-01-31T17:57:59.000Z | 2022-01-31T17:57:59.000Z | /* $URL$
$Rev$
$Author$
$Date$
$Id$
*/
#include "vapp.h"
#include "vutils.h"
#include "vmath.h"
#include "LoadShaders.h"
#include <stdio.h>
using namespace vmath;
#define POINT_COUNT 4
BEGIN_APP_DECLARATION(PointSpriteExample)
// Override functions from base class
virtual void Initialize(con... | 26.138728 | 131 | 0.682441 | [
"model"
] |
1ead57235ae7cfc7dd3990a0804709840cbda84c | 46,958 | cpp | C++ | lib/pokemon_gbaimpl.cpp | ncorgan/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 4 | 2017-06-10T13:21:44.000Z | 2019-10-30T21:20:19.000Z | lib/pokemon_gbaimpl.cpp | PMArkive/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 12 | 2017-04-05T11:13:34.000Z | 2018-06-03T14:31:03.000Z | lib/pokemon_gbaimpl.cpp | PMArkive/libpkmn | c683bf8b85b03eef74a132b5cfdce9be0969d523 | [
"MIT"
] | 2 | 2019-01-22T21:02:31.000Z | 2019-10-30T21:20:20.000Z | /*
* Copyright (c) 2016-2018 Nicholas Corgan (n.corgan@gmail.com)
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/licenses/MIT)
*/
#include "exception_internal.hpp"
#include "utils/misc.hpp"
#include "pokemon_gbaimpl.hpp"
#include "pokemon_gcnimpl.... | 31.515436 | 114 | 0.597917 | [
"vector"
] |
1eaf7115efc2cd2983712c67ffbcb1cfa87f57ea | 1,231 | hpp | C++ | tileMap/tileCamera.hpp | makuto/base2.0 | dbf8ce175a0e00d91a33990041cbc81802e8c309 | [
"CC0-1.0"
] | 1 | 2018-08-26T13:06:43.000Z | 2018-08-26T13:06:43.000Z | tileMap/tileCamera.hpp | makuto/base2.0 | dbf8ce175a0e00d91a33990041cbc81802e8c309 | [
"CC0-1.0"
] | null | null | null | tileMap/tileCamera.hpp | makuto/base2.0 | dbf8ce175a0e00d91a33990041cbc81802e8c309 | [
"CC0-1.0"
] | null | null | null | #ifndef TILE_CAMERA_HPP
#define TILE_CAMERA_HPP
#include "tileMap.hpp"
/* Because I do not want to touch the tile map
* to keep compatibility, this class will handle simpler
* view control of a tile map (static or dynamic)
*
* USAGE:
* --------
* staticTileMap myMap;
* tileCamera myCam;
*
* myCam.setMap(&myMa... | 26.76087 | 83 | 0.711617 | [
"render"
] |
1eaf7c7e74d3c5994c339481fd8c2b0c0ca3b5aa | 2,161 | cpp | C++ | Reflection.Test/StaticGetTests.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | Reflection.Test/StaticGetTests.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | Reflection.Test/StaticGetTests.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2021 DNV AS
//
// 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
#include <gtest/gtest.h>
#include "Reflection/Attributes/DefaultConstructorSelectorAttribute.h"
#include "Reflection/Attributes/Li... | 51.452381 | 188 | 0.71217 | [
"object"
] |
1eb06f6b4b53148f7028855394032df0259e4258 | 1,093 | cpp | C++ | C++/0368-Largest-Divisible-Subset/soln-2.cpp | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | C++/0368-Largest-Divisible-Subset/soln-2.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | C++/0368-Largest-Divisible-Subset/soln-2.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution {
public:
vector<int> largestDivisibleSubset(vector<int>& nums) {
if (nums.empty()) return {};
// 1, 2, 4, 8
const int kN = nums.size();
sort(nums.begin(), nums.end());
vector<vector<int>> dp(kN);
for(int i = 0; i < kN; ++i) dp[i].push_back(nums[i]);
... | 28.763158 | 61 | 0.351327 | [
"vector"
] |
1eb4c431b120b76ae3e3624bf8db6ca2e027523c | 1,165 | hpp | C++ | Include/Aspen/Python/Queue.hpp | andrei-sa/aspen | 6644663fc19a83fba0603dc4bbd6dbe71cfd55aa | [
"Apache-2.0"
] | 2 | 2020-10-16T19:41:19.000Z | 2021-02-01T04:55:51.000Z | Include/Aspen/Python/Queue.hpp | andrei-sa/aspen | 6644663fc19a83fba0603dc4bbd6dbe71cfd55aa | [
"Apache-2.0"
] | 1 | 2020-04-24T18:17:39.000Z | 2020-04-24T18:37:01.000Z | Include/Aspen/Python/Queue.hpp | andrei-sa/aspen | 6644663fc19a83fba0603dc4bbd6dbe71cfd55aa | [
"Apache-2.0"
] | 2 | 2020-04-17T13:24:29.000Z | 2020-04-24T18:12:29.000Z | #ifndef ASPEN_PYTHON_QUEUE_HPP
#define ASPEN_PYTHON_QUEUE_HPP
#include <string>
#include <type_traits>
#include <pybind11/pybind11.h>
#include "Aspen/Queue.hpp"
#include "Aspen/Python/Reactor.hpp"
namespace Aspen {
/** Exports a Queue evaluating to a Python object. */
void export_queue(pybind11::module& module);
... | 29.125 | 74 | 0.655794 | [
"object"
] |
362f9c149ade9c434301b59755267cbd9777062f | 3,483 | cpp | C++ | src/Utils.cpp | LenKagamine/Tap-Tap-Revolution | 091d5c9af98e4b22302e1912992472c0e9d31f3a | [
"MIT"
] | 2 | 2016-06-25T09:02:15.000Z | 2016-06-26T04:26:52.000Z | src/Utils.cpp | LenKagamine/Tap-Tap-Revolution | 091d5c9af98e4b22302e1912992472c0e9d31f3a | [
"MIT"
] | null | null | null | src/Utils.cpp | LenKagamine/Tap-Tap-Revolution | 091d5c9af98e4b22302e1912992472c0e9d31f3a | [
"MIT"
] | 1 | 2021-08-09T15:45:48.000Z | 2021-08-09T15:45:48.000Z | #include <iostream>
#include <vector>
#include <windows.h>
#include <dirent.h>
#include "Utils.h"
void getWindowSize(int& width, int& height)
{
CONSOLE_SCREEN_BUFFER_INFO csbi;
if (GetConsoleScreenBufferInfo(GetStdHandle( STD_OUTPUT_HANDLE ), &csbi))
{
width = csbi.srWindow.Right -csbi.srWindow.... | 27 | 103 | 0.63451 | [
"vector"
] |
363f55882410420ba0ab33363bb26c90b5e90af3 | 9,878 | cc | C++ | src/mynteye/api/processor.cc | neka-nat/MYNT-EYE-S-SDK | c8919116469471280fe05a03c3740f0f8dffc0e2 | [
"Apache-2.0"
] | 1 | 2020-11-22T07:12:35.000Z | 2020-11-22T07:12:35.000Z | src/mynteye/api/processor.cc | neka-nat/MYNT-EYE-S-SDK | c8919116469471280fe05a03c3740f0f8dffc0e2 | [
"Apache-2.0"
] | null | null | null | src/mynteye/api/processor.cc | neka-nat/MYNT-EYE-S-SDK | c8919116469471280fe05a03c3740f0f8dffc0e2 | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 Slightech Co., Ltd. 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 ap... | 26.989071 | 78 | 0.601134 | [
"object",
"vector"
] |
364b35e406a5bdfd31afdc9f790a7e6c8fdc2090 | 44,656 | hpp | C++ | ietf/ydk/models/ietf/iana_if_type.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-12-02T05:45:49.000Z | 2022-02-10T19:32:54.000Z | ietf/ydk/models/ietf/iana_if_type.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-03-27T15:22:38.000Z | 2019-11-05T08:30:16.000Z | ietf/ydk/models/ietf/iana_if_type.hpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2016-12-02T05:45:52.000Z | 2019-11-07T08:28:17.000Z | #ifndef _IANA_IF_TYPE_
#define _IANA_IF_TYPE_
#include <memory>
#include <vector>
#include <string>
#include <ydk/types.hpp>
#include <ydk/errors.hpp>
#include "ietf_interfaces.hpp"
namespace ietf {
namespace iana_if_type {
class IanaInterfaceType : public ietf::ietf_interfaces::InterfaceType, virtual ydk::Identity... | 18.020985 | 105 | 0.643878 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.