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
5084e1999ca8630e3c8ab2ebd4f6ded0dc2be481
531
cpp
C++
leetcode/121_best_time_to_buy_and_sell_stock.cpp
haohaibo/learn
7a30489e76abeda1465fe610b1c5cf4c4de7e3b6
[ "MIT" ]
1
2021-02-20T00:14:35.000Z
2021-02-20T00:14:35.000Z
leetcode/121_best_time_to_buy_and_sell_stock.cpp
haohaibo/learn
7a30489e76abeda1465fe610b1c5cf4c4de7e3b6
[ "MIT" ]
null
null
null
leetcode/121_best_time_to_buy_and_sell_stock.cpp
haohaibo/learn
7a30489e76abeda1465fe610b1c5cf4c4de7e3b6
[ "MIT" ]
null
null
null
/* * * Filename: 121_best_time_to_buy_and_sell_stock.cpp * * Author: Haibo Hao * Email : haohaibo@ncic.ac.cn * Description: --- * Create: 2017-10-23 17:26:09 * Last Modified: 2017-10-23 17:27:18 **/ class Solution { public: int maxProfit(vector<int>& prices) { int minPrice = I...
23.086957
57
0.587571
[ "vector" ]
508a5c3abdc4f555916dacc141a0fb71003ca551
2,285
hh
C++
include/goetia/benchmarks/bench_storage.hh
camillescott/boink
db75dc0d87126c5ad20c35405699d89153f109a8
[ "MIT" ]
3
2019-03-10T02:30:16.000Z
2020-02-07T20:11:26.000Z
include/goetia/benchmarks/bench_storage.hh
camillescott/boink
db75dc0d87126c5ad20c35405699d89153f109a8
[ "MIT" ]
6
2018-04-11T02:01:18.000Z
2020-01-31T14:21:55.000Z
include/goetia/benchmarks/bench_storage.hh
camillescott/goetia
677e3ef028be6b70a2dacbcf7a4e83f4bb9fdf9a
[ "MIT" ]
2
2019-03-09T19:15:08.000Z
2019-04-18T19:27:08.000Z
#include "goetia/goetia.hh" #include "goetia/storage/storage.hh" #include <chrono> #include <iostream> #include <memory> #include <string> #include <vector> namespace goetia { namespace bench { template<class storage_type> void storage_insert_bench(std::unique_ptr<storage_type>& storage, s...
30.065789
168
0.6407
[ "vector" ]
509084a087bc61c0ecc7e023e59ef2df5552b55f
542
hpp
C++
include/EventHandler.hpp
LuisHsu/Assignment_4
1735738d3d523d9c3a007d9fb471f121071e75fe
[ "BSD-3-Clause" ]
null
null
null
include/EventHandler.hpp
LuisHsu/Assignment_4
1735738d3d523d9c3a007d9fb471f121071e75fe
[ "BSD-3-Clause" ]
null
null
null
include/EventHandler.hpp
LuisHsu/Assignment_4
1735738d3d523d9c3a007d9fb471f121071e75fe
[ "BSD-3-Clause" ]
null
null
null
#ifndef EVENTHANDLER_DEF #define EVENTHANDLER_DEF #include <sys/epoll.h> #include <cstdint> #include <vector> #include <functional> #include <unordered_map> class EventHandler{ using callback_t = std::function<void(uint32_t)>; public: EventHandler(int size); ~EventHandler(); void run(); void stop(...
21.68
63
0.715867
[ "vector" ]
5095383a0172f1890a1fbee4a7f882a2f31387e3
735
cc
C++
i_wanna_be_the_guy.cc
maximilianbrine/github-slideshow
76e4d6a7e57da61f1ddca4d8aa8bc5d2fd78bea1
[ "MIT" ]
null
null
null
i_wanna_be_the_guy.cc
maximilianbrine/github-slideshow
76e4d6a7e57da61f1ddca4d8aa8bc5d2fd78bea1
[ "MIT" ]
3
2021-01-04T18:33:39.000Z
2021-01-04T19:37:21.000Z
i_wanna_be_the_guy.cc
maximilianbrine/github-slideshow
76e4d6a7e57da61f1ddca4d8aa8bc5d2fd78bea1
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> int main() { int n, n_p, n_q; std::cin >> n; std::vector<int> x , y; std::cin >> n_p; for (int i = 0; i < n_p; ++i) { int p; std::cin >> p; x.push_back(p); } std::cin >> n_q; for (int i = 0; i < n_q; ++i) { ...
21
60
0.405442
[ "vector" ]
50981abc2d6dcd83530c6207a04684826e111490
3,098
hpp
C++
src/test_suites/oclc/oclc_function_qualifiers/src/common.hpp
intel/cassian
8e9594f053f9b9464066c8002297346580e4aa2a
[ "MIT" ]
1
2021-10-05T14:15:34.000Z
2021-10-05T14:15:34.000Z
src/test_suites/oclc/oclc_function_qualifiers/src/common.hpp
intel/cassian
8e9594f053f9b9464066c8002297346580e4aa2a
[ "MIT" ]
null
null
null
src/test_suites/oclc/oclc_function_qualifiers/src/common.hpp
intel/cassian
8e9594f053f9b9464066c8002297346580e4aa2a
[ "MIT" ]
null
null
null
/* * Copyright (C) 2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #ifndef CASSIAN_OCLC_FUNCTION_QUALIFIERS_COMMON_HPP #define CASSIAN_OCLC_FUNCTION_QUALIFIERS_COMMON_HPP #include "test_config.hpp" #include <cassian/logging/logging.hpp> #include <cassian/runtime/runtime.hpp> #include <catch2/catch.h...
34.808989
78
0.677534
[ "vector" ]
5098ae2c52f97ecfe884c6ab0746d60fa180b719
8,930
cpp
C++
src/example.cpp
fengzhang2011/audio-processing
5fc4c21b8924f00fb0c901c1f04443da23b63f38
[ "MIT" ]
25
2018-11-30T22:12:00.000Z
2021-12-09T19:20:35.000Z
src/example.cpp
fengzhang2011/audio-processing
5fc4c21b8924f00fb0c901c1f04443da23b63f38
[ "MIT" ]
5
2018-12-02T22:47:16.000Z
2020-11-06T05:54:56.000Z
src/example.cpp
fengzhang2011/audio-processing
5fc4c21b8924f00fb0c901c1f04443da23b63f38
[ "MIT" ]
2
2020-10-16T23:27:37.000Z
2022-01-12T18:19:31.000Z
/************************************************* * * A simple example that uses the three libraries: AudioFile, FFTS, and Pitch_Detection. * * Author: Feng Zhang (zhjinf@gmail.com) * Date: 2018-10-13 * * Copyright: * See LICENSE. * ************************************************/ #include <algorithm> ...
24.600551
112
0.635946
[ "vector" ]
50a0b6b89da3b68283232901527709df0f445ef5
2,587
hpp
C++
include/rainbow/memory/object_operations.hpp
Manu343726/rainbow
a125bbf04b0b94686fe0bd4149a097c56df02732
[ "MIT" ]
3
2021-05-10T21:18:32.000Z
2021-05-24T02:46:30.000Z
include/rainbow/memory/object_operations.hpp
Manu343726/rainbow
a125bbf04b0b94686fe0bd4149a097c56df02732
[ "MIT" ]
null
null
null
include/rainbow/memory/object_operations.hpp
Manu343726/rainbow
a125bbf04b0b94686fe0bd4149a097c56df02732
[ "MIT" ]
null
null
null
#ifndef RAINBOW_MEMORY_OBJECTOPERATIONS_HPP_INCLUDED #define RAINBOW_MEMORY_OBJECTOPERATIONS_HPP_INCLUDED #include <cassert> #include <rainbow/memory/block.hpp> #include <rainbow/memory/cast.hpp> #include <type_traits> #include <utility> namespace rainbow::memory { template<typename T> void defaultConstruct(const ra...
25.116505
79
0.636258
[ "object" ]
50a6b44554d31cdf1197e0fea676b378be94364a
355
cc
C++
codechef/cook87/ck87medi.cc
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
506
2018-08-22T10:30:38.000Z
2022-03-31T10:01:49.000Z
codechef/cook87/ck87medi.cc
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
13
2019-08-07T18:31:18.000Z
2020-12-15T21:54:41.000Z
codechef/cook87/ck87medi.cc
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
234
2018-08-06T17:11:41.000Z
2022-03-26T10:56:42.000Z
// https://www.codechef.com/COOK87/problems/CK87MEDI #include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int t; cin >> t; for (int i = 0; i < t; i++) { int n, k; cin >> n >> k; vector<int> v(n); for (int j = 0; j < n; j++) cin >> v[j]; sort(v.begin(), v.end()); ...
17.75
52
0.538028
[ "vector" ]
50a71de5ad898805ac8e66dafa87fd4a5dee7232
51,915
cpp
C++
platform/mt6592/hardware/mtkcam/core/featureio/drv/eis/eis_drv.cpp
touxiong88/92_mediatek
5e96a7bb778fd9d9b335825584664e0c8b5ff2c7
[ "Apache-2.0" ]
1
2022-01-07T01:53:19.000Z
2022-01-07T01:53:19.000Z
platform/mt6592/hardware/mtkcam/core/featureio/drv/eis/eis_drv.cpp
touxiong88/92_mediatek
5e96a7bb778fd9d9b335825584664e0c8b5ff2c7
[ "Apache-2.0" ]
null
null
null
platform/mt6592/hardware/mtkcam/core/featureio/drv/eis/eis_drv.cpp
touxiong88/92_mediatek
5e96a7bb778fd9d9b335825584664e0c8b5ff2c7
[ "Apache-2.0" ]
1
2020-02-28T02:48:42.000Z
2020-02-28T02:48:42.000Z
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or ...
32.406367
141
0.541924
[ "object" ]
50a9c13a74d76a601ac8ea6aeef6ed6e4550ee80
37,996
cpp
C++
external/cfmesh/meshLibrary/utilities/octrees/meshOctree/meshOctreeAddressing/meshOctreeAddressingCreation.cpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
external/cfmesh/meshLibrary/utilities/octrees/meshOctree/meshOctreeAddressing/meshOctreeAddressingCreation.cpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
external/cfmesh/meshLibrary/utilities/octrees/meshOctree/meshOctreeAddressing/meshOctreeAddressingCreation.cpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
/*---------------------------------------------------------------------------*\ Copyright (C) Creative Fields, Ltd. ------------------------------------------------------------------------------- License This file is part of cfMesh. cfMesh is free software; you can redistribute it and/or modify it under th...
30.421137
80
0.471471
[ "mesh", "vector" ]
2716ed04f507a51cb94c5bc371011b6e534c3471
4,419
cpp
C++
engine/src/engine/entities/shapes/house.cpp
kdivanovich/CPP_Demo_Game
85be2d2f366728f9d6893ebe42c765c41b685a53
[ "MIT" ]
null
null
null
engine/src/engine/entities/shapes/house.cpp
kdivanovich/CPP_Demo_Game
85be2d2f366728f9d6893ebe42c765c41b685a53
[ "MIT" ]
null
null
null
engine/src/engine/entities/shapes/house.cpp
kdivanovich/CPP_Demo_Game
85be2d2f366728f9d6893ebe42c765c41b685a53
[ "MIT" ]
2
2021-12-16T13:04:18.000Z
2022-01-07T14:06:06.000Z
#include "pch.h" #include "house.h" #include <engine.h> engine::house::house(std::vector<glm::vec3> vertices) : m_vertices(vertices) { std::vector<glm::vec3> normals; // front normal 1: normals.push_back(glm::cross(vertices.at(0) - vertices.at(3), vertices.at(0) - vertices.at(1))); // front normal 2: normals.pu...
33.732824
97
0.553519
[ "mesh", "vector" ]
271e63da8f0c55c19075104563957ab19e926402
794
cpp
C++
304-range-sum-query-2d-immutable/304-range-sum-query-2d-immutable.cpp
phaneesh707/LeetCode_Problems
e17db0454b21993aec734bbc5dd3a862c0229acb
[ "MIT" ]
null
null
null
304-range-sum-query-2d-immutable/304-range-sum-query-2d-immutable.cpp
phaneesh707/LeetCode_Problems
e17db0454b21993aec734bbc5dd3a862c0229acb
[ "MIT" ]
null
null
null
304-range-sum-query-2d-immutable/304-range-sum-query-2d-immutable.cpp
phaneesh707/LeetCode_Problems
e17db0454b21993aec734bbc5dd3a862c0229acb
[ "MIT" ]
null
null
null
class NumMatrix { public: vector<vector<int>> a; NumMatrix(vector<vector<int>>& matrix) { a = matrix; if(matrix[0].size()>1){ for(int i=0;i<matrix.size();i++){ for(int j=1;j<matrix[i].size();j++){ a[i][j]+=a[i][j-1]; } }...
24.8125
65
0.458438
[ "object", "vector" ]
27207c467cf68d799b3fe23edc94d0198f75d065
1,953
cpp
C++
tests/rtt_rospack_tests/test/api_tests.cpp
mcx/rtt_ros_integration
df79afb7a7b6e90ea7b807f0e4322662caee8c07
[ "BSD-3-Clause" ]
73
2015-03-18T00:00:00.000Z
2022-03-28T10:15:56.000Z
tests/rtt_rospack_tests/test/api_tests.cpp
mcx/rtt_ros_integration
df79afb7a7b6e90ea7b807f0e4322662caee8c07
[ "BSD-3-Clause" ]
86
2015-01-20T19:12:34.000Z
2021-12-20T07:18:58.000Z
tests/rtt_rospack_tests/test/api_tests.cpp
mcx/rtt_ros_integration
df79afb7a7b6e90ea7b807f0e4322662caee8c07
[ "BSD-3-Clause" ]
59
2015-02-22T18:14:47.000Z
2021-09-04T19:40:12.000Z
/** Copyright (c) 2013, Jonathan Bohren, all rights reserved. * This software is released under the BSD 3-clause license, for the details of * this license, please see LICENSE.txt at the root of this repository. */ #include <string> #include <vector> #include <iterator> #include <rtt/os/startstop.h> #include <o...
29.149254
116
0.738351
[ "vector" ]
272a8df63df2847f87340c26094cd6993d10b02f
980
cpp
C++
TimetableProblem/Lecture.cpp
AlbertoKarakoutev/timetable-problem
b3bf34de55af1131b5ea08cfc34632d988793680
[ "Apache-2.0" ]
null
null
null
TimetableProblem/Lecture.cpp
AlbertoKarakoutev/timetable-problem
b3bf34de55af1131b5ea08cfc34632d988793680
[ "Apache-2.0" ]
null
null
null
TimetableProblem/Lecture.cpp
AlbertoKarakoutev/timetable-problem
b3bf34de55af1131b5ea08cfc34632d988793680
[ "Apache-2.0" ]
null
null
null
#include "Lecture.h" Lecture::Lecture(Course course, int room, std::string teacher, int day, int period) { _course = course; _room = room; _teacher = teacher; _day = day; _period = period; } Lecture::Lecture() { _day = 0; _period = 0; _room = 0; } void Lecture::setTime(vector<int> time) { _day...
20
101
0.59898
[ "vector" ]
272a93c8abd178c799dcfcaf332a5738aea89a01
1,581
cpp
C++
component/oai-amf/src/sbi/amf_server/model/InvalidParam_2.cpp
kukkalli/oai-cn5g-fed
15634fac935ac8671b61654bdf75bf8af07d3c3a
[ "Apache-2.0" ]
null
null
null
component/oai-amf/src/sbi/amf_server/model/InvalidParam_2.cpp
kukkalli/oai-cn5g-fed
15634fac935ac8671b61654bdf75bf8af07d3c3a
[ "Apache-2.0" ]
null
null
null
component/oai-amf/src/sbi/amf_server/model/InvalidParam_2.cpp
kukkalli/oai-cn5g-fed
15634fac935ac8671b61654bdf75bf8af07d3c3a
[ "Apache-2.0" ]
null
null
null
/** * Namf_Communication * AMF Communication Service © 2019, 3GPP Organizational Partners (ARIB, ATIS, * CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * * The version of the OpenAPI document: 1.1.0.alpha-1 * * * NOTE: This class is auto generated by OpenAPI Generator * (https://openapi-generator.tech). ht...
22.913043
79
0.678052
[ "model" ]
2737737187635edef37e228f21e77a683cd12973
720
hpp
C++
src/modeling_2d/creatures.hpp
JustSlavic/gl2
1b4752d3273a1e401c970e18ae7151bba004a4ec
[ "MIT" ]
null
null
null
src/modeling_2d/creatures.hpp
JustSlavic/gl2
1b4752d3273a1e401c970e18ae7151bba004a4ec
[ "MIT" ]
2
2021-05-29T20:34:50.000Z
2021-05-29T20:39:25.000Z
src/modeling_2d/creatures.hpp
JustSlavic/gl2
1b4752d3273a1e401c970e18ae7151bba004a4ec
[ "MIT" ]
null
null
null
#pragma once #include <defines.h> #include <graphics/shader.h> #include <graphics/vertex_array.h> #include <graphics/index_buffer.h> #include <math.hpp> #include <vector> struct creature { enum kind_t { HERBIVORE, PREDATOR, }; math::vector2 position; math::color24 color; f32 size...
16.744186
57
0.652778
[ "vector" ]
273bb472dd83403866fb57f9442bd3af917a1794
17,880
cpp
C++
cpp/src/ipc_dshow_source/ARibeiroSourceDevice.cpp
A-Ribeiro/OpenMultimedia
2bac6022f5a4c4bea57826191a9aa1b55e36f2b9
[ "MIT" ]
null
null
null
cpp/src/ipc_dshow_source/ARibeiroSourceDevice.cpp
A-Ribeiro/OpenMultimedia
2bac6022f5a4c4bea57826191a9aa1b55e36f2b9
[ "MIT" ]
null
null
null
cpp/src/ipc_dshow_source/ARibeiroSourceDevice.cpp
A-Ribeiro/OpenMultimedia
2bac6022f5a4c4bea57826191a9aa1b55e36f2b9
[ "MIT" ]
null
null
null
#include "ARibeiroSourceDevice.h" #include "resource.h" extern HINSTANCE hDllModuleDll; #define ARIBEIRO_ASSERT(cls_obj, bool_exp, ...) \ if (!(bool_exp)) {\ cls_obj->printf("[%s:%i]\n", __FILE__, __LINE__);\ cls_obj->printf(__VA_ARGS__);\ delete cls_obj;\ cls_obj = NULL;\ ...
31.646018
152
0.693624
[ "object" ]
273d4742a2c60174b0b1915704fd16b42d3a0ea0
8,438
cc
C++
src/lib.cc
Chimu-moe/cpp-chimu-api
7531727870200a5baa9f8f98fc218e065ad976cf
[ "Unlicense" ]
null
null
null
src/lib.cc
Chimu-moe/cpp-chimu-api
7531727870200a5baa9f8f98fc218e065ad976cf
[ "Unlicense" ]
null
null
null
src/lib.cc
Chimu-moe/cpp-chimu-api
7531727870200a5baa9f8f98fc218e065ad976cf
[ "Unlicense" ]
null
null
null
#include <chimu/api.hh> #include <curl/curl.h> #include <fmt/format.h> #include <nlohmann/json.hpp> #include <iostream> #include <iterator> using namespace Chimu; template<typename T> struct APIResult { public: uint32_t m_iCode{}; std::string m_sMessage{}; T m_tData{}; public: static APIResult<T> fr...
29.711268
79
0.628229
[ "vector" ]
275027e0eb27ad9b11231f5a2a7fc03f5887218a
9,250
cpp
C++
oldsrc/calcBtrajfromCoils.cpp
ron2015schmitt/coildes
2583bc1beb6b5809ed75367970e4f32ba242894a
[ "MIT" ]
null
null
null
oldsrc/calcBtrajfromCoils.cpp
ron2015schmitt/coildes
2583bc1beb6b5809ed75367970e4f32ba242894a
[ "MIT" ]
null
null
null
oldsrc/calcBtrajfromCoils.cpp
ron2015schmitt/coildes
2583bc1beb6b5809ed75367970e4f32ba242894a
[ "MIT" ]
null
null
null
/************************************************************************* * * File Name : * Platform : gnu C++ compiler * Author : Ron Schmitt * Date : * * * SYNOPSIS * Calculate Bfield trajectory * ************************************************************...
26.353276
194
0.604973
[ "vector" ]
27565936c2847580f4bbb43ebed4eb8036be9657
4,656
cpp
C++
sslhook/pcap.cpp
MicrohexHQ/sslhook
070873846ed23f54f55612da8b78a746e609a919
[ "MIT" ]
42
2015-04-22T01:32:26.000Z
2021-09-06T12:15:39.000Z
sslhook/pcap.cpp
MicrohexHQ/sslhook
070873846ed23f54f55612da8b78a746e609a919
[ "MIT" ]
null
null
null
sslhook/pcap.cpp
MicrohexHQ/sslhook
070873846ed23f54f55612da8b78a746e609a919
[ "MIT" ]
17
2015-04-22T01:32:28.000Z
2021-09-28T04:15:00.000Z
// // pcap.cpp // // Simple routines for writing socket data into PCAP format // // www.catch22.net // // Copyright (C) 2012 James Brown // Please refer to the file LICENCE.TXT for copying permission // #include <WinSock2.h> #include <stdio.h> #include <time.h> #include "pcap.h" #pragma pack(push, 1) typedef un...
22.171429
105
0.659364
[ "object" ]
27594a892fd04c3b6a90b81fb02e4729e397ff38
4,041
cpp
C++
Tankerfield/Tankerfield/Obj_RewardBox.cpp
gamificalostudio/Tankerfield
f3801c5286ae836c0fd62392cc14be081b5c74e8
[ "MIT" ]
7
2019-03-11T11:31:36.000Z
2019-05-18T08:03:35.000Z
Tankerfield/Tankerfield/Obj_RewardBox.cpp
gamificalostudio/Tankerfield
f3801c5286ae836c0fd62392cc14be081b5c74e8
[ "MIT" ]
86
2019-03-27T14:36:16.000Z
2019-06-10T18:43:52.000Z
Tankerfield/Tankerfield/Obj_RewardBox.cpp
gamificalostudio/Tankerfield
f3801c5286ae836c0fd62392cc14be081b5c74e8
[ "MIT" ]
1
2019-09-10T17:37:44.000Z
2019-09-10T17:37:44.000Z
#include "Brofiler/Brofiler.h" #include "PugiXml\src\pugixml.hpp" #include "Obj_RewardBox.h" #include "App.h" #include "M_Render.h" #include "M_Collision.h" #include "M_PickManager.h" #include "M_Map.h" #include "M_Audio.h" #include "Obj_ElectroShotAnimation.h" #include "M_Scene.h" #include "Obj_SpawnPoint.h" Obj...
23.631579
212
0.702301
[ "render", "object" ]
27661a2c45c6be0911d555a2f29ad032b9f749f5
408
cc
C++
solutions/Leetcode_775/leetcode_775.cc
YuhanShi53/Leetcode_solutions
cdcad34656d25d6af09b226e17250c6070305ab0
[ "MIT" ]
null
null
null
solutions/Leetcode_775/leetcode_775.cc
YuhanShi53/Leetcode_solutions
cdcad34656d25d6af09b226e17250c6070305ab0
[ "MIT" ]
null
null
null
solutions/Leetcode_775/leetcode_775.cc
YuhanShi53/Leetcode_solutions
cdcad34656d25d6af09b226e17250c6070305ab0
[ "MIT" ]
null
null
null
#include <cmath> #include <iostream> #include <vector> using namespace std; class Solution1 { public: bool isIdealPermutation(vector<int> &A) { for (int i = 0; i != A.size(); ++i) if (abs(A[i] - i) > 1) return false; return true; } }; int main() { vector<in...
17
49
0.536765
[ "vector" ]
276899703b6f1bc8f284a30a4368bec9f7ab59e9
1,604
hpp
C++
libsamp/libxrpc/xmlrpc-c-1.16.29/tools/xmlrpc_cpp_proxy/xmlrpcMethod.hpp
olebole/voclient
abeee7783f4e84404a8c3a9646bb57f48988b24a
[ "MIT" ]
4
2018-10-31T05:46:30.000Z
2018-10-31T11:11:52.000Z
libsamp/libxrpc/xmlrpc-c-1.16.29/tools/xmlrpc_cpp_proxy/xmlrpcMethod.hpp
mjfitzpatrick/voclient
3264c0df294cecc518e5c6a7e6b2aba3f1c76373
[ "MIT" ]
1
2019-11-30T13:48:50.000Z
2019-12-02T19:40:25.000Z
libsamp/libxrpc/xmlrpc-c-1.16.29/tools/xmlrpc_cpp_proxy/xmlrpcMethod.hpp
mjfitzpatrick/voclient
3264c0df294cecc518e5c6a7e6b2aba3f1c76373
[ "MIT" ]
2
2018-10-31T05:46:31.000Z
2018-10-31T10:58:51.000Z
#ifndef XMLRPCMETHOD_HPP #define XMLRPCMETHOD_HPP #include <string> #include <iostream> #include <xmlrpc-c/base.hpp> class xmlrpcMethod { // An object of this class contains everything we know about a // given XML-RPC method, and knows how to print local bindings. std::string mFunctionName; std::stri...
26.733333
67
0.620324
[ "object" ]
2770c7968e8832dbab5d82225e7d4b8f2b2b9e8c
2,424
cpp
C++
src/PlainFileReader.cpp
KeluDiao/HARENS
c4f0608ee9001044bf916cc18d3dd6576cd18783
[ "Apache-2.0" ]
1
2020-05-12T02:43:46.000Z
2020-05-12T02:43:46.000Z
src/PlainFileReader.cpp
ipapapa/HARENS
13c44c915f18f288750b61d91d7173646e814b29
[ "Apache-2.0" ]
1
2016-03-17T22:51:28.000Z
2016-03-17T22:51:28.000Z
src/PlainFileReader.cpp
KeluDiao/HARENS
c4f0608ee9001044bf916cc18d3dd6576cd18783
[ "Apache-2.0" ]
3
2016-03-11T10:56:39.000Z
2020-05-14T03:30:33.000Z
#include "PlainFileReader.h" /* * Set up a file stream for plain file. */ void PlainFileReader::SetupFile(char* filename) { ifs = new std::ifstream(filename, std::ios::in | std::ios::binary | std::ios::ate); if (!ifs->is_open()) { fprintf(stderr, "Cannot open file %s\n", filename); exit(EXIT_FAILURE); } fileLe...
26.064516
87
0.695545
[ "vector" ]
2777d15d79735d7a07347257ae5ea5c0c591a8fd
4,811
cc
C++
test/server.cc
tabokie/coplus
e9919c283af57e9366de68ab4b3ea92abc3ff6d4
[ "MIT" ]
13
2018-12-14T00:32:50.000Z
2021-12-28T09:10:22.000Z
test/server.cc
tabokie/coplus
e9919c283af57e9366de68ab4b3ea92abc3ff6d4
[ "MIT" ]
null
null
null
test/server.cc
tabokie/coplus
e9919c283af57e9366de68ab4b3ea92abc3ff6d4
[ "MIT" ]
null
null
null
#include "coplus/socket.h" #include "coplus/cotimer.h" #include "coplus/protocol.h" #include <string> #include <sstream> #include <cassert> #include <iostream> using namespace coplus; int main(int argc, char** argv){ Server server("myServer"); // apply new socket SOCKET socket; std::string addr; if(argc >= 3) {...
30.643312
113
0.606527
[ "vector" ]
2778039ff954cdd0e176529eca9f466def5525a4
1,040
hpp
C++
Include/Line.hpp
Const-me/VectorMath
de24feb13cb89e19b721b5a50ae1b1d14f5a66b9
[ "MIT" ]
null
null
null
Include/Line.hpp
Const-me/VectorMath
de24feb13cb89e19b721b5a50ae1b1d14f5a66b9
[ "MIT" ]
null
null
null
Include/Line.hpp
Const-me/VectorMath
de24feb13cb89e19b721b5a50ae1b1d14f5a66b9
[ "MIT" ]
null
null
null
#pragma once #include "Vector3.hpp" #include "Vector4.hpp" #include "Normal.hpp" namespace cvm { class Line { // e41, e42, e43 components of the 4D bi-vector Vector3 m_tangent; // e23, e31, e12 components of the 4D bi-vector Normal m_moment; public: Line() = default; Line( const Line& that ) = default;...
24.186047
55
0.632692
[ "vector" ]
277da9c820f73b82843cbb7fbad86e48d99077b0
6,770
cc
C++
ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
89
2018-02-02T03:54:39.000Z
2021-12-13T01:32:55.000Z
ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
89
2018-03-14T07:44:54.000Z
2021-11-26T07:43:25.000Z
ecs/src/model/PurchaseReservedInstancesOfferingRequest.cc
aliyun/aliyun-openapi-cpp-sdk
0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36
[ "Apache-2.0" ]
69
2018-01-22T09:45:52.000Z
2022-03-28T07:58:38.000Z
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
34.717949
127
0.776514
[ "vector", "model" ]
959ddab50c39cfbc4b74263c142c64e3c7fac529
976
cpp
C++
JianZhi_OFFER/JZ_50.cpp
drt4243566/leetcode_learn
ef51f215079556895eec2252d84965cd1c3a7bf4
[ "MIT" ]
null
null
null
JianZhi_OFFER/JZ_50.cpp
drt4243566/leetcode_learn
ef51f215079556895eec2252d84965cd1c3a7bf4
[ "MIT" ]
null
null
null
JianZhi_OFFER/JZ_50.cpp
drt4243566/leetcode_learn
ef51f215079556895eec2252d84965cd1c3a7bf4
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <string> #include <unordered_map> using namespace std; class Solution { public: char firstUniqChar(string s) { // 使用哈希表保存单个字符出现的次数 unordered_map<char,int> dic; // 记录出现的字符,并且去掉重复字符 vector<char> keys; for(char c:s){ i...
19.918367
50
0.496926
[ "vector" ]
95afa61eea653e92c81bb33ec5a8bb6849795474
7,101
cc
C++
utst/utst-CommandLineTestDriver.cc
cornell-brg/mcppbs
8fc21758e9d7b995474069622ff36fd16c3e7f63
[ "BSD-3-Clause" ]
4
2019-04-10T09:06:03.000Z
2021-09-29T11:33:16.000Z
utst/utst-CommandLineTestDriver.cc
cornell-brg/mcppbs
8fc21758e9d7b995474069622ff36fd16c3e7f63
[ "BSD-3-Clause" ]
null
null
null
utst/utst-CommandLineTestDriver.cc
cornell-brg/mcppbs
8fc21758e9d7b995474069622ff36fd16c3e7f63
[ "BSD-3-Clause" ]
5
2016-10-23T18:23:34.000Z
2021-09-27T02:13:27.000Z
//======================================================================== // utst-CommandLineTestDriver.cc //======================================================================== #include "utst-CommandLineTestDriver.h" #include "utst-TestSuite.h" #include "utst-TestLog.h" #include <iostream> #include <string> #inc...
31.420354
76
0.509787
[ "vector" ]
95b228f46bf0d0a06714f12efdf3f9ef8037972e
4,849
cpp
C++
src/framework/db/db.cpp
ashwin-nat/HTTP-file-sharing
decd37db40b72ce6cac441039826e089ea432c5b
[ "MIT" ]
null
null
null
src/framework/db/db.cpp
ashwin-nat/HTTP-file-sharing
decd37db40b72ce6cac441039826e089ea432c5b
[ "MIT" ]
null
null
null
src/framework/db/db.cpp
ashwin-nat/HTTP-file-sharing
decd37db40b72ce6cac441039826e089ea432c5b
[ "MIT" ]
null
null
null
#include "db.hpp" #include <mutex> #include <stdexcept> #include <sstream> #ifdef SINGLETON_DB_OBJECT #include <mutex> #endif /******************************************************************************/ #ifdef SINGLETON_DB_OBJECT static std::mutex _db_mutex; #endif /***********************************************...
22.872642
80
0.60363
[ "object" ]
95b23372968bce052bce7a7c000b20a42371932a
3,439
cpp
C++
src/core/debug.cpp
chokomancarr/chokoengine2
2825f2b95d24689f4731b096c8be39cc9a0f759a
[ "Apache-2.0" ]
null
null
null
src/core/debug.cpp
chokomancarr/chokoengine2
2825f2b95d24689f4731b096c8be39cc9a0f759a
[ "Apache-2.0" ]
null
null
null
src/core/debug.cpp
chokomancarr/chokoengine2
2825f2b95d24689f4731b096c8be39cc9a0f759a
[ "Apache-2.0" ]
null
null
null
#include "chokoengine.hpp" #ifdef PLATFORM_WIN #include <DbgHelp.h> #else #include <execinfo.h> #include <cxxabi.h> #endif #include <thread> CE_BEGIN_NAMESPACE namespace { uint _stacktrace(uint count, void** frames) { return #ifdef PLATFORM_WIN CaptureStackBackTrace(0, count, frames, NULL); #else backtrace(f...
24.741007
161
0.647863
[ "vector" ]
95b7792d37d55772393c190a6e4a62bd8e3bc50d
21,133
cpp
C++
src/CrFileVerInfo.cpp
Vertigo093i/Far-CrFileVerInfo2
1167e9ece47df9719033a3e127a5f9318b5417b7
[ "BSD-3-Clause" ]
1
2016-03-31T19:11:57.000Z
2016-03-31T19:11:57.000Z
src/CrFileVerInfo.cpp
Vertigo093i/Far-CrFileVerInfo2
1167e9ece47df9719033a3e127a5f9318b5417b7
[ "BSD-3-Clause" ]
null
null
null
src/CrFileVerInfo.cpp
Vertigo093i/Far-CrFileVerInfo2
1167e9ece47df9719033a3e127a5f9318b5417b7
[ "BSD-3-Clause" ]
null
null
null
/****************************************************************************** * * Creware File Version Info v1.3 plugin for FAR Manager 1.70+ * * Copyright (c) 2005 Creware (http://www.creware.com, support@creware.com) * Copyright (c) 2006 Alexander Ogorodnikov (anodyne@mail.ru) * Copyright (c) 2010 Andrew Nefedk...
28.713315
139
0.642644
[ "vector" ]
95b974cc088a18c1126cd3ea70ecfb1b0dbbaf78
5,028
cpp
C++
Solution/Quadtree_tester.cpp
Aniket71999/DropBombAlgo
069f373aa22cb18254733d9bf858de603d78dd03
[ "Apache-2.0" ]
null
null
null
Solution/Quadtree_tester.cpp
Aniket71999/DropBombAlgo
069f373aa22cb18254733d9bf858de603d78dd03
[ "Apache-2.0" ]
null
null
null
Solution/Quadtree_tester.cpp
Aniket71999/DropBombAlgo
069f373aa22cb18254733d9bf858de603d78dd03
[ "Apache-2.0" ]
null
null
null
#ifndef QUADTREE_TESTER_H #define QUADTREE_TESTER_H #ifndef nullptr #define nullptr 0 #endif #include "Exception.h" #include "Tester.h" #include "Quadtree.h" #include "Quadtree_node.h" #include "Quadtree_node_tester.h" #include <iostream> template <typename Type> class Quadtree_tester:public Tester< Quadtre...
38.976744
170
0.585322
[ "object" ]
95bcc4a0fee507c07d846a3967ed6b23039a91bb
12,441
cpp
C++
utils/TestAnimation.cpp
nullpo24/ArOgre
f4c229663f5f3b2761191e20b78863a3efe1c071
[ "MIT" ]
3
2016-05-29T01:13:11.000Z
2020-01-03T03:06:22.000Z
utils/TestAnimation.cpp
nullpo24/ArOgre
f4c229663f5f3b2761191e20b78863a3efe1c071
[ "MIT" ]
null
null
null
utils/TestAnimation.cpp
nullpo24/ArOgre
f4c229663f5f3b2761191e20b78863a3efe1c071
[ "MIT" ]
4
2018-08-03T14:36:07.000Z
2020-11-07T06:54:08.000Z
#include "PCH.h" #include "TestAnimation.h" ////////////////////////////////////////////////////////////////////////////////////////////// // CONSTRUCTOR ////////////////////////////////////////////////////////////////////////////////////////////// TestAnimation::TestAnimation() : mCrystal(0), mNumModels(0), ...
34.084932
145
0.566594
[ "mesh", "object", "model" ]
95c791da3c78cc757d134a5af34722b90bfb8675
2,656
cpp
C++
DXMUI/Canvas/Elements/ImageElement.cpp
Ulvmane/DXMUI
999d30c1d21777f382cbf37d7aa2c701d5951ac3
[ "MIT" ]
null
null
null
DXMUI/Canvas/Elements/ImageElement.cpp
Ulvmane/DXMUI
999d30c1d21777f382cbf37d7aa2c701d5951ac3
[ "MIT" ]
null
null
null
DXMUI/Canvas/Elements/ImageElement.cpp
Ulvmane/DXMUI
999d30c1d21777f382cbf37d7aa2c701d5951ac3
[ "MIT" ]
null
null
null
#include "ImageElement.h" #include "D3D11_Interface\DXMRenderer.h" #include <DDSTextureLoader.h> #include <WICTextureLoader.h> #include "Utility\DXMUI_Util.h" #include "D3D11_Interface\DXM_D3D11_Interface.h" #include "Parser\Styles\DXUIStyle.h" #include <assert.h> DXMUI::ImageElement::ImageElement(const char* aPat...
28.869565
109
0.763931
[ "render" ]
95cefe445c9a08e6cfcb7bcd467c07aa871a2c20
14,070
cpp
C++
src/cpp/SPL/Core/ParallelRegionChecker.cpp
IBMStreams/OSStreams
c6287bd9ec4323f567d2faf59125baba8604e1db
[ "Apache-2.0" ]
10
2021-02-19T20:19:24.000Z
2021-09-16T05:11:50.000Z
src/cpp/SPL/Core/ParallelRegionChecker.cpp
xguerin/openstreams
7000370b81a7f8778db283b2ba9f9ead984b7439
[ "Apache-2.0" ]
7
2021-02-20T01:17:12.000Z
2021-06-08T14:56:34.000Z
src/cpp/SPL/Core/ParallelRegionChecker.cpp
IBMStreams/OSStreams
c6287bd9ec4323f567d2faf59125baba8604e1db
[ "Apache-2.0" ]
4
2021-02-19T18:43:10.000Z
2022-02-23T14:18:16.000Z
/* * Copyright 2021 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
47.373737
131
0.597797
[ "vector" ]
95d5f503289ddf4da987b09c73a5b950e9af8ac5
19,762
cpp
C++
slicerendermanager.cpp
avinfinity/UnmanagedCodeSnippets
2bd848db88d7b271209ad30017c8f62307319be3
[ "MIT" ]
null
null
null
slicerendermanager.cpp
avinfinity/UnmanagedCodeSnippets
2bd848db88d7b271209ad30017c8f62307319be3
[ "MIT" ]
null
null
null
slicerendermanager.cpp
avinfinity/UnmanagedCodeSnippets
2bd848db88d7b271209ad30017c8f62307319be3
[ "MIT" ]
null
null
null
#include "slicerendermanager.h" #include "openglhelper.h" #include "QMatrix4x4" #include "iostream" #include "QDebug" #include "atomic" namespace imt{ namespace volume{ SliceRenderManager::SliceRenderManager(imt::volume::VolumeInfo *volume , PLANETYPE planeType) : mVolume( volume ) , mPlaneType(planeType) { ...
24.889169
162
0.669821
[ "mesh", "geometry", "render", "vector", "transform" ]
95e9a43841795db3329e6ce9d432a903d4665b54
1,193
cpp
C++
aws-cpp-sdk-cloudhsmv2/source/model/DeleteHsmRequest.cpp
Neusoft-Technology-Solutions/aws-sdk-cpp
88c041828b0dbee18a297c3cfe98c5ecd0706d0b
[ "Apache-2.0" ]
1
2022-02-12T08:09:30.000Z
2022-02-12T08:09:30.000Z
aws-cpp-sdk-cloudhsmv2/source/model/DeleteHsmRequest.cpp
Neusoft-Technology-Solutions/aws-sdk-cpp
88c041828b0dbee18a297c3cfe98c5ecd0706d0b
[ "Apache-2.0" ]
1
2022-01-03T23:59:37.000Z
2022-01-03T23:59:37.000Z
aws-cpp-sdk-cloudhsmv2/source/model/DeleteHsmRequest.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2021-12-30T04:25:33.000Z
2021-12-30T04:25:33.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/cloudhsmv2/model/DeleteHsmRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::CloudHSMV2::Model; using namespace Aws::Utils::Json; using ...
18.353846
90
0.726739
[ "model" ]
95ea33e818774005a2fdfa0adc73f68b58f9799b
3,290
cpp
C++
Code/BBearEditor/Engine/2D/BBCanvas.cpp
xiaoxianrouzhiyou/BBearEditor
0f1b779d87c297661f9a1e66d0613df43f5fe46b
[ "MIT" ]
26
2021-06-30T02:19:30.000Z
2021-07-23T08:38:46.000Z
Code/BBearEditor/Engine/2D/BBCanvas.cpp
lishangdian/BBearEditor-2.0
1f4b463ef756ed36cc15d10abae822efc400c4d7
[ "MIT" ]
null
null
null
Code/BBearEditor/Engine/2D/BBCanvas.cpp
lishangdian/BBearEditor-2.0
1f4b463ef756ed36cc15d10abae822efc400c4d7
[ "MIT" ]
3
2021-09-01T08:19:30.000Z
2021-12-28T19:06:40.000Z
#include "BBCanvas.h" #include "BBSpriteObject2D.h" #include "Geometry/BBBoundingBox2D.h" #include "2D/BBClipArea2D.h" #include "Render/BBMaterial.h" #include "Scene/BBSceneManager.h" #define IterateSprite2DSet(x) \ for (QList<BBSpriteObject2D*>::Iterator itr = m_SpriteObject2DSet.begin(); itr != m_SpriteObject2DSet....
30.747664
120
0.745593
[ "geometry", "render" ]
95ea4086e3dd812ec9d73ababcef97b5e9df82eb
497
cpp
C++
334/P334/P334/main.cpp
swy20190/Leetcode-Cracker
3b80eacfa63983d5fcc50442f0813296d5c1af94
[ "MIT" ]
null
null
null
334/P334/P334/main.cpp
swy20190/Leetcode-Cracker
3b80eacfa63983d5fcc50442f0813296d5c1af94
[ "MIT" ]
null
null
null
334/P334/P334/main.cpp
swy20190/Leetcode-Cracker
3b80eacfa63983d5fcc50442f0813296d5c1af94
[ "MIT" ]
null
null
null
#include <vector> #include <algorithm> using namespace std; class Solution { public: bool increasingTriplet(vector<int>& nums) { int len = nums.size(); if (len < 3) { return false; } int num_max = INT_MAX; int num_min = INT_MAX; for (int i = 0; i < len; i++) { if (nums[i] < num_min) { num_min =...
17.75
53
0.571429
[ "vector" ]
95ee3d34a168e337b5a78a7801123d79c24c5ea9
1,876
hpp
C++
include/shiguredo/mp4/box/sidx.hpp
kounoike/cpp-mp4
65703c1402242afcc1e4d822d9828e79f3dcec01
[ "Apache-2.0" ]
23
2020-12-29T07:17:30.000Z
2022-03-25T09:18:37.000Z
include/shiguredo/mp4/box/sidx.hpp
kounoike/cpp-mp4
65703c1402242afcc1e4d822d9828e79f3dcec01
[ "Apache-2.0" ]
2
2021-01-12T06:02:42.000Z
2021-05-19T01:44:22.000Z
include/shiguredo/mp4/box/sidx.hpp
kounoike/cpp-mp4
65703c1402242afcc1e4d822d9828e79f3dcec01
[ "Apache-2.0" ]
2
2021-05-04T02:15:17.000Z
2022-02-19T14:45:00.000Z
#pragma once #include <cstdint> #include <istream> #include <string> #include <vector> #include "shiguredo/mp4/box.hpp" #include "shiguredo/mp4/box_type.hpp" namespace shiguredo::mp4::bitio { class Reader; class Writer; } // namespace shiguredo::mp4::bitio namespace shiguredo::mp4::box { struct SidxReferencePar...
23.160494
57
0.753731
[ "vector" ]
95fc77f08b17c5a4e3be78037634b6cbec9fff6f
5,396
cpp
C++
Gem/Code/Source/Components/NetworkAiComponent.cpp
CodeLikeCXK/o3de-multiplayersample
9828062945f33277946e0215202731b1b8b913ca
[ "Apache-2.0", "MIT" ]
null
null
null
Gem/Code/Source/Components/NetworkAiComponent.cpp
CodeLikeCXK/o3de-multiplayersample
9828062945f33277946e0215202731b1b8b913ca
[ "Apache-2.0", "MIT" ]
null
null
null
Gem/Code/Source/Components/NetworkAiComponent.cpp
CodeLikeCXK/o3de-multiplayersample
9828062945f33277946e0215202731b1b8b913ca
[ "Apache-2.0", "MIT" ]
null
null
null
/* * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <Source/Components/NetworkAiComponent.h> #include <AzCore/Serialization/EditContext.h> #inc...
38
158
0.659377
[ "3d" ]
95fe5c52f11617d6c712bffa5982b9476c47bd2a
3,280
cpp
C++
src/gradient/gradient.cpp
Toxe/mandelbrot-sfml-imgui
e9375290a475a264c5b57e7678851ffae752d3b0
[ "MIT" ]
6
2021-04-14T15:49:46.000Z
2022-03-05T12:39:31.000Z
src/gradient/gradient.cpp
Toxe/mandelbrot-sfml-imgui
e9375290a475a264c5b57e7678851ffae752d3b0
[ "MIT" ]
null
null
null
src/gradient/gradient.cpp
Toxe/mandelbrot-sfml-imgui
e9375290a475a264c5b57e7678851ffae752d3b0
[ "MIT" ]
null
null
null
#include "gradient.h" #include <algorithm> #include <cmath> #include <filesystem> #include <fstream> #include <limits> #include <regex> #include <stdexcept> #include <string> #include <vector> #include <fmt/ostream.h> #include <spdlog/spdlog.h> #include <SFML/Graphics/Color.hpp> const std::string gradients_directory...
33.469388
116
0.639634
[ "vector" ]
2508159986e0edeeed16264af415ebae047604ce
3,624
cpp
C++
benchmarks/benchmark_feature_cached_string.cpp
jandom/hawktracer
e53b07bc812c4cfe8f6253ddb48ac43de8fa74a8
[ "MIT" ]
116
2018-05-04T14:51:58.000Z
2022-02-08T23:47:28.000Z
benchmarks/benchmark_feature_cached_string.cpp
jandom/hawktracer
e53b07bc812c4cfe8f6253ddb48ac43de8fa74a8
[ "MIT" ]
58
2018-05-04T15:00:15.000Z
2020-11-06T11:34:11.000Z
benchmarks/benchmark_feature_cached_string.cpp
beila/hawktracer
d427c6a66097787f4e5431e1cae0278f1f03ca4c
[ "MIT" ]
32
2018-05-05T12:05:56.000Z
2021-12-06T02:18:05.000Z
#include <hawktracer/timeline.h> #include <hawktracer/feature_cached_string.h> #include <benchmark/benchmark.h> #include <vector> #include <string> #include <queue> std::vector<std::string> generate_unique_strings(size_t str_length) { std::vector<std::string> ret; std::queue<std::string> q; q.push(""); ...
29.225806
110
0.68074
[ "vector" ]
250c5378b2d19feb0cbff83dbf35774bdce933d7
632
cc
C++
yc252/1077.cc
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc252/1077.cc
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc252/1077.cc
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
#include <cstdio> #include <vector> #include <algorithm> #define rep(i, a) for (int i = (int)0; i < (int)a; ++i) template<class T> inline void chmin(T& a, T b) { if (a > b) { a = b; } } using ll = long long; using namespace std; int main() { ll N; scanf("%lld", &N); vector<ll> Y(N), a(N); rep(i, N) { scanf("%lld...
20.387097
72
0.52057
[ "vector" ]
251585a3936d7babc3479ab12d746d3a610f28b2
504
cpp
C++
leetcode/714. Best Time to Buy and Sell Stock with Transaction Fee.cpp
chamow97/Interview-Prep
9ce13afef6090b1604f72bf5f80a6e1df65be24f
[ "MIT" ]
1
2018-09-13T12:16:42.000Z
2018-09-13T12:16:42.000Z
leetcode/714. Best Time to Buy and Sell Stock with Transaction Fee.cpp
chamow97/Interview-Prep
9ce13afef6090b1604f72bf5f80a6e1df65be24f
[ "MIT" ]
null
null
null
leetcode/714. Best Time to Buy and Sell Stock with Transaction Fee.cpp
chamow97/Interview-Prep
9ce13afef6090b1604f72bf5f80a6e1df65be24f
[ "MIT" ]
null
null
null
class Solution { public: int maxProfit(vector<int>& prices, int fee) { int n = prices.size(); if(n == 0) { return 0; } int currBuy = -prices[0]; int currSell = 0; for(int i = 2; i <= n; i++) { int nextBuy = max(currSell - prices[i - 1], currBuy...
26.526316
72
0.470238
[ "vector" ]
251b6b0f5d4e3b179f044abd07bc66b5126aa703
7,854
cc
C++
content/browser/indexed_db/indexed_db_database_unittest.cc
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2020-05-03T06:33:56.000Z
2021-11-14T18:39:42.000Z
content/browser/indexed_db/indexed_db_database_unittest.cc
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
content/browser/indexed_db/indexed_db_database_unittest.cc
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/indexed_db/indexed_db_database.h" #include <gtest/gtest.h> #include "base/auto_reset.h" #include "base/logging.h" #include "ba...
39.074627
80
0.705118
[ "vector" ]
251e2ef4ad8ea329b7db34bfd8a4c55929518724
954
cpp
C++
boboleetcode/Play-Leetcode-master/0989-Add-to-Array-Form-of-Integer/cpp-0989/main2.cpp
yaominzh/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
2
2021-03-25T05:26:55.000Z
2021-04-20T03:33:24.000Z
boboleetcode/Play-Leetcode-master/0989-Add-to-Array-Form-of-Integer/cpp-0989/main2.cpp
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
6
2019-12-04T06:08:32.000Z
2021-05-10T20:22:47.000Z
boboleetcode/Play-Leetcode-master/0989-Add-to-Array-Form-of-Integer/cpp-0989/main2.cpp
mcuallen/CodeLrn2019
adc727d92904c5c5d445a2621813dfa99474206d
[ "Apache-2.0" ]
null
null
null
/// Source : https://leetcode.com/problems/add-to-array-form-of-integer/ /// Author : liuyubobobo /// Time : 2019-02-13 #include <iostream> #include <vector> using namespace std; /// Array and number addition /// Time Complexity: O(n) /// Space Complexity: O(1) class Solution { public: vector<int> addToArrayF...
18
72
0.513627
[ "vector" ]
251ea235d37cec19cc05da0fa078bbb377454cb3
3,245
hpp
C++
platooning_control/include/platoon_control_worker.hpp
harderthan/carma-platform
29921896a761a866db9cfee473f02a481d8bb9c9
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
platooning_control/include/platoon_control_worker.hpp
harderthan/carma-platform
29921896a761a866db9cfee473f02a481d8bb9c9
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
platooning_control/include/platoon_control_worker.hpp
harderthan/carma-platform
29921896a761a866db9cfee473f02a481d8bb9c9
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
1
2021-06-01T21:05:20.000Z
2021-06-01T21:05:20.000Z
#pragma once #include <ros/ros.h> #include <cav_msgs/MobilityOperation.h> #include <cav_msgs/MobilityRequest.h> #include <cav_msgs/MobilityResponse.h> #include <cav_msgs/PlanType.h> #include "pid_controller.hpp" #include "pure_pursuit.hpp" #include <boost/optional.hpp> namespace platoon_control { struct Plato...
25.351563
172
0.651156
[ "geometry", "object" ]
2520cb84064afc1022be8f1414cd751d79a0b2ca
1,889
cpp
C++
Codeforces/1491/e.cpp
eyangch/competitive-programming
59839efcec72cb792e61b7d316f83ad54f16a166
[ "MIT" ]
14
2019-08-14T00:43:10.000Z
2021-12-16T05:43:31.000Z
Codeforces/1491/e.cpp
eyangch/competitive-programming
59839efcec72cb792e61b7d316f83ad54f16a166
[ "MIT" ]
null
null
null
Codeforces/1491/e.cpp
eyangch/competitive-programming
59839efcec72cb792e61b7d316f83ad54f16a166
[ "MIT" ]
6
2020-12-30T03:30:17.000Z
2022-03-11T03:40:02.000Z
#include <bits/stdc++.h> #define endl "\n" #define moo cout using namespace std; int N, c[200000], fib[30], rfib[1000000]; vector<int> graph[200000]; bool no[200000]; int dfs(int id, int par){ if(no[id]) return 0; c[id] = 1; for(int i : graph[id]){ if(i != par){ c[id] += dfs(i, id); ...
23.911392
59
0.420328
[ "vector" ]
252dac00c10697d7343c8650316645a3a541c63f
4,139
cpp
C++
Emscripten/ParticleSystem/Vector.cpp
leefsmp/Particle-System
810482f9bdfda25c5a7761de3946892ebd76f8de
[ "MIT" ]
38
2016-08-02T14:23:05.000Z
2021-12-02T12:43:11.000Z
Emscripten/ParticleSystem/Vector.cpp
leefsmp/Particle-System
810482f9bdfda25c5a7761de3946892ebd76f8de
[ "MIT" ]
2
2016-09-29T12:33:23.000Z
2018-03-02T17:59:03.000Z
Emscripten/ParticleSystem/Vector.cpp
leefsmp/Particle-System
810482f9bdfda25c5a7761de3946892ebd76f8de
[ "MIT" ]
5
2016-09-29T12:26:15.000Z
2018-10-23T09:07:27.000Z
#include "Vector.h" #include <math.h> /////////////////////////////////////////////////////////////////// // // /////////////////////////////////////////////////////////////////// Vector::Vector() { this->x = 0; this->y = 0; this->z = 0; } ////////////////////////////////////////////////////////////...
22.252688
68
0.258275
[ "vector" ]
25311bfd0f416bcfd946d2eb2418c9db20240e27
83,144
cxx
C++
inetsrv/query/apps/ci/ci.cxx
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
inetsrv/query/apps/ci/ci.cxx
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
inetsrv/query/apps/ci/ci.cxx
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
//+------------------------------------------------------------------------- // // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A // PARTICULAR PURPOSE. // /...
33.310897
92
0.449305
[ "render", "object", "vector" ]
253d88c7cef7d0f7b649a38ae32fbbe650840257
3,315
cpp
C++
Desktop/MgDesktop/Services/ProfilingService.cpp
achilex/MgDev
f7baf680a88d37659af32ee72b9a2046910b00d8
[ "PHP-3.0" ]
2
2017-04-19T01:38:30.000Z
2020-07-31T03:05:32.000Z
Desktop/MgDesktop/Services/ProfilingService.cpp
achilex/MgDev
f7baf680a88d37659af32ee72b9a2046910b00d8
[ "PHP-3.0" ]
null
null
null
Desktop/MgDesktop/Services/ProfilingService.cpp
achilex/MgDev
f7baf680a88d37659af32ee72b9a2046910b00d8
[ "PHP-3.0" ]
1
2021-12-29T10:46:12.000Z
2021-12-29T10:46:12.000Z
#include "ProfilingService.h" #include "ProfileResult.h" #include "ProfileRenderMapResult.h" #include "SAX2Parser.h" MgdProfilingService::MgdProfilingService() { Ptr<MgdServiceFactory> fact = new MgdServiceFactory(); m_svcRendering = static_cast<MgdRenderingService*>(fact->CreateService(MgServiceType:...
36.032609
136
0.71644
[ "render" ]
253e2d117d9cc4b5bc746ad0694909295728a4ee
4,300
cpp
C++
Retired_Files/get_label_piecewise_affine_transformation_mask.mex.cpp
billkarsh/Alignment_Projects
f2ce48477da866b09a13fd33f1a53a8af644b35b
[ "BSD-3-Clause" ]
11
2015-07-24T14:41:25.000Z
2022-03-19T13:27:51.000Z
Retired_Files/get_label_piecewise_affine_transformation_mask.mex.cpp
billkarsh/Alignment_Projects
f2ce48477da866b09a13fd33f1a53a8af644b35b
[ "BSD-3-Clause" ]
1
2016-05-14T22:26:25.000Z
2016-05-14T22:26:25.000Z
Retired_Files/get_label_piecewise_affine_transformation_mask.mex.cpp
billkarsh/Alignment_Projects
f2ce48477da866b09a13fd33f1a53a8af644b35b
[ "BSD-3-Clause" ]
18
2015-03-10T18:45:58.000Z
2021-08-16T13:56:48.000Z
// Given a piecewise affine tranformation from an image plane (I) to // another plane (L) and a label map on L, find for each pixel in I, // the corresponding label. Label 0 is assigned for undefined pixels. // If a mask is also provided, then a label is assigned only if the // transform id in the mask is equal to the ...
34.95935
139
0.65
[ "transform" ]
85911650d4bd88492fdf8185de20e9d9ca80bece
416
cpp
C++
Growtopia/Global_Variable.cpp
eyupware/GrowTopia-PS
93cdc7da41f251acb455982e0a6f4ade2a77f231
[ "Apache-2.0" ]
null
null
null
Growtopia/Global_Variable.cpp
eyupware/GrowTopia-PS
93cdc7da41f251acb455982e0a6f4ade2a77f231
[ "Apache-2.0" ]
null
null
null
Growtopia/Global_Variable.cpp
eyupware/GrowTopia-PS
93cdc7da41f251acb455982e0a6f4ade2a77f231
[ "Apache-2.0" ]
1
2021-08-15T09:59:28.000Z
2021-08-15T09:59:28.000Z
#include "Global_Variable.h" #include "stdafx.h" #include <vector> #include <string> using namespace std; vector<string> blacklistedName = { "prn", "con", "aux", "nul", "com1", "com2", "com3", "com4", "com5", "com6", "com7", "com8", "com9", "lpt1", "lpt2", "lpt3", "lpt4", "lpt5", "lpt6", "lpt7", "lpt8...
23.111111
74
0.588942
[ "vector" ]
85951545b4a22b11afe86a0fc39791604dfbf03b
3,267
cpp
C++
handsome/cpp_src/main.cpp
bracket/handsome
c93d34f94d0eea24f5514efc9bc423eb28b44a6b
[ "BSD-2-Clause" ]
null
null
null
handsome/cpp_src/main.cpp
bracket/handsome
c93d34f94d0eea24f5514efc9bc423eb28b44a6b
[ "BSD-2-Clause" ]
null
null
null
handsome/cpp_src/main.cpp
bracket/handsome
c93d34f94d0eea24f5514efc9bc423eb28b44a6b
[ "BSD-2-Clause" ]
null
null
null
#include <Bezier.hpp> #include <BilinearPatch.hpp> #include <BitmapWriter.hpp> #include <CoonsPatch.hpp> #include <CurveSubdivider.hpp> #include <Filter.hpp> #include <Kernel.hpp> #include <Line.hpp> #include <Sample.hpp> #include <SampleBuffer.hpp> #include <shade.hpp> #include <Shader.hpp> #include <SurfaceSubdivider...
22.22449
76
0.628711
[ "mesh" ]
85a1d07034cb7f84296f1033cdf53ccbcb40424d
15,898
cpp
C++
src/lib/Unidraw/link.cpp
emer/iv
e2ecb3acd834b8764c8582753cc86afcc4281af5
[ "BSD-3-Clause" ]
null
null
null
src/lib/Unidraw/link.cpp
emer/iv
e2ecb3acd834b8764c8582753cc86afcc4281af5
[ "BSD-3-Clause" ]
null
null
null
src/lib/Unidraw/link.cpp
emer/iv
e2ecb3acd834b8764c8582753cc86afcc4281af5
[ "BSD-3-Clause" ]
null
null
null
#ifdef HAVE_CONFIG_H #include <../../config.h> #endif /* * Copyright (c) 1990, 1991 Stanford University * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided * that the above copyright notice appear in all copies and ...
27.696864
79
0.604919
[ "transform" ]
85a89ea81bbb80ecd6154a4e2ae326087ca25966
23,711
cpp
C++
libbree/base/bree.cpp
z-ninja/nwOS
7008c0256d5b268b6eb04c656170f7ba7ca54bb4
[ "MIT" ]
null
null
null
libbree/base/bree.cpp
z-ninja/nwOS
7008c0256d5b268b6eb04c656170f7ba7ca54bb4
[ "MIT" ]
null
null
null
libbree/base/bree.cpp
z-ninja/nwOS
7008c0256d5b268b6eb04c656170f7ba7ca54bb4
[ "MIT" ]
null
null
null
#include <base/bree.h> #include <thread> namespace bree { enum timer_action { timer_action_timeout = 1 << 0, timer_action_interval = 1 << 1, timer_action_canceled = 1 << 2, }; enum manager_action { manager_action_timer_cancel = 1 << 3, manager_action_timer ...
36.2
141
0.535152
[ "vector" ]
85b023ddfadfbb55417222ea5b4b9676822b5aa6
400
cpp
C++
cpp/test/testReadIntoArray.cpp
anthonyf996/couch-potatoes-sql-backend
ed9ad2048989c09181c059590b651475a3d581c3
[ "MIT" ]
null
null
null
cpp/test/testReadIntoArray.cpp
anthonyf996/couch-potatoes-sql-backend
ed9ad2048989c09181c059590b651475a3d581c3
[ "MIT" ]
null
null
null
cpp/test/testReadIntoArray.cpp
anthonyf996/couch-potatoes-sql-backend
ed9ad2048989c09181c059590b651475a3d581c3
[ "MIT" ]
null
null
null
#include <iostream> #include "testReadIntoArray.hpp" int main( int argc, char* argv[] ) { --argc; if ( argc != 1 ) { std::cerr << "Usage: ./rmComments ( input file )\n"; return 1; } std::vector<std::string> list = readIntoArray( argv[1] ); std::vector<std::string>::iterator itr = list.begin(); ...
18.181818
59
0.5625
[ "vector" ]
85b7a5176370a6d4c7e85948c54f6939150278df
1,171
hpp
C++
querier/QuerierInterface.hpp
naivewong/timeunion
8070492d2c6a2d68175e7d026c27b858c2aec8e6
[ "Apache-2.0" ]
null
null
null
querier/QuerierInterface.hpp
naivewong/timeunion
8070492d2c6a2d68175e7d026c27b858c2aec8e6
[ "Apache-2.0" ]
null
null
null
querier/QuerierInterface.hpp
naivewong/timeunion
8070492d2c6a2d68175e7d026c27b858c2aec8e6
[ "Apache-2.0" ]
null
null
null
#ifndef QUERIERINTERFACE_H #define QUERIERINTERFACE_H #include <deque> #include <initializer_list> #include "base/Error.hpp" #include "label/Label.hpp" #include "label/MatcherInterface.hpp" #include "querier/SeriesSetInterface.hpp" namespace tsdb { namespace querier { class QuerierInterface { public: // Return n...
29.275
80
0.730999
[ "vector" ]
85ba7d678073c36060aa99d108c7676c69d2a5a9
2,990
cpp
C++
c++/0167-two-sum-ii-input-array-is-sorted.cpp
aafulei/leetcode
e3a0ef9c912abf99a1d6e56eff8802ba44b0057d
[ "MIT" ]
2
2019-04-13T09:55:04.000Z
2019-05-16T12:47:40.000Z
c++/0167-two-sum-ii-input-array-is-sorted.cpp
aafulei/leetcode
e3a0ef9c912abf99a1d6e56eff8802ba44b0057d
[ "MIT" ]
null
null
null
c++/0167-two-sum-ii-input-array-is-sorted.cpp
aafulei/leetcode
e3a0ef9c912abf99a1d6e56eff8802ba44b0057d
[ "MIT" ]
null
null
null
// 22/06/09 = Thu // 22/03/15 = Tue // 19/02/14 = Thu // 167. Two Sum II - Input Array is Sorted [Medium] // Given a 1-indexed array of integers numbers that is already sorted in // non-decreasing order, find two numbers such that they add up to a specific // target number. Let these two numbers be numbers[index1] an...
27.943925
79
0.585284
[ "vector" ]
85bb260a1e575eb54a33409c7bc3133ba46b9756
4,870
cpp
C++
example/example.cpp
MusicScience37/variant-cpp11
6abfaccaaa1d3ffe9119a93629a875f978683b67
[ "MIT" ]
null
null
null
example/example.cpp
MusicScience37/variant-cpp11
6abfaccaaa1d3ffe9119a93629a875f978683b67
[ "MIT" ]
null
null
null
example/example.cpp
MusicScience37/variant-cpp11
6abfaccaaa1d3ffe9119a93629a875f978683b67
[ "MIT" ]
null
null
null
#include <cstdlib> #include <iostream> #include <string> #include <unordered_map> #include "variant_cpp11/variant.h" /*! * \brief namespace for examples of variant */ namespace variant_cpp11_examples { /*! * \brief check whether result is true * * \param result result of comparisons */ void check(bool result) ...
25.103093
79
0.592813
[ "object" ]
85bcfdb4d73dd05b1a66207811bb629ea8fa1ded
1,414
cpp
C++
OldSoft/Favourite Game program/favgame2.0.cpp
Keron320/Programming-Cpp
e9c1896a27be76c14b990eb6b2eb7f8f1ca0b475
[ "MIT" ]
null
null
null
OldSoft/Favourite Game program/favgame2.0.cpp
Keron320/Programming-Cpp
e9c1896a27be76c14b990eb6b2eb7f8f1ca0b475
[ "MIT" ]
null
null
null
OldSoft/Favourite Game program/favgame2.0.cpp
Keron320/Programming-Cpp
e9c1896a27be76c14b990eb6b2eb7f8f1ca0b475
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <string> #include <algorithm> using namespace std; int main(){ vector<string> game; string choice; string change; int unlist = 0; vector<string>::const_iterator iter; cout<<"Welcome to your favorite game list!"<<endl; while(choice != "exit"){ cout<<"Your current favour...
22.444444
79
0.596888
[ "vector" ]
85bf86b6b04a84d6600f3ad05667f98abcf0d91f
875
cpp
C++
Problems/Backtracking/countVowelStrings.cpp
vishwajeet-hogale/LearnSTL
0cbfc12b66ba844de23d7966d18cadc7b2d5a77f
[ "MIT" ]
null
null
null
Problems/Backtracking/countVowelStrings.cpp
vishwajeet-hogale/LearnSTL
0cbfc12b66ba844de23d7966d18cadc7b2d5a77f
[ "MIT" ]
null
null
null
Problems/Backtracking/countVowelStrings.cpp
vishwajeet-hogale/LearnSTL
0cbfc12b66ba844de23d7966d18cadc7b2d5a77f
[ "MIT" ]
null
null
null
#include<iostream> #include<bits/stdc++.h> using namespace std; class Solution { public: void helper(string &s,vector<string> &vowels,int start,int n,int &c){ if(s.length() == n){ c++; cout<<s<<endl; return; } for(int i=start;i<vowels.size();i++){ ...
23.026316
73
0.491429
[ "vector" ]
85c2dad7fe0b940eb15e454f5e5e0ffe28b8e977
34,328
cpp
C++
src/mesh.cpp
zia1138/edge4d
e21a308d619c03db83ef68cf63b1637685bd2139
[ "BSD-2-Clause" ]
4
2016-05-28T07:26:31.000Z
2019-01-31T10:18:12.000Z
src/mesh.cpp
zia1138/edge4d
e21a308d619c03db83ef68cf63b1637685bd2139
[ "BSD-2-Clause" ]
null
null
null
src/mesh.cpp
zia1138/edge4d
e21a308d619c03db83ef68cf63b1637685bd2139
[ "BSD-2-Clause" ]
null
null
null
#include <stdlib.h> #include <limits> #include <map> #include <queue> #include <set> #include "mesh.hpp" #include "util.hpp" namespace geom { // Intersect two face lists. Return face index that does not match given face index. inline int isect(int fidx, vector<int> &A, vector<int> &B) { for(size_t i = 0; i < ...
35.536232
124
0.590801
[ "mesh", "geometry", "vector", "solid" ]
85cd0035048ef2e403f890305571815586b6f576
1,800
cpp
C++
android-29/android/app/job/JobInfo_TriggerContentUri.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
12
2020-03-26T02:38:56.000Z
2022-03-14T08:17:26.000Z
android-28/android/app/job/JobInfo_TriggerContentUri.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
1
2021-01-27T06:07:45.000Z
2021-11-13T19:19:43.000Z
android-30/android/app/job/JobInfo_TriggerContentUri.cpp
YJBeetle/QtAndroidAPI
1468b5dc6eafaf7709f0b00ba1a6ec2b70684266
[ "Apache-2.0" ]
3
2021-02-02T12:34:55.000Z
2022-03-08T07:45:57.000Z
#include "../../net/Uri.hpp" #include "../../os/Parcel.hpp" #include "../../../JObject.hpp" #include "./JobInfo_TriggerContentUri.hpp" namespace android::app::job { // Fields JObject JobInfo_TriggerContentUri::CREATOR() { return getStaticObjectField( "android.app.job.JobInfo$TriggerContentUri", "CREATOR", ...
21.176471
89
0.691667
[ "object" ]
85cde87b69e522da80fe48b493db88d316e7e0c4
2,143
cc
C++
hetest/cpp/baseline/heaan/client/heaan-client.cc
CianLevy/Modified-HEtest
4f4422bba48f269e953ca0d3863f774f66ba2247
[ "BSD-2-Clause" ]
2
2020-05-18T08:19:39.000Z
2021-06-24T13:34:28.000Z
hetest/cpp/baseline/heaan/client/heaan-client.cc
CianLevy/Modified-HEtest
4f4422bba48f269e953ca0d3863f774f66ba2247
[ "BSD-2-Clause" ]
null
null
null
hetest/cpp/baseline/heaan/client/heaan-client.cc
CianLevy/Modified-HEtest
4f4422bba48f269e953ca0d3863f774f66ba2247
[ "BSD-2-Clause" ]
null
null
null
#include "heaan-client.h" #include "../heaan-serialiser.h" #include <string> #include "common/check.h" #include <memory> using namespace std; using namespace NTL; void HEAANClient::Setup(){ string line = ""; string delimiter = "="; vector<unsigned long> params; getline(cin, line); while(line...
23.043011
82
0.570229
[ "vector" ]
85d5fb760dded50fa40109e84b509017ee77e8d9
8,895
cpp
C++
renderer/renderer_screen_basic.cpp
jdmclark/jkgfxmod
6612413810129ebeae2affeb956d0a5fdb41dd0e
[ "MIT" ]
57
2019-03-11T20:29:42.000Z
2022-03-11T19:26:01.000Z
renderer/renderer_screen_basic.cpp
jdmclark/jkgfxmod
6612413810129ebeae2affeb956d0a5fdb41dd0e
[ "MIT" ]
71
2019-03-31T14:39:58.000Z
2022-02-12T05:25:39.000Z
renderer/renderer_screen_basic.cpp
jdmclark/jkgfxmod
6612413810129ebeae2affeb956d0a5fdb41dd0e
[ "MIT" ]
10
2019-05-14T21:02:57.000Z
2021-06-06T23:19:16.000Z
#include "renderer_screen_basic.hpp" #include "base/log.hpp" #include "math/colors.hpp" jkgm::render_depthbuffer::render_depthbuffer(size<2, int> dims) : viewport(make_point(0, 0), dims) { gl::bind_renderbuffer(rbo); gl::renderbuffer_storage(gl::renderbuffer_format::depth, dims); } jkgm::render_buffer::re...
41.180556
96
0.650703
[ "render" ]
85e5d072cfa681f7590a9230ed56d9303d88e63c
2,844
hpp
C++
src/framework/shared/inc/private/common/fxlock.hpp
IT-Enthusiast-Nepal/Windows-Driver-Frameworks
bfee6134f30f92a90dbf96e98d54582ecb993996
[ "MIT" ]
994
2015-03-18T21:37:07.000Z
2019-04-26T04:04:14.000Z
src/framework/shared/inc/private/common/fxlock.hpp
IT-Enthusiast-Nepal/Windows-Driver-Frameworks
bfee6134f30f92a90dbf96e98d54582ecb993996
[ "MIT" ]
13
2019-06-13T15:58:03.000Z
2022-02-18T22:53:35.000Z
src/framework/shared/inc/private/common/fxlock.hpp
IT-Enthusiast-Nepal/Windows-Driver-Frameworks
bfee6134f30f92a90dbf96e98d54582ecb993996
[ "MIT" ]
350
2015-03-19T04:29:46.000Z
2019-05-05T23:26:50.000Z
/*++ Copyright (c) Microsoft Corporation Module Name: FxLock.hpp Abstract: This is the C++ header for the FxLock This represents a container for handling locking Author: Revision History: --*/ #ifndef _FXLOCK_H_ #define _FXLOCK_H_ /** * This is the base lock object implementation * * This ...
18.834437
67
0.576301
[ "object" ]
85f3c71f40b9a177f2e3adba8b8742fdb8b45aa7
981
cpp
C++
src/Rocket3d/main.cpp
walthill/Rocket3D
45ba128699b354f21db04f4b114c81504c8e0771
[ "Apache-2.0" ]
null
null
null
src/Rocket3d/main.cpp
walthill/Rocket3D
45ba128699b354f21db04f4b114c81504c8e0771
[ "Apache-2.0" ]
3
2019-12-07T01:28:17.000Z
2020-02-05T16:57:33.000Z
src/Rocket3d/main.cpp
walthill/Rocket3D
45ba128699b354f21db04f4b114c81504c8e0771
[ "Apache-2.0" ]
null
null
null
/******** ========================= ROCKET3D ========================= File Created By: Walter Hill Rocket3D is an open source 3D game engine written using C++ & OpenGL. This code is open source under the Apache 2.0 license. (https://github.com/walthill/Rocket3D/blob/master/LICENSE) =====================...
23.926829
91
0.639144
[ "3d" ]
65b7ce423c29938e31d6fb8c1c929e8f3dfce4b9
84,782
cpp
C++
src/shapelib/shpopen.cpp
fritzr/voronoi-game
77fcc6a40076ab092795445f4e2a73f475338090
[ "MIT" ]
null
null
null
src/shapelib/shpopen.cpp
fritzr/voronoi-game
77fcc6a40076ab092795445f4e2a73f475338090
[ "MIT" ]
null
null
null
src/shapelib/shpopen.cpp
fritzr/voronoi-game
77fcc6a40076ab092795445f4e2a73f475338090
[ "MIT" ]
1
2020-07-12T03:44:53.000Z
2020-07-12T03:44:53.000Z
/****************************************************************************** * $Id: shpopen.c,v 1.60 2009-09-17 20:50:02 bram Exp $ * * Project: Shapelib * Purpose: Implementation of core Shapefile read/write functions. * Author: Frank Warmerdam, warmerdam@pobox.com * *************************************...
36.958152
123
0.451004
[ "object", "shape", "3d" ]
65b7ff31ef1d0ae22d9c69cf50174b06ed5af1cf
3,799
cpp
C++
Othuum/AhwassaGraphicsLib/Renderer/DiffuseMeshRenderer.cpp
Liech/Yathsou
95b6dda3c053bc25789cce416088e22f54a743b4
[ "MIT" ]
5
2021-04-20T17:00:41.000Z
2022-01-18T20:16:03.000Z
Othuum/AhwassaGraphicsLib/Renderer/DiffuseMeshRenderer.cpp
Liech/Yathsou
95b6dda3c053bc25789cce416088e22f54a743b4
[ "MIT" ]
7
2021-08-22T21:30:50.000Z
2022-01-14T16:56:34.000Z
Othuum/AhwassaGraphicsLib/Renderer/DiffuseMeshRenderer.cpp
Liech/Yathsou
95b6dda3c053bc25789cce416088e22f54a743b4
[ "MIT" ]
null
null
null
#include "DiffuseMeshRenderer.h" #include "Core/Window.h" #include "Core/ShaderProgram.h" #include "Core/Camera.h" #include "BufferObjects/Mesh.h" #include "Vertex/PositionNormalVertex.h" #include "Util.h" #include "Uniforms/UniformVec3.h" #include "Uniforms/UniformVecMat4.h" #include "Uniforms/UniformVecVec3.h" name...
29.449612
138
0.642011
[ "mesh", "vector" ]
65bb75296b2b076da76db2e52b88ab9072bbc410
535
cpp
C++
LeetCode/Problems/Algorithms/#977_SquaresOfASortedArray_sol5_two_pointers_approach_O(N)_time_O(1)_extra_space_68ms_26.2MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
1
2022-01-26T14:50:07.000Z
2022-01-26T14:50:07.000Z
LeetCode/Problems/Algorithms/#977_SquaresOfASortedArray_sol5_two_pointers_approach_O(N)_time_O(1)_extra_space_68ms_26.2MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
LeetCode/Problems/Algorithms/#977_SquaresOfASortedArray_sol5_two_pointers_approach_O(N)_time_O(1)_extra_space_68ms_26.2MB.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
class Solution { public: vector<int> sortedSquares(vector<int>& nums) { const int N = nums.size(); vector<int> answer(N); int l = 0; int r = N - 1; for(int i = N - 1; i >= 0; --i){ if(nums[l] * nums[l] >= nums[r] * nums[r]){ answ...
25.47619
56
0.347664
[ "vector" ]
65be55debe0c91cf2376e56f9b94ced271ebf224
3,555
cpp
C++
5227 Tom and game/main.cpp
sqc1999-oi/HDU
5583755c5b7055e4a7254b2124f67982cc49b72d
[ "MIT" ]
1
2016-07-18T12:05:44.000Z
2016-07-18T12:05:44.000Z
5227 Tom and game/main.cpp
sqc1999-oi/HDU
5583755c5b7055e4a7254b2124f67982cc49b72d
[ "MIT" ]
null
null
null
5227 Tom and game/main.cpp
sqc1999-oi/HDU
5583755c5b7055e4a7254b2124f67982cc49b72d
[ "MIT" ]
null
null
null
#include <cstdio> #include <algorithm> #include <vector> #include <climits> #include <cstring> #include <cstdarg> #include <cctype> #include <cstring> #include <map> using namespace std; const int N = 10000; vector<int> g[N]; bool flag[N]; int sz[N], phi[N + 1]; long long ct[N + 1], sg[N], depw[N]; void...
20.084746
63
0.440506
[ "vector" ]
65c97218347275896dad7c0dc8ceca0cb7a478ae
3,366
cpp
C++
Alpha9/platform/windows/windows_input.cpp
Mind-Blown012/Alpha-9
02f44f56bd8811b6df467eb65a243d751b0023b7
[ "MIT" ]
null
null
null
Alpha9/platform/windows/windows_input.cpp
Mind-Blown012/Alpha-9
02f44f56bd8811b6df467eb65a243d751b0023b7
[ "MIT" ]
null
null
null
Alpha9/platform/windows/windows_input.cpp
Mind-Blown012/Alpha-9
02f44f56bd8811b6df467eb65a243d751b0023b7
[ "MIT" ]
null
null
null
#include "a9pch.hpp" #include "windows_input.hpp" #ifdef A9_PLATFORM_WINDOWS namespace Alpha9 { const int Input::NumKeys = 119; const int Input::NumMouseButtons = 8; bool Input::s_isInitalized = false; std::vector<int> Input::s_keys; std::vector<int> Input::s_lastKeys; std::vector<int> Input::s_mouseButtons; ...
31.166667
133
0.709745
[ "vector" ]
65daf8c56a5ea754995e1a25d00aba2763d8f3ab
716
cpp
C++
binarysearch.io/medium/Zero-Matrix.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
18
2020-08-27T05:27:50.000Z
2022-03-08T02:56:48.000Z
binarysearch.io/medium/Zero-Matrix.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
null
null
null
binarysearch.io/medium/Zero-Matrix.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
1
2020-10-13T05:23:58.000Z
2020-10-13T05:23:58.000Z
#include "solution.hpp" using namespace std; class Solution { public: vector<vector<int>> solve(vector<vector<int>>& matrix) { vector<vector<int>> ans; unordered_map<int,int> r,c; int m=matrix.size(); if(m==0) return matrix; int n=matrix[0].size(); if(n==0) retu...
23.096774
60
0.395251
[ "vector" ]
65e3c5ac09b9226c05ed2ec7048795458fc5c1d2
3,263
cpp
C++
src/caffe/layers/euclidean_loss_layer.cpp
Andeling/caffe_unet
f713104e5c76eea1b618b21b3a3f303dd673081c
[ "Intel", "BSD-2-Clause" ]
null
null
null
src/caffe/layers/euclidean_loss_layer.cpp
Andeling/caffe_unet
f713104e5c76eea1b618b21b3a3f303dd673081c
[ "Intel", "BSD-2-Clause" ]
null
null
null
src/caffe/layers/euclidean_loss_layer.cpp
Andeling/caffe_unet
f713104e5c76eea1b618b21b3a3f303dd673081c
[ "Intel", "BSD-2-Clause" ]
null
null
null
#include <vector> #include "caffe/layers/euclidean_loss_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> void EuclideanLossLayer<Dtype>::Reshape( const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { LossLayer<Dtype>::Reshape(bottom, top); CHECK_E...
33.639175
80
0.575544
[ "shape", "vector" ]
65eec637a02091c76624e11c95ad6b55da273abf
737
cpp
C++
Game/Scripts/ObjectPlacer.cpp
JohnHonkanen/ProjectM
881171ad749e8fe7db6188ee9486239a37256569
[ "Unlicense" ]
null
null
null
Game/Scripts/ObjectPlacer.cpp
JohnHonkanen/ProjectM
881171ad749e8fe7db6188ee9486239a37256569
[ "Unlicense" ]
null
null
null
Game/Scripts/ObjectPlacer.cpp
JohnHonkanen/ProjectM
881171ad749e8fe7db6188ee9486239a37256569
[ "Unlicense" ]
null
null
null
#include "ObjectPlacer.h" #include "core\GameEngine.h" ObjectPlacer * ObjectPlacer::Create(GameObject * gameObject, GameObject * itemToBuild, TerrainSnapper * snapper) { ObjectPlacer *p = new ObjectPlacer(); p->itemToBuild = itemToBuild; p->snapper = snapper; gameObject->AddComponent(p); return p; } void Objec...
23.03125
112
0.652646
[ "transform" ]
5a0a21228b07e204f509007443fc0b55ff59a193
4,151
cpp
C++
src/regalloc/regalloc.cpp
martinogden/mer
33b4b39b1604ce0708b0d3d1c809b95683a2f4cb
[ "Unlicense" ]
2
2019-11-17T22:54:16.000Z
2020-08-07T20:53:25.000Z
src/regalloc/regalloc.cpp
martinogden/mer
33b4b39b1604ce0708b0d3d1c809b95683a2f4cb
[ "Unlicense" ]
null
null
null
src/regalloc/regalloc.cpp
martinogden/mer
33b4b39b1604ce0708b0d3d1c809b95683a2f4cb
[ "Unlicense" ]
null
null
null
#include <set> #include <unordered_map> #include "counter.hpp" #include "inst/operand.hpp" #include "regalloc/regalloc.hpp" #include "regalloc/ig-builder.hpp" typedef std::unordered_map<Operand, uint> Colors; Alloc::Alloc() : num_spilled(0) {} Operand Alloc::lookup(const Operand& operand) const { switch (operan...
20.24878
85
0.649241
[ "vector" ]
5a147e1d29f8378cae8f969c0406d7723f8cc77e
3,192
hh
C++
TEvtGen/EvtGen/EvtGenModels/EvtLambdaP_BarGamma.hh
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
52
2016-12-11T13:04:01.000Z
2022-03-11T11:49:35.000Z
TEvtGen/EvtGen/EvtGenModels/EvtLambdaP_BarGamma.hh
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
1,388
2016-11-01T10:27:36.000Z
2022-03-30T15:26:09.000Z
TEvtGen/EvtGen/EvtGenModels/EvtLambdaP_BarGamma.hh
AllaMaevskaya/AliRoot
c53712645bf1c7d5f565b0d3228e3a6b9b09011a
[ "BSD-3-Clause" ]
275
2016-06-21T20:24:05.000Z
2022-03-31T13:06:19.000Z
//-------------------------------------------------------------------------- // // Environment: // This software is part of the EvtGen package developed jointly // for the BaBar and CLEO collaborations. If you use all or part // of it, please give an appropriate acknowledgement. // // Copyright Informat...
40.923077
120
0.513158
[ "vector" ]
5a168d66a0c88609801c063ec4d68d0495a38043
1,735
cpp
C++
src/ui/ofxImGuiPatchParamsUI.cpp
MacFurax/ofxPDSPTools
a2c7af9035d771287abc9414cfadd299e9a8dd41
[ "MIT" ]
12
2019-09-17T15:43:50.000Z
2021-07-20T09:46:44.000Z
src/ui/ofxImGuiPatchParamsUI.cpp
MacFurax/ofxPDSPTools
a2c7af9035d771287abc9414cfadd299e9a8dd41
[ "MIT" ]
null
null
null
src/ui/ofxImGuiPatchParamsUI.cpp
MacFurax/ofxPDSPTools
a2c7af9035d771287abc9414cfadd299e9a8dd41
[ "MIT" ]
null
null
null
#include "ofxImGuiPatchParamsUI.h" ofxImGuiPatchParamsUI::ofxImGuiPatchParamsUI() { } ofxImGuiPatchParamsUI::ofxImGuiPatchParamsUI(PatchParams& patchParam) { _patchParams = patchParam; } ofxImGuiPatchParamsUI::~ofxImGuiPatchParamsUI() { } void ofxImGuiPatchParamsUI::setPatchParams( PatchParams& patchParam) { _pat...
20.174419
91
0.719885
[ "vector" ]
5a18ef7bdbe1091283b5e5704cd658858550e5e6
920
cpp
C++
Headers/OGL/QuadVao.cpp
baku89/RichterStrip
223c40c54cda0a028f20167a78ea61710e06f480
[ "MIT", "Unlicense" ]
6
2020-11-30T05:31:17.000Z
2020-12-01T12:40:20.000Z
Headers/OGL/QuadVao.cpp
baku89/RichterStrip
223c40c54cda0a028f20167a78ea61710e06f480
[ "MIT", "Unlicense" ]
null
null
null
Headers/OGL/QuadVao.cpp
baku89/RichterStrip
223c40c54cda0a028f20167a78ea61710e06f480
[ "MIT", "Unlicense" ]
1
2020-12-02T03:04:52.000Z
2020-12-02T03:04:52.000Z
#include "QuadVao.h" namespace { static const struct { float x, y; } quadVertices[4] = {{0, 0}, {1, 0}, {0, 1}, {1, 1}}; } // namespace namespace OGL { QuadVao::QuadVao() { glGenBuffers(1, &this->quad); glBindBuffer(GL_ARRAY_BUFFER, this->quad); glBufferData(GL_ARRAY_BUFFER, sizeof(quadVertices), qu...
23.589744
76
0.628261
[ "render" ]
5a1b84a44bd503f7bd0c39aa8610b1b6ab42c476
11,119
cpp
C++
src/unittest/CSVReader.cpp
lssjByron/teamsirus
21f5f26f410eb0262754006d7c4a024c160e6401
[ "MIT" ]
null
null
null
src/unittest/CSVReader.cpp
lssjByron/teamsirus
21f5f26f410eb0262754006d7c4a024c160e6401
[ "MIT" ]
null
null
null
src/unittest/CSVReader.cpp
lssjByron/teamsirus
21f5f26f410eb0262754006d7c4a024c160e6401
[ "MIT" ]
null
null
null
#include <iostream> #include <fstream> #include <string> #include <sstream> #include <vector> #include <sstream> #include "../database/CSVReader.h" int CSVReader::validHeaders(){ //vectors that store the headers of each file type std::vector<std::string> teachHeaderCheck = {"Record Info", "Last Mo...
56.156566
889
0.584675
[ "object", "vector" ]
5a1e4c7560b7b17549368102306a06233d8f3903
7,133
cxx
C++
TransformProcessor/qSlicerTransformProcessorModule.cxx
markasselin/SlicerIGT
907f3114986968d672afd5f7c1dfd879e251ab51
[ "BSD-3-Clause" ]
57
2015-10-10T12:35:51.000Z
2022-03-17T06:58:21.000Z
TransformProcessor/qSlicerTransformProcessorModule.cxx
markasselin/SlicerIGT
907f3114986968d672afd5f7c1dfd879e251ab51
[ "BSD-3-Clause" ]
149
2015-03-18T17:57:19.000Z
2021-12-02T16:31:22.000Z
TransformProcessor/qSlicerTransformProcessorModule.cxx
markasselin/SlicerIGT
907f3114986968d672afd5f7c1dfd879e251ab51
[ "BSD-3-Clause" ]
55
2015-03-17T21:30:46.000Z
2021-10-05T12:57:42.000Z
/*============================================================================== Program: 3D Slicer Portions (c) Copyright Brigham and Women's Hospital (BWH) All Rights Reserved. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Unless required by applicable law or agreed to ...
36.768041
150
0.598346
[ "vector", "3d" ]
5a28bb598632a339960abf26de4baee3948724f3
4,560
hpp
C++
mdtransform.hpp
vbirds/MarkdownParser
85d955bbbfac5b18b91116f328e48e855c93097c
[ "MIT" ]
1
2017-11-26T10:03:24.000Z
2017-11-26T10:03:24.000Z
mdtransform.hpp
vbirds/MarkdownParser
85d955bbbfac5b18b91116f328e48e855c93097c
[ "MIT" ]
null
null
null
mdtransform.hpp
vbirds/MarkdownParser
85d955bbbfac5b18b91116f328e48e855c93097c
[ "MIT" ]
1
2022-03-28T08:49:38.000Z
2022-03-28T08:49:38.000Z
#ifndef MD2HTML #define MD2HTML #include <string.h> #include <string> #include <vector> #include <utility> #define maxLength 10000 // 词法关键字枚举 enum{ nul = 0, paragraph = 1, href = 2, ul = 3, ol = 4, li = 5, em ...
21.923077
74
0.422368
[ "vector" ]
5a29679950cd8e394f6eb2e2d0d268225c7ce4ea
463
cpp
C++
src/0389.cpp
killf/leetcode_cpp
d1f308a9c3da55ae5416ea28ec2e7a3146533ae9
[ "MIT" ]
null
null
null
src/0389.cpp
killf/leetcode_cpp
d1f308a9c3da55ae5416ea28ec2e7a3146533ae9
[ "MIT" ]
null
null
null
src/0389.cpp
killf/leetcode_cpp
d1f308a9c3da55ae5416ea28ec2e7a3146533ae9
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include <vector> #include <sstream> #include <algorithm> #include <map> #include <set> #include <hash_map> #include <hash_set> #include <queue> #include <stack> using namespace std; class Solution { public: char findTheDifference(string s, string t) { int m[26] = {0}; ...
16.535714
46
0.585313
[ "vector" ]
5a2c61d504173f7d123d20056010289bbed915d4
4,060
cpp
C++
tc 160+/Library.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
3
2015-05-25T06:24:37.000Z
2016-09-10T07:58:00.000Z
tc 160+/Library.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
null
null
null
tc 160+/Library.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> #include <set> #include <map> using namespace std; bool intersects(const set<string> &a, const set<string> &b) { vector<string> t; set_intersection(a...
54.864865
525
0.610837
[ "vector" ]
5a3b86c4c559238fb0cd84ac7e82ee3dde825787
3,258
hpp
C++
src/realm/impl/copy_replication.hpp
aleyooop/realm-core
9874d5164927ea39273b241a5af14b596a3233e9
[ "Apache-2.0" ]
null
null
null
src/realm/impl/copy_replication.hpp
aleyooop/realm-core
9874d5164927ea39273b241a5af14b596a3233e9
[ "Apache-2.0" ]
null
null
null
src/realm/impl/copy_replication.hpp
aleyooop/realm-core
9874d5164927ea39273b241a5af14b596a3233e9
[ "Apache-2.0" ]
null
null
null
/************************************************************************* * * Copyright 2021 Realm Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lice...
36.606742
109
0.671578
[ "object", "vector" ]
5a444449523d5e3901d3428f4ca58b594e06a0a0
9,295
cpp
C++
src/DeviceDiscoverer/Impl/QBtDeviceDiscoverer_symbian.cpp
ftylitak/QBluetoothZero
3e4a018a5e62705b62fa2cbc64a27c3f66059982
[ "Apache-2.0" ]
2
2018-02-05T13:22:49.000Z
2019-01-19T12:04:20.000Z
src/DeviceDiscoverer/Impl/QBtDeviceDiscoverer_symbian.cpp
ftylitak/QBluetoothZero
3e4a018a5e62705b62fa2cbc64a27c3f66059982
[ "Apache-2.0" ]
1
2018-02-04T18:37:50.000Z
2018-02-05T23:16:31.000Z
src/DeviceDiscoverer/Impl/QBtDeviceDiscoverer_symbian.cpp
ftylitak/QBluetoothZero
3e4a018a5e62705b62fa2cbc64a27c3f66059982
[ "Apache-2.0" ]
3
2018-05-24T02:35:43.000Z
2019-02-28T16:38:52.000Z
/* * QBtDeviceDiscoverer_symbian.cpp * * * Author: Ftylitakis Nikolaos, Luis Valente * * 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/...
28.77709
104
0.56213
[ "object" ]
5a4ebd6f3de555acccd72c61bd377ffd8ce69780
3,378
cc
C++
paddle/fluid/framework/ir/fc_fuse_pass.cc
lijiancheng0614/Paddle
f980b29e6259b8e51f4ee04260e3a84233f337df
[ "Apache-2.0" ]
null
null
null
paddle/fluid/framework/ir/fc_fuse_pass.cc
lijiancheng0614/Paddle
f980b29e6259b8e51f4ee04260e3a84233f337df
[ "Apache-2.0" ]
null
null
null
paddle/fluid/framework/ir/fc_fuse_pass.cc
lijiancheng0614/Paddle
f980b29e6259b8e51f4ee04260e3a84233f337df
[ "Apache-2.0" ]
null
null
null
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
35.557895
78
0.637655
[ "vector" ]
99009bca896c9b5d8b522c4952bad6d88f628c28
5,639
cc
C++
qset.cc
JoeyEremondi/treewidth-memoization
5cd6be9e05bba189d14409f28c37805948ef11b3
[ "BSD-3-Clause" ]
1
2015-07-25T15:09:11.000Z
2015-07-25T15:09:11.000Z
qset.cc
JoeyEremondi/treewidth-memoization
5cd6be9e05bba189d14409f28c37805948ef11b3
[ "BSD-3-Clause" ]
1
2015-09-19T00:44:24.000Z
2015-09-21T16:47:12.000Z
qset.cc
JoeyEremondi/treewidth-memoization
5cd6be9e05bba189d14409f28c37805948ef11b3
[ "BSD-3-Clause" ]
null
null
null
#include <cstdlib> #include <iostream> #include <climits> #include <algorithm> #include <vector> #include <utility> #include <ctime> #include "qset.hh" #include "graphTypes.hh" #include <boost/graph/visitors.hpp> #include <boost/graph/breadth_first_search.hpp> #include <boost/graph/subgraph.hpp> //Basically just ...
21.359848
108
0.618549
[ "vector" ]
990166cc52f90f24ffca854527287c02e7d12bd3
4,384
hpp
C++
Source/Runtime/Engine/Public/GameFramework/Actor.hpp
Othereum/NoEngineGame
e3c9c9a330ba8e724cd96f98355b556d24e73d9d
[ "MIT" ]
23
2020-05-21T06:25:29.000Z
2021-04-06T03:37:28.000Z
Source/Runtime/Engine/Public/GameFramework/Actor.hpp
Othereum/NoEngineGame
e3c9c9a330ba8e724cd96f98355b556d24e73d9d
[ "MIT" ]
72
2020-06-09T04:46:27.000Z
2020-12-07T03:20:51.000Z
Source/Runtime/Engine/Public/GameFramework/Actor.hpp
Othereum/NoEngineGame
e3c9c9a330ba8e724cd96f98355b556d24e73d9d
[ "MIT" ]
4
2020-06-10T02:23:54.000Z
2022-03-28T07:22:08.000Z
#pragma once #include "Camera/CameraTypes.hpp" #include "TimerManager.hpp" #include <unordered_set> namespace logcat { extern ENGINE_API const LogCategory kActor; } namespace oeng { inline namespace engine { class World; class Engine; class ActorComponent; class SceneComponent; class ENGINE_API AActor : public Obje...
22.95288
90
0.631843
[ "object", "vector", "transform" ]
990b703a981e143664eaf24678e580d5d0d7c8ea
29,948
cpp
C++
release/src/SearchResultSet.cpp
adamfowleruk/mlcplusplus
bd8b47b8e92c7f66a22ecfe98353f3e8a621802d
[ "Apache-2.0" ]
4
2016-04-21T06:27:40.000Z
2017-01-20T12:10:54.000Z
release/src/SearchResultSet.cpp
marklogic/mlcplusplus
bd8b47b8e92c7f66a22ecfe98353f3e8a621802d
[ "Apache-2.0" ]
239
2015-11-26T23:10:33.000Z
2017-01-03T23:48:23.000Z
release/src/SearchResultSet.cpp
marklogic-community/mlcplusplus
bd8b47b8e92c7f66a22ecfe98353f3e8a621802d
[ "Apache-2.0" ]
3
2017-11-01T15:52:51.000Z
2021-12-02T05:22:49.000Z
/* * SearchResultSet.cpp * * Created on: 25 May 2016 * Author: adamfowler */ #include "mlclient/SearchResultSet.hpp" #include "mlclient/SearchResult.hpp" #include "mlclient/Connection.hpp" #include "mlclient/SearchDescription.hpp" #include "mlclient/Response.hpp" #include "mlclient/NoCredentialsException.hp...
39.096606
226
0.653099
[ "object", "vector" ]
993f7cfacb9b0afa0f7875f8c72522a04178f56e
4,708
hpp
C++
ql/experimental/math/randomsequencegenerator_multithreaded.hpp
universe1987/QuantLib
bbb0145aff285853755b9f6ed013f53a41163acb
[ "BSD-3-Clause" ]
4
2016-03-28T15:05:23.000Z
2020-02-17T23:05:57.000Z
ql/experimental/math/randomsequencegenerator_multithreaded.hpp
universe1987/QuantLib
bbb0145aff285853755b9f6ed013f53a41163acb
[ "BSD-3-Clause" ]
1
2015-02-02T20:32:43.000Z
2015-02-02T20:32:43.000Z
ql/experimental/math/randomsequencegenerator_multithreaded.hpp
pcaspers/quantlib
bbb0145aff285853755b9f6ed013f53a41163acb
[ "BSD-3-Clause" ]
10
2015-01-26T14:50:24.000Z
2015-10-23T07:41:30.000Z
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2015 Peter Caspers This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/o...
39.233333
80
0.658879
[ "vector" ]
99456fafb52701335b13a6470c6ba3d179b52261
1,321
cpp
C++
problems/NQueen.cpp
rishinpandit09/data-structure-and-algorithms
929e8dd3aa3c747c6cc20fc0248751f62d2884e5
[ "Apache-2.0" ]
53
2020-09-26T19:44:33.000Z
2021-09-30T20:38:52.000Z
problems/NQueen.cpp
rishinpandit09/data-structure-and-algorithms
929e8dd3aa3c747c6cc20fc0248751f62d2884e5
[ "Apache-2.0" ]
197
2020-08-25T18:13:56.000Z
2021-06-19T07:26:19.000Z
problems/NQueen.cpp
rishinpandit09/data-structure-and-algorithms
929e8dd3aa3c747c6cc20fc0248751f62d2884e5
[ "Apache-2.0" ]
204
2020-08-24T09:21:02.000Z
2022-02-13T06:13:42.000Z
#include<bits/stdc++.h> using namespace std; bool check(long int a, long int b, vector<pair<long int, long int> >vp) { //cout<<"inside check"<<endl; //cout<<"size of vp "<<vp.size()<<endl; long int size = vp.size(); for(long int i=0;i<=size-1;i++) { //cout<<"inside loop"<<endl; if(v...
19.426471
89
0.535201
[ "vector" ]
994f301f73dba853e603c60002f2d9ea0a3d0ca8
1,123
hpp
C++
src/bemb_loc/my_headers.hpp
rodonn/nested-factorization
f55bef387a05d7b2a5ff5649209da2fcab1fea7c
[ "MIT" ]
null
null
null
src/bemb_loc/my_headers.hpp
rodonn/nested-factorization
f55bef387a05d7b2a5ff5649209da2fcab1fea7c
[ "MIT" ]
null
null
null
src/bemb_loc/my_headers.hpp
rodonn/nested-factorization
f55bef387a05d7b2a5ff5649209da2fcab1fea7c
[ "MIT" ]
null
null
null
#ifndef MY_HEADERS_HPP #define MY_HEADERS_HPP #include <math.h> #include <climits> #include <stdio.h> #include <iostream> #include <fstream> #include <sstream> #include <string.h> #include <time.h> #include <ctime> #include <stdlib.h> #include <assert.h> #include <signal.h> #include <stdint.h> #include <sys/types.h> ...
19.701754
37
0.71683
[ "vector" ]
99532e7db5ab7fe9d5e0deb5734290f23423709e
2,368
hpp
C++
include/libp2p/protocol/gossip/impl/stream_writer.hpp
Alexey-N-Chernyshov/cpp-libp2p
8b52253f9658560a4b1311b3ba327f02284a42a6
[ "Apache-2.0", "MIT" ]
null
null
null
include/libp2p/protocol/gossip/impl/stream_writer.hpp
Alexey-N-Chernyshov/cpp-libp2p
8b52253f9658560a4b1311b3ba327f02284a42a6
[ "Apache-2.0", "MIT" ]
null
null
null
include/libp2p/protocol/gossip/impl/stream_writer.hpp
Alexey-N-Chernyshov/cpp-libp2p
8b52253f9658560a4b1311b3ba327f02284a42a6
[ "Apache-2.0", "MIT" ]
null
null
null
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #ifndef LIBP2P_PROTOCOL_GOSSIP_STREAM_WRITER_HPP #define LIBP2P_PROTOCOL_GOSSIP_STREAM_WRITER_HPP #include <deque> #include <functional> #include <libp2p/connection/stream.hpp> #include <libp2p/protocol/common/schedu...
32.888889
80
0.707348
[ "object" ]
995c5862b47bd752c2958158f86763e0cf2b0586
4,719
cpp
C++
Example/CubeMap/CubeMap.cpp
Sqazine/SGL
4897e66c135ca8703609978eed3b66c3aac6735a
[ "Apache-2.0" ]
null
null
null
Example/CubeMap/CubeMap.cpp
Sqazine/SGL
4897e66c135ca8703609978eed3b66c3aac6735a
[ "Apache-2.0" ]
null
null
null
Example/CubeMap/CubeMap.cpp
Sqazine/SGL
4897e66c135ca8703609978eed3b66c3aac6735a
[ "Apache-2.0" ]
1
2021-09-22T07:57:46.000Z
2021-09-22T07:57:46.000Z
#include <memory> #include <vector> #include <cassert> #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> #include "Engine/Engine.h" class TextureShaderProgram : public SGL::GraphicsShaderProgram { public: TextureShaderProgram() {} ~TextureShaderProgram() {} uniform std::vector<SGL::Vector3f> pos...
35.216418
146
0.667938
[ "mesh", "vector" ]
995f53a0eb3c101123c0503336646c8c75d0d9ba
34,034
cpp
C++
Source/Falcor/Scene/Importers/PBRTImporter/Parser.cpp
gonsolo/Falcor
db27e6fa0efb1c04a51333c14ddfeac309995145
[ "BSD-3-Clause" ]
null
null
null
Source/Falcor/Scene/Importers/PBRTImporter/Parser.cpp
gonsolo/Falcor
db27e6fa0efb1c04a51333c14ddfeac309995145
[ "BSD-3-Clause" ]
null
null
null
Source/Falcor/Scene/Importers/PBRTImporter/Parser.cpp
gonsolo/Falcor
db27e6fa0efb1c04a51333c14ddfeac309995145
[ "BSD-3-Clause" ]
null
null
null
/*************************************************************************** # Copyright (c) 2015-22, NVIDIA CORPORATION. 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...
39.345665
145
0.398807
[ "shape", "vector", "transform" ]
9963df7ce4bcdef35a0c99a1862d0dadc770aeac
2,375
cpp
C++
src/Visualization.cpp
arslansadiq/KinectShape
5e5f0c544fd6fc57c05b305f90d5bcc5903bd1d0
[ "MIT" ]
71
2015-03-05T16:59:00.000Z
2021-12-07T08:42:16.000Z
src/Visualization.cpp
coolvision/KinectShape
5e5f0c544fd6fc57c05b305f90d5bcc5903bd1d0
[ "MIT" ]
null
null
null
src/Visualization.cpp
coolvision/KinectShape
5e5f0c544fd6fc57c05b305f90d5bcc5903bd1d0
[ "MIT" ]
30
2015-02-05T16:31:02.000Z
2020-12-28T05:41:33.000Z
/* * Visualization.cpp * * Created on: 2012 * Author: sk */ #include "ShapeApp.h" void drawCameraPose(ofxKinect *kinect, ofColor color, ofMatrix4x4 transform_matrix) { ofPoint near[4]; ofPoint far[4]; ofPoint camera_near[4]; ofPoint camera_far[4]; ofPoint world_near[4]; ofPoint world_far[4];...
24.739583
75
0.622737
[ "transform" ]