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
d39388be2d159c81c704c2c2afe8e3464982becb
2,720
cpp
C++
LeetCode/100/1690.cpp
K-ona/C-_Training
d54970f7923607bdc54fc13677220d1b3daf09e5
[ "Apache-2.0" ]
1
2021-03-05T14:16:46.000Z
2021-03-05T14:16:46.000Z
LeetCode/100/1690.cpp
K-ona/CPP-Training
aa312970505f67c270257c8a5816e89c10f2d1ce
[ "Apache-2.0" ]
null
null
null
LeetCode/100/1690.cpp
K-ona/CPP-Training
aa312970505f67c270257c8a5816e89c10f2d1ce
[ "Apache-2.0" ]
null
null
null
//created by Kona @VSCode #include<bits/stdc++.h> using namespace std; #define LOCAL_TEST #define rep(i, a, n) for (int i = a; i<n; i++) #define per(i, a, n) for (int i = n - 1; i >= a; i--) #define pb push_back #define mp make_pair #define all(x) (x).begin(),(x).end() #define fi first #define se second #define SZ(x)...
34.43038
176
0.493382
[ "vector" ]
d3948c63ddb4a9714f25fd163d88d23315103736
4,717
cpp
C++
Src/KarlSims/comlib/creature/SimpleCreature.cpp
jjuiddong/KarlSims2
d3384f242ec334246a2eb03de8fb0294109ce39c
[ "MIT" ]
null
null
null
Src/KarlSims/comlib/creature/SimpleCreature.cpp
jjuiddong/KarlSims2
d3384f242ec334246a2eb03de8fb0294109ce39c
[ "MIT" ]
null
null
null
Src/KarlSims/comlib/creature/SimpleCreature.cpp
jjuiddong/KarlSims2
d3384f242ec334246a2eb03de8fb0294109ce39c
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "SimpleCreature.h" #include "PhenotypeNode.h" #include "Joint.h" using namespace evc; using namespace genotype; cSimpleCreature::cSimpleCreature() : m_phRoot(NULL) , m_maxGenerationDepth(2) { } cSimpleCreature::~cSimpleCreature() { Clear(); } bool cSimpleCreature::Init(const string ...
21.538813
102
0.694721
[ "shape" ]
d39ae964a27ae437a9d59d5996c7586401eb9107
5,043
cpp
C++
3rdParty/boost/1.71.0/libs/parameter/test/literate/predicate-requirements0.cpp
rajeev02101987/arangodb
817e6c04cb82777d266f3b444494140676da98e2
[ "Apache-2.0" ]
12,278
2015-01-29T17:11:33.000Z
2022-03-31T21:12:00.000Z
3rdParty/boost/1.71.0/libs/parameter/test/literate/predicate-requirements0.cpp
rajeev02101987/arangodb
817e6c04cb82777d266f3b444494140676da98e2
[ "Apache-2.0" ]
9,469
2015-01-30T05:33:07.000Z
2022-03-31T16:17:21.000Z
3rdParty/boost/1.71.0/libs/parameter/test/literate/predicate-requirements0.cpp
rajeev02101987/arangodb
817e6c04cb82777d266f3b444494140676da98e2
[ "Apache-2.0" ]
892
2015-01-29T16:26:19.000Z
2022-03-20T07:44:30.000Z
#include <boost/parameter.hpp> BOOST_PARAMETER_NAME((_graph, graphs) graph) BOOST_PARAMETER_NAME((_visitor, graphs) visitor) BOOST_PARAMETER_NAME((_root_vertex, graphs) in(root_vertex)) BOOST_PARAMETER_NAME((_index_map, graphs) in(index_map)) BOOST_PARAMETER_NAME((_color_map, graphs) in_out(color_map)) #include <boo...
26.542105
72
0.561372
[ "vector" ]
d39bc6dc4645af1b1a16500fd04a97b516c120ed
8,260
cpp
C++
test/test_dis_ins8060.cpp
tgtakaoka/libasm
41ae8dcca3924c20eb482dc9e034120d8ee966a7
[ "Apache-2.0" ]
15
2020-01-24T14:15:08.000Z
2022-03-29T15:13:16.000Z
test/test_dis_ins8060.cpp
tgtakaoka/libasm
41ae8dcca3924c20eb482dc9e034120d8ee966a7
[ "Apache-2.0" ]
23
2020-05-31T14:13:53.000Z
2021-09-22T17:06:29.000Z
test/test_dis_ins8060.cpp
tgtakaoka/libasm
41ae8dcca3924c20eb482dc9e034120d8ee966a7
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2020 Tadashi G. Takaoka * * 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 agr...
31.891892
75
0.581598
[ "cad" ]
d39d00df81c57321f67281fa497986b4ed9139b6
4,778
hpp
C++
include/Org/BouncyCastle/Crypto/Engines/ElGamalEngine.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
include/Org/BouncyCastle/Crypto/Engines/ElGamalEngine.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
include/Org/BouncyCastle/Crypto/Engines/ElGamalEngine.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: Org.BouncyCastle.Crypto.IAsymmetricBlockCipher #include "Org/BouncyCas...
49.257732
283
0.715781
[ "object" ]
d3a1cc221dd2be9f4e45eab677c70adbae761f10
15,434
hh
C++
hackt_docker/hackt/src/Object/expr/meta_call_traits.hh
broken-wheel/hacktist
36e832ae7dd38b27bca9be7d0889d06054dc2806
[ "MIT" ]
null
null
null
hackt_docker/hackt/src/Object/expr/meta_call_traits.hh
broken-wheel/hacktist
36e832ae7dd38b27bca9be7d0889d06054dc2806
[ "MIT" ]
null
null
null
hackt_docker/hackt/src/Object/expr/meta_call_traits.hh
broken-wheel/hacktist
36e832ae7dd38b27bca9be7d0889d06054dc2806
[ "MIT" ]
null
null
null
/** \file "Object/expr/meta_call_traits.hh" Meta-functions can be dynamically added. This header should be installed (eventually). $Id: meta_call_traits.hh,v 1.2 2010/09/21 00:18:16 fang Exp $ */ #ifndef __HAC_OBJECT_EXPR_META_CALL_TRAITS_H__ #define __HAC_OBJECT_EXPR_META_CALL_TRAITS_H__ #include <iosfwd> #in...
27.909584
88
0.735973
[ "object" ]
d3a1d5a4523cebab4a8799ceba372f7c858be88c
5,467
hpp
C++
src/LogTaskManager.hpp
rock-cpp/new_rock_replay
bc24c181b589533037e626b9361597bf1bf1170f
[ "BSD-3-Clause" ]
null
null
null
src/LogTaskManager.hpp
rock-cpp/new_rock_replay
bc24c181b589533037e626b9361597bf1bf1170f
[ "BSD-3-Clause" ]
null
null
null
src/LogTaskManager.hpp
rock-cpp/new_rock_replay
bc24c181b589533037e626b9361597bf1bf1170f
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include "LogTask.hpp" #include <map> #include <memory> #include <orocos_cpp/orocos_cpp.hpp> #include <pocolog_cpp/MultiFileIndex.hpp> #include <string> #include <vector> /** * @brief Class that handles the instantiation of LogTasks and their ports. * It takes ownership of all instantiated LogTasks an...
30.541899
127
0.649534
[ "object", "vector", "model" ]
d3a880cb33154c685b9cc2fdc0f35cbf4682a3e2
19,603
cpp
C++
src/PartitionSort/SortableRulesetPartitioner.cpp
Nic30/libEveryPacketClassifier
668fd308c09a5c921d93d523870a2e7a42c06d90
[ "MIT" ]
null
null
null
src/PartitionSort/SortableRulesetPartitioner.cpp
Nic30/libEveryPacketClassifier
668fd308c09a5c921d93d523870a2e7a42c06d90
[ "MIT" ]
null
null
null
src/PartitionSort/SortableRulesetPartitioner.cpp
Nic30/libEveryPacketClassifier
668fd308c09a5c921d93d523870a2e7a42c06d90
[ "MIT" ]
null
null
null
#include "SortableRulesetPartitioner.h" #include "../Utilities/IntervalUtilities.h" #include <assert.h> using namespace std; pair<vector<SortableRulesetPartitioner::part>, bool> SortableRulesetPartitioner::IsThisPartitionSortable( const part& apartition, int current_field) { vector<WeightedInterval> wi = Uti...
30.919558
108
0.683365
[ "vector" ]
d3bafff7bd479124eb5650130b778d58fc44620a
3,256
cpp
C++
bezier/src/BezierCurve.cpp
nickveys/opengl-play
a297b4ea804255fd54e4b1e78fb7d79d3e185b23
[ "MIT" ]
null
null
null
bezier/src/BezierCurve.cpp
nickveys/opengl-play
a297b4ea804255fd54e4b1e78fb7d79d3e185b23
[ "MIT" ]
null
null
null
bezier/src/BezierCurve.cpp
nickveys/opengl-play
a297b4ea804255fd54e4b1e78fb7d79d3e185b23
[ "MIT" ]
null
null
null
#include <stdlib.h> #include <stdio.h> #include <GL/glut.h> #include "BezierCurve.h" BezierCurve::BezierCurve() { count = 0; selected = -1; tangentU = -1; } BezierCurve::~BezierCurve() { } void BezierCurve::addControlPoint(int x, int y) { printf("%d,%d\n",x,y); if (count < BC_MAX_PTS) { X[...
22
66
0.512899
[ "vector" ]
d3d10dcea3720b51582a15856574e5aa4c0c734f
989
cpp
C++
Samples/Programs.cpp
RadioShuttle/MBED_Turtle_RadioShuttle-
a2fc34dc731e272d9fde795788e84fcaf7fb5081
[ "Apache-2.0" ]
2
2020-12-20T20:44:28.000Z
2021-04-18T14:57:25.000Z
Samples/Programs.cpp
RadioShuttle/MBED_Turtle_RadioShuttle-
a2fc34dc731e272d9fde795788e84fcaf7fb5081
[ "Apache-2.0" ]
null
null
null
Samples/Programs.cpp
RadioShuttle/MBED_Turtle_RadioShuttle-
a2fc34dc731e272d9fde795788e84fcaf7fb5081
[ "Apache-2.0" ]
1
2021-11-03T02:30:17.000Z
2021-11-03T02:30:17.000Z
/* * Copyright (c) 2020 Helmut Tschemernjak * 31515 Wunstorf (Hannover) Germany * Licensed under the Apache License, Version 2.0); */ #include "main.h" #include "RadioShuttle.h" #include "RadioBase.h" #include "ProgramInterface.h" #include "Blinky.h" #include "NVPEditor.h" #include "LoRaPingPong.h" #include "Rad...
21.977778
61
0.775531
[ "vector" ]
d3d5ee0dc13ce2c45b337154d0b45da2a3326574
2,844
cpp
C++
src/problems/problembase.cpp
vavrines/CSN
bad89df795d1055c89a66e43f9a6ae7e3a463030
[ "MIT" ]
17
2021-05-26T10:25:12.000Z
2022-02-23T13:19:48.000Z
src/problems/problembase.cpp
vavrines/CSN
bad89df795d1055c89a66e43f9a6ae7e3a463030
[ "MIT" ]
9
2021-05-27T15:14:27.000Z
2022-02-09T21:29:53.000Z
src/problems/problembase.cpp
vavrines/CSN
bad89df795d1055c89a66e43f9a6ae7e3a463030
[ "MIT" ]
3
2021-05-12T09:18:15.000Z
2022-02-10T11:39:39.000Z
#include "common/config.hpp" #include "problems/aircavity1d.hpp" #include "problems/checkerboard.hpp" #include "problems/electronrt.hpp" #include "problems/isotropicsource2d.hpp" #include "problems/linesource.hpp" #include "problems/musclebonelung.hpp" #include "problems/phantom2d.hpp" #include "problems/problembase.h...
43.753846
148
0.69339
[ "mesh", "object", "vector" ]
d3d711141c3efb0efbe821bb3be21916cf2be66d
65,084
c++
C++
src/extern/inventor/apps/samples/linkages/LinkClasses.c++
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
2
2020-05-21T07:06:07.000Z
2021-06-28T02:14:34.000Z
src/extern/inventor/apps/samples/linkages/LinkClasses.c++
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
null
null
null
src/extern/inventor/apps/samples/linkages/LinkClasses.c++
OpenXIP/xip-libraries
9f0fef66038b20ff0c81c089d7dd0038e3126e40
[ "Apache-2.0" ]
6
2016-03-21T19:53:18.000Z
2021-06-08T18:06:03.000Z
/* * * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your opti...
28.138348
82
0.675757
[ "geometry", "vector" ]
d3dc1d3972cf7321684544fff1ebb7aa46117dbe
2,463
cpp
C++
src/peanoclaw/statistics/PatchDescriptionDatabase.cpp
unterweg/peanoclaw
2d8b45727e3b26d824f8afc6a8772736176083af
[ "BSD-3-Clause" ]
1
2015-07-14T10:05:52.000Z
2015-07-14T10:05:52.000Z
src/peanoclaw/statistics/PatchDescriptionDatabase.cpp
unterweg/peanoclaw
2d8b45727e3b26d824f8afc6a8772736176083af
[ "BSD-3-Clause" ]
null
null
null
src/peanoclaw/statistics/PatchDescriptionDatabase.cpp
unterweg/peanoclaw
2d8b45727e3b26d824f8afc6a8772736176083af
[ "BSD-3-Clause" ]
1
2019-12-03T15:58:53.000Z
2019-12-03T15:58:53.000Z
/* * PatchDescriptionDatabase.cpp * * Created on: Jun 25, 2013 * Author: kristof */ #include "peanoclaw/statistics/PatchDescriptionDatabase.h" tarch::la::Vector<DIMENSIONS_PLUS_TWO, double> peanoclaw::statistics::PatchDescriptionDatabase::createKey( tarch::la::Vector<DIMENSIONS, double> position, int le...
28.976471
160
0.740966
[ "vector" ]
d3e81808e8ab6d26ea13407a51c8aa8218a25f16
12,715
cpp
C++
demos/contourVTK.cpp
lanl/PISTON
c3a2faa315155b45839b5ca64e3d1d6ae0001527
[ "Unlicense" ]
6
2017-03-30T18:51:20.000Z
2020-08-14T06:52:42.000Z
demos/contourVTK.cpp
pkestene/PISTON
c3a2faa315155b45839b5ca64e3d1d6ae0001527
[ "Unlicense" ]
null
null
null
demos/contourVTK.cpp
pkestene/PISTON
c3a2faa315155b45839b5ca64e3d1d6ae0001527
[ "Unlicense" ]
3
2017-06-21T20:52:36.000Z
2020-03-19T08:28:15.000Z
/* Copyright (c) 2011, Los Alamos National Security, LLC All rights reserved. Copyright 2011. Los Alamos National Security, LLC. This software was produced under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National Laboratory (LANL), which is operated by Los Alamos National Security, LLC for the U.S. Depa...
35.816901
170
0.644986
[ "render" ]
d3ed7593b5208166c1b45a76b3de237ee62b9b81
1,303
cpp
C++
src/systems/chunk_system/chunk_system.cpp
jotask/SurvivalVoxel
d80347309b893750f79d86f9fc00aafd3804783d
[ "MIT" ]
null
null
null
src/systems/chunk_system/chunk_system.cpp
jotask/SurvivalVoxel
d80347309b893750f79d86f9fc00aafd3804783d
[ "MIT" ]
null
null
null
src/systems/chunk_system/chunk_system.cpp
jotask/SurvivalVoxel
d80347309b893750f79d86f9fc00aafd3804783d
[ "MIT" ]
null
null
null
#include "chunk_system.hpp" #include "systems/chunk_system/chunk.hpp" #include "systems/entity_component_system/entity_component_system.hpp" #include "systems/entity_component_system/entity.hpp" #include <imgui.h> #include <algorithm> namespace aiko { ChunkSystem::ChunkSystem() : m_entitySystem(nullptr...
16.705128
83
0.562548
[ "render" ]
d3f6839d1b9fb408e94f047ed3083041273ef320
41,983
cpp
C++
amf/public/samples/CPPSamples/common/VideoPresenterDX12.cpp
nyanmisaka/AMF
a158219a8c63b73a776a067afdebc218509dec17
[ "MIT" ]
null
null
null
amf/public/samples/CPPSamples/common/VideoPresenterDX12.cpp
nyanmisaka/AMF
a158219a8c63b73a776a067afdebc218509dec17
[ "MIT" ]
null
null
null
amf/public/samples/CPPSamples/common/VideoPresenterDX12.cpp
nyanmisaka/AMF
a158219a8c63b73a776a067afdebc218509dec17
[ "MIT" ]
null
null
null
// // Notice Regarding Standards. AMD does not provide a license or sublicense to // any Intellectual Property Rights relating to any standards, including but not // limited to any audio and/or video codec technologies such as MPEG-2, MPEG-4; // AVC/H.264; HEVC/H.265; AAC decode/FFMPEG; AAC encode/FFMPEG; VC-1; a...
42.579108
213
0.602053
[ "render" ]
108e1582a9258383e223b9e7de26f684e5e40dca
5,125
cpp
C++
MathLib/LinearRegression.cpp
chunkeey/FEBioStudio
f342d4ac2bc3581db792373c4265454109af92b3
[ "MIT" ]
27
2020-06-25T06:34:52.000Z
2022-03-11T08:58:57.000Z
MathLib/LinearRegression.cpp
chunkeey/FEBioStudio
f342d4ac2bc3581db792373c4265454109af92b3
[ "MIT" ]
42
2020-06-15T18:40:57.000Z
2022-03-24T05:38:54.000Z
MathLib/LinearRegression.cpp
chunkeey/FEBioStudio
f342d4ac2bc3581db792373c4265454109af92b3
[ "MIT" ]
12
2020-06-27T13:58:57.000Z
2022-03-24T05:39:10.000Z
/*This file is part of the FEBio Studio source code and is licensed under the MIT license listed below. See Copyright-FEBio-Studio.txt for details. Copyright (c) 2020 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any per...
22.379913
98
0.625756
[ "vector" ]
109189eee1ced8b8d85bb4a1961d8c316a06af9a
18,239
cpp
C++
src/mainwindow.cpp
msebastien/QuickDraw
8e370e9f5f96645c97d5d8b5f5e3fabf928df8d5
[ "Apache-2.0" ]
null
null
null
src/mainwindow.cpp
msebastien/QuickDraw
8e370e9f5f96645c97d5d8b5f5e3fabf928df8d5
[ "Apache-2.0" ]
null
null
null
src/mainwindow.cpp
msebastien/QuickDraw
8e370e9f5f96645c97d5d8b5f5e3fabf928df8d5
[ "Apache-2.0" ]
null
null
null
#include <QCoreApplication> #include "mainwindow.h" #include "scribblearea.h" #include "newimagedialog.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { createActions(); createMenus(); createMainToolBar(); // TOOLS mode = QD::DRAW; penWidth = 1; penColor = Qt::blue; cr...
34.873805
221
0.632217
[ "solid" ]
10a2a901a4b89570cb7fe57f4290b631473c50a4
11,683
cpp
C++
Library/src/beat_patterns/Pattern.cpp
jplflyer/BeatPatterns
6d6b7e5b9bdab9c6636444f963aef324ebf03f70
[ "MIT" ]
1
2020-01-26T23:26:34.000Z
2020-01-26T23:26:34.000Z
Library/src/beat_patterns/Pattern.cpp
jplflyer/BeatPatterns
6d6b7e5b9bdab9c6636444f963aef324ebf03f70
[ "MIT" ]
null
null
null
Library/src/beat_patterns/Pattern.cpp
jplflyer/BeatPatterns
6d6b7e5b9bdab9c6636444f963aef324ebf03f70
[ "MIT" ]
null
null
null
#include <cstdlib> #include <iostream> #include <boost/filesystem.hpp> #include <showpage/StringMethods.h> #include "Pattern.h" using std::cout; using std::endl; using std::string; using JSON = nlohmann::json; namespace BeatPatterns { /** * Constructor. */ Pattern::Pattern() { } Pattern::~Pattern() { if (t...
29.428212
136
0.59317
[ "object", "transform" ]
10a4fc061f0581275d512c2df2ecf504977a3def
22,574
cpp
C++
engine/Fury/Pipeline.cpp
sindney/fury3d
a5880af615c3225e279eb63a9193c7ca8b5fcf49
[ "MIT" ]
95
2016-01-29T08:58:02.000Z
2022-02-07T02:42:20.000Z
engine/Fury/Pipeline.cpp
sindney/fury3d
a5880af615c3225e279eb63a9193c7ca8b5fcf49
[ "MIT" ]
3
2017-07-30T02:21:50.000Z
2018-10-12T13:55:32.000Z
engine/Fury/Pipeline.cpp
sindney/fury3d
a5880af615c3225e279eb63a9193c7ca8b5fcf49
[ "MIT" ]
30
2016-01-29T09:48:34.000Z
2021-11-09T13:15:36.000Z
#include <algorithm> #include <sstream> #include "Fury/BoxBounds.h" #include "Fury/Camera.h" #include "Fury/Log.h" #include "Fury/Light.h" #include "Fury/EnumUtil.h" #include "Fury/EntityManager.h" #include "Fury/Scene.h" #include "Fury/FileUtil.h" #include "Fury/Frustum.h" #include "Fury/GLLoader.h" #inc...
30.179144
217
0.677549
[ "mesh", "object", "vector", "transform" ]
10a56e88a9e0051a50b22a680a57141e638b7631
1,328
cpp
C++
Minecraft/src/Shader.cpp
Aether2606/MinecraftWeek
9fce8567b18fae38b97313ecb2243ea88b11b154
[ "MIT" ]
2
2021-02-26T23:11:16.000Z
2021-05-22T17:33:31.000Z
Minecraft/src/Shader.cpp
Aether2606/MinecraftWeek
9fce8567b18fae38b97313ecb2243ea88b11b154
[ "MIT" ]
1
2021-05-22T07:16:11.000Z
2021-05-22T17:33:56.000Z
Minecraft/src/Shader.cpp
Aether2606/MinecraftWeek
9fce8567b18fae38b97313ecb2243ea88b11b154
[ "MIT" ]
null
null
null
#include "Shader.h" void Shader::Compile(const char* vs, const char* fs) { unsigned int vertex = glCreateShader(GL_VERTEX_SHADER); unsigned int fragment = glCreateShader(GL_FRAGMENT_SHADER); glShaderSource(vertex, 1, &vs, nullptr); glShaderSource(fragment, 1, &fs, nullptr); glCompileShader(vertex); glCompileSha...
24.592593
93
0.722139
[ "vector" ]
10a8dd258a7188fbb2975519b76f90adbf0007c7
6,593
hpp
C++
include/containers/insert.hpp
davidstone/bounded-integer
d4f9a88a12174ca8382af60b00c5affd19aa8632
[ "BSL-1.0" ]
44
2020-10-03T21:37:52.000Z
2022-03-26T10:08:46.000Z
include/containers/insert.hpp
davidstone/bounded-integer
d4f9a88a12174ca8382af60b00c5affd19aa8632
[ "BSL-1.0" ]
1
2021-01-01T23:22:39.000Z
2021-01-01T23:22:39.000Z
include/containers/insert.hpp
davidstone/bounded-integer
d4f9a88a12174ca8382af60b00c5affd19aa8632
[ "BSL-1.0" ]
null
null
null
// Copyright David Stone 2018. // 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) #pragma once #include <containers/algorithms/copy.hpp> #include <containers/algorithms/generate.hpp> #include <containers/algorithm...
46.758865
182
0.78553
[ "vector" ]
10ade2434116f5778a1fec0df9c1b37cf7154217
2,058
cpp
C++
Others/2SAT.cpp
lrussell21/ICPC_Template_Code
0aa5f202c17e2fd8101821685c9ce459a15e2f96
[ "MIT" ]
1
2021-04-01T16:31:49.000Z
2021-04-01T16:31:49.000Z
Others/2SAT.cpp
Elsaadany427/Competitive-Programming
7498c26c1fdf6e74a774df6f3a9fc8f9c550bbd5
[ "MIT" ]
null
null
null
Others/2SAT.cpp
Elsaadany427/Competitive-Programming
7498c26c1fdf6e74a774df6f3a9fc8f9c550bbd5
[ "MIT" ]
null
null
null
// 2-SAT Problem // Time complexity: O(n + m), using Kosaraju to find SCCs // Problem link: https://cses.fi/problemset/task/1684/ #include <bits/stdc++.h> using namespace std; #define ar array #define ll long long const int MAX_N = 1e5 + 1; const int MOD = 1e9 + 7; const int INF = 1e9; const ll LINF = 1e18; int n,...
23.655172
63
0.437804
[ "vector" ]
10aef2b9bcab9b3cd565d694ed2a0d0b7779c6c8
902
hpp
C++
src/org/apache/poi/hssf/record/crypto/Biff8EncryptionKey.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
src/org/apache/poi/hssf/record/crypto/Biff8EncryptionKey.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
src/org/apache/poi/hssf/record/crypto/Biff8EncryptionKey.hpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
// Generated from /POI/java/org/apache/poi/hssf/record/crypto/Biff8EncryptionKey.java #pragma once #include <java/lang/fwd-POI.hpp> #include <org/apache/poi/hssf/record/crypto/fwd-POI.hpp> #include <java/lang/Object.hpp> struct default_init_tag; class poi::hssf::record::crypto::Biff8EncryptionKey final : public...
23.128205
85
0.71286
[ "object" ]
10b9a7075c4235e2faa4aeae1f6a8a5338139676
6,116
cpp
C++
sender/sendwin.cpp
hias222/serial
4b638e4875d8ff7b3aef3c09a80f0142c4dcbf2c
[ "MIT" ]
null
null
null
sender/sendwin.cpp
hias222/serial
4b638e4875d8ff7b3aef3c09a80f0142c4dcbf2c
[ "MIT" ]
null
null
null
sender/sendwin.cpp
hias222/serial
4b638e4875d8ff7b3aef3c09a80f0142c4dcbf2c
[ "MIT" ]
null
null
null
#include <stdio.h> #include <string.h> #include <string> // Linux headers #include <fcntl.h> // Contains file controls like O_RDWR #include <errno.h> // Error integer and strerror() function // https://gitlab.com/Teuniz/RS-232/-/tree/master #ifdef _WIN32 #include <Windows.h> #include <assert.h> #endif #define RS232...
35.149425
700
0.537443
[ "object" ]
10bf3417cae583fe4d6552231708bdfa0fe66783
3,955
cc
C++
planner/FD/src/search/open_lists/tiebreaking_open_list.cc
karthikv792/PlanningAssistance
5693c844e9067591ea1414ee9586bcd2dfff6f51
[ "MIT" ]
4
2019-04-23T10:41:35.000Z
2019-10-27T05:14:42.000Z
planner/FD/src/search/open_lists/tiebreaking_open_list.cc
karthikv792/PlanningAssistance
5693c844e9067591ea1414ee9586bcd2dfff6f51
[ "MIT" ]
null
null
null
planner/FD/src/search/open_lists/tiebreaking_open_list.cc
karthikv792/PlanningAssistance
5693c844e9067591ea1414ee9586bcd2dfff6f51
[ "MIT" ]
4
2018-01-16T00:00:22.000Z
2019-11-01T23:35:01.000Z
// HACK! Ignore this if used as a top-level compile target. #ifdef OPEN_LISTS_TIEBREAKING_OPEN_LIST_H #include "../evaluation_context.h" #include "../option_parser.h" #include "../scalar_evaluator.h" #include <iostream> #include <cassert> #include <limits> using namespace std; template<class Entry> OpenList<Entry>...
29.962121
82
0.694564
[ "vector" ]
10cc7efb49e7e2b9dfae95c6a80a5597d4f1f15a
1,683
cc
C++
Codeforces/Pi/Problem D/D.cc
VastoLorde95/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
170
2017-07-25T14:47:29.000Z
2022-01-26T19:16:31.000Z
Codeforces/Pi/Problem D/D.cc
navodit15/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
null
null
null
Codeforces/Pi/Problem D/D.cc
navodit15/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
55
2017-07-28T06:17:33.000Z
2021-10-31T03:06:22.000Z
#include <cstdio> #include <iostream> #include <cmath> #include <algorithm> #include <cstring> #include <map> #include <set> #include <vector> #include <utility> #include <queue> #include <stack> #define sd(x) scanf("%d",&x) #define sd2(x,y) scanf("%d%d",&x,&y) #define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z) #define fi f...
20.777778
79
0.532383
[ "vector" ]
10d18dfdabeb8e1fe7e8bd9394f89e6c2a63a1dd
2,586
hpp
C++
stapl_release/stapl/utility/tuple.hpp
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
stapl_release/stapl/utility/tuple.hpp
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
stapl_release/stapl/utility/tuple.hpp
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
/* // Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a // component of the Texas A&M University System. // All rights reserved. // The information and source code contained herein is the exclusive // property of TEES and may not be disclosed, examined or reproduced // in whole or in part withou...
39.181818
74
0.745553
[ "transform" ]
10d80fd24d3a328e4509633aa0b0c06e386cd66a
4,609
cpp
C++
GraphicsTechniquesInSiv3D/VarianceShadowMap.cpp
tana/GraphicsTechniquesInSiv3D
a129a673eefdf9a7691338593b914f0432e6ff11
[ "MIT" ]
1
2021-12-12T09:22:33.000Z
2021-12-12T09:22:33.000Z
GraphicsTechniquesInSiv3D/VarianceShadowMap.cpp
tana/GraphicsTechniquesInSiv3D
a129a673eefdf9a7691338593b914f0432e6ff11
[ "MIT" ]
null
null
null
GraphicsTechniquesInSiv3D/VarianceShadowMap.cpp
tana/GraphicsTechniquesInSiv3D
a129a673eefdf9a7691338593b914f0432e6ff11
[ "MIT" ]
null
null
null
#include "VarianceShadowMap.h" const int shadowMapSize = 1024; // シャドウマップの解像度 const double shadowMapScreenSize = 50; // NearClipとFarClipの意味が逆になっている? const double shadowMapNearClip = 1000; const double shadowMapFarClip = 0.1; const double sunDistance = 50; // デプスの値の大小が逆になっている? const Float2 shadowMapDefaultValue{ 0.0f,...
36.579365
129
0.76893
[ "model" ]
10dd4ac830bf389d5adf4f6bf19b93ca8fd2151f
3,101
cpp
C++
src/atlas/utils/cameras.cpp
marovira/atlas
ccc9ec2449a9392e41a25a6c638302b940f5e5da
[ "MIT" ]
10
2016-11-30T08:44:55.000Z
2022-02-05T16:47:05.000Z
src/atlas/utils/cameras.cpp
marovira/atlas
ccc9ec2449a9392e41a25a6c638302b940f5e5da
[ "MIT" ]
12
2016-01-13T20:31:11.000Z
2020-03-27T19:14:03.000Z
src/atlas/utils/cameras.cpp
marovira/atlas
ccc9ec2449a9392e41a25a6c638302b940f5e5da
[ "MIT" ]
10
2016-01-07T16:22:36.000Z
2020-01-16T05:58:48.000Z
#include "cameras.hpp" #include <zeus/float.hpp> namespace atlas::utils { using namespace atlas::math; void SimpleCamera::set_movement_type(Movements movement_type) { m_movement = movement_type; } void SimpleCamera::on_mouse_down(math::Point2 const& point) { m_last_pos = poin...
26.504274
78
0.493712
[ "vector" ]
10ddb9ff7d2108dcf6f40345f062d1005cc02773
7,372
cpp
C++
src/ast/builder.cpp
yandroskaos/oolc
8fa77c44ab090a78b7e3d184e3bfeb00786dbe0f
[ "MIT" ]
null
null
null
src/ast/builder.cpp
yandroskaos/oolc
8fa77c44ab090a78b7e3d184e3bfeb00786dbe0f
[ "MIT" ]
null
null
null
src/ast/builder.cpp
yandroskaos/oolc
8fa77c44ab090a78b7e3d184e3bfeb00786dbe0f
[ "MIT" ]
null
null
null
#include <ast/builder.h> #include <ast/structure_nodes.h> #include <ast/statement_nodes.h> #include <ast/expression_nodes.h> #include <ast/parser_nodes.h> #include <compiler.h> #include <iostream> using namespace Parsing; using namespace AST; Node* Builder::ms_program = 0; Symbols::A...
20.766197
126
0.658302
[ "vector" ]
10ddf607ac6db9c63b665c603879a69387924fcf
450
cpp
C++
Day_11.cpp
Devang-25/Leetcode-June-Challenge
9a46ecc2db8198d0ee81606f53d4a6a4cd27151d
[ "MIT" ]
1
2020-07-04T15:11:09.000Z
2020-07-04T15:11:09.000Z
Day_11.cpp
Devang-25/Leetcode-June-Challenge
9a46ecc2db8198d0ee81606f53d4a6a4cd27151d
[ "MIT" ]
null
null
null
Day_11.cpp
Devang-25/Leetcode-June-Challenge
9a46ecc2db8198d0ee81606f53d4a6a4cd27151d
[ "MIT" ]
null
null
null
// Time Complexity : O(N) (Single Pass) // Space Complexity : O(1) class Solution { public: void sortColors(vector<int>& nums) { int n=nums.size(); int left=0, right = n-1,curr=0; while(curr<=right){ if(nums[curr]==2) swap(nums[curr],nums[right--]); el...
25
48
0.466667
[ "vector" ]
10df7a05335ef70b8b7be51203f6cbc2812b0bbc
4,241
cc
C++
mindspore/ccsrc/minddata/dataset/kernels/ir/vision/random_crop_decode_resize_ir.cc
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
1
2022-02-23T09:13:43.000Z
2022-02-23T09:13:43.000Z
mindspore/ccsrc/minddata/dataset/kernels/ir/vision/random_crop_decode_resize_ir.cc
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
null
null
null
mindspore/ccsrc/minddata/dataset/kernels/ir/vision/random_crop_decode_resize_ir.cc
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
null
null
null
/** * Copyright 2020-2021 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
41.578431
119
0.731195
[ "vector" ]
10e0d8686056c06f7953fb3e921ed23b494e0242
22,225
cpp
C++
KFTools/KFParse/KFParse.cpp
282951387/KFrame
5d6e953f7cc312321c36632715259394ca67144c
[ "Apache-2.0" ]
1
2021-04-26T09:31:32.000Z
2021-04-26T09:31:32.000Z
KFTools/KFParse/KFParse.cpp
282951387/KFrame
5d6e953f7cc312321c36632715259394ca67144c
[ "Apache-2.0" ]
null
null
null
KFTools/KFParse/KFParse.cpp
282951387/KFrame
5d6e953f7cc312321c36632715259394ca67144c
[ "Apache-2.0" ]
null
null
null
#include "KFParse.h" #include "Utf8ToGbk.hpp" #include "KFUtility/KFUtility.h" #include "KFUtility/KFDate.h" #include "KFrame.h" namespace KFrame { KFFile* KFParse::AddFile( std::string& name ) { return &_files[ name ]; } bool KFParse::LoadFromExcel( const char* file, bool utf8, uint32 savefl...
32.540264
147
0.454263
[ "transform" ]
10e2327bb7aa22af966c425bf9945a2ddd14b52e
15,232
cxx
C++
src/ResourceAddress.cxx
nn6n/beng-proxy
2cf351da656de6fbace3048ee90a8a6a72f6165c
[ "BSD-2-Clause" ]
1
2022-03-15T22:54:39.000Z
2022-03-15T22:54:39.000Z
src/ResourceAddress.cxx
nn6n/beng-proxy
2cf351da656de6fbace3048ee90a8a6a72f6165c
[ "BSD-2-Clause" ]
null
null
null
src/ResourceAddress.cxx
nn6n/beng-proxy
2cf351da656de6fbace3048ee90a8a6a72f6165c
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright 2007-2021 CM4all GmbH * All rights reserved. * * author: Max Kellermann <mk@cm4all.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source code must retain the abo...
19.453384
78
0.678571
[ "object" ]
10ea5b0352b80abb0a170249fcf5693acb63194d
1,036
cpp
C++
Binary Trees/15_boundary_traversal.cpp
ritikrajdev/450DSA
a9efa8c8be781fd7b101407ac807a83b8a0929f4
[ "MIT" ]
null
null
null
Binary Trees/15_boundary_traversal.cpp
ritikrajdev/450DSA
a9efa8c8be781fd7b101407ac807a83b8a0929f4
[ "MIT" ]
null
null
null
Binary Trees/15_boundary_traversal.cpp
ritikrajdev/450DSA
a9efa8c8be781fd7b101407ac807a83b8a0929f4
[ "MIT" ]
null
null
null
class Solution { vector<int> v; public: void left(Node* node) { if (!node) return; if (!node->left && !node->right) return; v.push_back(node->data); if (node->left) left(node->left); else left(node->right); } ...
20.72
65
0.432432
[ "vector" ]
10ed418f73741cbe46f7c78e5193da07fd1013a1
34,265
cpp
C++
src/aten/src/ATen/utils/LoadUtils.cpp
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
src/aten/src/ATen/utils/LoadUtils.cpp
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
src/aten/src/ATen/utils/LoadUtils.cpp
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2020 Huawei Technologies Co., Ltd // All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://opensource.org/licenses/BSD-3-Clause // // Unless requir...
31.785714
173
0.599445
[ "shape", "vector" ]
10efe8876145a82859b87f1f49c964fcc21062e5
3,787
cpp
C++
src/ngraph/runtime/executable_cache.cpp
pqLee/ngraph
ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7
[ "Apache-2.0" ]
null
null
null
src/ngraph/runtime/executable_cache.cpp
pqLee/ngraph
ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7
[ "Apache-2.0" ]
null
null
null
src/ngraph/runtime/executable_cache.cpp
pqLee/ngraph
ddfa95b26a052215baf9bf5aa1ca5d1f92aa00f7
[ "Apache-2.0" ]
null
null
null
//***************************************************************************** // Copyright 2017-2020 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://w...
29.130769
100
0.605492
[ "shape", "vector" ]
10f408231bf12a26dca0726ffef387eafbbc165a
61,876
cc
C++
alljoyn_core/unit_test/SecurityWildCardPolicyRulesTest.cc
liuxiang88/core-alljoyn
549c966482d9b89da84aa528117584e7049916cb
[ "Apache-2.0" ]
33
2018-01-12T00:37:43.000Z
2022-03-24T02:31:36.000Z
alljoyn_core/unit_test/SecurityWildCardPolicyRulesTest.cc
liuxiang88/core-alljoyn
549c966482d9b89da84aa528117584e7049916cb
[ "Apache-2.0" ]
1
2020-01-05T05:51:27.000Z
2020-01-05T05:51:27.000Z
alljoyn_core/unit_test/SecurityWildCardPolicyRulesTest.cc
liuxiang88/core-alljoyn
549c966482d9b89da84aa528117584e7049916cb
[ "Apache-2.0" ]
30
2017-12-13T23:24:00.000Z
2022-01-25T02:11:19.000Z
/****************************************************************************** * Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source * Project (AJOSP) Contributors and others. * * SPDX-License-Identifier: Apache-2.0 * * All rights reserved. This program and the accompanying material...
44.515108
158
0.671617
[ "object" ]
10f6ac50d8f4086a4eb8f7410037399c48bc8128
6,623
cpp
C++
Test/Unit/future/LazyOneTimeInitializerTest.cpp
erikzenker/asyncly
550dbec10c3e74c10303345e44ad7c9f98e3db06
[ "ECL-2.0", "Apache-2.0" ]
23
2020-02-25T14:11:58.000Z
2021-09-23T04:32:09.000Z
Test/Unit/future/LazyOneTimeInitializerTest.cpp
erikzenker/asyncly
550dbec10c3e74c10303345e44ad7c9f98e3db06
[ "ECL-2.0", "Apache-2.0" ]
2
2020-03-11T14:04:19.000Z
2020-11-09T20:50:41.000Z
Test/Unit/future/LazyOneTimeInitializerTest.cpp
erikzenker/asyncly
550dbec10c3e74c10303345e44ad7c9f98e3db06
[ "ECL-2.0", "Apache-2.0" ]
9
2020-02-25T14:12:39.000Z
2021-12-28T01:30:48.000Z
/* * Copyright 2019 LogMeIn * * 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 w...
32.307317
100
0.670995
[ "vector" ]
10fe5a12fc9a154f29b4faa50b250410e5214c84
823
cpp
C++
regression/esbmc-cpp/vector/algorithm34/main.cpp
shmarovfedor/esbmc
3226a3d68b009d44b9535a993ac0f25e1a1fbedd
[ "BSD-3-Clause" ]
143
2015-06-22T12:30:01.000Z
2022-03-21T08:41:17.000Z
regression/esbmc-cpp/vector/algorithm34/main.cpp
shmarovfedor/esbmc
3226a3d68b009d44b9535a993ac0f25e1a1fbedd
[ "BSD-3-Clause" ]
542
2017-06-02T13:46:26.000Z
2022-03-31T16:35:17.000Z
regression/esbmc-cpp/vector/algorithm34/main.cpp
shmarovfedor/esbmc
3226a3d68b009d44b9535a993ac0f25e1a1fbedd
[ "BSD-3-Clause" ]
81
2015-10-21T22:21:59.000Z
2022-03-24T14:07:55.000Z
// reverse_copy example #include <iostream> #include <cassert> #include <vector> using namespace std; template<class BidIt, class OutIt> OutIt reverse_copy(BidIt first, BidIt last, OutIt dest) { while (first != last) *dest++ = *--last; return dest; } template<class BidIt, class OutIt> OutIt reverse_copy(BidIt *fi...
20.575
59
0.63548
[ "vector" ]
10fea6517cbf46bc7ba8375b9d00cf75e2d0125b
10,863
cpp
C++
Source/sad.cpp
cloutech/NavalWarfare
793e697711d2438e03462ae55d3714cbeef43638
[ "BSD-3-Clause" ]
null
null
null
Source/sad.cpp
cloutech/NavalWarfare
793e697711d2438e03462ae55d3714cbeef43638
[ "BSD-3-Clause" ]
null
null
null
Source/sad.cpp
cloutech/NavalWarfare
793e697711d2438e03462ae55d3714cbeef43638
[ "BSD-3-Clause" ]
null
null
null
/* Cpp File - Search and Destroy Algorithmus Project: Schiffeversenken Advanced Author: Christoph Clouser Beschreibung: Diese Klasse beschreibt einen Search and Destroy Algorithmus (sad). Er ist ausgelegt auf ein Koordinatensysem von x aus [0,9] und y aus [A,J] Changelog/Version: 0.1 File created, to-dos 0....
30.6
132
0.576636
[ "vector" ]
10ff6245c470cfcc2ba4d087749bbf9a96f9f408
3,126
cpp
C++
codes/SPOJ/SPOJ_GSS4.cpp
chessbot108/solved-problems
0945be829a8ea9f0d5896c89331460d70d076691
[ "MIT" ]
null
null
null
codes/SPOJ/SPOJ_GSS4.cpp
chessbot108/solved-problems
0945be829a8ea9f0d5896c89331460d70d076691
[ "MIT" ]
null
null
null
codes/SPOJ/SPOJ_GSS4.cpp
chessbot108/solved-problems
0945be829a8ea9f0d5896c89331460d70d076691
[ "MIT" ]
null
null
null
//chtholly and emilia will carry me to cm #include <iostream> #include <cstdio> #include <cstring> #include <utility> #include <cassert> #include <algorithm> #include <vector> #include <array> #include <tuple> #include <cmath> #define ll long long #define lb long double #define sz(vec) ((int)(vec.size())) #define all(...
27.910714
135
0.533269
[ "vector" ]
80019af9a93a7ccb26e1bc128ebe3a394c8bdcd8
11,459
hpp
C++
src/color/rgb/get/hue.hpp
ehtec/color
aa6d8c796303d1f3cfd7361978bfa58eac808b6e
[ "Apache-2.0" ]
120
2015-12-31T22:30:14.000Z
2022-03-29T15:08:01.000Z
src/color/rgb/get/hue.hpp
ehtec/color
aa6d8c796303d1f3cfd7361978bfa58eac808b6e
[ "Apache-2.0" ]
6
2016-08-22T02:14:56.000Z
2021-11-06T22:39:52.000Z
src/color/rgb/get/hue.hpp
ehtec/color
aa6d8c796303d1f3cfd7361978bfa58eac808b6e
[ "Apache-2.0" ]
23
2016-02-03T01:56:26.000Z
2021-09-28T16:36:27.000Z
#ifndef color_rgb_get_hue #define color_rgb_get_hue // ::color::get::hue( c ) //!< WARNING return number match ::color::trait::bound< ::color::rgb< _type_ > ::category_type >( 1 ) // ::color::get::constant::rgb::hue::formula_enum #include "../category.hpp" #include "../place/place.hpp" #include "../../gener...
41.368231
138
0.564796
[ "model" ]
80042d005b86d480ea417a7573d52f88faba5375
28,677
cpp
C++
11_learning_materials/stanford_self_driving_car/planner/aw_topology/src/aw_Vehicle.cpp
EatAllBugs/autonomous_learning
02ff7b0fa7b131a2f2203505ef5cc7e43b40bc47
[ "MIT" ]
14
2021-09-01T14:25:45.000Z
2022-02-21T08:49:57.000Z
11_learning_materials/stanford_self_driving_car/planner/aw_topology/src/aw_Vehicle.cpp
yinflight/autonomous_learning
02ff7b0fa7b131a2f2203505ef5cc7e43b40bc47
[ "MIT" ]
null
null
null
11_learning_materials/stanford_self_driving_car/planner/aw_topology/src/aw_Vehicle.cpp
yinflight/autonomous_learning
02ff7b0fa7b131a2f2203505ef5cc7e43b40bc47
[ "MIT" ]
3
2021-10-10T00:58:29.000Z
2022-01-23T13:16:09.000Z
/******************************************************** Stanford Driving Software Copyright (c) 2011 Stanford University All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions...
34.42617
160
0.657147
[ "vector" ]
80083b7854fdf37c0b23e21e976aa89df636c856
12,086
cpp
C++
mapnikvt/src/mapnikvt/ShieldSymbolizer.cpp
CartoDB/mobile-carto-libs
c1def8e8d91a98adff1aaef440c5d207be8ffe52
[ "BSD-3-Clause" ]
6
2018-06-27T17:43:35.000Z
2021-06-29T18:50:49.000Z
mapnikvt/src/mapnikvt/ShieldSymbolizer.cpp
CartoDB/mobile-carto-libs
c1def8e8d91a98adff1aaef440c5d207be8ffe52
[ "BSD-3-Clause" ]
22
2019-04-10T06:38:09.000Z
2022-01-20T08:12:02.000Z
mapnikvt/src/mapnikvt/ShieldSymbolizer.cpp
CartoDB/mobile-carto-libs
c1def8e8d91a98adff1aaef440c5d207be8ffe52
[ "BSD-3-Clause" ]
5
2019-03-12T10:25:20.000Z
2021-12-28T10:18:56.000Z
#include "ShieldSymbolizer.h" #include <vector> #include <tuple> namespace carto { namespace mvt { ShieldSymbolizer::FeatureProcessor ShieldSymbolizer::createFeatureProcessor(const ExpressionContext& exprContext, const SymbolizerContext& symbolizerContext) const { std::shared_ptr<const vt::Font> font = ge...
62.621762
372
0.603094
[ "vector" ]
800a64a9a2836d99028654421574a119719232df
5,197
cpp
C++
oli/vii2014patrate/main.cpp
rockoanna/nirvana
81fadbe66b0a24244feec312c6f7fe5c8effccaa
[ "MIT" ]
null
null
null
oli/vii2014patrate/main.cpp
rockoanna/nirvana
81fadbe66b0a24244feec312c6f7fe5c8effccaa
[ "MIT" ]
12
2019-09-04T10:38:24.000Z
2019-12-08T18:09:41.000Z
oli/vii2014patrate/main.cpp
rockoanna/nirvana
81fadbe66b0a24244feec312c6f7fe5c8effccaa
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; typedef int64_t i64; typedef int32_t i32; typedef uint64_t u64; typedef uint32_t u32; typedef string st; typedef stringstream ss; typedef double db; typedef vector<i64> vl; typedef vector<i32> vi; typedef vector<char> vc; typedef vector<db> vd; typedef vector<st> vs; t...
23.40991
80
0.219357
[ "vector" ]
80155e360f573d1a11a4ecf4d4b152dc3985722d
389
cpp
C++
acmicpc.net/source/2576.cpp
tdm1223/Algorithm
994149afffa21a81e38b822afcfc01f677d9e430
[ "MIT" ]
7
2019-06-26T07:03:32.000Z
2020-11-21T16:12:51.000Z
acmicpc.net/source/2576.cpp
tdm1223/Algorithm
994149afffa21a81e38b822afcfc01f677d9e430
[ "MIT" ]
null
null
null
acmicpc.net/source/2576.cpp
tdm1223/Algorithm
994149afffa21a81e38b822afcfc01f677d9e430
[ "MIT" ]
9
2019-02-28T03:34:54.000Z
2020-12-18T03:02:40.000Z
// 2576. 홀수 // 2019.09.03 // 입문용 #include<iostream> #include<vector> using namespace std; int main() { vector<int> v(7); int sum = 0; int min = 101; for (int i = 0; i < 7; i++) { cin>>v[i]; if (v[i] % 2 == 1) { sum += v[i]; min = min > v[i] ? v[i] : min; } } if (min == 101) { cout << -1 << end...
11.787879
37
0.467866
[ "vector" ]
801cc187c4ce6cacf485e2f0a2129f1630bbc4c4
53,832
cpp
C++
test/reg-test/fam-api-reg/fam_min_max_atomics_mt_reg_test.cpp
faizan-barmawer/OpenFAM-1
9ecf4208c7496c8fdf8d311cd460ef1566a8e459
[ "BSD-3-Clause" ]
null
null
null
test/reg-test/fam-api-reg/fam_min_max_atomics_mt_reg_test.cpp
faizan-barmawer/OpenFAM-1
9ecf4208c7496c8fdf8d311cd460ef1566a8e459
[ "BSD-3-Clause" ]
null
null
null
test/reg-test/fam-api-reg/fam_min_max_atomics_mt_reg_test.cpp
faizan-barmawer/OpenFAM-1
9ecf4208c7496c8fdf8d311cd460ef1566a8e459
[ "BSD-3-Clause" ]
null
null
null
/* * fam_min_max_atomics_mt_reg_test.cpp * Copyright (c) 2019 Hewlett Packard Enterprise Development, LP. 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. Redistributions of source code must ...
36.947152
94
0.619223
[ "model" ]
801d7aef3e4173d17b78239de77a9a18ccd53369
770
hpp
C++
test/data/UserList.hpp
lifeich1/jncxx
181b8e4d4cb5d61060c12c8ce5424821df211193
[ "WTFPL" ]
null
null
null
test/data/UserList.hpp
lifeich1/jncxx
181b8e4d4cb5d61060c12c8ce5424821df211193
[ "WTFPL" ]
null
null
null
test/data/UserList.hpp
lifeich1/jncxx
181b8e4d4cb5d61060c12c8ce5424821df211193
[ "WTFPL" ]
null
null
null
#pragma once #include <nlohmann/json.hpp> #include "helper.hpp" #include <stdexcept> #include <vector> #include <string> namespace my { namespace data { struct User; struct UserList; struct UserList { std::shared_ptr<std::vector<my::data::User>> users; UserList() = default; }; } // namespace my } // name...
20.263158
82
0.637662
[ "vector" ]
8036e140588a62791705c37027994c8a157c91b8
3,929
cpp
C++
src/core/config.cpp
mr-pandabear/bamboo
568ad3ce4303be0ba963e3bdfbd644b9c04fe7f7
[ "MIT" ]
1
2022-01-10T12:25:25.000Z
2022-01-10T12:25:25.000Z
src/core/config.cpp
mr-pandabear/bamboo
568ad3ce4303be0ba963e3bdfbd644b9c04fe7f7
[ "MIT" ]
29
2022-01-08T18:31:46.000Z
2022-03-04T21:59:34.000Z
src/core/config.cpp
mr-pandabear/bamboo
568ad3ce4303be0ba963e3bdfbd644b9c04fe7f7
[ "MIT" ]
3
2022-01-10T19:31:05.000Z
2022-02-05T21:03:02.000Z
#include "config.hpp" #include "helpers.hpp" #include "crypto.hpp" #include <vector> #include <map> #include <string> #include <iostream> #include <thread> using namespace std; json getConfig(int argc, char**argv) { cout<<"░░░░░░░░▄██▄░░░░░░▄▄░░"<<endl; cout<<"░░░░░░░▐███▀░░░░░▄███▌"<<endl; cout<<"░░▄▀░░▄█...
31.432
111
0.54594
[ "vector" ]
8037a57956696d0023041a847751853aeffc2779
4,591
cpp
C++
src/graphics/opengl/gl_shader.cpp
tntmeijs/VerletIntegration
feed3a01be73b0e6e1ad33988ed124ae206ec983
[ "MIT" ]
null
null
null
src/graphics/opengl/gl_shader.cpp
tntmeijs/VerletIntegration
feed3a01be73b0e6e1ad33988ed124ae206ec983
[ "MIT" ]
null
null
null
src/graphics/opengl/gl_shader.cpp
tntmeijs/VerletIntegration
feed3a01be73b0e6e1ad33988ed124ae206ec983
[ "MIT" ]
null
null
null
#include "gl_shader.hpp" #include "utility/log.hpp" #include "glad/glad.h" #include <cstdint> #include <fstream> #include <sstream> #include <utility> #include <vector> using ShaderData = std::pair<GLuint, std::string>; vi::gl::GLShader::GLShader() : m_program(0), m_success(false) {} vi::gl::GLShader::~GLShader...
21.758294
97
0.68264
[ "vector" ]
d9a734d7fbb37894338ef5c5c67bcd361a227fd7
1,210
cpp
C++
hacker-cup/2021/Round 1/A2: Weak Typing - Chapter 2.cpp
ggardusi/facebook-coding-competitions
a75bf3cbe57ec1cb590e3837c8ebc16f37a83b63
[ "MIT" ]
null
null
null
hacker-cup/2021/Round 1/A2: Weak Typing - Chapter 2.cpp
ggardusi/facebook-coding-competitions
a75bf3cbe57ec1cb590e3837c8ebc16f37a83b63
[ "MIT" ]
null
null
null
hacker-cup/2021/Round 1/A2: Weak Typing - Chapter 2.cpp
ggardusi/facebook-coding-competitions
a75bf3cbe57ec1cb590e3837c8ebc16f37a83b63
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> const int MOD = 1'000'000'000 + 7; void solve_test_case(const int test) { int N; std::string s; std::cin >> N >> s; int sum = 0; char last = '$'; int last_pos = -1; int current = 0; int qty_total = 0; std::map<int, int> qty_frequency; std::vector<bool> is_marked(N + 5, fa...
21.22807
67
0.51157
[ "vector" ]
d9a7960321534bd2d8d4fbfaba65a7be7483e38f
64,501
cpp
C++
inetcore/outlookexpress/mailnews/spooler/smtptask.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
inetcore/outlookexpress/mailnews/spooler/smtptask.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
inetcore/outlookexpress/mailnews/spooler/smtptask.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
// -------------------------------------------------------------------------------- // Smtptask.cpp // Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved // Steven J. Bailey // -------------------------------------------------------------------------------- #include "pch.hxx" #include "smtptask.h" ...
29.212409
167
0.522969
[ "object" ]
d9ad8c84e6a17946b5af3d8efeb839906562177e
6,397
cpp
C++
ros/camera_pose_visualizer.cpp
ipa-mah/object_rendering
1fbdea9358ffc8263eedd64da57a2cd0e9798ad4
[ "MIT" ]
null
null
null
ros/camera_pose_visualizer.cpp
ipa-mah/object_rendering
1fbdea9358ffc8263eedd64da57a2cd0e9798ad4
[ "MIT" ]
null
null
null
ros/camera_pose_visualizer.cpp
ipa-mah/object_rendering
1fbdea9358ffc8263eedd64da57a2cd0e9798ad4
[ "MIT" ]
1
2020-03-28T08:57:11.000Z
2020-03-28T08:57:11.000Z
#include <pcl/TextureMesh.h> #include <pcl/features/normal_3d.h> #include <pcl/features/normal_3d_omp.h> #include <pcl/io/obj_io.h> #include <pcl/io/ply_io.h> #include <pcl/surface/gp3.h> #include <pcl/surface/texture_mapping.h> #include <json/json.h> #include <pcl/io/vtk_lib_io.h> #include <pcl/visualization/cloud_vi...
30.754808
148
0.637174
[ "mesh", "object", "vector", "transform" ]
d9ae375ee363ebf930edb1aa3592266dcf34e901
2,160
cpp
C++
dlgprtra.cpp
RDamman/SpeakerWorkshop
87a38d04197a07a9a7878b3f60d5e0706782163c
[ "OML" ]
12
2019-06-07T10:06:41.000Z
2021-03-22T22:13:59.000Z
dlgprtra.cpp
RDamman/SpeakerWorkshop
87a38d04197a07a9a7878b3f60d5e0706782163c
[ "OML" ]
1
2019-05-09T07:38:12.000Z
2019-07-10T04:20:55.000Z
dlgprtra.cpp
RDamman/SpeakerWorkshop
87a38d04197a07a9a7878b3f60d5e0706782163c
[ "OML" ]
3
2020-09-08T08:27:33.000Z
2021-05-13T09:25:43.000Z
// dlgprtra.cpp : implementation file // #include "stdafx.h" #include "audtest.h" #include "dlgprtra.h" #include "Utils.h" #ifdef _DEBUG #undef THIS_FILE static char BASED_CODE THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CDlgPrefTransform property ...
25.714286
78
0.718519
[ "object" ]
d9b202056a1faff3731b4e5d811ea6e3b9faae7b
903
hpp
C++
src/dwalker/include/BinaryCache.hpp
shmmsra/dwalker
4996adcec11bb92ad6d67a8d2e79bd5b022cb67f
[ "MIT" ]
null
null
null
src/dwalker/include/BinaryCache.hpp
shmmsra/dwalker
4996adcec11bb92ad6d67a8d2e79bd5b022cb67f
[ "MIT" ]
null
null
null
src/dwalker/include/BinaryCache.hpp
shmmsra/dwalker
4996adcec11bb92ad6d67a8d2e79bd5b022cb67f
[ "MIT" ]
null
null
null
#pragma once #include <string> #include <map> #include <vector> #include <PEManager.hpp> #include <FindPE.hpp> #include <ApiSet.hpp> class BinaryCache { private: std::map<std::string, PEManager*> BinaryDatabase; static std::unique_ptr<ApiSetSchemaBase> ApiSetmapCache; std::string GetBinaryHash(const std...
28.21875
75
0.709856
[ "vector" ]
d9b357d9345c8388eb7e9d9211d881f69c646b3f
1,723
cpp
C++
lib/IR/ONNCNodeNameGen.cpp
brchiu/onnc
0d1ffe42ee108bdf4d5c8c93f94608347ee21e0b
[ "BSD-3-Clause" ]
1
2018-08-27T02:51:59.000Z
2018-08-27T02:51:59.000Z
lib/IR/ONNCNodeNameGen.cpp
ffk0716/onnc
91e4955ade64b479db17aaeccacf4b7339fe44d2
[ "BSD-3-Clause" ]
null
null
null
lib/IR/ONNCNodeNameGen.cpp
ffk0716/onnc
91e4955ade64b479db17aaeccacf4b7339fe44d2
[ "BSD-3-Clause" ]
null
null
null
//===- ONNCNodeNameGen.cpp ------------------------------------------------===// // // The ONNC Project // // See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #include <onnc/IR/Module.h> #include <onnc/IR/ONNCNodeNameGen.h> #inc...
23.60274
80
0.567615
[ "transform" ]
d9c277ff3bd2fa6c58e4611344635560e17e54f1
11,177
cpp
C++
src/ga_utils.cpp
lounick/lwga
e7d64198530578f84c356c1023035562ddec4a60
[ "MIT" ]
1
2022-02-28T15:56:56.000Z
2022-02-28T15:56:56.000Z
src/ga_utils.cpp
lounick/lwga
e7d64198530578f84c356c1023035562ddec4a60
[ "MIT" ]
null
null
null
src/ga_utils.cpp
lounick/lwga
e7d64198530578f84c356c1023035562ddec4a60
[ "MIT" ]
null
null
null
// // Created by nick on 31/03/16. // #include "ga_utils.h" #include <cmath> #include <iostream> #include "dubins.h" double find_distance(Point2D a, Point2D b) { return sqrt(pow(a.first - b.first, 2) + pow(a.second - b.second, 2)); } std::vector<size_t> get_population_sample(size_t pop_size, int samples, std::mt19...
33.972644
178
0.604366
[ "vector" ]
d9c41585098348b68bc9833124c4a7f2fe4f6f9e
1,947
hpp
C++
source/tattle/curator.hpp
AmonShokhinAhmed/TattleTale
b3ec96ca7831d38f2cce88f1ef02f351d9f8547f
[ "MIT" ]
1
2022-03-22T16:17:45.000Z
2022-03-22T16:17:45.000Z
source/tattle/curator.hpp
AmonShokhinAhmed/TattleTale
b3ec96ca7831d38f2cce88f1ef02f351d9f8547f
[ "MIT" ]
88
2022-01-31T09:16:19.000Z
2022-03-29T19:30:50.000Z
source/tattle/curator.hpp
AmonShokhinAhmed/TattleTale
b3ec96ca7831d38f2cce88f1ef02f351d9f8547f
[ "MIT" ]
null
null
null
#ifndef TATTLE_CURATOR_H #define TATTLE_CURATOR_H #include "shared/chronicle.hpp" #include "shared/setting.hpp" #include "tattle/curations/curation.hpp" namespace tattletale { class Curator { public: Curator(const Chronicle &chronicle, const Setting &setting); std::string UseA...
48.675
131
0.714432
[ "vector" ]
d9cb3bf02042213fd4184d7bf17abbcb248a2bae
8,252
cc
C++
FastSimulation/CaloGeometryTools/src/BaseCrystal.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
FastSimulation/CaloGeometryTools/src/BaseCrystal.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
FastSimulation/CaloGeometryTools/src/BaseCrystal.cc
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
//FAMOS headers #include "FastSimulation/CaloGeometryTools/interface/BaseCrystal.h" // Data Formats #include "DataFormats/EcalDetId/interface/EcalSubdetector.h" typedef ROOT::Math::Plane3D::Point Point; BaseCrystal::BaseCrystal(const DetId &cell) : cellid_(cell) { subdetn_ = cellid_.subdetId(); } void BaseCrystal::...
31.496183
116
0.584707
[ "vector" ]
d9cbc261a2c75561b5a50ba718b6f7b05bc6a3e9
1,349
cpp
C++
TowerDefence/Game/Cursor.cpp
CameronD17/Tower-Defence
8dbfb66d01f2af9184e6cea0dc28c3969d060320
[ "Apache-2.0" ]
null
null
null
TowerDefence/Game/Cursor.cpp
CameronD17/Tower-Defence
8dbfb66d01f2af9184e6cea0dc28c3969d060320
[ "Apache-2.0" ]
null
null
null
TowerDefence/Game/Cursor.cpp
CameronD17/Tower-Defence
8dbfb66d01f2af9184e6cea0dc28c3969d060320
[ "Apache-2.0" ]
null
null
null
#include "Cursor.h" Cursor::Cursor() { setX(0); setY(0); setAction(0); } Cursor::Cursor(int x, int y) //: Object(x, y) { setX(0); setY(0); setAction(0); }; Cursor::~Cursor() { } void Cursor::init(Engine &e) { engine = e; setResources(engine.resources); } void Cursor::draw() { if (getX() >= BORDER...
16.654321
133
0.660489
[ "object" ]
d9ce75e24be02c168c442781dd1aef89f7e0a6a5
2,776
cc
C++
iot/src/model/ListOTAModuleByProductResult.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
89
2018-02-02T03:54:39.000Z
2021-12-13T01:32:55.000Z
iot/src/model/ListOTAModuleByProductResult.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
89
2018-03-14T07:44:54.000Z
2021-11-26T07:43:25.000Z
iot/src/model/ListOTAModuleByProductResult.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
69
2018-01-22T09:45:52.000Z
2022-03-28T07:58:38.000Z
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
31.191011
100
0.759366
[ "vector", "model" ]
d9d6814744ff32c0fe7c869ff2e7976deb10f699
2,989
cpp
C++
src/StackQueue/SlidingWindowMaximum.cpp
satyam289/Data-structure-and-Algorithm
75a0267958549991a1ca4a19b794faabe5997cb6
[ "MIT" ]
null
null
null
src/StackQueue/SlidingWindowMaximum.cpp
satyam289/Data-structure-and-Algorithm
75a0267958549991a1ca4a19b794faabe5997cb6
[ "MIT" ]
null
null
null
src/StackQueue/SlidingWindowMaximum.cpp
satyam289/Data-structure-and-Algorithm
75a0267958549991a1ca4a19b794faabe5997cb6
[ "MIT" ]
null
null
null
#include <vector> #include <deque> using namespace std; vector<int> slidingMaximum(vector<int> &A, int win) { int n = A.size(); vector<int> res; if (n < win) { return res; } res.resize(n - win + 1); deque<int> *q; for (int i = 0; i < win; i++) { while (!q->empty() ...
26.451327
75
0.440616
[ "vector" ]
d9df44ad26764b458904c3bcb9258d67dc2490e6
552
cpp
C++
model/board.cpp
elInfidel/cpp-checkers
57cdcc32c93c1d1501440e9e560f509ec94fbfbe
[ "MIT" ]
null
null
null
model/board.cpp
elInfidel/cpp-checkers
57cdcc32c93c1d1501440e9e560f509ec94fbfbe
[ "MIT" ]
null
null
null
model/board.cpp
elInfidel/cpp-checkers
57cdcc32c93c1d1501440e9e560f509ec94fbfbe
[ "MIT" ]
null
null
null
#include "board.h" #include <iostream> #include <stdexcept> draughts::model::board::board() { } draughts::model::board::~board(void) { } int draughts::model::board::get_width() const { return BOARD_WIDTH; } int draughts::model::board::get_height() const { return BOARD_HEIGHT; } char draughts::model::board...
20.444444
88
0.688406
[ "model" ]
d9e711fe4b68b4ab248a0a379266e5523ea03162
6,074
cpp
C++
src/types/Epoch.cpp
blockfrost/blockfrost-arduino
04525e01dd535c167cc97232670809cac2575ee3
[ "Apache-2.0" ]
7
2021-12-15T12:11:21.000Z
2022-01-25T13:29:04.000Z
src/types/Epoch.cpp
blockfrost/blockfrost-arduino
04525e01dd535c167cc97232670809cac2575ee3
[ "Apache-2.0" ]
null
null
null
src/types/Epoch.cpp
blockfrost/blockfrost-arduino
04525e01dd535c167cc97232670809cac2575ee3
[ "Apache-2.0" ]
null
null
null
#include "Epoch.h" using namespace Blockfrost; Epoch::Epoch() { epoch = int(0); start_time = time_t(0); end_time = time_t(0); first_block_time = time_t(0); last_block_time = time_t(0); block_count = int(0); tx_count = int(0); output = std::string(); fees = std::string(); active_stake = std::make_p...
22.249084
68
0.675008
[ "object" ]
d9ea75b96407157fec596e63858bb7cad572bfca
1,823
cpp
C++
src/DynamicSolid.cpp
Felipeasg/heekscad
0b70cbeb998e864b1ea0af0685863f5a90da1504
[ "BSD-3-Clause" ]
2
2019-09-15T15:22:32.000Z
2021-01-22T10:20:42.000Z
src/DynamicSolid.cpp
Felipeasg/HeeksCAD
0b70cbeb998e864b1ea0af0685863f5a90da1504
[ "BSD-3-Clause" ]
null
null
null
src/DynamicSolid.cpp
Felipeasg/HeeksCAD
0b70cbeb998e864b1ea0af0685863f5a90da1504
[ "BSD-3-Clause" ]
1
2022-03-05T05:08:06.000Z
2022-03-05T05:08:06.000Z
// DynamicSolid.cpp // Copyright (c) 2009, Dan Heeks // This program is released under the BSD license. See the file COPYING for details. #include "stdafx.h" #include "Shape.h" #include "DynamicSolid.h" #include "FaceTools.h" DynamicSolid::DynamicSolid() { m_faces = new CFaceList; m_faces->SetSkipForU...
21.447059
85
0.673615
[ "shape" ]
d9eaf66da6bbafb4295f643edf904afb1bbbb92b
3,719
cpp
C++
src/Tech.cpp
pancakespeople/At-Odds
6d1e56c8b7889f069ca72911f5e77d7ad19e88e2
[ "MIT" ]
7
2021-04-30T06:36:47.000Z
2021-11-14T20:28:25.000Z
src/Tech.cpp
pancakespeople/At-Odds
6d1e56c8b7889f069ca72911f5e77d7ad19e88e2
[ "MIT" ]
null
null
null
src/Tech.cpp
pancakespeople/At-Odds
6d1e56c8b7889f069ca72911f5e77d7ad19e88e2
[ "MIT" ]
1
2022-02-18T04:43:20.000Z
2022-02-18T04:43:20.000Z
#include "gamepch.h" #include "Tech.h" #include "TOMLCache.h" #include "Util.h" #include "Colony.h" #include "Faction.h" #include "Designs.h" Tech::Tech(const std::string& type) { const toml::table& table = TOMLCache::getTable("data/objects/tech.toml"); assert(table.contains(type)); m_type = type; m_researchPoints...
28.174242
109
0.658241
[ "vector" ]
8a15025da84a2a1ea1f75e469fd432bd3e15ace4
1,940
hxx
C++
src/interfaces/common/caller/greedygremlin_caller.hxx
burcin/opengm
a1b21eecb93c6c5a7b11ab312d26b1c98c55ff41
[ "MIT" ]
318
2015-01-07T15:22:02.000Z
2022-01-22T10:10:29.000Z
src/interfaces/common/caller/greedygremlin_caller.hxx
burcin/opengm
a1b21eecb93c6c5a7b11ab312d26b1c98c55ff41
[ "MIT" ]
89
2015-03-24T14:33:01.000Z
2020-07-10T13:59:13.000Z
src/interfaces/common/caller/greedygremlin_caller.hxx
burcin/opengm
a1b21eecb93c6c5a7b11ab312d26b1c98c55ff41
[ "MIT" ]
119
2015-01-13T08:35:03.000Z
2022-03-01T01:49:08.000Z
#ifndef GREEDYGREMLIN_CALLER_HXX_ #define GREEDYGREMLIN_CALLER_HXX_ #include <opengm/opengm.hxx> #include <opengm/inference/greedygremlin.hxx> #include "inference_caller_base.hxx" #include "../argument/argument.hxx" namespace opengm { namespace interface { template <class IO, class GM, class ACC> class GreedyGreml...
32.333333
110
0.757732
[ "model" ]
8a1820b7d330055955804b0c7d5a9f5e4e2a997d
4,059
cpp
C++
examples/math/vector.cpp
vinzenz/fcppt
3f8cc5babdee178a9bbd06ca3ce7ad405d19aa6a
[ "BSL-1.0" ]
null
null
null
examples/math/vector.cpp
vinzenz/fcppt
3f8cc5babdee178a9bbd06ca3ce7ad405d19aa6a
[ "BSL-1.0" ]
null
null
null
examples/math/vector.cpp
vinzenz/fcppt
3f8cc5babdee178a9bbd06ca3ce7ad405d19aa6a
[ "BSL-1.0" ]
null
null
null
// Copyright Carl Philipp Reh 2009 - 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) #include <fcppt/no_init.hpp> #include <fcppt/cast/int_to_float_fun.hpp> #include <fcppt/math/size_...
14.09375
76
0.647204
[ "object", "vector" ]
8a2ab237eb7a31e1b4af5726035fe75d13b1fcea
4,746
cpp
C++
src/plugins/aggregator/rss091parser.cpp
MellonQ/leechcraft
71cbb238d2dade56b3865278a6a8e6a58c217fc5
[ "BSL-1.0" ]
1
2017-01-12T07:05:45.000Z
2017-01-12T07:05:45.000Z
src/plugins/aggregator/rss091parser.cpp
MellonQ/leechcraft
71cbb238d2dade56b3865278a6a8e6a58c217fc5
[ "BSL-1.0" ]
null
null
null
src/plugins/aggregator/rss091parser.cpp
MellonQ/leechcraft
71cbb238d2dade56b3865278a6a8e6a58c217fc5
[ "BSL-1.0" ]
null
null
null
/********************************************************************** * LeechCraft - modular cross-platform feature rich internet client. * Copyright (C) 2006-2014 Georg Rudoy * * Boost Software License - Version 1.0 - August 17th, 2003 * * Permission is hereby granted, free of charge, to any person or organiz...
36.229008
88
0.690898
[ "object" ]
8a2ff60460f9da2184b0326c88ef06000dca08e4
1,392
cpp
C++
icpcarchive.ecs.baylor.edu/Goodmorning!.cpp
facug91/OJ-Solutions
9aa55be066ce5596e4e64737c28cd3ff84e092fe
[ "Apache-2.0" ]
6
2016-09-10T03:16:34.000Z
2020-04-07T14:45:32.000Z
icpcarchive.ecs.baylor.edu/Goodmorning!.cpp
facug91/OJ-Solutions
9aa55be066ce5596e4e64737c28cd3ff84e092fe
[ "Apache-2.0" ]
null
null
null
icpcarchive.ecs.baylor.edu/Goodmorning!.cpp
facug91/OJ-Solutions
9aa55be066ce5596e4e64737c28cd3ff84e092fe
[ "Apache-2.0" ]
2
2018-08-11T20:55:35.000Z
2020-01-15T23:23:11.000Z
/* By: facug91 From: https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&category=653&page=show_problem&problem=4946 Name: Good morning! Date: 21/02/2015 */ #include <bits/stdc++.h> #define MAX_INT 2147483647 #define MAX_LONG 9223372036854775807ll #def...
21.415385
135
0.553879
[ "vector" ]
8a30313c3416e11892bfe7cd03668b77dc23dec0
931
cpp
C++
Data Structures/DSU on Tree.cpp
bazzyadb/all-code
cf3039641b5aa84b1c5b184a95d69bd4091974c9
[ "MIT" ]
1,639
2021-09-15T09:12:06.000Z
2022-03-31T22:58:57.000Z
Data Structures/DSU on Tree.cpp
bazzyadb/all-code
cf3039641b5aa84b1c5b184a95d69bd4091974c9
[ "MIT" ]
16
2022-01-15T17:50:08.000Z
2022-01-28T12:55:21.000Z
Data Structures/DSU on Tree.cpp
bazzyadb/all-code
cf3039641b5aa84b1c5b184a95d69bd4091974c9
[ "MIT" ]
444
2021-09-15T09:17:41.000Z
2022-03-29T18:21:46.000Z
#include<bits/stdc++.h> using namespace std; const int N = 1e5 + 9; vector<int> g[N]; int ans[N], col[N], sz[N], cnt[N]; bool big[N]; void dfs(int u, int p) { sz[u] = 1; for (auto v : g[u]) { if (v == p) continue; dfs(v, u); sz[u] += sz[v]; } } void add(int u, int p, int x) { cnt[col[u]] += x; fo...
19.808511
61
0.489796
[ "vector" ]
8a356fa4681289fc29f54724d520d2d8954b89e4
6,122
cpp
C++
Samples/Win7Samples/netds/adsi/general/adqi/ADsOpenDSObject.cpp
windows-development/Windows-classic-samples
96f883e4c900948e39660ec14a200a5164a3c7b7
[ "MIT" ]
8
2017-04-30T17:38:27.000Z
2021-11-29T00:59:03.000Z
Samples/Win7Samples/netds/adsi/general/adqi/ADsOpenDSObject.cpp
TomeSq/Windows-classic-samples
96f883e4c900948e39660ec14a200a5164a3c7b7
[ "MIT" ]
null
null
null
Samples/Win7Samples/netds/adsi/general/adqi/ADsOpenDSObject.cpp
TomeSq/Windows-classic-samples
96f883e4c900948e39660ec14a200a5164a3c7b7
[ "MIT" ]
2
2020-08-11T13:21:49.000Z
2021-09-01T10:41:51.000Z
//---------------------------------------------------------------------------- // // Microsoft Active Directory 2.5 Sample Code // // Copyright (C) Microsoft Corporation, 1996 - 2000 // // File: ADsOpenDSObject.cpp // // Contents: IADsOpenDSObject and ADsOpenObject usage // // //-------------...
21.33101
103
0.576282
[ "object" ]
8a364efb0a50cb7317740bcbc29168b3cec73af0
3,991
cpp
C++
glsdk/glimg/source/Util.cpp
trinhvo/modern_opengl_jason_mckesson
c237532e39d6b40876e24e4d91fa31c7137e40da
[ "MIT" ]
3
2018-02-28T13:10:44.000Z
2022-01-09T07:57:55.000Z
glsdk/glimg/source/Util.cpp
lapinott/Tutorial-0.3.8
738c9e10278d0bfd0207c946243932b28e3a3e6d
[ "MIT" ]
null
null
null
glsdk/glimg/source/Util.cpp
lapinott/Tutorial-0.3.8
738c9e10278d0bfd0207c946243932b28e3a3e6d
[ "MIT" ]
null
null
null
//Copyright (C) 2011 by Jason L. McKesson //This file is licensed by the MIT License. #include <assert.h> #include "ImageSetImpl.h" #include "Util.h" #define ARRAY_COUNT( array ) (sizeof( array ) / (sizeof( array[0] ) * (sizeof( array ) != sizeof(void*) || sizeof( array[0] ) <= sizeof(void*)))) namespace glimg { ...
26.966216
145
0.710849
[ "3d" ]
8a39ccc298d1d3fd818b6c7a1832fe2af1191f02
1,641
cpp
C++
AcWing/196.cpp
XenonWZH/involution
189f6ce2bbfe3a7c5d536bbd769f353e4c06e7c6
[ "MIT" ]
null
null
null
AcWing/196.cpp
XenonWZH/involution
189f6ce2bbfe3a7c5d536bbd769f353e4c06e7c6
[ "MIT" ]
null
null
null
AcWing/196.cpp
XenonWZH/involution
189f6ce2bbfe3a7c5d536bbd769f353e4c06e7c6
[ "MIT" ]
null
null
null
// 196. 质数距离 // WzhDnwzWzh #include <cmath> #include <cstring> #include <iostream> #include <vector> const int MAXN = 1000000; typedef unsigned long long ull; int main() { int l, r; while (std::cin >> l >> r) { if (l < 2) l = 2; if (r < 2) { std::cout << "There are no adjacent pr...
27.35
89
0.363193
[ "vector" ]
8a497338a2678cc00e972e2ff519018e36b9f9ba
2,496
hpp
C++
include/ghost/connection/NetworkConnectionConfiguration.hpp
mathieunassar/ghostmodule
8e9a9e958ec3cfa3494b49211920e3f669a9c8bd
[ "Apache-2.0" ]
2
2019-10-05T06:51:49.000Z
2020-10-11T11:20:59.000Z
include/ghost/connection/NetworkConnectionConfiguration.hpp
mathieunassar/ghostmodule
8e9a9e958ec3cfa3494b49211920e3f669a9c8bd
[ "Apache-2.0" ]
24
2019-06-19T21:33:23.000Z
2020-10-04T11:36:41.000Z
include/ghost/connection/NetworkConnectionConfiguration.hpp
mathieunassar/ghostmodule
8e9a9e958ec3cfa3494b49211920e3f669a9c8bd
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2019 Mathieu Nassar * * 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 ...
29.714286
105
0.75
[ "object" ]
8a4c89f4b6d0ab0f85ba4d1bd4242331a49c0787
12,627
cpp
C++
core/sql/optimizer/AccessSets.cpp
anoopsharma00/incubator-trafodion
b109e2cf5883f8e763af853ab6fad7ce7110d9e8
[ "Apache-2.0" ]
null
null
null
core/sql/optimizer/AccessSets.cpp
anoopsharma00/incubator-trafodion
b109e2cf5883f8e763af853ab6fad7ce7110d9e8
[ "Apache-2.0" ]
null
null
null
core/sql/optimizer/AccessSets.cpp
anoopsharma00/incubator-trafodion
b109e2cf5883f8e763af853ab6fad7ce7110d9e8
[ "Apache-2.0" ]
null
null
null
/********************************************************************** // @@@ START COPYRIGHT @@@ // // 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. ...
28.697727
84
0.623664
[ "object" ]
8a4fe0e172337e9f78d6bc637027efa749471b9b
1,767
cc
C++
sdk/src/model/ObjectCallbackBuilder.cc
OpenInspur/inspur-oss-cpp-sdk
a0932232aaf46aab7c5a2079f72d80cc5d634ba2
[ "Apache-2.0" ]
null
null
null
sdk/src/model/ObjectCallbackBuilder.cc
OpenInspur/inspur-oss-cpp-sdk
a0932232aaf46aab7c5a2079f72d80cc5d634ba2
[ "Apache-2.0" ]
null
null
null
sdk/src/model/ObjectCallbackBuilder.cc
OpenInspur/inspur-oss-cpp-sdk
a0932232aaf46aab7c5a2079f72d80cc5d634ba2
[ "Apache-2.0" ]
null
null
null
#include <inspurcloud/oss/model/ObjectCallbackBuilder.h> #include <sstream> #include "../utils/Utils.h" using namespace InspurCloud::OSS; ObjectCallbackBuilder::ObjectCallbackBuilder(const std::string &url, const std::string &body): ObjectCallbackBuilder(url, body, "", Type::URL) { } ObjectCallbackBuilder::Obje...
22.367089
105
0.568195
[ "model" ]
a4361df7df9c19a67132eba5e961aa7c231bef49
2,958
cc
C++
src/Control.cc
aveday/stumple
21c17166b57a8e5de4640c0d377d024bf6afb068
[ "MIT" ]
null
null
null
src/Control.cc
aveday/stumple
21c17166b57a8e5de4640c0d377d024bf6afb068
[ "MIT" ]
null
null
null
src/Control.cc
aveday/stumple
21c17166b57a8e5de4640c0d377d024bf6afb068
[ "MIT" ]
null
null
null
#include <SDL2/SDL.h> #include "Control.h" #include "Graphics.h" Mode Control::mode = EDIT; void Control::Input(SDL_Event& event, Graphics &graphics, Editor& editor) { // keyboard controls if(event.key.type == SDL_KEYDOWN) switch(event.key.keysym.sym) { // texture cycling case SDLK_RIGHT: e...
30.8125
85
0.562542
[ "shape" ]
a436c96770cbae0313e58aef25a16c230294df9b
1,493
cpp
C++
Changrui/C++/Kattis_Grandpa_Bernie.cpp
Kattis-Everyday/KattisSolutions
ac422563fd6b1c08e098a52e7fce06852f61c180
[ "Apache-2.0" ]
null
null
null
Changrui/C++/Kattis_Grandpa_Bernie.cpp
Kattis-Everyday/KattisSolutions
ac422563fd6b1c08e098a52e7fce06852f61c180
[ "Apache-2.0" ]
null
null
null
Changrui/C++/Kattis_Grandpa_Bernie.cpp
Kattis-Everyday/KattisSolutions
ac422563fd6b1c08e098a52e7fce06852f61c180
[ "Apache-2.0" ]
null
null
null
// // main.cpp // Kattis_Grandpa Bernie // // Created by mcr on 25/10/2020. // #pragma GCC optimize(3,"Ofast","inline") //#include <bits/stdc++.h> #include<iostream> #include<sstream> #include<iomanip> # include <string.h> #include<math.h> #include<string> #include<vector> #include<queue> #include<map> #include<s...
18.207317
64
0.610181
[ "vector" ]
a43da67682033b6d95a201edbfe1f32580c379f9
18,221
cpp
C++
src_main/hammer/shell.cpp
ArcadiusGFN/SourceEngine2007
51cd6d4f0f9ed901cb9b61456eb621a50ce44f55
[ "bzip2-1.0.6" ]
25
2018-02-28T15:04:42.000Z
2021-08-16T03:49:00.000Z
src_main/hammer/shell.cpp
ArcadiusGFN/SourceEngine2007
51cd6d4f0f9ed901cb9b61456eb621a50ce44f55
[ "bzip2-1.0.6" ]
1
2019-09-20T11:06:03.000Z
2019-09-20T11:06:03.000Z
src_main/hammer/shell.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. // // Purpose: Handles parsing and routing of shell commands to their handlers. #include "stdafx.h" #include "MainFrm.h" #include "MapDoc.h" #include "MapEntity.h" #include "Shell.h" #include "filesystem_helpers.h" #include "hammer.h" #include "tier0/...
37.569072
80
0.532463
[ "vector", "transform", "solid" ]
a446253f0b2ea9801600b65e73465453cdd2c3fe
501
cpp
C++
LuoguCodes/CF1009A.cpp
Anguei/OI-Codes
0ef271e9af0619d4c236e314cd6d8708d356536a
[ "MIT" ]
null
null
null
LuoguCodes/CF1009A.cpp
Anguei/OI-Codes
0ef271e9af0619d4c236e314cd6d8708d356536a
[ "MIT" ]
null
null
null
LuoguCodes/CF1009A.cpp
Anguei/OI-Codes
0ef271e9af0619d4c236e314cd6d8708d356536a
[ "MIT" ]
null
null
null
#include <vector> #include <iostream> #include <algorithm> int main() { int n, m; std::cin >> n >> m; std::vector<int> c(n + 1), a(m + 1); for (int i = 1; i <= n; ++i) std::cin >> c[i]; for (int i = 1; i <= m; ++i) std::cin >> a[i]; if (a[0] < c[0]) { std::cout << "0" << std::endl; return 0; } int ans...
15.65625
37
0.45509
[ "vector" ]
a44828dc05901ca223045c028da6d60fadf2690e
6,901
hpp
C++
src/extra/input/stylus_win32.hpp
ennis/autograph
4dcbdb75bf088a3a8039fbb8df88cf512a4f8b7d
[ "MIT" ]
null
null
null
src/extra/input/stylus_win32.hpp
ennis/autograph
4dcbdb75bf088a3a8039fbb8df88cf512a4f8b7d
[ "MIT" ]
null
null
null
src/extra/input/stylus_win32.hpp
ennis/autograph
4dcbdb75bf088a3a8039fbb8df88cf512a4f8b7d
[ "MIT" ]
null
null
null
#ifndef INPUT_STYLUS_WIN32_HPP #define INPUT_STYLUS_WIN32_HPP #include <Windows.h> #include <ole2.h> #include <rtscom.h> #include <rtscom_i.c> #include "input.hpp" namespace ag { namespace extra { namespace input { namespace win32 { // stylus event handler class CRTSEventHandler : public IStylusSyncPlugin { public: ...
35.030457
80
0.658455
[ "object", "vector" ]
a448c29e7d3e5c9df201d7d87a5dcbc3dd10f3f9
2,186
hpp
C++
QuantExt/qle/pricingengines/oiccbasisswapengine.hpp
mrslezak/Engine
c46ff278a2c5f4162db91a7ab500a0bb8cef7657
[ "BSD-3-Clause" ]
335
2016-10-07T16:31:10.000Z
2022-03-02T07:12:03.000Z
QuantExt/qle/pricingengines/oiccbasisswapengine.hpp
mrslezak/Engine
c46ff278a2c5f4162db91a7ab500a0bb8cef7657
[ "BSD-3-Clause" ]
59
2016-10-31T04:20:24.000Z
2022-01-03T16:39:57.000Z
QuantExt/qle/pricingengines/oiccbasisswapengine.hpp
mrslezak/Engine
c46ff278a2c5f4162db91a7ab500a0bb8cef7657
[ "BSD-3-Clause" ]
180
2016-10-08T14:23:50.000Z
2022-03-28T10:43:05.000Z
/* Copyright (C) 2016 Quaternion Risk Management Ltd All rights reserved. This file is part of ORE, a free-software/open-source library for transparent pricing and risk analysis - http://opensourcerisk.org ORE is free software: you can redistribute it and/or modify it under the terms of the Modified BSD License...
37.050847
107
0.702653
[ "model" ]
a44e1e823d10ecf88ce588ce6e4a9a91a6ca9649
2,821
cpp
C++
earth_enterprise/src/fusion/fusionui/VectorLayer.cpp
aganliang/earthenterprise
262015b7673a12ceb2510be366c91f71db589440
[ "Apache-2.0" ]
2
2017-07-19T23:22:36.000Z
2017-09-11T23:55:57.000Z
earth_enterprise/src/fusion/fusionui/VectorLayer.cpp
aganliang/earthenterprise
262015b7673a12ceb2510be366c91f71db589440
[ "Apache-2.0" ]
null
null
null
earth_enterprise/src/fusion/fusionui/VectorLayer.cpp
aganliang/earthenterprise
262015b7673a12ceb2510be366c91f71db589440
[ "Apache-2.0" ]
null
null
null
// Copyright 2017 Google 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 in...
34.402439
86
0.611485
[ "vector" ]
a456fdea8700564873ff4ed164630b621c7f493e
83,700
cpp
C++
net80211/wpi/if_wpi.cpp
pvaibhav/Voodoo80211
1c21ee558d25f56e273064b1b6fa881fc2517d0e
[ "BSD-2-Clause" ]
27
2016-03-16T00:22:22.000Z
2022-03-18T09:52:37.000Z
net80211/wpi/if_wpi.cpp
pvaibhav/Voodoo80211
1c21ee558d25f56e273064b1b6fa881fc2517d0e
[ "BSD-2-Clause" ]
1
2018-05-01T05:39:07.000Z
2018-05-02T05:40:26.000Z
net80211/wpi/if_wpi.cpp
pvaibhav/Voodoo80211
1c21ee558d25f56e273064b1b6fa881fc2517d0e
[ "BSD-2-Clause" ]
7
2016-03-19T20:05:15.000Z
2020-08-26T02:58:19.000Z
/* $OpenBSD: if_wpi.c,v 1.110 2011/06/02 18:36:53 mk Exp $ */ /*- * Copyright (c) 2006-2008 * Damien Bergamini <damien.bergamini@free.fr> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this ...
27.299413
153
0.666416
[ "3d" ]
a457d3f1cadaba254061247dbff989835a0b38c5
12,248
cpp
C++
Source/Rendering/vaGPUSort.cpp
GameTechDev/XeGTAO
0d177ce06bfa642f64d8af4de1197ad1bcb862d4
[ "MIT" ]
318
2021-08-20T10:16:12.000Z
2022-03-24T03:08:16.000Z
Source/Rendering/vaGPUSort.cpp
GameTechDev/XeGTAO
0d177ce06bfa642f64d8af4de1197ad1bcb862d4
[ "MIT" ]
5
2021-09-03T11:40:54.000Z
2022-02-09T12:37:12.000Z
Source/Rendering/vaGPUSort.cpp
GameTechDev/XeGTAO
0d177ce06bfa642f64d8af4de1197ad1bcb862d4
[ "MIT" ]
22
2021-09-02T03:33:18.000Z
2022-02-23T06:36:39.000Z
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2016-2021, Intel Corporation // // SPDX-License-Identifier: MIT /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////...
48.031373
343
0.684602
[ "render", "vector" ]
a461322ab204839dae6ea72fc34491db4896584f
2,330
hpp
C++
libs/log/include/fcppt/log/context.hpp
freundlich/fcppt
17df1b1ad08bf2435f6902d5465e3bc3fe5e3022
[ "BSL-1.0" ]
13
2015-02-21T18:35:14.000Z
2019-12-29T14:08:29.000Z
libs/log/include/fcppt/log/context.hpp
cpreh/fcppt
17df1b1ad08bf2435f6902d5465e3bc3fe5e3022
[ "BSL-1.0" ]
5
2016-08-27T07:35:47.000Z
2019-04-21T10:55:34.000Z
libs/log/include/fcppt/log/context.hpp
freundlich/fcppt
17df1b1ad08bf2435f6902d5465e3bc3fe5e3022
[ "BSL-1.0" ]
8
2015-01-10T09:22:37.000Z
2019-12-01T08:31:12.000Z
// Copyright Carl Philipp Reh 2009 - 2021. // 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 FCPPT_LOG_CONTEXT_HPP_INCLUDED #define FCPPT_LOG_CONTEXT_HPP_INCLUDED #include <fcppt/nonm...
27.411765
97
0.743777
[ "object" ]
a46670a6a23c885c43a969e721eb7178a5292974
4,380
hpp
C++
cpp/include/cudf/io_readers.hpp
pentschev/cudf
0233e4b53205b65196e74889803d8e3a75d1893e
[ "Apache-2.0" ]
null
null
null
cpp/include/cudf/io_readers.hpp
pentschev/cudf
0233e4b53205b65196e74889803d8e3a75d1893e
[ "Apache-2.0" ]
null
null
null
cpp/include/cudf/io_readers.hpp
pentschev/cudf
0233e4b53205b65196e74889803d8e3a75d1893e
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2019, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
41.714286
167
0.517352
[ "object", "vector" ]
a4693af7d90b90175ae4ed395f69ef0fd9139363
4,846
cpp
C++
SmallestMultiple.cpp
Massa7ca/fast_factorial
9a569fbfacfd3620f10af640444213a5cd5380cb
[ "Apache-2.0" ]
null
null
null
SmallestMultiple.cpp
Massa7ca/fast_factorial
9a569fbfacfd3620f10af640444213a5cd5380cb
[ "Apache-2.0" ]
null
null
null
SmallestMultiple.cpp
Massa7ca/fast_factorial
9a569fbfacfd3620f10af640444213a5cd5380cb
[ "Apache-2.0" ]
null
null
null
// compiler parameter: g++ -O4 name.cpp -lgmpxx -lgmp -pthread -std=c++11 #include <math.h> #include <iostream> #include <ctime> #include <vector> #include <string> #include <iostream> #include <gmpxx.h> #include <fstream> #include <algorithm> #include <stdio.h> #include <thread> #include <future> using namespace std;...
27.072626
98
0.523112
[ "vector" ]
a46c192a96f9fffefb7e1810d171a2b56b2a729c
1,198
hxx
C++
Legolas/Algorithm/DRRSolver.hxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
null
null
null
Legolas/Algorithm/DRRSolver.hxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
null
null
null
Legolas/Algorithm/DRRSolver.hxx
LaurentPlagne/Legolas
fdf533528baf7ab5fcb1db15d95d2387b3e3723c
[ "MIT" ]
1
2021-02-11T14:43:25.000Z
2021-02-11T14:43:25.000Z
#ifndef __LEGOLAS_DRRSOLVER_HXX__ #define __LEGOLAS_DRRSOLVER_HXX__ #include "Legolas/Algorithm/IterationControl.hxx" #include "UTILITES.hxx" namespace Legolas{ class DRRSolver{ public : static int _max_iter; static double _epsilon; template <class DRMATRIX, class RMATRIX, class VECTOR, class VECT...
16.410959
79
0.565109
[ "vector" ]
a476c44bc39b3a068b91252ca68c55e2da3e98fb
9,420
cpp
C++
src/main.cpp
ayeganov/TankMatrix
56372538e35cc480ebaac5a28a0e53cd88560edc
[ "MIT" ]
null
null
null
src/main.cpp
ayeganov/TankMatrix
56372538e35cc480ebaac5a28a0e53cd88560edc
[ "MIT" ]
null
null
null
src/main.cpp
ayeganov/TankMatrix
56372538e35cc480ebaac5a28a0e53cd88560edc
[ "MIT" ]
null
null
null
#include <fstream> #include <map> #include <string> #include <boost/filesystem.hpp> #include <opencv2/highgui/highgui.hpp> #include "json.hpp" #include <simple-web-server/server_http.hpp> #include <neatnet/params.h> #include <neatnet/genalg.h> #include <neatnet/netvisualize.h> using HttpServer = SimpleWeb::Server<S...
32.8223
124
0.547346
[ "vector" ]
a47cd87707edf8991ebb12c994769a3ae7b732fa
5,512
cc
C++
onnx/test/cpp/function_verify_test.cc
zrphercule/onnx
6c9b3407f33f8beb5836df41c54f4992256c0b69
[ "MIT" ]
137
2020-04-28T12:28:32.000Z
2022-03-18T10:48:25.000Z
onnx/test/cpp/function_verify_test.cc
zrphercule/onnx
6c9b3407f33f8beb5836df41c54f4992256c0b69
[ "MIT" ]
24
2020-05-06T08:06:42.000Z
2021-12-31T07:46:13.000Z
onnx/test/cpp/function_verify_test.cc
zrphercule/onnx
6c9b3407f33f8beb5836df41c54f4992256c0b69
[ "MIT" ]
24
2020-05-06T11:43:22.000Z
2022-03-18T10:50:35.000Z
#include <iostream> #include <set> #include "gtest/gtest.h" #include "onnx/checker.h" #include "onnx/common/constants.h" #include "onnx/defs/schema.h" #include "onnx/onnx-operators_pb.h" #include "onnx/onnx_pb.h" namespace ONNX_NAMESPACE { namespace Test { using namespace checker; using TENSOR_TYPES_MAP = std::uno...
34.45
92
0.650036
[ "vector" ]
a47e0fc8c814601522d51fa4581e2958751a302e
1,842
cpp
C++
test/2020/Day20PuzzleTests.cpp
MarkRDavison/AdventOfCode
640ae6de76709367be8dfeb86b9f1f7d21908946
[ "MIT" ]
null
null
null
test/2020/Day20PuzzleTests.cpp
MarkRDavison/AdventOfCode
640ae6de76709367be8dfeb86b9f1f7d21908946
[ "MIT" ]
null
null
null
test/2020/Day20PuzzleTests.cpp
MarkRDavison/AdventOfCode
640ae6de76709367be8dfeb86b9f1f7d21908946
[ "MIT" ]
null
null
null
#include <catch/catch.hpp> #include <2020/Day20Puzzle.hpp> namespace TwentyTwenty { TEST_CASE("Day 20 Examples work", "[2020][Day20][slow]") { const std::vector<std::string> input = { "Tile 2311:", "..##.#..#.", "##..#.....", "#...##..#.", "####.#...#", "##.##.###.", "##...#.###", ".#.#.#..##", "..#....#..", "#...
14.503937
59
0.192725
[ "vector" ]
a480002513a74d58bde67a6a6e96e4dbbf9ae1b5
638
cpp
C++
day05p1.cpp
thegrandpoobah/adventofcode2017
10e2e69a1c248ad628cc9b5d079ea3e9f45a6f48
[ "MIT" ]
1
2017-12-04T15:09:46.000Z
2017-12-04T15:09:46.000Z
day05p1.cpp
thegrandpoobah/adventofcode2017
10e2e69a1c248ad628cc9b5d079ea3e9f45a6f48
[ "MIT" ]
null
null
null
day05p1.cpp
thegrandpoobah/adventofcode2017
10e2e69a1c248ad628cc9b5d079ea3e9f45a6f48
[ "MIT" ]
null
null
null
#include <stdio.h> #include <stdlib.h> #include <vector> int main() { FILE *fp = fopen("day05input.txt", "rt"); if (fp == NULL) { exit(-1); } char *line = NULL; size_t len = 0; ssize_t read; std::vector<int> list; while ((read = getline(&line, &len, fp)) != -1) { list.push_back(atoi(line)); ...
14.177778
53
0.525078
[ "vector" ]
a4838e5fe4c9abd9f39ec3c4fb9ded3e18dfd5e8
9,382
cpp
C++
DCNv2Plugin.cpp
eweill-nv/dcnv2_trt
2b7e9982a0c691c5d75977c518a981bd52a4b6d0
[ "Apache-2.0" ]
41
2020-09-18T03:36:13.000Z
2022-02-10T12:13:33.000Z
DCNv2Plugin.cpp
eweill-nv/dcnv2_trt
2b7e9982a0c691c5d75977c518a981bd52a4b6d0
[ "Apache-2.0" ]
7
2020-09-28T09:45:51.000Z
2022-03-06T14:33:44.000Z
DCNv2Plugin.cpp
eweill-nv/dcnv2_trt
2b7e9982a0c691c5d75977c518a981bd52a4b6d0
[ "Apache-2.0" ]
10
2020-12-11T20:47:56.000Z
2022-03-29T07:47:30.000Z
/* * Copyright (c) 2020, NVIDIA CORPORATION. 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 requir...
26.95977
105
0.727244
[ "object", "vector" ]
a487d48e421fbaccbd80b3c875a39b963366c398
23,821
cpp
C++
src/test/cpp/pistis/logging/LogMessagePoolTests.cpp
tomault/pistis-logging
26f1411d161dc08c5684f0df4a95d929e3bbef35
[ "Apache-2.0" ]
null
null
null
src/test/cpp/pistis/logging/LogMessagePoolTests.cpp
tomault/pistis-logging
26f1411d161dc08c5684f0df4a95d929e3bbef35
[ "Apache-2.0" ]
null
null
null
src/test/cpp/pistis/logging/LogMessagePoolTests.cpp
tomault/pistis-logging
26f1411d161dc08c5684f0df4a95d929e3bbef35
[ "Apache-2.0" ]
null
null
null
#include <gtest/gtest.h> #include <algorithm> #include <iterator> #include <set> #include <vector> #include "helpers/Join.hpp" #include "helpers/LockingGate.hpp" #include "helpers/LogMessageConsumer.hpp" #include "helpers/LogMessageWaiter.hpp" #include "helpers/TestingLogMessagePool.hpp" #include "helpers/ThreadSet.hp...
37.046656
109
0.698417
[ "vector" ]
a48871f92ddd8b5351968d0181828b51061feff8
755
cpp
C++
CModules/viterby/pybind11_wrapper.cpp
stnie/FrontDetection
742ebf9619dcde40d42891073739945a05631ea3
[ "MIT" ]
null
null
null
CModules/viterby/pybind11_wrapper.cpp
stnie/FrontDetection
742ebf9619dcde40d42891073739945a05631ea3
[ "MIT" ]
null
null
null
CModules/viterby/pybind11_wrapper.cpp
stnie/FrontDetection
742ebf9619dcde40d42891073739945a05631ea3
[ "MIT" ]
1
2022-01-17T04:58:10.000Z
2022-01-17T04:58:10.000Z
#include <pybind11/pybind11.h> #include <pybind11/stl.h> #include "../PyToC/pyarrayCasts.hpp" #include "Viterby_deform.hpp" //PYBIND11_MAKE_OPAQUE(std::vector<float>); //using floatVec=std::vector<float>; PYBIND11_MODULE(viterby, m) { m.doc() = "Viterby Algorithm to deform a line"; m.def("fit_line", &getBe...
44.411765
171
0.753642
[ "vector" ]
a48d156c86825ad56ec37c217280796e4f7a33d0
2,598
hpp
C++
cpp/include/rapids_triton/triton/output.hpp
divyegala/rapids-triton
8ff2a8dbad029e9379d9e7808d868924c4b60590
[ "Apache-2.0" ]
1
2022-02-23T23:38:40.000Z
2022-02-23T23:38:40.000Z
cpp/include/rapids_triton/triton/output.hpp
divyegala/rapids-triton
8ff2a8dbad029e9379d9e7808d868924c4b60590
[ "Apache-2.0" ]
12
2021-09-20T21:23:27.000Z
2022-03-31T22:53:30.000Z
cpp/include/rapids_triton/triton/output.hpp
divyegala/rapids-triton
8ff2a8dbad029e9379d9e7808d868924c4b60590
[ "Apache-2.0" ]
2
2022-01-27T20:58:07.000Z
2022-02-09T23:07:41.000Z
/* * Copyright (c) 2021, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
35.589041
99
0.648576
[ "vector", "transform" ]