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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7a08d9381f44ca79b1933dcaba4489bc0af73e2b | 16,905 | cpp | C++ | src/VkRenderPass.cpp | HumpaLumpa007/LowPolyEngine | 800cfa84f6113424a2643a4a99fe214195e45cd5 | [
"MIT"
] | 6 | 2017-11-20T15:10:17.000Z | 2018-03-07T14:59:25.000Z | src/VkRenderPass.cpp | ClemensGerstung/LowPolyEngine | 800cfa84f6113424a2643a4a99fe214195e45cd5 | [
"MIT"
] | null | null | null | src/VkRenderPass.cpp | ClemensGerstung/LowPolyEngine | 800cfa84f6113424a2643a4a99fe214195e45cd5 | [
"MIT"
] | 1 | 2021-03-03T12:09:42.000Z | 2021-03-03T12:09:42.000Z | #include "VkRenderPass.h"
lpe::rendering::Attachment::Attachment(const vk::ImageView& imageView,
uint32_t index,
vk::ImageLayout layout,
const vk::AttachmentDescriptionFlags& flags,
... | 35.664557 | 117 | 0.577048 | [
"vector"
] |
7a09eaca4652c76372fa29107e0e185b21d765f3 | 4,337 | cc | C++ | src/support.cc | TerenceWangh/leetcode | a6287d3928fb7114c39a430d149879ca8fa71020 | [
"MIT"
] | 3 | 2018-12-06T10:49:01.000Z | 2020-12-15T18:30:09.000Z | src/support.cc | TerenceWangh/leetcode | a6287d3928fb7114c39a430d149879ca8fa71020 | [
"MIT"
] | null | null | null | src/support.cc | TerenceWangh/leetcode | a6287d3928fb7114c39a430d149879ca8fa71020 | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <algorithm>
#include <queue>
#include "support.h"
using std::string;
using std::stringstream;
using std::vector;
int stringToInteger(string input)
{
return stoi(input);
}
double stringToDouble(string input)
{
... | 19.624434 | 80 | 0.551533 | [
"vector"
] |
7a134d9895640a2cb0ea334a8b7e07509de9728c | 989 | cpp | C++ | the-skyline-problem-test.cpp | cfriedt/leetcode | ad15031b407b895f12704897eb81042d7d56d07d | [
"MIT"
] | 1 | 2021-01-20T16:04:54.000Z | 2021-01-20T16:04:54.000Z | the-skyline-problem-test.cpp | cfriedt/leetcode | ad15031b407b895f12704897eb81042d7d56d07d | [
"MIT"
] | 293 | 2018-11-29T14:54:29.000Z | 2021-01-29T16:07:26.000Z | the-skyline-problem-test.cpp | cfriedt/leetcode | ad15031b407b895f12704897eb81042d7d56d07d | [
"MIT"
] | 1 | 2020-11-10T10:49:12.000Z | 2020-11-10T10:49:12.000Z | /*
* Copyright (c) 2021, Christopher Friedt
*
* SPDX-License-Identifier: MIT
*/
#include <gtest/gtest.h>
#include "the-skyline-problem.cpp"
using namespace std;
TEST(TheSkylineProblem, 2_9_10__3_7_15__5_12_12__15_20_10__19_24_8) {
vector<vector<int>> buildings = {
{2, 9, 10}, {3, 7, 15}, {5, 12, 12}, {1... | 29.088235 | 70 | 0.632963 | [
"vector"
] |
7a238de9cddf489b83a149fbeabb63be8a83c503 | 2,093 | cpp | C++ | net.ssa/AlexRR_Editor/UI_RControl.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | AlexRR_Editor/UI_RControl.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | null | null | null | AlexRR_Editor/UI_RControl.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | //----------------------------------------------------
// file: UI_RControl.cpp
//----------------------------------------------------
#include "Pch.h"
#pragma hdrstop
#include "NetDeviceLog.h"
#include "UI_Main.h"
//----------------------------------------------------
UI_RControl::UI_RControl()
:UI_V... | 22.031579 | 55 | 0.52795 | [
"transform"
] |
7a239233b0abd491116a79fbd7a448c53f8e2adc | 7,006 | cpp | C++ | MonoNative.Tests/mscorlib/System/Diagnostics/SymbolStore/mscorlib_System_Diagnostics_SymbolStore_ISymbolWriter_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative.Tests/mscorlib/System/Diagnostics/SymbolStore/mscorlib_System_Diagnostics_SymbolStore_ISymbolWriter_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative.Tests/mscorlib/System/Diagnostics/SymbolStore/mscorlib_System_Diagnostics_SymbolStore_ISymbolWriter_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | // Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System.Diagnostics.SymbolStore
// Name: ISymbolWriter
// C++ Typed Name: mscorlib::System::Diagnostics::SymbolStore::ISymbolWriter
#include <gtest/gtest.h>
#include <mscorlib/System/Diagnostic... | 36.113402 | 408 | 0.748787 | [
"vector"
] |
7a2b538961f79db615da2cd956d8b1a4d8043ecc | 701 | cpp | C++ | leetcode_0044_字符串_动态规划.cpp | xiaoxiaoxiang-Wang/01-leetcode | 5a9426dd70c3dd6725444783aaa8cefc27196779 | [
"MIT"
] | null | null | null | leetcode_0044_字符串_动态规划.cpp | xiaoxiaoxiang-Wang/01-leetcode | 5a9426dd70c3dd6725444783aaa8cefc27196779 | [
"MIT"
] | null | null | null | leetcode_0044_字符串_动态规划.cpp | xiaoxiaoxiang-Wang/01-leetcode | 5a9426dd70c3dd6725444783aaa8cefc27196779 | [
"MIT"
] | null | null | null | class Solution {
public:
bool isMatch(string s, string p) {
int m = s.length();
int n = p.length();
vector<vector<bool>> dp(m+1,vector<bool>(n+1));
// dp[i][j]表示s的前i个字符和p的前j个字符是否匹配
dp[0][0] = true;
for (int i=1; i<=n; i++) {
if(p[i-1]=='*') {
dp[0][i] = true;
... | 26.961538 | 74 | 0.342368 | [
"vector"
] |
7a3134604ff9a39126a5387b6400e70bdbe4784c | 20,907 | cc | C++ | src/live.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | null | null | null | src/live.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | null | null | null | src/live.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | 2 | 2019-11-12T23:15:18.000Z | 2020-01-15T17:49:27.000Z | // Singleplayer game template.
#define SINGLE_PLAYER
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include <queue>
#include <functional>
#include <optional>
#include "math/math.cc"
#include "renderer/renderer.cc"
#include "renderer/camera.cc"
#include "renderer/imui.cc"
#include "animation/fsm.... | 30.212428 | 128 | 0.630028 | [
"render",
"vector"
] |
7a32a83674649b956674bb82384129d8c8b8ea53 | 8,660 | hpp | C++ | include/lemon/select.hpp | frodofine/lemon | f874857cb8f1851313257b25681ad2a254ada8dc | [
"BSD-3-Clause"
] | 43 | 2018-07-21T22:08:48.000Z | 2022-03-23T22:19:02.000Z | include/lemon/select.hpp | frodofine/lemon | f874857cb8f1851313257b25681ad2a254ada8dc | [
"BSD-3-Clause"
] | 22 | 2018-08-01T19:13:11.000Z | 2020-06-02T17:04:03.000Z | include/lemon/select.hpp | frodofine/lemon | f874857cb8f1851313257b25681ad2a254ada8dc | [
"BSD-3-Clause"
] | 9 | 2018-07-21T19:13:55.000Z | 2020-12-22T09:12:43.000Z | #ifndef LEMON_SELECT_HPP
#define LEMON_SELECT_HPP
#include <vector>
#include <unordered_set>
#include <string>
#include <cstdint>
#include "lemon/external/gaurd.hpp"
LEMON_EXTERNAL_FILE_PUSH
#include <chemfiles/Frame.hpp>
LEMON_EXTERNAL_FILE_POP
#include "lemon/constants.hpp"
#include "lemon/residue_name.hpp"
name... | 32.80303 | 88 | 0.667552 | [
"vector"
] |
7a338fe051ce27081ce702c0dcd2fe52a8b9ac58 | 40,198 | cxx | C++ | src/PatRec/TreeBased/TreeBasedTool.cxx | fermi-lat/TkrRecon | 9174a0ab1310038d3956ab4dcc26e06b8a845daf | [
"BSD-3-Clause"
] | null | null | null | src/PatRec/TreeBased/TreeBasedTool.cxx | fermi-lat/TkrRecon | 9174a0ab1310038d3956ab4dcc26e06b8a845daf | [
"BSD-3-Clause"
] | null | null | null | src/PatRec/TreeBased/TreeBasedTool.cxx | fermi-lat/TkrRecon | 9174a0ab1310038d3956ab4dcc26e06b8a845daf | [
"BSD-3-Clause"
] | null | null | null | /**
* @class TreeBasedTool
*
* @brief Implements a Gaudi Tool for find track candidates. This method uses a four step method:
* 1) X-Y Clusters are combined to form sets of 3-D "TkrPoints"
* 2) Vectors are formed between pairs of "TkrPoints"
* 3) "Tracks" are formed by linking Vectors which s... | 39.48723 | 151 | 0.58881 | [
"object",
"vector"
] |
7a376a1c398c359806312e423a2c9ce2b5161ce9 | 463 | cxx | C++ | Algorithms/Strings/two-strings.cxx | will-crawford/HackerRank | 74965480ee6a51603eb320e5982b0943fdaf1302 | [
"MIT"
] | null | null | null | Algorithms/Strings/two-strings.cxx | will-crawford/HackerRank | 74965480ee6a51603eb320e5982b0943fdaf1302 | [
"MIT"
] | null | null | null | Algorithms/Strings/two-strings.cxx | will-crawford/HackerRank | 74965480ee6a51603eb320e5982b0943fdaf1302 | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int32_t bits_from ( istream &is ) {
int32_t result = 0; char c; while ( is.get(c) && c != '\n' ) result |= 1 << ( c - 'a' ); return result;
}
int main() {
int p; cin >> p; cin >> ws; while ( --p ... | 24.368421 | 107 | 0.531317 | [
"vector"
] |
7a3b824e6d577e850e7eed444dbee40bf8495986 | 7,228 | cpp | C++ | indra/test/llscriptresource_tut.cpp | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | indra/test/llscriptresource_tut.cpp | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | indra/test/llscriptresource_tut.cpp | humbletim/archived-casviewer | 3b51b1baae7e7cebf1c7dca62d9c02751709ee57 | [
"Unlicense"
] | null | null | null | /**
* @file llscriptresource_tut.cpp
* @brief Test LLScriptResource
*
* $LicenseInfo:firstyear=2008&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser ... | 36.321608 | 147 | 0.770476 | [
"object"
] |
7a40e447feb77263c718c129a78fd9fbb8ee2010 | 642 | cpp | C++ | C++/0797-All-Paths-From-Source-to-Target/soln-1.cpp | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | C++/0797-All-Paths-From-Source-to-Target/soln-1.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | C++/0797-All-Paths-From-Source-to-Target/soln-1.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution {
public:
vector<vector<int>> allPathsSourceTarget(vector<vector<int>>& graph) {
vector<int> path = {0};
vector<vector<int>> ans;
dfs(graph, path, ans);
return ans;
}
void dfs(vector<vector<int>>& graph, vector<int> & path, vector<vector<int>>& ans) {
... | 25.68 | 88 | 0.47352 | [
"vector"
] |
7a422c4526888af6aa87a15c134a478a9f56829f | 24,723 | cc | C++ | Translator_file/examples/step-20/step-20.cc | jiaqiwang969/deal.ii-course-practice | 0da5ad1537d8152549d8a0e4de5872efe7619c8a | [
"MIT"
] | null | null | null | Translator_file/examples/step-20/step-20.cc | jiaqiwang969/deal.ii-course-practice | 0da5ad1537d8152549d8a0e4de5872efe7619c8a | [
"MIT"
] | null | null | null | Translator_file/examples/step-20/step-20.cc | jiaqiwang969/deal.ii-course-practice | 0da5ad1537d8152549d8a0e4de5872efe7619c8a | [
"MIT"
] | null | null | null |
/* ---------------------------------------------------------------------
*
* Copyright (C) 2005 - 2021 by the deal.II authors
*
* This file is part of the deal.II library.
*
* The deal.II library is free software; you can use it, redistribute
* it, and/or modify it under the terms of the GNU Lesser Gene... | 40.397059 | 489 | 0.632812 | [
"vector"
] |
7a4487296be45c0c46119225d48eda99b2664ca2 | 3,599 | cpp | C++ | VEngine/Renderer/Object3dInfoFactory.cpp | achlubek/venginenative | ec1d10171b050d3f750f8e60c62575b7f08fe578 | [
"MIT"
] | 169 | 2016-04-03T08:43:31.000Z | 2021-07-08T15:44:13.000Z | VEngine/Renderer/Object3dInfoFactory.cpp | achlubek/venginenative | ec1d10171b050d3f750f8e60c62575b7f08fe578 | [
"MIT"
] | 5 | 2016-11-29T21:43:49.000Z | 2017-10-09T15:48:39.000Z | VEngine/Renderer/Object3dInfoFactory.cpp | achlubek/venginenative | ec1d10171b050d3f750f8e60c62575b7f08fe578 | [
"MIT"
] | 9 | 2016-05-23T15:54:49.000Z | 2020-07-15T03:39:55.000Z | #include "stdafx.h"
#include "Object3dInfoFactory.h"
#include "Object3dInfo.h"
#include "../FileSystem/Media.h"
namespace VEngine
{
namespace Renderer
{
using namespace VEngine::FileSystem;
using namespace VEngine::Renderer::Internal;
Object3dInfoFactory::Object3dInfoFactory(VulkanDev... | 46.74026 | 105 | 0.563768 | [
"vector"
] |
7a4bf9fcd63f307b1ded112156ccd0e083f899ae | 69,253 | cpp | C++ | SGPLibraryCode/modules/sgp_render/opengl/sgp_OpenGLWorldSystemManager.cpp | phoenixzz/VoronoiMapGen | 5afd852f8bb0212baba9d849178eb135f62df903 | [
"MIT"
] | 11 | 2017-03-03T03:31:15.000Z | 2019-03-01T17:09:12.000Z | SGPLibraryCode/modules/sgp_render/opengl/sgp_OpenGLWorldSystemManager.cpp | phoenixzz/VoronoiMapGen | 5afd852f8bb0212baba9d849178eb135f62df903 | [
"MIT"
] | null | null | null | SGPLibraryCode/modules/sgp_render/opengl/sgp_OpenGLWorldSystemManager.cpp | phoenixzz/VoronoiMapGen | 5afd852f8bb0212baba9d849178eb135f62df903 | [
"MIT"
] | 2 | 2017-03-03T03:31:17.000Z | 2021-05-27T21:50:43.000Z |
COpenGLWorldSystemManager::COpenGLWorldSystemManager(COpenGLRenderDevice* pRenderDevice, Logger* pLogger)
: m_pRenderDevice(pRenderDevice), m_pLogger(pLogger),
m_pWorldMap(NULL), m_pTerrain(NULL), m_pSkydome(NULL), m_pWorldSun(NULL), m_pWater(NULL), m_pGrass(NULL),
m_pWorldMapRawMemoryAddress(NULL)
{
m_Visib... | 38.261326 | 207 | 0.747751 | [
"mesh",
"render",
"object",
"model"
] |
7a538656210fd9966be7b9e921f5a96d61c90159 | 3,654 | cpp | C++ | source/radeon_gpu_analyzer_gui/rg_settings_model_base.cpp | clayne/RGA | 7ed370e00b635c5b558d4af4eb050e2a38f77e53 | [
"MIT"
] | 97 | 2020-03-12T01:47:49.000Z | 2022-03-16T02:29:04.000Z | source/radeon_gpu_analyzer_gui/rg_settings_model_base.cpp | clayne/RGA | 7ed370e00b635c5b558d4af4eb050e2a38f77e53 | [
"MIT"
] | 34 | 2020-03-10T16:38:48.000Z | 2022-03-19T04:05:04.000Z | source/radeon_gpu_analyzer_gui/rg_settings_model_base.cpp | clayne/RGA | 7ed370e00b635c5b558d4af4eb050e2a38f77e53 | [
"MIT"
] | 14 | 2020-03-13T00:50:23.000Z | 2022-01-31T09:06:54.000Z | // C++.
#include <cassert>
#include <sstream>
// Local.
#include "radeon_gpu_analyzer_gui/rg_utils.h"
#include "radeon_gpu_analyzer_gui/qt/rg_settings_model_base.h"
#include "radeon_gpu_analyzer_gui/rg_data_types.h"
#include "radeon_gpu_analyzer_gui/rg_string_constants.h"
RgSettingsModelBase::RgSettingsModelBase(unsi... | 32.052632 | 133 | 0.711549 | [
"model"
] |
7a54788f3f5767c3c2a9f871065c6242bb63cc4c | 9,308 | cpp | C++ | src/gui/CustomGetDlg.cpp | jtilander/niftyp4win | 457e2973e3b5c109d76138c5032c486f18276910 | [
"BSD-2-Clause"
] | 3 | 2016-09-09T01:57:01.000Z | 2021-05-14T22:38:32.000Z | src/gui/CustomGetDlg.cpp | jtilander/niftyp4win | 457e2973e3b5c109d76138c5032c486f18276910 | [
"BSD-2-Clause"
] | null | null | null | src/gui/CustomGetDlg.cpp | jtilander/niftyp4win | 457e2973e3b5c109d76138c5032c486f18276910 | [
"BSD-2-Clause"
] | null | null | null | // CustomGetDlg.cpp : implementation file
//
#include "stdafx.h"
#include "p4win.h"
#include "CustomGetDlg.h"
#include "MainFrm.h"
#include "p4api\P4Command.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
//////////////////////////////////////////////... | 26.443182 | 91 | 0.662226 | [
"object"
] |
7a5b6bf87f467801762adceda55915964dcc5df6 | 3,468 | cpp | C++ | misc/siggraphasia2019_loc/mlsmpm_ref/MPM/Simulator.cpp | amix2115/taichi | 55eb9affe84b711c0344c0365456d6f99b9316c0 | [
"MIT"
] | 3 | 2020-01-08T02:58:51.000Z | 2020-10-28T07:01:58.000Z | misc/siggraphasia2019_loc/mlsmpm_ref/MPM/Simulator.cpp | amix2115/taichi | 55eb9affe84b711c0344c0365456d6f99b9316c0 | [
"MIT"
] | 1 | 2020-07-21T05:51:19.000Z | 2020-10-08T01:31:15.000Z | misc/siggraphasia2019_loc/mlsmpm_ref/MPM/Simulator.cpp | amix2115/taichi | 55eb9affe84b711c0344c0365456d6f99b9316c0 | [
"MIT"
] | 1 | 2020-03-25T16:37:00.000Z | 2020-03-25T16:37:00.000Z | #include "Simulator.h"
#include "../Particle/ParticleDomain.cuh"
#include "../Grid/GridDomain.cuh"
#include "../DomainTransform/DomainTransformer.cuh"
#include <System/Log/Logger.hpp>
#include <stdio.h>
#include <stdlib.h>
namespace mn {
MPMSimulator::MPMSimulator()
: _frameRate(48.f), _currentFrame(0), _currentTim... | 40.8 | 80 | 0.617935 | [
"geometry",
"vector",
"model"
] |
7a5ed6404067eb0b548129a69070182ad7860c97 | 960 | cpp | C++ | tutorial/verify.cpp | axell-corp/TFHEpp-1 | 6e489396575d2d6cf830af5b1153e8ab3d22f9c6 | [
"Apache-2.0"
] | 33 | 2020-01-29T08:43:37.000Z | 2022-03-29T03:06:12.000Z | tutorial/verify.cpp | axell-corp/TFHEpp-1 | 6e489396575d2d6cf830af5b1153e8ab3d22f9c6 | [
"Apache-2.0"
] | 6 | 2020-01-17T12:40:40.000Z | 2022-03-24T12:47:23.000Z | tutorial/verify.cpp | axell-corp/TFHEpp-1 | 6e489396575d2d6cf830af5b1153e8ab3d22f9c6 | [
"Apache-2.0"
] | 12 | 2020-05-10T19:10:43.000Z | 2022-01-10T05:12:33.000Z | #include <cereal/archives/portable_binary.hpp>
#include <cereal/types/vector.hpp>
#include <fstream>
#include <iostream>
#include <tfhe++.hpp>
int main()
{
// reads the cloud key from file
TFHEpp::SecretKey sk;
{
std::ifstream ifs{"secret.key", std::ios::binary};
cereal::PortableBinaryInputA... | 28.235294 | 67 | 0.59375 | [
"vector"
] |
7a6ddda7cd7e86414695aa36d769f44d289a696e | 1,685 | cc | C++ | drds/src/model/DescribeMyCatDbListRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | null | null | null | drds/src/model/DescribeMyCatDbListRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | null | null | null | drds/src/model/DescribeMyCatDbListRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 1 | 2020-11-27T09:13:12.000Z | 2020-11-27T09:13:12.000Z | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 26.746032 | 76 | 0.75549 | [
"model"
] |
7a718ebed18027c3d9a2702cf9aec5dc43c0ff69 | 5,862 | hpp | C++ | src/Headers/Extensions/ProcessExtensions.hpp | BerkanYildiz/EasyNT | 60441e098cae9a28174d1eb9c119742ff15a8d2a | [
"MIT"
] | 5 | 2021-06-17T03:01:11.000Z | 2022-02-07T03:47:46.000Z | src/Headers/Extensions/ProcessExtensions.hpp | BerkanYildiz/EasyNT | 60441e098cae9a28174d1eb9c119742ff15a8d2a | [
"MIT"
] | null | null | null | src/Headers/Extensions/ProcessExtensions.hpp | BerkanYildiz/EasyNT | 60441e098cae9a28174d1eb9c119742ff15a8d2a | [
"MIT"
] | 1 | 2021-07-23T11:59:34.000Z | 2021-07-23T11:59:34.000Z | #pragma once
EXTERN_C NTSYSAPI NTSTATUS NTAPI ZwQuerySystemInformation(
IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
OUT PVOID SystemInformation,
IN ULONG SystemInformationLength,
OUT PULONG ReturnLength OPTIONAL
);
EXTERN_C NTKERNELAPI NTSTATUS ZwQueryInformationProcess(
_In_ HANDLE Proces... | 45.796875 | 163 | 0.778574 | [
"object"
] |
7a773e8a8a3c6be1c3139a6c18b7d74230231c4f | 1,923 | cpp | C++ | Regression C++/VifRegression.cpp | KingJMS1/EEInformation | 887d2ac11e57e12360f62ce378a51ca74f628c87 | [
"MIT"
] | null | null | null | Regression C++/VifRegression.cpp | KingJMS1/EEInformation | 887d2ac11e57e12360f62ce378a51ca74f628c87 | [
"MIT"
] | null | null | null | Regression C++/VifRegression.cpp | KingJMS1/EEInformation | 887d2ac11e57e12360f62ce378a51ca74f628c87 | [
"MIT"
] | null | null | null | #include <Python.h>
#include "Reg.h"
static PyObject *VifRegression_regress(PyObject *self, PyObject *args) {
PyObject *xs;
PyObject *ys;
int m;
MatrixXd finalVals;
vector<int> finalVars;
if (!PyArg_ParseTuple(args, "iOO", &m, &xs, &ys)) {
return NULL;
}
if(!(PyList_... | 30.046875 | 113 | 0.634945 | [
"vector"
] |
7a7ce71cee7d7a63643ca5b7ed8be7fd1eb2d309 | 828 | cpp | C++ | 630.cpp | BYOUINZAKA/LeetCodeNotes | 48e1b4522c1f769eeec4944cfbd57abf1281d09a | [
"MIT"
] | null | null | null | 630.cpp | BYOUINZAKA/LeetCodeNotes | 48e1b4522c1f769eeec4944cfbd57abf1281d09a | [
"MIT"
] | null | null | null | 630.cpp | BYOUINZAKA/LeetCodeNotes | 48e1b4522c1f769eeec4944cfbd57abf1281d09a | [
"MIT"
] | null | null | null | /*
* @Author: Hata
* @Date: 2020-05-11 13:59:17
* @LastEditors: Hata
* @LastEditTime: 2020-05-11 14:11:50
* @FilePath: \LeetCode\630.cpp
* @Description: https://leetcode-cn.com/problems/course-schedule-iii/
*/
#include <bits/stdc++.h>
class Solution
{
public:
int scheduleCourse(std::vector<std::vector<int>>... | 24.352941 | 84 | 0.503623 | [
"vector"
] |
7a8095c72f4d349a26b0e14435c44dedd502634d | 1,500 | hpp | C++ | src/Builtins/Arithmetic/ArithmeticEvaluators.hpp | pawel-jarosz/nastya-lisp | 813a58523b741e00c8c27980fe658b546e9ff38c | [
"MIT"
] | 1 | 2021-03-12T13:39:17.000Z | 2021-03-12T13:39:17.000Z | src/Builtins/Arithmetic/ArithmeticEvaluators.hpp | pawel-jarosz/nastya-lisp | 813a58523b741e00c8c27980fe658b546e9ff38c | [
"MIT"
] | null | null | null | src/Builtins/Arithmetic/ArithmeticEvaluators.hpp | pawel-jarosz/nastya-lisp | 813a58523b741e00c8c27980fe658b546e9ff38c | [
"MIT"
] | null | null | null | //
// Created by caedus on 23.01.2021.
//
#pragma once
#include "Runtime/GenericEvaluatorFactory.hpp"
#include "Runtime/GenericEvaluator.hpp"
namespace nastya::builtins::arithmetic {
class AddEvaluator : public runtime::GenericEvaluator
, public runtime::GenericEvaluatorFactory<AddEvaluator>
{
pu... | 34.090909 | 121 | 0.751333 | [
"object"
] |
7a8384623e0ad814f51ec5d2a8a3d07516a64d4a | 2,089 | hpp | C++ | parser/parser.hpp | maruthgoyal/sp | 582b58c568bafb6fe36e17f05cf4a9c4387d30d9 | [
"MIT"
] | 12 | 2017-10-05T14:49:22.000Z | 2018-07-29T12:42:14.000Z | parser/parser.hpp | maruthgoyal/bork | 582b58c568bafb6fe36e17f05cf4a9c4387d30d9 | [
"MIT"
] | null | null | null | parser/parser.hpp | maruthgoyal/bork | 582b58c568bafb6fe36e17f05cf4a9c4387d30d9 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2017 Maruth Goyal
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, su... | 20.086538 | 78 | 0.732408 | [
"vector"
] |
1866908069de7ed76bc7f2c162984b53aff14dfd | 24,915 | cpp | C++ | lib/runtime/Exe.cpp | rohitmaurya-png/Infinity-Programing-Langauge | 396dae993e174d190a2b58031eb0ec51fd10cc97 | [
"MIT"
] | null | null | null | lib/runtime/Exe.cpp | rohitmaurya-png/Infinity-Programing-Langauge | 396dae993e174d190a2b58031eb0ec51fd10cc97 | [
"MIT"
] | null | null | null | lib/runtime/Exe.cpp | rohitmaurya-png/Infinity-Programing-Langauge | 396dae993e174d190a2b58031eb0ec51fd10cc97 | [
"MIT"
] | null | null | null | //
//Created by Rohit Maurya 2/15/2020.
//
#include <cstdlib>
#include "Exe.h"
#include "../util/File.h"
#include "../util/KeyPair.h"
#include "symbols/Method.h"
#include "Manifest.h"
#include "symbols/Field.h"
#include "symbols/ClassObject.h"
#include "symbols/Object.h"
#include "../util/zip/zlib.h"
#include "main.h"... | 33.760163 | 149 | 0.476942 | [
"object"
] |
186cdab9bb21a7a8062fa824418f5bcf0550c915 | 9,702 | cpp | C++ | Src/Trainer.cpp | Arutsuyo/Smash.io | f251733c98aa024a2f018cdca90f390364930832 | [
"MIT"
] | null | null | null | Src/Trainer.cpp | Arutsuyo/Smash.io | f251733c98aa024a2f018cdca90f390364930832 | [
"MIT"
] | null | null | null | Src/Trainer.cpp | Arutsuyo/Smash.io | f251733c98aa024a2f018cdca90f390364930832 | [
"MIT"
] | 3 | 2021-11-05T23:19:58.000Z | 2021-11-05T23:21:08.000Z | #include "Trainer.h"
#include <fstream>
#include <signal.h>
#include <stdio.h>
#include <cstring>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#define FILENM "TRNR"
std::vector<int> Trainer::killpids;
Trainer* Trainer::_inst = NULL;
bool Trainer::term;
Config*... | 29.852308 | 106 | 0.520614 | [
"vector",
"model"
] |
186d1830c690a19c219220f79060ffcb85087cdd | 15,692 | hpp | C++ | Plugins/AIOUSB/AIOUSB/deprecated/classlib/AnalogInputSubsystem.hpp | networkmodeling/RCVW | 0cd801c5b06824ea295594e227e78eef71d671cc | [
"Apache-2.0"
] | 1 | 2021-06-04T23:44:01.000Z | 2021-06-04T23:44:01.000Z | Plugins/AIOUSB/AIOUSB/deprecated/classlib/AnalogInputSubsystem.hpp | networkmodeling/RCVW | 0cd801c5b06824ea295594e227e78eef71d671cc | [
"Apache-2.0"
] | null | null | null | Plugins/AIOUSB/AIOUSB/deprecated/classlib/AnalogInputSubsystem.hpp | networkmodeling/RCVW | 0cd801c5b06824ea295594e227e78eef71d671cc | [
"Apache-2.0"
] | 2 | 2021-04-30T22:04:57.000Z | 2021-05-01T19:05:47.000Z | /*
* $RCSfile: AnalogInputSubsystem.hpp,v $
* $Revision: 1.26 $
* $Date: 2010/01/19 17:14:47 $
* jEdit:tabSize=4:indentSize=4:collapseFolds=1:
*
* class AnalogInputSubsystem declarations
*/
#if ! defined( AnalogInputSubsystem_hpp )
#define AnalogInputSubsystem_hpp
#include <AI16_InputRange.hpp>
... | 41.294737 | 185 | 0.701122 | [
"object",
"model"
] |
1870db6e1dc609c6df332d9a514e5e38557c3561 | 19,431 | cpp | C++ | src/drift_diff_fcts.cpp | giorgiopaulon/LDDMM | 2a59ca7fb81226c9fba03f07835fc6827193e897 | [
"MIT"
] | 2 | 2021-11-13T00:26:06.000Z | 2021-11-15T00:19:52.000Z | src/drift_diff_fcts.cpp | giorgiopaulon/LDDMM | 2a59ca7fb81226c9fba03f07835fc6827193e897 | [
"MIT"
] | null | null | null | src/drift_diff_fcts.cpp | giorgiopaulon/LDDMM | 2a59ca7fb81226c9fba03f07835fc6827193e897 | [
"MIT"
] | 1 | 2021-11-13T00:26:21.000Z | 2021-11-13T00:26:21.000Z |
#include <RcppArmadillo.h>
#include <progress.hpp>
#include <R_ext/Utils.h>
#include <RcppArmadilloExtensions/sample.h>
#include <math.h>
#include <rgen.h>
// [[Rcpp::depends(RcppArmadillo)]]
// [[Rcpp::depends(RcppProgress)]]
// [[Rcpp::depends(rgen)]]
// [[Rcpp::plugins(cpp11)]]
double dinvgaussian_cpp(arma::vec ... | 40.146694 | 198 | 0.590088 | [
"vector",
"model"
] |
187516909bd69b4637bf57ab9c4f59c9fb66e745 | 5,426 | cpp | C++ | src/Pathname.cpp | AnantaYudica/single_source | f95f0b2454efc48511d540c3c90ae39b087e102f | [
"MIT"
] | null | null | null | src/Pathname.cpp | AnantaYudica/single_source | f95f0b2454efc48511d540c3c90ae39b087e102f | [
"MIT"
] | null | null | null | src/Pathname.cpp | AnantaYudica/single_source | f95f0b2454efc48511d540c3c90ae39b087e102f | [
"MIT"
] | null | null | null | #include "Pathname.h"
#include <stack>
#include <utility>
using namespace std;
const string Pathname::ms_norm_conj_dir_str("/");
const string Pathname::ms_parent_dir_str("../");
const regex Pathname::ms_rep_conj_dir_regex("\\\\");
const regex Pathname::ms_dir_filename_regex("(.*[\\/\\\\])*(.*)");
const regex Pat... | 27.543147 | 79 | 0.661998 | [
"vector"
] |
187bf7d215d7373beb9c3444e3d72c5368e90484 | 788 | cpp | C++ | src/Lab07-Vectors/TwoDArrayUsingVector.cpp | AGithub457/CompsciSpring2018 | 5663b7aeafd68e96c98036416abe7a9060fb3560 | [
"MIT"
] | null | null | null | src/Lab07-Vectors/TwoDArrayUsingVector.cpp | AGithub457/CompsciSpring2018 | 5663b7aeafd68e96c98036416abe7a9060fb3560 | [
"MIT"
] | null | null | null | src/Lab07-Vectors/TwoDArrayUsingVector.cpp | AGithub457/CompsciSpring2018 | 5663b7aeafd68e96c98036416abe7a9060fb3560 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int sum(const vector<vector<int> > &array) {
int total = 0;
for (int row = 0; row < array.size(); row++) {
for (int column = 0; column < array[row].size(); column++) {
total += array[row][column];
}
}
return total;... | 19.7 | 68 | 0.482234 | [
"vector"
] |
187ea95b5cf98c3b318853829e30deaf58c8ad03 | 11,898 | cpp | C++ | src/interface_generator.cpp | kpengk/Mercury | 68350b917eabc0b14f2887b706f80f42de420440 | [
"MIT"
] | null | null | null | src/interface_generator.cpp | kpengk/Mercury | 68350b917eabc0b14f2887b706f80f42de420440 | [
"MIT"
] | null | null | null | src/interface_generator.cpp | kpengk/Mercury | 68350b917eabc0b14f2887b706f80f42de420440 | [
"MIT"
] | null | null | null | #include "interface_generator.h"
#include <unordered_map>
#include <filesystem>
#include <fstream>
#include <regex>
#include <set>
#include <clang/Tooling/Tooling.h>
#include <inja/inja.hpp>
#include <nlohmann/json.hpp>
#include "analysis_action.h"
#include "uuid.hpp"
namespace glasssix::ymer
{
namespace
{
sta... | 25.314894 | 138 | 0.664818 | [
"render",
"vector"
] |
188d99cace0d922208f8cbc6be02df01e7a2e41e | 15,551 | cpp | C++ | src/desktop-view.cpp | dingjingmaster/desktop-view | 88b6de026b8b1693c77c61835e92eee29cdc6876 | [
"MIT"
] | null | null | null | src/desktop-view.cpp | dingjingmaster/desktop-view | 88b6de026b8b1693c77c61835e92eee29cdc6876 | [
"MIT"
] | null | null | null | src/desktop-view.cpp | dingjingmaster/desktop-view | 88b6de026b8b1693c77c61835e92eee29cdc6876 | [
"MIT"
] | null | null | null | #include "desktop-view.h"
#include <QRect>
#include "private/qabstractitemview_p.h"
#include <QtWidgets/private/qtwidgetsglobal_p.h>
#include <QApplication>
#include <QPaintEvent>
#include <QPainter>
#include <QDropEvent>
#include <QDebug>
#define SCREEN_ID 1000
#define RELATED_GRID_POSITION 1001
#define ICONVIEW_... | 29.06729 | 127 | 0.61996 | [
"geometry",
"model"
] |
189b2aacd6996e3276539a5d0e0c05f47f8b3627 | 369 | hpp | C++ | src/Design/Components/Structural_Component.hpp | MattMarti/Lambda-Trajectory-Sim | 4155f103120bd49221776cc3b825b104f36817f2 | [
"MIT"
] | null | null | null | src/Design/Components/Structural_Component.hpp | MattMarti/Lambda-Trajectory-Sim | 4155f103120bd49221776cc3b825b104f36817f2 | [
"MIT"
] | null | null | null | src/Design/Components/Structural_Component.hpp | MattMarti/Lambda-Trajectory-Sim | 4155f103120bd49221776cc3b825b104f36817f2 | [
"MIT"
] | null | null | null | #ifndef LAMBDA_TRAJECTORY_SIM_SRC_ROCKET_COMPONENTS_STRUCTURAL_COMPONENT_HPP
#define LAMBDA_TRAJECTORY_SIM_SRC_ROCKET_COMPONENTS_STRUCTURAL_COMPONENT_HPP
#include "Design/Components/Component.hpp"
/*
Structural_Component.h
A structural component with specific shape and density
*/
class Structural_Component : public ... | 26.357143 | 76 | 0.856369 | [
"shape"
] |
18a13a8d93aaa8f53af4dcf5ac8ec8e6d77f3952 | 287 | hpp | C++ | src/Tools/Converter/MatrixToString.hpp | NaokiTakahashi12/OpenHumanoidController | ce8da0cabc8bbeec86f16a36b9ba5e6a16c4a67d | [
"MIT"
] | 1 | 2019-09-23T06:21:47.000Z | 2019-09-23T06:21:47.000Z | src/Tools/Converter/MatrixToString.hpp | NaokiTakahashi12/hc-early | ce8da0cabc8bbeec86f16a36b9ba5e6a16c4a67d | [
"MIT"
] | 12 | 2019-07-30T00:17:09.000Z | 2019-12-09T23:00:43.000Z | src/Tools/Converter/MatrixToString.hpp | NaokiTakahashi12/OpenHumanoidController | ce8da0cabc8bbeec86f16a36b9ba5e6a16c4a67d | [
"MIT"
] | null | null | null |
#pragma once
#include <string>
#include <Eigen/Dense>
namespace Tools {
namespace Converter {
template <typename T>
std::string matrix_to_string(Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> &matrix);
template <typename T>
std::string matrix_to_string(T &vector);
}
}
| 15.944444 | 89 | 0.714286 | [
"vector"
] |
18a8517e0b55dcbe2ea2c815e7fc4d518457397b | 969 | cpp | C++ | packages/motionPlanning/src/types/cForbiddenAreaType.cpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 2 | 2021-01-15T13:27:19.000Z | 2021-08-04T08:40:52.000Z | packages/motionPlanning/src/types/cForbiddenAreaType.cpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | null | null | null | packages/motionPlanning/src/types/cForbiddenAreaType.cpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 5 | 2018-05-01T10:39:31.000Z | 2022-03-25T03:02:35.000Z | // Copyright 2017 Jan Feitsma (Falcons)
// SPDX-License-Identifier: Apache-2.0
/*
* cForbiddenAreaType.cpp
*
* Created on: Dec 3, 2017
* Author: Jan Feitsma
*/
#include "int/types/cForbiddenAreaType.hpp"
#include <string>
cForbiddenAreaType::cForbiddenAreaType(std::vector<Point2D> const &points)
{
_poi... | 19.38 | 74 | 0.654283 | [
"vector"
] |
18aed56adcaaf8da19b19be3a1365dc7e5ac8189 | 18,192 | cpp | C++ | driver/host/NovenaLMS6.cpp | bujigr/mmap_fpga | e36ca7edb97091b7e5019a175c06b4fc96367a75 | [
"CC-BY-3.0"
] | 34 | 2015-01-26T19:34:21.000Z | 2021-11-17T10:45:22.000Z | driver/host/NovenaLMS6.cpp | bujigr/mmap_fpga | e36ca7edb97091b7e5019a175c06b4fc96367a75 | [
"CC-BY-3.0"
] | 22 | 2015-02-07T01:39:50.000Z | 2017-09-09T15:48:41.000Z | driver/host/NovenaLMS6.cpp | bujigr/mmap_fpga | e36ca7edb97091b7e5019a175c06b4fc96367a75 | [
"CC-BY-3.0"
] | 16 | 2015-01-13T16:44:11.000Z | 2022-01-04T22:01:50.000Z | ////////////////////////////////////////////////////////////////////////
// SoapySDR module for Novena-RF SDR
//
// Copyright (c) 2015-2015 Lime Microsystems
// Copyright (c) 2015-2015 Andrew "bunnie" Huang
// SPDX-License-Identifier: Apache-2.0
// http://www.apache.org/licenses/LICENSE-2.0
////////////////////////////... | 35.952569 | 149 | 0.619613 | [
"vector"
] |
18ba8b2e9876b09129b215b8d396c7be6c41a0b0 | 279 | cpp | C++ | old/AtCoder/abc084/C.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | old/AtCoder/abc084/C.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | old/AtCoder/abc084/C.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "template.hpp"
int main() {
int n;
cin >> n;
vector<int> t(n);
for (int i = 0; i < n - 1; ++i) {
int c, s, f;
cin >> c >> s >> f;
for (int j = 0; j <= i; ++j) {
for (chmax(t[j], s); t[j] % f; ++t[j]);
t[j] += c;
}
}
cout << t;
}
| 16.411765 | 45 | 0.369176 | [
"vector"
] |
18cbc1309432cde893a33a6496f75660700bdbe4 | 51,816 | cpp | C++ | krust/public-api/vulkan-utils.cpp | ahcox/krust | c4c349b3432d086466a13aef61ab220d8c43bcbb | [
"MIT"
] | 4 | 2016-05-09T08:22:52.000Z | 2019-12-07T16:19:50.000Z | krust/public-api/vulkan-utils.cpp | ahcox/krust | c4c349b3432d086466a13aef61ab220d8c43bcbb | [
"MIT"
] | null | null | null | krust/public-api/vulkan-utils.cpp | ahcox/krust | c4c349b3432d086466a13aef61ab220d8c43bcbb | [
"MIT"
] | null | null | null | // Copyright (c) 2016 Andrew Helge Cox
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publ... | 57.573333 | 325 | 0.767195 | [
"object",
"vector",
"transform"
] |
18cf86e5bf90bc047e954f4c93d867c291ad4629 | 968 | cpp | C++ | src/bublle_sort.cpp | ebayboy/cpp_demos | b01df202c0285bf232900662d336505520d5d24d | [
"Apache-2.0"
] | null | null | null | src/bublle_sort.cpp | ebayboy/cpp_demos | b01df202c0285bf232900662d336505520d5d24d | [
"Apache-2.0"
] | null | null | null | src/bublle_sort.cpp | ebayboy/cpp_demos | b01df202c0285bf232900662d336505520d5d24d | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
@file:bublle_sort.cpp
@author:ebayboy@163.com
@date:2019-11-20 00:39
@version: 1.0
@description: cpp file
@Copyright (c) all right reserved
**************************************************************************/
#include <iostrea... | 16.689655 | 77 | 0.448347 | [
"vector"
] |
18da4f144c09ac88fed2f49c44ff5825175a882e | 2,798 | cpp | C++ | lib/scene/geometry/geometry_aggregate.cpp | b3h47pte/cuda-path-tracing | b874b86f15b4aca18ecd40e9eb962996298f5fa8 | [
"MIT"
] | null | null | null | lib/scene/geometry/geometry_aggregate.cpp | b3h47pte/cuda-path-tracing | b874b86f15b4aca18ecd40e9eb962996298f5fa8 | [
"MIT"
] | null | null | null | lib/scene/geometry/geometry_aggregate.cpp | b3h47pte/cuda-path-tracing | b874b86f15b4aca18ecd40e9eb962996298f5fa8 | [
"MIT"
] | null | null | null | #include "scene/geometry/geometry_aggregate.h"
#include "scene/geometry/triangle.h"
#include <unordered_set>
#include "utilities/eigen_utility.h"
#include "utilities/error.h"
namespace cpt {
GeometryAggregate::GeometryAggregate(
const std::vector<GeometryPtr>& children):
_children(children) {
// Ensure t... | 34.121951 | 140 | 0.660829 | [
"geometry",
"vector"
] |
18dff101df7bb44f56efada3aaa51fb785ec9764 | 10,316 | cpp | C++ | src/state_space/state_publisher.cpp | cogsys-tuebingen/muse_armcl | 63eb0c8d3a1d03d84222acbb5b0c9978065bcc3c | [
"BSD-3-Clause"
] | 5 | 2020-01-19T09:35:28.000Z | 2021-11-04T10:08:24.000Z | src/state_space/state_publisher.cpp | cxdcxd/muse_armcl | 63eb0c8d3a1d03d84222acbb5b0c9978065bcc3c | [
"BSD-3-Clause"
] | null | null | null | src/state_space/state_publisher.cpp | cxdcxd/muse_armcl | 63eb0c8d3a1d03d84222acbb5b0c9978065bcc3c | [
"BSD-3-Clause"
] | 1 | 2019-11-10T23:40:59.000Z | 2019-11-10T23:40:59.000Z | #include <muse_armcl/state_space/state_publisher.h>
#include <muse_armcl/density/sample_density.hpp>
#include <cslibs_mesh_map/mesh_map_tree.h>
#include <cslibs_mesh_map/cslibs_mesh_map_visualization.h>
#include <cslibs_math_3d/linear/pointcloud.hpp>
#include <cslibs_math_ros/sensor_msgs/conversion_3d.hpp>
#include <c... | 41.429719 | 133 | 0.638329 | [
"vector"
] |
18e0de83d455973d6d5644e086881051bf6fa74e | 15,088 | hpp | C++ | include/polyvec/curve-tracer/curve_objectives.hpp | ShnitzelKiller/polyfit | 51ddc6365a794db1678459140658211cb78f65b1 | [
"MIT"
] | 27 | 2020-08-17T17:25:59.000Z | 2022-03-01T05:49:12.000Z | include/polyvec/curve-tracer/curve_objectives.hpp | ShnitzelKiller/polyfit | 51ddc6365a794db1678459140658211cb78f65b1 | [
"MIT"
] | 4 | 2020-08-26T13:54:59.000Z | 2020-09-21T07:19:22.000Z | include/polyvec/curve-tracer/curve_objectives.hpp | ShnitzelKiller/polyfit | 51ddc6365a794db1678459140658211cb78f65b1 | [
"MIT"
] | 5 | 2020-08-26T23:26:48.000Z | 2021-01-04T09:06:07.000Z | #ifndef DEADLINE_CODE_GLOBFIT_OBJECTIVE_IS_INCLUDED
#define DEADLINE_CODE_GLOBFIT_OBJECTIVE_IS_INCLUDED
// polyvec
#include <polyvec/curve-tracer/curve_parametrizations.hpp>
#include <polyvec/curve-tracer/curve_bezier.hpp>
#include <polyvec/curve-tracer/curve_objective.hpp>
namespace polyvec {
// ===============... | 38.197468 | 138 | 0.633881 | [
"vector"
] |
18e45e287504dd00592181cbdf3263b1a9a32389 | 44,590 | cpp | C++ | unittests/remote.cpp | Toysoft/upscaledb | 4bdf5de12bc484a3ad2a9379d834149746d45b2f | [
"Apache-2.0"
] | 350 | 2015-11-05T00:49:19.000Z | 2022-03-23T16:27:36.000Z | unittests/remote.cpp | Toysoft/upscaledb | 4bdf5de12bc484a3ad2a9379d834149746d45b2f | [
"Apache-2.0"
] | 71 | 2015-11-05T19:26:57.000Z | 2021-08-20T14:52:21.000Z | unittests/remote.cpp | Toysoft/upscaledb | 4bdf5de12bc484a3ad2a9379d834149746d45b2f | [
"Apache-2.0"
] | 55 | 2015-11-04T15:09:16.000Z | 2021-12-23T20:45:24.000Z | /*
* Copyright (C) 2005-2017 Christoph Rupp (chris@crupp.de).
*
* 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 ... | 29.39354 | 81 | 0.628818 | [
"vector"
] |
18f26e7356a183e72a5981d2812236a036701744 | 3,952 | cpp | C++ | source/application/PathTracer/raytracing/system/PlatformManager.cpp | compix/Monte-Carlo-Raytracer | f27842c40dd380aee78f1579873341ad6cfe0834 | [
"MIT"
] | 3 | 2018-09-23T03:12:36.000Z | 2021-12-01T08:30:43.000Z | source/application/PathTracer/raytracing/system/PlatformManager.cpp | compix/Monte-Carlo-Raytracer | f27842c40dd380aee78f1579873341ad6cfe0834 | [
"MIT"
] | null | null | null | source/application/PathTracer/raytracing/system/PlatformManager.cpp | compix/Monte-Carlo-Raytracer | f27842c40dd380aee78f1579873341ad6cfe0834 | [
"MIT"
] | 1 | 2018-09-19T01:49:24.000Z | 2018-09-19T01:49:24.000Z | #include "PlatformManager.h"
#include "engine/util/Logger.h"
#include "mutex"
#if defined(_WIN32)
#include <gl/wglew.h>
#elif defined(__unix__)
// TODO
#elif __APPLE__
// TODO
#endif
std::vector<CLWPlatform> PlatformManager::m_platforms;
std::vector<CLWDevice> PlatformManager::m_supportedDevices;
std::unordered_map... | 23.52381 | 113 | 0.743168 | [
"vector"
] |
18f29cf8a71859ea112dec326489efacdc33055b | 1,194 | hh | C++ | src/CRKSPH/computeCRKSPHIntegral.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/CRKSPH/computeCRKSPHIntegral.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/CRKSPH/computeCRKSPHIntegral.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++------------------------------------
// Compute the CRKSPH corrections.
//------------------------------------------------------------------------------
#ifndef __Spheral__computeCRKSPHIntegral__
#define __Spheral__computeCRKSPHIntegral__
namespace Spheral {
// Forward decl... | 44.222222 | 112 | 0.622278 | [
"vector"
] |
18f6633fda797704909dbd9a490cea1d9dde20cd | 7,024 | hpp | C++ | crogine/include/crogine/core/App.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 41 | 2017-08-29T12:14:36.000Z | 2022-02-04T23:49:48.000Z | crogine/include/crogine/core/App.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 11 | 2017-09-02T15:32:45.000Z | 2021-12-27T13:34:56.000Z | crogine/include/crogine/core/App.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 5 | 2020-01-25T17:51:45.000Z | 2022-03-01T05:20:30.000Z | /*-----------------------------------------------------------------------
Matt Marchant 2017 - 2021
http://trederia.blogspot.com
crogine - Zlib license.
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 ... | 30.406926 | 104 | 0.625142 | [
"render",
"vector"
] |
18f929c96ddaaabbc5fd34b72c61e7df3d10df8e | 880 | cpp | C++ | Windy/source/core/content/container.cpp | Greentwip/windy | 4eb8174f952c5b600ff004827a5c85dbfb013091 | [
"MIT"
] | 1 | 2017-07-13T21:11:55.000Z | 2017-07-13T21:11:55.000Z | Windy/source/core/content/container.cpp | Greentwip/Windy | 4eb8174f952c5b600ff004827a5c85dbfb013091 | [
"MIT"
] | null | null | null | Windy/source/core/content/container.cpp | Greentwip/Windy | 4eb8174f952c5b600ff004827a5c85dbfb013091 | [
"MIT"
] | null | null | null | #include "core/content/container.hpp"
#include "core/content/instance.hpp"
windy::content::container::container() {
}
void windy::content::container::bake() { // required
auto background_layer = std::make_shared<layer>();
auto animation_layer = std::make_shared<layer>();
auto composition_layer = std::make_shared<... | 31.428571 | 100 | 0.735227 | [
"vector"
] |
18feb80ebe1a6b0988838e881daca31911740a0d | 861 | cpp | C++ | devdc87.cpp | vidit1999/coding_problems | b6c9fa7fda37d9424cd11bcd54b385fd8cf1ee0a | [
"BSD-2-Clause"
] | 1 | 2020-02-24T18:28:48.000Z | 2020-02-24T18:28:48.000Z | devdc87.cpp | vidit1999/coding_problems | b6c9fa7fda37d9424cd11bcd54b385fd8cf1ee0a | [
"BSD-2-Clause"
] | null | null | null | devdc87.cpp | vidit1999/coding_problems | b6c9fa7fda37d9424cd11bcd54b385fd8cf1ee0a | [
"BSD-2-Clause"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/*
The Pony Express was a mail service that operated from 1859-60 in the United States.
It was made completely obsolete by the intercontinental telegraph.
There were a number of stations where a rider would stop to switch to a fresh horse,
or pass the mail bag along to an... | 26.90625 | 100 | 0.727062 | [
"vector"
] |
bb41ad9bedb541d696a11f257a3226aea48272dd | 7,969 | cpp | C++ | src/main.cpp | Seideman-Group/chiML | 9ace5dccdbc6c173e8383f6a31ff421b4fefffdf | [
"MIT"
] | 1 | 2019-04-27T05:25:27.000Z | 2019-04-27T05:25:27.000Z | src/main.cpp | Seideman-Group/chiML | 9ace5dccdbc6c173e8383f6a31ff421b4fefffdf | [
"MIT"
] | null | null | null | src/main.cpp | Seideman-Group/chiML | 9ace5dccdbc6c173e8383f6a31ff421b4fefffdf | [
"MIT"
] | 2 | 2019-04-03T10:08:21.000Z | 2019-09-30T22:40:28.000Z | // #include <iostream>
// #include "FDTDField.hpp"
// #include "FDTDFieldTE.hpp"
// #include "FDTDFieldTM.hpp"
#include <FDTD_MANAGER/parallelFDTDField.hpp>
// #include <iomanip>
namespace mpi = boost::mpi;
int main(int argc, char const *argv[])
{
// Initialize the boost mpi environment and communicator
mpi:... | 38.3125 | 181 | 0.477726 | [
"vector"
] |
bb4bc4bc75fb733698b1ab4eba4e35a0de2bd347 | 1,477 | cpp | C++ | src/absyn_tree.cpp | wangnangg/xml_exp | a9ae96e3c398d2285ca583f700e1d1428b163179 | [
"MIT"
] | null | null | null | src/absyn_tree.cpp | wangnangg/xml_exp | a9ae96e3c398d2285ca583f700e1d1428b163179 | [
"MIT"
] | null | null | null | src/absyn_tree.cpp | wangnangg/xml_exp | a9ae96e3c398d2285ca583f700e1d1428b163179 | [
"MIT"
] | null | null | null | #include "absyn_tree.hpp"
#include <cassert>
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
void link(exp* target, const func_env& env)
{
target->visit([&](exp* curr_exp) {
call_exp* calle = dynamic_cast<call_exp*>(curr_exp);
if (calle)
{
calle->li... | 23.822581 | 80 | 0.560596 | [
"vector"
] |
bb4f682d4cc6f006c40b3743803bd50da579fe44 | 1,895 | cpp | C++ | LinkedBlockLife/MenuScene.cpp | NeuroWhAI/LinkedBlockLife | 5fa969c96e3a218741835493b4c2d40519125dc4 | [
"MIT"
] | 3 | 2017-02-18T16:31:46.000Z | 2021-02-14T06:38:28.000Z | LinkedBlockLife/MenuScene.cpp | NeuroWhAI/LinkedBlockLife | 5fa969c96e3a218741835493b4c2d40519125dc4 | [
"MIT"
] | null | null | null | LinkedBlockLife/MenuScene.cpp | NeuroWhAI/LinkedBlockLife | 5fa969c96e3a218741835493b4c2d40519125dc4 | [
"MIT"
] | null | null | null | #include "MenuScene.h"
#include "MainScene.h"
#include "LabScene.h"
MenuScene::MenuScene()
{
}
MenuScene::~MenuScene()
{
}
//###########################################################################
void MenuScene::onInitialize(caDraw::Window& owner)
{
auto winSize = owner.getSize();
m_font = m_pool.cr... | 18.762376 | 84 | 0.656464 | [
"transform"
] |
bb59e61041bd16e90970e819abaf3b7690421c0b | 4,965 | cpp | C++ | solid/system/src/memory.cpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 26 | 2015-08-25T16:07:58.000Z | 2019-07-05T15:21:22.000Z | solid/system/src/memory.cpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 5 | 2016-10-15T22:55:15.000Z | 2017-09-19T12:41:10.000Z | solid/system/src/memory.cpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 5 | 2016-09-15T10:34:52.000Z | 2018-10-30T11:46:46.000Z | // solid/system/src/memorycache.cpp
//
// Copyright (c) 2014 Valentin Palade (vipalade @ gmail . com)
//
// This file is part of SolidFrame framework.
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.
//
#include "s... | 27.73743 | 104 | 0.598389 | [
"solid"
] |
bb5b9990c3ba52ac9cddd94960c4436dc89a52bb | 11,859 | cpp | C++ | Test/Space/ModelTest.cpp | Cultrarius/QuestWeaver | 311016e3ec67c74221ef20d4eeff8904d8222135 | [
"Unlicense"
] | 57 | 2016-02-11T09:07:31.000Z | 2022-03-04T02:57:50.000Z | Test/Space/ModelTest.cpp | Cultrarius/QuestWeaver | 311016e3ec67c74221ef20d4eeff8904d8222135 | [
"Unlicense"
] | 1 | 2016-08-27T20:52:31.000Z | 2016-11-28T14:58:24.000Z | Test/Space/ModelTest.cpp | Cultrarius/QuestWeaver | 311016e3ec67c74221ef20d4eeff8904d8222135 | [
"Unlicense"
] | 10 | 2016-08-27T20:06:42.000Z | 2022-02-08T06:13:50.000Z | //
// Created by michael on 27.10.15.
//
#include <World/Space/SpaceWorldModel.h>
#include <World/Space/DeadCivilization.h>
#include <World/Space/Artifact.h>
#include <World/Space/SpaceStation.h>
#include <World/Space/SpaceWreck.h>
#include <World/Space/SpaceShip.h>
#include "../catch.hpp"
#include "../Mock/TestWorldL... | 39.795302 | 105 | 0.662029 | [
"vector",
"model"
] |
bb63c57ece96d1b87b0c93ca38aad06656803383 | 9,531 | cpp | C++ | src/web/pubchem.cpp | quizzmaster/chemkit | 803e4688b514008c605cb5c7790f7b36e67b68fc | [
"BSD-3-Clause"
] | 34 | 2015-01-24T23:59:41.000Z | 2020-11-12T13:48:01.000Z | src/web/pubchem.cpp | soplwang/chemkit | d62b7912f2d724a05fa8be757f383776fdd5bbcb | [
"BSD-3-Clause"
] | 4 | 2015-12-28T20:29:16.000Z | 2016-01-26T06:48:19.000Z | src/web/pubchem.cpp | soplwang/chemkit | d62b7912f2d724a05fa8be757f383776fdd5bbcb | [
"BSD-3-Clause"
] | 17 | 2015-01-23T14:50:24.000Z | 2021-06-10T15:43:50.000Z | /******************************************************************************
**
** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com>
** All rights reserved.
**
** This file is a part of the chemkit project. For more information
** see <http://www.chemkit.org>.
**
** Redistribution and use in source and binar... | 32.199324 | 138 | 0.650089 | [
"object"
] |
bb649915ffc251ab99d95503192b266be030ec47 | 785 | hpp | C++ | libs/core/include/fcppt/variant/types_string.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/variant/types_string.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/variant/types_string.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_VARIANT_TYPES_STRING_HPP_INCLUDED
#define FCPPT_VARIANT_TYPES_STRING_HPP_INCLUDED
#... | 17.065217 | 61 | 0.729936 | [
"object"
] |
bb65a7a4bc76a82d90d4c28424652067204813e6 | 7,994 | cpp | C++ | src/scriptinterface/tcGroupInterface.cpp | dhanin/friendly-bassoon | fafcfd3921805baddc1889dc0ee2fa367ad882f8 | [
"BSD-3-Clause"
] | 2 | 2021-11-17T10:59:38.000Z | 2021-11-17T10:59:45.000Z | src/scriptinterface/tcGroupInterface.cpp | dhanin/nws | 87a3f24a7887d84b9884635064b48d456b4184e2 | [
"BSD-3-Clause"
] | null | null | null | src/scriptinterface/tcGroupInterface.cpp | dhanin/nws | 87a3f24a7887d84b9884635064b48d456b4184e2 | [
"BSD-3-Clause"
] | null | null | null | /**
** @file tcGroupInterface.cpp
*/
/*
** Copyright (c) 2014, GCBLUE PROJECT
** 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 above... | 26.382838 | 146 | 0.637978 | [
"object",
"vector"
] |
bb6be60adfdc2f18d64105d1feac39d98c686688 | 9,072 | cpp | C++ | network_core/src/Network.cpp | dymons/network | d54808f3ccfc600fde9f6ef8f2718f2e40c7f9b3 | [
"BSD-3-Clause"
] | null | null | null | network_core/src/Network.cpp | dymons/network | d54808f3ccfc600fde9f6ef8f2718f2e40c7f9b3 | [
"BSD-3-Clause"
] | null | null | null | network_core/src/Network.cpp | dymons/network | d54808f3ccfc600fde9f6ef8f2718f2e40c7f9b3 | [
"BSD-3-Clause"
] | null | null | null | #include "network_core/Network.hpp"
namespace network {
Network::Network(const InputLayer& t_input, const HiddenLayer& t_hidden, const OutputLayer& t_output)
: m_input_layer_(t_input), m_hidden_layer_(t_hidden), m_output_layer_(t_output)
{
// Check for a specific combination Network. If not satisfied, the n... | 35.716535 | 125 | 0.617284 | [
"vector"
] |
bb7566775688db2712b4859b4824bd3adee0a090 | 565 | hh | C++ | sample/vs_pa_player.hh | venitech/vs-audio-keyword-detector | a877333b24add632dadc5f1e079f2fbdba7d555b | [
"Apache-2.0"
] | 1 | 2021-09-29T07:50:13.000Z | 2021-09-29T07:50:13.000Z | sample/vs_pa_player.hh | venitech/vs-audio-keyword-detector | a877333b24add632dadc5f1e079f2fbdba7d555b | [
"Apache-2.0"
] | null | null | null | sample/vs_pa_player.hh | venitech/vs-audio-keyword-detector | a877333b24add632dadc5f1e079f2fbdba7d555b | [
"Apache-2.0"
] | null | null | null | #ifndef __VS_PA_PLAYER_H__
#define __VS_PA_PLAYER_H__
#include <pa_util.h>
#include <portaudio.h>
#include <mutex>
#include "pa_safequeue.hh"
class VSPortAudioPlayer {
public:
VSPortAudioPlayer(int device_num);
~VSPortAudioPlayer();
size_t play(std::vector<int16_t>* data);
void AddSamples(std::vector<int16... | 13.452381 | 49 | 0.730973 | [
"vector"
] |
bb7b3c0fcebe80d29b169de141610a2d7e5c613c | 1,134 | cpp | C++ | src/helpers.cpp | unbornchikken/fastcall | 34695df041ee06798cd44da73f60ca075b0f0828 | [
"Apache-2.0"
] | 220 | 2016-10-25T01:42:09.000Z | 2022-03-16T13:21:51.000Z | src/helpers.cpp | unbornchikken/fastcall | 34695df041ee06798cd44da73f60ca075b0f0828 | [
"Apache-2.0"
] | 47 | 2016-11-17T14:33:52.000Z | 2021-11-15T08:38:59.000Z | src/helpers.cpp | unbornchikken/fastcall | 34695df041ee06798cd44da73f60ca075b0f0828 | [
"Apache-2.0"
] | 23 | 2016-12-12T14:39:07.000Z | 2021-11-11T12:14:01.000Z | /*
Copyright 2016 Gábor Mező (gabor.mezo@outlook.com)
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 ... | 27.658537 | 81 | 0.69224 | [
"object"
] |
bb7d88ef02e12fbb9680a483b8ace7c1cbed6cab | 12,699 | cpp | C++ | media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hvs_kernel.cpp | LhGu/media-driver | e73c1d9a6cb8ff0c619766174cf618863520bf46 | [
"Intel",
"BSD-3-Clause",
"MIT"
] | null | null | null | media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hvs_kernel.cpp | LhGu/media-driver | e73c1d9a6cb8ff0c619766174cf618863520bf46 | [
"Intel",
"BSD-3-Clause",
"MIT"
] | null | null | null | media_softlet/agnostic/common/vp/hal/packet/vp_render_vebox_hvs_kernel.cpp | LhGu/media-driver | e73c1d9a6cb8ff0c619766174cf618863520bf46 | [
"Intel",
"BSD-3-Clause",
"MIT"
] | null | null | null | /*
* Copyright (c) 2022, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publis... | 34.137097 | 135 | 0.677534 | [
"render",
"object"
] |
bb8b16f3776fe80aad68ec69976e0e28f8c3cb08 | 1,068 | cpp | C++ | Stack/0084_LargestRectangleInHistogram/Solution.cpp | liweiyap/LeetCode_Solutions | a137ddbfb6baa6ddabbea809e89e003760b1f23f | [
"MIT"
] | 1 | 2020-03-08T23:23:38.000Z | 2020-03-08T23:23:38.000Z | Stack/0084_LargestRectangleInHistogram/Solution.cpp | liweiyap/LeetCode_Solutions | a137ddbfb6baa6ddabbea809e89e003760b1f23f | [
"MIT"
] | 1 | 2020-01-27T14:01:43.000Z | 2020-01-27T14:01:43.000Z | Stack/0084_LargestRectangleInHistogram/Solution.cpp | liweiyap/LeetCode_Solutions | a137ddbfb6baa6ddabbea809e89e003760b1f23f | [
"MIT"
] | null | null | null | // Runtime: 16 ms, faster than 52.04% of C++ online submissions for Largest Rectangle in Histogram.
// Memory Usage: 10.8 MB, less than 37.14% of C++ online submissions for Largest Rectangle in Histogram.
#include <stack>
#include <vector>
#include <algorithm>
class Solution
{
public:
int largestRectangleArea(std... | 29.666667 | 118 | 0.526217 | [
"vector"
] |
bb8ebb623cf20c57df2c3c1eb6e656ff6ec983e5 | 6,317 | cpp | C++ | src/pomdp/src/alpha_policy.cpp | b-adkins/ros_pomdp | 73af687f94fc41c2f60e4ae86702064a25ea59b3 | [
"MIT"
] | 8 | 2016-01-10T04:40:06.000Z | 2019-02-22T07:39:08.000Z | src/pomdp/src/alpha_policy.cpp | b-adkins/ros_pomdp | 73af687f94fc41c2f60e4ae86702064a25ea59b3 | [
"MIT"
] | null | null | null | src/pomdp/src/alpha_policy.cpp | b-adkins/ros_pomdp | 73af687f94fc41c2f60e4ae86702064a25ea59b3 | [
"MIT"
] | 5 | 2016-01-10T04:40:07.000Z | 2021-08-08T12:57:53.000Z | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Boone "Bea" Adkins
*
* 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.766949 | 100 | 0.658382 | [
"vector"
] |
bb9167dd7a0cc6f648179848710b2bfaa1161518 | 336 | cpp | C++ | graph-measures/features_algorithms/accelerated_graph_features/src/wrappers/WrapperIncludes.cpp | Unknown-Data/QGCN | e074ada31c13b6de6eabba2b2ebce90e88fdfdbf | [
"MIT"
] | 3 | 2021-04-21T16:06:51.000Z | 2022-03-31T12:09:01.000Z | graph-measures/features_algorithms/accelerated_graph_features/src/wrappers/WrapperIncludes.cpp | Unknown-Data/QGCN | e074ada31c13b6de6eabba2b2ebce90e88fdfdbf | [
"MIT"
] | 1 | 2021-02-04T07:48:16.000Z | 2021-02-24T23:01:41.000Z | graph-measures/features_algorithms/accelerated_graph_features/src/wrappers/WrapperIncludes.cpp | Unknown-Data/QGCN | e074ada31c13b6de6eabba2b2ebce90e88fdfdbf | [
"MIT"
] | null | null | null | /*
* WrapperIncludes.cpp
*
* Created on: Nov 20, 2018
* Author: ori
*/
#include "WrapperIncludes.h"
py::list convertVectorOfVectorsTo2DList(vector<vector<unsigned int>*>* vec) {
py::list mainList;
for (auto l : *vec) {
mainList.append(vectorToPythonList<unsigned int>(*l));
}
return ma... | 16.8 | 78 | 0.633929 | [
"vector"
] |
bb9802ef3df2b9af28086afbcfae443bcd122491 | 9,077 | cpp | C++ | XsGameEngine/src/AssetLoading/Vulkan_Assets/Vulkan_Texture.cpp | XsAndre-L/XsGameEngine-REF | 82bbb6424c9b63e0ccf381bd73c0beabce0da141 | [
"Apache-2.0"
] | null | null | null | XsGameEngine/src/AssetLoading/Vulkan_Assets/Vulkan_Texture.cpp | XsAndre-L/XsGameEngine-REF | 82bbb6424c9b63e0ccf381bd73c0beabce0da141 | [
"Apache-2.0"
] | null | null | null | XsGameEngine/src/AssetLoading/Vulkan_Assets/Vulkan_Texture.cpp | XsAndre-L/XsGameEngine-REF | 82bbb6424c9b63e0ccf381bd73c0beabce0da141 | [
"Apache-2.0"
] | null | null | null | #include "Vulkan_Texture.h"
Vulkan_Texture::Vulkan_Texture(VkPhysicalDevice* physicalDevice,VkDevice* device, VkQueue* graphicsQueue, VkCommandPool* graphicsCommandPool, VkSampler* sampler, VkDescriptorPool* descriptorPool, VkDescriptorSetLayout* samplerSetLayout)
{
PhysicalDevice = physicalDevice;
Device = device;
... | 35.596078 | 236 | 0.791231 | [
"vector"
] |
bba38ae6bdc2310d5fb567ef741cb690ed586677 | 9,974 | hpp | C++ | modules/scene_manager/include/visualization_msgs/msg/interactive_marker_feedback__struct.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 1 | 2020-05-19T14:33:49.000Z | 2020-05-19T14:33:49.000Z | ros2_mod_ws/install/include/visualization_msgs/msg/interactive_marker_feedback__struct.hpp | mintforpeople/robobo-ros2-ios-port | 1a5650304bd41060925ebba41d6c861d5062bfae | [
"Apache-2.0"
] | 3 | 2019-11-14T12:20:06.000Z | 2020-08-07T13:51:10.000Z | modules/scene_manager/include/visualization_msgs/msg/interactive_marker_feedback__struct.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | // generated from rosidl_generator_cpp/resource/msg__struct.hpp.em
// generated code does not contain a copyright notice
#ifndef VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_FEEDBACK__STRUCT_HPP_
#define VISUALIZATION_MSGS__MSG__INTERACTIVE_MARKER_FEEDBACK__STRUCT_HPP_
// Protect against ERROR being predefined on Wind... | 33.02649 | 174 | 0.744135 | [
"vector"
] |
bba4be7317b0a5d668a6f9f606c3d4719eadacad | 830 | hpp | C++ | baseclass/baseclass_headers.hpp | HxHexa/quang-advCG-raytracer | 605f7dfcc9237f331d456646b7653ad0f26c0cc4 | [
"MIT"
] | null | null | null | baseclass/baseclass_headers.hpp | HxHexa/quang-advCG-raytracer | 605f7dfcc9237f331d456646b7653ad0f26c0cc4 | [
"MIT"
] | null | null | null | baseclass/baseclass_headers.hpp | HxHexa/quang-advCG-raytracer | 605f7dfcc9237f331d456646b7653ad0f26c0cc4 | [
"MIT"
] | null | null | null | /* baseclass_headers.hpp - collection of all headers from headers folder
* makes things cleaner
* Quang Tran - 9/6/2019
* */
#ifndef BASECLASS_HEADERS
#define BASECLASS_HEADERS
#include "headers/color.hpp"
#include "headers/tuple.hpp"
#include "headers/ray.hpp"
#include "headers/canvas.hpp"
#include "headers/matri... | 23.055556 | 72 | 0.768675 | [
"object"
] |
bbaffeb43aa88715a079aad270798b29357b5f07 | 4,743 | hh | C++ | Modules/Plexil/src/apps/StandAloneSimulator/Simulator.hh | 5nefarious/icarous | bfd759d88a47d9ee079fe35deaa6cf6d4459dcd8 | [
"Unlicense"
] | 1 | 2020-02-27T03:35:50.000Z | 2020-02-27T03:35:50.000Z | src/apps/StandAloneSimulator/Simulator.hh | morxa/plexil-4 | 890e92aa259881dd944d573d6ec519341782a5f2 | [
"BSD-3-Clause"
] | null | null | null | src/apps/StandAloneSimulator/Simulator.hh | morxa/plexil-4 | 890e92aa259881dd944d573d6ec519341782a5f2 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2006-2008, Universities Space Research Association (USRA).
* 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
... | 35.395522 | 101 | 0.721484 | [
"object"
] |
bbb7cb4fcfdc0cf9caef400e4cbc60e6a8a4ac5d | 684 | cpp | C++ | leetcode2/minimumsizesubarraysum.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2016-01-20T08:26:34.000Z | 2016-01-20T08:26:34.000Z | leetcode2/minimumsizesubarraysum.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2015-10-21T05:38:17.000Z | 2015-11-02T07:42:55.000Z | leetcode2/minimumsizesubarraysum.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int minSubArrayLen(int s, vector<int>& nums) {
int start=0;
int end=0;
int sum=0;
int res=INT_MAX;
if(nums.size()==0){
return 0;
}
while(end<nums.size()){
sum+=nums[end];
if(sum... | 21.375 | 50 | 0.352339 | [
"vector"
] |
c7e1209e11971926293f867813ed2d0b13c1fcae | 425 | cpp | C++ | test/my_leetcode_bfs/tree_moving_time.cpp | zjuMrzhang/leetcode | 35ab78be5b9a2ef0fb35f99c146c2190b2bed148 | [
"MIT"
] | null | null | null | test/my_leetcode_bfs/tree_moving_time.cpp | zjuMrzhang/leetcode | 35ab78be5b9a2ef0fb35f99c146c2190b2bed148 | [
"MIT"
] | null | null | null | test/my_leetcode_bfs/tree_moving_time.cpp | zjuMrzhang/leetcode | 35ab78be5b9a2ef0fb35f99c146c2190b2bed148 | [
"MIT"
] | 1 | 2020-09-30T19:03:01.000Z | 2020-09-30T19:03:01.000Z |
/*
* tree: int val ,vector<TreeNode*> childrens
*/
struct TreeNode{
int val;
vector<TreeNode*> childrens;
}
int timeForLeave(TreeNode* root){
if(root==NULL) return 0;
int m=0;
for(auto t:root->childrens){
m=max(dfs(t),m);
}
return m;
}
int dfs(TreeNode* root){
if(root==NULL)... | 16.346154 | 45 | 0.569412 | [
"vector"
] |
c7ee9d5d6cf294b97f813e3efa24474375a9b1ff | 1,656 | hh | C++ | PacDetector/PacCylDetector.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | PacDetector/PacCylDetector.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | PacDetector/PacCylDetector.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | /* Class: PacCylDetector
*
* A detector model consisting of a series of concentric cylinders, each with
* the same thickness and single point resolution. */
#ifndef PacCylDetector_HH
#define PacCylDetector_HH
#include "PacGeom/PacDetector.hh"
#include <vector>
#include <set>
class DetElem;
class DetType;
class De... | 35.234043 | 84 | 0.751208 | [
"vector",
"model"
] |
c7f9d45d70293f9cfcc744771c0ff2cbe0eece93 | 3,557 | cxx | C++ | Testing/Code/Numerics/FEM/itkFEMLinearSystemWrapperItpackTest2.cxx | dtglidden/ITK | ef0c16fee4fac904d6ab706b8f7d438d4062cd96 | [
"BSD-3-Clause"
] | 1 | 2017-07-31T18:41:02.000Z | 2017-07-31T18:41:02.000Z | Testing/Code/Numerics/FEM/itkFEMLinearSystemWrapperItpackTest2.cxx | dtglidden/ITK | ef0c16fee4fac904d6ab706b8f7d438d4062cd96 | [
"BSD-3-Clause"
] | null | null | null | Testing/Code/Numerics/FEM/itkFEMLinearSystemWrapperItpackTest2.cxx | dtglidden/ITK | ef0c16fee4fac904d6ab706b8f7d438d4062cd96 | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkFEMLinearSystemWrapperItpackTest2.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
Se... | 22.371069 | 76 | 0.57661 | [
"vector"
] |
c7fd635caf917aa44704b18773564d7e401af365 | 4,058 | cpp | C++ | tools/Data2Sql/Data2Sql.cpp | FunctionLab/sleipnir | 6f74986ef03cb2df8deee1077ae180391557403a | [
"CC-BY-3.0"
] | 1 | 2021-03-21T23:17:12.000Z | 2021-03-21T23:17:12.000Z | tools/Data2Sql/Data2Sql.cpp | FunctionLab/sleipnir | 6f74986ef03cb2df8deee1077ae180391557403a | [
"CC-BY-3.0"
] | 4 | 2021-03-26T13:56:59.000Z | 2022-03-30T21:38:06.000Z | tools/Data2Sql/Data2Sql.cpp | FunctionLab/sleipnir | 6f74986ef03cb2df8deee1077ae180391557403a | [
"CC-BY-3.0"
] | null | null | null | /*****************************************************************************
* This file is provided under the Creative Commons Attribution 3.0 license.
*
* You are free to share, copy, distribute, transmit, or adapt this work
* PROVIDED THAT you attribute the work to the authors listed below.
* For more information,... | 36.232143 | 102 | 0.5069 | [
"vector"
] |
2a027fdae5269656edcdec904135f7afac5c0d26 | 3,767 | c++ | C++ | test/5/src/main.c++ | maciek-27/Rgp | d28b5522e640e4c7b951f6861d97cbe52b0a35c9 | [
"MIT"
] | null | null | null | test/5/src/main.c++ | maciek-27/Rgp | d28b5522e640e4c7b951f6861d97cbe52b0a35c9 | [
"MIT"
] | null | null | null | test/5/src/main.c++ | maciek-27/Rgp | d28b5522e640e4c7b951f6861d97cbe52b0a35c9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <exception>
#include <signal.h>
#include "netconn.h++"
#include "demo.h++"
#include "main.h++"
#include "manager.h++"
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <set>
#include <cstdlib>
#include <cstring>
pthread_mutex_t startSequenc... | 26.907143 | 93 | 0.666313 | [
"object"
] |
2a0e9134914d0aae9c9e5fdcc0962a99ae2da4a2 | 3,176 | cpp | C++ | atcoder/arc116/B/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | atcoder/arc116/B/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | atcoder/arc116/B/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | // atcoder/arc116/B/mani.cpp
// author: @___Johniel
// github: https://github.com/johniel/
#include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
template<typename P, typename Q> ostream& operator << (ostream& os, pair<P, Q> p) { os << "(" << p.first << ... | 27.145299 | 150 | 0.494962 | [
"vector"
] |
2a149ba2fc2afd5e9b7bf0eef8ce8be0047d14f2 | 4,001 | cpp | C++ | sources/students.cpp | Denis-Gorbachev/lab-01-parse | 1ba52c06921b52855671098829332d7f609cb332 | [
"MIT"
] | null | null | null | sources/students.cpp | Denis-Gorbachev/lab-01-parse | 1ba52c06921b52855671098829332d7f609cb332 | [
"MIT"
] | null | null | null | sources/students.cpp | Denis-Gorbachev/lab-01-parse | 1ba52c06921b52855671098829332d7f609cb332 | [
"MIT"
] | null | null | null | // Copyright 2021 Denis <denis.gorbachev2002@yandex.ru>
#include <students.hpp>
json get_data(const std::string& jsonPath){
std::ifstream file(jsonPath);
json data;
file >> data;
if (jsonPath.empty())
throw std::runtime_error("File's path is empty");
if (!file)
throw std::runtime_... | 33.621849 | 79 | 0.52012 | [
"vector"
] |
2a1b93a05577d9166ac1788eaf7bf6c9250d6c02 | 6,652 | cpp | C++ | test/system/system.cpp | jamesmistry/measuro | 6485732a7decd8bd787a0100fefc7b3f708c80bd | [
"MIT"
] | null | null | null | test/system/system.cpp | jamesmistry/measuro | 6485732a7decd8bd787a0100fefc7b3f708c80bd | [
"MIT"
] | null | null | null | test/system/system.cpp | jamesmistry/measuro | 6485732a7decd8bd787a0100fefc7b3f708c80bd | [
"MIT"
] | null | null | null | /*!
* @file system.cpp
*
* Copyright (c) 2017 James Mistry
*
* 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, cop... | 34.112821 | 188 | 0.648527 | [
"vector"
] |
2a3c99998081e6aa66a77f6e95205cfcefb6b5a7 | 4,518 | cpp | C++ | src/glfoundation/light.cpp | ChinYing-Li/OpenGL-cart | 2625dfb194a65d6b277f6c3c57602319000bce16 | [
"MIT"
] | 2 | 2021-06-03T03:36:35.000Z | 2021-09-18T07:25:24.000Z | src/glfoundation/light.cpp | ChinYing-Li/OpenGL-cart | 2625dfb194a65d6b277f6c3c57602319000bce16 | [
"MIT"
] | null | null | null | src/glfoundation/light.cpp | ChinYing-Li/OpenGL-cart | 2625dfb194a65d6b277f6c3c57602319000bce16 | [
"MIT"
] | null | null | null | #include <assert.h>
#include <iostream>
#include "light.h"
#include "glfoundation/texturemanager.h"
namespace Cluster{
Light::Light():
m_const_atten(10.0f),
m_linear_atten(10.0f),
m_shadowbuffer(800, 600)
{}
bool Light::
is_enabled()
{
return m_on_state;
}
void Light::
turn_on()
{
m_on_state = true;
... | 21.211268 | 144 | 0.719124 | [
"vector"
] |
2a3cd6b528cd12bf2fd3a50dc256ab6f7811e091 | 1,393 | hpp | C++ | include/gpcxx/app/normalize.hpp | gchoinka/gpcxx | 143398d8a12cdc39735e6ef50c3f8a44a6e6360f | [
"BSL-1.0"
] | 21 | 2015-05-15T08:01:37.000Z | 2020-11-12T07:28:54.000Z | include/gpcxx/app/normalize.hpp | gchoinka/gpcxx | 143398d8a12cdc39735e6ef50c3f8a44a6e6360f | [
"BSL-1.0"
] | 2 | 2015-03-26T23:48:04.000Z | 2016-02-29T14:16:37.000Z | include/gpcxx/app/normalize.hpp | gchoinka/gpcxx | 143398d8a12cdc39735e6ef50c3f8a44a6e6360f | [
"BSL-1.0"
] | 9 | 2015-02-12T21:39:01.000Z | 2020-10-01T05:14:08.000Z | /*
gpcxx/app/normalize.hpp
Copyright 2013 Karsten Ahnert
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or
copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef GPCXX_APP_NORMALIZE_HPP_DEFINED
#define GPCXX_APP_NORMALIZE_HPP_DEFINED
#include <gpcxx/ev... | 23.216667 | 81 | 0.643934 | [
"vector"
] |
2a41e2e3d8e6783f1dd4dca6630cf18715f305e3 | 2,033 | cpp | C++ | Contrib-Intel/RSD-PSME-RMM/common/agent-framework/src/module/model/trusted_module.cpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 5 | 2019-11-11T07:57:26.000Z | 2022-03-28T08:26:53.000Z | Contrib-Intel/RSD-PSME-RMM/common/agent-framework/src/module/model/trusted_module.cpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 3 | 2019-09-05T21:47:07.000Z | 2019-09-17T18:10:45.000Z | Contrib-Intel/RSD-PSME-RMM/common/agent-framework/src/module/model/trusted_module.cpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 11 | 2019-07-20T00:16:32.000Z | 2022-01-11T14:17:48.000Z | /*!
* @copyright
* Copyright (c) 2017-2019 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-... | 35.666667 | 99 | 0.753074 | [
"model"
] |
2a44ac48d96505f78aa8b3afa4ba7832eac9ca71 | 1,382 | cpp | C++ | codeforces/global_9/replacemex.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | codeforces/global_9/replacemex.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | codeforces/global_9/replacemex.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstring>
#include<vector>
using namespace std;
int getmex(int a[], int n){
for(int i=0 ; i<n ; i++){
if(a[i]==0)
return i;
}
return -1;
}
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin >> t;
while(t--){
i... | 22.290323 | 44 | 0.323444 | [
"vector"
] |
2a52d312e203a16d6d33d88bd7ace521ca28e422 | 4,406 | hpp | C++ | plugin/namer.hpp | timgates42/libcsp | 0135434f56a64697c6087db4cfc8ce91e9f665e8 | [
"MIT"
] | 1 | 2020-04-08T06:35:38.000Z | 2020-04-08T06:35:38.000Z | plugin/namer.hpp | sthagen/libcsp | deaf02da974fb217dca2196f7faecafe9f06a66a | [
"MIT"
] | null | null | null | plugin/namer.hpp | sthagen/libcsp | deaf02da974fb217dca2196f7faecafe9f06a66a | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020, Yanhui Shi <lime.syh at gmail dot com>
* All rights reserved.
*
* 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 appear in all copies.
*
* THE... | 25.468208 | 77 | 0.629823 | [
"vector"
] |
2a54c719d39ea6b165f762bbd58c70c2de4eba5b | 2,310 | cpp | C++ | codedrills/ICPC_practice_3/d.cpp | Shahraaz/CP_S5 | 2cfb5467841d660c1e47cb8338ea692f10ca6e60 | [
"MIT"
] | 3 | 2020-02-08T10:34:16.000Z | 2020-02-09T10:23:19.000Z | codedrills/ICPC_practice_3/d.cpp | Shahraaz/CP_S5 | 2cfb5467841d660c1e47cb8338ea692f10ca6e60 | [
"MIT"
] | null | null | null | codedrills/ICPC_practice_3/d.cpp | Shahraaz/CP_S5 | 2cfb5467841d660c1e47cb8338ea692f10ca6e60 | [
"MIT"
] | 2 | 2020-10-02T19:05:32.000Z | 2021-09-08T07:01:49.000Z | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define deb(x) cout << #x << " " << x << "\n";
#define MAX 9223372036854775807
#define MIN -9223372036854775807
#define setbits(n) __builtin_popcountll(n)
#define mkunique(... | 24.83871 | 85 | 0.441126 | [
"vector"
] |
2a5a282bfb5659366dae7eae71a50000f31f2ba9 | 6,288 | cxx | C++ | HLT/TRD/AliHLTTRDOfflineClusterizerComponent.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | null | null | null | HLT/TRD/AliHLTTRDOfflineClusterizerComponent.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 2 | 2016-11-25T08:40:56.000Z | 2019-10-11T12:29:29.000Z | HLT/TRD/AliHLTTRDOfflineClusterizerComponent.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | null | null | null | // $Id$
//**************************************************************************
//* This file is property of and copyright by the ALICE HLT Project *
//* ALICE Experiment at CERN, All rights reserved. *
//* *
//... | 37.652695 | 158 | 0.676845 | [
"vector"
] |
398010bc0d731e9d8f6d0dfeaac9e6fcec9564e9 | 1,443 | cpp | C++ | HackerEarth/CodeMonk/GraphTheoryII/MonkInTheSecretServices.cpp | shiva92/Contests | 720bb3699f774a6ea1f99e888e0cd784e63130c8 | [
"Apache-2.0"
] | null | null | null | HackerEarth/CodeMonk/GraphTheoryII/MonkInTheSecretServices.cpp | shiva92/Contests | 720bb3699f774a6ea1f99e888e0cd784e63130c8 | [
"Apache-2.0"
] | null | null | null | HackerEarth/CodeMonk/GraphTheoryII/MonkInTheSecretServices.cpp | shiva92/Contests | 720bb3699f774a6ea1f99e888e0cd784e63130c8 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
const int mod = 1e9 + 7;
using namespace std;
int t, n, m, x, y, c, s, a, h;
vector< pair<int, int >> v[107];
int d[3][107];
int shortestpath() {
int temp [] = {s, a, h};
for (int ii = 0; ii < 3; ii++) {
for (int i = 0; i <= 100; i++) d[ii][i] = 1e9; d[ii][temp[ii]] = 0;
priority_queue<... | 24.05 | 84 | 0.483714 | [
"vector"
] |
398723acecae875a0968061901396167d69d4dd5 | 3,225 | cpp | C++ | desktop/notes/loginwindow.cpp | pyprism/Hiren-Notes-Desktop-Client | 54ad18322f41c567be4db1e0b51e93772da950de | [
"MIT"
] | null | null | null | desktop/notes/loginwindow.cpp | pyprism/Hiren-Notes-Desktop-Client | 54ad18322f41c567be4db1e0b51e93772da950de | [
"MIT"
] | null | null | null | desktop/notes/loginwindow.cpp | pyprism/Hiren-Notes-Desktop-Client | 54ad18322f41c567be4db1e0b51e93772da950de | [
"MIT"
] | null | null | null | #include "loginwindow.h"
#include "ui_loginwindow.h"
#include <QDebug>
#include <QByteArray>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonValue>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QUrl>
#include <QUrlQuery>
#include <Q... | 27.10084 | 93 | 0.684341 | [
"object"
] |
39885919fcea1eeebd19fa791a894af9325cadd5 | 36,170 | cpp | C++ | common/tcpcl/src/TcpclV3BidirectionalLink.cpp | ewb4/HDTN | a0e577351bd28c3aeb7e656e03a2d93cf84712a0 | [
"NASA-1.3"
] | null | null | null | common/tcpcl/src/TcpclV3BidirectionalLink.cpp | ewb4/HDTN | a0e577351bd28c3aeb7e656e03a2d93cf84712a0 | [
"NASA-1.3"
] | null | null | null | common/tcpcl/src/TcpclV3BidirectionalLink.cpp | ewb4/HDTN | a0e577351bd28c3aeb7e656e03a2d93cf84712a0 | [
"NASA-1.3"
] | null | null | null | #include <string>
#include <iostream>
#include "TcpclV3BidirectionalLink.h"
#include <boost/lexical_cast.hpp>
#include <boost/make_shared.hpp>
#include <boost/make_unique.hpp>
#include "Uri.h"
#include <boost/endian/conversion.hpp>
TcpclV3BidirectionalLink::TcpclV3BidirectionalLink(
const std::string & implementat... | 53.269514 | 234 | 0.719021 | [
"vector"
] |
398cc5f27a7e0dafc0f4c4dad079cfc1321720b0 | 4,998 | cpp | C++ | mysql-dst/mysql-cluster/storage/ndb/nodejs/jones-ndb/impl/src/ndb/BatchImpl_wrapper.cpp | SJTU-IPADS/dst | 897b929a692642cbf295c105d9d6e64090abb673 | [
"Apache-2.0"
] | 9 | 2020-12-17T01:59:13.000Z | 2022-03-30T16:25:08.000Z | mysql-dst/mysql-cluster/ndb/nodejs/jones-ndb/impl/src/ndb/BatchImpl_wrapper.cpp | SJTU-IPADS/dst | 897b929a692642cbf295c105d9d6e64090abb673 | [
"Apache-2.0"
] | 1 | 2021-07-30T12:06:33.000Z | 2021-07-31T10:16:09.000Z | mysql-dst/mysql-cluster/storage/ndb/nodejs/jones-ndb/impl/src/ndb/BatchImpl_wrapper.cpp | SJTU-IPADS/dst | 897b929a692642cbf295c105d9d6e64090abb673 | [
"Apache-2.0"
] | 1 | 2021-08-01T13:47:07.000Z | 2021-08-01T13:47:07.000Z | /*
Copyright (c) 2014, 2016 , 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
as published by the Free Software Foundation; version 2 of
the License.
This program is distributed in the... | 29.928144 | 79 | 0.722889 | [
"object"
] |
3994b799b2994aee2a8f01cd4931bf058e0b89c8 | 3,217 | cpp | C++ | src/backend/cpp/check.cpp | wadymwadim/normandeau | 2995a3293b22df269b88c3486e4f4009a1a5d76f | [
"Xnet",
"X11"
] | null | null | null | src/backend/cpp/check.cpp | wadymwadim/normandeau | 2995a3293b22df269b88c3486e4f4009a1a5d76f | [
"Xnet",
"X11"
] | null | null | null | src/backend/cpp/check.cpp | wadymwadim/normandeau | 2995a3293b22df269b88c3486e4f4009a1a5d76f | [
"Xnet",
"X11"
] | null | null | null | #include <iostream>
#include "check.hpp"
#include "cover.hpp"
#include "equations.hpp"
#include "evaluator.hpp"
template <template <typename> class Trig>
bool equations_positive(const std::vector<std::tuple<EqVec<Trig>, Coeff64, Coeff64>>& eqs, const PointQ& center, const Rational& radius, Evaluator& eval) {
for... | 31.23301 | 155 | 0.60087 | [
"geometry",
"vector"
] |
39a36622bcd2213f23e2d1446dc870bd9e55f632 | 2,312 | cpp | C++ | UVa Online Judge/v8/857.cpp | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | 1 | 2021-12-08T08:58:43.000Z | 2021-12-08T08:58:43.000Z | UVa Online Judge/v8/857.cpp | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | UVa Online Judge/v8/857.cpp | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | /*=============================================================================
# Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/
# FileName: 857.cpp
# Description: UVa Online Judge - 857
=============================================================================*/
#include <algor... | 28.9 | 80 | 0.334343 | [
"vector"
] |
39a475be046c75b20171d8c39e9bddf1efd1224b | 4,414 | cpp | C++ | Solved exams/February exams/February 2017 session 2/Examen.cpp | marcosherreroa/Fundamentos-de-Programacion | 48c5b6c36e11d907776cdf726022c1b62c6cecdc | [
"CC0-1.0"
] | null | null | null | Solved exams/February exams/February 2017 session 2/Examen.cpp | marcosherreroa/Fundamentos-de-Programacion | 48c5b6c36e11d907776cdf726022c1b62c6cecdc | [
"CC0-1.0"
] | null | null | null | Solved exams/February exams/February 2017 session 2/Examen.cpp | marcosherreroa/Fundamentos-de-Programacion | 48c5b6c36e11d907776cdf726022c1b62c6cecdc | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <iomanip>
const int N_ACC = 10;
enum tOperacion{ COMPRA, VENTA, ACTUALIZACION, FIN, INCORRECTO };
struct tAccion{
std::string nombre;
float precioAccion;
int numAcciones;
};
tOperacion char2operacion(char caracter){
switch (cara... | 25.662791 | 147 | 0.637744 | [
"vector"
] |
39bd4bded88e4dcc4d534390f9d30956591aef98 | 1,406 | cpp | C++ | src/region.cpp | calincru/Warlight-AI-Challenge-2-Bot | 4d427423db42c24e8d8f124ed6ab0ce85c3e5dff | [
"MIT"
] | 1 | 2015-10-07T16:44:27.000Z | 2015-10-07T16:44:27.000Z | src/region.cpp | calincru/Warlight-AI-Challenge-2-Bot | 4d427423db42c24e8d8f124ed6ab0ce85c3e5dff | [
"MIT"
] | null | null | null | src/region.cpp | calincru/Warlight-AI-Challenge-2-Bot | 4d427423db42c24e8d8f124ed6ab0ce85c3e5dff | [
"MIT"
] | null | null | null | // This program is free software licenced under MIT Licence. You can
// find a copy of this licence in LICENCE.txt in the top directory of
// source code.
//
// Self
#include "region.hpp"
// C++
#include <cassert>
namespace warlightAi {
Region::Region(int id, SuperRegionPtr superRegion)
: m_id(id)
, m_super... | 17.146341 | 69 | 0.681366 | [
"vector"
] |
39bd82af68de1a40dbb4cd974c06561e68c5e9bd | 4,520 | cpp | C++ | src/scheduler/FunctionCallClient.cpp | n-krueger/faabric | c95c3baf9406613629e5f382efc0fc8366b22752 | [
"Apache-2.0"
] | null | null | null | src/scheduler/FunctionCallClient.cpp | n-krueger/faabric | c95c3baf9406613629e5f382efc0fc8366b22752 | [
"Apache-2.0"
] | null | null | null | src/scheduler/FunctionCallClient.cpp | n-krueger/faabric | c95c3baf9406613629e5f382efc0fc8366b22752 | [
"Apache-2.0"
] | null | null | null | #include <faabric/proto/faabric.pb.h>
#include <faabric/scheduler/FunctionCallClient.h>
#include <grpcpp/create_channel.h>
#include <grpcpp/security/credentials.h>
#include <faabric/rpc/macros.h>
#include <faabric/util/queue.h>
#include <faabric/util/testing.h>
namespace faabric::scheduler {
// --------------------... | 27.065868 | 80 | 0.664823 | [
"vector"
] |
39c3f4a3b95fedd5dd5d18ebd869b83f64e08b01 | 19,677 | cpp | C++ | rendering.cpp | Dangertech/tictactoe-ncurses | caf238843d2ac5bf79cab1d17569050fb9703165 | [
"Unlicense"
] | 1 | 2021-09-05T08:05:10.000Z | 2021-09-05T08:05:10.000Z | rendering.cpp | Dangertech/tictactoe | caf238843d2ac5bf79cab1d17569050fb9703165 | [
"Unlicense"
] | 10 | 2021-09-05T08:15:41.000Z | 2021-09-25T14:19:06.000Z | rendering.cpp | Dangertech/tictactoe-ncurses | caf238843d2ac5bf79cab1d17569050fb9703165 | [
"Unlicense"
] | null | null | null | #include <ncurses.h>
#include <vector>
#include <string>
#include "vars.h"
#include "rendering.h"
////// START MENU
// Create a struct that holds option properties
struct menu_options
{
std::string description;
// Int if the option should have a value
int display_value;
// Text if the option should have differen... | 31.432907 | 124 | 0.651116 | [
"render",
"vector"
] |
39d5d4863873fc15d439b18088eaf4f9cf9bef0a | 1,124 | cpp | C++ | Geometry/geometry.cpp | xubenhao/VisualAlgorithm | 5fc45d9a4fc58569953fe3d880517adcd2fb0881 | [
"Apache-2.0"
] | 1 | 2021-01-29T02:12:53.000Z | 2021-01-29T02:12:53.000Z | Geometry/geometry.cpp | xubenhao/VisualAlgorithm | 5fc45d9a4fc58569953fe3d880517adcd2fb0881 | [
"Apache-2.0"
] | null | null | null | Geometry/geometry.cpp | xubenhao/VisualAlgorithm | 5fc45d9a4fc58569953fe3d880517adcd2fb0881 | [
"Apache-2.0"
] | null | null | null | // Author : XuBenHao
// Version : 1.0.0
// Mail : xbh370970843@163.com
// Copyright : XuBenHao 2020 - 2030
#include "geometry.h"
namespace NGeometry
{
Geometry::Geometry(QObject* parent)
: QObject(parent)
{
}
Geometry::~Geometry()
{
}
void Geometry::Draw(... | 18.129032 | 49 | 0.540925 | [
"geometry",
"transform"
] |
39d9331511aca7d628257229daa3b0be69068436 | 1,223 | cpp | C++ | 1015 KMP/main.cpp | SLAPaper/hihoCoder | 3f64d678c5dd46db36345736eb56880fb2d2c5fe | [
"MIT"
] | null | null | null | 1015 KMP/main.cpp | SLAPaper/hihoCoder | 3f64d678c5dd46db36345736eb56880fb2d2c5fe | [
"MIT"
] | null | null | null | 1015 KMP/main.cpp | SLAPaper/hihoCoder | 3f64d678c5dd46db36345736eb56880fb2d2c5fe | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
using namespace std;
vector<int> getNext(string p)
{
vector<int> next = vector<int>(p.length());
next[0] = -1;
int i = 0;
int j = -1;
int m = p.length();
while (i < m - 1)
{
if (j == -1 || p[i] == p[j])
{
... | 14.22093 | 47 | 0.323794 | [
"vector"
] |
39ed32afc112ae274ac25d92af3543490c375082 | 10,689 | cpp | C++ | 03_opencv_detection/main.cpp | ifding/self-driving-car | fc8bc808d5439686f0ee24a4f0f3b1f5354df6c0 | [
"MIT"
] | 13 | 2018-05-15T16:33:11.000Z | 2019-02-14T06:46:31.000Z | 03_opencv_detection/main.cpp | ifding/autonomous-vehicles | a3dab9c5d66998ea277308b51f6be0049f605558 | [
"MIT"
] | null | null | null | 03_opencv_detection/main.cpp | ifding/autonomous-vehicles | a3dab9c5d66998ea277308b51f6be0049f605558 | [
"MIT"
] | 15 | 2018-05-18T19:19:48.000Z | 2021-11-03T04:36:50.000Z | #include <fstream>
#include <sstream>
#include <mutex>
#include <thread>
#include <queue>
#include <opencv2/dnn.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
using namespace cv;
using namespace dnn;
float confThreshold = 0.4, nmsThreshold = 0.4;
std::vector<std::string> classes;
inline void pr... | 31.072674 | 108 | 0.538404 | [
"object",
"shape",
"vector",
"model"
] |
39f834a9fc5a62a6cda30464fc4c6c0b406b9668 | 13,786 | cpp | C++ | indra/test/llmessagetemplateparser_tut.cpp | SaladDais/LSO2-VM-Performance | d7ec9ad9daa9a2c9e48c5f06cd768606e3e50638 | [
"ISC"
] | 1 | 2022-01-29T07:10:03.000Z | 2022-01-29T07:10:03.000Z | indra/test/llmessagetemplateparser_tut.cpp | bloomsirenix/Firestorm-manikineko | 67e1bb03b2d05ab16ab98097870094a8cc9de2e7 | [
"Unlicense"
] | null | null | null | indra/test/llmessagetemplateparser_tut.cpp | bloomsirenix/Firestorm-manikineko | 67e1bb03b2d05ab16ab98097870094a8cc9de2e7 | [
"Unlicense"
] | 1 | 2021-10-01T22:22:27.000Z | 2021-10-01T22:22:27.000Z | /**
* @file llmessagetemplateparser_tut.cpp
* @date April 2007
* @brief LLMessageTemplateParser unit tests
*
* $LicenseInfo:firstyear=2006&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modi... | 37.360434 | 102 | 0.690918 | [
"object"
] |
39f9bd9a5ecd631357071f874efbe505f3cbe6b1 | 1,255 | cpp | C++ | Strings/fully_justify.cpp | aneesh001/InterviewBit | fcbac096fd8e9554a52db10dc9e5a88cb8a83ef3 | [
"MIT"
] | null | null | null | Strings/fully_justify.cpp | aneesh001/InterviewBit | fcbac096fd8e9554a52db10dc9e5a88cb8a83ef3 | [
"MIT"
] | null | null | null | Strings/fully_justify.cpp | aneesh001/InterviewBit | fcbac096fd8e9554a52db10dc9e5a88cb8a83ef3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
vector<string> fullJustify(vector<string> &A, int B) {
vector<string> ans;
int taken = 0;
while(taken < A.size()) {
int i = taken;
int sum = A[i].size();
while(i + 1 < A.size() && sum + 1 + A[i + 1].size() <= B) {
sum += 1 + A[i + 1].size();
i++;
}
st... | 14.940476 | 61 | 0.422311 | [
"vector"
] |
39fb1ca74aa9ae17196a9c72e57fdd275209ba2e | 910 | cpp | C++ | algorithms/cpp/Problems 101-200/_162_FindPeakElement.cpp | shivamacs/LeetCode | f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a | [
"MIT"
] | null | null | null | algorithms/cpp/Problems 101-200/_162_FindPeakElement.cpp | shivamacs/LeetCode | f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a | [
"MIT"
] | null | null | null | algorithms/cpp/Problems 101-200/_162_FindPeakElement.cpp | shivamacs/LeetCode | f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a | [
"MIT"
] | null | null | null | /* Source - https://leetcode.com/problems/find-peak-element/
Author - Shivam Arora
*/
#include <bits/stdc++.h>
using namespace std;
int findPeakElement(vector<int>& nums) {
int n = nums.size();
int low = 0;
int high = n - 1;
while(low <= high) {
int mid = low + (high - low) / 2... | 22.75 | 98 | 0.49011 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.