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
d4def2c332a02eb3c7fc5a078ff4f01d2bacdfe0
779
cpp
C++
Game/PopUpManager.cpp
scottvermast/PengoEngine
82a864d75c3806b8dcfd7fd1a5d2b8a6ded8ecf3
[ "Apache-2.0" ]
null
null
null
Game/PopUpManager.cpp
scottvermast/PengoEngine
82a864d75c3806b8dcfd7fd1a5d2b8a6ded8ecf3
[ "Apache-2.0" ]
null
null
null
Game/PopUpManager.cpp
scottvermast/PengoEngine
82a864d75c3806b8dcfd7fd1a5d2b8a6ded8ecf3
[ "Apache-2.0" ]
null
null
null
#include "PopUpManager.h" PopUpManager::PopUpManager() : m_pGameTime(GameTime::GetInstance()) , m_pRenderer(Renderer::GetInstance()) , m_PopUps() { } PopUpManager::~PopUpManager() { } void PopUpManager::Update() { for (size_t i{ 0 }; i < m_PopUps.size(); ++i) { m_PopUps[i].timer += m_pGameTime->GetElapsedSec(...
19.974359
146
0.661104
[ "render" ]
d4e18fad8fbc8334b99c3b1cf7beea5410656f68
5,473
hpp
C++
ThirdParty-mod/java2cpp/java/io/InputStream.hpp
kakashidinho/HQEngine
8125b290afa7c62db6cc6eac14e964d8138c7fd0
[ "MIT" ]
1
2019-04-03T01:53:28.000Z
2019-04-03T01:53:28.000Z
ThirdParty-mod/java2cpp/java/io/InputStream.hpp
kakashidinho/HQEngine
8125b290afa7c62db6cc6eac14e964d8138c7fd0
[ "MIT" ]
null
null
null
ThirdParty-mod/java2cpp/java/io/InputStream.hpp
kakashidinho/HQEngine
8125b290afa7c62db6cc6eac14e964d8138c7fd0
[ "MIT" ]
null
null
null
/*================================================================================ code generated by: java2cpp author: Zoran Angelov, mailto://baldzar@gmail.com class: java.io.InputStream ================================================================================*/ #ifndef J2CPP_INCLUDE_IMPLEMENTATI...
25.694836
90
0.682624
[ "object" ]
d4e257912a588718f0aaba2395d41adb20bfec0e
717
hxx
C++
Packages/java/util/zip/ZipInputStream.hxx
Brandon-T/Aries
4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca
[ "MIT" ]
null
null
null
Packages/java/util/zip/ZipInputStream.hxx
Brandon-T/Aries
4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca
[ "MIT" ]
null
null
null
Packages/java/util/zip/ZipInputStream.hxx
Brandon-T/Aries
4e8c4f5454e8c7c5cd0611b1b38b5be8186f86ca
[ "MIT" ]
null
null
null
// // ZipInputStream.hxx // Aries // // Created by Brandon on 2017-08-27. // Copyright © 2017 Brandon. All rights reserved. // #ifndef ZipInputStream_hxx #define ZipInputStream_hxx #include "Object.hxx" #include "InflaterInputStream.hxx" namespace java::util::zip { using java::lang::String; using java::n...
20.485714
66
0.656904
[ "object" ]
d4e744899c362e61d52be6079439564fe3e48187
3,729
hpp
C++
component/oai-ausf/src/ausf_app/ausf_app.hpp
kukkalli/oai-cn5g-fed
15634fac935ac8671b61654bdf75bf8af07d3c3a
[ "Apache-2.0" ]
null
null
null
component/oai-ausf/src/ausf_app/ausf_app.hpp
kukkalli/oai-cn5g-fed
15634fac935ac8671b61654bdf75bf8af07d3c3a
[ "Apache-2.0" ]
null
null
null
component/oai-ausf/src/ausf_app/ausf_app.hpp
kukkalli/oai-cn5g-fed
15634fac935ac8671b61654bdf75bf8af07d3c3a
[ "Apache-2.0" ]
null
null
null
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...
32.146552
81
0.722178
[ "model" ]
d4ebc46aa47da7dc7778f88f69e602ee864d3b02
4,022
cpp
C++
mlir/lib/ExecutionEngine/CRunnerUtils.cpp
val-verde/llvm-project
a5d4e884dad341ff80fbbdec6e7516b9c58c9eb0
[ "Apache-2.0" ]
null
null
null
mlir/lib/ExecutionEngine/CRunnerUtils.cpp
val-verde/llvm-project
a5d4e884dad341ff80fbbdec6e7516b9c58c9eb0
[ "Apache-2.0" ]
null
null
null
mlir/lib/ExecutionEngine/CRunnerUtils.cpp
val-verde/llvm-project
a5d4e884dad341ff80fbbdec6e7516b9c58c9eb0
[ "Apache-2.0" ]
null
null
null
//===- CRunnerUtils.cpp - Utils for MLIR execution ------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
36.899083
80
0.647439
[ "vector" ]
d4ede6a6d53b40fe0413ee1479a0ee077ae15f95
1,094
cpp
C++
p1116ComeonLetsC.cpp
yangyueren/PAT
950d820ec9174c5e2d74adafeb2abde4acdc635f
[ "MIT" ]
1
2020-02-01T08:20:26.000Z
2020-02-01T08:20:26.000Z
p1116ComeonLetsC.cpp
yangyueren/PAT
950d820ec9174c5e2d74adafeb2abde4acdc635f
[ "MIT" ]
null
null
null
p1116ComeonLetsC.cpp
yangyueren/PAT
950d820ec9174c5e2d74adafeb2abde4acdc635f
[ "MIT" ]
null
null
null
// // Created by yryang on 2019/9/14. // #include "iostream" #include "string.h" #include "string" #include "stdlib.h" #include "stdio.h" #include "map" #include "vector" #include "set" #include "math.h" #include "queue" #include "algorithm" using namespace std; int ranky[10005]; int isprime(int n){ if(n<2) retu...
20.641509
63
0.489945
[ "vector" ]
d4eeb0bc593f565169d6f6412bbf17ff19dd3287
976
hh
C++
Option/LocateBall/locateball.hh
drewnoakes/bold-humanoid
6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335
[ "Apache-2.0" ]
null
null
null
Option/LocateBall/locateball.hh
drewnoakes/bold-humanoid
6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335
[ "Apache-2.0" ]
null
null
null
Option/LocateBall/locateball.hh
drewnoakes/bold-humanoid
6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335
[ "Apache-2.0" ]
null
null
null
#pragma once #include "../../Agent/agent.hh" #include "../LookAtBall/lookatball.hh" #include "../option.hh" namespace bold { class Agent; class HeadModule; class LookAtFeet; class LookAround; /** Controls the head while standing still, in order to find the ball. */ class LocateBall : public Option { ...
26.378378
168
0.719262
[ "vector" ]
d4f1572443975361ca5b2b287187f81734dc43b0
8,398
cpp
C++
mechanics/src/collision/native/test/MultiBodyTest.cpp
ljktest/siconos
85b60e62beca46e6bf06bfbd65670089e86607c7
[ "Apache-2.0" ]
null
null
null
mechanics/src/collision/native/test/MultiBodyTest.cpp
ljktest/siconos
85b60e62beca46e6bf06bfbd65670089e86607c7
[ "Apache-2.0" ]
null
null
null
mechanics/src/collision/native/test/MultiBodyTest.cpp
ljktest/siconos
85b60e62beca46e6bf06bfbd65670089e86607c7
[ "Apache-2.0" ]
1
2015-10-07T19:35:16.000Z
2015-10-07T19:35:16.000Z
/* Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * * Copyright 2018 INRIA. * * 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 * *...
20.787129
98
0.592522
[ "model" ]
d4f19b3af91abd06b5d5f65c5942ffde91428ab8
1,637
cxx
C++
src/Cxx/Images/ImageMirrorPad.cxx
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
81
2020-08-10T01:44:30.000Z
2022-03-23T06:46:36.000Z
src/Cxx/Images/ImageMirrorPad.cxx
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
2
2020-09-12T17:33:52.000Z
2021-04-15T17:33:09.000Z
src/Cxx/Images/ImageMirrorPad.cxx
ajpmaclean/vtk-examples
1a55fc8c6af67a3c07791807c7d1ec0ab97607a2
[ "Apache-2.0" ]
27
2020-08-17T07:09:30.000Z
2022-02-15T03:44:58.000Z
#include <vtkImageActor.h> #include <vtkImageCanvasSource2D.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImageMirrorPad.h> #include <vtkNamedColors.h> #include <vtkNew.h> #include <vtkProperty.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #inc...
28.719298
75
0.750764
[ "render" ]
d4f4b951c840f93d943e585fd94fbc49986d7384
3,091
cpp
C++
Attic/AtomicEditorReference/Source/Main.cpp
honigbeutler123/AtomicGameEngine
c53425f19b216eb21ecd3bda85052aaa1a6f2aaa
[ "Apache-2.0", "MIT" ]
null
null
null
Attic/AtomicEditorReference/Source/Main.cpp
honigbeutler123/AtomicGameEngine
c53425f19b216eb21ecd3bda85052aaa1a6f2aaa
[ "Apache-2.0", "MIT" ]
null
null
null
Attic/AtomicEditorReference/Source/Main.cpp
honigbeutler123/AtomicGameEngine
c53425f19b216eb21ecd3bda85052aaa1a6f2aaa
[ "Apache-2.0", "MIT" ]
null
null
null
#if defined(WIN32) && !defined(ATOMIC_WIN32_CONSOLE) #include <Atomic/Core/MiniDump.h> #include <windows.h> #ifdef _MSC_VER #include <crtdbg.h> #endif #endif #include <Atomic/Core/ProcessUtils.h> #include <Atomic/IO/Log.h> #include "AEApplication.h" #include "Player/AEPlayerApplication.h" using namespace AtomicEdit...
25.130081
93
0.67001
[ "vector" ]
d4f870967c3a724c35313a43dd9fef6ad9f1b5ad
6,307
hpp
C++
libs/core/algorithms/tests/unit/algorithms/adjacentfind_tests.hpp
bhumitattarde/hpx
5b34d8d77b1664fa552445d44cd98e51dc69a74a
[ "BSL-1.0" ]
1
2022-02-08T05:55:09.000Z
2022-02-08T05:55:09.000Z
libs/core/algorithms/tests/unit/algorithms/adjacentfind_tests.hpp
deepaksuresh1411/hpx
aa18024d35fe9884a977d4b6076c764dbb8b26d1
[ "BSL-1.0" ]
null
null
null
libs/core/algorithms/tests/unit/algorithms/adjacentfind_tests.hpp
deepaksuresh1411/hpx
aa18024d35fe9884a977d4b6076c764dbb8b26d1
[ "BSL-1.0" ]
null
null
null
// Copyright (c) 2014 Grant Mercer // // SPDX-License-Identifier: BSL-1.0 // 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 <hpx/local/init.hpp> #include <hpx/modules/testing.hpp> #include ...
27.90708
80
0.630252
[ "vector" ]
d4fd795d5e9c40b198e839a845af39879620e6a8
29,987
cpp
C++
tests/genFuncs.cpp
kali-allison/SCycle
0a81edfae8730acb44531e2c2b3f51f25ea193d2
[ "MIT" ]
14
2019-04-12T16:36:36.000Z
2022-03-16T00:35:03.000Z
tests/genFuncs.cpp
kali-allison/SCycle
0a81edfae8730acb44531e2c2b3f51f25ea193d2
[ "MIT" ]
null
null
null
tests/genFuncs.cpp
kali-allison/SCycle
0a81edfae8730acb44531e2c2b3f51f25ea193d2
[ "MIT" ]
6
2019-07-22T23:53:15.000Z
2022-03-10T03:30:50.000Z
#include "genFuncs.hpp" using namespace std; // check if file exists bool doesFileExist(const string fileName) { ifstream infile(fileName.c_str()); return infile.good(); }; // clean up a C++ std library vector of PETSc Vecs void destroyVector(vector<Vec>& vec) { for(vector<Vec>::size_type i = 0; i != vec....
29.660732
145
0.684063
[ "vector" ]
d4ff5930dae40ab0b2f441f2f16d8d4e7aac8769
4,157
cpp
C++
src/cppad.git/example/general/fun_check.cpp
yinzixuan126/my_udacity
cada1bc047cd21282b008a0eb85a1df52fd94034
[ "MIT" ]
1
2019-11-05T02:23:47.000Z
2019-11-05T02:23:47.000Z
src/cppad.git/example/general/fun_check.cpp
yinzixuan126/my_udacity
cada1bc047cd21282b008a0eb85a1df52fd94034
[ "MIT" ]
null
null
null
src/cppad.git/example/general/fun_check.cpp
yinzixuan126/my_udacity
cada1bc047cd21282b008a0eb85a1df52fd94034
[ "MIT" ]
1
2019-11-05T02:23:51.000Z
2019-11-05T02:23:51.000Z
/* -------------------------------------------------------------------------- CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-17 Bradley M. Bell CppAD is distributed under the terms of the Eclipse Public License Version 2.0. This Source Code may also be made available under the following Secon...
29.06993
79
0.578302
[ "object", "vector" ]
be088e43570dad9fb21254169fb5e98244cc577a
7,178
cpp
C++
Pod/musicFramework/impl/OrnamentsFunctions.cpp
iKimee/musicXML
5555f5c00e74c8e3f5ddf7e83072bf208602b970
[ "Apache-2.0" ]
3
2018-12-18T06:38:57.000Z
2022-01-25T10:42:19.000Z
Pod/musicFramework/impl/OrnamentsFunctions.cpp
Bone111/MusicXMLParser
674f6b52634abb95008cc04ee02f4df0055851a6
[ "MIT" ]
null
null
null
Pod/musicFramework/impl/OrnamentsFunctions.cpp
Bone111/MusicXMLParser
674f6b52634abb95008cc04ee02f4df0055851a6
[ "MIT" ]
1
2021-01-29T10:43:31.000Z
2021-01-29T10:43:31.000Z
// MusicXML Class Library // Copyright (c) by Matthew James Briggs // Distributed under the MIT License #include "../impl/OrnamentsFunctions.h" #include "../core/elements/DelayedInvertedTurn.h" #include "../core/elements/DelayedTurn.h" #include "../core/elements/InvertedMordent.h" #include "../core/elements/InvertedTu...
40.325843
118
0.509891
[ "vector" ]
be09fece86df2b581816373ade110d57c27d719e
12,924
cpp
C++
src/CFont.cpp
GeekWithALife/TextEngine
725d1ccb6eb3252f25df7668f3bfa5d781071d50
[ "MIT" ]
null
null
null
src/CFont.cpp
GeekWithALife/TextEngine
725d1ccb6eb3252f25df7668f3bfa5d781071d50
[ "MIT" ]
1
2019-05-25T05:27:08.000Z
2019-05-25T05:27:08.000Z
src/CFont.cpp
sbseltzer/TextEngine
725d1ccb6eb3252f25df7668f3bfa5d781071d50
[ "MIT" ]
null
null
null
#include "../include/CFont.hpp" #include <iostream> #include <fstream> FT_Library Font::lib; std::unordered_map<std::string, Font> Font::fontCache; std::unordered_map<std::string, FT_Face> Font::faceCache; GLuint Font::program = 0; GLuint Font::tex = 0; GLuint Font::vbo = 0; GLuint Font::uniform_tex = 0; GLuint Font::...
28.404396
100
0.683844
[ "render", "object", "vector" ]
be0cd8f4ea4049953f42f3af70b77f0209c7a389
1,345
hpp
C++
include/complex/cubical_map.hpp
YuanL12/BATS
35a32facc87e17649b7fc32225c8ffaf0301bbfa
[ "MIT" ]
null
null
null
include/complex/cubical_map.hpp
YuanL12/BATS
35a32facc87e17649b7fc32225c8ffaf0301bbfa
[ "MIT" ]
null
null
null
include/complex/cubical_map.hpp
YuanL12/BATS
35a32facc87e17649b7fc32225c8ffaf0301bbfa
[ "MIT" ]
null
null
null
#pragma once /* function to produce a cubical map */ /* Create a cell map from simplicial map data i.e. we take a map on 0-cells and extend to a map on all simplices */ #include <iostream> #include <vector> #include <stdexcept> #include <util/simplex.hpp> #include "cell_map.hpp" #include "simplicial_complex.hpp" #i...
22.416667
80
0.636431
[ "vector" ]
be10d1fad7708745bf46946240f1a926b211f465
5,733
cpp
C++
cpp/tests/stream_compaction/drop_nans_tests.cpp
isVoid/cudf
1a3b3f217be93a55b47af3a9d0da29f0fcb7c7e9
[ "Apache-2.0" ]
null
null
null
cpp/tests/stream_compaction/drop_nans_tests.cpp
isVoid/cudf
1a3b3f217be93a55b47af3a9d0da29f0fcb7c7e9
[ "Apache-2.0" ]
1
2020-02-01T14:20:00.000Z
2020-02-01T14:20:00.000Z
cpp/tests/stream_compaction/drop_nans_tests.cpp
isVoid/cudf
1a3b3f217be93a55b47af3a9d0da29f0fcb7c7e9
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2020, 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 ...
40.659574
99
0.64277
[ "vector" ]
be13381b7c9bb14dac8972ed9f2faef4084e4062
13,846
cpp
C++
src/gt-ped-generation.cpp
yp/Heu-MCHC
30c4a5e189c7ab67d82357d2c8a98833a556345a
[ "BSD-3-Clause" ]
1
2020-06-30T04:39:34.000Z
2020-06-30T04:39:34.000Z
src/gt-ped-generation.cpp
yp/Heu-MCHC
30c4a5e189c7ab67d82357d2c8a98833a556345a
[ "BSD-3-Clause" ]
null
null
null
src/gt-ped-generation.cpp
yp/Heu-MCHC
30c4a5e189c7ab67d82357d2c8a98833a556345a
[ "BSD-3-Clause" ]
null
null
null
/** * * * Heu-MCHC * * A fast and accurate heuristic algorithm for the haplotype inference * problem on pedigree data with recombinations and mutations * * Copyright (C) 2009,2010,2011 Yuri PIROLA * * Distributed under the terms of the GNU General Public License (GPL) * * * T...
26.423664
96
0.618301
[ "shape", "vector" ]
be16c08f057b4913dafc544d6c7d486ee5f34825
5,525
cpp
C++
src/Notifier.cpp
john-gress/QueueNado
7bcd499f2a3b69c65c01203fad5922e545266fcd
[ "MIT" ]
7
2018-03-31T04:40:50.000Z
2021-03-02T22:39:03.000Z
src/Notifier.cpp
LogRhythm/QueueNado
7bcd499f2a3b69c65c01203fad5922e545266fcd
[ "MIT" ]
13
2016-03-01T18:03:25.000Z
2018-02-09T22:01:24.000Z
src/Notifier.cpp
john-gress/QueueNado
7bcd499f2a3b69c65c01203fad5922e545266fcd
[ "MIT" ]
4
2018-06-18T16:58:16.000Z
2020-10-16T18:27:32.000Z
/* * File: Notifier.cpp * Author: Craig Cogdill * Created: August 13, 2015 3:20PM */ #include "Notifier.h" #include <g3log/g3log.hpp> #include <mutex> #include <memory> #include <Shotgun.h> #include <Vampire.h> #include <StopWatch.h> std::unique_ptr<Notifier> Notifier::CreateNotifier(const std::string& notifierQ...
28.926702
151
0.682172
[ "vector" ]
be18d3ba0ec4fcfa7beb4da920e0d7cc213d07ea
16,927
cc
C++
engine/source/gui/messageVector.cc
close-code/Torque2D
ad141fc7b5f28b75f727ef29dcc93aafbb3f5aa3
[ "MIT" ]
1,309
2015-01-01T02:46:14.000Z
2022-03-14T04:56:02.000Z
engine/source/gui/messageVector.cc
close-code/Torque2D
ad141fc7b5f28b75f727ef29dcc93aafbb3f5aa3
[ "MIT" ]
155
2015-01-11T19:26:32.000Z
2021-11-22T04:08:55.000Z
engine/source/gui/messageVector.cc
close-code/Torque2D
ad141fc7b5f28b75f727ef29dcc93aafbb3f5aa3
[ "MIT" ]
1,595
2015-01-01T23:19:48.000Z
2022-02-17T07:00:52.000Z
//----------------------------------------------------------------------------- // Copyright (c) 2013 GarageGames, LLC // // 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 restr...
41.795062
212
0.524428
[ "object", "vector" ]
be1a680a5ca50cb581c261fdc79e600f3fa43ff3
709
cpp
C++
platforms/leetcode/0209_truncate_sentence.cpp
idfumg/algorithms
06f85c5a1d07a965df44219b5a6bf0d43a129256
[ "MIT" ]
2
2020-09-17T09:04:00.000Z
2020-11-20T19:43:18.000Z
platforms/leetcode/0209_truncate_sentence.cpp
idfumg/algorithms
06f85c5a1d07a965df44219b5a6bf0d43a129256
[ "MIT" ]
null
null
null
platforms/leetcode/0209_truncate_sentence.cpp
idfumg/algorithms
06f85c5a1d07a965df44219b5a6bf0d43a129256
[ "MIT" ]
null
null
null
#include "../../template.hpp" string sol(const string& s, const int k) { vector<string> words; string word; istringstream is(s); while (is >> word) { words.push_back(word); } while (words.size() > k) words.pop_back(); string ans; for (int i = 0; i < words.size(); ++i) { ...
29.541667
93
0.551481
[ "vector" ]
be24494b7107a740e5f041520921d14c284d89a4
750
cpp
C++
framework/CoreDataDrivenSequence/Sources/ModuleDDSequence.cpp
Daniel-Mietchen/kigs
92ab6deaf3e947465781a400c5a791ee171876c8
[ "MIT" ]
38
2020-05-08T13:39:57.000Z
2022-03-28T05:58:41.000Z
framework/CoreDataDrivenSequence/Sources/ModuleDDSequence.cpp
Daniel-Mietchen/kigs
92ab6deaf3e947465781a400c5a791ee171876c8
[ "MIT" ]
3
2020-06-01T14:12:36.000Z
2020-06-24T13:05:21.000Z
framework/CoreDataDrivenSequence/Sources/ModuleDDSequence.cpp
Daniel-Mietchen/kigs
92ab6deaf3e947465781a400c5a791ee171876c8
[ "MIT" ]
16
2020-05-04T19:20:35.000Z
2022-01-25T08:31:29.000Z
#include "ModuleDDSequence.h" #include "BaseDDSequence.h" #include "BumperDDSequence.h" IMPLEMENT_CLASS_INFO(ModuleDDSequence); ModuleDDSequence::ModuleDDSequence(const kstl::string& name, CLASS_NAME_TREE_ARG) : ModuleBase(name, PASS_CLASS_NAME_TREE_ARG) { } void ModuleDDSequence::Init(KigsCore* core, const kstl...
23.4375
97
0.801333
[ "vector" ]
be293d919b817e3e747d48b878ec6a9df314549b
314
cc
C++
majority-element.cc
ArCan314/leetcode
8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd
[ "MIT" ]
null
null
null
majority-element.cc
ArCan314/leetcode
8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd
[ "MIT" ]
null
null
null
majority-element.cc
ArCan314/leetcode
8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd
[ "MIT" ]
null
null
null
#include <vector> #include <unordered_map> class Solution { public: int majorityElement(std::vector<int>& nums) { std::unordered_map<int, int> dict; for (const int num : nums) if (int i = ++dict[num]; i > nums.size() / 2) return num; return 0; } };
22.428571
57
0.538217
[ "vector" ]
be34f1086d1c38240777960c21044afff7dbb081
2,280
cpp
C++
code/leetcode/src/0117.Populating-Next-Right-Pointers-in-Each-Node-II.cpp
taseikyo/til
8f703e69a49cbd9854062b102ba307c775d43a56
[ "MIT" ]
1
2021-09-01T14:39:12.000Z
2021-09-01T14:39:12.000Z
code/leetcode/src/0117.Populating-Next-Right-Pointers-in-Each-Node-II.cpp
taseikyo/til
8f703e69a49cbd9854062b102ba307c775d43a56
[ "MIT" ]
null
null
null
code/leetcode/src/0117.Populating-Next-Right-Pointers-in-Each-Node-II.cpp
taseikyo/til
8f703e69a49cbd9854062b102ba307c775d43a56
[ "MIT" ]
null
null
null
/** * @authors Lewis Tian (taseikyo@gmail.com) * @date 2020-06-24 14:57:55 * @link github.com/taseikyo */ /* // Definition for a Node. class Node { public: int val; Node* left; Node* right; Node* next; Node() : val(0), left(NULL), right(NULL), next(NULL) {} Node(int _val) : val(_val...
19
70
0.507456
[ "vector" ]
be372bb8555ffa5552d3b91af27ce6b78aa7da89
3,460
cpp
C++
indra/llcommon/tests/llframetimer_test.cpp
SaladDais/LSO2-VM-Performance
d7ec9ad9daa9a2c9e48c5f06cd768606e3e50638
[ "ISC" ]
1
2022-01-29T07:10:03.000Z
2022-01-29T07:10:03.000Z
indra/llcommon/tests/llframetimer_test.cpp
SaladDais/LSO2-VM-Performance
d7ec9ad9daa9a2c9e48c5f06cd768606e3e50638
[ "ISC" ]
null
null
null
indra/llcommon/tests/llframetimer_test.cpp
SaladDais/LSO2-VM-Performance
d7ec9ad9daa9a2c9e48c5f06cd768606e3e50638
[ "ISC" ]
1
2021-10-01T22:22:27.000Z
2021-10-01T22:22:27.000Z
/** * @file lltiming_test.cpp * @date 2006-07-23 * @brief Tests the timers. * * $LicenseInfo:firstyear=2006&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GN...
28.360656
102
0.717052
[ "object" ]
be3ac413d9eface9b82e4ba2f7835d7d92b867f4
5,953
cpp
C++
src/mame/drivers/fidel_eldorado.cpp
Robbbert/messui
49b756e2140d8831bc81335298ee8c5471045e79
[ "BSD-3-Clause" ]
26
2015-03-31T06:25:51.000Z
2021-12-14T09:29:04.000Z
src/mame/drivers/fidel_eldorado.cpp
Robbbert/messui
49b756e2140d8831bc81335298ee8c5471045e79
[ "BSD-3-Clause" ]
null
null
null
src/mame/drivers/fidel_eldorado.cpp
Robbbert/messui
49b756e2140d8831bc81335298ee8c5471045e79
[ "BSD-3-Clause" ]
10
2015-03-27T05:45:51.000Z
2022-02-04T06:57:36.000Z
// license:BSD-3-Clause // copyright-holders:hap // thanks-to:bataais /****************************************************************************** Fidelity Eldorado Chess Challenger (model 6119) Hardware notes: - PCB label CXG262-600-001, CXG262-600-101 - TMP80C49AP6-6744 MCU, 2KB internal ROM, 6MHz XTAL - buzzer,...
28.758454
203
0.619856
[ "model" ]
be4f965f6853be0c311ec442c7a7055ab009b13d
3,215
cpp
C++
code/covidm_for_fitting/model_v2/reporter.cpp
yangclaraliu/COVID_Vac_Delay
0c3a88ab26d2983b809779eda97194f5d9b9cb51
[ "CC0-1.0" ]
1
2021-11-04T21:05:34.000Z
2021-11-04T21:05:34.000Z
code/covidm_for_fitting/model_v2/reporter.cpp
yangclaraliu/COVID_Vac_Delay
0c3a88ab26d2983b809779eda97194f5d9b9cb51
[ "CC0-1.0" ]
null
null
null
code/covidm_for_fitting/model_v2/reporter.cpp
yangclaraliu/COVID_Vac_Delay
0c3a88ab26d2983b809779eda97194f5d9b9cb51
[ "CC0-1.0" ]
null
null
null
// reporter.cpp #include "reporter.h" #include "parameters.h" #include <numeric> Reporter::Reporter(Parameters& P) : t0(P.time0), n_times((unsigned int)(P.time1 - P.time0) + 1), n_populations(P.pop.size()), n_age_groups(P.pop[0].size.size()), col_names(ref_col_names), user_defined_offset(ref_col_names.si...
29.495413
150
0.56703
[ "vector" ]
be56610421d2289b180b3aad227e9c052192f35a
1,375
hpp
C++
Source/Object/Squad/squad.hpp
weenchvd/Wasteland3
e1d9b96f73b9d1901dfee61ec2d468e00560cb00
[ "BSL-1.0" ]
null
null
null
Source/Object/Squad/squad.hpp
weenchvd/Wasteland3
e1d9b96f73b9d1901dfee61ec2d468e00560cb00
[ "BSL-1.0" ]
null
null
null
Source/Object/Squad/squad.hpp
weenchvd/Wasteland3
e1d9b96f73b9d1901dfee61ec2d468e00560cb00
[ "BSL-1.0" ]
null
null
null
// Copyright (c) 2021 Vitaly Dikov // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt) #ifndef SQUAD_HPP #define SQUAD_HPP #include"common.hpp" #include"inventory.hpp" #include"unit.hpp" #include<array> #include<memory>...
25.462963
100
0.650909
[ "object" ]
be5ab89e0c6120c036aff84dff569775bf0f220b
22,008
cpp
C++
app/main.cpp
cdyk/meshtool
e24ff0ae1b5c88645cb9f8d79da2ca47a369a345
[ "MIT" ]
6
2018-10-04T14:04:40.000Z
2018-12-21T16:04:47.000Z
app/main.cpp
cdyk/meshtool
e24ff0ae1b5c88645cb9f8d79da2ca47a369a345
[ "MIT" ]
null
null
null
app/main.cpp
cdyk/meshtool
e24ff0ae1b5c88645cb9f8d79da2ca47a369a345
[ "MIT" ]
null
null
null
#define WIN32_LEAN_AND_MEAN #define NOMINMAX #include <Windows.h> #define GLFW_INCLUDE_VULKAN #include <GLFW/glfw3.h> //#include <GL/gl3w.h> #include <imgui.h> #include <imgui_internal.h> #include <vector> #include <cctype> #include <chrono> #include <examples/imgui_impl_glfw.h> #include <cstdio> #include "Viewer.h" #...
33.295008
151
0.585242
[ "mesh", "render", "object", "vector", "model", "solid" ]
be5b83c0999111ef9a0840824a6ee511247c0192
26,745
cpp
C++
3fd/rpc/rpc_impl_client.cpp
faburaya/3fd
2fa0b57b9702902178c878fe3d317d55ec4cdc95
[ "MS-PL" ]
23
2017-04-23T08:32:55.000Z
2022-02-21T00:13:29.000Z
3fd/rpc/rpc_impl_client.cpp
faburaya/3fd
2fa0b57b9702902178c878fe3d317d55ec4cdc95
[ "MS-PL" ]
3
2018-10-16T23:02:50.000Z
2021-11-17T19:43:21.000Z
3fd/rpc/rpc_impl_client.cpp
faburaya/3fd
2fa0b57b9702902178c878fe3d317d55ec4cdc95
[ "MS-PL" ]
4
2018-08-01T13:24:41.000Z
2021-06-11T20:59:52.000Z
#include "pch.h" #include "rpc_helpers.h" #include "rpc_impl_util.h" #include <3fd/core/callstacktracer.h> #include <3fd/core/configuration.h> #include <3fd/core/logger.h> #include <3fd/core/logger.h> #include <3fd/utils/algorithms.h> #include <3fd/utils/serialization.h> #include <memory> #include <codecvt> #include <...
38.76087
119
0.597457
[ "object" ]
be5f148cdfe9d25b307e8b9ba9bdcff833906607
36,837
cpp
C++
source/GCLCEngine/Cartesian2DCommands.cpp
CoghettoR/gclc
b481b15d28ee66f995b73283e26c285ca8c4a821
[ "MIT" ]
21
2020-12-08T20:06:01.000Z
2022-02-13T22:52:02.000Z
source/GCLCEngine/Cartesian2DCommands.cpp
CoghettoR/gclc
b481b15d28ee66f995b73283e26c285ca8c4a821
[ "MIT" ]
9
2020-12-20T03:54:55.000Z
2022-03-31T19:30:04.000Z
source/GCLCEngine/Cartesian2DCommands.cpp
CoghettoR/gclc
b481b15d28ee66f995b73283e26c285ca8c4a821
[ "MIT" ]
5
2021-04-25T18:47:17.000Z
2022-01-23T02:37:30.000Z
#include "../Input/GCLCInput.h" #include "GCLC.h" #include <cmath> #include <iomanip> #include <iostream> #include <sstream> // ---------------------------------------------------------------------------- GCLCError CGCLC::ang_picture() { GCLCError iRv; if ((iRv = ReadNumber(m_2D_Area.x_lb)) != rvGCLC...
27.885693
86
0.451964
[ "transform" ]
415779ea1b9633d7b5510b5d14b97a28f26112c4
2,104
cpp
C++
library/Methods/Graphs/one-centroid-dynmaic-tree.cpp
sarafanshul/KACTL
fa14ed34e93cd32d8625ed3729ba2eee55838340
[ "MIT" ]
4
2021-01-05T09:25:59.000Z
2021-09-27T03:57:28.000Z
library/Methods/Graphs/one-centroid-dynmaic-tree.cpp
sarafanshul/KACTL
fa14ed34e93cd32d8625ed3729ba2eee55838340
[ "MIT" ]
null
null
null
library/Methods/Graphs/one-centroid-dynmaic-tree.cpp
sarafanshul/KACTL
fa14ed34e93cd32d8625ed3729ba2eee55838340
[ "MIT" ]
null
null
null
// Centroid(s) of a tree // https://codeforces.com/blog/entry/57593 /* "By the way, when you do Centroid Decomposition, you don't need to know 2 centroids of the tree. Therefore, if you just want to find 'a' centroid of a dynamic tree, you can implement this in the following way:" -> for deleting the centroid...
28.821918
211
0.594582
[ "vector" ]
416b7f7211b44493a18227c8bf59922dadf8b977
14,455
cpp
C++
test/test_01/test_01.cpp
tamask1s/zax-tensor
1f1bed9dd255c6023925598a568218997949a849
[ "Apache-2.0" ]
2
2022-01-03T09:23:27.000Z
2022-01-03T12:24:33.000Z
test/test_01/test_01.cpp
tamask1s/zax-tensor
1f1bed9dd255c6023925598a568218997949a849
[ "Apache-2.0" ]
null
null
null
test/test_01/test_01.cpp
tamask1s/zax-tensor
1f1bed9dd255c6023925598a568218997949a849
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <string> #include <map> #include <random> #include <vector> #include <algorithm> #include <typeinfo> #include <cstring> #include <stdio.h> #include <cstdlib> using namespace std; #include "ZaxJsonParser.h" #include "ZaxTensor.h" struct CClassInside { int x = 11; int y = 7; virt...
29.026104
148
0.432446
[ "shape", "vector" ]
417ed446f5b8f59e63892b51c07f256b716b63d8
8,187
ipp
C++
step02/Vector.ipp
CppGoneWild/MetaConf
474a584efd18071c805a75deb6c408504a014145
[ "Unlicense" ]
2
2017-10-17T12:25:53.000Z
2018-08-24T11:56:58.000Z
step02/Vector.ipp
CppGoneWild/MetaConf
474a584efd18071c805a75deb6c408504a014145
[ "Unlicense" ]
null
null
null
step02/Vector.ipp
CppGoneWild/MetaConf
474a584efd18071c805a75deb6c408504a014145
[ "Unlicense" ]
null
null
null
template<class T, std::size_t SIZE> Vector<T, SIZE>::Vector(T const & value) : Vector<T, SIZE - 1>(value), value(value) {} template<class T, std::size_t SIZE> template<class U> Vector<T, SIZE>::Vector(Vector<U, SIZE> const & other) : Vector<T, SIZE - 1>(other), value(other.value) {} template<class T, std::size_t ...
19.680288
97
0.648467
[ "vector" ]
4189451f6a6f1f67daec9a6413df10fe60de83e2
1,090
cpp
C++
LeetCode/Problems/Algorithms/#15_3Sum_sol4_binary_search_O(N^2logN)_928ms_19.9MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
1
2022-01-26T14:50:07.000Z
2022-01-26T14:50:07.000Z
LeetCode/Problems/Algorithms/#15_3Sum_sol4_binary_search_O(N^2logN)_928ms_19.9MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
LeetCode/Problems/Algorithms/#15_3Sum_sol4_binary_search_O(N^2logN)_928ms_19.9MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
class Solution { public: vector<vector<int>> threeSum(vector<int>& nums) { sort(nums.begin(), nums.end()); vector<vector<int>> answer; for(int i = 0; i < nums.size(); ++i){ if(i > 0 && nums[i - 1] == nums[i]){ // Ignore duplicate triplets with the...
37.586207
106
0.409174
[ "vector" ]
418a31b90fd05618a78c7f6c247574c09f952b39
3,749
cpp
C++
EZOJ/Contests/1377/C.cpp
sshockwave/Online-Judge-Solutions
9d0bc7fd68c3d1f661622929c1cb3752601881d3
[ "MIT" ]
6
2019-09-30T16:11:00.000Z
2021-11-01T11:42:33.000Z
EZOJ/Contests/1377/C.cpp
sshockwave/Online-Judge-Solutions
9d0bc7fd68c3d1f661622929c1cb3752601881d3
[ "MIT" ]
4
2017-11-21T08:17:42.000Z
2020-07-28T12:09:52.000Z
EZOJ/Contests/1377/C.cpp
sshockwave/Online-Judge-Solutions
9d0bc7fd68c3d1f661622929c1cb3752601881d3
[ "MIT" ]
4
2017-07-26T05:54:06.000Z
2020-09-30T13:35:38.000Z
#include <iostream> #include <cstdio> #include <cstring> #include <cassert> #include <cctype> #include <map> #include <vector> using namespace std; typedef long long lint; #define cout cerr #define ni (next_num<int>()) template<class T>inline T next_num(){ T i=0;char c; while(!isdigit(c=getchar())&&c!='-'); bool fla...
20.264865
76
0.555882
[ "vector" ]
418e18c9f5a693f9d58ea85a75aa6ce7a835db63
7,904
cxx
C++
Visualization/vtkCudaVisualization/vtkCudaDualImageVolumeMapper.cxx
jcfr/RobartsVTK
d711c99b9c5b8a53afd23ee10d84f77a24565a3f
[ "MIT" ]
5
2016-11-17T01:29:25.000Z
2021-11-19T05:24:10.000Z
Visualization/vtkCudaVisualization/vtkCudaDualImageVolumeMapper.cxx
jcfr/RobartsVTK
d711c99b9c5b8a53afd23ee10d84f77a24565a3f
[ "MIT" ]
2
2017-07-20T20:32:24.000Z
2018-03-09T21:53:15.000Z
Visualization/vtkCudaVisualization/vtkCudaDualImageVolumeMapper.cxx
jcfr/RobartsVTK
d711c99b9c5b8a53afd23ee10d84f77a24565a3f
[ "MIT" ]
5
2016-12-19T20:40:34.000Z
2021-08-18T07:59:30.000Z
/*========================================================================= Program: Robarts Visualization Toolkit Copyright (c) John Stuart Haberl Baxter, Robarts Research Institute This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ...
36.592593
178
0.744686
[ "render" ]
41926e1305f67ec225992b4f9f38f026d5d21821
1,804
hpp
C++
src/mbgl/renderer/layers/render_fill_layer.hpp
sp0n-7/mapbox-gl-native
0df37421faeaffb83564a81a469faa099434b767
[ "BSL-1.0", "Apache-2.0" ]
6
2019-06-17T05:41:03.000Z
2022-01-20T13:16:14.000Z
src/mbgl/renderer/layers/render_fill_layer.hpp
sp0n-7/mapbox-gl-native
0df37421faeaffb83564a81a469faa099434b767
[ "BSL-1.0", "Apache-2.0" ]
null
null
null
src/mbgl/renderer/layers/render_fill_layer.hpp
sp0n-7/mapbox-gl-native
0df37421faeaffb83564a81a469faa099434b767
[ "BSL-1.0", "Apache-2.0" ]
4
2019-08-30T07:40:17.000Z
2022-01-13T09:36:55.000Z
#pragma once #include <mbgl/renderer/render_layer.hpp> #include <mbgl/style/layers/fill_layer_impl.hpp> #include <mbgl/style/layers/fill_layer_properties.hpp> #include <mbgl/layout/pattern_layout.hpp> namespace mbgl { class FillBucket; class RenderFillLayer: public RenderLayer { public: using StyleLayerImpl = s...
32.8
132
0.721175
[ "render", "vector" ]
41928680a4149e7dbe0ca818e339616f49d57aca
6,087
cpp
C++
Plugins/Core/src/ImgProc/WhiteBalance.cpp
zhangyldanny/EagleEye
5b04ab52cdb03f710eff836e84f695446282848d
[ "BSD-3-Clause" ]
14
2015-10-07T13:08:30.000Z
2021-03-04T08:05:24.000Z
Plugins/Core/src/ImgProc/WhiteBalance.cpp
zhangyldanny/EagleEye
5b04ab52cdb03f710eff836e84f695446282848d
[ "BSD-3-Clause" ]
29
2015-03-01T20:29:59.000Z
2017-09-05T06:58:04.000Z
Plugins/Core/src/ImgProc/WhiteBalance.cpp
zhangyldanny/EagleEye
5b04ab52cdb03f710eff836e84f695446282848d
[ "BSD-3-Clause" ]
8
2016-11-16T19:59:59.000Z
2018-07-02T11:20:31.000Z
#include "WhiteBalance.hpp" #include <Aquila/nodes/NodeInfo.hpp> #include <opencv2/cudaimgproc.hpp> #include <opencv2/cudaarithm.hpp> #include <iostream> using namespace aq::nodes; using namespace cv; bool WhiteBalance::processImpl() { cv::cuda::GpuMat output; auto lower = cv::Scalar(lower_blue, lower_green,...
32.550802
120
0.559389
[ "vector" ]
419294ff096bb10437a434302eda28b0cce7073b
12,569
cpp
C++
Antario/Features/Aimbot/ResolverRecode.cpp
hashcoder777/Digitalwave.pro
b1fe6b0ffa1d91612cc64a3ed72f30df0f032adc
[ "Apache-2.0" ]
null
null
null
Antario/Features/Aimbot/ResolverRecode.cpp
hashcoder777/Digitalwave.pro
b1fe6b0ffa1d91612cc64a3ed72f30df0f032adc
[ "Apache-2.0" ]
null
null
null
Antario/Features/Aimbot/ResolverRecode.cpp
hashcoder777/Digitalwave.pro
b1fe6b0ffa1d91612cc64a3ed72f30df0f032adc
[ "Apache-2.0" ]
null
null
null
#include "ResolverRecode.h" #include "../AntiAim/AntiAim.h" ResolverRecode g_ResolverRecode; void ResolverRecode::HandleHits(C_BaseEntity* pEnt) //def handle { auto NetChannel = g_pEngine->GetNetChannelInfo(); if (!NetChannel) return; static float predTime[65]; static bool init[65]; if (g::Shot[pEnt->EntInd...
28.308559
222
0.705068
[ "vector" ]
419b0c202ac19aee07b8de560a6354d4d4743acb
1,288
cpp
C++
parameter.cpp
GGonzalesD/cargs
37f7ad325ce76f5e649f2bc1eb5c37f5be404f38
[ "MIT" ]
null
null
null
parameter.cpp
GGonzalesD/cargs
37f7ad325ce76f5e649f2bc1eb5c37f5be404f38
[ "MIT" ]
null
null
null
parameter.cpp
GGonzalesD/cargs
37f7ad325ce76f5e649f2bc1eb5c37f5be404f38
[ "MIT" ]
null
null
null
#include "xargs/parameter.hpp" namespace carg{ std::vector<std::string> getNames(std::string name){ std::vector<std::string> names = std::vector<std::string>(); std::string tmp = ""; for(size_t i=0; i<name.size(); i++){ if(name.at(i) == '='){ names.push_back(tmp); tmp = ""; }else{ tmp.push_back(name....
18.4
86
0.628106
[ "vector" ]
41a64c0ff294305649fa89840b55907f25bed3c5
1,359
cpp
C++
solutions/1081/20120311T161321Z-4176265.cpp
Mistereo/timus-solutions
062540304c33312b75e0e8713c4b36c80fb220ab
[ "MIT" ]
11
2019-10-29T15:34:53.000Z
2022-03-14T14:45:09.000Z
solutions/1081/20120311T161321Z-4176265.cpp
Mistereo/timus-solutions
062540304c33312b75e0e8713c4b36c80fb220ab
[ "MIT" ]
null
null
null
solutions/1081/20120311T161321Z-4176265.cpp
Mistereo/timus-solutions
062540304c33312b75e0e8713c4b36c80fb220ab
[ "MIT" ]
6
2018-06-30T12:06:55.000Z
2021-03-20T08:46:33.000Z
#ifndef ONLINE_JUDGE #include <ctime> #endif #include <iostream> #include <string> #include <vector> #include <map> #include <set> #include <algorithm> #include <cstdlib> #include <stack> #include <stdio.h> #include <stdlib.h> #include <queue> #include <sstream> #define pb push_back #define mp make_...
21.234375
63
0.482708
[ "vector" ]
41abe9c8f6f11a9fbf1d46a769fb04f037fd6f80
6,171
cpp
C++
sample/SkySphere/main_glfw.cpp
menonon/SimpleGLWrapper
a99af4ee9b0e9fef8ac1ffe3b01aef32157929bb
[ "MIT" ]
null
null
null
sample/SkySphere/main_glfw.cpp
menonon/SimpleGLWrapper
a99af4ee9b0e9fef8ac1ffe3b01aef32157929bb
[ "MIT" ]
null
null
null
sample/SkySphere/main_glfw.cpp
menonon/SimpleGLWrapper
a99af4ee9b0e9fef8ac1ffe3b01aef32157929bb
[ "MIT" ]
null
null
null
/* The MIT License (MIT) Copyright (c) 2013-2018 menonon Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
26.830435
135
0.6994
[ "geometry", "vector", "model", "transform" ]
41ac9dbb1a536adf0cc665857aa2db68c8a032e1
9,650
cpp
C++
vector_map_converter/src/opendrive2autowaremap_core/map_writer.cpp
neophack/utilities
a6ce6d7c1b407e555955491874d66e7ef263d52d
[ "Apache-2.0" ]
null
null
null
vector_map_converter/src/opendrive2autowaremap_core/map_writer.cpp
neophack/utilities
a6ce6d7c1b407e555955491874d66e7ef263d52d
[ "Apache-2.0" ]
null
null
null
vector_map_converter/src/opendrive2autowaremap_core/map_writer.cpp
neophack/utilities
a6ce6d7c1b407e555955491874d66e7ef263d52d
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2019 Autoware Foundation. 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 b...
31.953642
154
0.718756
[ "vector" ]
41b59361dac2a8a18a96bff449b919c956e46076
7,685
cpp
C++
BGL/test/BGL/test_helpers.cpp
ffteja/cgal
c1c7f4ad9a4cd669e33ca07a299062a461581812
[ "CC0-1.0" ]
3,227
2015-03-05T00:19:18.000Z
2022-03-31T08:20:35.000Z
BGL/test/BGL/test_helpers.cpp
ffteja/cgal
c1c7f4ad9a4cd669e33ca07a299062a461581812
[ "CC0-1.0" ]
5,574
2015-03-05T00:01:56.000Z
2022-03-31T15:08:11.000Z
BGL/test/BGL/test_helpers.cpp
ffteja/cgal
c1c7f4ad9a4cd669e33ca07a299062a461581812
[ "CC0-1.0" ]
1,274
2015-03-05T00:01:12.000Z
2022-03-31T14:47:56.000Z
#include <CGAL/Simple_cartesian.h> #include <CGAL/Surface_mesh.h> #include <CGAL/boost/graph/graph_traits_Surface_mesh.h> #include <CGAL/boost/graph/generators.h> #include <CGAL/boost/graph/helpers.h> #include <CGAL/boost/graph/Euler_operations.h> #include <iostream> #include <fstream> typedef CGAL::Simple_cartesian...
32.702128
100
0.648926
[ "mesh" ]
41b7ff256894c17798eaff8cc2f447dd64b16c82
4,190
cpp
C++
ql/models/marketmodels/products/pathwise/pathwiseproductswap.cpp
haozhangphd/QuantLib-noBoost
ddded069868161099843c04840454f00816113ad
[ "BSD-3-Clause" ]
76
2017-06-28T21:24:38.000Z
2021-12-19T18:07:37.000Z
ql/models/marketmodels/products/pathwise/pathwiseproductswap.cpp
haozhangphd/QuantLib-noBoost
ddded069868161099843c04840454f00816113ad
[ "BSD-3-Clause" ]
2
2017-07-05T09:20:13.000Z
2019-10-31T12:06:51.000Z
ql/models/marketmodels/products/pathwise/pathwiseproductswap.cpp
haozhangphd/QuantLib-noBoost
ddded069868161099843c04840454f00816113ad
[ "BSD-3-Clause" ]
34
2017-07-02T14:49:21.000Z
2021-11-26T15:32:04.000Z
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2009 Mark Joshi This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/or m...
32.230769
129
0.652745
[ "vector" ]
41bb138fd832dea18dc80d97d6247dd40dbf4acc
741
hpp
C++
include/turbo/graphics/Text.hpp
mariusvn/turbo-engine
63cc2b76bc1aff7de9655916553a03bd768f5879
[ "MIT" ]
2
2021-02-12T13:05:02.000Z
2021-02-22T14:25:00.000Z
include/turbo/graphics/Text.hpp
mariusvn/turbo-engine
63cc2b76bc1aff7de9655916553a03bd768f5879
[ "MIT" ]
null
null
null
include/turbo/graphics/Text.hpp
mariusvn/turbo-engine
63cc2b76bc1aff7de9655916553a03bd768f5879
[ "MIT" ]
null
null
null
#ifndef __TURBO_TEXT_HPP__ #define __TURBO_TEXT_HPP__ #include "Drawable.hpp" #include "../Transform.hpp" #include "../Font.hpp" namespace turbo { /** * @brief Represent a drawable text */ class Text: public Drawable { public: /** * @brief Construct a new Text drawable ...
18.073171
48
0.512821
[ "transform" ]
41bd0fe17fb8fbe2dde794c7513d1137eddbac57
385
cpp
C++
src/problem118/Solution.cpp
MyYaYa/leetcode
d779c215516ede594267b15abdfba5a47dc879dd
[ "Apache-2.0" ]
1
2016-09-29T14:23:59.000Z
2016-09-29T14:23:59.000Z
src/problem118/Solution.cpp
MyYaYa/leetcode
d779c215516ede594267b15abdfba5a47dc879dd
[ "Apache-2.0" ]
null
null
null
src/problem118/Solution.cpp
MyYaYa/leetcode
d779c215516ede594267b15abdfba5a47dc879dd
[ "Apache-2.0" ]
null
null
null
class Solution { public: vector<vector<int>> generate(int numRows) { vector<vector<int>> result; for (int i = 0; i < numRows; i++) { vector<int> temp(i+1, 1); for (int j = 1; j < i; j++) { temp[j] = result[i-1][j-1] + result[i-1][j]; } ...
27.5
60
0.446753
[ "vector" ]
41bff36a3e7eb32f18cbcbae6c611b2e7f658c91
4,299
cpp
C++
src/main/main.cpp
mrc-g/FogMon
dc040e5566d4fa6b0fca80fb46767f40f19b7c2e
[ "MIT" ]
7
2019-05-08T08:25:40.000Z
2021-06-19T10:42:56.000Z
src/main/main.cpp
mrc-g/FogMon
dc040e5566d4fa6b0fca80fb46767f40f19b7c2e
[ "MIT" ]
5
2020-03-07T15:24:27.000Z
2022-03-12T00:49:53.000Z
src/main/main.cpp
mrc-g/FogMon
dc040e5566d4fa6b0fca80fb46767f40f19b7c2e
[ "MIT" ]
4
2020-03-05T17:05:42.000Z
2021-11-21T16:00:56.000Z
#include "inputParser.hpp" #include "node.hpp" #include "message.hpp" #include <unistd.h> #include <string> using namespace std; //sudo docker run -it --net=host server -C 54.93.78.224 //sudo docker run -it --net=host node -C 54.93.78.224 //sudo docker run -it --net=host server --time-report 5 --time-tests 10 --t...
31.610294
140
0.619912
[ "vector" ]
41c6e800669f239341a893c85607942708af016d
2,000
cpp
C++
AtCoder/arc127/a/main.cpp
H-Tatsuhiro/Com_Pro-Cpp
fd79f7821a76b11f4a6f83bbb26a034db577a877
[ "MIT" ]
null
null
null
AtCoder/arc127/a/main.cpp
H-Tatsuhiro/Com_Pro-Cpp
fd79f7821a76b11f4a6f83bbb26a034db577a877
[ "MIT" ]
1
2021-10-19T08:47:23.000Z
2022-03-07T05:23:56.000Z
AtCoder/arc127/a/main.cpp
H-Tatsuhiro/Com_Pro-Cpp
fd79f7821a76b11f4a6f83bbb26a034db577a877
[ "MIT" ]
null
null
null
#include <iostream> #include <cmath> #include <algorithm> #include <vector> using namespace std; int main() { long long int n; cin >> n; long long int ans = 0; vector<pair<long long int, long long int>> v; v.push_back(make_pair(0, 9)); for (long long int i = 10; i <= 10e14; i *= 10) v.push_back(make...
28.571429
90
0.394
[ "vector" ]
41cb53c4635f3074de8d808b6c2f36a9ccdfc8da
3,930
hpp
C++
third-party/casadi/casadi/solvers/symbolic_qr.hpp
dbdxnuliba/mit-biomimetics_Cheetah
f3b0c0f6a3835d33b7f2f345f00640b3fc256388
[ "MIT" ]
8
2020-02-18T09:07:48.000Z
2021-12-25T05:40:02.000Z
third-party/casadi/casadi/solvers/symbolic_qr.hpp
geekfeiw/Cheetah-Software
f3b0c0f6a3835d33b7f2f345f00640b3fc256388
[ "MIT" ]
null
null
null
third-party/casadi/casadi/solvers/symbolic_qr.hpp
geekfeiw/Cheetah-Software
f3b0c0f6a3835d33b7f2f345f00640b3fc256388
[ "MIT" ]
13
2019-08-25T12:32:06.000Z
2022-03-31T02:38:12.000Z
/* * This file is part of CasADi. * * CasADi -- A symbolic framework for dynamic optimization. * Copyright (C) 2010-2014 Joel Andersson, Joris Gillis, Moritz Diehl, * K.U. Leuven. All rights reserved. * Copyright (C) 2011-2014 Greg Horn * * CasADi is free software; you ...
30.465116
95
0.681679
[ "vector" ]
41cc8ff5e1bdbd221c9981e135409f13cc47cb9d
5,862
cpp
C++
src/outputs/formatted_table.cpp
michaeljennings11/Athena_Thermal_Instability
7f647e8640e35ab3dce1273ec1bbc90bf4d8901b
[ "BSD-3-Clause" ]
null
null
null
src/outputs/formatted_table.cpp
michaeljennings11/Athena_Thermal_Instability
7f647e8640e35ab3dce1273ec1bbc90bf4d8901b
[ "BSD-3-Clause" ]
null
null
null
src/outputs/formatted_table.cpp
michaeljennings11/Athena_Thermal_Instability
7f647e8640e35ab3dce1273ec1bbc90bf4d8901b
[ "BSD-3-Clause" ]
null
null
null
//======================================================================================== // Athena++ astrophysical MHD code // Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors // Licensed under the 3-clause BSD License, see LICENSE file for details //===============================...
36.185185
90
0.594848
[ "mesh", "3d" ]
41d0d122858d4c19f2e7ed8a9159cfb2076ec2f3
4,602
cpp
C++
lib/sensor_func.cpp
fdekruijff/Group-Project-TICT-V1GP-15
ec1de58bf3e5f22066f563e0014760e54d779159
[ "MIT" ]
null
null
null
lib/sensor_func.cpp
fdekruijff/Group-Project-TICT-V1GP-15
ec1de58bf3e5f22066f563e0014760e54d779159
[ "MIT" ]
null
null
null
lib/sensor_func.cpp
fdekruijff/Group-Project-TICT-V1GP-15
ec1de58bf3e5f22066f563e0014760e54d779159
[ "MIT" ]
null
null
null
#include "../Wall-E.h" vector<int16_t> get_contrast() { /// Returns the reflected black / white contrast. BP.get_sensor(s_contrast, contrast_struct); BP.get_sensor(s_color, color_struct); return {contrast_struct.reflected, color_struct.reflected_red}; } int16_t max_vector(vector<int16_t> co...
30.885906
114
0.573446
[ "object", "vector" ]
41d15cd92a90658d2740f4dd9f3d9776b7d5c13e
2,157
hpp
C++
SDLbase/texture_handler.hpp
paracelso93/HexGame
0c8e51084f5ec92514a6c3d92c151812ee13a4ea
[ "Apache-2.0" ]
null
null
null
SDLbase/texture_handler.hpp
paracelso93/HexGame
0c8e51084f5ec92514a6c3d92c151812ee13a4ea
[ "Apache-2.0" ]
null
null
null
SDLbase/texture_handler.hpp
paracelso93/HexGame
0c8e51084f5ec92514a6c3d92c151812ee13a4ea
[ "Apache-2.0" ]
null
null
null
#ifndef ROGUELIKE_TEXTURE_HANDLER_H #define ROGUELIKE_TEXTURE_HANDLER_H #include <unordered_map> #include <string> #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include "vectors.hpp" #include "color.hpp" #include "helper.hpp" #include "../camera.hpp" #define texture_t unsigned int struct Texture { texture_...
35.95
286
0.721836
[ "render" ]
41d37cb800f69310a00617cb136212aafa561c46
14,729
cpp
C++
shopwindow.cpp
Ricecrackie/Fantasy-Battle
058dc323101d405e222e9c8f135500044ce6e180
[ "Apache-2.0" ]
null
null
null
shopwindow.cpp
Ricecrackie/Fantasy-Battle
058dc323101d405e222e9c8f135500044ce6e180
[ "Apache-2.0" ]
null
null
null
shopwindow.cpp
Ricecrackie/Fantasy-Battle
058dc323101d405e222e9c8f135500044ce6e180
[ "Apache-2.0" ]
null
null
null
#include "shopwindow.h" #include "ui_shopwindow.h" #include "floorwindow.h" #include "Tower.h" #include <QString> #include <QFileDialog> int HPpotion_price = 50; int MPpotion_price = 50; int LeatherArmor_price = 250; int IronArmor_price = 500; int DiamondArmor_price = 1000; int RecoverHPMP_price = 100; extern int EXP...
41.027855
139
0.573494
[ "object" ]
41d8be03e513a90bfcc89947068bef0e2be52370
2,259
cc
C++
cpp/util/strings.cc
propaganda-gold/deeprev
0c6ccf83131a879ed858acdb0675e75ebf2f2d3d
[ "BSD-3-Clause" ]
null
null
null
cpp/util/strings.cc
propaganda-gold/deeprev
0c6ccf83131a879ed858acdb0675e75ebf2f2d3d
[ "BSD-3-Clause" ]
2
2021-05-11T16:29:38.000Z
2022-01-22T12:28:49.000Z
cpp/util/strings.cc
propaganda-gold/deeprev
0c6ccf83131a879ed858acdb0675e75ebf2f2d3d
[ "BSD-3-Clause" ]
null
null
null
#include <iostream> #include <random> #include <sstream> #include <string> #include "absl/strings/ascii.h" #include "absl/strings/match.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_join.h" #include "absl/strings/str_replace.h" #include "absl/strings/str_split.h" #include "absl/strings/substitute.h" ...
28.2375
86
0.707393
[ "vector" ]
41dccf57a998c55543b358e6b6527854645a5424
1,135
hpp
C++
src/database/engine.hpp
norayr/biboumi
805671032d25ee6ce09ed75e8a385c04e9563cdd
[ "Zlib" ]
68
2015-01-29T21:07:37.000Z
2022-03-20T14:48:07.000Z
src/database/engine.hpp
norayr/biboumi
805671032d25ee6ce09ed75e8a385c04e9563cdd
[ "Zlib" ]
5
2016-10-24T18:34:30.000Z
2021-08-31T13:30:37.000Z
src/database/engine.hpp
norayr/biboumi
805671032d25ee6ce09ed75e8a385c04e9563cdd
[ "Zlib" ]
13
2015-12-11T15:19:05.000Z
2021-08-31T13:24:35.000Z
#pragma once /** * Interface to provide non-portable behaviour, specific to each * database engine we want to support. * * Everything else (all portable stuf) should go outside of this class. */ #include <database/statement.hpp> #include <memory> #include <string> #include <vector> #include <tuple> #include <se...
27.02381
94
0.732159
[ "vector" ]
41ea4e5ef39cf467de796ca7ebc67714fa2c2f94
1,711
cpp
C++
Scott/src/Scott/Application.cpp
scottvermast/Scott
723f07e54bacc96b20668babf31f54dc513c3c22
[ "Apache-2.0" ]
null
null
null
Scott/src/Scott/Application.cpp
scottvermast/Scott
723f07e54bacc96b20668babf31f54dc513c3c22
[ "Apache-2.0" ]
null
null
null
Scott/src/Scott/Application.cpp
scottvermast/Scott
723f07e54bacc96b20668babf31f54dc513c3c22
[ "Apache-2.0" ]
null
null
null
#include "scpch.h" #include "Application.h" #include "Scott/Log.h" #include "Input.h" #include "InputDefinitions.h" #include "GameTime.h" #include "Scott/SceneGraph/SceneManager.h" #include "Scott/Renderer.h" namespace Scott { Application* Application::s_Instance = nullptr; Application::Application() { SceneMan...
19.224719
79
0.62069
[ "render" ]
41f415d754a411a727afe7fe9429b54db6e6c138
3,137
cpp
C++
src/interconnect/Scan.cpp
BuildJet/sharkbite
a8355be6e4879ea7648ea045537d6720538b00b8
[ "Apache-2.0" ]
30
2017-01-23T10:42:29.000Z
2022-02-04T18:06:08.000Z
src/interconnect/Scan.cpp
BuildJet/sharkbite
a8355be6e4879ea7648ea045537d6720538b00b8
[ "Apache-2.0" ]
55
2017-01-29T13:15:52.000Z
2022-02-05T17:49:51.000Z
src/interconnect/Scan.cpp
BuildJet/sharkbite
a8355be6e4879ea7648ea045537d6720538b00b8
[ "Apache-2.0" ]
5
2017-01-23T10:42:34.000Z
2021-09-07T19:11:00.000Z
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
27.761062
79
0.701307
[ "object", "vector" ]
41f4d66ca9c5f1d7bfc5eaac8da8bceb36dc7ba6
2,493
cpp
C++
DbgHelpUtils/unloaded_module_list_stream.cpp
shanepowell/DbgHelpUtils
5a903fd9f32db3aad5ac9b9488e8c4ec604712a8
[ "MIT" ]
null
null
null
DbgHelpUtils/unloaded_module_list_stream.cpp
shanepowell/DbgHelpUtils
5a903fd9f32db3aad5ac9b9488e8c4ec604712a8
[ "MIT" ]
null
null
null
DbgHelpUtils/unloaded_module_list_stream.cpp
shanepowell/DbgHelpUtils
5a903fd9f32db3aad5ac9b9488e8c4ec604712a8
[ "MIT" ]
null
null
null
#include "unloaded_module_list_stream.h" #include "mini_dump.h" #include "module_match.h" namespace dlg_help_utils { unloaded_module_list_stream::unloaded_module_list_stream(mini_dump const& dump, size_t index) : dump_{dump} , module_list_{get_unloaded_module_list(dump, index)} , index_{i...
30.402439
163
0.641797
[ "vector" ]
41faaed6f68c029ae3af448a675816ea3a519e43
168,143
cpp
C++
solvers/PumaBarrett_arm_nogripper.cpp
Stonelinks/js-iksolvers
e911d6e24b6e4a4f2c61753a1a0d1721f8560ff2
[ "MIT" ]
null
null
null
solvers/PumaBarrett_arm_nogripper.cpp
Stonelinks/js-iksolvers
e911d6e24b6e4a4f2c61753a1a0d1721f8560ff2
[ "MIT" ]
null
null
null
solvers/PumaBarrett_arm_nogripper.cpp
Stonelinks/js-iksolvers
e911d6e24b6e4a4f2c61753a1a0d1721f8560ff2
[ "MIT" ]
1
2020-09-21T13:02:41.000Z
2020-09-21T13:02:41.000Z
/// autogenerated analytical inverse kinematics code from ikfast program part of OpenRAVE /// \author Rosen Diankov /// /// 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....
32.385015
580
0.645046
[ "object", "vector" ]
41fc52344b7d48b4b863e832fea92f0979b0b11a
8,592
cpp
C++
tests/src/slider_parsing.cpp
ShaddyDC/osu_reader
2ddcee93c645b7c68cf8114b1cb954b428d0f8a1
[ "MIT" ]
1
2020-08-16T14:05:13.000Z
2020-08-16T14:05:13.000Z
tests/src/slider_parsing.cpp
ShaddyDC/osu_reader
2ddcee93c645b7c68cf8114b1cb954b428d0f8a1
[ "MIT" ]
1
2020-07-22T16:11:38.000Z
2020-07-22T16:11:38.000Z
tests/src/slider_parsing.cpp
ShaddyDC/osu_reader
2ddcee93c645b7c68cf8114b1cb954b428d0f8a1
[ "MIT" ]
null
null
null
#include <catch2/catch.hpp> #include <hitobject/parse_hitobject.h> #include <osu_reader/sliderpath.h> #include <osu_reader/string_stuff.h> using Segments = std::vector<osu::Slider::Segment>; static bool operator==(const Segments& a, const Segments& b) { if(a.size() != b.size()) return false; for(auto i = 0; ...
36.875536
392
0.623138
[ "vector" ]
eedcfd015ae971be49a13cae28dba46d946f8c9a
2,075
cpp
C++
src/midi_player.cpp
tinaxd/CrossMidiStudio
86addd7b90486110a33b1f5b4ef214e476423a1b
[ "MIT" ]
null
null
null
src/midi_player.cpp
tinaxd/CrossMidiStudio
86addd7b90486110a33b1f5b4ef214e476423a1b
[ "MIT" ]
6
2019-10-24T16:13:31.000Z
2019-10-28T17:34:24.000Z
src/midi_player.cpp
tinaxd/CrossMidiStudio
86addd7b90486110a33b1f5b4ef214e476423a1b
[ "MIT" ]
null
null
null
#include "./midi_player.hpp" using namespace cms; MidiPlayer::MidiPlayer() {} MidiPlayer::~MidiPlayer() { if (midiin != nullptr) { delete midiin; } if (midiout != nullptr) { delete midiout; } } void MidiPlayer::OpenPorts() { midiin = new RtMidiIn(); midiout = new RtMidiOut(); } void MidiPlayer:...
23.314607
67
0.607229
[ "vector" ]
eeddf4a0b3fb5590f1c5847c8a7d6c6d6482b82d
5,591
cpp
C++
Code/Tools/SceneAPI/SceneBuilder/Importers/AssImpBoneImporter.cpp
sandeel31/o3de
db88812d61eef77c6f4451b7f8c7605d6db07412
[ "Apache-2.0", "MIT" ]
1
2021-08-08T19:54:51.000Z
2021-08-08T19:54:51.000Z
Code/Tools/SceneAPI/SceneBuilder/Importers/AssImpBoneImporter.cpp
sandeel31/o3de
db88812d61eef77c6f4451b7f8c7605d6db07412
[ "Apache-2.0", "MIT" ]
null
null
null
Code/Tools/SceneAPI/SceneBuilder/Importers/AssImpBoneImporter.cpp
sandeel31/o3de
db88812d61eef77c6f4451b7f8c7605d6db07412
[ "Apache-2.0", "MIT" ]
null
null
null
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <AzCore/Serialization/SerializeContext.h> #include <AzCore/std/smart_ptr/make_shared.h> #...
39.935714
140
0.563942
[ "mesh", "transform", "3d" ]
eeddf86f4e4c40e572829d11188d4bb2894217af
3,212
cpp
C++
SRC/Geometry/Algebraic/Indexed/SparseArray/SparseArray.cpp
bxl295/m4extreme
2a4a20ebb5b4e971698f7c981de140d31a5e550c
[ "BSD-3-Clause" ]
null
null
null
SRC/Geometry/Algebraic/Indexed/SparseArray/SparseArray.cpp
bxl295/m4extreme
2a4a20ebb5b4e971698f7c981de140d31a5e550c
[ "BSD-3-Clause" ]
null
null
null
SRC/Geometry/Algebraic/Indexed/SparseArray/SparseArray.cpp
bxl295/m4extreme
2a4a20ebb5b4e971698f7c981de140d31a5e550c
[ "BSD-3-Clause" ]
null
null
null
// SparseArray.cpp: implementation the SparseArray class. // Copyright (c) 2017-2018 Extreme Computation Technology and Solutions, LLC // All rights reserved // see file License.txt for license details ////////////////////////////////////////////////////////////////////// #include "./SparseArray.h" namespace G...
26.327869
77
0.506227
[ "geometry" ]
eedfac5a369addb5908d51908081d15238640ccf
1,162
cpp
C++
tc tournaments/EllysJuice.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
3
2015-05-25T06:24:37.000Z
2016-09-10T07:58:00.000Z
tc tournaments/EllysJuice.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
null
null
null
tc tournaments/EllysJuice.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
5
2015-05-25T06:24:40.000Z
2021-08-19T19:22:29.000Z
#include <algorithm> #include <cassert> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <iostream> #include <sstream> #include <string> #include <vector> #include <set> #include <map> #include <utility> using namespace std; void winner(const vector<string> &P, set<string> &sol) { ...
25.26087
76
0.567986
[ "vector" ]
eee16c1f180eb6d1a9326adce785c3e052295720
13,248
cpp
C++
src/services/a-rex/grid-manager/conf/GMConfig.cpp
davidgcameron/arc
9813ef5f45e5089507953239de8fa2248f5ad32c
[ "Apache-2.0" ]
null
null
null
src/services/a-rex/grid-manager/conf/GMConfig.cpp
davidgcameron/arc
9813ef5f45e5089507953239de8fa2248f5ad32c
[ "Apache-2.0" ]
null
null
null
src/services/a-rex/grid-manager/conf/GMConfig.cpp
davidgcameron/arc
9813ef5f45e5089507953239de8fa2248f5ad32c
[ "Apache-2.0" ]
null
null
null
#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <fcntl.h> #include <grp.h> #include <pwd.h> #include <unistd.h> #include <sys/stat.h> // ::SSHFS_OK, check device #ifdef _MACOSX #include <sys/param.h> #include <sys/mount.h> #else #include <sys/statfs.h> // ::SSHFS_OK, check file system #endif #include <arc...
34.41039
134
0.659949
[ "object", "vector" ]
eefbe7e5c301d6ba8e43aede42474da0ba5c8200
2,957
cpp
C++
benchmark/layer.cpp
marwage/alzheimer
b58688ea91f9b2ca4ae5457858b0fcc2a6e3e041
[ "CC0-1.0" ]
null
null
null
benchmark/layer.cpp
marwage/alzheimer
b58688ea91f9b2ca4ae5457858b0fcc2a6e3e041
[ "CC0-1.0" ]
null
null
null
benchmark/layer.cpp
marwage/alzheimer
b58688ea91f9b2ca4ae5457858b0fcc2a6e3e041
[ "CC0-1.0" ]
null
null
null
// Copyright 2020 Marcel Wagenländer #include "layer.hpp" #include "chunking.hpp" #include "cuda_helper.hpp" #include "dataset.hpp" #include "gpu_memory_logger.hpp" #include "tensors.hpp" #include <benchmark/benchmark.h> const std::string dir_path = "/mnt/data"; void benchmark_layer(Layer *layer, Dataset dataset, ...
29.868687
135
0.660467
[ "vector" ]
e10446ff450c70d5367df41aee33ab7b990d92c9
42,449
cc
C++
processors/IA32/bochs/gui/macintosh.cc
pavel-krivanek/opensmalltalk-vm
694dfe3ed015e16f5b8e9cf17d37e4bdd32bea16
[ "MIT" ]
445
2016-06-30T08:19:11.000Z
2022-03-28T06:09:49.000Z
processors/IA32/bochs/gui/macintosh.cc
pavel-krivanek/opensmalltalk-vm
694dfe3ed015e16f5b8e9cf17d37e4bdd32bea16
[ "MIT" ]
439
2016-06-29T20:14:36.000Z
2022-03-17T19:59:58.000Z
processors/IA32/bochs/gui/macintosh.cc
pavel-krivanek/opensmalltalk-vm
694dfe3ed015e16f5b8e9cf17d37e4bdd32bea16
[ "MIT" ]
137
2016-07-02T17:32:07.000Z
2022-03-20T11:17:25.000Z
///////////////////////////////////////////////////////////////////////// // $Id: macintosh.cc,v 1.29 2008/02/15 22:05:40 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. // // MandrakeSoft S.A. // 43, rue d'Aboukir // 75002 P...
24.95532
141
0.651417
[ "object", "shape" ]
e10606f83cf81b2db3501217f18280985f7b026e
12,362
cpp
C++
pass/cse/pass_cse.cpp
maximiliantiao/livehd
88215f0d6fc395db96e6ed058f00b9205454bd0c
[ "BSD-3-Clause" ]
null
null
null
pass/cse/pass_cse.cpp
maximiliantiao/livehd
88215f0d6fc395db96e6ed058f00b9205454bd0c
[ "BSD-3-Clause" ]
null
null
null
pass/cse/pass_cse.cpp
maximiliantiao/livehd
88215f0d6fc395db96e6ed058f00b9205454bd0c
[ "BSD-3-Clause" ]
null
null
null
// This file is distributed under the BSD 3-Clause License. See LICENSE for details. #include "pass_cse.hpp" #include <time.h> #include <iterator> #include <string> #include "lgedgeiter.hpp" #include "lgraph.hpp" Pass_cse::Pass_cse() : Pass("cse") {} enum comp_result { none, equalset, subset, // this is s...
38.63125
131
0.541822
[ "vector", "transform" ]
e10738ca966db5c48da91df9a18e8f560a6f0619
6,004
cpp
C++
tools/converter/source/optimizer/onnxextra/OnnxPrelu.cpp
jinfagang/MNN
f10b2203dbb27432155f863f1dfd65a156d57a09
[ "Apache-2.0" ]
null
null
null
tools/converter/source/optimizer/onnxextra/OnnxPrelu.cpp
jinfagang/MNN
f10b2203dbb27432155f863f1dfd65a156d57a09
[ "Apache-2.0" ]
null
null
null
tools/converter/source/optimizer/onnxextra/OnnxPrelu.cpp
jinfagang/MNN
f10b2203dbb27432155f863f1dfd65a156d57a09
[ "Apache-2.0" ]
null
null
null
// // OnnxPrelu.cpp // MNNConverter // // Created by MNN on 2019/10/23. // Copyright © 2018, Alibaba Group Holding Limited // #include "MNN_generated.h" #include "OnnxExtraManager.hpp" namespace MNN { namespace Express { class OnnxPreluTransform : public OnnxExtraManager::Transform { public: virtual EXPRP on...
38.735484
135
0.573784
[ "shape", "transform" ]
e107a166ec171e731001d34d070013e0587ff9fa
916
cpp
C++
JianZhi_OFFER/JZ_56-2.cpp
drt4243566/leetcode_learn
ef51f215079556895eec2252d84965cd1c3a7bf4
[ "MIT" ]
null
null
null
JianZhi_OFFER/JZ_56-2.cpp
drt4243566/leetcode_learn
ef51f215079556895eec2252d84965cd1c3a7bf4
[ "MIT" ]
null
null
null
JianZhi_OFFER/JZ_56-2.cpp
drt4243566/leetcode_learn
ef51f215079556895eec2252d84965cd1c3a7bf4
[ "MIT" ]
null
null
null
#include <vector> using namespace std; // 解题原则是将数字都用二进制表示之后,单看某一位,累加的结果对3取余数,只剩下只出现一次的数字的位 // 神仙解法 -- 有限状态机 // 只用00,01,10三种状态(two,one)表示单个数据位上的状态;在遍历结束后,必然是在00和01状态中的一个,这个由one来记录; // 创建int类型的ones和twos,相当于在32位上进行相同的操作,一步到位; class Solution { public: int singleNumber(vector<int>& nums) { int ones=0,twos=0; ...
24.105263
71
0.528384
[ "vector" ]
e108972c7938561847c0cbfe59cbdccfefd93d82
1,722
cpp
C++
sources/cards/creatures/reds/GoblinGang.cpp
angeluriot/Magic_royal
a337ce4ad6c3215bbdec8c376d6e88fe97f48f94
[ "MIT" ]
1
2022-02-02T21:41:59.000Z
2022-02-02T21:41:59.000Z
sources/cards/creatures/reds/GoblinGang.cpp
angeluriot/Magic_royal
a337ce4ad6c3215bbdec8c376d6e88fe97f48f94
[ "MIT" ]
null
null
null
sources/cards/creatures/reds/GoblinGang.cpp
angeluriot/Magic_royal
a337ce4ad6c3215bbdec8c376d6e88fe97f48f94
[ "MIT" ]
2
2022-02-01T12:59:57.000Z
2022-03-05T12:50:27.000Z
#include "cards/creatures/reds/GoblinGang.hpp" #include "players/Player.hpp" #include "renderer/print.hpp" GoblinGang::GoblinGang(): Creature(get_full_power(), get_full_toughness(), get_capacities()) {} GoblinGang::~GoblinGang() {} std::string GoblinGang::get_full_type() const { return Creature::get_full_type() + "...
20.5
108
0.676539
[ "vector" ]
e109827fcd05484175b8d58a677e9d87035ed41b
839
cc
C++
uva/10685.cc
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
506
2018-08-22T10:30:38.000Z
2022-03-31T10:01:49.000Z
uva/10685.cc
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
13
2019-08-07T18:31:18.000Z
2020-12-15T21:54:41.000Z
uva/10685.cc
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
234
2018-08-06T17:11:41.000Z
2022-03-26T10:56:42.000Z
// https://uva.onlinejudge.org/external/106/10685.pdf #include<bits/stdc++.h> using namespace std; using vi=vector<int>; using vvi=vector<vi>; using msi=unordered_map<string,int>; int main(){ int n,m,u,v; while(1){ cin>>n>>m; if(!n)break; vvi g(n); int k=0; msi d; for(int i=0;i<n;i++){ ...
18.23913
53
0.457688
[ "vector" ]
e10a47c571765969474f562cfdb91e2677e7983a
47,483
cc
C++
src/sentencepiece_processor_test.cc
wanchichen/sentencepiece
c9ea0f3e08357879ea35e453f791a7ff5ee129a9
[ "Apache-2.0" ]
1
2021-02-19T12:19:38.000Z
2021-02-19T12:19:38.000Z
src/sentencepiece_processor_test.cc
wanchichen/sentencepiece
c9ea0f3e08357879ea35e453f791a7ff5ee129a9
[ "Apache-2.0" ]
null
null
null
src/sentencepiece_processor_test.cc
wanchichen/sentencepiece
c9ea0f3e08357879ea35e453f791a7ff5ee129a9
[ "Apache-2.0" ]
null
null
null
// Copyright 2016 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 ...
31.697597
80
0.629362
[ "vector", "model" ]
e10f7614e7f72f689220a62b5dad48de00f99800
28,506
cc
C++
samples/foot_ik/sample_foot_ik.cc
LandonJerre/ozz-animation
abc11520ff6c63373e4084ff28ad2f088755e263
[ "MIT" ]
1
2019-10-26T19:17:42.000Z
2019-10-26T19:17:42.000Z
samples/foot_ik/sample_foot_ik.cc
LandonJerre/ozz-animation
abc11520ff6c63373e4084ff28ad2f088755e263
[ "MIT" ]
null
null
null
samples/foot_ik/sample_foot_ik.cc
LandonJerre/ozz-animation
abc11520ff6c63373e4084ff28ad2f088755e263
[ "MIT" ]
1
2019-10-26T19:17:45.000Z
2019-10-26T19:17:45.000Z
//----------------------------------------------------------------------------// // // // ozz-animation is hosted at http://github.com/guillaumeblanc/ozz-animation // // and distributed under the MIT License (MIT). ...
35.499377
80
0.617238
[ "mesh", "object", "vector", "model", "transform" ]
e110f0762d708a1490698e1ab635987b9a222af6
5,986
cpp
C++
IfcPlusPlus/src/ifcpp/IFC4/lib/IfcPolygonalFaceSet.cpp
nxddsnc/ifcplusplus
959956fe83580ebfb370b8e4ed97044f3df0f3a1
[ "MIT" ]
null
null
null
IfcPlusPlus/src/ifcpp/IFC4/lib/IfcPolygonalFaceSet.cpp
nxddsnc/ifcplusplus
959956fe83580ebfb370b8e4ed97044f3df0f3a1
[ "MIT" ]
null
null
null
IfcPlusPlus/src/ifcpp/IFC4/lib/IfcPolygonalFaceSet.cpp
nxddsnc/ifcplusplus
959956fe83580ebfb370b8e4ed97044f3df0f3a1
[ "MIT" ]
null
null
null
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */ #include <sstream> #include <limits> #include "ifcpp/model/AttributeObject.h" #include "ifcpp/model/BuildingException.h" #include "ifcpp/model/BuildingGuid.h" #include "ifcpp/reader/ReaderUtil.h" #include "ifcpp/writer/WriterUtil.h" #include...
39.906667
237
0.712496
[ "vector", "model" ]
e11d316d4adf96bdee825ad5fb38c3ff06955066
13,151
hh
C++
dune/xt/functions/generic/element-function.hh
dune-community/dune-xt
da921524c6fff8d60c715cb4849a0bdd5f020d2b
[ "BSD-2-Clause" ]
2
2020-02-08T04:08:52.000Z
2020-08-01T18:54:14.000Z
dune/xt/functions/generic/element-function.hh
dune-community/dune-xt
da921524c6fff8d60c715cb4849a0bdd5f020d2b
[ "BSD-2-Clause" ]
35
2019-08-19T12:06:35.000Z
2020-03-27T08:20:39.000Z
dune/xt/functions/generic/element-function.hh
dune-community/dune-xt
da921524c6fff8d60c715cb4849a0bdd5f020d2b
[ "BSD-2-Clause" ]
1
2020-02-08T04:09:34.000Z
2020-02-08T04:09:34.000Z
// This file is part of the dune-xt project: // https://zivgitlab.uni-muenster.de/ag-ohlberger/dune-community/dune-xt // Copyright 2009-2021 dune-xt developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (h...
36.941011
118
0.686868
[ "vector" ]
e11e889b0bad3ff6b351b4a47fc048d9a776ea9a
1,886
cpp
C++
HDL2Redstone/src/Cell.cpp
tech4me/HDL2Redstone
738bc080e42b8fd2c1827069ded4ca5135e8c8e1
[ "MIT" ]
null
null
null
HDL2Redstone/src/Cell.cpp
tech4me/HDL2Redstone
738bc080e42b8fd2c1827069ded4ca5135e8c8e1
[ "MIT" ]
null
null
null
HDL2Redstone/src/Cell.cpp
tech4me/HDL2Redstone
738bc080e42b8fd2c1827069ded4ca5135e8c8e1
[ "MIT" ]
null
null
null
#include <Cell.hpp> #include <Exception.hpp> using namespace HDL2Redstone; Cell::Cell(const std::string& Type_, const std::string& CellLibDir_, const std::map<std::string, Pin> Pins_, int Delay_, const std::string& SchematicName_) : Type(Type_), Schem(CellLibDir_ + SchematicName_ + ".schem"), Pins(Pins...
27.735294
120
0.487275
[ "vector" ]
e11f81a42dc4f88cbbeac98e56fba529e2c2d74e
1,415
hpp
C++
src/sampling/history.hpp
kghose/groho
7f1eefe3f1c691464bc84d12c7759ac4a16c05ca
[ "MIT" ]
11
2018-05-21T06:45:34.000Z
2020-09-14T12:43:34.000Z
src/sampling/history.hpp
kghose/groho
7f1eefe3f1c691464bc84d12c7759ac4a16c05ca
[ "MIT" ]
40
2017-11-14T02:03:51.000Z
2020-07-17T00:35:33.000Z
src/sampling/history.hpp
kghose/groho
7f1eefe3f1c691464bc84d12c7759ac4a16c05ca
[ "MIT" ]
2
2019-10-24T17:45:48.000Z
2021-10-11T18:08:02.000Z
/* This file is part of Groho, a simulator for inter-planetary travel and warfare. Copyright (c) 2020 by Kaushik Ghose. Some rights reserved, see LICENSE */ #pragma once #include <filesystem> #include <memory> #include <vector> #include "fractaldownsampler.hpp" #include "naifbody.hpp" #include "simparams.hpp" // #in...
22.109375
79
0.625442
[ "vector" ]
e12365ef991bf0fc5a1fa4e98da914e533ede2ba
16,353
cpp
C++
src/event_loop.cpp
netplus/netplus
e3b621e65742f38733d3dcaa1873443da8bbd611
[ "MIT" ]
48
2021-02-22T03:10:40.000Z
2022-03-29T03:26:33.000Z
src/event_loop.cpp
netplus/netplus
e3b621e65742f38733d3dcaa1873443da8bbd611
[ "MIT" ]
7
2021-03-20T09:25:11.000Z
2022-03-07T03:26:56.000Z
src/event_loop.cpp
netplus/netplus
e3b621e65742f38733d3dcaa1873443da8bbd611
[ "MIT" ]
13
2021-02-25T01:49:58.000Z
2022-03-21T00:30:34.000Z
#include <netp/core.hpp> #include <netp/app.hpp> #include <netp/timer.hpp> #include <netp/thread.hpp> #include <netp/event_loop.hpp> #include <netp/dns_resolver.hpp> #if defined(NETP_HAS_POLLER_EPOLL) #include <netp/poller_epoll.hpp> #define NETP_DEFAULT_POLLER_TYPE netp::io_poller_type::T_EPOLL #elif defined(NETP_HAS...
33.927386
264
0.709411
[ "object", "vector" ]
e127f00ea07f0304d1078abe56679c77c91bda22
2,431
cc
C++
CondCore/DBOutputService/test/stubs/writeKeyed.cc
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
2
2020-10-26T18:40:32.000Z
2021-04-10T16:33:25.000Z
CondCore/DBOutputService/test/stubs/writeKeyed.cc
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
30
2015-11-04T11:42:27.000Z
2021-12-01T07:56:34.000Z
CondCore/DBOutputService/test/stubs/writeKeyed.cc
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
8
2016-03-25T07:17:43.000Z
2021-07-08T17:11:21.000Z
#include "FWCore/Framework/interface/one/EDAnalyzer.h" #include "FWCore/ServiceRegistry/interface/Service.h" #include "CondCore/DBOutputService/interface/PoolDBOutputService.h" #include "CondCore/DBOutputService/interface/KeyedElement.h" #include "CondFormats/Calibration/interface/Conf.h" #include <iostream> #include...
31.986842
102
0.619087
[ "vector" ]
e12a38ed69a1dc06fdd60c0feb419861addab1f0
5,017
cpp
C++
AnyGraph/src/Graph/GraphMLHandler.cpp
fg-netzwerksicherheit/EvolutionaryNetworkOptimizer
fdca004ba33a0d891f7d82f32999ec7d07a041f9
[ "Apache-2.0" ]
null
null
null
AnyGraph/src/Graph/GraphMLHandler.cpp
fg-netzwerksicherheit/EvolutionaryNetworkOptimizer
fdca004ba33a0d891f7d82f32999ec7d07a041f9
[ "Apache-2.0" ]
null
null
null
AnyGraph/src/Graph/GraphMLHandler.cpp
fg-netzwerksicherheit/EvolutionaryNetworkOptimizer
fdca004ba33a0d891f7d82f32999ec7d07a041f9
[ "Apache-2.0" ]
null
null
null
/* * GraphMLHandler.cpp * * Created on: Jun 13, 2017 * Author: quang */ #include "GraphMLHandler.h" #include <iostream> #include <vector> #include <tinyxml2.h> #include <fstream> #include <string> #include "Components/Topology.h" using namespace std; using namespace tinyxml2; namespace anygraph { GraphML...
31.161491
88
0.704405
[ "vector" ]
e141a87a2eb46f177d1ac35328d98bba9cb38fff
3,951
cpp
C++
src/MetricsReporter.cpp
ess-dmsc/forward-epics-to-kafka
46e1cfff0a3792b4e70ec5c58c2e56c941da5d5c
[ "BSD-2-Clause" ]
1
2019-02-23T01:48:51.000Z
2019-02-23T01:48:51.000Z
src/MetricsReporter.cpp
ess-dmsc/forward-epics-to-kafka
46e1cfff0a3792b4e70ec5c58c2e56c941da5d5c
[ "BSD-2-Clause" ]
266
2017-03-20T08:55:03.000Z
2020-05-26T09:00:24.000Z
src/MetricsReporter.cpp
ess-dmsc/forward-epics-to-kafka
46e1cfff0a3792b4e70ec5c58c2e56c941da5d5c
[ "BSD-2-Clause" ]
5
2017-07-04T10:00:43.000Z
2021-05-05T15:00:02.000Z
// SPDX-License-Identifier: BSD-2-Clause // // This code has been produced by the European Spallation Source // and its partner institutes under the BSD 2 Clause License. // // See LICENSE.md at the top level for license information. // // Screaming Udder! https://esss.se #include "Metrics...
31.608
77
0.636548
[ "vector" ]
e142f9ef7f97cad91c3c7fc9839c2c5319b2e7cf
15,625
cpp
C++
src/graph/peered/Nodes.cpp
ragedb/ragedb
0470f4cb154ce551ddb920453f2ea8467dbc4857
[ "Apache-2.0" ]
58
2021-07-08T14:20:54.000Z
2022-03-31T08:20:39.000Z
src/graph/peered/Nodes.cpp
ragedb/ragedb
0470f4cb154ce551ddb920453f2ea8467dbc4857
[ "Apache-2.0" ]
15
2021-07-29T14:37:57.000Z
2022-03-31T04:22:36.000Z
src/graph/peered/Nodes.cpp
ragedb/ragedb
0470f4cb154ce551ddb920453f2ea8467dbc4857
[ "Apache-2.0" ]
2
2021-07-29T14:24:57.000Z
2021-09-08T10:14:52.000Z
/* * Copyright Amazon.com, Inc. or its affiliates. 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 ...
45.15896
168
0.638592
[ "vector" ]
e15300348ba7215330857a67b377fb011fa42e77
6,206
cpp
C++
src/allegro_flare/profile_timer.cpp
MarkOates/allegro_flare
b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7
[ "MIT" ]
25
2015-03-30T02:02:43.000Z
2019-03-04T22:29:12.000Z
src/allegro_flare/profile_timer.cpp
MarkOates/allegro_flare
b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7
[ "MIT" ]
122
2015-04-01T08:15:26.000Z
2019-10-16T20:31:22.000Z
src/allegro_flare/profile_timer.cpp
MarkOates/allegro_flare
b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7
[ "MIT" ]
4
2016-09-02T12:14:09.000Z
2018-11-23T20:38:49.000Z
#include <allegro_flare/profile_timer.h> #include <algorithm> #include <sstream> #include <stdio.h> #include <vector> #include <allegro5/allegro_color.h> #include <allegro5/allegro_primitives.h> #include <allegro5/allegro_ttf.h> namespace allegro_flare { #ifdef _MSC_VER #undef sprintf #define sprintf sprintf_s ...
22.485507
131
0.585885
[ "vector" ]
e15593d7618631163c49c0e2f41c4dfafa1b5f65
6,587
cpp
C++
src/shape_detector/src/cylinder_computer.cpp
harrycomeon/ros_object_recognition
064d3cbac1ffc31cba48461ee08961f9da540a28
[ "MIT" ]
68
2018-09-25T13:46:29.000Z
2022-03-16T15:43:48.000Z
src/shape_detector/src/cylinder_computer.cpp
harrycomeon/ros_object_recognition
064d3cbac1ffc31cba48461ee08961f9da540a28
[ "MIT" ]
1
2019-02-05T05:18:24.000Z
2020-02-16T15:36:33.000Z
src/shape_detector/src/cylinder_computer.cpp
harrycomeon/ros_object_recognition
064d3cbac1ffc31cba48461ee08961f9da540a28
[ "MIT" ]
27
2018-11-02T06:31:43.000Z
2022-03-22T08:11:00.000Z
/** \file * \brief Implementation of the CylinderComputer class. */ // std. #include <algorithm> // min(), max() #include <exception> // Eigen. #include <Eigen/Dense> // Vector3d #include <Eigen/Geometry> // Quaternion #include <eigen_conversions/eigen_msg.h> // tf::quaternionEigenToMsg() // PCL. #inclu...
27.445833
85
0.756794
[ "geometry", "object", "vector" ]
e15657703a0c570b516936b2c6715be26bde5c8d
2,162
cpp
C++
code_reading/oceanbase-master/src/sql/engine/expr/ob_expr_lnnvl.cpp
wangcy6/weekly_read
3a8837ee9cd957787ee1785e4066dd623e02e13a
[ "Apache-2.0" ]
null
null
null
code_reading/oceanbase-master/src/sql/engine/expr/ob_expr_lnnvl.cpp
wangcy6/weekly_read
3a8837ee9cd957787ee1785e4066dd623e02e13a
[ "Apache-2.0" ]
null
null
null
code_reading/oceanbase-master/src/sql/engine/expr/ob_expr_lnnvl.cpp
wangcy6/weekly_read
3a8837ee9cd957787ee1785e4066dd623e02e13a
[ "Apache-2.0" ]
1
2020-10-18T12:59:31.000Z
2020-10-18T12:59:31.000Z
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
28.826667
95
0.712766
[ "object" ]
e15a028d40b92a252c2796451d9a23d4470cce3b
15,860
cpp
C++
src/fasito/fasito.cpp
citrixrep/Pylon-Segwit
395e71d5be0fde8a1cf6e2b49b1ff75f5d19f75f
[ "MIT" ]
null
null
null
src/fasito/fasito.cpp
citrixrep/Pylon-Segwit
395e71d5be0fde8a1cf6e2b49b1ff75f5d19f75f
[ "MIT" ]
null
null
null
src/fasito/fasito.cpp
citrixrep/Pylon-Segwit
395e71d5be0fde8a1cf6e2b49b1ff75f5d19f75f
[ "MIT" ]
null
null
null
// Copyright (c) 2017 The Pyloncoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "util.h" #include "pubkey.h" #include "utilstrencodings.h" #include "SerialConnection.h" #include "primitives/block.h" ...
30.383142
174
0.600757
[ "vector" ]
e15a3839edf812ef6840e919e9a4db4fadaf8f1f
4,853
cc
C++
garnet/lib/vulkan/tests/vkprimer/common/vulkan_layer.cc
zhangpf/fuchsia-rs
903568f28ddf45f09157ead36d61b50322c9cf49
[ "BSD-3-Clause" ]
null
null
null
garnet/lib/vulkan/tests/vkprimer/common/vulkan_layer.cc
zhangpf/fuchsia-rs
903568f28ddf45f09157ead36d61b50322c9cf49
[ "BSD-3-Clause" ]
5
2020-09-06T09:02:06.000Z
2022-03-02T04:44:22.000Z
garnet/lib/vulkan/tests/vkprimer/common/vulkan_layer.cc
ZVNexus/fuchsia
c5610ad15208208c98693618a79c705af935270c
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "vulkan_layer.h" #include <cstring> #include <iostream> #include <vector> #include "utils.h" namespace { static const std::vector<const char *...
33.937063
80
0.704719
[ "vector" ]
e15d8766fa6f981528eb59cb8ec8ebb5b98b2486
12,275
cpp
C++
src/printer/ast/ast_printer.cpp
guykatzz/CVC4_idl_lab
24cb1ed0c7c1445cbfb592a7ebcb454b70897d30
[ "BSL-1.0" ]
null
null
null
src/printer/ast/ast_printer.cpp
guykatzz/CVC4_idl_lab
24cb1ed0c7c1445cbfb592a7ebcb454b70897d30
[ "BSL-1.0" ]
null
null
null
src/printer/ast/ast_printer.cpp
guykatzz/CVC4_idl_lab
24cb1ed0c7c1445cbfb592a7ebcb454b70897d30
[ "BSL-1.0" ]
null
null
null
/********************* */ /*! \file ast_printer.cpp ** \verbatim ** Top contributors (to current version): ** Morgan Deters, Tim King, Liana Hadarean ** This file is part of the CVC4 project. ** Copyright (c) 2009-2016 by the authors listed in the file AUTHO...
30.610973
94
0.611079
[ "vector", "model" ]
ff276eeb45337c491939192a77f845e9af1617ee
6,223
cpp
C++
Source/WebKit/WebProcess/InjectedBundle/API/glib/WebKitScriptWorld.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Source/WebKit/WebProcess/InjectedBundle/API/glib/WebKitScriptWorld.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Source/WebKit/WebProcess/InjectedBundle/API/glib/WebKitScriptWorld.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (C) 2013 Igalia S.L. * * 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 option) any later version. * * This library ...
31.912821
133
0.751727
[ "object" ]
ff283cced546fe2bc799d88bd6c9c8503d6b59bb
9,501
hpp
C++
componentLibraries/defaultLibrary/Electric/ElectricPWMdceq.hpp
mjfwest/hopsan
77a0a1e69fd9588335b7e932f348972186cbdf6f
[ "Apache-2.0" ]
null
null
null
componentLibraries/defaultLibrary/Electric/ElectricPWMdceq.hpp
mjfwest/hopsan
77a0a1e69fd9588335b7e932f348972186cbdf6f
[ "Apache-2.0" ]
null
null
null
componentLibraries/defaultLibrary/Electric/ElectricPWMdceq.hpp
mjfwest/hopsan
77a0a1e69fd9588335b7e932f348972186cbdf6f
[ "Apache-2.0" ]
null
null
null
/*----------------------------------------------------------------------------- Copyright 2017 Hopsan Group 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.o...
30.257962
97
0.603094
[ "vector" ]
ff2955b522053804cfb3df9a3b465a8372b02567
742
cpp
C++
platforms/leetcode/0027_next_greater_element_ii.cpp
idfumg/algorithms
06f85c5a1d07a965df44219b5a6bf0d43a129256
[ "MIT" ]
null
null
null
platforms/leetcode/0027_next_greater_element_ii.cpp
idfumg/algorithms
06f85c5a1d07a965df44219b5a6bf0d43a129256
[ "MIT" ]
null
null
null
platforms/leetcode/0027_next_greater_element_ii.cpp
idfumg/algorithms
06f85c5a1d07a965df44219b5a6bf0d43a129256
[ "MIT" ]
null
null
null
#include "../../template.hpp" using i32 = std::int32_t; using i64 = std::int64_t; //const i32 INF = 1000000000 + 7; const i32 fastio_ = ([](){std::ios_base::sync_with_stdio(0); std::cin.tie(0);return 0;})(); vector<i32> tab(vector<i32> arr) { i32 n = arr.size(); vector<i32> R(n); vector<i32> mq; for (...
26.5
91
0.502695
[ "vector" ]
ff2bed776b0af5de9acfc8bbb03fdc1ccee32d2c
6,154
cpp
C++
src/dynamic_graph_manager/hwp_solo12.cpp
caoliheng/solo
e6d86f54e05977a533c68e30c85a5048a03ab753
[ "BSD-3-Clause" ]
9
2021-04-26T03:13:44.000Z
2021-12-14T14:06:50.000Z
src/dynamic_graph_manager/hwp_solo12.cpp
caoliheng/solo
e6d86f54e05977a533c68e30c85a5048a03ab753
[ "BSD-3-Clause" ]
4
2021-07-19T13:54:12.000Z
2022-01-24T08:53:49.000Z
src/dynamic_graph_manager/hwp_solo12.cpp
caoliheng/solo
e6d86f54e05977a533c68e30c85a5048a03ab753
[ "BSD-3-Clause" ]
1
2021-06-24T16:13:36.000Z
2021-06-24T16:13:36.000Z
/** * \file dgm_solo.cpp * \brief The hardware wrapper of the solo robot * \author Maximilien Naveau * \date 2018 * * This file defines the TestBench8Motors class. */ #include "solo/dynamic_graph_manager/hwp_solo12.hpp" #ifdef BUILD_WITH_ROS_DYNAMIC_GRAPH #include "dynamic_graph_manager/ros.hpp" #endif namesp...
30.166667
81
0.660871
[ "vector" ]
ff3454caa13341ad7ea0a612ddfb9bc73c421515
1,893
cpp
C++
aws-cpp-sdk-frauddetector/source/model/VariableImpactExplanation.cpp
truthiswill/aws-sdk-cpp
6e854b6a8bc7945f150c3a11551196bda341962a
[ "Apache-2.0" ]
1
2022-02-10T08:06:54.000Z
2022-02-10T08:06:54.000Z
aws-cpp-sdk-frauddetector/source/model/VariableImpactExplanation.cpp
truthiswill/aws-sdk-cpp
6e854b6a8bc7945f150c3a11551196bda341962a
[ "Apache-2.0" ]
1
2021-10-14T16:57:00.000Z
2021-10-18T10:47:24.000Z
aws-cpp-sdk-frauddetector/source/model/VariableImpactExplanation.cpp
truthiswill/aws-sdk-cpp
6e854b6a8bc7945f150c3a11551196bda341962a
[ "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/frauddetector/model/VariableImpactExplanation.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; names...
20.576087
84
0.75383
[ "model" ]
ff35eb25931831565980d58dfa660ae3743233dc
4,200
cpp
C++
rmf_fleet_adapter_python/src/schedule/schedule.cpp
chianfern/rmf_ros2
8440488d5583edc5a5b7226326aa2a8d41dad975
[ "Apache-2.0" ]
null
null
null
rmf_fleet_adapter_python/src/schedule/schedule.cpp
chianfern/rmf_ros2
8440488d5583edc5a5b7226326aa2a8d41dad975
[ "Apache-2.0" ]
null
null
null
rmf_fleet_adapter_python/src/schedule/schedule.cpp
chianfern/rmf_ros2
8440488d5583edc5a5b7226326aa2a8d41dad975
[ "Apache-2.0" ]
null
null
null
#include <pybind11/pybind11.h> #include <pybind11/eigen.h> #include <pybind11/chrono.h> #include <pybind11/stl.h> #include <rmf_traffic/schedule/Participant.hpp> #include <rmf_traffic/agv/Interpolate.hpp> #include <rmf_traffic/Route.hpp> namespace py = pybind11; namespace schedule = rmf_traffic::schedule; using Syst...
34.42623
80
0.620952
[ "vector" ]
ff38fd11dd94618a7b9b96bb1173c13101ec99b8
13,628
hpp
C++
ork.core/inc/ork/cvector3.hpp
tweakoz/zed64
c0231444418999191182d53d9319bf7978422bfb
[ "CC-BY-3.0" ]
4
2015-06-04T01:14:43.000Z
2018-06-16T05:45:57.000Z
ork.core/inc/ork/cvector3.hpp
tweakoz/zed64
c0231444418999191182d53d9319bf7978422bfb
[ "CC-BY-3.0" ]
null
null
null
ork.core/inc/ork/cvector3.hpp
tweakoz/zed64
c0231444418999191182d53d9319bf7978422bfb
[ "CC-BY-3.0" ]
null
null
null
/////////////////////////////////////////////////////////////////////////////// // MicroOrk (Orkid) // Copyright 1996-2013, Michael T. Mayers // Provided under the MIT License (see LICENSE.txt) /////////////////////////////////////////////////////////////////////////////// #include "cmatrix4.h" #include "cmatri...
26.826772
150
0.404975
[ "transform" ]
ff3fe4548b1e680912de489811687a5da11772ff
5,899
cpp
C++
src/FindShadow.cpp
martinid94/ShadowDet
e8c888031af38c5fa0bfb90c73da076a49eefd9c
[ "MIT" ]
2
2019-04-10T14:30:58.000Z
2019-05-16T14:15:31.000Z
src/FindShadow.cpp
martinid94/ShadowDet
e8c888031af38c5fa0bfb90c73da076a49eefd9c
[ "MIT" ]
null
null
null
src/FindShadow.cpp
martinid94/ShadowDet
e8c888031af38c5fa0bfb90c73da076a49eefd9c
[ "MIT" ]
null
null
null
/** * @file FindShadow.cpp * The goal of the code in this file is to provide the implementation of * findShadow() function. Since it is called concurrently by multiple threads * mutex are introduced to sincronyze access to shared resources. In particular, * these are the standard output and the vector of points th...
39.858108
136
0.641465
[ "object", "vector" ]
ff4465f344ac3b68e12251cd4e41e5a8f430dd8e
107,741
cpp
C++
CrystalEdit/CCrystalTextView.cpp
BigEd/6502
93e2f9664ac1babf141f7169478846355140ef72
[ "MIT" ]
7
2020-03-06T06:32:54.000Z
2022-02-02T06:20:08.000Z
CrystalEdit/CCrystalTextView.cpp
DRictor/6502
49c757b1cead8b4a3deae1830298083634868103
[ "MIT" ]
1
2017-12-05T09:37:55.000Z
2017-12-09T16:40:39.000Z
CrystalEdit/CCrystalTextView.cpp
DRictor/6502
49c757b1cead8b4a3deae1830298083634868103
[ "MIT" ]
5
2017-11-27T07:33:51.000Z
2022-02-20T22:28:44.000Z
//////////////////////////////////////////////////////////////////////////// // File: CCrystalTextView.cpp // Version: 1.0.0.0 // Created: 29-Dec-1998 // // Author: Stcherbatchenko Andrei // E-mail: windfall@gmx.de // // Implementation of the CCrystalTextView class, a part of Crystal Edit - // syntax coloring text e...
24.542369
122
0.701182
[ "vector" ]