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
b536dda31e5e83e803ef52be20ab2ad61f31ddfc
1,035
cpp
C++
Days 241 - 250/Day 245/MinJumpsAcrossArray.cpp
LucidSigma/Daily-Coding-Problems
21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a
[ "MIT" ]
null
null
null
Days 241 - 250/Day 245/MinJumpsAcrossArray.cpp
LucidSigma/Daily-Coding-Problems
21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a
[ "MIT" ]
null
null
null
Days 241 - 250/Day 245/MinJumpsAcrossArray.cpp
LucidSigma/Daily-Coding-Problems
21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a
[ "MIT" ]
null
null
null
#include <algorithm> #include <cstddef> #include <cstdlib> #include <iostream> #include <limits> #include <vector> unsigned int GetMinNumberOfJumpsHelper(const std::vector<unsigned int>& steps, const size_t currentIndex, const unsigned int currentJumpCount) { if (currentIndex >= steps.size() - 1) { return currentJ...
24.069767
142
0.711111
[ "vector" ]
b53ea03019730c359ec2f889a078e3504a09abce
4,020
cpp
C++
Alfred/src/HttpClientTransactions.cpp
rhymu8354/Alfred
225c16ed578ebc8221021a8a164c52d17f89fdf7
[ "MIT" ]
null
null
null
Alfred/src/HttpClientTransactions.cpp
rhymu8354/Alfred
225c16ed578ebc8221021a8a164c52d17f89fdf7
[ "MIT" ]
null
null
null
Alfred/src/HttpClientTransactions.cpp
rhymu8354/Alfred
225c16ed578ebc8221021a8a164c52d17f89fdf7
[ "MIT" ]
null
null
null
/** * @file HttpClientTransactions.cpp * * This module contains the implementation of the HttpClientTransactions class * which uses an Http::Client object to create and complete request-response * transactions. */ #include "HttpClientTransactions.hpp" #include <memory> #include <mutex> #include <unordered_set> ...
29.558824
106
0.649502
[ "object" ]
b5425f02862f80637d822ca14dce5769c777c94c
2,943
cpp
C++
VUEImporter/Source/ThirdParty/EarClipper/EarClipperWrapper/EarClipperWrapper.cpp
LeGone/Konzeption-und-Realisierung-eines-Plugins-f-r-die-Aufbereitung-von-CAD-Daten-zur-Nutzung-in-einer-GE
a631cd43850b1f3c11f29fbb67279da7a8fe4f90
[ "MIT" ]
null
null
null
VUEImporter/Source/ThirdParty/EarClipper/EarClipperWrapper/EarClipperWrapper.cpp
LeGone/Konzeption-und-Realisierung-eines-Plugins-f-r-die-Aufbereitung-von-CAD-Daten-zur-Nutzung-in-einer-GE
a631cd43850b1f3c11f29fbb67279da7a8fe4f90
[ "MIT" ]
null
null
null
VUEImporter/Source/ThirdParty/EarClipper/EarClipperWrapper/EarClipperWrapper.cpp
LeGone/Konzeption-und-Realisierung-eines-Plugins-f-r-die-Aufbereitung-von-CAD-Daten-zur-Nutzung-in-einer-GE
a631cd43850b1f3c11f29fbb67279da7a8fe4f90
[ "MIT" ]
1
2019-10-31T11:56:59.000Z
2019-10-31T11:56:59.000Z
#include "stdafx.h" #define WRAPPER_EXPORTS #include "EarClipperWrapper.hpp" #include <msclr/marshal.h> using namespace msclr::interop; #include <strsafe.h> #include <vcclr.h> using namespace System; using namespace System::Runtime::InteropServices; namespace EarClipperW { System::Reflection::Assembly^ currentDom...
28.298077
205
0.729867
[ "object" ]
b5489c4b0ceb95ed4b64947e9edafad1e81a821f
1,968
hpp
C++
src/aardvark/spi.hpp
embvm-drivers/aardvark
b0520e70721330d7b74943918a4e8ada944e0523
[ "MIT" ]
1
2021-03-05T10:04:18.000Z
2021-03-05T10:04:18.000Z
src/aardvark/spi.hpp
embvm-drivers/aardvark
b0520e70721330d7b74943918a4e8ada944e0523
[ "MIT" ]
null
null
null
src/aardvark/spi.hpp
embvm-drivers/aardvark
b0520e70721330d7b74943918a4e8ada944e0523
[ "MIT" ]
null
null
null
// Copyright 2020 Embedded Artistry LLC // SPDX-License-Identifier: MIT #ifndef AARDVARK_SPI_DRIVER_HPP_ #define AARDVARK_SPI_DRIVER_HPP_ #include "base.hpp" #include <active_object/active_object.hpp> #include <cstdint> #include <driver/spi.hpp> namespace embdrv { /** Create an Aardvark SPI Master Driver * * This ...
29.373134
97
0.746951
[ "object" ]
b557941a90488dd1b9df396f8a38e056de6019d8
902
cpp
C++
Algorithms/200.Number-of-Islands/solution.cpp
moranzcw/LeetCode_Solutions
49a7e33b83d8d9ce449c758717f74a69e72f808e
[ "MIT" ]
178
2017-07-09T23:13:11.000Z
2022-02-26T13:35:06.000Z
Algorithms/200.Number-of-Islands/solution.cpp
cfhyxxj/LeetCode-NOTES
455d33aae54d065635d28ebf37f815dc4ace7e63
[ "MIT" ]
1
2020-10-10T16:38:03.000Z
2020-10-10T16:38:03.000Z
Algorithms/200.Number-of-Islands/solution.cpp
cfhyxxj/LeetCode-NOTES
455d33aae54d065635d28ebf37f815dc4ace7e63
[ "MIT" ]
82
2017-08-19T07:14:39.000Z
2022-02-17T14:07:55.000Z
class Solution { public: void dfs(vector<vector<char>> &grid, int x, int y) { if (x < 0 || x >= grid.size()) return; if (y < 0 || y >= grid[0].size()) return; if (grid[x][y] != '1') return; grid[x][y] = 'X'; dfs(grid, x + 1, y); ...
23.736842
55
0.329268
[ "vector" ]
b55f8c494806d3ba0c07fb60955afee507b6f430
2,920
cpp
C++
Problems/HackerRank/quicksort1/main.cpp
grand87/timus
8edcae276ab74b68fff18da3722460f492534a8a
[ "MIT" ]
null
null
null
Problems/HackerRank/quicksort1/main.cpp
grand87/timus
8edcae276ab74b68fff18da3722460f492534a8a
[ "MIT" ]
1
2019-05-09T19:17:00.000Z
2019-05-09T19:17:00.000Z
Problems/HackerRank/quicksort1/main.cpp
grand87/timus
8edcae276ab74b68fff18da3722460f492534a8a
[ "MIT" ]
null
null
null
#include <vector> #include <iostream> #include <stdio.h> #include <string> #include <algorithm> #include <chrono> using namespace std; vector<string> split_string(string); // Complete the quickSort function below. vector<int> quickSort(vector<int> arr) { const int pivot = arr[0]; int smallerFromTheEnd = arr....
23.739837
114
0.532877
[ "vector" ]
b5662fda5567edc6002bc27f86f8db1b81d815cd
6,877
cpp
C++
src/netcdf_writer.cpp
landreman/qsc
1b91dea34bc2981177f3ac2270057bd23135e4b1
[ "BSD-2-Clause" ]
1
2021-09-22T11:03:21.000Z
2021-09-22T11:03:21.000Z
src/netcdf_writer.cpp
landreman/qsc
1b91dea34bc2981177f3ac2270057bd23135e4b1
[ "BSD-2-Clause" ]
null
null
null
src/netcdf_writer.cpp
landreman/qsc
1b91dea34bc2981177f3ac2270057bd23135e4b1
[ "BSD-2-Clause" ]
null
null
null
#include <vector> #include <valarray> #include <algorithm> #include <stdexcept> #include <iomanip> #include <sstream> #include <netcdf.h> #include "qsc.hpp" #include "netcdf_writer.hpp" using namespace qsc; qsc::NetCDFWriter::NetCDFWriter(std::string filename, bool append) { int retval; if (append) { // Add t...
32.747619
138
0.669187
[ "vector" ]
b566c787328a22ffae83f526e24adac0c2cf2e54
10,300
cpp
C++
QtPropertySerializer.cpp
QtDemo/QtPropertySerializer
15efdb628c08cfa259fa866955c25302c866ecab
[ "MIT" ]
1
2018-11-14T07:32:04.000Z
2018-11-14T07:32:04.000Z
QtPropertySerializer.cpp
QtDemo/QtPropertySerializer
15efdb628c08cfa259fa866955c25302c866ecab
[ "MIT" ]
null
null
null
QtPropertySerializer.cpp
QtDemo/QtPropertySerializer
15efdb628c08cfa259fa866955c25302c866ecab
[ "MIT" ]
null
null
null
/* -------------------------------------------------------------------------------- * Author: Marcel Paz Goldschen-Ohm * Email: marcel.goldschen@gmail.com * -------------------------------------------------------------------------------- */ #include "QtPropertySerializer.h" #include <QFile> #include <QJsonDocument...
47.465438
142
0.503981
[ "object" ]
b56b6b93e36a3b79a4fe5f343b97d4fb407fd3c6
3,074
cpp
C++
Server-Client/LinearPrediction.cpp
matzar/SFML-Networking
2623ae7c38ada2dfcbbdf725345222e58a86336b
[ "MIT" ]
null
null
null
Server-Client/LinearPrediction.cpp
matzar/SFML-Networking
2623ae7c38ada2dfcbbdf725345222e58a86336b
[ "MIT" ]
null
null
null
Server-Client/LinearPrediction.cpp
matzar/SFML-Networking
2623ae7c38ada2dfcbbdf725345222e58a86336b
[ "MIT" ]
null
null
null
#include "LinearPrediction.h" LinearPrediction::LinearPrediction() {} LinearPrediction::~LinearPrediction() {} void LinearPrediction::keepTrackOfLinearLocalPositoins(const Message& local_message) { if (local_message_history.size() >= linear_message_number) local_message_history.pop(); local_message_history.push(lo...
35.333333
129
0.783344
[ "model" ]
b56b96ed15d1bf2f3dc97d2d08d4b7b2c4b40de4
1,181
cc
C++
src/dialog.cc
baptisteesteban/OpenGL-Project-V2
e18fca7468c12c0fde77e56e7ce16ebae02833db
[ "MIT" ]
null
null
null
src/dialog.cc
baptisteesteban/OpenGL-Project-V2
e18fca7468c12c0fde77e56e7ce16ebae02833db
[ "MIT" ]
null
null
null
src/dialog.cc
baptisteesteban/OpenGL-Project-V2
e18fca7468c12c0fde77e56e7ce16ebae02833db
[ "MIT" ]
null
null
null
#include <dialog.hh> #include <iostream> Dialog::Dialog(SDL_GLContext context, SDL_Window* window) : window_(window) { IMGUI_CHECKVERSION(); ImGui::CreateContext(); ImGui_ImplSDL2_InitForOpenGL(window, context); ImGui_ImplOpenGL3_Init("#version 130"); ImGui_ImplOpenGL3_NewFrame(); ImGui_ImplSDL2_NewFram...
28.804878
74
0.666384
[ "render" ]
b577a80ddda13940ce752405e548c90b3c885a3b
7,205
cpp
C++
src/chunk_system.cpp
olekolek1000/multipixel
74760f92c6d9cf2be5f05cebc5b10780136f2662
[ "BSD-3-Clause" ]
4
2022-02-07T09:57:58.000Z
2022-02-27T23:03:07.000Z
src/chunk_system.cpp
olekolek1000/multipixel
74760f92c6d9cf2be5f05cebc5b10780136f2662
[ "BSD-3-Clause" ]
null
null
null
src/chunk_system.cpp
olekolek1000/multipixel
74760f92c6d9cf2be5f05cebc5b10780136f2662
[ "BSD-3-Clause" ]
null
null
null
#include "chunk_system.hpp" #include "chunk.hpp" #include "room.hpp" #include "server.hpp" #include "session.hpp" #include "util/timestep.hpp" #include "util/types.hpp" #include <cassert> #include <mutex> #include <thread> #include <vector> static const char *LOG_CHUNK = "ChunkSystem"; ChunkSystem::ChunkSystem(Room *...
24.09699
145
0.69424
[ "vector" ]
b5835af55c79bf59c43e008540fab31f40e15be8
12,969
cpp
C++
artifact/storm/src/test/storm/solver/FullySymbolicGameSolverTest.cpp
glatteis/tacas21-artifact
30b4f522bd3bdb4bebccbfae93f19851084a3db5
[ "MIT" ]
null
null
null
artifact/storm/src/test/storm/solver/FullySymbolicGameSolverTest.cpp
glatteis/tacas21-artifact
30b4f522bd3bdb4bebccbfae93f19851084a3db5
[ "MIT" ]
null
null
null
artifact/storm/src/test/storm/solver/FullySymbolicGameSolverTest.cpp
glatteis/tacas21-artifact
30b4f522bd3bdb4bebccbfae93f19851084a3db5
[ "MIT" ]
1
2022-02-05T12:39:53.000Z
2022-02-05T12:39:53.000Z
#include "test/storm_gtest.h" #include "storm-config.h" #include "storm/storage/dd/DdManager.h" #include "storm/utility/solver.h" #include "storm/settings/SettingsManager.h" #include "storm/environment/Environment.h" #include "storm/solver/SymbolicGameSolver.h" #include "storm/settings/modules/NativeEquationSolverSet...
90.0625
342
0.729355
[ "vector" ]
b5843459860b6d8d12385666f7a686b6096283a8
2,366
hpp
C++
src/efscape/impl/RunSim.hpp
clinejc/efscape
ef8bbf272827c7b364aa02af33dc5d239f070e0b
[ "0BSD" ]
1
2019-07-29T07:44:13.000Z
2019-07-29T07:44:13.000Z
src/efscape/impl/RunSim.hpp
clinejc/efscape
ef8bbf272827c7b364aa02af33dc5d239f070e0b
[ "0BSD" ]
null
null
null
src/efscape/impl/RunSim.hpp
clinejc/efscape
ef8bbf272827c7b364aa02af33dc5d239f070e0b
[ "0BSD" ]
1
2019-07-11T10:49:48.000Z
2019-07-11T10:49:48.000Z
// __COPYRIGHT_START__ // Package Name : efscape // File Name : RunSim.hpp // Copyright (C) 2006-2018 Jon C. Cline // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appe...
31.546667
158
0.693576
[ "model" ]
b588e8f9306faf58dfdd5f1951808ba4801398e0
12,207
cpp
C++
indra/newview/llpanelmediasettingssecurity.cpp
humbletim/archived-casviewer
3b51b1baae7e7cebf1c7dca62d9c02751709ee57
[ "Unlicense" ]
1
2022-01-29T07:10:03.000Z
2022-01-29T07:10:03.000Z
indra/newview/llpanelmediasettingssecurity.cpp
bloomsirenix/Firestorm-manikineko
67e1bb03b2d05ab16ab98097870094a8cc9de2e7
[ "Unlicense" ]
null
null
null
indra/newview/llpanelmediasettingssecurity.cpp
bloomsirenix/Firestorm-manikineko
67e1bb03b2d05ab16ab98097870094a8cc9de2e7
[ "Unlicense" ]
1
2021-10-01T22:22:27.000Z
2021-10-01T22:22:27.000Z
/** * @file llpanelmediasettingssecurity.cpp * @brief LLPanelMediaSettingsSecurity class implementation * * $LicenseInfo:firstyear=2009&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...
34.193277
116
0.646269
[ "vector" ]
b59a22935aefba1451127db9d6f9e42c67a8e4eb
12,286
cc
C++
mysql-server/sql/dd/impl/types/parameter_impl.cc
silenc3502/MYSQL-Arch-Doc-Summary
fcc6bb65f72a385b9f56debc9b2c00cee5914bae
[ "MIT" ]
null
null
null
mysql-server/sql/dd/impl/types/parameter_impl.cc
silenc3502/MYSQL-Arch-Doc-Summary
fcc6bb65f72a385b9f56debc9b2c00cee5914bae
[ "MIT" ]
null
null
null
mysql-server/sql/dd/impl/types/parameter_impl.cc
silenc3502/MYSQL-Arch-Doc-Summary
fcc6bb65f72a385b9f56debc9b2c00cee5914bae
[ "MIT" ]
null
null
null
/* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certai...
38.39375
90
0.631288
[ "object" ]
b59b172ccf00efba663b91f03e7ff326e419812e
2,189
cpp
C++
third party/openRTMFP-Cumulus/CumulusLib/sources/FlowGroup.cpp
Patrick-Bay/SocialCastr
888a57ca63037e566f6c0bf03a646ae91b484086
[ "MIT" ]
5
2015-04-30T09:08:30.000Z
2018-08-13T05:00:39.000Z
third party/openRTMFP-Cumulus/CumulusLib/sources/FlowGroup.cpp
Patrick-Bay/SocialCastr
888a57ca63037e566f6c0bf03a646ae91b484086
[ "MIT" ]
null
null
null
third party/openRTMFP-Cumulus/CumulusLib/sources/FlowGroup.cpp
Patrick-Bay/SocialCastr
888a57ca63037e566f6c0bf03a646ae91b484086
[ "MIT" ]
null
null
null
/* Copyright 2010 OpenRTMFP This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in...
26.373494
137
0.687529
[ "vector" ]
b5a30dd246b4001f569d044e730b89d6644c51b7
3,984
cc
C++
Code/Components/Services/ingest/current/ingestpipeline/phasetracktask/ParallelPhaseApplicator.cc
steve-ord/askapsoft
21b9df1b393b973ec312591efad7ee2b8c974811
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
1
2020-06-18T08:37:43.000Z
2020-06-18T08:37:43.000Z
Code/Components/Services/ingest/current/ingestpipeline/phasetracktask/ParallelPhaseApplicator.cc
ATNF/askapsoft
d839c052d5c62ad8a511e58cd4b6548491a6006f
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
Code/Components/Services/ingest/current/ingestpipeline/phasetracktask/ParallelPhaseApplicator.cc
ATNF/askapsoft
d839c052d5c62ad8a511e58cd4b6548491a6006f
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
/// @file ParallelPhaseApplicator.cc /// /// @copyright (c) 2010 CSIRO /// Australia Telescope National Facility (ATNF) /// Commonwealth Scientific and Industrial Research Organisation (CSIRO) /// PO Box 76, Epping NSW 1710, Australia /// atnf-enquiries@csiro.au /// /// This file is part of the ASKAP software distribut...
36.218182
146
0.67495
[ "shape", "vector" ]
b5a3ecbdbecbdd6c18cdc3a8a65060f5215914b7
1,361
cpp
C++
src/Dron/Animations/CollectAnimation.cpp
Dobiasd/Dron
be1fe06e47ad5e40f97d2e683ed8033f4edb11e8
[ "MIT" ]
null
null
null
src/Dron/Animations/CollectAnimation.cpp
Dobiasd/Dron
be1fe06e47ad5e40f97d2e683ed8033f4edb11e8
[ "MIT" ]
null
null
null
src/Dron/Animations/CollectAnimation.cpp
Dobiasd/Dron
be1fe06e47ad5e40f97d2e683ed8033f4edb11e8
[ "MIT" ]
null
null
null
#include "../World.h" #include "CollectAnimation.h" #include "../GameStates/PlayView.h" namespace Dron { CollectAnimation::CollectAnimation(const sf::Color& color, const World::Position& position, const std::string& text) : color_(color), position_(position), elapsedTimeSum_(0.f), text_(text) { } void CollectAnim...
29.586957
118
0.734019
[ "vector" ]
b27563726a3958be37e90006ae6da4dc0746fb57
18,293
hpp
C++
tests/hot/rowex-test/include/hot/rowex/ConcurrentTestHelper.hpp
yishayahu/hot
579e225ba5f9b1e5cda0cd282121f4202406f245
[ "0BSD" ]
99
2018-03-23T11:08:48.000Z
2022-03-03T10:03:35.000Z
tests/hot/rowex-test/include/hot/rowex/ConcurrentTestHelper.hpp
SheldonZhong/hot
ec29331ecb4b0d5381b90d5b45ce2319b7cfeff0
[ "ISC" ]
3
2018-12-18T19:00:04.000Z
2021-09-07T13:05:36.000Z
tests/hot/rowex-test/include/hot/rowex/ConcurrentTestHelper.hpp
SheldonZhong/hot
ec29331ecb4b0d5381b90d5b45ce2319b7cfeff0
[ "ISC" ]
29
2018-06-03T07:56:35.000Z
2022-03-04T07:31:50.000Z
#ifndef __HOT__CONCURRENT_TEST_HELPER__ #define __HOT__CONCURRENT_TEST_HELPER__ #include <thread> #include <atomic> #include <vector> #include <memory> #include <utility> #include <sstream> #include <tbb/tbb_allocator.h> // zero_allocator defined here #include <tbb/concurrent_vector.h> #include <tbb/parallel_for.h> #...
38.269874
244
0.731318
[ "vector" ]
b2794b81175e150bb0d8139ca153c0fb7d978c7e
18,544
cpp
C++
samples/softrender/TextureCube.cpp
kunka/SoftRender
8089844e9ab00ab71ef1a820641ec07ae8df248d
[ "MIT" ]
6
2019-01-25T08:41:14.000Z
2021-08-22T07:06:11.000Z
samples/softrender/TextureCube.cpp
kunka/SoftRender
8089844e9ab00ab71ef1a820641ec07ae8df248d
[ "MIT" ]
null
null
null
samples/softrender/TextureCube.cpp
kunka/SoftRender
8089844e9ab00ab71ef1a820641ec07ae8df248d
[ "MIT" ]
3
2019-01-25T08:41:16.000Z
2020-09-04T06:04:29.000Z
// // Created by huangkun on 2018/6/25. // #include "TextureCube.h" #include "Input.h" TEST_NODE_IMP_BEGIN TextureCube::TextureCube() { vertices = { // Back face -0.5f, -0.5f, -0.5f, 0.0f, 0.0f, // Bottom-left 0.5f, 0.5f, -0.5f, 1.0f, 1.0f, // top-right ...
40.756044
120
0.439226
[ "mesh", "vector", "transform" ]
b27b3c76814e818864f1968f63aa12061bf7bd62
5,437
cpp
C++
src/receiver.cpp
NithoAlif/sliding-window-protocol
185a9e3707ff674598ea946ee984cc0c6a015a65
[ "MIT" ]
null
null
null
src/receiver.cpp
NithoAlif/sliding-window-protocol
185a9e3707ff674598ea946ee984cc0c6a015a65
[ "MIT" ]
null
null
null
src/receiver.cpp
NithoAlif/sliding-window-protocol
185a9e3707ff674598ea946ee984cc0c6a015a65
[ "MIT" ]
null
null
null
/* Nama/NIM : Nitho Alif Ibadurrahman/13513072 */ /* File : receiver.cpp */ /* Deskripsi : Deklarasi objek receiver */ #include <iostream> #include <vector> #include <thread> #include <cstring> #include <unistd.h> #include <pthread.h> #include <sys/socket.h> #include <arpa/inet.h> #include <queue> #include "d...
24.057522
122
0.647784
[ "object", "vector" ]
b27e9b197220f568ac86525285c7c32a5d0ef0eb
3,564
cpp
C++
tc 160+/StrongEconomy.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
3
2015-05-25T06:24:37.000Z
2016-09-10T07:58:00.000Z
tc 160+/StrongEconomy.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
null
null
null
tc 160+/StrongEconomy.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 <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; class StrongEconomy { public: long long earn(long long n, long long k, long long price, long long target) { if (n > k) { ...
37.125
321
0.503367
[ "vector" ]
b288bdf6f090a11b9f18189e29e7bd48db535176
14,434
cpp
C++
lib/testing/gpuTrackingBeamformSimulate.cpp
eschnett/kotekan
81918288147435cef8ad52db05da0988c999a7dd
[ "MIT" ]
19
2018-12-14T00:51:52.000Z
2022-02-20T02:43:50.000Z
lib/testing/gpuTrackingBeamformSimulate.cpp
eschnett/kotekan
81918288147435cef8ad52db05da0988c999a7dd
[ "MIT" ]
487
2018-12-13T00:59:53.000Z
2022-02-07T16:12:56.000Z
lib/testing/gpuTrackingBeamformSimulate.cpp
eschnett/kotekan
81918288147435cef8ad52db05da0988c999a7dd
[ "MIT" ]
5
2019-05-09T19:52:19.000Z
2021-03-27T20:13:21.000Z
#include "gpuTrackingBeamformSimulate.hpp" #include "Config.hpp" // for Config #include "StageFactory.hpp" // for REGISTER_KOTEKAN_STAGE, StageMakerTemplate #include "Telescope.hpp" #include "buffer.h" // for Buffer, mark_frame_empty, mark_frame_full, pass_metadata #include "bufferContainer.hpp" // fo...
43.87234
100
0.560482
[ "vector" ]
b28d3b910dce055c839dcfff861b277fba9ca1e2
774
cpp
C++
LeetCode/Algorithms/Medium/BeautfulArray.cpp
roshan11160/Competitive-Programming-Solutions
2d9cfe901c23a2b7344c410b7368eb02f7fa6e7e
[ "MIT" ]
40
2020-07-25T19:35:37.000Z
2022-01-28T02:57:02.000Z
LeetCode/Algorithms/Medium/BeautfulArray.cpp
afrozchakure/Hackerrank-Problem-Solutions
014155d841e08cb1f7609c23335576dc9b29cef3
[ "MIT" ]
160
2021-04-26T19:04:15.000Z
2022-03-26T20:18:37.000Z
LeetCode/Algorithms/Medium/BeautfulArray.cpp
afrozchakure/Hackerrank-Problem-Solutions
014155d841e08cb1f7609c23335576dc9b29cef3
[ "MIT" ]
24
2020-05-03T08:11:53.000Z
2021-10-04T03:23:20.000Z
class Solution { public: vector<int> beautifulArray(int n) { vector<int> result = {1}; // result.push_back(1); while(result.size() < n) { vector<int> curr; for(int &num: result) { if((2 * num)- 1 <= n)...
24.1875
93
0.432817
[ "vector" ]
b2a34af8ad476d70c4e13e265fa25530688032ab
7,301
hpp
C++
include/qpl/maths.hpp
DanielRabl/QPL
4b487a7d31eab511a961c100ed1985aa11f0572c
[ "Zlib" ]
5
2020-09-02T00:59:26.000Z
2021-08-21T19:14:40.000Z
include/qpl/maths.hpp
DanielRabl/QPL
4b487a7d31eab511a961c100ed1985aa11f0572c
[ "Zlib" ]
null
null
null
include/qpl/maths.hpp
DanielRabl/QPL
4b487a7d31eab511a961c100ed1985aa11f0572c
[ "Zlib" ]
2
2021-01-23T20:03:12.000Z
2021-08-21T19:15:58.000Z
#ifndef QPL_MATHS_HPP #define QPL_MATHS_HPP #pragma once #include <qpl/qpldeclspec.hpp> #include <qpl/vardef.hpp> #include <qpl/string.hpp> #include <qpl/bits.hpp> #include <cmath> #include <sstream> #include <vector> namespace qpl { template<typename T> bool is_prime(T value) { if (value < 5u) { return valu...
24.749153
91
0.601835
[ "vector" ]
b2a53e2b6a36cb5205b4784e3ce293c5d4227c7f
1,169
cpp
C++
Test/Function/test_logic.cpp
CrackerCat/MiniSTL
d94fa37f69313a2ea99ab983239270839dc962b3
[ "MIT" ]
null
null
null
Test/Function/test_logic.cpp
CrackerCat/MiniSTL
d94fa37f69313a2ea99ab983239270839dc962b3
[ "MIT" ]
null
null
null
Test/Function/test_logic.cpp
CrackerCat/MiniSTL
d94fa37f69313a2ea99ab983239270839dc962b3
[ "MIT" ]
null
null
null
#include "Algorithms/algo/stl_algo.h" #include "Function/stl_function.h" #include <gtest/gtest.h> using namespace ::MiniSTL; class LogicTest : public testing::Test { protected: void SetUp() override { } }; TEST_F(LogicTest, logicand) { bool input1[4] = {true, true, false, true}; bool input2[4] = {false, true...
28.512195
105
0.650128
[ "transform" ]
b2a73333eb9842ebd8679d9361eb2437170e60e4
5,479
hpp
C++
include/CL/sycl/detail/debug.hpp
infinitesnow/InceptionCL
e3d3a6218e551d42dfcead4f121cec294d50d85c
[ "Unlicense" ]
2
2017-10-05T13:13:41.000Z
2019-05-15T19:20:49.000Z
include/CL/sycl/detail/debug.hpp
infinitesnow/InceptionCL
e3d3a6218e551d42dfcead4f121cec294d50d85c
[ "Unlicense" ]
null
null
null
include/CL/sycl/detail/debug.hpp
infinitesnow/InceptionCL
e3d3a6218e551d42dfcead4f121cec294d50d85c
[ "Unlicense" ]
null
null
null
#ifndef TRISYCL_SYCL_DETAIL_DEBUG_HPP #define TRISYCL_SYCL_DETAIL_DEBUG_HPP /** \file Track constructor/destructor invocations and trace kernel execution Define the TRISYCL_DEBUG CPP flag to have an output. To use it in some class C, make C inherit from debug<C>. Ronan at Keryell point FR This file...
28.836842
77
0.655047
[ "object", "vector" ]
b2b0912ad14b78991199c3ee7f445d06cddcbd06
24,384
cpp
C++
App/enclave_bridge.cpp
goten-team/Goten
690f1429b62c70caec72f4010ee5b7a9786f0d25
[ "MIT" ]
17
2020-04-28T09:18:28.000Z
2021-12-28T08:38:00.000Z
App/enclave_bridge.cpp
goten-team/Goten
690f1429b62c70caec72f4010ee5b7a9786f0d25
[ "MIT" ]
2
2021-09-26T04:10:51.000Z
2022-03-31T05:28:25.000Z
App/enclave_bridge.cpp
goten-team/Goten
690f1429b62c70caec72f4010ee5b7a9786f0d25
[ "MIT" ]
2
2021-09-26T05:06:17.000Z
2021-12-14T16:25:06.000Z
#include <stdio.h> #include <string.h> #include <assert.h> #include <iostream> #include <fstream> #include <sstream> #include <vector> #include <chrono> #include <memory> #include <omp.h> #include <unordered_map> #include <cstdlib> #include <malloc.h> #include <Eigen/Core> #include <Eigen/Dense> #include "sgx_tseal.h...
34.538244
323
0.604372
[ "vector", "model" ]
b2cd4d436e4b957b715372be5d8fa5a470e1c4e4
3,558
cpp
C++
SevenZip++/MemoryInStream.cpp
ProtocolONE/cord.seven-zip
1c85a852cb01efd7aabbacfa01253ca213fcb2ef
[ "Apache-2.0" ]
1
2019-08-07T06:15:09.000Z
2019-08-07T06:15:09.000Z
SevenZip++/MemoryInStream.cpp
ProtocolONE/cord.seven-zip
1c85a852cb01efd7aabbacfa01253ca213fcb2ef
[ "Apache-2.0" ]
null
null
null
SevenZip++/MemoryInStream.cpp
ProtocolONE/cord.seven-zip
1c85a852cb01efd7aabbacfa01253ca213fcb2ef
[ "Apache-2.0" ]
null
null
null
#include "stdafx.h" #include "MemoryInStream.h" #include <algorithm> namespace SevenZip { namespace intl { MemoryInStream::MemoryInStream(const std::vector<unsigned char>& memory) : _buffer(memory) , _offset(0) , _refCount(0) { } MemoryInStream::~MemoryInStream() { } ...
24.040541
91
0.599775
[ "vector" ]
b2cdbf36fca605ea9a82982850eff319079d3351
1,175
cpp
C++
trunk/cocos2dx-tui/samples/HelloTui/Classes/HelloWorldScene.cpp
tongpengfei/tui
4aeeb7a3db9e5be2124f277d5c082fa10e25034e
[ "MIT" ]
12
2015-02-22T08:05:16.000Z
2020-12-16T06:36:03.000Z
trunk/cocos2dx-tui/samples/HelloTui/Classes/HelloWorldScene.cpp
fuhongxue/tui
4aeeb7a3db9e5be2124f277d5c082fa10e25034e
[ "MIT" ]
null
null
null
trunk/cocos2dx-tui/samples/HelloTui/Classes/HelloWorldScene.cpp
fuhongxue/tui
4aeeb7a3db9e5be2124f277d5c082fa10e25034e
[ "MIT" ]
6
2015-01-26T11:45:29.000Z
2020-12-16T06:39:38.000Z
#include "HelloWorldScene.h" #include <gameuicontroller.h> #include <gameuievent.h> USING_NS_CC; CCScene* HelloWorld::scene() { // 'scene' is an autorelease object CCScene *scene = CCScene::create(); // 'layer' is an autorelease object HelloWorld *layer = HelloWorld::create(); // add layer as...
21.363636
65
0.63234
[ "object" ]
b2d3952de34ac773c25827f84bb9c04699b3b59e
2,011
cpp
C++
ExternalTrainer/ExternalTrainer.cpp
N3TBI0S/AssaultCubeExternalTrainer
df44af6af9eaf9ed1411d9385dc2e7857a67458c
[ "BSD-3-Clause" ]
null
null
null
ExternalTrainer/ExternalTrainer.cpp
N3TBI0S/AssaultCubeExternalTrainer
df44af6af9eaf9ed1411d9385dc2e7857a67458c
[ "BSD-3-Clause" ]
null
null
null
ExternalTrainer/ExternalTrainer.cpp
N3TBI0S/AssaultCubeExternalTrainer
df44af6af9eaf9ed1411d9385dc2e7857a67458c
[ "BSD-3-Clause" ]
null
null
null
// ExternalTrainer.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include "pch.h" #include <iostream> #include <vector> #include <windows.h> #include "proc.h" #include "mem.h" int main() { HANDLE hProcess = 0; uintptr_t moduleBase = 0, localPlayerPtr = 0, h...
20.731959
114
0.591745
[ "vector" ]
b2f25b3a1712278449cf8dfd2bedfba6d77f3e68
998
cc
C++
Codeforces/256 Division 2/Problem D/D.cc
VastoLorde95/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
170
2017-07-25T14:47:29.000Z
2022-01-26T19:16:31.000Z
Codeforces/256 Division 2/Problem D/D.cc
navodit15/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
null
null
null
Codeforces/256 Division 2/Problem D/D.cc
navodit15/Competitive-Programming
6c990656178fb0cd33354cbe5508164207012f24
[ "MIT" ]
55
2017-07-28T06:17:33.000Z
2021-10-31T03:06:22.000Z
#include<cstdio> #include<iostream> #include<cmath> #include<algorithm> #include<cstring> #include<map> #include<set> #include<vector> #include<utility> #include<queue> #include<stack> #define sd(x) scanf("%d",&x) #define sd2(x,y) scanf("%d%d",&x,&y) #define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z) #define fi first #define...
19.96
72
0.593186
[ "vector" ]
b2f89bb523986fe70608bedfd11689ae9c0f3916
5,640
cpp
C++
git-branch-status/Git/Remote.cpp
macmade/git-branch-status
a5fac651cb365e49c45ed24fd0e84e13b62e8bef
[ "MIT" ]
5
2018-10-25T20:12:52.000Z
2021-10-01T21:17:33.000Z
git-branch-status/Git/Remote.cpp
macmade/git-branch-status
a5fac651cb365e49c45ed24fd0e84e13b62e8bef
[ "MIT" ]
null
null
null
git-branch-status/Git/Remote.cpp
macmade/git-branch-status
a5fac651cb365e49c45ed24fd0e84e13b62e8bef
[ "MIT" ]
null
null
null
/******************************************************************************* * The MIT License (MIT) * * Copyright (c) 2018 Jean-David Gadina - www-xs-labs.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
30.819672
146
0.525177
[ "vector" ]
b2f9ef1bca8010122a182fd02947bbd60ef749e0
3,886
cc
C++
pre_processors/filter_ground_removal.cc
Gatsby23/StaticMapping
71bb3bedfb116c4ea0ad82ab0cdf146f6a9df024
[ "MIT" ]
264
2019-08-08T08:39:39.000Z
2022-03-27T09:46:42.000Z
pre_processors/filter_ground_removal.cc
Gatsby23/StaticMapping
71bb3bedfb116c4ea0ad82ab0cdf146f6a9df024
[ "MIT" ]
26
2019-08-26T13:35:05.000Z
2022-03-14T10:16:55.000Z
pre_processors/filter_ground_removal.cc
Gatsby23/StaticMapping
71bb3bedfb116c4ea0ad82ab0cdf146f6a9df024
[ "MIT" ]
62
2019-08-20T17:14:14.000Z
2022-03-16T12:18:35.000Z
// MIT License // Copyright (c) 2019 Edward Liu // 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, merg...
33.5
80
0.667782
[ "vector" ]
65088dc3f75b3c4e09ae8b75f76d1f5aa9753041
10,320
cpp
C++
lib/ome/files/TileCoverage.cpp
rleigh-dundee/bioformats-cpp
e8e3c03cab4d00edb96f40aa2b86bc7c99d6588c
[ "BSD-2-Clause" ]
5
2017-12-11T16:23:16.000Z
2019-08-13T18:32:27.000Z
lib/ome/files/TileCoverage.cpp
rleigh-dundee/bioformats-cpp
e8e3c03cab4d00edb96f40aa2b86bc7c99d6588c
[ "BSD-2-Clause" ]
83
2016-02-28T19:29:11.000Z
2019-02-21T08:52:37.000Z
lib/ome/files/TileCoverage.cpp
rleigh-dundee/bioformats-cpp
e8e3c03cab4d00edb96f40aa2b86bc7c99d6588c
[ "BSD-2-Clause" ]
13
2016-02-26T17:18:15.000Z
2020-04-22T00:40:59.000Z
/* * #%L * OME-FILES C++ library for image IO. * Copyright © 2006 - 2015 Open Microscopy Environment: * - Massachusetts Institute of Technology * - National Institutes of Health * - University of Dundee * - Board of Regents of the University of Wisconsin-Madison * - Glencoe Software, Inc. * %% * Red...
30.175439
103
0.580717
[ "geometry", "vector", "model" ]
650bcd8486a3f05e40627f499f183babe490dc09
14,455
cpp
C++
DmTft24363Display/DmTft24363Display.cpp
anasBahou/touchscreen
db0810cdee71973660bdd22281ece51a40c7b00d
[ "Apache-2.0" ]
null
null
null
DmTft24363Display/DmTft24363Display.cpp
anasBahou/touchscreen
db0810cdee71973660bdd22281ece51a40c7b00d
[ "Apache-2.0" ]
null
null
null
DmTft24363Display/DmTft24363Display.cpp
anasBahou/touchscreen
db0810cdee71973660bdd22281ece51a40c7b00d
[ "Apache-2.0" ]
null
null
null
/* * DmTft24363Display.cpp * * Created on: 15 avr. 2019 * Author: sixtron-training */ #include "DmTft24363Display.h" using namespace sixtron; DmTft24_363_Display::DmTft24_363_Display() { printf("DmTft24_363_Display created \n\n"); } DmTft24_363_Display::DmTft24_363_Display(FlashIAP* flash, DmTftIli934...
28.287671
158
0.709927
[ "object" ]
650bd39555f4c19bc23fbb4cbdb2ce6897e29f4e
1,567
hpp
C++
ESMF/src/Infrastructure/Mesh/src/Moab/parallel/moab/ParallelData.hpp
joeylamcy/gchp
0e1676300fc91000ecb43539cabf1f342d718fb3
[ "NCSA", "Apache-2.0", "MIT" ]
1
2018-07-05T16:48:58.000Z
2018-07-05T16:48:58.000Z
ESMF/src/Infrastructure/Mesh/src/Moab/parallel/moab/ParallelData.hpp
joeylamcy/gchp
0e1676300fc91000ecb43539cabf1f342d718fb3
[ "NCSA", "Apache-2.0", "MIT" ]
4
2016-11-10T15:49:51.000Z
2017-02-06T23:24:16.000Z
ESMF/src/Infrastructure/Mesh/src/Moab/parallel/moab/ParallelData.hpp
joeylamcy/gchp
0e1676300fc91000ecb43539cabf1f342d718fb3
[ "NCSA", "Apache-2.0", "MIT" ]
null
null
null
#ifndef MOAB_PARALLEL_DATA_HPP #define MOAB_PARALLEL_DATA_HPP #include "moab/Forward.hpp" #include "moab/Range.hpp" namespace moab { class ParallelComm; /** * \brief Parallel data in MOAB * \author Tim Tautges * * This class implements methods to retrieve information about * the parallel mesh from MOAB. Mo...
26.559322
71
0.690491
[ "mesh", "object", "vector" ]
65104de891aaf54a3f11a33bc953148ef28db703
74,522
cpp
C++
Engine/cal3d/loader.cpp
odiminox/DeadBeef-Engine
89fbaf3c62a11da9eef0ea5971c0c49223da452f
[ "Apache-2.0" ]
null
null
null
Engine/cal3d/loader.cpp
odiminox/DeadBeef-Engine
89fbaf3c62a11da9eef0ea5971c0c49223da452f
[ "Apache-2.0" ]
null
null
null
Engine/cal3d/loader.cpp
odiminox/DeadBeef-Engine
89fbaf3c62a11da9eef0ea5971c0c49223da452f
[ "Apache-2.0" ]
null
null
null
//****************************************************************************// // loader.cpp // // Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger // //***************************************************************************...
29.281729
129
0.653324
[ "mesh", "object", "vector", "model" ]
6514f658ca7f08fcf4e874a0460ae23cce7ce343
4,879
cpp
C++
IndirectBuffer.cpp
evanw/indirectbuffer
f18febb01f8ff74cc4abfd4d95e6ced7d2439088
[ "Unlicense" ]
87
2015-12-07T16:17:17.000Z
2022-03-29T09:44:25.000Z
IndirectBuffer.cpp
evanw/indirectbuffer
f18febb01f8ff74cc4abfd4d95e6ced7d2439088
[ "Unlicense" ]
1
2019-04-19T07:46:17.000Z
2019-04-19T07:46:17.000Z
IndirectBuffer.cpp
evanw/indirectbuffer
f18febb01f8ff74cc4abfd4d95e6ced7d2439088
[ "Unlicense" ]
7
2016-08-17T12:44:24.000Z
2021-10-18T21:09:19.000Z
#include "IndirectBuffer.h" #include <assert.h> #if defined(__EMSCRIPTEN__) #include <emscripten.h> #endif IndirectBuffer::IndirectBuffer() { #if defined(__EMSCRIPTEN__) static int nextHandle = 1; _handle = ++nextHandle; EM_ASM_ARGS({ (Module._IB_ || (Module._IB_ = {}))[$0] = new Uint8Array();...
24.034483
117
0.649723
[ "vector" ]
651618db10bfd7923215a28765e44bb468112a75
5,232
cpp
C++
2019/day05/main.cpp
batduck27/Advent_of_code
6b2dadf28bebd2301464c864f5112dccede9762b
[ "MIT" ]
null
null
null
2019/day05/main.cpp
batduck27/Advent_of_code
6b2dadf28bebd2301464c864f5112dccede9762b
[ "MIT" ]
null
null
null
2019/day05/main.cpp
batduck27/Advent_of_code
6b2dadf28bebd2301464c864f5112dccede9762b
[ "MIT" ]
null
null
null
#include <iostream> #include <fstream> #include <functional> #include <vector> #include <map> static const int INPUT_PART1 = 1; static const int INPUT_PART2 = 5; enum OPCODE { ADD = 1, MUL = 2, IN = 3, OUT = 4, JMPT = 5, JMPF = 6, LT = 7, EQ = 8, HALT = 99, }; enum PARAM_...
21.891213
87
0.563073
[ "vector" ]
651b548b5fe15824e1b276b691243ab6bb1be57a
613
cpp
C++
src/Generic/common/cleanup_hooks.cpp
BBN-E/serif
1e2662d82fb1c377ec3c79355a5a9b0644606cb4
[ "Apache-2.0" ]
1
2022-03-24T19:57:00.000Z
2022-03-24T19:57:00.000Z
src/Generic/common/cleanup_hooks.cpp
BBN-E/serif
1e2662d82fb1c377ec3c79355a5a9b0644606cb4
[ "Apache-2.0" ]
null
null
null
src/Generic/common/cleanup_hooks.cpp
BBN-E/serif
1e2662d82fb1c377ec3c79355a5a9b0644606cb4
[ "Apache-2.0" ]
null
null
null
// Copyright 2011 by BBN Technologies Corp. // All Rights Reserved. #include "Generic/common/leak_detection.h" // This must be the first #include #include "Generic/common/cleanup_hooks.h" #include <vector> #include <boost/foreach.hpp> namespace { std::vector<CleanupFunction>& _cleanupFunctions() { static std::vec...
21.892857
77
0.748777
[ "vector" ]
fb993f19b5cc1026eb5a76aa9759e8f46e71acb0
16,365
cpp
C++
cppcrypto/mars.cpp
crashdemons/kerukuro-cppcrypto
090d0e97280c0c34267ab50b72a2ffa5b991110b
[ "BSD-2-Clause" ]
null
null
null
cppcrypto/mars.cpp
crashdemons/kerukuro-cppcrypto
090d0e97280c0c34267ab50b72a2ffa5b991110b
[ "BSD-2-Clause" ]
null
null
null
cppcrypto/mars.cpp
crashdemons/kerukuro-cppcrypto
090d0e97280c0c34267ab50b72a2ffa5b991110b
[ "BSD-2-Clause" ]
null
null
null
/* This code is written by kerukuro for cppcrypto library (http://cppcrypto.sourceforge.net/) and released into public domain. */ #include "mars.h" #include "portability.h" #include <memory.h> #include <stdlib.h> #include <stdio.h> #include <vector> #include <iostream> #include <iomanip> #include <algorithm> #include ...
37.277904
121
0.668011
[ "vector", "transform" ]
fb9f3e166b140c167669d87431e4a675e1ea559f
504
cpp
C++
LeetCode/subarray-sum-equals-k.cpp
Iltwats/Competitive-Programming-
5e3af928e10d06a11dd5daab1b572184029ac3a4
[ "MIT" ]
1
2020-09-29T11:21:22.000Z
2020-09-29T11:21:22.000Z
LeetCode/subarray-sum-equals-k.cpp
Iltwats/Competitive-Programming-
5e3af928e10d06a11dd5daab1b572184029ac3a4
[ "MIT" ]
null
null
null
LeetCode/subarray-sum-equals-k.cpp
Iltwats/Competitive-Programming-
5e3af928e10d06a11dd5daab1b572184029ac3a4
[ "MIT" ]
null
null
null
// Problem statement: https://leetcode.com/problems/subarray-sum-equals-k/ class Solution { public: int subarraySum(vector<int>& arr, int k) { int n = arr.size(); int count =0; unordered_map<int,int> map; int sum = 0; map.insert({0,1}); for(int i =0; i<n; i++){ ...
22.909091
74
0.462302
[ "vector" ]
fbbe4c6910218af7e2ca39e226df5241b7a0f735
812
cpp
C++
API/GameEngineContents/Coin.cpp
hooony1324/Portfolio
5be1b439d53dcc861b4e06ec69bad53f3bd05ab5
[ "MIT" ]
null
null
null
API/GameEngineContents/Coin.cpp
hooony1324/Portfolio
5be1b439d53dcc861b4e06ec69bad53f3bd05ab5
[ "MIT" ]
null
null
null
API/GameEngineContents/Coin.cpp
hooony1324/Portfolio
5be1b439d53dcc861b4e06ec69bad53f3bd05ab5
[ "MIT" ]
null
null
null
#include "Coin.h" #include <GameEngine/GameEngine.h> #include <GameEngineBase/GameEngineWindow.h> #include <GameEngine/GameEngineImageManager.h> #include <GameEngine/GameEngineRenderer.h> #include <GameEngine/GameEngineCollision.h> #include <GameEngineBase/GameEngineSound.h> #include "GameInfo.h" Coin::Coin() : Col...
18.883721
86
0.724138
[ "render" ]
fbc3a0bf7fdc56c743f7455594e17632f10f85b2
5,433
hh
C++
src/mem/cache/prefetch/tlbfree.hh
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
2
2020-03-31T03:34:16.000Z
2020-06-08T10:04:53.000Z
src/mem/cache/prefetch/tlbfree.hh
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
null
null
null
src/mem/cache/prefetch/tlbfree.hh
qianlong4526888/haha
01baf923693873c11ae072ce4dde3d8f1d7b6239
[ "BSD-3-Clause" ]
1
2020-06-25T15:46:52.000Z
2020-06-25T15:46:52.000Z
/* * Copyright (c) 2005 The Regents of The University of Michigan * 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 * notice, ...
31.045714
127
0.651758
[ "vector" ]
fbc4c960ed7ce87036fdb2053cb429ab4ac2d393
8,245
cpp
C++
tests/pyqubotest.cpp
dmiracle/pyqubo
21a3404c6276a0dda58efd983bdc32f8e3a27ecf
[ "Apache-2.0" ]
2
2021-06-09T19:13:55.000Z
2021-11-17T11:16:22.000Z
tests/pyqubotest.cpp
dmiracle/pyqubo
21a3404c6276a0dda58efd983bdc32f8e3a27ecf
[ "Apache-2.0" ]
35
2021-07-19T04:21:53.000Z
2022-03-31T05:33:55.000Z
tests/pyqubotest.cpp
dmiracle/pyqubo
21a3404c6276a0dda58efd983bdc32f8e3a27ecf
[ "Apache-2.0" ]
null
null
null
#include <gtest/gtest.h> #include <express.h> #include <prod.h> #include <poly.h> #include <model.h> #include <coeffprod.h> #include <placeholderpoly.h> #include <coeff.h> #include <expanded.h> #include <binary_quadratic_model.hpp> #include <vartypes.hpp> #include <hash.hpp> #include <unordered_map> #include <utility...
32.98
95
0.620982
[ "vector", "model" ]
fbd722817d157e35daf0fceb365f0475a973bf8c
1,253
cpp
C++
Common/Stylization/atom_element_structure.cpp
achilex/MgDev
f7baf680a88d37659af32ee72b9a2046910b00d8
[ "PHP-3.0" ]
2
2017-04-19T01:38:30.000Z
2020-07-31T03:05:32.000Z
Common/Stylization/atom_element_structure.cpp
achilex/MgDev
f7baf680a88d37659af32ee72b9a2046910b00d8
[ "PHP-3.0" ]
null
null
null
Common/Stylization/atom_element_structure.cpp
achilex/MgDev
f7baf680a88d37659af32ee72b9a2046910b00d8
[ "PHP-3.0" ]
1
2021-12-29T10:46:12.000Z
2021-12-29T10:46:12.000Z
// // Copyright (C) 2004-2011 by Autodesk, Inc. // // This library is free software; you can redistribute it and/or // modify it under the terms of version 2.1 of the GNU Lesser // General Public License as published by the Free Software Foundation. // // This library is distributed in the hope that it will be use...
27.23913
78
0.725459
[ "shape" ]
fbd9399c066743077efd18c28622f231bc4efaab
3,041
cpp
C++
src/tests/dray/t_dray_volume_render.cpp
LLNL/devil_ray
6ab59dd740a5fb1e04967e982c5c6d4c7507f4cb
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
14
2019-12-17T17:40:32.000Z
2021-12-13T20:32:32.000Z
src/tests/dray/t_dray_volume_render.cpp
LLNL/devil_ray
6ab59dd740a5fb1e04967e982c5c6d4c7507f4cb
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
72
2019-12-21T16:55:38.000Z
2022-03-22T20:40:13.000Z
src/tests/dray/t_dray_volume_render.cpp
LLNL/devil_ray
6ab59dd740a5fb1e04967e982c5c6d4c7507f4cb
[ "BSD-3-Clause-Clear", "BSD-3-Clause" ]
3
2020-02-21T18:06:57.000Z
2021-12-03T18:39:48.000Z
// Copyright 2019 Lawrence Livermore National Security, LLC and other // Devil Ray Developers. See the top-level COPYRIGHT file for details. // // SPDX-License-Identifier: (BSD-3-Clause) #include "test_config.h" #include "gtest/gtest.h" #include "t_utils.hpp" #include <dray/rendering/renderer.hpp> #include <dray/ren...
28.688679
95
0.729037
[ "render" ]
fbe5285ea26b09c8c8176c670a881b6bef47a6a9
4,924
hpp
C++
src/include/Grid/GridIndexerRange.hpp
foxostro/PinkTopaz
cd8275a93ea34a56f640f915d4b6c769e82e9dc2
[ "MIT" ]
1
2017-10-30T22:49:06.000Z
2017-10-30T22:49:06.000Z
src/include/Grid/GridIndexerRange.hpp
foxostro/PinkTopaz
cd8275a93ea34a56f640f915d4b6c769e82e9dc2
[ "MIT" ]
null
null
null
src/include/Grid/GridIndexerRange.hpp
foxostro/PinkTopaz
cd8275a93ea34a56f640f915d4b6c769e82e9dc2
[ "MIT" ]
null
null
null
// // GridIndexerRange.hpp // PinkTopaz // // Created by Andrew Fox on 11/18/17. // // #ifndef GridIndexerRange_hpp #define GridIndexerRange_hpp #include "GridIndexer.hpp" template<typename PointType> class ExclusiveIterator { public: using iterator_category = std::forward_iterator_tag; using value_type =...
23.78744
109
0.534931
[ "object" ]
fbe73cd91cab8824ec33085618f4a95f44d5f1dc
1,856
cpp
C++
collection/cp/bcw_codebook-master/Contest/XVIOpenCupJapan/pG.cpp
daemonslayer/Notebook
a9880be9bd86955afd6b8f7352822bc18673eda3
[ "Apache-2.0" ]
1
2019-03-24T13:12:01.000Z
2019-03-24T13:12:01.000Z
collection/cp/bcw_codebook-master/Contest/XVIOpenCupJapan/pG.cpp
daemonslayer/Notebook
a9880be9bd86955afd6b8f7352822bc18673eda3
[ "Apache-2.0" ]
null
null
null
collection/cp/bcw_codebook-master/Contest/XVIOpenCupJapan/pG.cpp
daemonslayer/Notebook
a9880be9bd86955afd6b8f7352822bc18673eda3
[ "Apache-2.0" ]
null
null
null
#include<bits/stdc++.h> #include<unistd.h> using namespace std; #define FZ(n) memset((n),0,sizeof(n)) #define FMO(n) memset((n),-1,sizeof(n)) #define F first #define S second #define PB push_back #define ALL(x) begin(x),end(x) #define SZ(x) ((int)(x).size()) #define IOS ios_base::sync_with_stdio(0); cin.tie(0) #define ...
21.090909
85
0.529634
[ "vector" ]
fbeb22f538bcf2d2f43323a7602f2c9f8815bdf6
1,348
cpp
C++
test/telepath/blas/test_syrk_mat.cpp
tbepler/telepath
636f7345b6479d5c48dbf03cb17343b14c305c7c
[ "MIT" ]
null
null
null
test/telepath/blas/test_syrk_mat.cpp
tbepler/telepath
636f7345b6479d5c48dbf03cb17343b14c305c7c
[ "MIT" ]
null
null
null
test/telepath/blas/test_syrk_mat.cpp
tbepler/telepath
636f7345b6479d5c48dbf03cb17343b14c305c7c
[ "MIT" ]
null
null
null
#include <gtest/gtest.h> #include "telepath/blas/level3/syrk_mat.h" #include "telepath/matrix.h" #include <vector> using namespace telepath; template< typename T > class Matrix{ std::vector<T> data_; std::size_t rows_; std::size_t cols_; public: constexpr Matrix( std::size_t rows, std::size_t...
18.722222
68
0.503709
[ "vector" ]
fbf58331619e66fc5f41987e7843631f7754c700
1,230
hpp
C++
sources/Page.hpp
EylonNaamat/SS_b_Ex2_b
a5c00142f74b734d5deff4fa11eec0afb6885241
[ "MIT" ]
null
null
null
sources/Page.hpp
EylonNaamat/SS_b_Ex2_b
a5c00142f74b734d5deff4fa11eec0afb6885241
[ "MIT" ]
null
null
null
sources/Page.hpp
EylonNaamat/SS_b_Ex2_b
a5c00142f74b734d5deff4fa11eec0afb6885241
[ "MIT" ]
null
null
null
#include "Direction.hpp" #include <map> #include <vector> #include <string> namespace ariel{ class Page{ private: const static int row_length = 100; // number of max line length const static int min_num = 0; // number of min row, col, length const static int char_min = 32; // numb...
41
90
0.638211
[ "vector" ]
fbf9b3db78e4888e5ade1ca9df81e2ebf0db2d6d
1,949
cpp
C++
C++/increasing-decreasing-string.cpp
jaiskid/LeetCode-Solutions
a8075fd69087c5463f02d74e6cea2488fdd4efd1
[ "MIT" ]
3,269
2018-10-12T01:29:40.000Z
2022-03-31T17:58:41.000Z
C++/increasing-decreasing-string.cpp
jaiskid/LeetCode-Solutions
a8075fd69087c5463f02d74e6cea2488fdd4efd1
[ "MIT" ]
53
2018-12-16T22:54:20.000Z
2022-02-25T08:31:20.000Z
C++/increasing-decreasing-string.cpp
jaiskid/LeetCode-Solutions
a8075fd69087c5463f02d74e6cea2488fdd4efd1
[ "MIT" ]
1,236
2018-10-12T02:51:40.000Z
2022-03-30T13:30:37.000Z
// Time: O(n) // Space: O(1) class Solution { public: string sortString(string s) { string result; auto count = counter(s); while(result.length() != s.length()) { for (int c = 0; c < count.size(); ++c) { if (count[c]) { result += ('a' + c); ...
25.644737
91
0.366855
[ "vector" ]
fbfc6c42cc71036e2638192ea25444e47cfcb778
10,827
cpp
C++
inetsrv/iis/svcs/staxcore/seo/mimebag.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
inetsrv/iis/svcs/staxcore/seo/mimebag.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
inetsrv/iis/svcs/staxcore/seo/mimebag.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
/*++ Copyright (c) 1997 Microsoft Corporation Module Name: mimebag.cpp Abstract: This module contains the implementation for the Server Extension Object Registry Property Bag. Author: Andy Jacobs (andyj@microsoft.com) Revision History: andyj 01/28/97 created andyj 02/12/97 Conv...
28.417323
121
0.67812
[ "object" ]
fbfd66b0595e50b08a5195b1b8cca23351149e09
556
cpp
C++
Source/Rendering/Model/Model.cpp
elyshaffir/SandboxEngineSandboxEngine
48f4ee9e77a0049378aa751d53467cb81b6d9d10
[ "MIT" ]
null
null
null
Source/Rendering/Model/Model.cpp
elyshaffir/SandboxEngineSandboxEngine
48f4ee9e77a0049378aa751d53467cb81b6d9d10
[ "MIT" ]
null
null
null
Source/Rendering/Model/Model.cpp
elyshaffir/SandboxEngineSandboxEngine
48f4ee9e77a0049378aa751d53467cb81b6d9d10
[ "MIT" ]
null
null
null
#include <Rendering/Model/Model.h> sandbox::Model::Model(std::vector<Vertex> & vertices) : vertexBuffer(vertices), vertexCount(vertices.size()) { } void sandbox::Model::Destroy(VkDevice device) { vertexBuffer.Destroy(device); } void sandbox::Model::Bind(VkCommandBuffer commandBuffer) const { VkBuffer buffers[] = {...
24.173913
108
0.751799
[ "vector", "model" ]
220265970cd9127cfcaa42b4b75da97e55e73b9b
4,325
cc
C++
online_belief_propagation/sbm_graph.cc
xxdreck/google-research
dac724bc2b9362d65c26747a8754504fe4c615f8
[ "Apache-2.0" ]
2
2022-01-21T18:15:34.000Z
2022-01-25T15:21:34.000Z
online_belief_propagation/sbm_graph.cc
xxdreck/google-research
dac724bc2b9362d65c26747a8754504fe4c615f8
[ "Apache-2.0" ]
110
2021-10-01T18:22:38.000Z
2021-12-27T22:08:31.000Z
online_belief_propagation/sbm_graph.cc
admariner/google-research
7cee4b22b925581d912e8d993625c180da2a5a4f
[ "Apache-2.0" ]
1
2021-12-01T23:20:45.000Z
2021-12-01T23:20:45.000Z
// Copyright 2021 The Google Research Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
38.274336
80
0.690405
[ "vector" ]
22065d857f0d42bc13d5bd0230b2da091a6b5017
3,166
cpp
C++
qrgui/dialogs/subprogram/shapePropertyWidget.cpp
RexTremendaeMajestatis/QREAL
94786d40e84c18a4407069570588f7d2c4c63aea
[ "Apache-2.0" ]
39
2015-01-26T16:18:43.000Z
2021-12-20T23:36:41.000Z
qrgui/dialogs/subprogram/shapePropertyWidget.cpp
RexTremendaeMajestatis/QREAL
94786d40e84c18a4407069570588f7d2c4c63aea
[ "Apache-2.0" ]
1,248
2019-02-21T19:32:09.000Z
2022-03-29T16:50:04.000Z
qrgui/dialogs/subprogram/shapePropertyWidget.cpp
RexTremendaeMajestatis/QREAL
94786d40e84c18a4407069570588f7d2c4c63aea
[ "Apache-2.0" ]
58
2015-03-03T12:57:28.000Z
2020-05-09T15:54:42.000Z
/* Copyright 2015-2016 Kogutich Denis * * 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 agree...
28.781818
110
0.738471
[ "shape" ]
220af0781e2b192465f89c0152c81382d72f378a
1,323
cpp
C++
ctest/tests/geometry/FileOBJ.cpp
mgradysaunders/Precept
0677c70ac4ed9e0a8c5aad7b049daad22998de9e
[ "BSD-2-Clause" ]
null
null
null
ctest/tests/geometry/FileOBJ.cpp
mgradysaunders/Precept
0677c70ac4ed9e0a8c5aad7b049daad22998de9e
[ "BSD-2-Clause" ]
null
null
null
ctest/tests/geometry/FileOBJ.cpp
mgradysaunders/Precept
0677c70ac4ed9e0a8c5aad7b049daad22998de9e
[ "BSD-2-Clause" ]
null
null
null
#include "../../testing.h" #include <pre/geometry/FileOBJ> using namespace pre; static const char* CubeSrc = R"( # Blender v2.82 (sub 7) OBJ File: '' # www.blender.org mtllib Cube.mtl o Cube v 1 1 -1 v 1 -1 -1 v 1 1 1 v 1 -1 1 v -1 1 -1 v -1 -1 -1 v -1 1 1 v -1 -1 1 vn 0 1 0 vn 0 0 1 vn -1 0 0 vn 0 -1 0 vn 1 0 0 vn ...
19.746269
48
0.622071
[ "geometry" ]
81fcf2e8c739163e15867f70e72b2b680f27f167
3,819
cpp
C++
src/convert/osm2poi.cpp
malasiot/maplite
1edeec673110cdd5fa904ff2ff88289b6c3ec324
[ "MIT" ]
12
2017-05-11T21:44:57.000Z
2021-12-30T08:35:56.000Z
src/convert/osm2poi.cpp
malasiot/mftools
1edeec673110cdd5fa904ff2ff88289b6c3ec324
[ "MIT" ]
8
2016-10-27T10:10:05.000Z
2019-12-07T21:27:02.000Z
src/convert/osm2poi.cpp
malasiot/mftools
1edeec673110cdd5fa904ff2ff88289b6c3ec324
[ "MIT" ]
5
2017-10-17T08:18:58.000Z
2021-11-12T11:44:23.000Z
#include <fstream> #include "osm_processor.hpp" #include "mapsforge_poi_writer.hpp" #include "poi_categories.hpp" #include <boost/filesystem.hpp> #include <boost/algorithm/string.hpp> #include <boost/lexical_cast.hpp> #include <boost/program_options.hpp> using namespace std ; namespace po = boost::program_options ; ...
32.092437
173
0.600419
[ "vector" ]
81fd0bc1e048bd5d9e12676a00636a9738f76a37
16,991
cpp
C++
pushquickview.cpp
net147/Push2Qml
a89b9b573312164ed670ac5e1fc0dd4ee3c5de58
[ "MIT" ]
21
2015-12-16T22:44:01.000Z
2022-01-03T03:10:39.000Z
pushquickview.cpp
net147/Push2Qml
a89b9b573312164ed670ac5e1fc0dd4ee3c5de58
[ "MIT" ]
1
2018-12-10T23:14:26.000Z
2018-12-11T12:16:59.000Z
pushquickview.cpp
net147/Push2Qml
a89b9b573312164ed670ac5e1fc0dd4ee3c5de58
[ "MIT" ]
2
2016-12-01T10:24:40.000Z
2018-11-11T20:12:27.000Z
#include "pushquickview.h" #include <QQmlEngine> #include "pushdisplay.h" #include "RtMidi.h" #if defined(Q_OS_MAC) #define PUSH1_INPUT_PORT "Ableton Push User Port" #define PUSH1_OUTPUT_PORT "Ableton Push User Port" #define PUSH2_INPUT_PORT "Ableton Push 2 Live Port" #define PUSH2_OUTPUT_PORT "Ableton Push 2 Live Por...
37.841871
120
0.506562
[ "vector" ]
c3029197426089129a5323b3f62dae18a8718532
1,341
hpp
C++
library/number_theory/linear_sieve.hpp
fura2/competitive-programming-library
fc101651640ac5418155efce74f5ec103443bc8c
[ "MIT" ]
null
null
null
library/number_theory/linear_sieve.hpp
fura2/competitive-programming-library
fc101651640ac5418155efce74f5ec103443bc8c
[ "MIT" ]
null
null
null
library/number_theory/linear_sieve.hpp
fura2/competitive-programming-library
fc101651640ac5418155efce74f5ec103443bc8c
[ "MIT" ]
null
null
null
/* 線形篩 */ /* 説明 n 以下のすべての正整数に対して, その最小の素因数を求める 備考 https://cp-algorithms.com/algebra/prime-sieve-linear.html [ constructor ] 説明 なし 引数 n : 整数 制約 n >= 0 計算量 O(n) [ primes ] 説明 n 以下の素数のリストを求める 引数 なし 戻り値 n 以下の素数のリスト 制約 なし 計算量 O(1) [ is_prime ] 説明 a が素数かどうかを判定する 引数 a : 整数 戻り値 a が素...
12.190909
73
0.553318
[ "vector" ]
c3053901852a959f9154deb92905d96632654ff0
6,297
hpp
C++
include/initialGuess.hpp
mfkiwl/libparanumal
6f2382df19b43c02db15536220eab554e99fc539
[ "MIT" ]
102
2018-07-30T15:45:43.000Z
2022-02-09T18:38:51.000Z
include/initialGuess.hpp
mfkiwl/libparanumal
6f2382df19b43c02db15536220eab554e99fc539
[ "MIT" ]
65
2018-08-01T03:55:02.000Z
2022-03-29T14:52:58.000Z
include/initialGuess.hpp
mfkiwl/libparanumal
6f2382df19b43c02db15536220eab554e99fc539
[ "MIT" ]
45
2018-08-01T02:56:20.000Z
2022-03-11T20:39:07.000Z
/* The MIT License (MIT) Copyright (c) 2017 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus 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 limitatio...
36.398844
115
0.751787
[ "vector" ]
c30cc2eba58e38d8cf118c89672ef49a49cf3052
3,360
cpp
C++
src/Application.cpp
InversePalindrome/Rampancy
e228f8c16f0608b9f20a3904f4c5f19aa2076934
[ "MIT" ]
1
2018-03-23T02:25:24.000Z
2018-03-23T02:25:24.000Z
src/Application.cpp
InversePalindrome/Rampancy
e228f8c16f0608b9f20a3904f4c5f19aa2076934
[ "MIT" ]
null
null
null
src/Application.cpp
InversePalindrome/Rampancy
e228f8c16f0608b9f20a3904f4c5f19aa2076934
[ "MIT" ]
null
null
null
/* Copyright (c) 2017 InversePalindrome Rampancy - Application.cpp InversePalindrome.com */ #include "Application.hpp" #include "SplashState.hpp" #include <OGRE/OgreConfigFile.h> #include <OGRE/OgreResourceGroupManager.h> Application::Application() : root(new Ogre::Root()), window(nullptr),...
21.538462
116
0.624107
[ "render" ]
c315bfed7d75f016dc06feaa6dadcc70c9da575e
10,418
cpp
C++
examples/model_generate_example.cpp
mahilab/mahi-mpc
0f778b5884a5cd1b2b05cbfdcc343eecdb140d8c
[ "MIT" ]
null
null
null
examples/model_generate_example.cpp
mahilab/mahi-mpc
0f778b5884a5cd1b2b05cbfdcc343eecdb140d8c
[ "MIT" ]
null
null
null
examples/model_generate_example.cpp
mahilab/mahi-mpc
0f778b5884a5cd1b2b05cbfdcc343eecdb140d8c
[ "MIT" ]
null
null
null
#include <Mahi/Mpc/ModelGenerator.hpp> #include <Mahi/Util.hpp> using namespace casadi; using mahi::util::PI; int main(int argc, char* argv[]) { mahi::util::Options options("options.exe", "Simple Program Demonstrating Options"); options.add_options() ("d,dll", "Generate new dll.") ("s,s2", "u...
39.612167
395
0.571703
[ "vector", "model" ]
c315f5f5ab3f9b30a3f701457fe7775a25891339
22,164
cpp
C++
engine.cpp
jasonhutchens/kranzky_ice
8b1cf40f7948ac8811cdf49729d1df0acb7fc611
[ "Unlicense" ]
4
2016-06-05T04:36:12.000Z
2016-08-21T20:11:49.000Z
engine.cpp
kranzky/kranzky_ice
8b1cf40f7948ac8811cdf49729d1df0acb7fc611
[ "Unlicense" ]
null
null
null
engine.cpp
kranzky/kranzky_ice
8b1cf40f7948ac8811cdf49729d1df0acb7fc611
[ "Unlicense" ]
null
null
null
//============================================================================== #include <engine.hpp> #include <entity_manager.hpp> #include <splash.hpp> #include <credits.hpp> #include <menu.hpp> #include <menu_item.hpp> #include <tutorial.hpp> #include <game.hpp> #include <score.hpp> #include <debug.hpp> #include <...
25.953162
84
0.448069
[ "render", "vector" ]
c3160735b90df4b86730dc64715e91cbdcb41299
841
cpp
C++
Cplus/LargestMultipleofThree.cpp
JumHorn/leetcode
1447237ae8fc3920b19f60b30c71a84b088cc200
[ "MIT" ]
1
2018-01-22T12:06:28.000Z
2018-01-22T12:06:28.000Z
Cplus/LargestMultipleofThree.cpp
JumHorn/leetcode
1447237ae8fc3920b19f60b30c71a84b088cc200
[ "MIT" ]
null
null
null
Cplus/LargestMultipleofThree.cpp
JumHorn/leetcode
1447237ae8fc3920b19f60b30c71a84b088cc200
[ "MIT" ]
null
null
null
#include <algorithm> #include <string> #include <vector> using namespace std; class Solution { public: string largestMultipleOfThree(vector<int> &digits) { count = vector<int>(10); sum = 0; string res; for (auto n : digits) { ++count[n]; sum += n; } if (sum % 3 == 1) { if (!(f(1) || f(4) ||...
15.017857
51
0.464923
[ "vector" ]
c31e048a322ffb90eff44f9f7707d74c1a1d33d4
4,449
cpp
C++
InteractiveGraphics/InteractiveGraphics/cubemap.cpp
centauroWaRRIor/InteractiveGraphics
d37cfc3213b52cf3644980f5461e131e1839e0ee
[ "MIT" ]
4
2015-09-26T03:11:08.000Z
2020-07-10T04:51:07.000Z
InteractiveGraphics/InteractiveGraphics/cubemap.cpp
centauroWaRRIor/InteractiveGraphics
d37cfc3213b52cf3644980f5461e131e1839e0ee
[ "MIT" ]
null
null
null
InteractiveGraphics/InteractiveGraphics/cubemap.cpp
centauroWaRRIor/InteractiveGraphics
d37cfc3213b52cf3644980f5461e131e1839e0ee
[ "MIT" ]
null
null
null
#include "cubemap.h" CubeMap::CubeMap(const string & texFilename) { Texture masterTexObject(texFilename); envMapResWidth = masterTexObject.getTexWidth() / 3; envMapResHeight = masterTexObject.getTexHeight() / 4; float envMapResHfov = 90.0f; envMapN = 6; cubeMapFacesCams = new PPC*[envMapN]; cubeMapFaces = new T...
32.955556
116
0.693189
[ "3d" ]
c329e2c664ba8ef8d367439b97f335c7bfa69bf8
1,949
cpp
C++
src/voxelization.cpp
dendisuhubdy/MinkowskiEngine
a1cdcba68ef925bfefed2fe161f62e1ec78573b9
[ "MIT" ]
1
2019-05-12T00:06:10.000Z
2019-05-12T00:06:10.000Z
src/voxelization.cpp
dendisuhubdy/MinkowskiEngine
a1cdcba68ef925bfefed2fe161f62e1ec78573b9
[ "MIT" ]
null
null
null
src/voxelization.cpp
dendisuhubdy/MinkowskiEngine
a1cdcba68ef925bfefed2fe161f62e1ec78573b9
[ "MIT" ]
null
null
null
#include <cstdint> #include "utils.hpp" #include "voxelization.cuh" #include <pybind11/numpy.h> #include <pybind11/pybind11.h> namespace py = pybind11; std::vector<py::array_t<int>> SparseVoxelization(py::array_t<uint64_t, py::array::c_style> keys, py::array_t<int, py::array::c_style> labels, ...
37.480769
79
0.676244
[ "vector" ]
c32e8c68c5787b2489e8a3cdc5f83cb6fcf89008
2,574
cpp
C++
leetcode/find_minimum_in_rotated_sorted_array/main.cpp
yylzl/CodingMyWorld
a255e5c1fe3c2c5f0ffce17539b5b5b667511448
[ "Apache-2.0" ]
null
null
null
leetcode/find_minimum_in_rotated_sorted_array/main.cpp
yylzl/CodingMyWorld
a255e5c1fe3c2c5f0ffce17539b5b5b667511448
[ "Apache-2.0" ]
null
null
null
leetcode/find_minimum_in_rotated_sorted_array/main.cpp
yylzl/CodingMyWorld
a255e5c1fe3c2c5f0ffce17539b5b5b667511448
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include <sstream> #include <string> #include <cstdlib> #include <cstdio> #include <climits> #include <vector> #include <unordered_set> #include <unordered_map> #include <algorithm> #include <stack> using namespace std; class Solution { public: void findMin(vector<int>&nums, int start,...
23.614679
66
0.395882
[ "vector" ]
c33b64d95927ef3355a3e97bf5b0cfc0839e5bd4
3,520
cpp
C++
datasets/github_cpp_10/10/61.cpp
yijunyu/demo-fast
11c0c84081a3181494b9c469bda42a313c457ad2
[ "BSD-2-Clause" ]
1
2019-05-03T19:27:45.000Z
2019-05-03T19:27:45.000Z
datasets/github_cpp_10/10/61.cpp
yijunyu/demo-vscode-fast
11c0c84081a3181494b9c469bda42a313c457ad2
[ "BSD-2-Clause" ]
null
null
null
datasets/github_cpp_10/10/61.cpp
yijunyu/demo-vscode-fast
11c0c84081a3181494b9c469bda42a313c457ad2
[ "BSD-2-Clause" ]
null
null
null
#include "stdafx.h" #include "CppUnitTest.h" #include <vector> #include <algorithm> using namespace Microsoft::VisualStudio::CppUnitTestFramework; using namespace std; #if 0 namespace SPOJ { int EditDistance(const string& first, const string& second) { const string& shorter = (first.length() <= second.length()...
23.157895
113
0.623295
[ "vector" ]
c34c2cc55f0d1123f1d90621b1b6d5670115b095
3,408
hpp
C++
library/cgp/files/files.hpp
drohmer/CGP
3e7651649320d0bff19394ecd9546e872802c3e7
[ "MIT" ]
null
null
null
library/cgp/files/files.hpp
drohmer/CGP
3e7651649320d0bff19394ecd9546e872802c3e7
[ "MIT" ]
2
2022-03-03T16:34:03.000Z
2022-03-20T13:08:56.000Z
library/cgp/files/files.hpp
drohmer/CGP
3e7651649320d0bff19394ecd9546e872802c3e7
[ "MIT" ]
null
null
null
#pragma once #include "cgp/containers/containers.hpp" #include <string> #include <sstream> #include <fstream> namespace cgp { /** Ensure that a file already exists and is accessible * Display an error message with some reminder on path setting in case the file cannot be accessed */ void assert_file...
26.834646
109
0.685153
[ "vector" ]
c35644ebe72beb762d01a36c587b872ae314396c
197
cc
C++
packages/test-addon/test.cc
c0un7-z3r0/goingnative
bfdc437383df849f5f9aab6028933cb490eac272
[ "MIT" ]
null
null
null
packages/test-addon/test.cc
c0un7-z3r0/goingnative
bfdc437383df849f5f9aab6028933cb490eac272
[ "MIT" ]
1
2021-09-02T03:00:33.000Z
2021-09-02T03:00:33.000Z
packages/test-addon/test.cc
c0un7-z3r0/goingnative
bfdc437383df849f5f9aab6028933cb490eac272
[ "MIT" ]
null
null
null
#include <nan.h> using namespace v8; void Init(Handle<Object> exports) { Nan::Set(exports, Nan::New("test").ToLocalChecked(), Nan::New("OK").ToLocalChecked()); } NODE_MODULE(test, Init)
17.909091
54
0.670051
[ "object" ]
c35f1584fcb669aa5060d03b5f46728118c39894
2,186
hpp
C++
Tank/LinuxPWMDriver/LinuxPWMDriverComponentImpl.hpp
joekale/fprime
2d8231ed43316f886415fad65805f09860bda57a
[ "Apache-2.0" ]
1
2021-04-19T14:06:23.000Z
2021-04-19T14:06:23.000Z
Tank/LinuxPWMDriver/LinuxPWMDriverComponentImpl.hpp
joekale/fprime
2d8231ed43316f886415fad65805f09860bda57a
[ "Apache-2.0" ]
null
null
null
Tank/LinuxPWMDriver/LinuxPWMDriverComponentImpl.hpp
joekale/fprime
2d8231ed43316f886415fad65805f09860bda57a
[ "Apache-2.0" ]
null
null
null
// ====================================================================== // \title LinuxPWMDriverComponentImpl.hpp // \author joe // \brief hpp file for LinuxPWMDriver component implementation class // // \copyright // Copyright 2009-2015, by the California Institute of Technology. // ALL RIGHTS RESERVED. United St...
27.325
83
0.518298
[ "object" ]
c369ea95209b7f670b534e9cdcbc649de2a133a0
1,024
cpp
C++
42.Trapping Rain Water/main.cpp
Kingpie/leetcode
b5fd90a12f34f5baf24a3d4fa04c0914dd3e000f
[ "Apache-2.0" ]
null
null
null
42.Trapping Rain Water/main.cpp
Kingpie/leetcode
b5fd90a12f34f5baf24a3d4fa04c0914dd3e000f
[ "Apache-2.0" ]
null
null
null
42.Trapping Rain Water/main.cpp
Kingpie/leetcode
b5fd90a12f34f5baf24a3d4fa04c0914dd3e000f
[ "Apache-2.0" ]
null
null
null
/*Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. The above elevation map is represented by array [0,1,0,2,1,0,1,3,2,1,2,1]. In this case, 6 units of rain water (blue section) are being trapped. Thanks Marcos for co...
26.947368
187
0.571289
[ "vector" ]
c373ef828e781f6552ce3c5dd6bbdbf50b228e93
9,129
cpp
C++
test/test_instruction.cpp
stfnwong/z8t
f1721671886d312f23bc34ba48b313f57b0be75c
[ "MIT" ]
null
null
null
test/test_instruction.cpp
stfnwong/z8t
f1721671886d312f23bc34ba48b313f57b0be75c
[ "MIT" ]
null
null
null
test/test_instruction.cpp
stfnwong/z8t
f1721671886d312f23bc34ba48b313f57b0be75c
[ "MIT" ]
null
null
null
/* * TEST_INSTRUCTION */ #define CATCH_CONFIG_MAIN #include "catch/catch.hpp" #include <iostream> #include <iomanip> #include <vector> #include <string> #include "Instruction.hpp" TEST_CASE("test_all_instructions", "[sanity]") { const std::vector<LineInfo> input_instrs = { // adds LineInfo(...
75.446281
121
0.617702
[ "vector" ]
c3803833941493ca1f21dada2f61f1a72dd76eaa
8,441
cpp
C++
vtkMAF/Testing/vtkMAFTextActorMeterTest.cpp
FusionBox2/MAF2
b576955f4f6b954467021f12baedfebcaf79a382
[ "Apache-2.0" ]
1
2018-01-23T09:13:40.000Z
2018-01-23T09:13:40.000Z
vtkMAF/Testing/vtkMAFTextActorMeterTest.cpp
gradicosmo/MAF2
86ddf1f52a2de4479c09fd3f43dc321ff412af42
[ "Apache-2.0" ]
null
null
null
vtkMAF/Testing/vtkMAFTextActorMeterTest.cpp
gradicosmo/MAF2
86ddf1f52a2de4479c09fd3f43dc321ff412af42
[ "Apache-2.0" ]
3
2020-09-24T16:04:53.000Z
2020-09-24T16:50:30.000Z
/*========================================================================= Program: MAF2 Module: vtkMAFTextActorMeterTest Authors: Daniele Giunchi Copyright (c) B3C All rights reserved. See Copyright.txt or http://www.scsitaly.com/Copyright.htm for details. This software is distributed WITHOUT ANY WARRANTY;...
27.229032
105
0.590451
[ "render" ]
c385c85f7f66638b49cdb780ffd6ebaa5f36bcdd
5,043
cpp
C++
Firmware/src/commands.cpp
SFaull/SerialDisplay
8fb8e6ad34f284d9adb31111ee64d01662ca5245
[ "Unlicense" ]
null
null
null
Firmware/src/commands.cpp
SFaull/SerialDisplay
8fb8e6ad34f284d9adb31111ee64d01662ca5245
[ "Unlicense" ]
null
null
null
Firmware/src/commands.cpp
SFaull/SerialDisplay
8fb8e6ad34f284d9adb31111ee64d01662ca5245
[ "Unlicense" ]
null
null
null
#include <SerialCommand.h> #include <TFT_eSPI.h> // Hardware-specific library #include "commands.h" #include "image.h" #define DISPLAY_WIDTH 240 #define DISPLAY_HEIGHT 240 #define DISPLAY_PIXELS (DISPLAY_WIDTH * DISPLAY_HEIGHT) #define MAX_DISPLAY_BLOCK_SIZE 110 #define MAX_DISPLAY_BLOCK_PIXELS (MAX_...
26.129534
102
0.606583
[ "object" ]
c3873745f375a97f91a40492a9dc52e2d8715e90
14,632
cpp
C++
src/prod/src/api/wrappers/ComInfrastructureServiceAgent.cpp
AnthonyM/service-fabric
c396ea918714ea52eab9c94fd62e018cc2e09a68
[ "MIT" ]
2,542
2018-03-14T21:56:12.000Z
2019-05-06T01:18:20.000Z
src/prod/src/api/wrappers/ComInfrastructureServiceAgent.cpp
AnthonyM/service-fabric
c396ea918714ea52eab9c94fd62e018cc2e09a68
[ "MIT" ]
994
2019-05-07T02:39:30.000Z
2022-03-31T13:23:04.000Z
src/prod/src/api/wrappers/ComInfrastructureServiceAgent.cpp
AnthonyM/service-fabric
c396ea918714ea52eab9c94fd62e018cc2e09a68
[ "MIT" ]
300
2018-03-14T21:57:17.000Z
2019-05-06T20:07:00.000Z
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using nam...
35.257831
153
0.704825
[ "vector" ]
c3a2bf467cacdb277541deb44b6ad0556e4201e1
6,034
cpp
C++
framework/areg/base/private/Object.cpp
Ali-Nasrolahi/areg-sdk
4fbc2f2644220196004a31672a697a864755f0b6
[ "Apache-2.0" ]
70
2021-07-20T11:26:16.000Z
2022-03-27T11:17:43.000Z
framework/areg/base/private/Object.cpp
Ali-Nasrolahi/areg-sdk
4fbc2f2644220196004a31672a697a864755f0b6
[ "Apache-2.0" ]
32
2021-07-31T05:20:44.000Z
2022-03-20T10:11:52.000Z
framework/areg/base/private/Object.cpp
Ali-Nasrolahi/areg-sdk
4fbc2f2644220196004a31672a697a864755f0b6
[ "Apache-2.0" ]
40
2021-11-02T09:45:38.000Z
2022-03-27T11:17:46.000Z
/************************************************************************ * This file is part of the AREG SDK core engine. * AREG SDK is dual-licensed under Free open source (Apache version 2.0 * License) and Commercial (with various pricing models) licenses, depending * on the nature of the project (commercial, re...
23.662745
132
0.557839
[ "object" ]
c3a3e6b787e7fbf9ebf1a63fad961b7a79bc8952
1,578
hpp
C++
include/dish2/run/setup_thread_local_random.hpp
mmore500/dishtiny
9fcb52c4e56c74a4e17f7d577143ed40c158c92e
[ "MIT" ]
29
2019-02-04T02:39:52.000Z
2022-01-28T10:06:26.000Z
include/dish2/run/setup_thread_local_random.hpp
mmore500/dishtiny
9fcb52c4e56c74a4e17f7d577143ed40c158c92e
[ "MIT" ]
95
2020-02-22T19:48:14.000Z
2021-09-14T19:17:53.000Z
include/dish2/run/setup_thread_local_random.hpp
mmore500/dishtiny
9fcb52c4e56c74a4e17f7d577143ed40c158c92e
[ "MIT" ]
6
2019-11-19T10:13:09.000Z
2021-03-25T17:35:32.000Z
#pragma once #ifndef DISH2_RUN_SETUP_THREAD_LOCAL_RANDOM_HPP_INCLUDE #define DISH2_RUN_SETUP_THREAD_LOCAL_RANDOM_HPP_INCLUDE #include <iostream> #include <limits> #include "../../../third-party/conduit/include/uitsl/debug/safe_cast.hpp" #include "../../../third-party/conduit/include/uitsl/mpi/comm_utils.hpp" #include...
31.56
88
0.721166
[ "vector" ]
c3a48fc946a0786051e7bfe47040d88562d20e85
15,999
cpp
C++
lib/MemoryAnalysisModules/CallsiteBreadthCombinator.cpp
sgh185/SCAF
715a5e50fca0fbff2dc8e3cddafa2d71ae7aa018
[ "MIT" ]
22
2020-08-01T18:09:11.000Z
2022-03-22T08:56:05.000Z
lib/MemoryAnalysisModules/CallsiteBreadthCombinator.cpp
sgh185/SCAF
715a5e50fca0fbff2dc8e3cddafa2d71ae7aa018
[ "MIT" ]
4
2021-02-23T01:27:53.000Z
2021-04-19T22:11:39.000Z
lib/MemoryAnalysisModules/CallsiteBreadthCombinator.cpp
sgh185/SCAF
715a5e50fca0fbff2dc8e3cddafa2d71ae7aa018
[ "MIT" ]
4
2020-09-17T17:24:22.000Z
2022-03-22T09:12:19.000Z
#define DEBUG_TYPE "callsite-breadth-combinator-aa" #include "scaf/MemoryAnalysisModules/FindSource.h" #include "scaf/MemoryAnalysisModules/Introspection.h" #include "scaf/MemoryAnalysisModules/KillFlow.h" #include "scaf/MemoryAnalysisModules/LoopAA.h" #include "scaf/MemoryAnalysisModules/QueryCacheing.h" #include "sc...
31.43222
80
0.599787
[ "transform" ]
c3a4ca60adbbc34a905140f5ffb042c8593aec34
9,098
cpp
C++
AfxHookGoldSrc/enthack.cpp
markusforss/advancedfx
0c427594e23c30b88081139c6b80f2688b7c211f
[ "MIT" ]
339
2018-01-09T13:12:38.000Z
2022-03-22T21:25:59.000Z
AfxHookGoldSrc/enthack.cpp
markusforss/advancedfx
0c427594e23c30b88081139c6b80f2688b7c211f
[ "MIT" ]
474
2018-01-01T18:58:41.000Z
2022-03-27T11:09:44.000Z
AfxHookGoldSrc/enthack.cpp
markusforss/advancedfx
0c427594e23c30b88081139c6b80f2688b7c211f
[ "MIT" ]
77
2018-01-24T11:47:04.000Z
2022-03-30T12:25:59.000Z
// BEGIN HLSDK includes // // HACK: prevent cldll_int.h from messing the HSPRITE definition, // HLSDK's HSPRITE --> MDTHACKED_HSPRITE #pragma push_macro("HSPRITE") #define HSPRITE MDTHACKED_HSPRITE // #include <wrect.h> #include <cl_dll.h> #include <cdll_int.h> #include <edict.h> // #undef HSPRITE #pragma ...
35.818898
89
0.739173
[ "vector" ]
c3abd8ad73d91c37c5946576a1da5a0643b8825d
1,374
cpp
C++
aws-cpp-sdk-fsx/source/model/FileSystemEndpoints.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-02-12T08:09:30.000Z
2022-02-12T08:09:30.000Z
aws-cpp-sdk-fsx/source/model/FileSystemEndpoints.cpp
perfectrecall/aws-sdk-cpp
fb8cbebf2fd62720b65aeff841ad2950e73d8ebd
[ "Apache-2.0" ]
1
2022-01-03T23:59:37.000Z
2022-01-03T23:59:37.000Z
aws-cpp-sdk-fsx/source/model/FileSystemEndpoints.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2021-11-09T11:58:03.000Z
2021-11-09T11:58:03.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/fsx/model/FileSystemEndpoints.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { names...
18.32
72
0.732169
[ "model" ]
c3abdd026371e4cf676d1d8cb8b021dbe826d6cc
5,945
hh
C++
src/objects/object.hh
Cc618/Riddim
da79694b78f854a075632d36e1bd9fa70d744ef2
[ "MIT" ]
7
2021-06-20T13:40:28.000Z
2022-01-05T15:49:53.000Z
src/objects/object.hh
Cc618/Riddim
da79694b78f854a075632d36e1bd9fa70d744ef2
[ "MIT" ]
null
null
null
src/objects/object.hh
Cc618/Riddim
da79694b78f854a075632d36e1bd9fa70d744ef2
[ "MIT" ]
1
2021-06-27T12:53:20.000Z
2021-06-27T12:53:20.000Z
#pragma once // The base object class #include "gc.hh" #include "utils.hh" #include <iterator> #include <vector> #include <unordered_map> struct Type; struct Object; // Whether it is a type object bool is_type(Object *o); // Function that calls the visitor on all objects to traverse typedef std::function<void(Obje...
24.068826
87
0.678217
[ "object", "vector" ]
ce79432dfe85c6130a69388950eefda519c5d852
754
cpp
C++
model/nullmodel.cpp
OpenTactile/ScratchyShow
475c460a5f7280092afc90e8b53c1c868af8b155
[ "MIT" ]
3
2017-11-17T11:48:51.000Z
2018-04-25T14:39:20.000Z
model/nullmodel.cpp
OpenTactile/ScratchyShow
475c460a5f7280092afc90e8b53c1c868af8b155
[ "MIT" ]
null
null
null
model/nullmodel.cpp
OpenTactile/ScratchyShow
475c460a5f7280092afc90e8b53c1c868af8b155
[ "MIT" ]
null
null
null
#include "nullmodel.h" #include "model/tactiledisplay.h" #include <scratchy/positionquery.h> NullModel::NullModel() { } NullModel::~NullModel() { } void NullModel::initialize(const QStringList& options, PositionQuery* position, QRectF bounds) { Q_UNUSED(options) Q_UNUSED(bounds) this->position = posit...
17.952381
94
0.636605
[ "model" ]
ce7b84a65ddf2b27c4fe6d3db14fcb45de3cb5b0
15,269
cpp
C++
c_src/lib/wm_job.cpp
skyworkflows/swm-core
5e5de1bdb1740d773a5285b352976c5f64a30688
[ "BSD-3-Clause" ]
4
2021-04-04T18:34:47.000Z
2021-08-25T13:26:45.000Z
c_src/lib/wm_job.cpp
skyworkflows/swm-core
5e5de1bdb1740d773a5285b352976c5f64a30688
[ "BSD-3-Clause" ]
null
null
null
c_src/lib/wm_job.cpp
skyworkflows/swm-core
5e5de1bdb1740d773a5285b352976c5f64a30688
[ "BSD-3-Clause" ]
1
2021-08-25T13:26:49.000Z
2021-08-25T13:26:49.000Z
#include "wm_entity_utils.h" #include <iostream> #include "wm_job.h" #include <erl_interface.h> #include <ei.h> #include "wm_resource.h" using namespace swm; SwmJob::SwmJob() { } SwmJob::SwmJob(ETERM *term) { if(!term) { std::cerr << "Cannot convert ETERM to SwmJob: empty" << std::endl; return; } ...
25.662185
82
0.643919
[ "vector" ]
ce816d45c24d0763d07b99c90b7b661041629001
4,885
cpp
C++
src/main.cpp
blighli/MyGame
6cfb7f7e1ceec1ae9f3330eec2115b7733679f06
[ "MIT" ]
null
null
null
src/main.cpp
blighli/MyGame
6cfb7f7e1ceec1ae9f3330eec2115b7733679f06
[ "MIT" ]
null
null
null
src/main.cpp
blighli/MyGame
6cfb7f7e1ceec1ae9f3330eec2115b7733679f06
[ "MIT" ]
null
null
null
#include <iostream> #include <GL/glew.h> #include <GLFW/glfw3.h> #include "WindowManager.h" #include "ShaderProgram.h" #include "ModelObject.h" #include <glm/glm.hpp> #include <glm/ext.hpp> #include <FreeImage/FreeImage.h> void bindObject(ModelObject& object){ GLuint vao; glGenVertexArrays(1, &vao); ob...
31.516129
124
0.649335
[ "object", "model" ]
ce83aab0246a75871e87ef2448de9ca490e3754e
2,268
cpp
C++
functions.cpp
ronyadin/msse-cpp-lessons
af60944d2a8f28b65f52dea1531b45112ae36d15
[ "MIT" ]
null
null
null
functions.cpp
ronyadin/msse-cpp-lessons
af60944d2a8f28b65f52dea1531b45112ae36d15
[ "MIT" ]
null
null
null
functions.cpp
ronyadin/msse-cpp-lessons
af60944d2a8f28b65f52dea1531b45112ae36d15
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <stdexcept> /* void say_something(void) { std::cout << "Something!" << std::endl; return; // returns nothing. like void, } int main(void) { const double pi = 3.1415; double pi2 = 2.0 * pi; std::cout << pi2 << std::endl; return 0; } int main(void)...
24.652174
77
0.605379
[ "vector" ]
ce8419d8680327f322f7920c38ef85b591c2c277
2,562
hpp
C++
src/ast.hpp
rytar/QiR
d26616c800d02d4a9a10301456d2bb6fcbee02e0
[ "MIT" ]
null
null
null
src/ast.hpp
rytar/QiR
d26616c800d02d4a9a10301456d2bb6fcbee02e0
[ "MIT" ]
null
null
null
src/ast.hpp
rytar/QiR
d26616c800d02d4a9a10301456d2bb6fcbee02e0
[ "MIT" ]
null
null
null
#ifndef QIRAST #define QIRAST #define BOOST_SPIRIT_USE_PHOENIX_V3 1 #include <vector> #include <boost/spirit/include/qi.hpp> #include <boost/spirit/include/phoenix.hpp> #include <boost/fusion/include/std_tuple.hpp> #include <boost/variant.hpp> using namespace boost::spirit; namespace phx = boost::phoenix; namespace ...
23.722222
110
0.62256
[ "vector" ]
ce84af83b6f4cdb0a0e901afc594c5fec6124ca1
45,486
inl
C++
shared/Base/Utility.inl
dracc/VCMP-SqMod
d3e6adea147f5b2cae5119ddd6028833aa625c09
[ "MIT" ]
null
null
null
shared/Base/Utility.inl
dracc/VCMP-SqMod
d3e6adea147f5b2cae5119ddd6028833aa625c09
[ "MIT" ]
null
null
null
shared/Base/Utility.inl
dracc/VCMP-SqMod
d3e6adea147f5b2cae5119ddd6028833aa625c09
[ "MIT" ]
null
null
null
// ------------------------------------------------------------------------------------------------ #include "Base/Utility.hpp" #include "Base/Buffer.hpp" // ------------------------------------------------------------------------------------------------ #include <ctime> #include <cfloat> #include <cstdio> #include <c...
31.261856
114
0.522798
[ "object", "transform" ]
ce91ab8f08971e31f396d6f39996e21478e48cdf
16,768
cpp
C++
jam/src/SkinnedModel.cpp
gzito/jamengine
451ab1e1d74231a3239a56aed4c40dc445fa6db8
[ "MIT" ]
null
null
null
jam/src/SkinnedModel.cpp
gzito/jamengine
451ab1e1d74231a3239a56aed4c40dc445fa6db8
[ "MIT" ]
null
null
null
jam/src/SkinnedModel.cpp
gzito/jamengine
451ab1e1d74231a3239a56aed4c40dc445fa6db8
[ "MIT" ]
null
null
null
/********************************************************************************** * * SkinnedModel.cpp * * This file is part of Jam * * Copyright (c) 2014-2019 Giovanni Zito. * Copyright (c) 2014-2019 Jam contributors (cf. AUTHORS.md) * * Permission is hereby granted, free of charge, to any person obtaining a cop...
31.283582
156
0.681238
[ "mesh", "vector", "model", "transform" ]
ce9a1ec047598aca4405068bc8111893b9d36840
3,526
cpp
C++
examples/04-model/main.cpp
NongusStudios/shard
f5727ad45fd47b03ab93947f401c5c916b65be8a
[ "Apache-2.0" ]
1
2022-03-11T08:54:55.000Z
2022-03-11T08:54:55.000Z
examples/04-model/main.cpp
NongusStudios/shard
f5727ad45fd47b03ab93947f401c5c916b65be8a
[ "Apache-2.0" ]
null
null
null
examples/04-model/main.cpp
NongusStudios/shard
f5727ad45fd47b03ab93947f401c5c916b65be8a
[ "Apache-2.0" ]
null
null
null
#include <shard/gfx/gfx.hpp> #include <shard/gfx/model.hpp> #include <shard/time/time.hpp> struct UBO{ glm::mat4 proj; glm::mat4 model; }; int main(){ shard::Time time = {}; shard::gfx::ModelLoader loader("examples/04-model/model.obj"); glfwInit(); glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API)...
35.979592
113
0.614577
[ "vector", "model" ]
ce9e014b6f0deaad38b78d150afafe77ad428c47
84
cpp
C++
src/TTPInstance.cpp
jakobbossek/TTP
40c07210a206c80fa710e9ec8fc5ffe767b04d7d
[ "BSD-2-Clause" ]
1
2021-04-01T08:42:05.000Z
2021-04-01T08:42:05.000Z
src/TTPInstance.cpp
jakobbossek/ttp
40c07210a206c80fa710e9ec8fc5ffe767b04d7d
[ "BSD-2-Clause" ]
6
2020-04-01T06:48:02.000Z
2020-04-01T07:00:02.000Z
src/TTPInstance.cpp
jakobbossek/TTP
40c07210a206c80fa710e9ec8fc5ffe767b04d7d
[ "BSD-2-Clause" ]
null
null
null
#include "TTPInstance.h" #include <iostream> #include <vector> #include <algorithm>
16.8
24
0.75
[ "vector" ]
cea0836a7734f4baff0e48d0cda5cb416c61fce1
615
cpp
C++
tests/OpenGLTriangle.cpp
inugami-dev64/deng
96e5bc4c9c9a91aa46cb7c71927853b0a764f7d9
[ "Apache-2.0" ]
null
null
null
tests/OpenGLTriangle.cpp
inugami-dev64/deng
96e5bc4c9c9a91aa46cb7c71927853b0a764f7d9
[ "Apache-2.0" ]
null
null
null
tests/OpenGLTriangle.cpp
inugami-dev64/deng
96e5bc4c9c9a91aa46cb7c71927853b0a764f7d9
[ "Apache-2.0" ]
null
null
null
// DENG: dynamic engine - small but powerful 3D game engine // licence: Apache, see LICENCE file // file: OpenGLTriangle.cpp - Testing application that display's UV mapped triangle using OpenGL backend // author: Karl-Mihkel Ott #define USE_OPENGL #include "TriangleApp.h" int main() { DENG::Window win = DENG::Wi...
34.166667
114
0.721951
[ "3d" ]
cea32dd3266c96ff1fdddeb4e8b68667c9f202ce
6,601
hpp
C++
PSME/common/agent-framework/include/agent-framework/module/model/logical_drive.hpp
opencomputeproject/HWMgmt-DeviceMgr-PSME
2a00188aab6f4bef3776987f0842ef8a8ea972ac
[ "Apache-2.0" ]
5
2021-10-07T15:36:37.000Z
2022-03-01T07:21:49.000Z
PSME/common/agent-framework/include/agent-framework/module/model/logical_drive.hpp
opencomputeproject/DM-Redfish-PSME
912f7b6abf5b5c2aae33c75497de4753281c6a51
[ "Apache-2.0" ]
null
null
null
PSME/common/agent-framework/include/agent-framework/module/model/logical_drive.hpp
opencomputeproject/DM-Redfish-PSME
912f7b6abf5b5c2aae33c75497de4753281c6a51
[ "Apache-2.0" ]
1
2021-03-24T19:37:58.000Z
2021-03-24T19:37:58.000Z
/*! * @copyright * Copyright (c) 2015-2017 Intel Corporation * * @copyright * 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 * * @copyright * http://www.apache.org/licenses/LICENSE-...
23.744604
92
0.652931
[ "object", "model", "transform" ]
ceab9bbf2ee79527466cc99a2a4aef8f5d526b6d
5,337
cpp
C++
SOURCES/graphics/objects/drawtrcr_dx.cpp
IsraelyFlightSimulator/Negev-Storm
86de63e195577339f6e4a94198bedd31833a8be8
[ "Unlicense" ]
1
2021-02-19T06:06:31.000Z
2021-02-19T06:06:31.000Z
src/graphics/objects/drawtrcr_dx.cpp
markbb1957/FFalconSource
07b12e2c41a93fa3a95b912a2433a8056de5bc4d
[ "BSD-2-Clause" ]
null
null
null
src/graphics/objects/drawtrcr_dx.cpp
markbb1957/FFalconSource
07b12e2c41a93fa3a95b912a2433a8056de5bc4d
[ "BSD-2-Clause" ]
2
2019-08-20T13:35:13.000Z
2021-04-24T07:32:04.000Z
#include "TimeMgr.h" #include "TOD.h" #include "RenderOW.h" #include "RViewPnt.h" #include "Tex.h" #include "falclib\include\fakerand.h" #include "Drawtrcr.h" #include "Draw2d.h" #include "Graphics\DXEngine\DXTools.h" #include "Graphics\DXEngine\DXDefines.h" #include "Graphics\DXEngine\DXEngine.h" #include "Graphics\D...
31.394118
151
0.570358
[ "vector" ]
ceacce6992897fc9531eec604ac1f160f60e3328
5,296
cpp
C++
C++/BitwiseAutomation/src/AutomationExtender.cpp
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
C++/BitwiseAutomation/src/AutomationExtender.cpp
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
C++/BitwiseAutomation/src/AutomationExtender.cpp
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
1
2020-08-16T00:11:55.000Z
2020-08-16T00:11:55.000Z
/* AutomationExtender.cpp */ //================================================================================ // BOOST SOFTWARE LICENSE // // Copyright 2020 BitWise Laboratories Inc. // Author.......Jim Waschura // Contact......info@bitwiselabs.com // //Permission is hereby granted, free of charge, to any person or o...
29.422222
134
0.702039
[ "object" ]
ceb1e41301c46cae2292fcb3ef4e04a532dc9f0a
8,400
cpp
C++
min_heap/min_heap.cpp
sammaniamsam/algorithm-drawer
b74848cf3734dbcb1c92656c6f8837538246446f
[ "MIT" ]
null
null
null
min_heap/min_heap.cpp
sammaniamsam/algorithm-drawer
b74848cf3734dbcb1c92656c6f8837538246446f
[ "MIT" ]
null
null
null
min_heap/min_heap.cpp
sammaniamsam/algorithm-drawer
b74848cf3734dbcb1c92656c6f8837538246446f
[ "MIT" ]
null
null
null
//==================================================================== // min_heap.cpp // Author: sammaniamsam //==================================================================== #include "min_heap.h" //--------------------------------- //--------------------------------- //--------------------------------- //-----...
28.965517
101
0.524286
[ "vector" ]
ceb562fe9531407f067ab8b4d111eaac411fd28c
17,210
cpp
C++
src/format/vobj.cpp
Eisenwave/voxel-io
d902568de2d4afda254e533a5ee9e4ad5fe7d2be
[ "MIT" ]
12
2020-06-25T13:40:22.000Z
2021-12-06T04:00:29.000Z
src/format/vobj.cpp
Eisenwave/voxel-io
d902568de2d4afda254e533a5ee9e4ad5fe7d2be
[ "MIT" ]
2
2021-02-04T16:19:40.000Z
2021-06-25T09:39:20.000Z
src/format/vobj.cpp
Eisenwave/voxel-io
d902568de2d4afda254e533a5ee9e4ad5fe7d2be
[ "MIT" ]
null
null
null
#include "voxelio/format/vobj.hpp" #include "voxelio/color.hpp" #include "voxelio/macro.hpp" #include "voxelio/stringify.hpp" #include <cstdint> #include <cstring> #include <memory> #include <unordered_set> namespace voxelio::vobj { VobjWriteHelper::OffsetGuard::OffsetGuard(VobjWriteHelper *parent, Vec3i64 offset)...
28.92437
120
0.623998
[ "model", "transform" ]
cebf233ec8bcd78c216693e3eefab2ba47fd083e
522
cpp
C++
Visitor/C++/Renderer.cpp
Ghabriel/DesignPatterns
d2a1933e3c75e4f48d0dae52795018012e17d22b
[ "Apache-2.0" ]
null
null
null
Visitor/C++/Renderer.cpp
Ghabriel/DesignPatterns
d2a1933e3c75e4f48d0dae52795018012e17d22b
[ "Apache-2.0" ]
null
null
null
Visitor/C++/Renderer.cpp
Ghabriel/DesignPatterns
d2a1933e3c75e4f48d0dae52795018012e17d22b
[ "Apache-2.0" ]
null
null
null
#include <iostream> #include "Renderer.hpp" #include "DrawableShape.hpp" #include "Point.hpp" #include "Line.hpp" void Renderer::addShape(const DrawableShape& shape) { shapes.push_back(shape); } void Renderer::drawAll() const { for (auto& shape : shapes) { shape.get().draw(*this); } } void Rend...
20.076923
56
0.643678
[ "shape" ]