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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4970a915caf3273f4d67f0c359945e152fafbb5f | 18,948 | cc | C++ | src/numeric/matrix_test.cc | karaoulanis/nemesis-code | 1ed488b389a552802ea910c9d8045f4cb0e57200 | [
"BSL-1.0"
] | 2 | 2019-07-02T11:59:42.000Z | 2020-08-17T11:51:55.000Z | src/numeric/matrix_test.cc | karaoulanis/nemesis-code | 1ed488b389a552802ea910c9d8045f4cb0e57200 | [
"BSL-1.0"
] | null | null | null | src/numeric/matrix_test.cc | karaoulanis/nemesis-code | 1ed488b389a552802ea910c9d8045f4cb0e57200 | [
"BSL-1.0"
] | null | null | null | /*******************************************************************************
* nemesis. an experimental finite element code. *
* Copyright (C) 2004-2010 F.E.Karaoulanis [http://www.nemesis-project.org] *
* ... | 33.242105 | 80 | 0.521902 | [
"vector"
] |
4973b55392302b7b0eaa13926177d8651627cc0f | 1,103 | cpp | C++ | Dijkstra.cpp | ArthurEmidio/hogprediction | 1fe5bb5718f275fd89ecb32e0e8164d79cbb1802 | [
"Unlicense"
] | 1 | 2021-01-18T10:19:24.000Z | 2021-01-18T10:19:24.000Z | Dijkstra.cpp | ArthurEmidio/hogprediction | 1fe5bb5718f275fd89ecb32e0e8164d79cbb1802 | [
"Unlicense"
] | null | null | null | Dijkstra.cpp | ArthurEmidio/hogprediction | 1fe5bb5718f275fd89ecb32e0e8164d79cbb1802 | [
"Unlicense"
] | null | null | null | //
// Dijkstra.cpp
// BackgroundSubtraction
//
// Created by Arthur Emídio Teixeira Ferreira on 8/2/16.
// Copyright © 2016 Arthur Emídio Teixeira Ferreira. All rights reserved.
//
#include "Dijkstra.h"
bool Dijkstra::computeShortestPath(const Graph &graph)
{
graph.start->distance = 0;
priority_queue... | 27.575 | 113 | 0.579329 | [
"vector"
] |
497699f7ebf1ce3740b25072320dd272d79a9cd2 | 1,372 | hpp | C++ | BiSUNA-U50/src/NN/NNetworkOCL.hpp | rval735/bisunaU50 | b40d903532a8f86f3ebb2cc098486d1eb9c63c5a | [
"Apache-2.0"
] | 8 | 2020-12-20T03:23:17.000Z | 2021-11-30T21:39:59.000Z | BiSUNA-U50/src/NN/NNetworkOCL.hpp | rval735/bisunaU50 | b40d903532a8f86f3ebb2cc098486d1eb9c63c5a | [
"Apache-2.0"
] | 1 | 2021-05-29T18:33:44.000Z | 2021-07-11T13:13:17.000Z | BiSUNA-U50/src/NN/NNetworkOCL.hpp | rval735/bisunaU50 | b40d903532a8f86f3ebb2cc098486d1eb9c63c5a | [
"Apache-2.0"
] | null | null | null | //
// NNetworkOCL.hpp
// BiSUNAOpenCL
//
// Created by RH VT on 11/03/20.
// Copyright © 2020 R. All rights reserved.
//
// 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
// regardin... | 33.463415 | 135 | 0.75656 | [
"vector"
] |
49809eeb17ddd4dde0cece05950c0a6137dbb084 | 1,827 | cpp | C++ | graphs/boruvka.cpp | NavneelSinghal/CodeBook | ff60ace9107dd19ef8ba81e175003f567d2a9070 | [
"CC0-1.0"
] | 17 | 2021-01-25T12:07:17.000Z | 2022-02-26T17:20:31.000Z | graphs/boruvka.cpp | NavneelSinghal/CodeBook | ff60ace9107dd19ef8ba81e175003f567d2a9070 | [
"CC0-1.0"
] | null | null | null | graphs/boruvka.cpp | NavneelSinghal/CodeBook | ff60ace9107dd19ef8ba81e175003f567d2a9070 | [
"CC0-1.0"
] | 4 | 2021-02-28T11:13:44.000Z | 2021-11-20T12:56:20.000Z | struct dsu {
int n;
vector<int> par;
dsu(int _n) : n(_n), par(n, -1) {}
int find_set(int v) {
if (par[v] < 0) return v;
return par[v] = find_set(par[v]);
}
bool union_sets(int a, int b) {
a = find_set(a);
b = find_set(b);
if (a != b) {
if (par[... | 25.375 | 56 | 0.366721 | [
"vector"
] |
21a34bfaf242caf51f529d85032d480756432763 | 1,712 | cpp | C++ | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch13/Exercise13.31.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch13/Exercise13.31.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | CppPrimer/CppPrimer-Exercises/CppPrimer-Ch13/Exercise13.31.cpp | alaxion/Learning | 4b12b1603419252103cd933fdbfc4b2faffb6d00 | [
"MIT"
] | null | null | null | // Exercise13.31.cpp
// Ad
// Give your class a < operator and define a vector of HasPtrs.
// Give that vector some elements and then sort the vector.
// Note when swap is called.
// an exception unresolved
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
// class ========================... | 25.176471 | 97 | 0.489486 | [
"vector"
] |
21aa4a084ffb391bade61f16dce5cbed3f81d233 | 1,040 | hpp | C++ | template/src/Module/Py_Module/Py_Module.hpp | aff3ct/py_aff3ct | 8afb7e6b1db1b621db0ae4153b29a2e848e09fcf | [
"MIT"
] | 15 | 2021-01-24T11:59:04.000Z | 2022-03-23T07:23:44.000Z | template/src/Module/Py_Module/Py_Module.hpp | aff3ct/py_aff3ct | 8afb7e6b1db1b621db0ae4153b29a2e848e09fcf | [
"MIT"
] | 8 | 2021-05-24T18:22:45.000Z | 2022-03-11T09:48:05.000Z | template/src/Module/Py_Module/Py_Module.hpp | aff3ct/py_aff3ct | 8afb7e6b1db1b621db0ae4153b29a2e848e09fcf | [
"MIT"
] | 4 | 2021-01-26T19:18:21.000Z | 2021-12-07T17:02:34.000Z | #ifndef PY_MODULE_HPP_
#define PY_MODULE_HPP_
#include <string>
#include <aff3ct.hpp>
#include <pybind11/pybind11.h>
namespace py = pybind11;
namespace aff3ct
{
namespace module
{
class Py_Module : public Module, public aff3ct::tools::Interface_is_done
{
private:
std::shared_ptr<py::object> child;
protected:
bool... | 20.8 | 72 | 0.745192 | [
"object"
] |
21abe42bcd74ef59212c1558d4c99c0fc0745b95 | 1,519 | cpp | C++ | CS203_Lab/Lab8_C.cpp | zc-BEAR/Projs_repo | bbbcc83992f3e837dfb21615bb8e81d86f397f83 | [
"MIT"
] | null | null | null | CS203_Lab/Lab8_C.cpp | zc-BEAR/Projs_repo | bbbcc83992f3e837dfb21615bb8e81d86f397f83 | [
"MIT"
] | null | null | null | CS203_Lab/Lab8_C.cpp | zc-BEAR/Projs_repo | bbbcc83992f3e837dfb21615bb8e81d86f397f83 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#pragma GCC optimize(2)
using namespace std;
int const MAXN = 8e5+10;
int m,n,u,v,w;
struct Node{
bool run = false;
vector<int> tail;
int cnt = MAXN;
}nodes[MAXN];
int bfs(int node, int target)
{
queue<int> q;
q.push(node);
nodes[node].run = true;
nodes[node].cnt ... | 23.015152 | 80 | 0.474654 | [
"vector"
] |
21aef725d56f167166b5c1d1164b13b6a4370f3f | 632 | hpp | C++ | OpenCV-Test/base_detector.hpp | AndriyBas/diploma2016 | 60b3d1034b229be1bdaf58be247847df2c13e6d7 | [
"MIT"
] | null | null | null | OpenCV-Test/base_detector.hpp | AndriyBas/diploma2016 | 60b3d1034b229be1bdaf58be247847df2c13e6d7 | [
"MIT"
] | null | null | null | OpenCV-Test/base_detector.hpp | AndriyBas/diploma2016 | 60b3d1034b229be1bdaf58be247847df2c13e6d7 | [
"MIT"
] | null | null | null | //
// base_detector.hpp
// OpenCV-Test
//
// Created by Andriy Bas on 6/6/16.
// Copyright © 2016 Andriy Bas. All rights reserved.
//
#ifndef base_detector_hpp
#define base_detector_hpp
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <stdio.h>
class BaseDetector {
... | 19.151515 | 60 | 0.674051 | [
"vector"
] |
21b8fe99cbfb64da293146abd7894b16b3b2f8a9 | 11,248 | cxx | C++ | libsrc/example/main.cxx | anonreclaimer/glWebKit | 7c64ba02a734f2a97e023ad6e5dc9eebd7fadb6c | [
"MIT"
] | 12 | 2018-09-11T10:54:22.000Z | 2021-10-05T14:56:27.000Z | libsrc/example/main.cxx | anonreclaimer/glWebKit | 7c64ba02a734f2a97e023ad6e5dc9eebd7fadb6c | [
"MIT"
] | 6 | 2018-10-11T13:31:13.000Z | 2020-01-29T00:03:40.000Z | libsrc/example/main.cxx | anonreclaimer/glWebKit | 7c64ba02a734f2a97e023ad6e5dc9eebd7fadb6c | [
"MIT"
] | 6 | 2018-09-11T12:53:57.000Z | 2021-10-13T02:22:01.000Z | #include "windows.h"
#define SDL_MAIN_HANDLED
#include "SDL/SDL.h"
#include <GL/glew.h>
#include "glm/glm.hpp"
#include "glm/matrix.hpp"
#include "glm/trigonometric.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include <glm/gtc/type_ptr.hpp>
#include "glWebKit/glWebKit.h"
#include "glUtil.h"
#include <vector>
#in... | 32.793003 | 162 | 0.67532 | [
"vector",
"model"
] |
21b9491922c6df64870987a7e90c49633e9ef5cd | 11,016 | cpp | C++ | platformio-project/src/main.cpp | dalander/hotasx-linkmod | 40a9d5a1cb3a53af8d6a3f06bc02217b0c600dcb | [
"MIT"
] | 2 | 2022-02-21T03:14:51.000Z | 2022-02-23T09:05:17.000Z | platformio-project/src/main.cpp | dalander/hotasx-linkmod | 40a9d5a1cb3a53af8d6a3f06bc02217b0c600dcb | [
"MIT"
] | 6 | 2022-02-18T19:57:26.000Z | 2022-02-28T14:22:20.000Z | platformio-project/src/main.cpp | dalander/hotasx-linkmod | 40a9d5a1cb3a53af8d6a3f06bc02217b0c600dcb | [
"MIT"
] | null | null | null | /*
* main.cpp
* This is a Hotas X Linkmod firmware.
* Planned Features are
* 8 BUttons
* 4 Switches
* minijoystick with separate pushbutton
*
* I tried to keep this file simple as possible, straight forward. There is no goal to write a
* new library or to make it better than another one.
* T... | 33.381818 | 184 | 0.645516 | [
"3d"
] |
21bad55c32b15f752e28c03df4b078a89926e8af | 5,543 | cpp | C++ | Chroma/Chroma/source/Render/shader/Shader.cpp | ChrisTwaitees/ChromaEngine | af00e536731c98ca4b28a980dfd9316d8853414e | [
"MIT"
] | 13 | 2020-01-09T04:58:10.000Z | 2022-01-12T02:22:06.000Z | Chroma/Chroma/source/Render/shader/Shader.cpp | ChrisTwaitees/ChromaEngine | af00e536731c98ca4b28a980dfd9316d8853414e | [
"MIT"
] | null | null | null | Chroma/Chroma/source/Render/shader/Shader.cpp | ChrisTwaitees/ChromaEngine | af00e536731c98ca4b28a980dfd9316d8853414e | [
"MIT"
] | 2 | 2020-11-25T12:16:26.000Z | 2021-05-10T22:17:32.000Z | #include "Shader.h"
#include <scene/Scene.h>
#include <render/Render.h>
namespace Chroma
{
void Shader::CompileAndLink()
{
const char* vShaderCode = vertexCode.c_str();
const char* fShaderCode = fragCode.c_str();
// 2. compile shaders
unsigned int vertex, fragment;
// vertex shader
vertex = glCreateShade... | 27.305419 | 101 | 0.700704 | [
"geometry",
"render"
] |
21c8334b7d444249d76da8421a92a3bc14cca64b | 2,440 | cpp | C++ | IOI/ioi16p5.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | IOI/ioi16p5.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | IOI/ioi16p5.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;bool _=0;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 printn(T n){bool _=0;_=n<0... | 26.521739 | 175 | 0.479918 | [
"vector"
] |
21c93b184afa49f227734b8c3c9725ca2d0bd670 | 63,557 | cpp | C++ | src_main/game/client/cdll_client_int.cpp | ArcadiusGFN/SourceEngine2007 | 51cd6d4f0f9ed901cb9b61456eb621a50ce44f55 | [
"bzip2-1.0.6"
] | 25 | 2018-02-28T15:04:42.000Z | 2021-08-16T03:49:00.000Z | src_main/game/client/cdll_client_int.cpp | ArcadiusGFN/SourceEngine2007 | 51cd6d4f0f9ed901cb9b61456eb621a50ce44f55 | [
"bzip2-1.0.6"
] | 1 | 2019-09-20T11:06:03.000Z | 2019-09-20T11:06:03.000Z | src_main/game/client/cdll_client_int.cpp | ArcadiusGFN/SourceEngine2007 | 51cd6d4f0f9ed901cb9b61456eb621a50ce44f55 | [
"bzip2-1.0.6"
] | 9 | 2019-07-31T11:58:20.000Z | 2021-08-31T11:18:15.000Z | // Copyright © 1996-2018, Valve Corporation, All rights reserved.
#include "cbase.h"
#include <crtmemdebug.h>
#include "FileSystem.h"
#include "appframework/IAppSystemGroup.h"
#include "avi/iavi.h"
#include "bitmap/tgawriter.h"
#include "c_basetempentity.h"
#include "c_rope.h"
#include "c_soundscape.h"
#include "c_te... | 34.863961 | 80 | 0.62654 | [
"render",
"object",
"model",
"3d"
] |
21cec324897bb0aefd492597f9e563f42a66d752 | 557 | cpp | C++ | recursion/special-keyboard.cpp | Nilesh-Das/mustdogfg | bb39fe6eb9dd4964f97a7ab6d4e65e4c3994fc3f | [
"MIT"
] | null | null | null | recursion/special-keyboard.cpp | Nilesh-Das/mustdogfg | bb39fe6eb9dd4964f97a7ab6d4e65e4c3994fc3f | [
"MIT"
] | null | null | null | recursion/special-keyboard.cpp | Nilesh-Das/mustdogfg | bb39fe6eb9dd4964f97a7ab6d4e65e4c3994fc3f | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cassert>
using namespace std;
long optimalKeys(int N) {
if(N <= 6) return N;
vector<long> dp(N + 1);
for(int i = 1; i <= 6; i++) dp[i] = i;
for(int i = 7; i <= N; i++) {
for(int j = i - 3; j >= 1; j--) {
int curr = (i - j - 1) * dp[... | 16.878788 | 43 | 0.416517 | [
"vector"
] |
21d85e4f6b25d175ba3a5cd493676797f7f503cd | 10,569 | cpp | C++ | src/barcodeToPositionMultiPE.cpp | RabbitBio/RabbitBM | c5cc9e6b23cf1046675a07f2d3eb3a4578f1e96b | [
"MIT"
] | null | null | null | src/barcodeToPositionMultiPE.cpp | RabbitBio/RabbitBM | c5cc9e6b23cf1046675a07f2d3eb3a4578f1e96b | [
"MIT"
] | null | null | null | src/barcodeToPositionMultiPE.cpp | RabbitBio/RabbitBM | c5cc9e6b23cf1046675a07f2d3eb3a4578f1e96b | [
"MIT"
] | null | null | null | #include "barcodeToPositionMultiPE.h"
BarcodeToPositionMultiPE::BarcodeToPositionMultiPE(Options* opt)
{
mOptions = opt;
mProduceFinished = false;
mFinishedThreads = 0;
mOutStream = NULL;
mZipFile = NULL;
mWriter1 = NULL;
mWriter2 = NULL;
mUnmappedWriter1 = NULL;
mUnmappedWriter2 = NULL;
bool is... | 28.877049 | 135 | 0.676128 | [
"vector"
] |
21dba5d70f9200a7213508f385aee7b501c580cd | 4,298 | cc | C++ | algorithms/vi-map-helpers/test/test_map_geometry_test.cc | AdronTech/maplab | 1340e01466fc1c02994860723b8117daf9ad226d | [
"Apache-2.0"
] | 1,936 | 2017-11-27T23:11:37.000Z | 2022-03-30T14:24:14.000Z | algorithms/vi-map-helpers/test/test_map_geometry_test.cc | AdronTech/maplab | 1340e01466fc1c02994860723b8117daf9ad226d | [
"Apache-2.0"
] | 353 | 2017-11-29T18:40:39.000Z | 2022-03-30T15:53:46.000Z | algorithms/vi-map-helpers/test/test_map_geometry_test.cc | AdronTech/maplab | 1340e01466fc1c02994860723b8117daf9ad226d | [
"Apache-2.0"
] | 661 | 2017-11-28T07:20:08.000Z | 2022-03-28T08:06:29.000Z | #include <Eigen/Core>
#include <gtest/gtest.h>
#include <maplab-common/test/testing-entrypoint.h>
#include <vi-map/test/vi-map-generator.h>
#include "vi-map-helpers/vi-map-geometry.h"
namespace vi_map_helpers {
template <typename ObjectIdType>
class MapBoundingBoxTest : public ::testing::Test {
protected:
MapBoun... | 29.040541 | 77 | 0.687296 | [
"geometry"
] |
21e04b9dbd550f7057e1a08d8e824e42d02859cf | 6,343 | cpp | C++ | test/Async/HTTP/V1/RequestParser.cpp | kurocha/async-http | 1de2f0754fac1bc326838b05ac720095996e3858 | [
"MIT",
"Unlicense"
] | 2 | 2019-08-08T20:32:18.000Z | 2021-01-30T08:20:15.000Z | test/Async/HTTP/V1/RequestParser.cpp | kurocha/async-http | 1de2f0754fac1bc326838b05ac720095996e3858 | [
"MIT",
"Unlicense"
] | null | null | null | test/Async/HTTP/V1/RequestParser.cpp | kurocha/async-http | 1de2f0754fac1bc326838b05ac720095996e3858 | [
"MIT",
"Unlicense"
] | null | null | null | //
// Test.RequestParser.cpp
// This file is part of the "Async Http" project and released under the MIT License.
//
// Created by Samuel Williams on 11/7/2017.
// Copyright, 2017, by Samuel Williams. All rights reserved.
//
#include <UnitTest/UnitTest.hpp>
#include <Async/HTTP/V1/RequestParser.hpp>
#include <it... | 34.851648 | 146 | 0.616743 | [
"render"
] |
21e2dd5481d4e8f579402c93824b3674101b001d | 4,191 | hpp | C++ | SU2-Quantum/SU2_CFD/include/variables/CMeshBoundVariable.hpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/SU2_CFD/include/variables/CMeshBoundVariable.hpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | null | null | null | SU2-Quantum/SU2_CFD/include/variables/CMeshBoundVariable.hpp | Agony5757/SU2-Quantum | 16e7708371a597511e1242f3a7581e8c4187f5b2 | [
"Apache-2.0"
] | 1 | 2021-12-03T06:40:08.000Z | 2021-12-03T06:40:08.000Z | /*!
* \file CMeshBoundVariable.hpp
* \brief Declaration and inlines of the class
* to define the variables of the mesh movement at the moving boundaries.
* \author Ruben Sanchez
* \version 7.0.6 "Blackbird"
*
* SU2 Project Website: https://su2code.github.io
*
* The SU2 Project is maintained by the SU2 F... | 34.636364 | 113 | 0.714865 | [
"mesh",
"object"
] |
21e7efc1a9a90ac51a16cd7ea68c718feee2dad7 | 3,087 | cpp | C++ | addons/ofxFX/test-shader-load/src/ofApp.cpp | creatologist/openFrameworks0084 | aa74f188f105b62fbcecb7baf2b41d56d97cf7bc | [
"MIT"
] | 220 | 2015-01-19T04:53:59.000Z | 2022-02-19T13:02:03.000Z | addons/ofxFX/test-shader-load/src/ofApp.cpp | creatologist/openFrameworks0084 | aa74f188f105b62fbcecb7baf2b41d56d97cf7bc | [
"MIT"
] | 17 | 2015-01-22T06:44:44.000Z | 2021-06-25T14:18:34.000Z | addons/ofxFX/test-shader-load/src/ofApp.cpp | creatologist/openFrameworks0084 | aa74f188f105b62fbcecb7baf2b41d56d97cf7bc | [
"MIT"
] | 41 | 2015-02-28T14:22:33.000Z | 2021-07-20T20:36:56.000Z | #include "ofApp.h"
#include "ofFbo.h"
void ofApp::setup(){
ofSetLogLevel(OF_LOG_VERBOSE);
ofEnableAlphaBlending();
render_buffer.allocate(width, height, GL_RGBA);
fx_string.setFade(1.0);
fx_string.allocate(width, height);
fx_file.setFade(1.0);
fx_file.allocate(width, height);
}
void of... | 25.097561 | 83 | 0.482345 | [
"render"
] |
21ea1f320e7b09d4ed1433998e17be60a96d23b2 | 6,416 | cpp | C++ | project/OFEC_sc2/core/problem/continuous/continuous.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/core/problem/continuous/continuous.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/core/problem/continuous/continuous.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | #include "continuous.h"
#include "../../../utility/functional.h"
#include "../../algorithm/solution.h"
#include <set>
namespace OFEC {
void Continuous::initialize_() {
Problem::initialize_();
m_num_vars = 0;
m_optima.clear();
m_domain_update = false;
m_domain_area = 0;
m_domain.clear();
m_initial_domain... | 31.145631 | 130 | 0.652276 | [
"vector"
] |
21edcad84d77b84825ff5061dca08cccbb4d4221 | 30,768 | cpp | C++ | Plugins/org.mitk.gui.qt.igtexamples/src/internal/QmitkIGTTrackingLabView.cpp | SVRTK/MITK | 52252d60e42702e292d188e30f6717fe50c23962 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T12:03:32.000Z | 2022-03-03T12:03:32.000Z | Plugins/org.mitk.gui.qt.igtexamples/src/internal/QmitkIGTTrackingLabView.cpp | SVRTK/MITK | 52252d60e42702e292d188e30f6717fe50c23962 | [
"BSD-3-Clause"
] | null | null | null | Plugins/org.mitk.gui.qt.igtexamples/src/internal/QmitkIGTTrackingLabView.cpp | SVRTK/MITK | 52252d60e42702e292d188e30f6717fe50c23962 | [
"BSD-3-Clause"
] | 1 | 2020-11-27T09:41:18.000Z | 2020-11-27T09:41:18.000Z | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | 42.205761 | 209 | 0.628218 | [
"geometry",
"render",
"object",
"vector",
"transform",
"3d"
] |
21ef72590b8a1ffb3a3c077577675a28f4b05e39 | 668 | cpp | C++ | atcoder/abc094/C/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 8 | 2020-12-23T07:54:53.000Z | 2021-11-23T02:46:35.000Z | atcoder/abc094/C/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2020-11-07T13:22:29.000Z | 2020-12-20T12:54:00.000Z | atcoder/abc094/C/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2021-01-16T03:40:10.000Z | 2021-01-16T03:40:10.000Z | #include <bits/stdc++.h>
using namespace std;
int N;
vector<int> X;
vector<int> solve() {
vector<int> ans;
vector<int> Y = X;
sort(Y.begin(), Y.end());
auto ml = Y[(N-1)/2], mr = Y[N/2];
for (int i = 0; i < N; ++i) {
if (X[i] >= mr) {
ans.push_back(ml);
} else {
... | 17.578947 | 38 | 0.437126 | [
"vector"
] |
21f0ad7b866a23a95f5ad9ce9c48e85c85b718e6 | 2,824 | cpp | C++ | planning/motion_planning/local_planner/src/local_planner.cpp | krishna95/freezing-batman | 66f1ac7e73c65162f1593cf440c3363a9e4b1efb | [
"BSD-3-Clause"
] | null | null | null | planning/motion_planning/local_planner/src/local_planner.cpp | krishna95/freezing-batman | 66f1ac7e73c65162f1593cf440c3363a9e4b1efb | [
"BSD-3-Clause"
] | null | null | null | planning/motion_planning/local_planner/src/local_planner.cpp | krishna95/freezing-batman | 66f1ac7e73c65162f1593cf440c3363a9e4b1efb | [
"BSD-3-Clause"
] | null | null | null | //
// local_planner.cpp
// LocalPlanner
//
// Created by Satya Prakash on 28/01/14.
// Copyright (c) 2014 Satya Prakash. All rights reserved.
//
#include "local_planner.hpp"
namespace navigation {
LocalPlanner::LocalPlanner(ros::NodeHandle& nodeHandle) : nh(nodeHandle) {
//Subscriber for World... | 32.837209 | 108 | 0.620042 | [
"vector"
] |
21fb905d5f5871eca6e0d588ef90766ca0ac347d | 1,404 | cpp | C++ | src/com_cli/source/com_cli_3.cpp | goroyabu/anlpy | 2d5d65b898d31d69f990e973cbfdbabd8cb0a15c | [
"MIT"
] | 1 | 2019-04-22T11:17:43.000Z | 2019-04-22T11:17:43.000Z | src/com_cli/source/com_cli_3.cpp | goroyabu/anlpy | 2d5d65b898d31d69f990e973cbfdbabd8cb0a15c | [
"MIT"
] | null | null | null | src/com_cli/source/com_cli_3.cpp | goroyabu/anlpy | 2d5d65b898d31d69f990e973cbfdbabd8cb0a15c | [
"MIT"
] | null | null | null | /**
@file com_cli_3.cpp
@author Goro Yabu
@date 2019/03/18
@version 2.0
**/
#include "com_cli.hpp"
#include "com_cli_private.hpp"
#include <vector>
#include <string>
#include <algorithm>
#include <cstring>
#include <iostream>
int com_cli::cli_error(int level, std::string place, std::string message)
{
... | 23.79661 | 85 | 0.610399 | [
"vector",
"transform"
] |
21fc94940406a5d8bb6267803798e97400604b6c | 1,251 | cpp | C++ | snap/snap-core/triad.cpp | dkw-aau/trident-clone | 18f896db2be05870069ae7b3aa6b4837c74fff0f | [
"Apache-2.0"
] | 20 | 2018-10-17T21:39:40.000Z | 2021-11-10T11:07:23.000Z | snap/snap-core/triad.cpp | dkw-aau/trident-clone | 18f896db2be05870069ae7b3aa6b4837c74fff0f | [
"Apache-2.0"
] | 5 | 2020-07-06T22:50:04.000Z | 2022-03-17T10:34:15.000Z | snap/snap-core/triad.cpp | dkw-aau/trident-clone | 18f896db2be05870069ae7b3aa6b4837c74fff0f | [
"Apache-2.0"
] | 9 | 2018-09-18T11:37:35.000Z | 2022-03-29T07:46:41.000Z | namespace TSnap {
int GetCommon(TIntV& A, TIntV& B) {
int i, j;
int ret = 0;
int alen, blen;
int d;
TInt ai;
alen = A.Len();
blen = B.Len();
i = 0;
j = 0;
if (i >= alen || j >= blen) {
return ret;
}
while (1) {
d = A[i] - B[j];
if (d < 0) {
i++;
if (i >= alen) {
... | 14.215909 | 84 | 0.370104 | [
"vector"
] |
1d025a05fc2c65e088070b1f6dc71be90ecc04b5 | 2,463 | cc | C++ | src/frontend/back_propagation_formula.cc | stanford-stagecast/nnfun | 14300c4320b9b90b4f54d8fc49f66166a490c257 | [
"Apache-2.0"
] | 2 | 2022-01-04T23:08:09.000Z | 2022-01-10T06:57:30.000Z | src/frontend/back_propagation_formula.cc | stanford-stagecast/nnfun | 14300c4320b9b90b4f54d8fc49f66166a490c257 | [
"Apache-2.0"
] | null | null | null | src/frontend/back_propagation_formula.cc | stanford-stagecast/nnfun | 14300c4320b9b90b4f54d8fc49f66166a490c257 | [
"Apache-2.0"
] | null | null | null | #include "exception.hh"
#include "network.hh"
#include "timer.hh"
#include <Eigen/Dense>
#include <iostream>
#include <utility>
#include <sys/resource.h>
#include <sys/time.h>
using namespace std;
using namespace Eigen;
constexpr size_t batch_size = 1;
constexpr size_t input_size = 3;
void program_body()
{
/* re... | 27.366667 | 96 | 0.616322 | [
"vector"
] |
1d091bd29893df19b4b79590a193ff7be1ca4b6b | 9,063 | cc | C++ | core-src/ApplyMove.cc | Quuxplusone/Homeworlds | 8e193a60a0cc59901df1980f3866731d5c1ee15a | [
"BSD-2-Clause"
] | 11 | 2016-07-01T10:51:58.000Z | 2021-03-18T07:59:32.000Z | core-src/ApplyMove.cc | Quuxplusone/Homeworlds | 8e193a60a0cc59901df1980f3866731d5c1ee15a | [
"BSD-2-Clause"
] | 1 | 2017-06-11T04:30:09.000Z | 2017-06-11T04:30:09.000Z | core-src/ApplyMove.cc | Quuxplusone/Homeworlds | 8e193a60a0cc59901df1980f3866731d5c1ee15a | [
"BSD-2-Clause"
] | 3 | 2016-02-27T16:53:28.000Z | 2017-06-10T19:21:24.000Z |
#include <assert.h>
#include <string>
#include "state.h"
#include "ApplyMove.h"
#include "WholeMove.h"
/* Perform the given "move", updating "st" to reflect the new game state.
* If "move" is valid, then return success (and update "st" accordingly).
* If "move" is invalid, then return the reason, and leave garbage ... | 42.952607 | 108 | 0.598036 | [
"vector"
] |
1d0a22aff490b7c185ccc101c11d09c739cdbec4 | 1,730 | hpp | C++ | include/majutsu/record_decl.hpp | freundlich/majutsu | b9e54744f40f6ac35f2027791df52e3084297de7 | [
"BSL-1.0"
] | null | null | null | include/majutsu/record_decl.hpp | freundlich/majutsu | b9e54744f40f6ac35f2027791df52e3084297de7 | [
"BSL-1.0"
] | null | null | null | include/majutsu/record_decl.hpp | freundlich/majutsu | b9e54744f40f6ac35f2027791df52e3084297de7 | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2014 - 2016.
// 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)
#ifndef MAJUTSU_RECORD_DECL_HPP_INCLUDED
#define MAJUTSU_RECORD_DECL_HPP_INCLUDED
#include <majut... | 12.720588 | 61 | 0.676301 | [
"vector"
] |
1d0c3d96ca28ccc21db2acffbbefb131e36956be | 7,533 | cpp | C++ | lib/test/HOMappedGeometry/cubedSphere2DConst.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | null | null | null | lib/test/HOMappedGeometry/cubedSphere2DConst.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | null | null | null | lib/test/HOMappedGeometry/cubedSphere2DConst.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-04-13T19:06:43.000Z | 2021-04-13T19:06:43.000Z | #ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include <fstream>
#include <iostream>
#include "mappedGridIO.H"
#include "ne... | 24.378641 | 95 | 0.564184 | [
"mesh",
"vector"
] |
1d0ce3597910d0d600eded14020c18c8bf5145a5 | 905 | cpp | C++ | Problem401-450/p435_1.cpp | dingqunfei/LeetCode | c74a21ea56ee7b35308d2f387ef24ab29b031e24 | [
"Apache-2.0"
] | null | null | null | Problem401-450/p435_1.cpp | dingqunfei/LeetCode | c74a21ea56ee7b35308d2f387ef24ab29b031e24 | [
"Apache-2.0"
] | null | null | null | Problem401-450/p435_1.cpp | dingqunfei/LeetCode | c74a21ea56ee7b35308d2f387ef24ab29b031e24 | [
"Apache-2.0"
] | null | null | null | /**
* @file p435_1.cpp
* @brief
* @author dingqunfei (dqflying@gmail.com)
* @version 1.0
* @date 2021-07-11
*
* @copyright Copyright (c) 2021 DQFLYING
*
* @par :
*
*
* Date : 2021-07-11
* Version : 1.0
* Author : dqflying
* Lisence :
* Description :
*
*
*
*
*/
class... | 19.673913 | 106 | 0.464088 | [
"vector"
] |
1d10912b6528a7db5cf7eec1df5e8a90d4926ebd | 1,888 | hpp | C++ | include/projections.hpp | mrdakj/Graph | 8671d1ae72ea7857cf5e7d59490a2bf474545329 | [
"Adobe-Glyph"
] | 1 | 2019-03-28T18:48:09.000Z | 2019-03-28T18:48:09.000Z | include/projections.hpp | mrdakj/Graph | 8671d1ae72ea7857cf5e7d59490a2bf474545329 | [
"Adobe-Glyph"
] | 2 | 2018-05-05T18:09:26.000Z | 2018-05-16T22:37:35.000Z | include/projections.hpp | mrdakj/Graph | 8671d1ae72ea7857cf5e7d59490a2bf474545329 | [
"Adobe-Glyph"
] | null | null | null | #ifndef PROJECTIONS_HPP
#define PROJECTIONS_HPP
// copied from https://cukic.co/2019/01/22/projections-without-ranges/
#include <functional>
#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
#include <tuple>
#include <utility>
#include <numeric>
template <typename Function, typename Proj... | 23.308642 | 111 | 0.698093 | [
"vector"
] |
1d20553a4b72e744b94877ddc1101685dc0203f0 | 2,873 | cpp | C++ | pxr/usd/lib/usd/wrapCollectionMembershipQuery.cpp | YuqiaoZhang/USD | bf3a21e6e049486441440ebf8c0387db2538d096 | [
"BSD-2-Clause"
] | 27 | 2017-10-17T02:44:43.000Z | 2021-06-10T08:23:54.000Z | pxr/usd/lib/usd/wrapCollectionMembershipQuery.cpp | YuqiaoZhang/USD | bf3a21e6e049486441440ebf8c0387db2538d096 | [
"BSD-2-Clause"
] | 1 | 2020-07-07T22:39:42.000Z | 2020-07-07T22:39:42.000Z | pxr/usd/lib/usd/wrapCollectionMembershipQuery.cpp | YuqiaoZhang/USD | bf3a21e6e049486441440ebf8c0387db2538d096 | [
"BSD-2-Clause"
] | 7 | 2018-07-11T19:03:59.000Z | 2022-03-24T07:57:06.000Z | //
// Copyright 2019 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | 33.8 | 75 | 0.72259 | [
"object"
] |
1d25067794049a57c7b9c2bc7ea4448713acbdf2 | 29,824 | cpp | C++ | src/core/FantasyAgent.cpp | protoblock/protoblock | 410a4ceb53f997c5970addc13c2bedc7b901ec23 | [
"Apache-2.0"
] | 12 | 2018-04-30T20:41:44.000Z | 2021-11-22T10:48:26.000Z | src/core/FantasyAgent.cpp | jaybny/protoblock | 5edc83436b9e2dcec79d66d1d6fb9ace08f27339 | [
"Apache-2.0"
] | 14 | 2018-07-30T17:56:27.000Z | 2021-09-02T06:03:13.000Z | src/core/FantasyAgent.cpp | jaybny/protoblock | 5edc83436b9e2dcec79d66d1d6fb9ace08f27339 | [
"Apache-2.0"
] | 3 | 2019-03-25T06:05:22.000Z | 2021-11-22T10:49:27.000Z | //
// FanatsyAgent.cpp
// fantasybit
//
// Created by Jay Berg on 4/6/14.
//
//
#include <iostream>
#include <utility>
#include <memory>
#include "FantasyAgent.h"
#include "Commissioner.h"
#include "DataPersist.h"
//#include "optional.hpp"
#include "FantasyName.h"
#include "mnemonic.h"
#include "utils/utils.h"
#in... | 30.186235 | 135 | 0.605117 | [
"vector"
] |
918e96f0bd730e5a781a708c5010d52ef03211f8 | 52,854 | cpp | C++ | src/Domination/Integration/PeopleEditor.cpp | Vladimir-Lin/QtDomination | b769d691e6c0fbb18083f7a3d09d2202d588a35c | [
"MIT"
] | null | null | null | src/Domination/Integration/PeopleEditor.cpp | Vladimir-Lin/QtDomination | b769d691e6c0fbb18083f7a3d09d2202d588a35c | [
"MIT"
] | null | null | null | src/Domination/Integration/PeopleEditor.cpp | Vladimir-Lin/QtDomination | b769d691e6c0fbb18083f7a3d09d2202d588a35c | [
"MIT"
] | null | null | null | #include <domination.h>
#include "ui_PeopleEditor.h"
N::PeopleEditor:: PeopleEditor ( QWidget * parent,Plan * p )
: StackedWidget ( parent, p )
, Object ( 0 , Types::People )
, GroupItems ( p )
... | 53.387879 | 78 | 0.272449 | [
"object"
] |
91940822a29dd4cb44362fcb8b60b4fccdd441d6 | 2,993 | cpp | C++ | src/Cello/control_compute.cpp | ThomasBolden/cello-mod | 68431de28a3575c95bb40c47fce7a352c6b92145 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/Cello/control_compute.cpp | ThomasBolden/cello-mod | 68431de28a3575c95bb40c47fce7a352c6b92145 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | src/Cello/control_compute.cpp | ThomasBolden/cello-mod | 68431de28a3575c95bb40c47fce7a352c6b92145 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | // See LICENSE_CELLO file for license and copyright information
/// @file control_compute.cpp
/// @author James Bordner (jobordner@ucsd.edu)
/// @date 2011-09-01
/// @brief Functions implementing CHARM++ compute-related functions
/// @ingroup Control
#include "simulation.hpp"
#include "mesh.hpp"
#includ... | 21.378571 | 77 | 0.564317 | [
"mesh"
] |
9198f9b3d16069ca05fb5da75f81e934e605d64d | 665 | cpp | C++ | AcWing/LeetCode究极班/528.cpp | LauZyHou/- | 66c047fe68409c73a077eae561cf82b081cf8e45 | [
"MIT"
] | 7 | 2019-02-25T13:15:00.000Z | 2021-12-21T22:08:39.000Z | AcWing/LeetCode究极班/528.cpp | LauZyHou/- | 66c047fe68409c73a077eae561cf82b081cf8e45 | [
"MIT"
] | null | null | null | AcWing/LeetCode究极班/528.cpp | LauZyHou/- | 66c047fe68409c73a077eae561cf82b081cf8e45 | [
"MIT"
] | 1 | 2019-04-03T06:12:46.000Z | 2019-04-03T06:12:46.000Z | class Solution {
public:
vector<int> s;
int n;
Solution(vector<int>& w) {
n = w.size();
s.resize(n + 1);
for (int i = 1; i <= n; i ++ ) s[i] = s[i - 1] + w[i - 1];
}
int pickIndex() {
// 随机产生1到sum的数
int k = rand() % s.back() + 1;
// 二分去找第一个>=k的那个... | 22.166667 | 66 | 0.430075 | [
"object",
"vector"
] |
919acfe9c6d6eca50cb9a4a040a83efe772a32dd | 1,884 | cpp | C++ | src/Werk/Commands/CommandManager.cpp | mish24/werk | 2f8822842fb8f68a4402775d1d3b41021b5a9945 | [
"MIT"
] | null | null | null | src/Werk/Commands/CommandManager.cpp | mish24/werk | 2f8822842fb8f68a4402775d1d3b41021b5a9945 | [
"MIT"
] | null | null | null | src/Werk/Commands/CommandManager.cpp | mish24/werk | 2f8822842fb8f68a4402775d1d3b41021b5a9945 | [
"MIT"
] | null | null | null | #include "CommandManager.hpp"
#include "Command.hpp"
#include <boost/algorithm/string.hpp>
namespace Werk {
bool CommandManager::execute(const std::string& commandLine) {
std::vector<std::string> arguments;
boost::split(arguments, commandLine, boost::is_any_of(" \t"));
_commandHistory.emplace_back(_clock.time... | 34.888889 | 107 | 0.705414 | [
"vector"
] |
91ac538cd67e96510cce083aef647402db237539 | 6,129 | hpp | C++ | include/SpeedwireSocketFactory.hpp | RalfOGit/speedwire-lib | 226be6f2d7ec82c9b7e095d2f1c2cd12644f0fd1 | [
"MIT"
] | 6 | 2021-03-28T11:11:26.000Z | 2022-01-26T11:26:20.000Z | include/SpeedwireSocketFactory.hpp | RalfOGit/speedwire-lib | 226be6f2d7ec82c9b7e095d2f1c2cd12644f0fd1 | [
"MIT"
] | 2 | 2021-04-25T10:13:47.000Z | 2021-12-24T11:25:41.000Z | include/SpeedwireSocketFactory.hpp | RalfOGit/speedwire-lib | 226be6f2d7ec82c9b7e095d2f1c2cd12644f0fd1 | [
"MIT"
] | 1 | 2021-04-24T06:43:30.000Z | 2021-04-24T06:43:30.000Z | #ifndef __LIBSPEEDWIRE_SPEEDWIRESOCKETFACTORY_HPP__
#define __LIBSPEEDWIRE_SPEEDWIRESOCKETFACTORY_HPP__
#include <string>
#include <vector>
#include <LocalHost.hpp>
#include <SpeedwireSocket.hpp>
namespace libspeedwire {
/**
* Class implementing a platform neutral factory for sockets.
* T... | 53.763158 | 183 | 0.668788 | [
"object",
"vector"
] |
91ad3374c8d836f6ed366a4424be5536ed79961e | 994 | cpp | C++ | C++/118.pascals-triangle.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | 1 | 2018-03-06T05:07:22.000Z | 2018-03-06T05:07:22.000Z | C++/118.pascals-triangle.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | 1 | 2021-12-24T16:41:02.000Z | 2021-12-24T16:41:02.000Z | C++/118.pascals-triangle.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<int>> generate(int numRows) {
// version 1
vector<vector<int>> res;
if (numRows == 0) {
return res;
}
res.push_back(vector<int>{1});
for (int i = 2; i <= numRows; i++) {
vector<int> tmp;
... | 27.611111 | 100 | 0.38833 | [
"vector"
] |
91af3ff3c4219c525c57597a066b4ca1430f4839 | 20,532 | cpp | C++ | Source/AllProjects/Drivers/ZWave/ZWaveUSB3/Shared/ZWaveUSB3Sh_Unit_MChCombo.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/Drivers/ZWave/ZWaveUSB3/Shared/ZWaveUSB3Sh_Unit_MChCombo.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/Drivers/ZWave/ZWaveUSB3/Shared/ZWaveUSB3Sh_Unit_MChCombo.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: ZWaveUSB3Sh_MultiChCombo.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 11/01/2018
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https:... | 31.734158 | 108 | 0.56916 | [
"object",
"model"
] |
91b03d07b10c3ce6349a92e2215402a098d1a3c6 | 4,216 | cpp | C++ | tests/unit/testtutorial.cpp | aaronkollasch/mozilla-vpn-client | e5ae002016c5b540eca4e46d7f4441723581fe29 | [
"Apache-2.0"
] | null | null | null | tests/unit/testtutorial.cpp | aaronkollasch/mozilla-vpn-client | e5ae002016c5b540eca4e46d7f4441723581fe29 | [
"Apache-2.0"
] | null | null | null | tests/unit/testtutorial.cpp | aaronkollasch/mozilla-vpn-client | e5ae002016c5b540eca4e46d7f4441723581fe29 | [
"Apache-2.0"
] | null | null | null | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "testtutorial.h"
#include "../../src/models/tutorial.h"
#include "../../src/models/tutorialmodel.h"
#incl... | 30.773723 | 80 | 0.645636 | [
"object",
"model"
] |
91bfbb5f8d78319502a3535c219eaed5fe7e22ea | 4,904 | cpp | C++ | src/TACSAuxElements.cpp | rsanfer/tacs | 32cf876d60279d5a448f91ac9a0b35b056865e5d | [
"Apache-2.0"
] | 1 | 2021-02-17T11:56:46.000Z | 2021-02-17T11:56:46.000Z | src/TACSAuxElements.cpp | rsanfer/tacs | 32cf876d60279d5a448f91ac9a0b35b056865e5d | [
"Apache-2.0"
] | 2 | 2020-06-29T12:42:37.000Z | 2020-10-14T18:03:37.000Z | src/TACSAuxElements.cpp | rsanfer/tacs | 32cf876d60279d5a448f91ac9a0b35b056865e5d | [
"Apache-2.0"
] | 5 | 2020-04-27T20:04:34.000Z | 2021-07-15T13:04:15.000Z | /*
This file is part of TACS: The Toolkit for the Analysis of Composite
Structures, a parallel finite-element code for structural and
multidisciplinary design optimization.
Copyright (C) 2010 University of Toronto
Copyright (C) 2012 University of Michigan
Copyright (C) 2014 Georgia Tech Research Corporatio... | 28.847059 | 74 | 0.694535 | [
"object"
] |
91bfe40dc4f3843862d0e012aeedf8236d4c35b3 | 4,118 | hpp | C++ | ThirdParty-mod/java2cpp/java/lang/Number.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | 1 | 2019-04-03T01:53:28.000Z | 2019-04-03T01:53:28.000Z | ThirdParty-mod/java2cpp/java/lang/Number.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | ThirdParty-mod/java2cpp/java/lang/Number.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | /*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: java.lang.Number
================================================================================*/
#ifndef J2CPP_INCLUDE_IMPLEMENTATION
... | 23.666667 | 83 | 0.671442 | [
"object"
] |
91cf803b9e56c95b2010cfba469d84cd9dfa0f50 | 766 | cpp | C++ | platforms/linux/src/Application/Packets/Commands/GetControllerInfo/GetControllerInfoRequest.cpp | iotile/baBLE-linux | faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db | [
"MIT"
] | 13 | 2018-07-04T16:35:37.000Z | 2021-03-03T10:41:07.000Z | platforms/linux/src/Application/Packets/Commands/GetControllerInfo/GetControllerInfoRequest.cpp | iotile/baBLE | faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db | [
"MIT"
] | 11 | 2018-06-01T20:32:32.000Z | 2019-01-21T17:03:47.000Z | platforms/linux/src/Application/Packets/Commands/GetControllerInfo/GetControllerInfoRequest.cpp | iotile/baBLE-linux | faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db | [
"MIT"
] | null | null | null | #include "GetControllerInfoRequest.hpp"
using namespace std;
namespace Packet {
namespace Commands {
GetControllerInfoRequest::GetControllerInfoRequest()
: HostToControllerPacket(Packet::Id::GetControllerInfoRequest, final_type(), final_packet_code()) {}
void GetControllerInfoRequest::unserialize... | 25.533333 | 108 | 0.720627 | [
"vector"
] |
91d498274a2e8cd60356bb05cb60ace687815775 | 1,245 | hh | C++ | xhp/button.hh | appertly/labrys | 5351dacf5f275bf53ebdd74b21ee56666aa48195 | [
"Apache-2.0"
] | null | null | null | xhp/button.hh | appertly/labrys | 5351dacf5f275bf53ebdd74b21ee56666aa48195 | [
"Apache-2.0"
] | 1 | 2016-06-17T14:18:11.000Z | 2016-06-17T15:09:08.000Z | xhp/button.hh | appertly/labrys | 5351dacf5f275bf53ebdd74b21ee56666aa48195 | [
"Apache-2.0"
] | null | null | null | <?hh // strict
/**
* Labrys
*
* 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 writi... | 26.489362 | 80 | 0.654618 | [
"render"
] |
91eea3a42edaadbdd81e87dec875a7bdebc0ab81 | 26,891 | cpp | C++ | soapy/src/test/test_sliced.cpp | siglabsoss/s-modem | 0a259b4f3207dd043c198b76a4bc18c8529bcf44 | [
"BSD-3-Clause"
] | null | null | null | soapy/src/test/test_sliced.cpp | siglabsoss/s-modem | 0a259b4f3207dd043c198b76a4bc18c8529bcf44 | [
"BSD-3-Clause"
] | null | null | null | soapy/src/test/test_sliced.cpp | siglabsoss/s-modem | 0a259b4f3207dd043c198b76a4bc18c8529bcf44 | [
"BSD-3-Clause"
] | null | null | null | #include <rapidcheck.h>
#include "driver/AirPacket.hpp"
// #include "schedule.h"
#include <vector>
#include <algorithm>
#include <iostream>
#include <iomanip>
#include "cpp_utils.hpp"
#include "random.h"
// instead of including data
// std::vector<std::vector<uint32_t>> get_data();
// std::vector<uint32_t> get_demod... | 25.659351 | 150 | 0.554014 | [
"vector"
] |
91f95fba4109c3f2a640e627519e4f4c523bc4e4 | 795 | hpp | C++ | Solution/Header/Graphics/Shader.hpp | TeeNik/GameEngine | 9a3893455f20e14f967e5df9b2168fa0f004c101 | [
"MIT"
] | null | null | null | Solution/Header/Graphics/Shader.hpp | TeeNik/GameEngine | 9a3893455f20e14f967e5df9b2168fa0f004c101 | [
"MIT"
] | null | null | null | Solution/Header/Graphics/Shader.hpp | TeeNik/GameEngine | 9a3893455f20e14f967e5df9b2168fa0f004c101 | [
"MIT"
] | null | null | null | #pragma once
#include <glew.h>
#include <string>
#include "Math/Math.h"
class Shader {
public:
Shader();
~Shader();
bool Load(const std::string& name, const std::string& vertName, const std::string& fragName);
void Unload();
void SetActive();
void SetMatrixUniform(const char* name, const Matrix4& matrix);
void... | 28.392857 | 94 | 0.749686 | [
"vector"
] |
91fb6f6437ff6e35afa681404e8534c5c1fac702 | 12,210 | hpp | C++ | HTML.hpp | Txuritan/HTML.hpp | 5e90a35851aa29a9382ae7220bcb1aaf5712c5cb | [
"MIT"
] | null | null | null | HTML.hpp | Txuritan/HTML.hpp | 5e90a35851aa29a9382ae7220bcb1aaf5712c5cb | [
"MIT"
] | null | null | null | HTML.hpp | Txuritan/HTML.hpp | 5e90a35851aa29a9382ae7220bcb1aaf5712c5cb | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2018 Ian Cronkright
*
* 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, m... | 26.659389 | 114 | 0.571499 | [
"vector"
] |
91fed85184f1073cf4dc8e11d00cbfd4adafa042 | 775 | cpp | C++ | example/diverse_example.cpp | FrescolinoGroup/stdSupport | c8e534a30cfed00c4c7998ac0a708ef6d9ed2178 | [
"Apache-2.0"
] | null | null | null | example/diverse_example.cpp | FrescolinoGroup/stdSupport | c8e534a30cfed00c4c7998ac0a708ef6d9ed2178 | [
"Apache-2.0"
] | null | null | null | example/diverse_example.cpp | FrescolinoGroup/stdSupport | c8e534a30cfed00c4c7998ac0a708ef6d9ed2178 | [
"Apache-2.0"
] | null | null | null | /** ****************************************************************************
* \file diverse_example.cpp
* \brief Shows split & strip function
* \author
* Year | Name
* --------: | :------------
* 2015-2016 | Mario S. Koenz
* 2016 | C.Frescolino
* \copyright see LICENSE
************... | 29.807692 | 80 | 0.414194 | [
"vector"
] |
62065748ec3e0fb677b9679f8416e4d6e824e277 | 1,448 | cpp | C++ | aws-cpp-sdk-comprehend/source/model/UpdateEndpointRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-comprehend/source/model/UpdateEndpointRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-comprehend/source/model/UpdateEndpointRequest.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/comprehend/model/UpdateEndpointRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Comprehend::Model;
using namespace Aws::Utils::Json;
u... | 21.939394 | 99 | 0.769337 | [
"model"
] |
6208efd41630a3b27c3817b0850836d2faf06de5 | 5,724 | cpp | C++ | saga/saga/packages/job/job_description.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 5 | 2015-09-15T16:24:14.000Z | 2021-08-12T11:05:55.000Z | saga/saga/packages/job/job_description.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | null | null | null | saga/saga/packages/job/job_description.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 3 | 2016-11-17T04:38:38.000Z | 2021-04-10T17:23:52.000Z | // Copyright (c) 2005-2009 Hartmut Kaiser
//
// 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)
// this is needed in every file including detail/attribute_impl.hpp and not
// belonging to the engine
//#define... | 39.205479 | 95 | 0.624738 | [
"object",
"vector"
] |
6210206449c93b252ac61c20181c576b5d86c879 | 3,797 | hpp | C++ | DGP/RayN.hpp | sidch/DGP | 20a2d47563b6e36cd89bea0b1326e5267df8e9a6 | [
"BSD-3-Clause"
] | 14 | 2016-03-15T16:24:10.000Z | 2022-01-06T13:43:17.000Z | DGP/RayN.hpp | sidch/DGP | 20a2d47563b6e36cd89bea0b1326e5267df8e9a6 | [
"BSD-3-Clause"
] | null | null | null | DGP/RayN.hpp | sidch/DGP | 20a2d47563b6e36cd89bea0b1326e5267df8e9a6 | [
"BSD-3-Clause"
] | 5 | 2017-04-12T17:40:57.000Z | 2022-01-06T13:43:20.000Z | //============================================================================
//
// DGP: Digital Geometry Processing toolkit
// Copyright (C) 2016, Siddhartha Chaudhuri
//
// This software is covered by a BSD license. Portions derived from other
// works are covered by their respective licenses. For full licensing
// ... | 33.901786 | 122 | 0.625757 | [
"geometry",
"vector",
"transform"
] |
6217583151a03a6b328926768493a6352da7993c | 4,503 | cpp | C++ | src/Menu.cpp | clauderichard/OptimistRacing | 808ffcef44307c9097035bf5dacdcae8fc7663a7 | [
"MIT"
] | null | null | null | src/Menu.cpp | clauderichard/OptimistRacing | 808ffcef44307c9097035bf5dacdcae8fc7663a7 | [
"MIT"
] | null | null | null | src/Menu.cpp | clauderichard/OptimistRacing | 808ffcef44307c9097035bf5dacdcae8fc7663a7 | [
"MIT"
] | null | null | null | /* Copyright (C) 2012 Claude Richard
*
* Optimist Racing is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Optimist Racing is... | 29.051613 | 110 | 0.743282 | [
"render"
] |
6219e04f2ff60050abffd3c81699417440639fff | 16,300 | cpp | C++ | src/CameraModelTransfer.cpp | RangerMe/CameraModelTransfer | d71853219811374392babc264afd50718187c3e3 | [
"MIT"
] | null | null | null | src/CameraModelTransfer.cpp | RangerMe/CameraModelTransfer | d71853219811374392babc264afd50718187c3e3 | [
"MIT"
] | null | null | null | src/CameraModelTransfer.cpp | RangerMe/CameraModelTransfer | d71853219811374392babc264afd50718187c3e3 | [
"MIT"
] | null | null | null | #include "CameraModelTransfer.h"
#include "KannalaBrandt.h"
#include <string>
#include <opencv2/highgui.hpp>
using namespace cv;
CamInt* pCamIntUni = new CamInt;
int helpFlag = 0;
CFG_CMT gCFG;
int main(int argc, char* argv[])
{
/* validate inputs */
if(false == inputValid(argc, argv))
{
return 0;
}... | 34.607219 | 144 | 0.62092 | [
"model",
"transform"
] |
621aea58c16dab2b12b9fb91e72e7bcba8e69d62 | 22,955 | cpp | C++ | Oem/dbxml/xqilla/src/optimizer/ASTVisitor.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Oem/dbxml/xqilla/src/optimizer/ASTVisitor.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Oem/dbxml/xqilla/src/optimizer/ASTVisitor.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | /*
* Copyright (c) 2001-2008
* DecisionSoft Limited. All rights reserved.
* Copyright (c) 2004-2008
* Oracle. 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... | 30.606667 | 100 | 0.717186 | [
"vector"
] |
621b0698837c276dbd71cc55bbe108088f3ed66d | 990 | cpp | C++ | Ladder11/67.cpp | vimarsh6739/CP | dfdd6a3c43547d34dcff48dba6dc85662030d10a | [
"MIT"
] | null | null | null | Ladder11/67.cpp | vimarsh6739/CP | dfdd6a3c43547d34dcff48dba6dc85662030d10a | [
"MIT"
] | null | null | null | Ladder11/67.cpp | vimarsh6739/CP | dfdd6a3c43547d34dcff48dba6dc85662030d10a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define FOR0(n) for(int i=0;i<n;++i)
#define FOR1(n) for(int i=1;i<=n;++i)
typedef long long ll;
int main(){
ios::sync_with_stdio(0);
cin.tie(NULL);
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
ll ... | 17.368421 | 63 | 0.40404 | [
"vector"
] |
6221f2e689d2d9fe8dc913a1f994759f35dc62c8 | 7,159 | cc | C++ | chrome/browser/sync/notifier/communicator/xmpp_connection_generator.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | chrome/browser/sync/notifier/communicator/xmpp_connection_generator.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/sync/notifier/communicator/xmpp_connection_generator.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.
//
// XmppConnectionGenerator does the following algorithm:
// proxy = ResolveProxyInformation(connection_options)
// for server in server_list
// ... | 33.92891 | 80 | 0.695907 | [
"vector"
] |
62287a8eccdd8e876996a8629667aa4b9fca10d8 | 9,811 | cpp | C++ | Engine/Graphics.cpp | vazgriz/VoxelGame | 28b85445dc64606aecd840c977fb0557008e37a0 | [
"MIT"
] | 49 | 2020-02-12T21:09:07.000Z | 2021-11-19T00:43:55.000Z | Engine/Graphics.cpp | vazgriz/VoxelGame | 28b85445dc64606aecd840c977fb0557008e37a0 | [
"MIT"
] | 3 | 2020-08-11T14:36:00.000Z | 2020-08-17T08:50:11.000Z | Engine/Graphics.cpp | vazgriz/VoxelGame | 28b85445dc64606aecd840c977fb0557008e37a0 | [
"MIT"
] | 4 | 2020-02-18T08:55:16.000Z | 2021-05-13T01:50:37.000Z | #include "Engine/Graphics.h"
#include "Engine/Window.h"
#include <GLFW/glfw3.h>
#include <unordered_set>
#include <limits>
#include <algorithm>
using namespace VoxelEngine;
const std::vector<std::string> deviceExtensions = {
VK_KHR_SWAPCHAIN_EXTENSION_NAME
};
struct QueueIndices {
uint32_t graphicsFamily = -... | 35.676364 | 190 | 0.689838 | [
"vector"
] |
622af7f29c3f3b414a94c52798a4044c20c5d678 | 13,640 | cpp | C++ | tests/iostream/27.objects.cpp | isabella232/stdcxx | b0b0cab391b7b1f2d17ef4342aeee6b792bde63c | [
"Apache-2.0"
] | 53 | 2015-01-13T05:46:43.000Z | 2022-02-24T23:46:04.000Z | tests/iostream/27.objects.cpp | mann-patel/stdcxx | a22c5192f4b2a8b0b27d3588ea8f6d1faf8b037a | [
"Apache-2.0"
] | 1 | 2021-11-04T12:35:39.000Z | 2021-11-04T12:35:39.000Z | tests/iostream/27.objects.cpp | isabella232/stdcxx | b0b0cab391b7b1f2d17ef4342aeee6b792bde63c | [
"Apache-2.0"
] | 33 | 2015-07-09T13:31:00.000Z | 2021-11-04T12:12:20.000Z | /***************************************************************************
*
* 27.objects.cpp - test exercising lib.iostream.objects
*
* $Id$
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor li... | 30.044053 | 79 | 0.576173 | [
"object"
] |
622b4b0c47b7979c280b7ddd7cafe12ff30c47d0 | 651 | cpp | C++ | src/main.cpp | mindriot101/slideshow-sfml | 6efefc4959764c67936ccf0d157785ccc28a77a4 | [
"MIT"
] | null | null | null | src/main.cpp | mindriot101/slideshow-sfml | 6efefc4959764c67936ccf0d157785ccc28a77a4 | [
"MIT"
] | null | null | null | src/main.cpp | mindriot101/slideshow-sfml | 6efefc4959764c67936ccf0d157785ccc28a77a4 | [
"MIT"
] | null | null | null | #include <SFML/Graphics.hpp>
#include <algorithm>
#include <cstdint>
#include <fstream>
#include <iostream>
#include <map>
#include <streambuf>
#include <string>
#include <vector>
#include "config.h"
#include "font_manager.h"
#include "globals.h"
#include "image_manager.h"
#include "main_window.h"
#include "presenter.... | 21 | 61 | 0.729647 | [
"vector"
] |
62313127cd2a7d4357d48608e64b348d8d3ec35f | 1,997 | cc | C++ | compator/road/graphmap.cc | TsinghuaDatabaseGroup/VTree | 7e6516cac56ffdd3145b82c94db8c0f0ce48dca5 | [
"Unlicense"
] | 17 | 2017-03-07T09:50:12.000Z | 2021-12-05T07:42:36.000Z | compator/road/graphmap.cc | blshen/VTree | 7e6516cac56ffdd3145b82c94db8c0f0ce48dca5 | [
"Unlicense"
] | 1 | 2017-11-13T16:21:28.000Z | 2017-11-13T16:21:28.000Z | compator/road/graphmap.cc | TsinghuaDatabaseGroup/VTree | 7e6516cac56ffdd3145b82c94db8c0f0ce48dca5 | [
"Unlicense"
] | 14 | 2017-03-22T04:06:41.000Z | 2021-12-17T03:59:00.000Z | #include "graphmap.h"
GraphMapping::GraphMapping()
{}
GraphMapping::~GraphMapping()
{
for (HashReader rdr(m_graph2obj); !rdr.isEnd(); rdr.next())
delete (Array*)rdr.getVal();
m_graph2obj.clean();
m_obj2graph.clean();
}
void GraphMapping::addObject(const int a_graphid, const int a_obj... | 35.660714 | 80 | 0.377066 | [
"object"
] |
623bcd22691f82013854d4b4faa034208062cd14 | 948 | cpp | C++ | algorithm/RMQ.cpp | mahzoun/programs | 39fbd730d635ed49a0af2d16dd486eba1db2f295 | [
"MIT"
] | null | null | null | algorithm/RMQ.cpp | mahzoun/programs | 39fbd730d635ed49a0af2d16dd486eba1db2f295 | [
"MIT"
] | null | null | null | algorithm/RMQ.cpp | mahzoun/programs | 39fbd730d635ed49a0af2d16dd486eba1db2f295 | [
"MIT"
] | null | null | null | //In The Name Of God
#include<iostream>
#include<cstring>
#include<vector>
#include<iomanip>
#include<cmath>
#include<algorithm>
#include<fstream>
#include<set>
#include<cstdio>
#include<map>
#include<cstdio>
#define f first
#define s second
#define MAX 100001
#define inf 2*(( 1<<30 )-1)+1
using namespace std;
typedef ... | 18.588235 | 52 | 0.549578 | [
"vector"
] |
9a8c759a563d10b41c98a68dfd9e9dcd78059f52 | 435 | cpp | C++ | Standard Template Library/Function_Object.cpp | SusheelThapa/Code-With-C-Plus-Plus | 8fdf86bf5a8420f8cd2e5d8afb8e1aebc376f136 | [
"MIT"
] | null | null | null | Standard Template Library/Function_Object.cpp | SusheelThapa/Code-With-C-Plus-Plus | 8fdf86bf5a8420f8cd2e5d8afb8e1aebc376f136 | [
"MIT"
] | null | null | null | Standard Template Library/Function_Object.cpp | SusheelThapa/Code-With-C-Plus-Plus | 8fdf86bf5a8420f8cd2e5d8afb8e1aebc376f136 | [
"MIT"
] | null | null | null | #include <iostream>
#include <functional>
#include <algorithm>
using namespace std;
int main()
{
/*
Function Object (Functor):
Function wrapped in a class so that it is avaliable like an object ()
*/
int arr[] = {1, 9, 7, 5, 2};
sort(arr, arr + 5, greater<int>());//We have passed third argum... | 18.125 | 89 | 0.565517 | [
"object"
] |
9a9192e28dafe8aa7bb0eaa216b98e60d234849b | 8,275 | cpp | C++ | net/ias/iasjet/setup/objectscommand.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | net/ias/iasjet/setup/objectscommand.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | net/ias/iasjet/setup/objectscommand.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /////////////////////////////////////////////////////////////////////////////
//
// Copyright(C) 2000 Microsoft Corporation all rights reserved.
//
// Module: ObjectsCommand.H
//
// Project: Windows 2000 IAS
//
// Description: Declaration of the the Object Commands classes
//
// Author: tperrau... | 31.949807 | 79 | 0.363625 | [
"object"
] |
9a9610dfa714c040240453cffee6544f96a2b910 | 73,789 | cc | C++ | mysql-server/sql/dd/impl/bootstrap/bootstrapper.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/sql/dd/impl/bootstrap/bootstrapper.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/sql/dd/impl/bootstrap/bootstrapper.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certai... | 40.299836 | 82 | 0.663202 | [
"object",
"vector"
] |
9a9b0b3bb74abc6ec300f0ce65ff64be27a2ab69 | 3,203 | cpp | C++ | src/utils/mu/SleepCmd.cpp | natronkeltner/openpegasus | e64f383c1ed37826041fc63e83b4e65fc1c679ae | [
"ICU",
"Unlicense",
"OpenSSL",
"MIT"
] | 1 | 2021-11-12T21:28:50.000Z | 2021-11-12T21:28:50.000Z | src/utils/mu/SleepCmd.cpp | natronkeltner/openpegasus | e64f383c1ed37826041fc63e83b4e65fc1c679ae | [
"ICU",
"Unlicense",
"OpenSSL",
"MIT"
] | 39 | 2021-01-18T19:28:41.000Z | 2022-03-27T20:55:36.000Z | src/utils/mu/SleepCmd.cpp | natronkeltner/openpegasus | e64f383c1ed37826041fc63e83b4e65fc1c679ae | [
"ICU",
"Unlicense",
"OpenSSL",
"MIT"
] | 4 | 2021-07-09T12:52:33.000Z | 2021-12-21T15:05:59.000Z | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... | 31.097087 | 80 | 0.614736 | [
"vector"
] |
9aa756e57912e26b6a6805efe63dc2682b494b8c | 1,526 | cpp | C++ | ext/gauss_psf_cuda.cpp | shirgur/UnsupervisedDepthFromFocus | d41bc08a290623be8a96fa177ea769a7ef742dc2 | [
"MIT"
] | 96 | 2019-04-04T15:20:55.000Z | 2022-03-14T14:12:47.000Z | ext/gauss_psf_cuda.cpp | ameya98/UnsupervisedDepthFromFocus | 33c474c636bdce45cd004873a1391cf25dae4ad1 | [
"MIT"
] | 9 | 2019-08-09T07:33:22.000Z | 2022-02-07T14:57:48.000Z | ext/gauss_psf_cuda.cpp | ameya98/UnsupervisedDepthFromFocus | 33c474c636bdce45cd004873a1391cf25dae4ad1 | [
"MIT"
] | 21 | 2019-07-04T10:36:08.000Z | 2022-03-31T10:48:08.000Z | #include <torch/torch.h>
#include <vector>
// CUDA forward declarations
std::vector<at::Tensor> gauss_psf_cuda_forward(
at::Tensor input,
at::Tensor weights,
at::Tensor G_x,
at::Tensor G_y);
std::vector<at::Tensor> gauss_psf_cuda_backward(
at::Tensor grad,
at::Tensor input,
at::Tensor fw... | 22.115942 | 70 | 0.672346 | [
"vector"
] |
9aa83211b7aa5187a3572c45edae8eacbe2f871a | 5,334 | hpp | C++ | lib/fizzy/types.hpp | imapp-pl/fizzy | 69e154ad7b910809f2219839d328b93168020135 | [
"Apache-2.0"
] | null | null | null | lib/fizzy/types.hpp | imapp-pl/fizzy | 69e154ad7b910809f2219839d328b93168020135 | [
"Apache-2.0"
] | null | null | null | lib/fizzy/types.hpp | imapp-pl/fizzy | 69e154ad7b910809f2219839d328b93168020135 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <cstdint>
#include <optional>
#include <string>
#include <vector>
namespace fizzy
{
using bytes = std::basic_string<uint8_t>;
using bytes_view = std::basic_string_view<uint8_t>;
// https://webassembly.github.io/spec/core/binary/types.html#binary-valtype
enum class ValType : uint8_t
{
i32 =... | 22.601695 | 90 | 0.655418 | [
"vector"
] |
9aba746a4bf61a59d01d0e8fb886113c5d46410c | 1,421 | cpp | C++ | exercises/7/7.1/main.cpp | Weissle/modern-cpp-tutorial | 1bba0990dcebbfe31222a5751812915a98bac384 | [
"MIT"
] | 17,810 | 2018-03-27T23:39:09.000Z | 2022-03-31T23:35:09.000Z | exercises/7/7.1/main.cpp | RhmpzYYX/modern-cpp-tutorial | c239ef1b2d4925b5a5fa192497d26762346c465e | [
"MIT"
] | 154 | 2018-04-03T13:55:35.000Z | 2022-03-26T13:00:27.000Z | exercises/7/7.1/main.cpp | RhmpzYYX/modern-cpp-tutorial | c239ef1b2d4925b5a5fa192497d26762346c465e | [
"MIT"
] | 2,350 | 2018-04-02T08:18:15.000Z | 2022-03-31T13:43:19.000Z | //
// main.cpp
//
// exercise solution - chapter 7
// modern cpp tutorial
//
// created by changkun at changkun.de
// https://github.com/changkun/modern-cpp-tutorial/
//
#include <iostream> // std::cout, std::endl
#include <vector> // std::vector
#include <string> // std::string
#include <future> // std::future... | 27.862745 | 100 | 0.560169 | [
"vector"
] |
9ac325c4c6f724bcba2c7cfb65571418d14edaaf | 4,766 | hpp | C++ | include/iota/models/bundle.hpp | wilsonfonseca/iota.lib.cpp | c49791b8e4f1499dc652fb84dedb016e5f42cdf4 | [
"MIT"
] | null | null | null | include/iota/models/bundle.hpp | wilsonfonseca/iota.lib.cpp | c49791b8e4f1499dc652fb84dedb016e5f42cdf4 | [
"MIT"
] | null | null | null | include/iota/models/bundle.hpp | wilsonfonseca/iota.lib.cpp | c49791b8e4f1499dc652fb84dedb016e5f42cdf4 | [
"MIT"
] | null | null | null | //
// MIT License
//
// Copyright (c) 2017-2018 Thibault Martinez and Simon Ninon
//
// 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 r... | 25.762162 | 95 | 0.688208 | [
"object",
"vector",
"model"
] |
9ac462361cb7d4a326edcfe887e9edbaf19f04c2 | 2,833 | cc | C++ | src/starkware/fri/fri_committed_layer_test.cc | ChihChengLiang/ethSTARK | 032eda9f83d419eb2eaeef79d446fb77ecc3f019 | [
"Apache-2.0"
] | 123 | 2020-06-28T18:35:32.000Z | 2022-03-15T08:48:28.000Z | src/starkware/fri/fri_committed_layer_test.cc | ChihChengLiang/ethSTARK | 032eda9f83d419eb2eaeef79d446fb77ecc3f019 | [
"Apache-2.0"
] | 3 | 2020-06-29T16:45:26.000Z | 2020-08-09T08:42:17.000Z | src/starkware/fri/fri_committed_layer_test.cc | ChihChengLiang/ethSTARK | 032eda9f83d419eb2eaeef79d446fb77ecc3f019 | [
"Apache-2.0"
] | 21 | 2020-06-29T17:00:47.000Z | 2022-03-08T22:10:15.000Z | #include "starkware/fri/fri_committed_layer.h"
#include "starkware/fri/fri_details.h"
#include "gtest/gtest.h"
#include "starkware/algebra/lde/lde_manager.h"
#include "starkware/channel/prover_channel_mock.h"
#include "starkware/crypt_tools/blake2s_160.h"
#include "starkware/fri/fri_folder.h"
#include "starkware/fri/f... | 34.54878 | 97 | 0.750088 | [
"vector"
] |
9ad36da5847691cbae21c2f4f87e147add9c5f94 | 840 | cpp | C++ | Exams/07_Exam/01_administration.cpp | NaskoVasilev/Data-Structures-And-Algorithms | 1a4dba588df7e88498fddda9c04a8832f8c0dad8 | [
"MIT"
] | 2 | 2021-10-31T18:32:47.000Z | 2022-01-28T08:58:34.000Z | Exams/07_Exam/01_administration.cpp | NaskoVasilev/Data-Structures-And-Algorithms | 1a4dba588df7e88498fddda9c04a8832f8c0dad8 | [
"MIT"
] | null | null | null | Exams/07_Exam/01_administration.cpp | NaskoVasilev/Data-Structures-And-Algorithms | 1a4dba588df7e88498fddda9c04a8832f8c0dad8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <map>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> numbers(n);
map<int, int> occur;
for (int i = 0; i < n; ++i) {
int num;
cin >> num;
numbers[i] = num;
if (!occur.count(num)) {
occur[num] ... | 18.26087 | 46 | 0.420238 | [
"vector"
] |
9ad3c2444fe2f22cf74b83b1b1d903c2b780bf45 | 862 | cpp | C++ | hard/42_trapping_rain_water.cpp | czla/leetcode-solution | bee4bc1588b270ca580199d23ab83c939b7e17b8 | [
"MIT"
] | 3 | 2019-05-01T08:23:37.000Z | 2019-08-03T01:35:28.000Z | hard/42_trapping_rain_water.cpp | czla/leetcode-solution | bee4bc1588b270ca580199d23ab83c939b7e17b8 | [
"MIT"
] | null | null | null | hard/42_trapping_rain_water.cpp | czla/leetcode-solution | bee4bc1588b270ca580199d23ab83c939b7e17b8 | [
"MIT"
] | null | null | null | // Description: 给定 n 个非负整数表示每个宽度为 1 的柱子的高度图,计算按此排列的柱子,下雨之后能接多少雨水。
//
// Examples: 输入:[0,1,0,2,1,0,1,3,2,1,2,1] 输出:6
//
//
//
// Difficulty: Hard
// Author: zlchen
// Date: 8/20/2019
// Performance: 8 ms, surpass 82.00%'s C++ submissions
class Solution {
public:
int trap(vector... | 26.9375 | 87 | 0.512761 | [
"vector"
] |
9ad8b7038aab4696ab097463b3fadff8f174d787 | 794 | hpp | C++ | include/tardisdb/queryExecutor/ExecutionContext.hpp | josefschmeisser/TardisDB | 0d805c4730533fa37c3668acd592404027b9b0d6 | [
"Apache-2.0"
] | 5 | 2021-01-15T16:59:59.000Z | 2022-02-28T15:41:00.000Z | include/tardisdb/queryExecutor/ExecutionContext.hpp | josefschmeisser/TardisDB | 0d805c4730533fa37c3668acd592404027b9b0d6 | [
"Apache-2.0"
] | null | null | null | include/tardisdb/queryExecutor/ExecutionContext.hpp | josefschmeisser/TardisDB | 0d805c4730533fa37c3668acd592404027b9b0d6 | [
"Apache-2.0"
] | 1 | 2021-06-22T04:53:38.000Z | 2021-06-22T04:53:38.000Z | //
// Created by Blum Thomas on 20.10.20.
//
#ifndef PROTODB_EXECUTIONCONTEXT_HPP
#define PROTODB_EXECUTIONCONTEXT_HPP
#include <vector>
#include "foundations/Database.hpp"
#include <boost/dynamic_bitset.hpp>
struct ExecutionResource {
virtual ~ExecutionResource() { }
};
struct ExecutionContext {
std::vect... | 27.37931 | 97 | 0.765743 | [
"vector"
] |
9ad967f02b83ebe3f19f8059cce3065b2d5ad6b8 | 4,325 | cc | C++ | measure/meas_time.cc | SeanHeelan/superopt | 9473e4718d491f6cb375a9754c6213ddf5db680c | [
"MIT"
] | 20 | 2021-06-02T14:21:53.000Z | 2022-03-29T09:10:49.000Z | measure/meas_time.cc | SeanHeelan/superopt | 9473e4718d491f6cb375a9754c6213ddf5db680c | [
"MIT"
] | 3 | 2021-07-28T16:31:25.000Z | 2021-07-28T18:36:30.000Z | measure/meas_time.cc | SeanHeelan/superopt | 9473e4718d491f6cb375a9754c6213ddf5db680c | [
"MIT"
] | 2 | 2021-08-04T09:48:09.000Z | 2022-02-08T05:00:33.000Z | #include <iostream>
#include <unordered_map>
#include <unordered_set>
#include <chrono>
#include "../src/utils.h"
#include "../src/inout.h"
#include "../src/isa/toy-isa/inst.h"
#include "../src/isa/prog.h"
#include "../src/verify/smt_prog.h"
#include "../src/verify/validator.h"
#include "../src/search/mh_prog.h"
#inclu... | 26.863354 | 86 | 0.598844 | [
"vector",
"model"
] |
9ae1c3f13e4703f2f37c54484ea434b6e851540a | 2,390 | hpp | C++ | src/tesseract/logger/Logger.hpp | lambday/tesseract | b38cf14545940f3b227285a19d40907260f057e6 | [
"MIT"
] | 3 | 2015-01-09T08:15:28.000Z | 2019-05-24T08:34:04.000Z | src/tesseract/logger/Logger.hpp | lambday/tesseract | b38cf14545940f3b227285a19d40907260f057e6 | [
"MIT"
] | null | null | null | src/tesseract/logger/Logger.hpp | lambday/tesseract | b38cf14545940f3b227285a19d40907260f057e6 | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Soumyajit De
*
* 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,... | 28.117647 | 87 | 0.732636 | [
"vector"
] |
9ae697778b62d7857f972c9756e18de85c940258 | 6,798 | cpp | C++ | sDNA/geos/drop/src/geom/MultiPolygon.cpp | chrisc20042001/sDNA | 22d11f150c28574c339457ce5cb0ad1d59b06277 | [
"MIT"
] | 48 | 2015-01-02T23:10:03.000Z | 2021-12-23T01:37:22.000Z | sDNA/geos/drop/src/geom/MultiPolygon.cpp | chrisc20042001/sDNA | 22d11f150c28574c339457ce5cb0ad1d59b06277 | [
"MIT"
] | 9 | 2019-05-31T14:19:43.000Z | 2021-10-16T16:09:52.000Z | sDNA/geos/drop/src/geom/MultiPolygon.cpp | chrisc20042001/sDNA | 22d11f150c28574c339457ce5cb0ad1d59b06277 | [
"MIT"
] | 28 | 2015-01-07T18:41:16.000Z | 2021-03-25T02:29:13.000Z | /**********************************************************************
* $Id: MultiPolygon.cpp 3185 2011-02-07 15:39:27Z strk $
*
* GEOS - Geometry Engine Open Source
* http://geos.refractions.net
*
* Copyright (C) 2011 Sandro Santilli <strk@keybit.net>
* Copyright (C) 2001-2002 Vivid Solutions Inc.
*
* This ... | 33.653465 | 124 | 0.694322 | [
"geometry",
"vector"
] |
9af2f09d96e7caf4328a05674ebd03d5d28f2de9 | 13,756 | cpp | C++ | src/core/filter.cpp | opiopan/fsmapper | 4207b5396004df486944c86a407abaa809e32206 | [
"Apache-2.0"
] | 3 | 2022-01-18T13:50:33.000Z | 2022-03-28T08:11:03.000Z | src/core/filter.cpp | opiopan/fsmapper | 4207b5396004df486944c86a407abaa809e32206 | [
"Apache-2.0"
] | 2 | 2022-02-06T15:54:56.000Z | 2022-03-30T12:51:08.000Z | src/core/filter.cpp | opiopan/fsmapper | 4207b5396004df486944c86a407abaa809e32206 | [
"Apache-2.0"
] | null | null | null | //
// filter.cpp
// Author: Hiroshi Murayama <opiopan@gmail.com>
//
#include <memory>
#include <vector>
#include <unordered_map>
#include <sstream>
#include <algorithm>
#include "filter.h"
#include "action.h"
#include "engine.h"
#include "tools.h"
//===================================================================... | 38.968839 | 135 | 0.546452 | [
"object",
"vector"
] |
9af57388a4fdaeda3d03cc3af228e92fdf54806f | 44,302 | cpp | C++ | external/vulkancts/modules/vulkan/compute/vktComputeZeroInitializeWorkgroupMemoryTests.cpp | whitemike889/VK-GL-CTS | 823d49cf5f5e5622e1fade4424e92ec2f61b81a6 | [
"Apache-2.0"
] | null | null | null | external/vulkancts/modules/vulkan/compute/vktComputeZeroInitializeWorkgroupMemoryTests.cpp | whitemike889/VK-GL-CTS | 823d49cf5f5e5622e1fade4424e92ec2f61b81a6 | [
"Apache-2.0"
] | null | null | null | external/vulkancts/modules/vulkan/compute/vktComputeZeroInitializeWorkgroupMemoryTests.cpp | whitemike889/VK-GL-CTS | 823d49cf5f5e5622e1fade4424e92ec2f61b81a6 | [
"Apache-2.0"
] | null | null | null | /*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2020 The Khronos Group Inc.
* Copyright (c) 2020 Google LLC.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except i... | 30.281613 | 237 | 0.66006 | [
"vector"
] |
9af7b3c6ba1ab412b2f697fd14134116b48a24cf | 1,920 | hpp | C++ | Code/Node.hpp | Avramis/ClassificationByNumbers | 6c36aa4998173e3f78c4f27b27cfd66350b9ae07 | [
"MIT"
] | 1 | 2019-03-27T15:16:06.000Z | 2019-03-27T15:16:06.000Z | Code/Node.hpp | Avramis/ClassificationByNumbers | 6c36aa4998173e3f78c4f27b27cfd66350b9ae07 | [
"MIT"
] | null | null | null | Code/Node.hpp | Avramis/ClassificationByNumbers | 6c36aa4998173e3f78c4f27b27cfd66350b9ae07 | [
"MIT"
] | null | null | null | //
// Node.hpp
// ClassificationTool
//
// Created by Avraam Tapinos
// Copyright © 2018 Avraam Tapinos. All rights reserved.
//
#ifndef Node_hpp
#define Node_hpp
#include <stdio.h>
#include <random>
#include <stdlib.h>
#include <memory>
#include <map>
#include <fstream>
#include <sstream>
#include <iomanip>
#inc... | 27.042254 | 132 | 0.638021 | [
"vector"
] |
9afcbe730aebabee1800779e59f2d93fb137dea6 | 4,436 | cpp | C++ | services/5g_shop/back/internal/src/services/ImagesService.cpp | HackerDom/ctfcup-2021-finals | de0bcfc9b3288df02bc753717232035d8d545570 | [
"MIT"
] | 2 | 2022-01-25T14:57:18.000Z | 2022-02-01T18:20:56.000Z | services/5g_shop/back/internal/src/services/ImagesService.cpp | HackerDom/ctfcup-2021-finals | de0bcfc9b3288df02bc753717232035d8d545570 | [
"MIT"
] | null | null | null | services/5g_shop/back/internal/src/services/ImagesService.cpp | HackerDom/ctfcup-2021-finals | de0bcfc9b3288df02bc753717232035d8d545570 | [
"MIT"
] | null | null | null | #include "crow/crow_all.h"
#include "services/ImagesService.h"
#include "tools/Defer.h"
#include "tools/Strings.h"
using namespace shop;
ImagesService::ImagesService(std::shared_ptr<PGConnectionPool> pgConnectionPool)
: pgConnectionPool(std::move(pgConnectionPool)) {
}
Result<std::shared_ptr<Image>> ImagesS... | 29.184211 | 141 | 0.646303 | [
"vector"
] |
9afdde32b838da5f744f7e57c3ebda2f716b5561 | 12,884 | hpp | C++ | nn_runtime/armnn_backend_vsi_npu/workloads/TNpuWorkloads.hpp | phytec-mirrors/nn-imx | 58525bf968e8d90004f6d782ad37cea28991a439 | [
"MIT"
] | null | null | null | nn_runtime/armnn_backend_vsi_npu/workloads/TNpuWorkloads.hpp | phytec-mirrors/nn-imx | 58525bf968e8d90004f6d782ad37cea28991a439 | [
"MIT"
] | null | null | null | nn_runtime/armnn_backend_vsi_npu/workloads/TNpuWorkloads.hpp | phytec-mirrors/nn-imx | 58525bf968e8d90004f6d782ad37cea28991a439 | [
"MIT"
] | null | null | null | /****************************************************************************
*
* Copyright (c) 2019 Vivante Corporation
*
* 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 ... | 38.459701 | 109 | 0.643899 | [
"shape",
"vector",
"model"
] |
9aff6f07e33c16983557afb50233a1e31f288644 | 20,790 | hpp | C++ | source/ashes/renderer/GlRenderer/Core/GlDevice.hpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 227 | 2018-09-17T16:03:35.000Z | 2022-03-19T02:02:45.000Z | source/ashes/renderer/GlRenderer/Core/GlDevice.hpp | DragonJoker/RendererLib | 0f8ad8edec1b0929ebd10247d3dd0a9ee8f8c91a | [
"MIT"
] | 39 | 2018-02-06T22:22:24.000Z | 2018-08-29T07:11:06.000Z | source/ashes/renderer/GlRenderer/Core/GlDevice.hpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 8 | 2019-05-04T10:33:32.000Z | 2021-04-05T13:19:27.000Z | /*
This file belongs to Ashes.
See LICENSE file in root folder
*/
#pragma once
#include "renderer/GlRenderer/Command/GlCommandBuffer.hpp"
#include "renderer/GlRenderer/Core/GlContextLock.hpp"
#include "renderer/GlRenderer/Core/GlPhysicalDevice.hpp"
#include <unordered_map>
namespace ashes::gl
{
template< typename A... | 24.545455 | 114 | 0.768543 | [
"object",
"vector"
] |
b10c0e09a0d4551300ab234aff26d29c6b5b9c7a | 10,357 | cpp | C++ | externals/wasm-compiler/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp | JaminChan/eos_win | c03e57151cfe152d0d3120abb13226f4df74f37e | [
"MIT"
] | 427 | 2018-05-29T14:21:02.000Z | 2022-03-16T03:17:54.000Z | llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp | squirrel-explorer/eagleeye-ios | 9569e1d3cf2759490557337dd940e88907517052 | [
"Apache-2.0"
] | 25 | 2018-07-23T08:34:15.000Z | 2021-11-05T07:13:36.000Z | llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp | squirrel-explorer/eagleeye-ios | 9569e1d3cf2759490557337dd940e88907517052 | [
"Apache-2.0"
] | 52 | 2018-07-19T19:57:32.000Z | 2022-03-11T16:05:38.000Z | //===-- SystemZTargetTransformInfo.cpp - SystemZ-specific TTI -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 32.775316 | 81 | 0.630298 | [
"vector",
"model"
] |
62423ff73983997e872e58cfffa57dac3aa7f743 | 24,438 | cpp | C++ | Lab3&4_GA-TSP/GAPopulation.cpp | Pangxiaox/Artificial-Intellingence-Lab | 382f8b3f1c357e72982f784eb69b1e5ef8e97081 | [
"MIT"
] | null | null | null | Lab3&4_GA-TSP/GAPopulation.cpp | Pangxiaox/Artificial-Intellingence-Lab | 382f8b3f1c357e72982f784eb69b1e5ef8e97081 | [
"MIT"
] | null | null | null | Lab3&4_GA-TSP/GAPopulation.cpp | Pangxiaox/Artificial-Intellingence-Lab | 382f8b3f1c357e72982f784eb69b1e5ef8e97081 | [
"MIT"
] | null | null | null | // $Header$
/* ----------------------------------------------------------------------------
population.C
mbwall 11aug94
Copyright (c) 1995 Massachusetts Institute of Technology
all rights reserved
---------------------------------------------------------------------------- */
#include <string... | 30.24505 | 79 | 0.639455 | [
"object"
] |
6242df5cccbc632e28fe57ca1bc67dd62621a519 | 35,678 | cc | C++ | cartographer/mapping/internal/3d/scan_matching/ceres_scan_matcher_3d_test.cc | juwangvsu/cartographer-1 | b173fcba5b53f4372507a36f991673e8783fcdb8 | [
"Apache-2.0"
] | null | null | null | cartographer/mapping/internal/3d/scan_matching/ceres_scan_matcher_3d_test.cc | juwangvsu/cartographer-1 | b173fcba5b53f4372507a36f991673e8783fcdb8 | [
"Apache-2.0"
] | null | null | null | cartographer/mapping/internal/3d/scan_matching/ceres_scan_matcher_3d_test.cc | juwangvsu/cartographer-1 | b173fcba5b53f4372507a36f991673e8783fcdb8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2016 The Cartographer Authors
*
* 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... | 41.826495 | 227 | 0.649252 | [
"vector",
"transform",
"3d"
] |
624cee7fb739503c7ba41a278d94772de67035a4 | 7,293 | hpp | C++ | cuda/stubs/device.hpp | josephwinston/hpxcl | ebd18f245beea46be943ffa22e2fb8145b0b2836 | [
"BSL-1.0"
] | null | null | null | cuda/stubs/device.hpp | josephwinston/hpxcl | ebd18f245beea46be943ffa22e2fb8145b0b2836 | [
"BSL-1.0"
] | null | null | null | cuda/stubs/device.hpp | josephwinston/hpxcl | ebd18f245beea46be943ffa22e2fb8145b0b2836 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2013 Damond Howard
//
// 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
#if !defined(DEVICE_3_HPP)
#define DEVICE_3_HPP
#include <hpx/runtime/components/stubs/stub_base.hpp>
#include <hpx/runtime/ap... | 39.421622 | 123 | 0.515426 | [
"vector"
] |
6253780bb4426c8c5373cef9003175f8f4f2b700 | 419 | cpp | C++ | libTCLEmu/CScrollPane.cpp | khval/MacEmuLib | 17d060fb0da0849da45e33e8e90c2b00c782e1a6 | [
"TCL",
"MIT"
] | null | null | null | libTCLEmu/CScrollPane.cpp | khval/MacEmuLib | 17d060fb0da0849da45e33e8e90c2b00c782e1a6 | [
"TCL",
"MIT"
] | 7 | 2021-03-15T21:11:19.000Z | 2021-03-21T23:15:09.000Z | libTCLEmu/CScrollPane.cpp | khval/libMacEmu | 17d060fb0da0849da45e33e8e90c2b00c782e1a6 | [
"TCL",
"MIT"
] | null | null | null |
#ifdef __amigaos4__
#include "libMacEmu.h"
#include "missing.h"
#endif
#include "CDocument.h"
#include "CView.h"
void CScrollPane::IScrollPane(CView *object, CDocument *doc , int, int, int, int, int, int, const short int&)
{
printf("%s:%s:%d\n",__FILE__,__FUNCTION__,__LINE__);
object -> gGopher = this;
}
void ... | 17.458333 | 109 | 0.701671 | [
"object"
] |
625a7fa887452a53ba4a91396c979d728755f067 | 7,568 | cc | C++ | src/profiling/symbolizer/breakpad_parser.cc | vinsonlee/perfetto | 02c4020f875f43cefcad9222d2354c49b5b20a90 | [
"Apache-2.0"
] | null | null | null | src/profiling/symbolizer/breakpad_parser.cc | vinsonlee/perfetto | 02c4020f875f43cefcad9222d2354c49b5b20a90 | [
"Apache-2.0"
] | null | null | null | src/profiling/symbolizer/breakpad_parser.cc | vinsonlee/perfetto | 02c4020f875f43cefcad9222d2354c49b5b20a90 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2021 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... | 35.037037 | 84 | 0.707452 | [
"object"
] |
625cea6c3cc9caca3fb5ef7f116f9aecfc52ff19 | 14,168 | cpp | C++ | amd_openvx_extensions/amd_nn/src/gather_layer.cpp | fiona-gladwin/MIVisionX | ccfe239f96b7ab1c530043135982cc019fc372c4 | [
"MIT"
] | null | null | null | amd_openvx_extensions/amd_nn/src/gather_layer.cpp | fiona-gladwin/MIVisionX | ccfe239f96b7ab1c530043135982cc019fc372c4 | [
"MIT"
] | null | null | null | amd_openvx_extensions/amd_nn/src/gather_layer.cpp | fiona-gladwin/MIVisionX | ccfe239f96b7ab1c530043135982cc019fc372c4 | [
"MIT"
] | null | null | null | #include <kernels.h>
static vx_status VX_CALLBACK validateGatherLayer(vx_node node, const vx_reference *parameters, vx_uint32 num, vx_meta_format metas[]) {
vx_enum type, type2, out_type;
vx_size num_dims, num_dims2, out_num_dims;
vx_size input_dims[4], input_dims2[4], output_dims[4];
ERROR_CHECK_STAT... | 49.194444 | 216 | 0.652809 | [
"object"
] |
625ff905fe6c85ce184ff1bed7857161e1c957ee | 7,954 | cpp | C++ | src/hardware/vga_seq.cpp | mediaexplorer74/dosbox-x | be9f94b740234f7813bf5a063a558cef9dc7f9a6 | [
"MIT"
] | 3 | 2022-02-20T11:06:29.000Z | 2022-03-11T08:16:55.000Z | src/hardware/vga_seq.cpp | mediaexplorer74/dosbox-x | be9f94b740234f7813bf5a063a558cef9dc7f9a6 | [
"MIT"
] | null | null | null | src/hardware/vga_seq.cpp | mediaexplorer74/dosbox-x | be9f94b740234f7813bf5a063a558cef9dc7f9a6 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2002-2021 The DOSBox Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This p... | 33.004149 | 110 | 0.681167 | [
"render"
] |
62642d1a253867bcbdba79fd906dc28251715f40 | 18,043 | cpp | C++ | Experiment_Test/ThirdGL/ThirdGL/Src/Chapter08/fbo_drawbuffers/fbo_drawbuffers.cpp | HelloWorld115/My_Test | c32524c7b8b970627200a767b86d1e4080b94a14 | [
"Apache-2.0"
] | null | null | null | Experiment_Test/ThirdGL/ThirdGL/Src/Chapter08/fbo_drawbuffers/fbo_drawbuffers.cpp | HelloWorld115/My_Test | c32524c7b8b970627200a767b86d1e4080b94a14 | [
"Apache-2.0"
] | null | null | null | Experiment_Test/ThirdGL/ThirdGL/Src/Chapter08/fbo_drawbuffers/fbo_drawbuffers.cpp | HelloWorld115/My_Test | c32524c7b8b970627200a767b86d1e4080b94a14 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <iostream>
#include <GLTools.h>
#include <GLShaderManager.h>
#include <GLFrustum.h>
#include <GLBatch.h>
#include <GLMatrixStack.h>
#include <GLGeometryTransform.h>
#include <StopWatch.h>
#include "sbm.h"
#include <GL/glu.h>
#ifdef __APPLE__
#include <glut/glut.h>
#else
#define FREEGLUT_S... | 30.529611 | 165 | 0.70864 | [
"geometry",
"render",
"object",
"transform"
] |
62695b2c4721042a41efd08f52527b251a036de9 | 21,875 | cpp | C++ | ork.tool/src/qtui/qtdataflow.cpp | tweakoz/orkid | e3f78dfb3375853fd512a9d0828b009075a18345 | [
"BSL-1.0"
] | 25 | 2015-02-21T04:21:21.000Z | 2022-01-20T05:19:27.000Z | ork.tool/src/qtui/qtdataflow.cpp | tweakoz/orkid | e3f78dfb3375853fd512a9d0828b009075a18345 | [
"BSL-1.0"
] | 113 | 2019-08-23T04:52:14.000Z | 2021-09-13T04:04:11.000Z | ork.tool/src/qtui/qtdataflow.cpp | tweakoz/orkid | e3f78dfb3375853fd512a9d0828b009075a18345 | [
"BSL-1.0"
] | 4 | 2017-02-20T18:17:55.000Z | 2020-06-28T03:47:55.000Z | ////////////////////////////////////////////////////////////////
// Orkid Media Engine
// Copyright 1996-2020, Michael T. Mayers.
// Distributed under the Boost Software License - Version 1.0 - August 17, 2003
// see http://www.boost.org/LICENSE_1_0.txt
////////////////////////////////////////////////////////////////
... | 32.311669 | 116 | 0.532571 | [
"render",
"object",
"vector",
"solid"
] |
627f2d21ee60dc39df2dbb53689fc64f70a35258 | 1,974 | cpp | C++ | babyrobot/src/object-assembly-agent-master/object_assembly_ros/src/learning_mode_ui.cpp | babyrobot-eu/core-modules | 7e8c006c40153fb649208c9a78fc71aa70243f69 | [
"MIT"
] | 1 | 2019-02-07T15:32:06.000Z | 2019-02-07T15:32:06.000Z | babyrobot/src/object-assembly-agent-master/object_assembly_ros/src/learning_mode_ui.cpp | babyrobot-eu/core-modules | 7e8c006c40153fb649208c9a78fc71aa70243f69 | [
"MIT"
] | 9 | 2020-01-28T22:09:41.000Z | 2022-03-11T23:39:17.000Z | babyrobot/src/object-assembly-agent-master/object_assembly_ros/src/learning_mode_ui.cpp | babyrobot-eu/core-modules | 7e8c006c40153fb649208c9a78fc71aa70243f69 | [
"MIT"
] | null | null | null | #include <learning_mode_ui.hpp>
int BaseUI::gui_main_static(int argc, char* argv[])
{
ui_global->gui_main(argc, argv);
}
void BaseUI::onDisplay_static()
{
ui_global->onDisplay();
}
void BaseUI::onReshape_static(int width, int height)
{
ui_global->onReshape(width, height);
}
void BaseUI::onIdle_static(... | 21.456522 | 101 | 0.666667 | [
"vector",
"model"
] |
627fb491270e68b9f8d501e8d7f8aa7020fc3f6f | 793 | hpp | C++ | include/scenegraph/bvh.hpp | TomCrypto/Lambda | 3dca268839edc0e89b13180ffc362938f6a6ab07 | [
"BSD-2-Clause-FreeBSD"
] | 55 | 2015-03-27T17:44:19.000Z | 2021-03-25T12:04:46.000Z | include/scenegraph/bvh.hpp | TomCrypto/Lambda | 3dca268839edc0e89b13180ffc362938f6a6ab07 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2015-02-17T21:26:32.000Z | 2019-10-21T03:14:27.000Z | include/scenegraph/bvh.hpp | TomCrypto/Lambda | 3dca268839edc0e89b13180ffc362938f6a6ab07 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2017-12-12T03:43:58.000Z | 2018-05-31T12:40:11.000Z | // from https://github.com/brandonpelfrey/Fast-BVH
#ifndef BVH_h
#define BVH_h
#include <util/aabb.hpp>
#include <vector>
#include <stdint.h>
#include <primitives/primitive.hpp>
//! Node descriptor for the flattened tree
struct BVHFlatNode {
AABB bbox;
uint32_t start, nPrims, rightOffset;
};
//! \author Brandon P... | 20.868421 | 89 | 0.741488 | [
"object",
"vector"
] |
628055d20b36cfbe37d34474d0b8d09bcc716278 | 11,018 | cpp | C++ | main.cpp | vildibald/ReducedUniformBicubicSplineInterpolation | 93001447b713e17de2f6ee98824dfbbec7685259 | [
"MIT"
] | null | null | null | main.cpp | vildibald/ReducedUniformBicubicSplineInterpolation | 93001447b713e17de2f6ee98824dfbbec7685259 | [
"MIT"
] | null | null | null | main.cpp | vildibald/ReducedUniformBicubicSplineInterpolation | 93001447b713e17de2f6ee98824dfbbec7685259 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include "ComparisonBenchmarkResult.h"
#include <numeric>
#include "StopWatch.h"
#include "MathFunction.h"
#include "SplineDerivativesAlgorithm.h"
#include <limits>
#include <cmath>
#include "FirstReducedSolver.h"
#include "FullSolver.h"
KnotVector TestVector(const double from... | 41.893536 | 114 | 0.566618 | [
"vector"
] |
62806ee322ad578469babb1de44b9c091d651931 | 15,561 | hh | C++ | pasa-plugins/cdbtools/tgi_cl/gcl/GList.hh | tafujino/PASApipeline | 4e7cac908e8c951c60814e8c26ccc9d69e2cfdb7 | [
"BSD-3-Clause"
] | 8 | 2016-07-12T19:26:06.000Z | 2021-09-23T03:18:09.000Z | pasa-plugins/cdbtools/tgi_cl/gcl/GList.hh | tafujino/PASApipeline | 4e7cac908e8c951c60814e8c26ccc9d69e2cfdb7 | [
"BSD-3-Clause"
] | 5 | 2015-06-23T02:35:23.000Z | 2017-02-02T22:22:17.000Z | pasa-plugins/cdbtools/tgi_cl/gcl/GList.hh | tafujino/PASApipeline | 4e7cac908e8c951c60814e8c26ccc9d69e2cfdb7 | [
"BSD-3-Clause"
] | 3 | 2018-05-18T23:47:52.000Z | 2021-09-23T03:18:11.000Z | //---------------------------------------------------------------------------
/*
Sortable collection of pointers to objects
*/
#ifndef GListHH
#define GListHH
#include "gcl/GBase.h"
#define SLISTINDEX_ERR "GList error:Invalid list index: %d"
#define SLISTCAPACITY_ERR "GList error: invalid capacity: %d"
#define SLIST... | 28.241379 | 88 | 0.612429 | [
"object"
] |
6281c69c42b540408bd7a41036a591394e839090 | 7,114 | cc | C++ | src/vw/Geometry/edgeUtils.cc | maxerbubba/visionworkbench | b06ba0597cd3864bb44ca52671966ca580c02af1 | [
"Apache-2.0"
] | 318 | 2015-01-02T16:37:34.000Z | 2022-03-17T07:12:20.000Z | src/vw/Geometry/edgeUtils.cc | maxerbubba/visionworkbench | b06ba0597cd3864bb44ca52671966ca580c02af1 | [
"Apache-2.0"
] | 39 | 2015-07-30T22:22:42.000Z | 2021-03-23T16:11:55.000Z | src/vw/Geometry/edgeUtils.cc | maxerbubba/visionworkbench | b06ba0597cd3864bb44ca52671966ca580c02af1 | [
"Apache-2.0"
] | 135 | 2015-01-19T00:57:20.000Z | 2022-03-18T13:51:40.000Z | // __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may not use this f... | 31.758929 | 76 | 0.577453 | [
"geometry",
"vector"
] |
62839a9c4f1d364fa02fe2df471b4734c5cd6b0d | 9,237 | cpp | C++ | source/PyNodeProxy.cpp | xzrunner/intention | fdeb61b84d5660bb1c1f40b292fb2dbef0f1e688 | [
"MIT"
] | null | null | null | source/PyNodeProxy.cpp | xzrunner/intention | fdeb61b84d5660bb1c1f40b292fb2dbef0f1e688 | [
"MIT"
] | null | null | null | source/PyNodeProxy.cpp | xzrunner/intention | fdeb61b84d5660bb1c1f40b292fb2dbef0f1e688 | [
"MIT"
] | null | null | null | #define BOOST_PYTHON_STATIC_MODULE
#define BOOST_PYTHON_STATIC_LIB
#include "sopview/PyNodeProxy.h"
#include "sopview/PyLoaderCtx.h"
#include "sopview/RegistNodes.h"
#include "sopview/Evaluator.h"
#include "sopview/SceneTree.h"
#include <blueprint/Connecting.h>
#include <blueprint/CompNode.h>
#include <blueprint/node... | 31.418367 | 115 | 0.656382 | [
"vector"
] |
6284084a2fd2351b1ccface75fb16e9154fd611b | 1,984 | cpp | C++ | TC/623-DIV1-300.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 1 | 2018-08-28T19:58:40.000Z | 2018-08-28T19:58:40.000Z | TC/623-DIV1-300.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 2 | 2017-04-16T00:48:05.000Z | 2017-08-03T20:12:26.000Z | TC/623-DIV1-300.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 4 | 2016-03-04T19:42:00.000Z | 2018-01-08T11:42:00.000Z | #include <bits/stdc++.h>
template<typename T> T gcd(T a, T b) {
if(!b) return a;
return gcd(b, a % b);
}
template<typename T> T lcm(T a, T b) {
return a * b / gcd(a, b);
}
template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; }
template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ... | 26.810811 | 86 | 0.34879 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.