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
6828751d4e826a8c15f7dafa6a605c69fc31fcc7
1,530
cpp
C++
Hari's Contests/LC November Challenge/Day2-UniquePaths-3.cpp
Tiger-Team-01/DSA-A-Z-Practice
e08284ffdb1409c08158dd4e90dc75dc3a3c5b18
[ "MIT" ]
14
2021-08-22T18:21:14.000Z
2022-03-08T12:04:23.000Z
Hari's Contests/LC November Challenge/Day2-UniquePaths-3.cpp
Tiger-Team-01/DSA-A-Z-Practice
e08284ffdb1409c08158dd4e90dc75dc3a3c5b18
[ "MIT" ]
1
2021-10-17T18:47:17.000Z
2021-10-17T18:47:17.000Z
Hari's Contests/LC November Challenge/Day2-UniquePaths-3.cpp
Tiger-Team-01/DSA-A-Z-Practice
e08284ffdb1409c08158dd4e90dc75dc3a3c5b18
[ "MIT" ]
5
2021-09-01T08:21:12.000Z
2022-03-09T12:13:39.000Z
// Hari // we need to count total no. of 0s and also find out which cell is start point int zeroCells = 1, res = 0; // zeroCells starts w 1 to account for start point // which is 1 and not 0 void dfs(vector<vector<int>>& grid, int x, int y, int countZeros){ // base cases if(x < 0 || y...
32.553191
136
0.486928
[ "vector" ]
6829665a1addc14d0e903b0b1b0d018bdf1f49d1
21,032
cpp
C++
mediastreamer2/src/android/androidvideo.cpp
tiena2cva/Linphone
498eab7fca88915b283d079dfbb2c2b315ce43ff
[ "BSD-2-Clause" ]
1
2015-11-23T14:34:44.000Z
2015-11-23T14:34:44.000Z
mediastreamer2/src/android/androidvideo.cpp
tiena2cva/Linphone
498eab7fca88915b283d079dfbb2c2b315ce43ff
[ "BSD-2-Clause" ]
null
null
null
mediastreamer2/src/android/androidvideo.cpp
tiena2cva/Linphone
498eab7fca88915b283d079dfbb2c2b315ce43ff
[ "BSD-2-Clause" ]
null
null
null
/* mediastreamer2 library - modular sound and video processing and streaming This is the video capture filter for Android. It uses one of the JNI wrappers to access Android video capture API. See: org.linphone.mediastream.video.capture.AndroidVideoApi9JniWrapper org.linphone.mediastream.video.capture.AndroidVideoApi8...
34.821192
166
0.728984
[ "object" ]
682c488a17b77118d13fc224dc6155702efdb1c4
1,673
cpp
C++
codeforces-topics-wise-interesting-problems/BIT MANIPULATION/main.cpp
navjotdadwal/Hack-CP-DSA
60fa56c12f1662badc7f7b562fc3e1550b650362
[ "MIT" ]
1
2020-08-27T06:59:52.000Z
2020-08-27T06:59:52.000Z
codeforces-topics-wise-interesting-problems/BIT MANIPULATION/main.cpp
navjotdadwal/Hack-CP-DSA
60fa56c12f1662badc7f7b562fc3e1550b650362
[ "MIT" ]
null
null
null
codeforces-topics-wise-interesting-problems/BIT MANIPULATION/main.cpp
navjotdadwal/Hack-CP-DSA
60fa56c12f1662badc7f7b562fc3e1550b650362
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> #define pp pop_back #define pb push_back #define int long long int #define INF 1e18 #define vec vector<int> #define pii pair<int,int> #define REP(i,a,b) for(i=a;i<b;i++) using namespace std; int ComputeXorFrom1ToN(int n) { if(n%4==0) return n; else if(n%4==1) re...
14.9375
50
0.529588
[ "vector" ]
68326a370434596c2d956e6bf070e41560d57d2c
54,290
cpp
C++
arm9/source/_library/library.image.gif.encoder.cpp
DuffsDevice/winds
35f1b5fd458c527a6c372f94077e784f6fd960b2
[ "MIT" ]
2
2017-02-07T18:25:07.000Z
2021-12-13T18:29:03.000Z
arm9/source/_library/library.image.gif.encoder.cpp
DuffsDevice/winds
35f1b5fd458c527a6c372f94077e784f6fd960b2
[ "MIT" ]
null
null
null
arm9/source/_library/library.image.gif.encoder.cpp
DuffsDevice/winds
35f1b5fd458c527a6c372f94077e784f6fd960b2
[ "MIT" ]
null
null
null
/* ======================================================================== */ /* GIF Encoder routines. */ /* */ /* These are intended to support single-frame and multi-frame GIFs. */ ...
41.128788
189
0.370363
[ "3d" ]
6835307c7ec39b8c684d25afeb270ec79a26bf10
30,099
cpp
C++
run/params.cpp
SymbioticLab/YAPS
1bf25abe0fe1ea7c7dec60645dda49ffcc59c7a0
[ "BSD-3-Clause" ]
null
null
null
run/params.cpp
SymbioticLab/YAPS
1bf25abe0fe1ea7c7dec60645dda49ffcc59c7a0
[ "BSD-3-Clause" ]
1
2021-06-18T19:12:19.000Z
2021-06-18T19:12:19.000Z
run/params.cpp
SymbioticLab/YAPS
1bf25abe0fe1ea7c7dec60645dda49ffcc59c7a0
[ "BSD-3-Clause" ]
1
2021-06-18T07:01:16.000Z
2021-06-18T07:01:16.000Z
#include "params.h" #include <assert.h> #include <fstream> #include <iostream> #include <sstream> #include <string> #include "../ext/factory.h" DCExpParams params; /* Read parameters from a config file */ void read_experiment_parameters(std::string conf_filename, uint32_t exp_type) { std::cout << "PUPU: config f...
39.603947
157
0.548556
[ "vector" ]
683e5f2a5a85aa236187ff4cb39386b797f072c9
3,447
hpp
C++
src/sdm/utils/struct/tree.hpp
SDMStudio/sdms
43a86973081ffd86c091aed69b332f0087f59361
[ "MIT" ]
null
null
null
src/sdm/utils/struct/tree.hpp
SDMStudio/sdms
43a86973081ffd86c091aed69b332f0087f59361
[ "MIT" ]
null
null
null
src/sdm/utils/struct/tree.hpp
SDMStudio/sdms
43a86973081ffd86c091aed69b332f0087f59361
[ "MIT" ]
null
null
null
/** * @file tree.hpp * @author Jilles S. Dibangoye * @author David Albert * @brief Tree data structure * @version 0.1 * @date 12/04/2016 * * @copyright Copyright (c) 2020 * */ #pragma once #include <memory> #include <iostream> #include <unordered_set> #include <unordered_map> #include <boost/serialization/...
24.104895
92
0.564259
[ "object", "vector" ]
969962bbb4c24ae462623984a119bf9728281778
623
cpp
C++
CodeForces/A_Beautiful_Matrix.cpp
eRuaro/Algorithmic-Solving
b5c7be94c3ea03ca0f7be2524c235e903bd4e1b4
[ "MIT" ]
null
null
null
CodeForces/A_Beautiful_Matrix.cpp
eRuaro/Algorithmic-Solving
b5c7be94c3ea03ca0f7be2524c235e903bd4e1b4
[ "MIT" ]
null
null
null
CodeForces/A_Beautiful_Matrix.cpp
eRuaro/Algorithmic-Solving
b5c7be94c3ea03ca0f7be2524c235e903bd4e1b4
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using std::cin; using std::cout; using std::vector; int main() { std::ios_base::sync_with_stdio(false); cin.tie(0); int vec[5][5]; int numberX = 0; int numberY = 0; for (int i = 0; i < 5; i++) { for (int j = 0; j < 5; j++) { cin >> v...
18.323529
56
0.398074
[ "vector" ]
969df3c85a9695b75dc8a2b6bc6b1f0533356f19
1,322
hh
C++
src/OpenCL/Device.hh
MovGata/Ultrasound-Pre-Processing
4b9011aa6f5a3f047adcca11f8b524999a8569eb
[ "MIT" ]
null
null
null
src/OpenCL/Device.hh
MovGata/Ultrasound-Pre-Processing
4b9011aa6f5a3f047adcca11f8b524999a8569eb
[ "MIT" ]
null
null
null
src/OpenCL/Device.hh
MovGata/Ultrasound-Pre-Processing
4b9011aa6f5a3f047adcca11f8b524999a8569eb
[ "MIT" ]
null
null
null
#ifndef GUI_OPENCL_DEVICE #define GUI_OPENCL_DEVICE #include <chrono> #include <map> #include <memory> #include <string> #include <vector> #include <gl/glew.h> #include <gl/gl.h> #include <gl/glext.h> #include <CL/cl2.hpp> #include <SDL2/SDL_timer.h> #include "Program.hh" #include "Concepts.hh" ...
22.033333
84
0.602874
[ "render", "vector" ]
96a3f3a02e4027523f4238232c4c30e02b7c402c
7,095
cpp
C++
external/libdxfrw/intern/dwgreader15.cpp
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
external/libdxfrw/intern/dwgreader15.cpp
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
null
null
null
external/libdxfrw/intern/dwgreader15.cpp
dyna-mis/Hilabeling
cb7d5d4be29624a20c8a367162dbc6fd779b2b52
[ "MIT" ]
1
2021-12-25T08:40:30.000Z
2021-12-25T08:40:30.000Z
/****************************************************************************** ** libDXFrw - Library to read/write DXF files (ascii & binary) ** ** ** ** Copyright (C) 2011-2015 José F. Soriano, rallazz@gmail.com **...
30.450644
147
0.606483
[ "object" ]
96af1050233f1e617fbec0d95773a70308d0c48d
9,222
cpp
C++
src/particle_filter.cpp
mkolod/CarND-Kidnapped-Vehicle-Project
bbe54cae778bab5c6cfb228a61c035d03e14b3ef
[ "MIT" ]
null
null
null
src/particle_filter.cpp
mkolod/CarND-Kidnapped-Vehicle-Project
bbe54cae778bab5c6cfb228a61c035d03e14b3ef
[ "MIT" ]
null
null
null
src/particle_filter.cpp
mkolod/CarND-Kidnapped-Vehicle-Project
bbe54cae778bab5c6cfb228a61c035d03e14b3ef
[ "MIT" ]
null
null
null
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: Tiffany Huang */ #include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> #include <string> #include <vector> #include <unordered_map> #include "helper_functio...
34.02952
115
0.664498
[ "vector", "transform" ]
96b06cd5b061b125af290adc6b39341ad50b736f
3,904
hpp
C++
include/Interop/ComCastor3D/CastorUtils/ComHdrRgbaColour.hpp
Mu-L/Castor3D
7b9c6e7be6f7373ad60c0811d136c0004e50e76b
[ "MIT" ]
245
2015-10-29T14:31:45.000Z
2022-03-31T13:04:45.000Z
include/Interop/ComCastor3D/CastorUtils/ComHdrRgbaColour.hpp
Mu-L/Castor3D
7b9c6e7be6f7373ad60c0811d136c0004e50e76b
[ "MIT" ]
64
2016-03-11T19:45:05.000Z
2022-03-31T23:58:33.000Z
include/Interop/ComCastor3D/CastorUtils/ComHdrRgbaColour.hpp
Mu-L/Castor3D
7b9c6e7be6f7373ad60c0811d136c0004e50e76b
[ "MIT" ]
11
2018-05-24T09:07:43.000Z
2022-03-21T21:05:20.000Z
/* See LICENSE file in root folder */ #ifndef __COMC3D_COM_HDRRGBACOLOUR_H__ #define __COMC3D_COM_HDRRGBACOLOUR_H__ #include "ComCastor3D/ComAtlObject.hpp" #include <CastorUtils/Graphics/Colour.hpp> namespace CastorCom { /*! \author Sylvain DOREMUS \version 0.7.0 \date 10/09/2014 \~english \brief This class...
28.289855
221
0.684682
[ "object" ]
96b6bc60aed2b7ad28afa3cf87eae54eaaeed546
2,679
cc
C++
src/Artwork.cc
TooTallNate/node-iTunes
5c4c2469773cfefbabdc0e9ebb5a041fa709d335
[ "MIT" ]
11
2015-09-21T04:50:51.000Z
2021-06-22T07:52:28.000Z
src/Artwork.cc
TooTallNate/node-iTunes
5c4c2469773cfefbabdc0e9ebb5a041fa709d335
[ "MIT" ]
1
2017-05-10T19:56:56.000Z
2017-05-10T19:56:56.000Z
src/Artwork.cc
TooTallNate/node-iTunes
5c4c2469773cfefbabdc0e9ebb5a041fa709d335
[ "MIT" ]
3
2015-08-02T11:36:14.000Z
2018-09-19T00:39:43.000Z
#include <node/node_buffer.h> #include "Artwork.h" #include "async_macros.h" using namespace node; using namespace v8; namespace node_iTunes { static Persistent<String> ARTWORK_CLASS_SYMBOL; void free_artwork_data_callback(char *data, void *hint); void Artwork::Init(v8::Handle<Object> target) { HandleScope scope...
31.517647
126
0.700261
[ "object" ]
96b92998b74b89e074fa7efc871bc56784f13a9a
5,583
hh
C++
c_src/easton_index/io.hh
cloudant-labs/easton
ec6b16d8a52f9fba7252ae8bd9edff071387741c
[ "Apache-2.0" ]
14
2017-04-20T15:53:16.000Z
2021-07-31T06:13:01.000Z
c_src/easton_index/io.hh
cloudant-labs/easton
ec6b16d8a52f9fba7252ae8bd9edff071387741c
[ "Apache-2.0" ]
8
2017-05-24T22:45:59.000Z
2018-06-24T23:13:08.000Z
c_src/easton_index/io.hh
cloudant-labs/easton
ec6b16d8a52f9fba7252ae8bd9edff071387741c
[ "Apache-2.0" ]
1
2017-10-13T22:16:52.000Z
2017-10-13T22:16:52.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 // distributed un...
22.787755
80
0.622783
[ "vector" ]
96bbdb9c253c89265f0fe51d726bdc2ae10eb45a
7,233
cpp
C++
modules/task_2/solovev_a_scatter/main.cpp
LioBuitrago/pp_2020_autumn_informatics
1ecc1b5dae978295778176ff11ffe42bedbc602e
[ "BSD-3-Clause" ]
1
2020-11-20T15:05:12.000Z
2020-11-20T15:05:12.000Z
modules/task_2/solovev_a_scatter/main.cpp
LioBuitrago/pp_2020_autumn_informatics
1ecc1b5dae978295778176ff11ffe42bedbc602e
[ "BSD-3-Clause" ]
1
2021-02-13T03:00:05.000Z
2021-02-13T03:00:05.000Z
modules/task_2/solovev_a_scatter/main.cpp
LioBuitrago/pp_2020_autumn_informatics
1ecc1b5dae978295778176ff11ffe42bedbc602e
[ "BSD-3-Clause" ]
1
2020-10-11T09:11:57.000Z
2020-10-11T09:11:57.000Z
// Copyright 2020 Solovev Alexandr #include <gtest-mpi-listener.hpp> #include <gtest/gtest.h> #include <random> #include <vector> #include "../../../modules/task_2/solovev_a_scatter/scatter.h" TEST(MPI_Scatter, int_to_int) { const int root = 0; int rank, size; int k = 0; MPI_Comm_size(MPI_COMM_WORLD, &...
34.607656
80
0.651597
[ "vector" ]
96be5e809b1f831bb4299ec412d267084ea863f6
3,047
cpp
C++
Mercury/Mode/AutoMode.cpp
glensand/Mercury
94c54d32028c8bfc762890906fa642920508995b
[ "MIT" ]
3
2021-01-14T03:43:03.000Z
2021-05-07T15:09:47.000Z
Mercury/Mode/AutoMode.cpp
glensand/Mercury
94c54d32028c8bfc762890906fa642920508995b
[ "MIT" ]
null
null
null
Mercury/Mode/AutoMode.cpp
glensand/Mercury
94c54d32028c8bfc762890906fa642920508995b
[ "MIT" ]
null
null
null
#include "AutoMode.h" #include "App/GameInterface.h" #include "World/Robot/Robot.h" #include "World/Terrain/Terrain.h" #include "Player/Player.h" #include <algorithm> #include <vector> namespace merc { AutoMode::AutoMode(GameInterface& gameInterface, Mode modeType) : ModeBase(gameInterface, modeType) { m_dir...
28.476636
134
0.624549
[ "vector" ]
96bf0df9679ee5c5a81d5f4917f0372f24817e34
962
cpp
C++
Ares/src/Ares/Renderer/Shader.cpp
tiredamage42/Ares
75b13441f7f18a402f7b8f4e869319d3ca3146cc
[ "Apache-2.0" ]
null
null
null
Ares/src/Ares/Renderer/Shader.cpp
tiredamage42/Ares
75b13441f7f18a402f7b8f4e869319d3ca3146cc
[ "Apache-2.0" ]
null
null
null
Ares/src/Ares/Renderer/Shader.cpp
tiredamage42/Ares
75b13441f7f18a402f7b8f4e869319d3ca3146cc
[ "Apache-2.0" ]
null
null
null
#include "AresPCH.h" #include "Ares/Renderer/Shader.h" #include "Ares/Renderer/Renderer.h" #include "Platform/OpenGL/OpenGLShader.h" namespace Ares { std::vector<Ref<Shader>> Shader::s_AllShaders; std::unordered_map<std::string, Ref<Shader>> Shader::s_ShaderMap; Ref<Shader> Shader::Create(const std::string& filePa...
23.463415
76
0.718295
[ "vector" ]
96bf4ebfde3988aa9f0d2121c59d3f097a87ce3a
1,628
hpp
C++
deps/win32/zeromq/src/mailbox.hpp
asimihsan/masspinger
51e483b6c1aaabce8ed0e7d289348870588113ce
[ "MIT" ]
4
2015-12-23T09:02:57.000Z
2021-01-02T18:06:46.000Z
deps/win32/zeromq/src/mailbox.hpp
asimihsan/masspinger
51e483b6c1aaabce8ed0e7d289348870588113ce
[ "MIT" ]
null
null
null
deps/win32/zeromq/src/mailbox.hpp
asimihsan/masspinger
51e483b6c1aaabce8ed0e7d289348870588113ce
[ "MIT" ]
2
2016-04-05T19:08:31.000Z
2021-01-03T01:42:26.000Z
/* Copyright (c) 2007-2011 iMatix Corporation Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file This file is part of 0MQ. 0MQ 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 Softw...
25.84127
76
0.673219
[ "object" ]
96bf5e771f24d6d0e78f10eda01e96c2e867dace
514
hpp
C++
Keditor/Source/Panels/SceneHierarchyPanel.hpp
KingKiller100/Krakatoa-Engine
ff07f7328d428c04e06b561b6afd315eea39865c
[ "Apache-2.0" ]
1
2020-04-05T13:37:48.000Z
2020-04-05T13:37:48.000Z
Keditor/Source/Panels/SceneHierarchyPanel.hpp
KingKiller100/Krakoa-Engine
0f2a5a5109e256a384abe8dc21eacaa45c1de610
[ "Apache-2.0" ]
null
null
null
Keditor/Source/Panels/SceneHierarchyPanel.hpp
KingKiller100/Krakoa-Engine
0f2a5a5109e256a384abe8dc21eacaa45c1de610
[ "Apache-2.0" ]
null
null
null
#pragma once #include <Core/PointerTypes.hpp> #include <Scene/iScene.hpp> #include "iScenePanel.hpp" namespace krakoa::scene::panels { class SceneHierarchyPanel { public: SceneHierarchyPanel(); void OnRender(); USE_RESULT ecs::EntityUID GetSelectedEntity() const; private: void DrawEntityNode(const scen...
18.357143
59
0.745136
[ "vector" ]
96bfad30d5314d74249c965ea22a1924bfce90b6
11,272
cc
C++
tests/lossless/test_color_cache.cc
RReverser/libwebp2
c90b5b476004c9a98731ae1c175cebab5de50fbf
[ "Apache-2.0" ]
4
2020-11-10T17:46:57.000Z
2022-03-22T06:24:17.000Z
tests/lossless/test_color_cache.cc
RReverser/libwebp2
c90b5b476004c9a98731ae1c175cebab5de50fbf
[ "Apache-2.0" ]
null
null
null
tests/lossless/test_color_cache.cc
RReverser/libwebp2
c90b5b476004c9a98731ae1c175cebab5de50fbf
[ "Apache-2.0" ]
null
null
null
// Copyright 2020 Google LLC // // 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 ...
33.349112
80
0.669269
[ "vector" ]
96cd90c92aede21e4bf0f44c6bb444ca7aaf8c01
4,008
cpp
C++
extrude.cpp
arvidsson/extrude
f5320a2b3cf38a6c18a30a561e1ce0ca56876e3e
[ "MIT" ]
4
2016-03-28T00:33:58.000Z
2019-04-01T15:15:23.000Z
extrude.cpp
arvidsson/extrude
f5320a2b3cf38a6c18a30a561e1ce0ca56876e3e
[ "MIT" ]
null
null
null
extrude.cpp
arvidsson/extrude
f5320a2b3cf38a6c18a30a561e1ce0ca56876e3e
[ "MIT" ]
null
null
null
#include <allegro5/allegro.h> #include <allegro5/allegro_image.h> #include <vector> #include <string> #include <memory> #include <iostream> using namespace std; void extrude(shared_ptr<ALLEGRO_BITMAP> bmp, int pad) { al_set_target_bitmap(bmp.get()); int w = al_get_bitmap_width(bmp.get()); int h = al_get_bi...
32.585366
121
0.544411
[ "vector" ]
96d18a9e962a4cde902c25cd1bc278ea935f00ee
4,823
cpp
C++
polybench/covariance.cpp
sbalint98/sycl-bench
49c35274e6bd88936b85da0b8a409f2542fa430a
[ "BSD-3-Clause" ]
24
2019-11-27T08:09:15.000Z
2021-09-30T13:26:13.000Z
polybench/covariance.cpp
sbalint98/sycl-bench
49c35274e6bd88936b85da0b8a409f2542fa430a
[ "BSD-3-Clause" ]
24
2020-01-16T10:25:06.000Z
2022-01-18T04:27:53.000Z
polybench/covariance.cpp
sbalint98/sycl-bench
49c35274e6bd88936b85da0b8a409f2542fa430a
[ "BSD-3-Clause" ]
11
2020-01-16T09:23:21.000Z
2022-02-23T03:20:30.000Z
#include <string> #include <vector> #include <cmath> #include <cstdlib> #include <CL/sycl.hpp> #include "common.h" #include "polybenchUtilFuncts.h" using DATA_TYPE = float; class CovarianceMean; class CovarianceReduce; class CovarianceCovar; constexpr DATA_TYPE float_n = 3214212.01; void init_...
27.878613
105
0.591748
[ "vector" ]
96e4ef8b461a2ecb6be8790dba239f6e64545df3
40,648
cpp
C++
src/game/server/swarm/asw_alien_shover.cpp
BenLubar/SwarmDirector2
78685d03eaa0d35e87c638ffa78f46f3aa8379a6
[ "Apache-2.0" ]
3
2015-05-17T02:33:00.000Z
2016-10-08T07:02:40.000Z
src/game/server/swarm/asw_alien_shover.cpp
BenLubar/SwarmDirector2
78685d03eaa0d35e87c638ffa78f46f3aa8379a6
[ "Apache-2.0" ]
null
null
null
src/game/server/swarm/asw_alien_shover.cpp
BenLubar/SwarmDirector2
78685d03eaa0d35e87c638ffa78f46f3aa8379a6
[ "Apache-2.0" ]
1
2019-10-16T15:21:56.000Z
2019-10-16T15:21:56.000Z
// Our Swarm Drone - the basic angry fighting alien #include "cbase.h" #include "asw_alien_shover.h" #include "ai_hint.h" #include "ai_memory.h" #include "ai_moveprobe.h" #include "npcevent.h" #include "IEffects.h" #include "ndebugoverlay.h" #include "soundent.h" #include "soundenvelope.h" #include "ai_squad.h" #incl...
28.345886
146
0.684929
[ "object", "vector", "model" ]
96ebaf4399be117a1c3251bf82fc2db4b50dcb6b
2,189
hpp
C++
template/PixFuTemplate/PixFu.Framework/Versions/A/Headers/ext/world/Terrain.hpp
nebular/PixFu_macOS_src
fbe6630fa0bc035a83c4f900e0e7f6006f45da2e
[ "CC-BY-4.0" ]
1
2020-03-02T00:57:04.000Z
2020-03-02T00:57:04.000Z
template/PixFuTemplate/PixFu.Framework/Versions/A/Headers/ext/world/Terrain.hpp
nebular/PixFu_macOS
fbe6630fa0bc035a83c4f900e0e7f6006f45da2e
[ "CC-BY-4.0" ]
null
null
null
template/PixFuTemplate/PixFu.Framework/Versions/A/Headers/ext/world/Terrain.hpp
nebular/PixFu_macOS
fbe6630fa0bc035a83c4f900e0e7f6006f45da2e
[ "CC-BY-4.0" ]
null
null
null
// // Terrain.hpp // PixEngine // // Created by rodo on 25/02/2020. // Copyright © 2020 rodo. All rights reserved. // #pragma once #include "Canvas2D.hpp" #include "Texture2D.hpp" #include "LayerVao.hpp" #include "ObjLoader.hpp" #include "TerrainShader.hpp" namespace Pix { class Terrain : public LayerVao { ...
24.322222
126
0.671996
[ "render", "model", "3d" ]
96f0ad324647fd648499177e11667887628fdd96
2,258
cpp
C++
codeforces/B - Maximum Product/Wrong answer on test 2.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
1
2022-02-11T16:55:36.000Z
2022-02-11T16:55:36.000Z
codeforces/B - Maximum Product/Wrong answer on test 2.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
codeforces/B - Maximum Product/Wrong answer on test 2.cpp
kzvd4729/Problem-Solving
13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab
[ "MIT" ]
null
null
null
/**************************************************************************************** * @author: kzvd4729# created: Apr/18/2021 22:24 * solution_verdict: Wrong answer on test 2 language: GNU C++17 (64) * run...
26.255814
111
0.460142
[ "vector" ]
96f2876ec9049c29227053a12370e9a97eb801bc
1,039
hh
C++
coding/Reactor/v2/EventLoop.hh
snow-tyan/learn-cpp
ecab0fae7999005ed7fdb60ff4954b4014b2c2e6
[ "MulanPSL-1.0" ]
null
null
null
coding/Reactor/v2/EventLoop.hh
snow-tyan/learn-cpp
ecab0fae7999005ed7fdb60ff4954b4014b2c2e6
[ "MulanPSL-1.0" ]
null
null
null
coding/Reactor/v2/EventLoop.hh
snow-tyan/learn-cpp
ecab0fae7999005ed7fdb60ff4954b4014b2c2e6
[ "MulanPSL-1.0" ]
null
null
null
#pragma once #include "TCPConnection.hh" #include <map> #include <memory> #include <sys/epoll.h> #include <vector> using std::map; using std::shared_ptr; using std::vector; namespace wd { class Acceptor; class EventLoop { public: EventLoop(Acceptor &); // peerfd,sockfd void loop(); void unloop(); // ...
20.78
49
0.693936
[ "vector" ]
96f6805dc629f77a38bf77f10863a15b2369b107
1,796
cpp
C++
zh/appendix C++11 standards/test_code/mystudy-right-reference4/test.cpp
xiangbingj/Cplusplus-Concurrency-In-Practice
e0efd276ac49ec63b216ee32940e5701f808511f
[ "MIT" ]
null
null
null
zh/appendix C++11 standards/test_code/mystudy-right-reference4/test.cpp
xiangbingj/Cplusplus-Concurrency-In-Practice
e0efd276ac49ec63b216ee32940e5701f808511f
[ "MIT" ]
null
null
null
zh/appendix C++11 standards/test_code/mystudy-right-reference4/test.cpp
xiangbingj/Cplusplus-Concurrency-In-Practice
e0efd276ac49ec63b216ee32940e5701f808511f
[ "MIT" ]
null
null
null
#include "stdio.h" #include<iostream> #include<cstring> #include<vector> using namespace std; class A { public: A() :m_ptr(NULL), m_nSize(0){} A(int *ptr, int nSize) { m_nSize = nSize; m_ptr = new int[nSize]; if (m_ptr) { memcpy(m_ptr, ptr, sizeof(sizeof(int) * n...
20.409091
69
0.455457
[ "vector" ]
8c00f6713958e8c1f80d789a27401bf3c7274382
10,879
cpp
C++
src/opticalFlowTracker.cpp
baowenqi/opticalFlowTracker
29c23f3ce642ab0afd0d77d9d643ae8eea0b91f3
[ "MIT" ]
5
2019-11-21T09:25:04.000Z
2022-02-26T07:36:03.000Z
src/opticalFlowTracker.cpp
baowenqi/opticalFlowTracker
29c23f3ce642ab0afd0d77d9d643ae8eea0b91f3
[ "MIT" ]
null
null
null
src/opticalFlowTracker.cpp
baowenqi/opticalFlowTracker
29c23f3ce642ab0afd0d77d9d643ae8eea0b91f3
[ "MIT" ]
1
2021-02-10T09:40:21.000Z
2021-02-10T09:40:21.000Z
#include <assert.h> #include <stdint.h> #include <string.h> #include <math.h> #include <list> #include <algorithm> #include <iostream> #include <sys/time.h> #include "opticalFlowTracker.hpp" using namespace std; ofTracker::ofTracker ( int32_t i_imgWidth, int32_t i_imgHeight ) : m_imgWidth(i_imgWidth), m_imgHe...
31.997059
91
0.344057
[ "model" ]
8c04e94ba578212bb99ce14d1d4dda4f5df856c2
5,081
hpp
C++
source/framework/algorithm/include/lue/framework/algorithm/unique_id.hpp
computationalgeography/lue
71993169bae67a9863d7bd7646d207405dc6f767
[ "MIT" ]
2
2021-02-26T22:45:56.000Z
2021-05-02T10:28:48.000Z
source/framework/algorithm/include/lue/framework/algorithm/unique_id.hpp
computationalgeography/lue
71993169bae67a9863d7bd7646d207405dc6f767
[ "MIT" ]
131
2020-10-27T13:09:16.000Z
2022-03-29T10:24:26.000Z
source/framework/algorithm/include/lue/framework/algorithm/unique_id.hpp
computationalgeography/lue
71993169bae67a9863d7bd7646d207405dc6f767
[ "MIT" ]
null
null
null
#pragma once #include "lue/framework/partitioned_array.hpp" #include "lue/framework/core/annotate.hpp" #include <numeric> namespace lue { namespace detail { template< typename InputPartition> [[nodiscard]] hpx::future<void> unique_id_partition( InputPartition input_partition, // Can't call .then on a const&...
31.364198
83
0.61051
[ "shape", "vector" ]
8c1480dc93b5bf9ffd2711f7e9942dfa9fb2579d
8,519
cpp
C++
avr-node/actor.cpp
MasterQ32/MESH
5b4b9c92a226e324f8ae2baef3acc94fa3f3c973
[ "MIT" ]
null
null
null
avr-node/actor.cpp
MasterQ32/MESH
5b4b9c92a226e324f8ae2baef3acc94fa3f3c973
[ "MIT" ]
null
null
null
avr-node/actor.cpp
MasterQ32/MESH
5b4b9c92a226e324f8ae2baef3acc94fa3f3c973
[ "MIT" ]
null
null
null
#include <util/delay.h> #include <stdint.h> #include <avr/io.h> void delay_ms(unsigned time) { while(time > 0) { _delay_ms(1); --time; } } void delay_us(unsigned time) { while(time > 0) { _delay_us(1); --time; } } #define BAUD 9600UL // Baudrate // Berechnungen #define UBRR_VAL ((F_CPU+BAUD*8)/(B...
19.719907
85
0.61087
[ "mesh" ]
22c9db343e9d2903a15248f16832bed2943f9e6c
21,465
cpp
C++
Shading via Lighting and Colors/shading_v2.cpp
mmagallanes/cmsi_371
34c3e31e3b404d75ac13175be709769ddb0616d1
[ "MIT" ]
null
null
null
Shading via Lighting and Colors/shading_v2.cpp
mmagallanes/cmsi_371
34c3e31e3b404d75ac13175be709769ddb0616d1
[ "MIT" ]
null
null
null
Shading via Lighting and Colors/shading_v2.cpp
mmagallanes/cmsi_371
34c3e31e3b404d75ac13175be709769ddb0616d1
[ "MIT" ]
null
null
null
/*** Assignment-3: Shading via Lighting and Colors Name: Magallanes, Merci Collaborators: 371 Spring 2018 Class ** Note: although the assignment should be completed individually you may speak with classmates on high level algorithmic concepts. Please list their names in this section Project Summary: In the...
32.375566
418
0.586723
[ "render", "object", "vector", "model" ]
22cec8b0a4b6c992ae589ece1f52cc86d9dbacf2
484
cpp
C++
boids_examples/flocking/flocking/src/geometry.cpp
ankurshaswat/Starlings
f69147b13a47804b2d76c40b1f84ee07d57bbe60
[ "MIT" ]
null
null
null
boids_examples/flocking/flocking/src/geometry.cpp
ankurshaswat/Starlings
f69147b13a47804b2d76c40b1f84ee07d57bbe60
[ "MIT" ]
null
null
null
boids_examples/flocking/flocking/src/geometry.cpp
ankurshaswat/Starlings
f69147b13a47804b2d76c40b1f84ee07d57bbe60
[ "MIT" ]
null
null
null
/******************************************************************** * @file geometry.cpp * @author Erik Larsson * @version 1.0 * @section DESCRIPTION * *********************************************************************/ #include "geometry.h" Geometry::Geometry(std::vector<glm::vec2> vertexList) { mVertexList ...
20.166667
70
0.508264
[ "geometry", "vector" ]
22cfb315f80aa79f3d080eaabb50e9e133c49d1b
2,750
cpp
C++
src/Formula.cpp
RonWuYi/cmakelean
a91488c925dd950f21183f86c401ad041e5c6eec
[ "MIT" ]
null
null
null
src/Formula.cpp
RonWuYi/cmakelean
a91488c925dd950f21183f86c401ad041e5c6eec
[ "MIT" ]
null
null
null
src/Formula.cpp
RonWuYi/cmakelean
a91488c925dd950f21183f86c401ad041e5c6eec
[ "MIT" ]
null
null
null
#include "Formula.h" int sum(vector<int> v) { int sum = 0; for (auto i : v) { sum += i; } return sum; } int min_element(vector<int> v) { int min = v[0]; for (auto i : v) { if (i < min) { min = i; } } return min; } int Formula::bla(int arg1) { re...
21.653543
68
0.571636
[ "vector" ]
22d06b66a2b5a37f86ba11ee1b2b113b1ac1de08
333
cpp
C++
901-1000/910. Smallest Range II.cpp
erichuang1994/leetcode-solution
d5b3bb3ce2a428a3108f7369715a3700e2ba699d
[ "MIT" ]
null
null
null
901-1000/910. Smallest Range II.cpp
erichuang1994/leetcode-solution
d5b3bb3ce2a428a3108f7369715a3700e2ba699d
[ "MIT" ]
null
null
null
901-1000/910. Smallest Range II.cpp
erichuang1994/leetcode-solution
d5b3bb3ce2a428a3108f7369715a3700e2ba699d
[ "MIT" ]
null
null
null
class Solution { public: int smallestRangeII(vector<int> &A, int K) { sort(begin(A), end(A)); int ret = A.back() - A[0]; int BEGIN = A[0] + K; int END = A.back() - K; for (int i = 0; i < A.size() - 1; ++i) { ret = min(ret, max(A[i] + K, END) - min(A[i + 1] - K, BEGIN)); } retur...
20.8125
68
0.468468
[ "vector" ]
22d70f6a1517bee739169ed8fc75e51c4b09c60f
4,530
cpp
C++
src/ompl/multilevel/datastructures/projections/src/RN_RM.cpp
AbdulrazzakJaroukh/OMPL
e1faf6da1067d1d708f40867c7fe9a18366630af
[ "BSD-3-Clause" ]
1
2022-03-31T14:07:03.000Z
2022-03-31T14:07:03.000Z
src/ompl/multilevel/datastructures/projections/src/RN_RM.cpp
AbdulrazzakJaroukh/OMPL
e1faf6da1067d1d708f40867c7fe9a18366630af
[ "BSD-3-Clause" ]
null
null
null
src/ompl/multilevel/datastructures/projections/src/RN_RM.cpp
AbdulrazzakJaroukh/OMPL
e1faf6da1067d1d708f40867c7fe9a18366630af
[ "BSD-3-Clause" ]
null
null
null
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2020, * Max Planck Institute for Intelligent Systems (MPI-IS). * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, ar...
40.446429
110
0.683885
[ "vector" ]
22d98321d911fdafea86270b0a1d60cf748a96d2
12,858
cpp
C++
shell/ext/sendmail/mail.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
shell/ext/sendmail/mail.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
shell/ext/sendmail/mail.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
#include "precomp.h" // pch file #include "mapi.h" #include "sendto.h" #pragma hdrstop // class that implement the MAPI send mail handler typedef struct { TCHAR szTempShortcut[MAX_PATH]; MapiMessage mm; MapiFileDesc mfd[0]; } MAPIFILES; class CMailRecipient : public CSendTo { pub...
33.310881
114
0.545575
[ "object" ]
22e0611201fbf18cc2cfc1fa32da8d590f9e58c4
5,665
hpp
C++
include/optimization/cost_functors.hpp
andretag/gp
c969f4ef3a1e27a2d02af230a4c964681aaf3c5f
[ "BSD-3-Clause" ]
null
null
null
include/optimization/cost_functors.hpp
andretag/gp
c969f4ef3a1e27a2d02af230a4c964681aaf3c5f
[ "BSD-3-Clause" ]
null
null
null
include/optimization/cost_functors.hpp
andretag/gp
c969f4ef3a1e27a2d02af230a4c964681aaf3c5f
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2016, The Regents of the University of California (Regents). * 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 retain the a...
37.516556
80
0.635128
[ "model" ]
22e0fd5aa0864236ed98d7d9f840a1d62b5e11a5
749
cpp
C++
c++/kmp.cpp
forgotter/Snippets
bb4e39cafe7ef2c1ef3ac24b450a72df350a248b
[ "MIT" ]
38
2018-09-17T18:16:24.000Z
2022-02-10T10:26:23.000Z
c++/kmp.cpp
forgotter/Snippets
bb4e39cafe7ef2c1ef3ac24b450a72df350a248b
[ "MIT" ]
1
2020-10-01T10:48:45.000Z
2020-10-04T11:27:44.000Z
c++/kmp.cpp
forgotter/Snippets
bb4e39cafe7ef2c1ef3ac24b450a72df350a248b
[ "MIT" ]
12
2018-11-13T13:36:41.000Z
2021-05-02T10:07:44.000Z
/// Name: KMP /// Description: Algorithm to match a given pattern with given string /// Detail: String, KMP, Maximum Suffix Prefix /// Guarantee: } // KMP vector<int> prefix_function(string s) { int n = (int)s.length(); vector<int> pi(n); for (int i = 1; i < n; i++) { int j = pi[i - ...
22.029412
70
0.440587
[ "vector" ]
22e3fcd3dbc33e8e949f8a445ac8bbb8e8573097
1,207
hpp
C++
third_party/boost/simd/function/negate.hpp
xmar/pythran
dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592
[ "BSD-3-Clause" ]
5
2018-02-20T11:21:12.000Z
2019-11-12T13:45:09.000Z
third_party/boost/simd/function/negate.hpp
xmar/pythran
dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592
[ "BSD-3-Clause" ]
null
null
null
third_party/boost/simd/function/negate.hpp
xmar/pythran
dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592
[ "BSD-3-Clause" ]
2
2017-12-12T12:29:52.000Z
2019-04-08T15:55:25.000Z
//================================================================================================== /*! @file @copyright 2016 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ //===========================...
23.211538
100
0.584921
[ "object" ]
22e3fd14a8255ab98d0634c40b970ddfdf9cb593
3,141
cpp
C++
Biosphere/Source/bio/biocoenosis/flora/app/App.cpp
PMArkive/Biosphere
baf62450b084ce327c3fc2eb0aa918e32462164e
[ "MIT" ]
1
2021-09-10T17:18:51.000Z
2021-09-10T17:18:51.000Z
Biosphere/Source/bio/biocoenosis/flora/app/App.cpp
PMArkive/Biosphere
baf62450b084ce327c3fc2eb0aa918e32462164e
[ "MIT" ]
null
null
null
Biosphere/Source/bio/biocoenosis/flora/app/App.cpp
PMArkive/Biosphere
baf62450b084ce327c3fc2eb0aa918e32462164e
[ "MIT" ]
null
null
null
#include <bio/biocoenosis/flora/app/App.hpp> namespace bio::app { static bool ainit = false; static RunMode rmode = RunMode::Subprocess; static hipc::Object *apsrv = NULL; static hipc::Object *approxy = NULL; static applet::LibraryAppletCreator *lac = NULL; static applet::SelfController *sc = N...
30.794118
124
0.529449
[ "object" ]
22ea257458ad9a4adcfd063757983b5407683020
7,844
cpp
C++
010_safe_zone_detection.cpp
DreamVu/Code-Samples
2fccd9e649fbe7d9895df7d799cb1ec33066d1c2
[ "MIT" ]
null
null
null
010_safe_zone_detection.cpp
DreamVu/Code-Samples
2fccd9e649fbe7d9895df7d799cb1ec33066d1c2
[ "MIT" ]
null
null
null
010_safe_zone_detection.cpp
DreamVu/Code-Samples
2fccd9e649fbe7d9895df7d799cb1ec33066d1c2
[ "MIT" ]
null
null
null
/* CODE SAMPLE # 010: Safe Zone Detection This code sample allows users to run Safe Zone Detection. >>>>>> Compile this code using the following command.... g++ 010_safe_zone_detection.cpp /usr/src/tensorrt/bin/common/logger.o ../lib/libPAL.so ../lib/libPAL_CAMERA.so ../lib/libPAL_DEPTH_HQ.so ....
31.629032
464
0.649669
[ "vector" ]
22ea3c437b5f83e7005cd4173d4196dd3df39848
53,490
cc
C++
applications/surfel_meshing/src/surfel_meshing/octree.cc
ulricheck/surfelmeshing
bacaf70a1877185af844b31597cb59d4cbed0722
[ "BSD-3-Clause" ]
1
2018-11-10T06:10:24.000Z
2018-11-10T06:10:24.000Z
applications/surfel_meshing/src/surfel_meshing/octree.cc
ulricheck/surfelmeshing
bacaf70a1877185af844b31597cb59d4cbed0722
[ "BSD-3-Clause" ]
null
null
null
applications/surfel_meshing/src/surfel_meshing/octree.cc
ulricheck/surfelmeshing
bacaf70a1877185af844b31597cb59d4cbed0722
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2018 ETH Zürich, Thomas Schöps // // 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 retain the above copyright notice, // this list of conditions and the follow...
42.251185
263
0.626042
[ "object", "vector" ]
22ed81c70b427d2735ab0c5bc39d9c9fe92a390f
4,371
cpp
C++
CPCCoreEmu/Z84C30.cpp
Tom1975/CPCCore
8a898d80533d5f955898893fbe09be024a64e861
[ "MIT" ]
5
2020-01-24T17:48:40.000Z
2021-01-29T10:48:31.000Z
CPCCoreEmu/Z84C30.cpp
Tom1975/CPCCore
8a898d80533d5f955898893fbe09be024a64e861
[ "MIT" ]
null
null
null
CPCCoreEmu/Z84C30.cpp
Tom1975/CPCCore
8a898d80533d5f955898893fbe09be024a64e861
[ "MIT" ]
1
2021-09-16T08:45:22.000Z
2021-09-16T08:45:22.000Z
#include "stdafx.h" #include "Z84C30.h" Z84C30::CTCCounter::CTCCounter() : output_(nullptr), interrupt_(nullptr), prescaler_(0), wait_for_time_constraint_(false), control_(0), count_enabled_(false), decrement_(0), time_constant_(0), down_counter_(0) { } Z84C30::CTCCounter::~CTCCou...
19.004348
122
0.553191
[ "vector" ]
22f306e422b1cc071f766bdcad5de67846f39fa4
1,076
cpp
C++
tools_for_debug/get_mu_sigma.cpp
xbai0624/dnn
51f53a41b3cbc60afca22e88447866a7e7d6e506
[ "MIT" ]
2
2020-10-12T00:19:40.000Z
2020-10-12T00:20:50.000Z
tools_for_debug/get_mu_sigma.cpp
xbai0624/dnn
51f53a41b3cbc60afca22e88447866a7e7d6e506
[ "MIT" ]
null
null
null
tools_for_debug/get_mu_sigma.cpp
xbai0624/dnn
51f53a41b3cbc60afca22e88447866a7e7d6e506
[ "MIT" ]
null
null
null
#include <iostream> #include <cmath> #include <vector> #include <sstream> #include <string> using namespace std; vector<float> parseLine(string _line) { vector<float> res; float s; istringstream line(_line); cout<<"_line: "<<_line<<endl; while(line>>s) { res.push_back(s); } ret...
18.551724
64
0.521375
[ "vector", "transform" ]
22f614072eeffa828aa8fba71807c31119645a44
1,578
cpp
C++
platforms/linux/src/Application/Packets/Commands/SetScanResponse/SetScanResponse.cpp
iotile/baBLE-linux
faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db
[ "MIT" ]
13
2018-07-04T16:35:37.000Z
2021-03-03T10:41:07.000Z
platforms/linux/src/Application/Packets/Commands/SetScanResponse/SetScanResponse.cpp
iotile/baBLE
faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db
[ "MIT" ]
11
2018-06-01T20:32:32.000Z
2019-01-21T17:03:47.000Z
platforms/linux/src/Application/Packets/Commands/SetScanResponse/SetScanResponse.cpp
iotile/baBLE-linux
faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db
[ "MIT" ]
null
null
null
#include <utils/string_formats.hpp> #include "SetScanResponse.hpp" #include "Application/Packets/Events/CommandComplete/CommandComplete.hpp" using namespace std; namespace Packet { namespace Commands { SetScanResponse::SetScanResponse() : HostToControllerPacket(Packet::Id::SetScanResponse, final_type(...
30.941176
123
0.698352
[ "vector" ]
22f6f6eac4c9f817d6122c9a44f94f309eaa5d4d
27,105
hpp
C++
include/eepp/base/string.hpp
dogtwelve/eepp
dd672ff0e108ae1e08449ca918dc144018fb4ba4
[ "MIT" ]
null
null
null
include/eepp/base/string.hpp
dogtwelve/eepp
dd672ff0e108ae1e08449ca918dc144018fb4ba4
[ "MIT" ]
null
null
null
include/eepp/base/string.hpp
dogtwelve/eepp
dd672ff0e108ae1e08449ca918dc144018fb4ba4
[ "MIT" ]
null
null
null
//////////////////////////////////////////////////////////// // // SFML - Simple and Fast Multimedia Library // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com) // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors be held liable for any damages ...
35.338983
135
0.706807
[ "object", "vector" ]
22fbaa74942a7a51e1469691f4e0fdc8dad86f86
1,661
cc
C++
tests/ecru/EcruTest.cc
novel/ecru
b798d5a0cfa481af5af3974a950558dcf1dd37dc
[ "BSD-2-Clause" ]
1
2016-05-08T13:29:29.000Z
2016-05-08T13:29:29.000Z
tests/ecru/EcruTest.cc
novel/ecru
b798d5a0cfa481af5af3974a950558dcf1dd37dc
[ "BSD-2-Clause" ]
null
null
null
tests/ecru/EcruTest.cc
novel/ecru
b798d5a0cfa481af5af3974a950558dcf1dd37dc
[ "BSD-2-Clause" ]
1
2021-07-13T06:57:41.000Z
2021-07-13T06:57:41.000Z
#include <string> #include <cppunit/extensions/HelperMacros.h> #include "ecru.h" using namespace std; class EcruTest : public CPPUNIT_NS::TestFixture { private: CPPUNIT_TEST_SUITE( EcruTest ); CPPUNIT_TEST( testStripString ); CPPUNIT_TEST( testStripNewLines ); CPPUNIT_TEST( testExecuteCommandWithValidComma...
22.753425
62
0.735099
[ "vector" ]
22fbe81253f3c947a2cc21f1fb691bda0d7e57cf
12,569
cpp
C++
Rendara3D/Demos/OutBreak/OutBreakLevel.cpp
physteo/ggj19
0e14c110c00d95fe0b61f677c7de70860a08d1c3
[ "Apache-2.0" ]
1
2019-04-18T16:15:08.000Z
2019-04-18T16:15:08.000Z
Rendara3D/Demos/OutBreak/OutBreakLevel.cpp
physteo/ggj19
0e14c110c00d95fe0b61f677c7de70860a08d1c3
[ "Apache-2.0" ]
null
null
null
Rendara3D/Demos/OutBreak/OutBreakLevel.cpp
physteo/ggj19
0e14c110c00d95fe0b61f677c7de70860a08d1c3
[ "Apache-2.0" ]
null
null
null
#include "OutBreakLevel.h" OutBreakLevel::OutBreakLevel(Window& window, std::map<std::string, Texture>* loadedTextures) : /************ models ************/ woodBrickModel{ "./res/model/container/container.obj", glm::vec3{1.0f,0.0f,1.0f}, loadedTextures }, paperBrickModel{ "./res/model/container/container_cardboa...
33.076316
146
0.697669
[ "render", "vector", "model", "transform" ]
22fdf991990804f99d8d86476a1c5f89cec7b9ae
969
cpp
C++
1007-minimum-domino-rotations-for-equal-row/1007-minimum-domino-rotations-for-equal-row.cpp
sahib-pratap-singh/Leetcode
0df2053dcf51c61c1d32ae2d20f58c11b2c25b24
[ "MIT" ]
null
null
null
1007-minimum-domino-rotations-for-equal-row/1007-minimum-domino-rotations-for-equal-row.cpp
sahib-pratap-singh/Leetcode
0df2053dcf51c61c1d32ae2d20f58c11b2c25b24
[ "MIT" ]
null
null
null
1007-minimum-domino-rotations-for-equal-row/1007-minimum-domino-rotations-for-equal-row.cpp
sahib-pratap-singh/Leetcode
0df2053dcf51c61c1d32ae2d20f58c11b2c25b24
[ "MIT" ]
null
null
null
class Solution { public: int minDominoRotations(vector<int>& tops, vector<int>& bottoms) { int n=tops.size(); int countA=0; int countB=0; for(int i=0;i<n;i++){ if(tops[i]==tops[0] || bottoms[i]==tops[0]){ if(tops[i]!=tops[0]) countA++; ...
27.685714
69
0.365325
[ "vector" ]
22fff910a89facd6c2b6a20daefd31488f168e82
2,605
cc
C++
backend/reg-alloc/color-ssa-td/src/lib/live-now.cc
obs145628/cle
4a4a18b2ab5a6fbf26629f6845147541edabd7c9
[ "MIT" ]
null
null
null
backend/reg-alloc/color-ssa-td/src/lib/live-now.cc
obs145628/cle
4a4a18b2ab5a6fbf26629f6845147541edabd7c9
[ "MIT" ]
null
null
null
backend/reg-alloc/color-ssa-td/src/lib/live-now.cc
obs145628/cle
4a4a18b2ab5a6fbf26629f6845147541edabd7c9
[ "MIT" ]
null
null
null
#include "live-now.hh" #include "../isa/isa.hh" #include <logia/program.hh> namespace { std::ostream &operator<<(std::ostream &os, const LiveNow::set_t &set) { os << "{"; std::size_t rem = set.size(); for (const auto &it : set) { os << it; if (--rem) os << ", "; } return os << "}"; } std::os...
24.809524
77
0.526296
[ "vector" ]
fe00d5440fc9df6da48b71b1e46c2c6a70a777aa
501
cpp
C++
sudokuSolver.cpp
voltrevo/sudokuSolver
7e06f8239f458086fc3b36d52cac849fcb4df505
[ "MIT" ]
null
null
null
sudokuSolver.cpp
voltrevo/sudokuSolver
7e06f8239f458086fc3b36d52cac849fcb4df505
[ "MIT" ]
null
null
null
sudokuSolver.cpp
voltrevo/sudokuSolver
7e06f8239f458086fc3b36d52cac849fcb4df505
[ "MIT" ]
null
null
null
#include <iostream> #include "solver.hpp" int main() { Solver solver; while (true) { State puzzle; std::cin >> puzzle; if (!std::cin) { break; } std::vector<State> solutions = solver.Solve(puzzle); bool first = true; for (Sta...
14.735294
61
0.417166
[ "vector" ]
fe05df7abc9138688a7e37bdccec76ac81f9be33
6,981
cc
C++
dali/kernels/signal/fft/fft_cpu_impl_ffts.cc
L-Net-1992/DALI
982224d8b53e1156ae092f73f5a7d600982a1eb9
[ "ECL-2.0", "Apache-2.0" ]
2
2022-02-17T19:54:05.000Z
2022-02-17T19:54:08.000Z
dali/kernels/signal/fft/fft_cpu_impl_ffts.cc
L-Net-1992/DALI
982224d8b53e1156ae092f73f5a7d600982a1eb9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
dali/kernels/signal/fft/fft_cpu_impl_ffts.cc
L-Net-1992/DALI
982224d8b53e1156ae092f73f5a7d600982a1eb9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
// Copyright (c) 2019-2022, NVIDIA CORPORATION & 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 // /...
36.742105
99
0.688297
[ "shape", "vector", "transform" ]
fe07a4f42267a4e6a8e07a9f6a271da657cb51f4
2,396
cpp
C++
OpenGL Engine/src/components/Entity.cpp
nfwGytautas/GLEngine-v2
f90d77f136d5239cfd1305fd33322e16440dda70
[ "MIT" ]
null
null
null
OpenGL Engine/src/components/Entity.cpp
nfwGytautas/GLEngine-v2
f90d77f136d5239cfd1305fd33322e16440dda70
[ "MIT" ]
26
2018-06-14T21:06:56.000Z
2018-07-28T16:56:42.000Z
OpenGL Engine/src/components/Entity.cpp
nfwGytautas/SGE
f90d77f136d5239cfd1305fd33322e16440dda70
[ "MIT" ]
null
null
null
#include "Entity.h" #include "..\SGEDefs.h" #include "EntityManager.h" void Entity::init() { for (unsigned int i = 0; i < maxComponents; i++) { if(m_componentArray[i] != nullptr) { m_componentArray[i]->init(); } } } void Entity::update(float frameTime) { for (unsigned int i = 0; i < maxComponents; i++) ...
17.362319
76
0.663606
[ "render" ]
fe09de7faa4be13077e835f4278276954117e813
7,865
cpp
C++
decrypt-log/DecryptLog.cpp
parsiya/Parsia-Code
e75bd9f7f295e6d8e584de67f90dd02cb75ae915
[ "MIT" ]
21
2018-09-10T03:09:17.000Z
2022-02-07T09:20:03.000Z
decrypt-log/DecryptLog.cpp
parsiya/Parsia-Code
e75bd9f7f295e6d8e584de67f90dd02cb75ae915
[ "MIT" ]
1
2019-11-10T21:17:23.000Z
2020-01-19T04:36:19.000Z
decrypt-log/DecryptLog.cpp
parsiya/Parsia-Code
e75bd9f7f295e6d8e584de67f90dd02cb75ae915
[ "MIT" ]
8
2019-10-11T23:29:58.000Z
2021-05-26T12:11:43.000Z
// DecryptLog.cpp : Decrypts encrypted log files. // Lots of useless utility methods to warm up. I had not written C++ in forever. #include <iostream> #include <random> #include <string> #include <fstream> #include <stdio.h> #include <cstddef> // To get byte in Visual C++. // 1. Right-click on the solution...
30.603113
129
0.62314
[ "vector" ]
fe0bc30914c0a63aaf3bec0621cddbadeff41056
9,008
cpp
C++
shadow/operators/kernels/deconv.cpp
junluan/shadow
067d1c51d7c38bc1c985008a2e2e1599bbf11a8c
[ "Apache-2.0" ]
20
2017-07-04T11:22:47.000Z
2022-01-16T03:58:32.000Z
shadow/operators/kernels/deconv.cpp
junluan/shadow
067d1c51d7c38bc1c985008a2e2e1599bbf11a8c
[ "Apache-2.0" ]
2
2017-12-03T13:07:39.000Z
2021-01-13T11:11:52.000Z
shadow/operators/kernels/deconv.cpp
junluan/shadow
067d1c51d7c38bc1c985008a2e2e1599bbf11a8c
[ "Apache-2.0" ]
10
2017-09-30T05:06:30.000Z
2020-11-13T05:43:44.000Z
#include "deconv.hpp" namespace Shadow { namespace Vision { template <> void Col2Im2D<DeviceType::kCPU, float>(const float* col_data, const VecInt& in_shape, int kernel_size_h, int kernel_size_w, int ...
42.490566
80
0.534969
[ "shape" ]
fe25271716ece540dd8d22118eb5ebcb5d082e68
7,420
cpp
C++
server.cpp
Aleksej10/checkersAI
d696d092023b1f2da85ca3810819bf3765ea8d78
[ "MIT" ]
null
null
null
server.cpp
Aleksej10/checkersAI
d696d092023b1f2da85ca3810819bf3765ea8d78
[ "MIT" ]
null
null
null
server.cpp
Aleksej10/checkersAI
d696d092023b1f2da85ca3810819bf3765ea8d78
[ "MIT" ]
null
null
null
#include <bits/stdint-uintn.h> #include <cstdlib> #include <websocketpp/config/asio_no_tls_client.hpp> #include <websocketpp/client.hpp> #include "pos.hpp" #include "node.hpp" #include "model.hpp" #include <iostream> #include <map> #include <string> #include <vector> #include <future> #include <chrono> #include "json.h...
31.308017
122
0.543127
[ "vector", "model" ]
fe325e98f4f7bbc5a9926410ae422778ce6c9379
500
hpp
C++
include/algodts/algos/product_except_self.hpp
paulpan05/algodts-cpp
db02a8d18668afb004bc63a1814fcc6fe32729ef
[ "Apache-2.0" ]
null
null
null
include/algodts/algos/product_except_self.hpp
paulpan05/algodts-cpp
db02a8d18668afb004bc63a1814fcc6fe32729ef
[ "Apache-2.0" ]
null
null
null
include/algodts/algos/product_except_self.hpp
paulpan05/algodts-cpp
db02a8d18668afb004bc63a1814fcc6fe32729ef
[ "Apache-2.0" ]
null
null
null
#ifndef PRODUCTEXCEPTSELF_HPP_ #define PRODUCTEXCEPTSELF_HPP_ #include <vector> std::vector<int> productExceptSelf(std::vector<int>& nums) { std::vector<int> tmp(nums); if (nums.empty()) { return nums; } for (int i = 1; i < nums.size(); ++i) { nums[i] *= nums[i - 1]; } nums[nums.size() - 1] = nums...
20.833333
60
0.554
[ "vector" ]
fe40d49b13c14f69402c458674de53cc54343121
5,880
cpp
C++
src/Util.cpp
nagy/GQ
a00f4ed73064797c627887d5be7b8bee41d7223f
[ "MIT" ]
null
null
null
src/Util.cpp
nagy/GQ
a00f4ed73064797c627887d5be7b8bee41d7223f
[ "MIT" ]
null
null
null
src/Util.cpp
nagy/GQ
a00f4ed73064797c627887d5be7b8bee41d7223f
[ "MIT" ]
null
null
null
/* * This is a heavily modified fork of gumbo-query by Hoping White aka LazyTiger. * The original software can be found at: https://github.com/lazytiger/gumbo-query * * gumbo-query is based on cascadia, written by Andy Balholm. * * Copyright (c) 2011 Andy Balholm. All rights reserved. * Copyright (c) 2015 Hoping White ...
20.925267
115
0.638946
[ "vector" ]
fe42da50f0e74ebe5e7ef87e00599ce87548e10b
27,816
hpp
C++
include/mersenne.hpp
libtcod/treeburner
ace0eab18d55db77475f509f1bcd8b647cc46c3b
[ "MIT" ]
null
null
null
include/mersenne.hpp
libtcod/treeburner
ace0eab18d55db77475f509f1bcd8b647cc46c3b
[ "MIT" ]
null
null
null
include/mersenne.hpp
libtcod/treeburner
ace0eab18d55db77475f509f1bcd8b647cc46c3b
[ "MIT" ]
null
null
null
/* * libtcod 1.5.1 * Copyright (c) 2008,2009,2010 Jice & Mingos * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * ...
54.01165
371
0.756291
[ "transform" ]
1cfa81471b879cc3b5098e9f5b4f2331a79862ac
2,515
cpp
C++
cpp/unittest/gis/cuda/functor_distance_tests.cpp
shengjh/arctern
6b52bacf29d84ec41d97f9dd67aa7e36da266287
[ "Apache-2.0" ]
1
2020-04-25T04:21:01.000Z
2020-04-25T04:21:01.000Z
cpp/unittest/gis/cuda/functor_distance_tests.cpp
shengjh/arctern
6b52bacf29d84ec41d97f9dd67aa7e36da266287
[ "Apache-2.0" ]
null
null
null
cpp/unittest/gis/cuda/functor_distance_tests.cpp
shengjh/arctern
6b52bacf29d84ec41d97f9dd67aa7e36da266287
[ "Apache-2.0" ]
null
null
null
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
33.533333
84
0.682704
[ "vector" ]
e80f1bb04e6abb752c27bcde1eb22a68fdc0ae0d
2,306
cpp
C++
CmdLine/synch/synch.cpp
BartoszMilewski/CodeCoop
7d29f53ccf65b0d29ea7d6781a74507b52c08d0d
[ "MIT" ]
67
2018-03-02T10:50:02.000Z
2022-03-23T18:20:29.000Z
CmdLine/synch/synch.cpp
BartoszMilewski/CodeCoop
7d29f53ccf65b0d29ea7d6781a74507b52c08d0d
[ "MIT" ]
null
null
null
CmdLine/synch/synch.cpp
BartoszMilewski/CodeCoop
7d29f53ccf65b0d29ea7d6781a74507b52c08d0d
[ "MIT" ]
9
2018-03-01T16:38:28.000Z
2021-03-02T16:17:09.000Z
//------------------------------------ // (c) Reliable Software, 2000 - 2008 //------------------------------------ #include "precompiled.h" #include "CmdArgs.h" #include "SccErrorOut.h" #include "SccProxyEx.h" #include "PathClassifier.h" #include "CmdLineVersionLabel.h" #include <Ex/WinEx.h> #include <Ex/Error.h> ...
28.825
92
0.601041
[ "vector" ]
e823172e18331c11f91a2bdc014ba84213aa4d5a
1,557
cpp
C++
objects/remove.cpp
Fundot/fundot
5dbafcbadb570331e0db7aa755161b518f2c5d44
[ "MIT" ]
7
2020-04-10T18:40:50.000Z
2020-04-18T06:49:49.000Z
objects/remove.cpp
fundot/fundot
5dbafcbadb570331e0db7aa755161b518f2c5d44
[ "MIT" ]
null
null
null
objects/remove.cpp
fundot/fundot
5dbafcbadb570331e0db7aa755161b518f2c5d44
[ "MIT" ]
4
2021-01-27T00:47:47.000Z
2021-12-28T04:23:05.000Z
#include "fundot/fundot.h" using namespace fundot; Object remove(const UnorderedSet& owner, const Object& value) { UnorderedSet ret = owner; auto iter = std::find(ret.value.begin(), ret.value.end(), value); if (iter == ret.value.end()) { return {Null()}; } ret.value.erase(iter); return...
25.112903
78
0.603725
[ "object", "vector" ]
e8272aeedf8e755b1bdc751385d059da445b5dd7
1,258
cpp
C++
boboleetcode/Play-Leetcode-master/0729-My Calendar-I/cpp-0729/main2.cpp
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
2
2019-03-20T17:05:59.000Z
2019-10-15T07:56:45.000Z
boboleetcode/Play-Leetcode-master/0729-My Calendar-I/cpp-0729/main2.cpp
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
6
2019-12-04T06:08:32.000Z
2021-05-10T20:22:47.000Z
boboleetcode/Play-Leetcode-master/0729-My Calendar-I/cpp-0729/main2.cpp
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
null
null
null
/// Source : https://leetcode.com/problems/my-calendar-i/description/ /// Author : liuyubobobo /// Time : 2017-11-20 #include <iostream> #include <vector> using namespace std; /// Brute Force with easy overlapped check /// Time Complexity: book: O(n) /// total: O(n^2) /// Space Complexity: O(n) cla...
22.872727
71
0.599364
[ "vector" ]
e832de475509572bac786357a7a83334f343c2c6
2,375
cpp
C++
tests/juliet/testcases/CWE23_Relative_Path_Traversal/s03/CWE23_Relative_Path_Traversal__wchar_t_console_fopen_84_bad.cpp
RanerL/analyzer
a401da4680f163201326881802ee535d6cf97f5a
[ "MIT" ]
28
2017-01-20T15:25:54.000Z
2020-03-17T00:28:31.000Z
testcases/CWE23_Relative_Path_Traversal/s03/CWE23_Relative_Path_Traversal__wchar_t_console_fopen_84_bad.cpp
mellowCS/cwe_checker_juliet_suite
ae604f6fd94964251fbe88ef04d5287f6c1ffbe2
[ "MIT" ]
1
2017-01-20T15:26:27.000Z
2018-08-20T00:55:37.000Z
testcases/CWE23_Relative_Path_Traversal/s03/CWE23_Relative_Path_Traversal__wchar_t_console_fopen_84_bad.cpp
mellowCS/cwe_checker_juliet_suite
ae604f6fd94964251fbe88ef04d5287f6c1ffbe2
[ "MIT" ]
2
2019-07-15T19:07:04.000Z
2019-09-07T14:21:04.000Z
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE23_Relative_Path_Traversal__wchar_t_console_fopen_84_bad.cpp Label Definition File: CWE23_Relative_Path_Traversal.label.xml Template File: sources-sink-84_bad.tmpl.cpp */ /* * @description * CWE: 23 Relative Path Traversal * BadSource: console Read input from ...
32.534247
147
0.616
[ "object" ]
e83662fb83e500d4cafdec209d61bdbb02f4470c
39,519
cc
C++
wrappers/8.1.1/vtkTextureWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
6
2016-02-03T12:48:36.000Z
2020-09-16T15:07:51.000Z
wrappers/8.1.1/vtkTextureWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
4
2016-02-13T01:30:43.000Z
2020-03-30T16:59:32.000Z
wrappers/8.1.1/vtkTextureWrap.cc
axkibe/node-vtk
900ad7b5500f672519da5aa24c99aa5a96466ef3
[ "BSD-3-Clause" ]
null
null
null
/* this file has been autogenerated by vtkNodeJsWrap */ /* editing this might proof futile */ #define VTK_WRAPPING_CXX #define VTK_STREAMS_FWD_ONLY #include <nan.h> #include "vtkImageAlgorithmWrap.h" #include "vtkTextureWrap.h" #include "vtkObjectBaseWrap.h" #include "vtkRendererWrap.h" #include "vtkWindowWrap.h" #in...
31.564696
111
0.73056
[ "render", "object" ]
e8492b18167cfbbe7e218dc3acebfc3f06748d65
161
cpp
C++
chapter17/exercise17_2.cpp
zerenlu/primer_Cpp
4882e244ef90c9f69e344171468b8cfc8308b2c4
[ "MIT" ]
null
null
null
chapter17/exercise17_2.cpp
zerenlu/primer_Cpp
4882e244ef90c9f69e344171468b8cfc8308b2c4
[ "MIT" ]
null
null
null
chapter17/exercise17_2.cpp
zerenlu/primer_Cpp
4882e244ef90c9f69e344171468b8cfc8308b2c4
[ "MIT" ]
null
null
null
#include<tuple> #include<string> #include<vector> #include<map> int main() { std::tuple<std::string, std::vector<std::string>, std::pair<std::string, int>> t; }
20.125
82
0.68323
[ "vector" ]
e84c0cb88a74c18089b80c7b85244175eb42afbf
3,629
cpp
C++
callbacks.cpp
adamvan101/OpenGLTextBox
cdee2f44469c5c4ca659f7ad561bdf99aed8b8ab
[ "Apache-2.0" ]
null
null
null
callbacks.cpp
adamvan101/OpenGLTextBox
cdee2f44469c5c4ca659f7ad561bdf99aed8b8ab
[ "Apache-2.0" ]
null
null
null
callbacks.cpp
adamvan101/OpenGLTextBox
cdee2f44469c5c4ca659f7ad561bdf99aed8b8ab
[ "Apache-2.0" ]
1
2018-12-11T19:13:04.000Z
2018-12-11T19:13:04.000Z
#include "callbacks.h" double mouseX, mouseY; double mouseMoveX, mouseMoveY; int WIDTH = 300, HEIGHT = 400; std::vector<std::string> _chatText; std::vector<std::string> _chatLog; int _chatTextIndex = 0; std::string name = "Adam"; void recvMsg(std::string s) { s = name + ": " + s; int stride = (WIDTH - (3...
26.881481
133
0.505373
[ "vector" ]
e84e2a15d06846415a93a8f61e03bf288487ec7d
5,559
cxx
C++
phys-services/private/phys-services/I3EventCounter.cxx
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
1
2020-12-24T22:00:01.000Z
2020-12-24T22:00:01.000Z
phys-services/private/phys-services/I3EventCounter.cxx
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
null
null
null
phys-services/private/phys-services/I3EventCounter.cxx
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
3
2020-07-17T09:20:29.000Z
2021-03-30T16:44:18.000Z
#include <sstream> #include <fstream> #include "phys-services/I3EventCounter.h" #include "dataclasses/physics/I3EventHeader.h" using std::ostringstream; I3_MODULE(I3EventCounter); I3EventCounter :: I3EventCounter(const I3Context& ctx) : I3Module(ctx), physCount_(0), statusCount_(0), geometryCount_(0), ca...
26.855072
88
0.635906
[ "geometry" ]
e8516746b29eaa352a5a4a7e23933684e2c0ff20
28,721
cpp
C++
tests/Unit/Evolution/Systems/Cce/Test_BoundaryData.cpp
desperadoshi/spectre
b61c12dce108a98a875a1e9476e5630bea634119
[ "MIT" ]
null
null
null
tests/Unit/Evolution/Systems/Cce/Test_BoundaryData.cpp
desperadoshi/spectre
b61c12dce108a98a875a1e9476e5630bea634119
[ "MIT" ]
null
null
null
tests/Unit/Evolution/Systems/Cce/Test_BoundaryData.cpp
desperadoshi/spectre
b61c12dce108a98a875a1e9476e5630bea634119
[ "MIT" ]
null
null
null
// Distributed under the MIT License. // See LICENSE.txt for details. #include "Framework/TestingFramework.hpp" #include <cstddef> #include "DataStructures/ComplexDataVector.hpp" #include "DataStructures/DataBox/TagName.hpp" #include "DataStructures/DataVector.hpp" #include "DataStructures/SpinWeighted.hpp" #include...
45.588889
80
0.695449
[ "vector" ]
e85b9a5281c50fbbe7375f3e15c64a4441bf3b4f
369
cpp
C++
examples/appearance/axes/axes_2.cpp
lpea/matplotplusplus
642f04b5bc2f7c7ec0f4b81c683bbd30bcbc4ed8
[ "MIT" ]
1
2022-03-22T11:09:19.000Z
2022-03-22T11:09:19.000Z
examples/appearance/axes/axes_2.cpp
lpea/matplotplusplus
642f04b5bc2f7c7ec0f4b81c683bbd30bcbc4ed8
[ "MIT" ]
null
null
null
examples/appearance/axes/axes_2.cpp
lpea/matplotplusplus
642f04b5bc2f7c7ec0f4b81c683bbd30bcbc4ed8
[ "MIT" ]
1
2022-03-22T11:46:39.000Z
2022-03-22T11:46:39.000Z
#include <iostream> #include <matplot/matplot.h> #include <set> #include <thread> #include <vector> int main() { using namespace matplot; auto ax1 = axes({0.1, 0.1, 0.7, 0.7}); auto ax2 = axes({0.65, 0.65, 0.28, 0.28}); auto [X, Y, Z] = peaks(20); contour(ax1, X, Y, Z); colorbar(ax1, off); ...
19.421053
46
0.555556
[ "vector" ]
e85c4a60db6b480216d07729eb05c507a15cb0b0
154
hpp
C++
drape_frontend/animation_utils.hpp
smartyw/organicmaps
9b10eb9d3ed6833861cef294c2416cc98b15e10d
[ "Apache-2.0" ]
4,879
2015-09-30T10:56:36.000Z
2022-03-31T18:43:03.000Z
drape_frontend/animation_utils.hpp
smartyw/organicmaps
9b10eb9d3ed6833861cef294c2416cc98b15e10d
[ "Apache-2.0" ]
7,549
2015-09-30T10:52:53.000Z
2022-03-31T22:04:22.000Z
drape_frontend/animation_utils.hpp
smartyw/organicmaps
9b10eb9d3ed6833861cef294c2416cc98b15e10d
[ "Apache-2.0" ]
1,493
2015-09-30T10:43:06.000Z
2022-03-21T09:16:49.000Z
#pragma once #include "geometry/screenbase.hpp" namespace df { bool IsAnimationAllowed(double duration, ScreenBase const & screen); } // namespace df
14
68
0.75974
[ "geometry" ]
e861c6a5fb9cf821803eb5aa7c94ab2711a10db1
1,881
hpp
C++
Flow3D/Flow3D/src/Flow3D/ResourceManager.hpp
florianvoelkers/Flow3D
017d2f321f943dfecc360bec9fc6f17c77ffde68
[ "MIT" ]
2
2020-05-09T10:06:00.000Z
2021-03-10T00:10:41.000Z
Flow3D/Flow3D/src/Flow3D/ResourceManager.hpp
florianvoelkers/Flow3D
017d2f321f943dfecc360bec9fc6f17c77ffde68
[ "MIT" ]
1
2022-03-04T09:17:15.000Z
2022-03-04T09:17:15.000Z
Flow3D/Flow3D/src/Flow3D/ResourceManager.hpp
florianvoelkers/Flow3D
017d2f321f943dfecc360bec9fc6f17c77ffde68
[ "MIT" ]
2
2020-02-17T00:43:03.000Z
2020-11-26T11:55:19.000Z
#pragma once #include "Rendering/Shader.hpp" #include "Rendering/Texture.hpp" #include "Rendering/Model.hpp" #include "Rendering/Skybox.hpp" enum class ResourceType { Shader, Texture, Model }; class ResourceManager { public: ResourceManager(); inline static ResourceManager& Get() { return *s_Instance; } voi...
36.173077
83
0.742158
[ "vector", "model" ]
e8663b6da16ef550c60a3fcfbdb37ffa5b9bad10
2,259
cpp
C++
Online Judges/UVA/10817/3690454_AC_1768ms_0kB.cpp
moni-roy/COPC
f5918304815413c18574ef4af2e23a604bd9f704
[ "MIT" ]
4
2017-02-20T17:41:14.000Z
2019-07-15T14:15:34.000Z
Online Judges/UVA/10817/3690454_AC_1768ms_0kB.cpp
moni-roy/COPC
f5918304815413c18574ef4af2e23a604bd9f704
[ "MIT" ]
null
null
null
Online Judges/UVA/10817/3690454_AC_1768ms_0kB.cpp
moni-roy/COPC
f5918304815413c18574ef4af2e23a604bd9f704
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long long unsigned llu; typedef double dl; typedef pair<int,int> pii; typedef pair<ll,ll> pll; typedef vector<int> vi; typedef map<int,int> mii; typedef map<ll,ll> mll; typedef map<string,i...
21.11215
117
0.565737
[ "vector" ]
e8679179dc1268c9cf40427d98ce89f3862ed732
35,215
cpp
C++
src/modules/graphics/opengl/OpenGL.cpp
stepmania/six
0922ce212e129a5404bf116b64bc2f6f076c53cb
[ "Zlib" ]
16
2017-01-05T16:45:20.000Z
2019-04-13T12:44:19.000Z
src/modules/graphics/opengl/OpenGL.cpp
stepmania/six
0922ce212e129a5404bf116b64bc2f6f076c53cb
[ "Zlib" ]
null
null
null
src/modules/graphics/opengl/OpenGL.cpp
stepmania/six
0922ce212e129a5404bf116b64bc2f6f076c53cb
[ "Zlib" ]
3
2017-01-05T18:52:59.000Z
2020-02-12T09:58:53.000Z
/** * Copyright (c) 2006-2017 LOVE Development Team * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * ...
26.984674
129
0.768508
[ "render" ]
e867d85d7ca119715bb478743ef2ebe5278f6132
2,231
cpp
C++
LeetCode/C++/Companies/Google/Medium/NumberOfMatchingSubsequences/solution.cpp
busebd12/InterviewPreparation
e68c41f16f7790e44b10a229548186e13edb5998
[ "MIT" ]
null
null
null
LeetCode/C++/Companies/Google/Medium/NumberOfMatchingSubsequences/solution.cpp
busebd12/InterviewPreparation
e68c41f16f7790e44b10a229548186e13edb5998
[ "MIT" ]
null
null
null
LeetCode/C++/Companies/Google/Medium/NumberOfMatchingSubsequences/solution.cpp
busebd12/InterviewPreparation
e68c41f16f7790e44b10a229548186e13edb5998
[ "MIT" ]
null
null
null
#include <deque> #include <string> #include <unordered_map> #include <vector> /* Solution: based on this post --> https://leetcode.com/problems/number-of-matching-subsequences/discuss/117598/Java-solution-using-HashMap-and-Queue Time complexity: O(n + (w * l)) [where n is the length of s, w is the number of words, an...
35.412698
147
0.487225
[ "vector" ]
e86d6f0d4354229a2626385014413dc475d655a0
6,575
cpp
C++
Acodemia/source/rendering/Displayable.cpp
jackflower/Acodemia
779d1ea76cf7c3841aa57e7a3f3c45591a5a2940
[ "MIT" ]
2
2019-11-26T09:50:56.000Z
2019-11-30T19:40:42.000Z
Acodemia/source/rendering/Displayable.cpp
jackflower/Acodemia
779d1ea76cf7c3841aa57e7a3f3c45591a5a2940
[ "MIT" ]
null
null
null
Acodemia/source/rendering/Displayable.cpp
jackflower/Acodemia
779d1ea76cf7c3841aa57e7a3f3c45591a5a2940
[ "MIT" ]
null
null
null
//////////////////////////////////////////////////////////// // // Acodemia Copyright (C) Jacek Kwiatek // e-mail: jackflower (at) poczta.onet.pl // acodemia.pl // // To oprogramowanie dostarczane jest w postaci takiej, // w jakiej jest, bez wyraźnych ani domniemanych gwarancji. // // W żadnym wypadku Autor nie ponosi...
24.718045
92
0.697034
[ "render", "vector" ]
e87f994d304339b248b4f5ba831b36da11102c48
15,497
cpp
C++
src/primitives/PrfOpenSSL.cpp
zpleefly/libscapi
27d7d964d645ed111c2cc9870087971cf13e24f4
[ "MIT" ]
null
null
null
src/primitives/PrfOpenSSL.cpp
zpleefly/libscapi
27d7d964d645ed111c2cc9870087971cf13e24f4
[ "MIT" ]
2
2021-03-20T05:38:48.000Z
2021-03-31T20:14:11.000Z
src/primitives/PrfOpenSSL.cpp
zpleefly/libscapi
27d7d964d645ed111c2cc9870087971cf13e24f4
[ "MIT" ]
null
null
null
/** * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% * * Copyright (c) 2016 LIBSCAPI (http://crypto.biu.ac.il/SCAPI) * This file is part of the SCAPI project. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Permission is hereby granted, free of charge, to any p...
38.645885
158
0.677615
[ "object", "vector" ]
e88179f73478d00715ce1af50f86f5607f9750d8
11,827
cpp
C++
DEM/run/normal/bub.cpp
plaveczlambert/nonlinearbubbledynamics
190c5170f7ff6068badeee818c01226c55aaec97
[ "MIT" ]
null
null
null
DEM/run/normal/bub.cpp
plaveczlambert/nonlinearbubbledynamics
190c5170f7ff6068badeee818c01226c55aaec97
[ "MIT" ]
null
null
null
DEM/run/normal/bub.cpp
plaveczlambert/nonlinearbubbledynamics
190c5170f7ff6068badeee818c01226c55aaec97
[ "MIT" ]
null
null
null
/*Deep Euler implementation of a sonochemical bubble model*/ #include <iostream> #include <fstream> #define _USE_MATH_DEFINES #include <cmath> #include <vector> #include <string> #include <chrono> #include <torch/script.h> #include <Eigen/Core> #include <boost/numeric/odeint.hpp> const double rho_L = 9...
29.202469
162
0.558637
[ "vector", "model" ]
e88225f8a9a4cc01004c06bc505d01577101409d
22,840
cpp
C++
src/terminal_renderer/TextRenderer.cpp
GoldsteinE/contour
a828b50b4024c692b3ff60dc38e0bdae36aac300
[ "Apache-2.0" ]
null
null
null
src/terminal_renderer/TextRenderer.cpp
GoldsteinE/contour
a828b50b4024c692b3ff60dc38e0bdae36aac300
[ "Apache-2.0" ]
null
null
null
src/terminal_renderer/TextRenderer.cpp
GoldsteinE/contour
a828b50b4024c692b3ff60dc38e0bdae36aac300
[ "Apache-2.0" ]
null
null
null
/** * This file is part of the "libterminal" project * Copyright (c) 2019-2020 Christian Parpart <christian@parpart.family> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * Unless required by applicable law or agreed to i...
34.658574
134
0.588967
[ "shape", "vector" ]
e8838d9342b2423da5a39a2cbc8e4d721fa9cca4
2,508
cpp
C++
src/MotionTrack.cpp
thomasmunoz13/surveillance
19aea0ca9d5e349dbc2c848376d1e3b048b6e420
[ "MIT" ]
null
null
null
src/MotionTrack.cpp
thomasmunoz13/surveillance
19aea0ca9d5e349dbc2c848376d1e3b048b6e420
[ "MIT" ]
4
2016-03-21T08:33:14.000Z
2016-03-21T08:55:43.000Z
src/MotionTrack.cpp
thomasmunoz13/surveillance
19aea0ca9d5e349dbc2c848376d1e3b048b6e420
[ "MIT" ]
5
2016-06-20T22:56:22.000Z
2021-03-06T16:39:11.000Z
/** * @author Thomas Munoz */ #include <chrono> #include <thread> #include "MotionTrack.h" MotionTrack::MotionTrack(Webcam webcam) : webcam(webcam) {} #if DEBUG == 1 void MotionTrack::drawContour(cv::Mat & frame, std::vector<std::vector<cv::Point>> contours) { // In this part we will assume that the la...
31.35
94
0.668262
[ "object", "vector" ]
e887b0784f82feb43c8b6e1521a9bc5002fe834e
5,720
cpp
C++
src/database/Database.cpp
graydon/stellar-core-old
b73f254ceb48a63250cb145166ff225606880211
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSL-1.0", "BSD-3-Clause" ]
null
null
null
src/database/Database.cpp
graydon/stellar-core-old
b73f254ceb48a63250cb145166ff225606880211
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSL-1.0", "BSD-3-Clause" ]
null
null
null
src/database/Database.cpp
graydon/stellar-core-old
b73f254ceb48a63250cb145166ff225606880211
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSL-1.0", "BSD-3-Clause" ]
null
null
null
// Copyright 2014 Stellar Development Foundation and contributors. Licensed // under the ISC License. See the COPYING file at the top-level directory of // this distribution or at http://opensource.org/licenses/ISC #include "database/Database.h" #include "generated/StellarXDR.h" #include "overlay/OverlayManager.h" #in...
24.869565
80
0.608392
[ "vector" ]
e88836009092f52abf8f21fdb86fede9ff228282
15,478
cpp
C++
src/crypto/mbedtls/key_pair.cpp
Perfumiste777/CCF
d3ef3e88b8997d7e1b033f687e45f0de17f26ce6
[ "Apache-2.0" ]
1
2021-05-10T10:10:24.000Z
2021-05-10T10:10:24.000Z
src/crypto/mbedtls/key_pair.cpp
Perfumiste777/CCF
d3ef3e88b8997d7e1b033f687e45f0de17f26ce6
[ "Apache-2.0" ]
null
null
null
src/crypto/mbedtls/key_pair.cpp
Perfumiste777/CCF
d3ef3e88b8997d7e1b033f687e45f0de17f26ce6
[ "Apache-2.0" ]
null
null
null
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the Apache 2.0 License. #include "key_pair.h" #include "curve.h" #include "ds/net.h" #include "entropy.h" #include "hash.h" #define FMT_HEADER_ONLY #include <fmt/format.h> #include <iomanip> #include <limits> #include <mbedtls/asn1write.h...
28.452206
80
0.642783
[ "vector" ]
e88954a136e9e6af539ee9cb3944efee339dcb14
2,682
cpp
C++
engine_base/DebugRenderer.cpp
Blubmin/intelligent_camera
0e9bf122f0f98681e4b5cdfb3ae6fa53ee5b7ce2
[ "Apache-2.0" ]
null
null
null
engine_base/DebugRenderer.cpp
Blubmin/intelligent_camera
0e9bf122f0f98681e4b5cdfb3ae6fa53ee5b7ce2
[ "Apache-2.0" ]
null
null
null
engine_base/DebugRenderer.cpp
Blubmin/intelligent_camera
0e9bf122f0f98681e4b5cdfb3ae6fa53ee5b7ce2
[ "Apache-2.0" ]
null
null
null
#include "DebugRenderer.h" #include <vector> #include <GL\glew.h> #include <GLFW\glfw3.h> #include <glm\glm.hpp> #include <glm\gtc\type_ptr.hpp> #include "Program.h" using namespace glm; using namespace std; DebugRenderer::DebugRenderer(GLuint texture, glm::vec2 pos, float scale) : IRenderer(0) { _prog = new P...
25.788462
89
0.675242
[ "vector" ]
e8938b133350b7b4002c3079b59cdfcad1983e3f
944,199
cpp
C++
tx40_service/tx40_service/soapC.cpp
minhncedutw/tx40-robot-service
70593cbe24ac9685f670887ad2d07c4097929d2b
[ "Apache-2.0" ]
1
2022-02-21T02:44:17.000Z
2022-02-21T02:44:17.000Z
Qt/soapC.cpp
minhncedutw/control_staubli_tx60
249b613032a2f48735b2da98f7056d9dd0980fff
[ "MIT" ]
null
null
null
Qt/soapC.cpp
minhncedutw/control_staubli_tx60
249b613032a2f48735b2da98f7056d9dd0980fff
[ "MIT" ]
null
null
null
/* soapC.cpp Generated by gSOAP 2.7.13 from cs8server.h Copyright(C) 2000-2009, Robert van Engelen, Genivia Inc. All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. */ #if defined(__BORLANDC_...
37.336352
368
0.733046
[ "object", "vector" ]
e8a020ead5dcab72b2cc97af473dbb8440e97d87
734
cpp
C++
jp.atcoder/abc228/abc228_d/27377060.cpp
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc228/abc228_d/27377060.cpp
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc228/abc228_d/27377060.cpp
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> int main() { using namespace std; int n = 1 << 20; int q; cin >> q; set<int> idx; for (int i = 0; i < n; i++) { idx.insert(i); } vector<long long> a(n, -1); while (q--) { int t; long long x; cin >> t >> x; if (t == 1) { auto i = ...
17.069767
44
0.388283
[ "vector" ]
e8a19b00ba46d45abdbcba3cfdcb686369d0fbd6
2,025
cpp
C++
src/hw2/third.cpp
hellen6654/PseudoRamdomNumberGenerator
7e5b575a9ed8e8414147a4a8b8b86cbb67b23b77
[ "MIT" ]
null
null
null
src/hw2/third.cpp
hellen6654/PseudoRamdomNumberGenerator
7e5b575a9ed8e8414147a4a8b8b86cbb67b23b77
[ "MIT" ]
null
null
null
src/hw2/third.cpp
hellen6654/PseudoRamdomNumberGenerator
7e5b575a9ed8e8414147a4a8b8b86cbb67b23b77
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <cmath> #include "../PseudoRamdomNumber.h" using namespace std; class point { private: double _x, _y; public: point(double x, double y) : _x(x), _y(y){}; double getX() { return _x; } double getY() { return _y; } double D() { // Distance fo...
28.521127
84
0.371852
[ "vector" ]
e8a2ecb2cfb78399f729debce664d3ce613ebf98
1,871
cpp
C++
Engine/source/EtMath/Geometry.cpp
NeroBurner/ETEngine
3fe039ff65cd1355957bcfce3f851fa411a86d94
[ "MIT" ]
null
null
null
Engine/source/EtMath/Geometry.cpp
NeroBurner/ETEngine
3fe039ff65cd1355957bcfce3f851fa411a86d94
[ "MIT" ]
null
null
null
Engine/source/EtMath/Geometry.cpp
NeroBurner/ETEngine
3fe039ff65cd1355957bcfce3f851fa411a86d94
[ "MIT" ]
null
null
null
#pragma once #include "Geometry.h" //------------------------ // GetIcosahedronPositions // // Vertices for an icosahedron // std::vector<vec3> GetIcosahedronPositions(float size) { float ratio = (1.f + sqrt(5.f)) / 2.f; float scale = size / etm::length(vec2(ratio, 1.f)); ratio *= scale; std::vector<vec3> ico; /...
17.165138
75
0.55318
[ "geometry", "vector" ]
e8adeb3100f2364c4f73b28f7ca5d1017de3a9d5
51,062
cc
C++
components/tflite/tensorflow/lite/micro/kernels/svdf_test.cc
HuakeZhBo/bl_mcu_sdk
a6a7f077e5dd535419d1741e4c2f5215eebb699d
[ "Apache-2.0" ]
93
2021-04-27T07:34:49.000Z
2022-03-22T08:43:44.000Z
components/tflite/tensorflow/lite/micro/kernels/svdf_test.cc
zeroherolin/bl_mcu_sdk
97760e3633d7ce0f435be1d98e7c9e8c46bfaca7
[ "Apache-2.0" ]
18
2021-05-23T14:10:12.000Z
2022-03-30T09:18:39.000Z
components/tflite/tensorflow/lite/micro/kernels/svdf_test.cc
zeroherolin/bl_mcu_sdk
97760e3633d7ce0f435be1d98e7c9e8c46bfaca7
[ "Apache-2.0" ]
33
2021-04-27T07:46:50.000Z
2022-02-27T05:45:19.000Z
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
51.577778
86
0.660902
[ "shape" ]
e8af66972f408b4f845f1df3f32dd0ee6b40c944
2,910
cpp
C++
Ares/src/Ares/ImGui/ImGuiLayer.cpp
tiredamage42/Ares
75b13441f7f18a402f7b8f4e869319d3ca3146cc
[ "Apache-2.0" ]
null
null
null
Ares/src/Ares/ImGui/ImGuiLayer.cpp
tiredamage42/Ares
75b13441f7f18a402f7b8f4e869319d3ca3146cc
[ "Apache-2.0" ]
null
null
null
Ares/src/Ares/ImGui/ImGuiLayer.cpp
tiredamage42/Ares
75b13441f7f18a402f7b8f4e869319d3ca3146cc
[ "Apache-2.0" ]
null
null
null
#include "AresPCH.h" #include "Ares/ImGui/ImGuiLayer.h" #include <imgui.h> #include "ImGuizmo.h" //#define IMGUI_IMPL_API #include <examples/imgui_impl_glfw.h> #include <examples/imgui_impl_opengl3.h> #include "Ares/Core/Application.h" // Temporary #include <GLFW/glfw3.h> #include <glad/glad.h> // Temporary namesp...
24.871795
99
0.724055
[ "render" ]
e8b4e83e404007c61343c707e917d5c2aa3fe297
1,482
cpp
C++
ShortestPath.cpp
woodfrog/FibonacciHeap
afa163aeb7592d90e8117d3002615a0f58c320ca
[ "MIT" ]
11
2018-10-16T07:41:20.000Z
2022-01-03T19:54:09.000Z
ShortestPath.cpp
woodfrog/FibonacciHeap
afa163aeb7592d90e8117d3002615a0f58c320ca
[ "MIT" ]
null
null
null
ShortestPath.cpp
woodfrog/FibonacciHeap
afa163aeb7592d90e8117d3002615a0f58c320ca
[ "MIT" ]
7
2018-03-24T23:48:10.000Z
2021-11-18T06:42:37.000Z
#include <stdio.h> #include <stdlib.h> #include <vector> #include <iostream> #include "FibHeap.h" using namespace fib_heap; using namespace std; #define INFI 1e9 typedef int Vertex; /* vertices are numbered from 0 to MaxVertexNum-1 */ typedef int WeightType; int main() { ios::sync_with_stdio(false); cin....
20.027027
91
0.609312
[ "vector" ]
e8b4f4cdcf4e0cc22e666312310358da72bf89ce
2,478
cpp
C++
GenTest/src/modules/util/Util.cpp
ZwFink/deepstate
fbbecae988fec0519cf56e4f1b341dc6dcac587e
[ "Apache-2.0" ]
null
null
null
GenTest/src/modules/util/Util.cpp
ZwFink/deepstate
fbbecae988fec0519cf56e4f1b341dc6dcac587e
[ "Apache-2.0" ]
null
null
null
GenTest/src/modules/util/Util.cpp
ZwFink/deepstate
fbbecae988fec0519cf56e4f1b341dc6dcac587e
[ "Apache-2.0" ]
1
2020-03-09T22:15:33.000Z
2020-03-09T22:15:33.000Z
// Program Information ////////////////////////////////////////////// /** * @file Util.cpp * * @team GenTest ( Team 22 ) * * @brief Utility classes/functions go here * * @details This file will contain utility functions or classes that dont necessarily have * another location to be. * * @ve...
22.527273
97
0.544391
[ "vector" ]
e8bed3e0110ea2f4f9d541d122918aba8ffbbcbe
1,096
hpp
C++
src/widgets/wxFrame.hpp
kusti8/node-wx-napi
00cf7560bfcb1dcf5680f8030e775f8e7dc1cf08
[ "MIT" ]
3
2020-02-21T04:47:15.000Z
2020-09-24T23:36:35.000Z
src/widgets/wxFrame.hpp
kusti8/node-wx-napi
00cf7560bfcb1dcf5680f8030e775f8e7dc1cf08
[ "MIT" ]
2
2021-09-02T04:49:58.000Z
2022-01-22T10:11:29.000Z
src/widgets/wxFrame.hpp
kusti8/node-wx-napi
00cf7560bfcb1dcf5680f8030e775f8e7dc1cf08
[ "MIT" ]
1
2021-06-28T06:35:40.000Z
2021-06-28T06:35:40.000Z
#ifndef WXFRAME_H #define WXFRAME_H #include <wx/wx.h> #include <wx/frame.h> #include <wx/window.h> #include <napi.h> #include "wxWindow_macros.hpp" #include "../utils/unwrapper.hpp" class WxFrame; class WxWrapFrame : public wxFrame { public: WxWrapFrame(wxWindow *parent, int width, int height); WxFrame *jsFra...
22.833333
66
0.719891
[ "object" ]
e8d1030805bb12c9ea50fa75b5ab22b189a874fe
488
hpp
C++
misc/coord_compression.hpp
prince776/CodeBook
874fc7f94011ad1d25a55bcd91fecd2a11eb5a9b
[ "CC0-1.0" ]
17
2021-01-25T12:07:17.000Z
2022-02-26T17:20:31.000Z
misc/coord_compression.hpp
NavneelSinghal/CodeBook
ff60ace9107dd19ef8ba81e175003f567d2a9070
[ "CC0-1.0" ]
null
null
null
misc/coord_compression.hpp
NavneelSinghal/CodeBook
ff60ace9107dd19ef8ba81e175003f567d2a9070
[ "CC0-1.0" ]
4
2021-02-28T11:13:44.000Z
2021-11-20T12:56:20.000Z
template <class T> auto compress(const vector<T>& a) { int n = int(size(a)); vector<pair<T, int>> p(n); #pragma GCC ivdep for (int i = 0; i < n; ++i) p[i] = {a[i], i}; sort(begin(p), end(p)); vector<int> compressed(n); vector<T> vals; for (int k = 0, rnk = -1; k < n; ++k) { if (k == ...
28.705882
50
0.514344
[ "vector" ]
e8e0a74cabf7980155c57d5f884b4d18c8420d00
9,037
cc
C++
aimsgui/src/aimsqtformats/plugin/qtformatsplugin.cc
brainvisa/aims-free
5852c1164292cadefc97cecace022d14ab362dc4
[ "CECILL-B" ]
4
2019-07-09T05:34:10.000Z
2020-10-16T00:03:15.000Z
aimsgui/src/aimsqtformats/plugin/qtformatsplugin.cc
brainvisa/aims-free
5852c1164292cadefc97cecace022d14ab362dc4
[ "CECILL-B" ]
72
2018-10-31T14:52:50.000Z
2022-03-04T11:22:51.000Z
aimsgui/src/aimsqtformats/plugin/qtformatsplugin.cc
brainvisa/aims-free
5852c1164292cadefc97cecace022d14ab362dc4
[ "CECILL-B" ]
null
null
null
/* This software and supporting documentation are distributed by * Institut Federatif de Recherche 49 * CEA/NeuroSpin, Batiment 145, * 91191 Gif-sur-Yvette cedex * France * * This software is governed by the CeCILL license version 2 under * French law and abiding by the rules of distribution of f...
34.757692
81
0.638044
[ "vector" ]
e8e1a24133944ff0f825c802ebb577528e15d818
12,051
cpp
C++
src/savers/tvg/tvgTvgSaver.cpp
patrykka/thorvg
dc7bb0deed9d930cf96041a343788a8ae620aca7
[ "MIT" ]
null
null
null
src/savers/tvg/tvgTvgSaver.cpp
patrykka/thorvg
dc7bb0deed9d930cf96041a343788a8ae620aca7
[ "MIT" ]
null
null
null
src/savers/tvg/tvgTvgSaver.cpp
patrykka/thorvg
dc7bb0deed9d930cf96041a343788a8ae620aca7
[ "MIT" ]
null
null
null
/* * Copyright (c) 2021 Samsung Electronics Co., Ltd. All rights reserved. * 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 *...
26.140998
98
0.636711
[ "shape", "vector", "transform" ]
e8e75cd289f36dccbcb773d82a614e7edac36b13
529
cpp
C++
src/AdventOfCode2019/Day09-SensorBoost/Day09-SensorBoost.cpp
dbartok/advent-of-code-cpp
c8c2df7a21980f8f3e42128f7bc5df8288f18490
[ "MIT" ]
null
null
null
src/AdventOfCode2019/Day09-SensorBoost/Day09-SensorBoost.cpp
dbartok/advent-of-code-cpp
c8c2df7a21980f8f3e42128f7bc5df8288f18490
[ "MIT" ]
null
null
null
src/AdventOfCode2019/Day09-SensorBoost/Day09-SensorBoost.cpp
dbartok/advent-of-code-cpp
c8c2df7a21980f8f3e42128f7bc5df8288f18490
[ "MIT" ]
null
null
null
#include "Day09-SensorBoost.h" #include <AdventOfCodeCommon/DisableLibraryWarningsMacros.h> __BEGIN_LIBRARIES_DISABLE_WARNINGS __END_LIBRARIES_DISABLE_WARNINGS namespace AdventOfCode { namespace Year2019 { namespace Day09 { using AdventOfCode::Year2019::Day05::IntcodeInterpreter; std::vector<IntcodeNumberType> boo...
17.633333
116
0.79206
[ "vector" ]
e8ec9836ed419c39d25bc75e433da07d18eb8c31
1,565
cpp
C++
test/test_rays.cpp
RainerBlessing/TheRayTracerChallenge-C-
22c990201507f46d5bb1604bc1f6ee88e59cef95
[ "MIT" ]
null
null
null
test/test_rays.cpp
RainerBlessing/TheRayTracerChallenge-C-
22c990201507f46d5bb1604bc1f6ee88e59cef95
[ "MIT" ]
null
null
null
test/test_rays.cpp
RainerBlessing/TheRayTracerChallenge-C-
22c990201507f46d5bb1604bc1f6ee88e59cef95
[ "MIT" ]
null
null
null
#ifdef STAND_ALONE # define BOOST_TEST_MODULE RayTracerChallengeTests #endif #include <boost/test/unit_test.hpp> #include <iostream> #include <shared/Point.h> #include <shared/Ray.h> #include <shared/Output.h> #include <shared/Position.h> #include <shared/Scaling.h> BOOST_AUTO_TEST_SUITE(rays_suite) BOOST_AUTO...
25.241935
66
0.654313
[ "vector", "transform" ]
e8ee6c4b9519da7d6d084e8b4a26390921209794
1,301
cc
C++
bin/debugserver/stop_reply_packet_unittest.cc
PowerOlive/garnet
16b5b38b765195699f41ccb6684cc58dd3512793
[ "BSD-3-Clause" ]
1
2019-10-09T10:50:57.000Z
2019-10-09T10:50:57.000Z
bin/debugserver/stop_reply_packet_unittest.cc
PowerOlive/garnet
16b5b38b765195699f41ccb6684cc58dd3512793
[ "BSD-3-Clause" ]
5
2020-09-06T09:02:06.000Z
2022-03-02T04:44:22.000Z
garnet/bin/debugserver/stop_reply_packet_unittest.cc
ZVNexus/fuchsia
c5610ad15208208c98693618a79c705af935270c
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2016 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 "stop_reply_packet.h" #include "gtest/gtest.h" namespace debugserver { namespace { void ExpectPacketEquals(const std::vector<char>& packet, ...
28.911111
75
0.72867
[ "vector" ]
e8ef8e4a45656b6caa447ba057f08f895eded6e5
284
cpp
C++
STL/reverse_sort/vectorreverse.cpp
siddhantdixit/CP
4090df581e666a0053c282a3c386c346cfb1b85f
[ "MIT" ]
null
null
null
STL/reverse_sort/vectorreverse.cpp
siddhantdixit/CP
4090df581e666a0053c282a3c386c346cfb1b85f
[ "MIT" ]
null
null
null
STL/reverse_sort/vectorreverse.cpp
siddhantdixit/CP
4090df581e666a0053c282a3c386c346cfb1b85f
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> #define MOD 1000000007 typedef long long LL; using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); vector<int> x{5,6,7,2,3,4}; sort(x.rbegin(),x.rend()); for(int i:x) cout<<i<<" "; return 0; }
17.75
32
0.584507
[ "vector" ]
e8fe628406caff462c53dade0cbb9558c82ae536
4,466
cpp
C++
src/AstPrinter.cpp
ehedbor/ferrit
efac98a6233c9f38afacf3c24c1ca83cc996b1c2
[ "MIT" ]
null
null
null
src/AstPrinter.cpp
ehedbor/ferrit
efac98a6233c9f38afacf3c24c1ca83cc996b1c2
[ "MIT" ]
null
null
null
src/AstPrinter.cpp
ehedbor/ferrit
efac98a6233c9f38afacf3c24c1ca83cc996b1c2
[ "MIT" ]
null
null
null
#include "AstPrinter.h" #include <format> namespace ferrit { AstPrinter::AstPrinter(std::ostream &out) noexcept : m_out(&out) { } void AstPrinter::print(const std::vector<StatementPtr> &program) { for (const auto &declaration : program) { declaration->accept(*this); } } ...
31.013889
98
0.510748
[ "vector" ]
3300464037c69d85ef055edb29f69a48b2208a21
1,471
cpp
C++
src/entity/target.cpp
reid-moffat/battleship
88228d0e003708d552924b3c2d83c1c9b8e3ca13
[ "MIT" ]
1
2021-12-16T01:12:12.000Z
2021-12-16T01:12:12.000Z
src/entity/target.cpp
reid-moffat/battleship
88228d0e003708d552924b3c2d83c1c9b8e3ca13
[ "MIT" ]
11
2021-12-16T01:53:24.000Z
2022-02-09T04:19:05.000Z
src/entity/target.cpp
reid-moffat/battleship
88228d0e003708d552924b3c2d83c1c9b8e3ca13
[ "MIT" ]
null
null
null
/** * Target class implementation */ #include "target.hpp" #include "../helpers/helperFunctions.hpp" using entity::Target; std::unique_ptr<sf::Texture> Target::idleTexture = std::unique_ptr<sf::Texture>(); std::unique_ptr<sf::Texture> Target::activeTexture = std::unique_ptr<sf::Texture>(); void entity::Target::in...
29.42
91
0.703603
[ "render" ]