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
71a889589946c72e471e442ba344ffbcf31aba91
1,352
cpp
C++
#76_minimum-window-substring/minimum-window-substring.cpp
o-oppang/lets-solve-algorithm
9983a112736ce48bbd309a9af16d1fd68b9420da
[ "MIT" ]
null
null
null
#76_minimum-window-substring/minimum-window-substring.cpp
o-oppang/lets-solve-algorithm
9983a112736ce48bbd309a9af16d1fd68b9420da
[ "MIT" ]
null
null
null
#76_minimum-window-substring/minimum-window-substring.cpp
o-oppang/lets-solve-algorithm
9983a112736ce48bbd309a9af16d1fd68b9420da
[ "MIT" ]
null
null
null
//Input: s = "ADOBECODEBANC", t = "ABC" //Output: "BANC" // while : "ADOBECODEBANC" // ^ ^ ^ ^^^^ class Solution { public: string minWindow(const string s, const string t) { vector<pair<size_t, size_t>> indices; //{first pos, string size} vector<string> remaining; // remaining letters ...
33.8
90
0.492604
[ "vector" ]
71ae5b3a00d38fb63880f5d824e120b8382becb1
23,871
cpp
C++
app/src/main/cpp/filters.cpp
jongwonleee/pinata
f11065f43bddeaaf56548a8942b7f481ce9b9053
[ "Intel", "Apache-2.0" ]
1
2021-01-03T17:50:44.000Z
2021-01-03T17:50:44.000Z
app/src/main/cpp/filters.cpp
jongwonleee/pinata
f11065f43bddeaaf56548a8942b7f481ce9b9053
[ "Intel", "Apache-2.0" ]
null
null
null
app/src/main/cpp/filters.cpp
jongwonleee/pinata
f11065f43bddeaaf56548a8942b7f481ce9b9053
[ "Intel", "Apache-2.0" ]
2
2021-01-03T17:50:46.000Z
2021-01-04T12:58:23.000Z
#include "filters.h" #include <opencv2/imgproc/types_c.h> using namespace std; using namespace cv; extern "C" { void gammaCorrection(Mat &src, Mat &dst) { register int x, y, i; dst = Mat::zeros(src.size(), src.type()); uchar r, g, b; float redAverage = 0; float greenAverage = 0; float blueAve...
33.108183
98
0.474132
[ "vector" ]
71ba8ac42d966285417a9a68ba8da9066713275f
3,124
cpp
C++
2020/14.cpp
mdelorme/advent_of_code
47142d501055fc0d36989db9b189be7e6756d779
[ "Unlicense" ]
null
null
null
2020/14.cpp
mdelorme/advent_of_code
47142d501055fc0d36989db9b189be7e6756d779
[ "Unlicense" ]
null
null
null
2020/14.cpp
mdelorme/advent_of_code
47142d501055fc0d36989db9b189be7e6756d779
[ "Unlicense" ]
null
null
null
#include <bits/stdc++.h> using BitSet = std::bitset<36>; struct Instruction { std::string mask; uint64_t address; uint64_t value; bool is_mask; }; std::vector<Instruction> instructions; std::map<uint64_t, BitSet> memory_p1; std::map<uint64_t, uint64_t> memory_p2; void apply_value(uint64_t address, uint64_t ...
20.966443
87
0.580986
[ "vector" ]
71c5291ee4c36e3dd6e5bd0cfea5979974b38025
2,470
hpp
C++
include/spmdfy/CFG/CFGVisitor.hpp
schwarzschild-radius/spmdfy
9b5543e3446347277f15b9fe2aee3c7f8311bc78
[ "MIT" ]
6
2019-07-26T12:37:32.000Z
2021-03-13T06:18:07.000Z
include/spmdfy/CFG/CFGVisitor.hpp
schwarzschild-radius/spmdfy
9b5543e3446347277f15b9fe2aee3c7f8311bc78
[ "MIT" ]
6
2019-06-19T06:04:01.000Z
2019-08-23T11:12:31.000Z
include/spmdfy/CFG/CFGVisitor.hpp
schwarzschild-radius/spmdfy
9b5543e3446347277f15b9fe2aee3c7f8311bc78
[ "MIT" ]
1
2020-05-28T06:43:12.000Z
2020-05-28T06:43:12.000Z
#ifndef CFGVISITOR_HPP #define CFGVISITOR_HPP #include <spmdfy/CFG/CFG.hpp> #include <vector> namespace spmdfy { namespace cfg { using SpmdTUTy = std::vector<cfg::CFGNode *>; /** * \class CFGVisitor * \ingroup CFG * * \brief A Visitor interface the CFG inspired by clang's ASTVisitors. The * Visitors can be ov...
30.493827
80
0.609312
[ "vector" ]
71c985b70471c36b2c05237b1bbc116fbcb21b8e
3,392
hpp
C++
src/target/new/type_field_value.hpp
bendyer/kdl
9f3afa71a1df0b2e412a988750c1b9ce61d3c550
[ "MIT" ]
null
null
null
src/target/new/type_field_value.hpp
bendyer/kdl
9f3afa71a1df0b2e412a988750c1b9ce61d3c550
[ "MIT" ]
null
null
null
src/target/new/type_field_value.hpp
bendyer/kdl
9f3afa71a1df0b2e412a988750c1b9ce61d3c550
[ "MIT" ]
null
null
null
// Copyright (c) 2020 Tom Hancocks // // 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, ...
41.876543
99
0.713443
[ "vector" ]
71cb955a306a1a89c6107556eae7129b91057f62
7,681
hpp
C++
src/private_include/transfer_buffer.hpp
p-groarke/fea_vulkan_compute
e0ffeb74846ed565d7036424e3deddf032d51e05
[ "BSD-3-Clause" ]
null
null
null
src/private_include/transfer_buffer.hpp
p-groarke/fea_vulkan_compute
e0ffeb74846ed565d7036424e3deddf032d51e05
[ "BSD-3-Clause" ]
null
null
null
src/private_include/transfer_buffer.hpp
p-groarke/fea_vulkan_compute
e0ffeb74846ed565d7036424e3deddf032d51e05
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include "private_include/ids.hpp" #include "private_include/raw_buffer.hpp" #include "vkc/vkc.hpp" #include <algorithm> #include <limits> #include <vulkan/vulkan.hpp> namespace fea { namespace vkc { namespace detail { constexpr vk::BufferUsageFlags staging_usage_flags = vk::BufferUsageFlagBits::eTrans...
27.432143
75
0.719958
[ "vector" ]
71e06be41b3d7618d90d34b25d59d45ed774b17c
4,098
cpp
C++
frameworks/net/interfaces/dmzNetModuleIdentityMap.cpp
dmzgroup/dmz
fc2d9ddcb04ed71f4106b8d33539529807b3dea6
[ "MIT" ]
2
2015-11-05T03:03:43.000Z
2017-05-15T12:55:39.000Z
frameworks/net/interfaces/dmzNetModuleIdentityMap.cpp
dmzgroup/dmz
fc2d9ddcb04ed71f4106b8d33539529807b3dea6
[ "MIT" ]
null
null
null
frameworks/net/interfaces/dmzNetModuleIdentityMap.cpp
dmzgroup/dmz
fc2d9ddcb04ed71f4106b8d33539529807b3dea6
[ "MIT" ]
null
null
null
/*! \class dmz::NetModuleIdentityMap \ingroup Net \brief Provides a mapping between internal and external object identification. \fn dmz::NetModuleIdentityMap *dmz::NetModuleIdentityMap::cast ( const Plugin *PluginPtr, const String &PluginName) \brief Casts Plugin pointer to an NetModuleIdentityMap. \details If the P...
37.944444
89
0.786481
[ "object" ]
71e1f781b63a6657c7402c3053781492a07ca768
13,394
hh
C++
Detector/Tracker.hh
tassiell/TrackToy
3014e42361673b37c3de65fcd9a53ba94d66bcba
[ "Apache-2.0" ]
null
null
null
Detector/Tracker.hh
tassiell/TrackToy
3014e42361673b37c3de65fcd9a53ba94d66bcba
[ "Apache-2.0" ]
null
null
null
Detector/Tracker.hh
tassiell/TrackToy
3014e42361673b37c3de65fcd9a53ba94d66bcba
[ "Apache-2.0" ]
null
null
null
// // Cylindrical tracker // #ifndef TrackToy_Detector_Tracker_hh #define TrackToy_Detector_Tracker_hh #include "TrackToy/Detector/HollowCylinder.hh" #include "TrackToy/General/TrajUtilities.hh" #include "KinKal/MatEnv/MatDBInfo.hh" #include "TrackToy/General/ELossDistributions.hh" #include "KinKal/General/Vectors.hh" ...
48.883212
190
0.660594
[ "vector", "model" ]
71e2c00d81d86c4b346b8456e1269bc385e2c776
3,170
inl
C++
clove/components/utilities/event/include/Clove/Event/EventManager.inl
mondoo/Clove
3989dc3fea0d886a69005c1e0bb4396501f336f2
[ "MIT" ]
33
2020-01-09T04:57:29.000Z
2021-08-14T08:02:43.000Z
clove/components/utilities/event/include/Clove/Event/EventManager.inl
mondoo/Clove
3989dc3fea0d886a69005c1e0bb4396501f336f2
[ "MIT" ]
234
2019-10-25T06:04:35.000Z
2021-08-18T05:47:41.000Z
clove/components/utilities/event/include/Clove/Event/EventManager.inl
mondoo/Clove
3989dc3fea0d886a69005c1e0bb4396501f336f2
[ "MIT" ]
4
2020-02-11T15:28:42.000Z
2020-09-07T16:22:58.000Z
#include <optional> namespace clove { template<typename EventType> EventManager::EventContainer<EventType>::EventContainer() = default; template<typename EventType> EventManager::EventContainer<EventType>::EventContainer(EventContainer &&other) noexcept = default; template<typename EventType> ...
38.658537
170
0.668139
[ "vector" ]
71e43f0cf1fae5ca545eca376e8507505ba58984
27,538
cpp
C++
src/miner.cpp
tradecraftio/tradecraft
a014fea4d4656df67aef19e379f10322386cf6f8
[ "MIT" ]
10
2019-03-08T04:10:37.000Z
2021-08-20T11:55:14.000Z
src/miner.cpp
tradecraftio/tradecraft
a014fea4d4656df67aef19e379f10322386cf6f8
[ "MIT" ]
69
2018-11-09T20:29:29.000Z
2021-10-05T00:08:36.000Z
src/miner.cpp
tradecraftio/tradecraft
a014fea4d4656df67aef19e379f10322386cf6f8
[ "MIT" ]
7
2019-01-21T06:00:18.000Z
2021-12-19T16:18:00.000Z
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2019 The Bitcoin Core developers // Copyright (c) 2011-2021 The Freicoin Developers // // This program is free software: you can redistribute it and/or modify it under // the terms of version 3 of the GNU Affero General Public License as published // by ...
42.76087
266
0.684037
[ "vector" ]
71e4d3c7d88b85f9daf50783c096697b52e9b0b6
1,870
cpp
C++
boardNode.cpp
GregTalotta/cs405_hw2
7c54fdd0873e13ab597ab9a2668f91c2ed2c78a9
[ "MIT" ]
null
null
null
boardNode.cpp
GregTalotta/cs405_hw2
7c54fdd0873e13ab597ab9a2668f91c2ed2c78a9
[ "MIT" ]
null
null
null
boardNode.cpp
GregTalotta/cs405_hw2
7c54fdd0873e13ab597ab9a2668f91c2ed2c78a9
[ "MIT" ]
null
null
null
#include "boardNode.h" using std::rand; using std::vector; std::shared_ptr<BoardNode> BoardNode::getRandomChild() { int pos = rand() % (int)children.size(); return children[pos]; } std::shared_ptr<BoardNode> BoardNode::getBestChild() { std::shared_ptr<BoardNode> best = children[0]; for (int i = 1; i <...
20.777778
121
0.54385
[ "vector" ]
71e7b33e768b94751786c0dcbe8867332249f666
1,543
cpp
C++
CaesarCipher/caesarcipher.cpp
Asyrion/cplusplus
5173b759dc4f34e9be0f49ada079c39946fe7e26
[ "MIT" ]
null
null
null
CaesarCipher/caesarcipher.cpp
Asyrion/cplusplus
5173b759dc4f34e9be0f49ada079c39946fe7e26
[ "MIT" ]
null
null
null
CaesarCipher/caesarcipher.cpp
Asyrion/cplusplus
5173b759dc4f34e9be0f49ada079c39946fe7e26
[ "MIT" ]
1
2019-05-04T18:23:39.000Z
2019-05-04T18:23:39.000Z
#include <string> #include <iostream> #include <algorithm> #include <cctype> class MyTransform { private: int shift; public: MyTransform( int s ) : shift( s ) {} char operator() (char c) { if( isspace(c)) return 0; else { ...
27.553571
84
0.515878
[ "transform" ]
71ead71b9ab9037432460863c12107f038aebbe1
1,106
cpp
C++
prompt412/study-0123/1325-hacking.cpp
honux77/algorithm
2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee
[ "MIT" ]
2
2019-02-08T01:23:07.000Z
2020-11-19T12:23:52.000Z
prompt412/study-0123/1325-hacking.cpp
honux77/algorithm
2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee
[ "MIT" ]
null
null
null
prompt412/study-0123/1325-hacking.cpp
honux77/algorithm
2ed8cef1fbee7ad96d8f2ae583666d52bd8892ee
[ "MIT" ]
null
null
null
#include <cstdio> #include <iostream> #include <vector> #include <algorithm> using namespace std; using i64 = long long int; using ii = pair<int, int>; using ii64 = pair<i64, i64>; vector<int> edge[10001]; int vcount = 0; void dfs(int s, vector<bool> &visit) { vcount++; visit[s] = true; for(auto nxt:...
19.068966
42
0.460217
[ "vector" ]
71ee441048145852def3de998bc988c7b1df4a2d
10,710
cpp
C++
src/cpp/state-engine/astro_bodies/Moon.cpp
Dante83/SkyForge
283f30d05012d8570eb98013518977854f845c99
[ "MIT" ]
23
2018-05-08T15:57:32.000Z
2020-11-10T07:14:36.000Z
src/cpp/state-engine/astro_bodies/Moon.cpp
Dante83/SkyForge
283f30d05012d8570eb98013518977854f845c99
[ "MIT" ]
4
2018-06-11T08:58:55.000Z
2019-10-20T08:30:07.000Z
src/cpp/state-engine/astro_bodies/Moon.cpp
Dante83/A-Starry-Sky
283f30d05012d8570eb98013518977854f845c99
[ "MIT" ]
3
2019-06-26T22:41:50.000Z
2020-08-09T09:43:14.000Z
#include "../world_state/AstroTime.h" #include "../Constants.h" #include "AstronomicalBody.h" #include "Moon.h" #include <cmath> // //Constructor // Moon::Moon(AstroTime* astroTimeRef) : AstronomicalBody(astroTimeRef){ // //Default constructor // }; // //Methods // void Moon::updatePosition(double trueObliquity...
52.5
209
0.635948
[ "model" ]
71eecfe4020a2156d9d4a51755bf90693ccb5f6e
7,804
hpp
C++
RogueEngine/Source/GLHelper.hpp
silferysky/RogueArcher
3c77696260f773a0b7adb88b991e09bb35069901
[ "FSFAP" ]
1
2019-06-18T20:07:47.000Z
2019-06-18T20:07:47.000Z
RogueEngine/Source/GLHelper.hpp
silferysky/RogueArcher
3c77696260f773a0b7adb88b991e09bb35069901
[ "FSFAP" ]
null
null
null
RogueEngine/Source/GLHelper.hpp
silferysky/RogueArcher
3c77696260f773a0b7adb88b991e09bb35069901
[ "FSFAP" ]
null
null
null
/* Start Header ************************************************************************/ /*! \file GLHelper.hpp \project Exale \author Javier Foo, javier.foo, 440002318 (100%) \par javier.foo\@digipen.edu \date 1 December,2019 \brief This file contains the functio...
32.92827
120
0.677217
[ "object" ]
71f82fc97755588fa4e47ec33009a189b61470cc
1,712
cpp
C++
leetcode/problems/medium/1570-dot-product-of-two-sparse-vectors.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
18
2020-08-27T05:27:50.000Z
2022-03-08T02:56:48.000Z
leetcode/problems/medium/1570-dot-product-of-two-sparse-vectors.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
null
null
null
leetcode/problems/medium/1570-dot-product-of-two-sparse-vectors.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
1
2020-10-13T05:23:58.000Z
2020-10-13T05:23:58.000Z
/* Dot Product of Two Sparse Vectors https://leetcode.com/problems/dot-product-of-two-sparse-vectors/ Given two sparse vectors, compute their dot product. Implement class SparseVector: SparseVector(nums) Initializes the object with the vector nums dotProduct(vec) Compute the dot product between the instance of Spars...
25.939394
157
0.633178
[ "object", "vector" ]
9f99ff1640f17ca5c2af9bbea9992bd9e5a9c9b7
1,868
hpp
C++
Phoenix3D/Tools/Nirvana/PX2E_ProjTreeItem.hpp
PheonixFoundation/Phoenix3D
bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99
[ "BSL-1.0" ]
36
2016-04-24T01:40:38.000Z
2022-01-18T07:32:26.000Z
Phoenix3D/Tools/Nirvana/PX2E_ProjTreeItem.hpp
PheonixFoundation/Phoenix3D
bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99
[ "BSL-1.0" ]
null
null
null
Phoenix3D/Tools/Nirvana/PX2E_ProjTreeItem.hpp
PheonixFoundation/Phoenix3D
bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99
[ "BSL-1.0" ]
16
2016-06-13T08:43:51.000Z
2020-09-15T13:25:58.000Z
// PX2E_ProjTreeItem.hpp #ifndef PX2E_PROJTREEITEM_HPP #define PX2E_PROJTREEITEM_HPP #include "PX2EditorPre.hpp" #include "PX2Object.hpp" #include "PX2E_ProjTreeDef.hpp" namespace PX2Editor { class ProjTree; class ProjTreeItem { public: enum ItemType { IT_OBJECT, IT_CATALOG, IT_MAX_TYPE }; P...
24.578947
101
0.736081
[ "object", "vector" ]
9f9b446a3bffaa1e4cde4487a1ce8796196b0621
280,124
cpp
C++
emulator/src/devices/video/stvvdp2.cpp
rjw57/tiw-computer
5ef1c79893165b8622d1114d81cd0cded58910f0
[ "MIT" ]
1
2022-01-15T21:38:38.000Z
2022-01-15T21:38:38.000Z
emulator/src/devices/video/stvvdp2.cpp
rjw57/tiw-computer
5ef1c79893165b8622d1114d81cd0cded58910f0
[ "MIT" ]
null
null
null
emulator/src/devices/video/stvvdp2.cpp
rjw57/tiw-computer
5ef1c79893165b8622d1114d81cd0cded58910f0
[ "MIT" ]
null
null
null
// license:LGPL-2.1+ // copyright-holders:David Haywood, Angelo Salese, Olivier Galibert, Mariusz Wojcieszek, R. Belmont /* Sega Saturn VDP2 */ /* the dirty marking stuff and tile decoding will probably be removed in the end anyway as we'll need custom rendering code since mame's drawgfx / tilesytem don't offer every...
39.655153
324
0.51851
[ "render", "solid" ]
9f9f01951937b860618edab2efdc3664d98ef2b8
25,116
cpp
C++
src/flexui/Style/StyleParse.cpp
franciscod/flexui
9af2c32a8ac3fe7127a9dd6927abe8b1945237c4
[ "MIT" ]
null
null
null
src/flexui/Style/StyleParse.cpp
franciscod/flexui
9af2c32a8ac3fe7127a9dd6927abe8b1945237c4
[ "MIT" ]
null
null
null
src/flexui/Style/StyleParse.cpp
franciscod/flexui
9af2c32a8ac3fe7127a9dd6927abe8b1945237c4
[ "MIT" ]
null
null
null
#include "flexui/Style/StyleParse.hpp" #include "flexui/Style/NamedColors.hpp" #include "flexui/Style/StyleSheet.hpp" /// Eventually we want to move away from std::string. /// We'll have slices of the original buffer /// moving around instead of copying all the time (substrs) namespace flexui { /// Check if the c...
30.296743
127
0.63784
[ "vector" ]
9fa1a50704c804086b8f0ffffef32bc4859e5362
4,259
cpp
C++
src/astar.cpp
verri/uatcn
bcf8125a4e82eef1953107a573f912962330efb7
[ "MIT" ]
null
null
null
src/astar.cpp
verri/uatcn
bcf8125a4e82eef1953107a573f912962330efb7
[ "MIT" ]
null
null
null
src/astar.cpp
verri/uatcn
bcf8125a4e82eef1953107a573f912962330efb7
[ "MIT" ]
null
null
null
#include "astar.hpp" #include "uat/agent.hpp" #include <algorithm> #include <cmath> #include <limits> #include <random> #include <unordered_map> #include <variant> #include <boost/functional/hash.hpp> #include <cool/compose.hpp> #include <uat/permit.hpp> using namespace uat; struct score_t { value_t g = std::nume...
27.301282
129
0.619864
[ "vector" ]
9fa2c286576983c01222b7fb57e3ef0da89a03bb
6,932
hpp
C++
include/GlobalNamespace/EnvironmentEffectsFilterPresetDropdown.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
include/GlobalNamespace/EnvironmentEffectsFilterPresetDropdown.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
include/GlobalNamespace/EnvironmentEffectsFilterPresetDropdown.hpp
darknight1050/BeatSaber-Quest-Codegen
a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032
[ "Unlicense" ]
null
null
null
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: UnityEngine.MonoBehaviour #include "UnityEngine/MonoBehaviour.hpp" //...
57.289256
476
0.763849
[ "object" ]
9fa40106cce23b1419b5bade6e7b975061ea2c0c
19,341
cpp
C++
base/cluster/mgmt/cluscfg/basecluster/test/baseclustertest.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/cluster/mgmt/cluscfg/basecluster/test/baseclustertest.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/cluster/mgmt/cluscfg/basecluster/test/baseclustertest.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 1999-2000 Microsoft Corporation // // Module Name: // BaseClusterTest.cpp // // Description: // Main file for the test harness executable. // Initializes tracing, parses command line and actuall...
31.34684
196
0.498268
[ "object" ]
9faf82fb7db34485496bf5554ec3378fc33a492c
7,472
hpp
C++
implementations/Vulkan/command_list.hpp
rsayers/abstract-gpu
48176fcb88bde7d56de662c9e49d3d0e562819e1
[ "MIT" ]
41
2016-03-25T18:14:37.000Z
2022-01-20T11:16:52.000Z
implementations/Vulkan/command_list.hpp
rsayers/abstract-gpu
48176fcb88bde7d56de662c9e49d3d0e562819e1
[ "MIT" ]
4
2016-05-05T22:08:01.000Z
2021-12-10T13:06:55.000Z
implementations/Vulkan/command_list.hpp
rsayers/abstract-gpu
48176fcb88bde7d56de662c9e49d3d0e562819e1
[ "MIT" ]
9
2016-05-23T01:51:25.000Z
2021-08-21T15:32:37.000Z
#ifndef AGPU_COMMAND_LIST_HPP #define AGPU_COMMAND_LIST_HPP #include "device.hpp" namespace AgpuVulkan { class AVkCommandList : public agpu::command_list { public: AVkCommandList(const agpu::device_ref &device); ~AVkCommandList(); static agpu::command_list_ref create(const agpu::device_ref &device, agpu...
67.927273
365
0.82682
[ "vector" ]
9fb1363f863d07aa861b0b2930263be734e47736
18,554
hpp
C++
dakota-6.3.0.Windows.x86/include/ExternalEvaluator.hpp
seakers/ExtUtils
b0186098063c39bd410d9decc2a765f24d631b25
[ "BSD-2-Clause" ]
null
null
null
dakota-6.3.0.Windows.x86/include/ExternalEvaluator.hpp
seakers/ExtUtils
b0186098063c39bd410d9decc2a765f24d631b25
[ "BSD-2-Clause" ]
null
null
null
dakota-6.3.0.Windows.x86/include/ExternalEvaluator.hpp
seakers/ExtUtils
b0186098063c39bd410d9decc2a765f24d631b25
[ "BSD-2-Clause" ]
1
2022-03-18T14:13:14.000Z
2022-03-18T14:13:14.000Z
/* ================================================================================ PROJECT: John Eddy's Genetic Algorithms (JEGA) CONTENTS: Definition of class ExternalEvaluator. NOTES: See notes under Class Definition section of this file. PROGRAMMERS: John Eddy ...
29.450794
81
0.476285
[ "object" ]
9fb8b73d30dcd34c572a12b190694996c40d6146
10,957
cpp
C++
PhotoSynthViewer/src/GPUBillboardSet.cpp
dddExperiments/PhotoSynthToolkit
4f81577ca347c30c9c142bad2e6edc278e38a4ca
[ "Unlicense", "MIT" ]
17
2015-02-10T17:44:42.000Z
2021-07-13T01:07:37.000Z
PhotoSynthViewer/src/GPUBillboardSet.cpp
Acidburn0zzz/PhotoSynthToolkit
4f81577ca347c30c9c142bad2e6edc278e38a4ca
[ "Unlicense", "MIT" ]
null
null
null
PhotoSynthViewer/src/GPUBillboardSet.cpp
Acidburn0zzz/PhotoSynthToolkit
4f81577ca347c30c9c142bad2e6edc278e38a4ca
[ "Unlicense", "MIT" ]
11
2015-01-15T04:21:40.000Z
2017-06-12T09:24:47.000Z
/* Copyright (c) 2010 ASTRE Henri (http://www.visual-experiments.com) 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...
35.92459
161
0.731861
[ "geometry", "render", "vector" ]
9fba8e0f85f5528b9ca7cfeb12a7b23bb2a9b109
5,130
hh
C++
RAVL2/3D/Mesh/HEMesh.hh
isuhao/ravl2
317e0ae1cb51e320b877c3bad6a362447b5e52ec
[ "BSD-Source-Code" ]
null
null
null
RAVL2/3D/Mesh/HEMesh.hh
isuhao/ravl2
317e0ae1cb51e320b877c3bad6a362447b5e52ec
[ "BSD-Source-Code" ]
null
null
null
RAVL2/3D/Mesh/HEMesh.hh
isuhao/ravl2
317e0ae1cb51e320b877c3bad6a362447b5e52ec
[ "BSD-Source-Code" ]
null
null
null
// This file is part of RAVL, Recognition And Vision Library // Copyright (C) 2002, University of Surrey // This code may be redistributed under the terms of the GNU Lesser // General Public License (LGPL). See the lgpl.licence file for details or // see http://www.gnu.org/copyleft/lesser.html // file-header-ends-here...
28.032787
136
0.666277
[ "mesh", "3d" ]
9fbe2c86075bc0fdeedf9dc5991ecf60930bd2e2
8,074
cc
C++
pdns-recursor-4.0.6/unix_utility.cc
hankai17/test
8f38d999a7c6a92eac94b4d9dc8e444619d2144f
[ "MIT" ]
7
2017-07-16T15:09:26.000Z
2021-09-01T02:13:15.000Z
pdns-recursor-4.0.6/unix_utility.cc
hankai17/test
8f38d999a7c6a92eac94b4d9dc8e444619d2144f
[ "MIT" ]
null
null
null
pdns-recursor-4.0.6/unix_utility.cc
hankai17/test
8f38d999a7c6a92eac94b4d9dc8e444619d2144f
[ "MIT" ]
3
2017-09-13T09:54:49.000Z
2019-03-18T01:29:15.000Z
/* PowerDNS Versatile Database Driven Nameserver Copyright (C) 2002 - 2011 PowerDNS.COM BV This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation Additionally, the license...
26.214286
132
0.632276
[ "vector" ]
9fc0c6a047493456d67e154818c53988cad076cc
477
cpp
C++
189 rotate-array/c/main.v2.cpp
o-jules/LeetCode-Problems
e8b31d0dd93f6e49e385ef35689e51f6935cd7cb
[ "MIT" ]
null
null
null
189 rotate-array/c/main.v2.cpp
o-jules/LeetCode-Problems
e8b31d0dd93f6e49e385ef35689e51f6935cd7cb
[ "MIT" ]
null
null
null
189 rotate-array/c/main.v2.cpp
o-jules/LeetCode-Problems
e8b31d0dd93f6e49e385ef35689e51f6935cd7cb
[ "MIT" ]
null
null
null
/** * Leetcode 最优解示例 * * 时间复杂度O(n) * 空间复杂度O(1) * */ void reverse(vector<int>& nums, int start, int end) { int temp; while (start < end) { temp = nums[start]; nums[start] = nums[end]; nums[end] = temp; start++; end--; } } void rotate(vector<int>& nums, int k) { int lenth = nums.size()...
15.387097
53
0.536688
[ "vector" ]
9fc422329736f5109c2b08b1f642e14b88fee179
14,880
cpp
C++
src/TestSuite.cpp
krnflake/deeplearn
51d517b882f16c0b3361baa1f79233fa2e1c517c
[ "MIT" ]
19
2016-02-10T10:30:36.000Z
2022-01-23T03:09:38.000Z
src/TestSuite.cpp
krnflake/deeplearn
51d517b882f16c0b3361baa1f79233fa2e1c517c
[ "MIT" ]
null
null
null
src/TestSuite.cpp
krnflake/deeplearn
51d517b882f16c0b3361baa1f79233fa2e1c517c
[ "MIT" ]
3
2016-06-09T09:04:42.000Z
2022-01-23T03:09:38.000Z
#include <libgen.h> #include <iostream> #include <vector> #include <memory> #include <ctime> #include "ocl/Device.h" #include "ocl/Utils.h" #include "utils/Mnist.h" #include "nn/NN.h" #include "utils/OpenCL.h" #include "common/Common.h" using namespace std; using namespace nn; #define RANDOM_SIZES true #define NUM_R...
40.655738
177
0.671505
[ "shape", "vector" ]
9fca152086a5e6fca15113e083f8b0004df54a4b
26,301
cpp
C++
Engine/Source/Runtime/Engine/Private/GlobalShader.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
null
null
null
Engine/Source/Runtime/Engine/Private/GlobalShader.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
2
2015-06-21T17:38:11.000Z
2015-06-22T20:54:42.000Z
Engine/Source/Runtime/Engine/Private/GlobalShader.cpp
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
null
null
null
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. /*============================================================================= GlobalShader.cpp: Global shader implementation. =============================================================================*/ #include "EnginePrivate.h" #include "GlobalShade...
35.638211
546
0.761758
[ "mesh" ]
9fcda0fc4c953f6aa03bdf4640846bbd32b88425
1,652
cpp
C++
Python/Interfacing_C_C++_Fortran/Pybind11/Stats/src/bindings/statistics_bind.cpp
Gjacquenot/training-material
16b29962bf5683f97a1072d961dd9f31e7468b8d
[ "CC-BY-4.0" ]
115
2015-03-23T13:34:42.000Z
2022-03-21T00:27:21.000Z
Python/Interfacing_C_C++_Fortran/Pybind11/Stats/src/bindings/statistics_bind.cpp
Gjacquenot/training-material
16b29962bf5683f97a1072d961dd9f31e7468b8d
[ "CC-BY-4.0" ]
56
2015-02-25T15:04:26.000Z
2022-01-03T07:42:48.000Z
Python/Interfacing_C_C++_Fortran/Pybind11/Stats/src/bindings/statistics_bind.cpp
Gjacquenot/training-material
16b29962bf5683f97a1072d961dd9f31e7468b8d
[ "CC-BY-4.0" ]
59
2015-11-26T11:44:51.000Z
2022-03-21T00:27:22.000Z
#include <pybind11/pybind11.h> #include <pybind11/numpy.h> #include <statistics.h> namespace py = pybind11; Statistics compute_stats(py::array_t<double> data) { Statistics stats; auto data_info = data.request(); ssize_t n = 1; for (const auto& size: data_info.shape) n *= size; for (ssize_t...
44.648649
91
0.635593
[ "object", "shape" ]
9fce98318117db48d56451cb939866c7891fe694
2,351
cpp
C++
uhk/acm5468.cpp
Hyyyyyyyyyy/acm
d7101755b2c2868d51bb056f094e024d0333b56f
[ "MIT" ]
null
null
null
uhk/acm5468.cpp
Hyyyyyyyyyy/acm
d7101755b2c2868d51bb056f094e024d0333b56f
[ "MIT" ]
null
null
null
uhk/acm5468.cpp
Hyyyyyyyyyy/acm
d7101755b2c2868d51bb056f094e024d0333b56f
[ "MIT" ]
null
null
null
#include <cstdio> #include <cstring> #include <algorithm> #include <cmath> #include <vector> using namespace std; typedef long long ll; const int INF = 2147483640; const int maxn = 100000; bool check[maxn + 10]; int prime[maxn + 10]; int mu[maxn + 10]; vector<int> factors[maxn + 10]; vector<int> G[maxn + 10]; void Mobl...
21.768519
51
0.374309
[ "vector" ]
9fd0d0f80353d4b0e7cc4d37f05c2140f01df776
2,827
cpp
C++
src/xtd.core/src/xtd/io/drive_info.cpp
BaderEddineOuaich/xtd
6f28634c7949a541d183879d2de18d824ec3c8b1
[ "MIT" ]
1
2022-02-25T16:53:06.000Z
2022-02-25T16:53:06.000Z
src/xtd.core/src/xtd/io/drive_info.cpp
leanid/xtd
2e1ea6537218788ca08901faf8915d4100990b53
[ "MIT" ]
null
null
null
src/xtd.core/src/xtd/io/drive_info.cpp
leanid/xtd
2e1ea6537218788ca08901faf8915d4100990b53
[ "MIT" ]
null
null
null
#include "../../../include/xtd/io/drive_info.h" #include "../../../include/xtd/io/io_exception.h" #include "../../../include/xtd/argument_exception.h" #define __XTD_CORE_NATIVE_LIBRARY__ #include <xtd/native/drive.h> #undef __XTD_CORE_NATIVE_LIBRARY__ using namespace std; using namespace xtd; using namespace io; cons...
36.24359
149
0.780686
[ "vector" ]
9fd834060d6ad27a8c1e999b61b953f688962294
417
cpp
C++
src/PauseState.cpp
mikaelmello/story-based-rpg
bc73c24ad0e41512c3e980ca3aad0fc5738af2f2
[ "Zlib" ]
null
null
null
src/PauseState.cpp
mikaelmello/story-based-rpg
bc73c24ad0e41512c3e980ca3aad0fc5738af2f2
[ "Zlib" ]
null
null
null
src/PauseState.cpp
mikaelmello/story-based-rpg
bc73c24ad0e41512c3e980ca3aad0fc5738af2f2
[ "Zlib" ]
null
null
null
#include "PauseState.hpp" PauseState::PauseState(){} PauseState::~PauseState() {} void PauseState::Update(float dt) { if (quitRequested || popRequested) { return; } UpdateArray(dt); } void PauseState::Start() { LoadAssets(); StartArray(); started = true; } void PauseState::Pause() {} void PauseSt...
14.892857
44
0.664269
[ "render" ]
9fde253c96a9c710790af49f3e2914fa01923788
640
cpp
C++
K Closest Points to Origin.cpp
Subhash3/Algorithms-For-Software-Developers
2e0ac4f51d379a2b10a40fca7fa82a8501d3db94
[ "BSD-2-Clause" ]
2
2021-10-01T04:20:04.000Z
2021-10-01T04:20:06.000Z
K Closest Points to Origin.cpp
Subhash3/Algorithms-For-Software-Developers
2e0ac4f51d379a2b10a40fca7fa82a8501d3db94
[ "BSD-2-Clause" ]
1
2021-10-01T18:00:09.000Z
2021-10-01T18:00:09.000Z
K Closest Points to Origin.cpp
Subhash3/Algorithms-For-Software-Developers
2e0ac4f51d379a2b10a40fca7fa82a8501d3db94
[ "BSD-2-Clause" ]
8
2021-10-01T04:20:38.000Z
2022-03-19T17:05:05.000Z
class Solution { public: vector<vector<int>> kClosest(vector<vector<int>>& points, int k) { vector<vector<int>> ans; if(points.size()==0)return ans; priority_queue<pair<int,pair<int,int>>> pq; for(int i=0;i<points.size();i++) { int dist=points[i][0]*points[i][0]+p...
29.090909
74
0.484375
[ "vector" ]
9fe38fadd25fa2cd6e6da8709be098ed3195fd5b
889
cpp
C++
coding-problems/questions/Length Summation/Length Summation.cpp
Avash027/software-engineering-interview-prep
e50ff19b0d3846e679d7c0af74ce2956999524cb
[ "MIT" ]
null
null
null
coding-problems/questions/Length Summation/Length Summation.cpp
Avash027/software-engineering-interview-prep
e50ff19b0d3846e679d7c0af74ce2956999524cb
[ "MIT" ]
null
null
null
coding-problems/questions/Length Summation/Length Summation.cpp
Avash027/software-engineering-interview-prep
e50ff19b0d3846e679d7c0af74ce2956999524cb
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; long long sum_of_good_segments(vector<long long> a , long long k , int n) { int left_boundary = 0 , right_boundary = 0; long long sum_of_segment = 0LL , sum_of_length_of_segments = 0; while (right_boundary < n) { sum_of_segment += a[right_boundary++]; while ...
16.773585
86
0.646794
[ "vector" ]
9fe6aec24a0cf90222895b6423da8256e33957cd
11,411
cpp
C++
moses/moses/SearchCubePruning.cpp
anshsarkar/TailBench
25845756aee9a892229c25b681051591c94daafd
[ "MIT" ]
3
2018-01-25T00:51:56.000Z
2022-01-07T15:09:38.000Z
moses/moses/SearchCubePruning.cpp
anshsarkar/TailBench
25845756aee9a892229c25b681051591c94daafd
[ "MIT" ]
1
2021-11-25T18:08:22.000Z
2021-11-25T18:08:22.000Z
moses/moses/SearchCubePruning.cpp
anshsarkar/TailBench
25845756aee9a892229c25b681051591c94daafd
[ "MIT" ]
3
2018-06-08T08:36:27.000Z
2021-12-26T20:36:16.000Z
#include "Manager.h" #include "Util.h" #include "SearchCubePruning.h" #include "StaticData.h" #include "InputType.h" #include "TranslationOptionCollection.h" using namespace std; namespace Moses { class BitmapContainerOrderer { public: bool operator()(const BitmapContainer* A, const BitmapContainer* B) const { ...
34.578788
128
0.703882
[ "vector" ]
9fe97b7b0016431596ca1de2476850a82ca1c881
2,621
cpp
C++
src/uarc_colld/src/SendScheduleSubsystem.cpp
timercrack/uarc
c9a840c9c4cc2c89dc4714781c9be67be59f8ac0
[ "Apache-2.0" ]
1
2016-09-04T23:53:45.000Z
2016-09-04T23:53:45.000Z
src/uarc_colld/src/SendScheduleSubsystem.cpp
timercrack/uarc
c9a840c9c4cc2c89dc4714781c9be67be59f8ac0
[ "Apache-2.0" ]
null
null
null
src/uarc_colld/src/SendScheduleSubsystem.cpp
timercrack/uarc
c9a840c9c4cc2c89dc4714781c9be67be59f8ac0
[ "Apache-2.0" ]
3
2016-02-22T07:57:46.000Z
2021-09-06T02:49:20.000Z
/* * SendScheduleSubsystem.cpp * * Created on: 2015-5-23 * Author: root */ #include "SendScheduleSubsystem.h" SendScheduleSubsystem::SendScheduleSubsystem(): _stopped(true), _thread(){ // TODO Auto-generated constructor stub } SendScheduleSubsystem::~SendScheduleSubsystem() { // TODO Auto-generated des...
24.045872
124
0.737123
[ "vector" ]
9feaf446e0088d1bcb129e8c2a05492e10b62a61
2,904
hpp
C++
Testbed/Tests/MotorJoint.hpp
minium2/Box2D
620af0b776a4773736233f0eb3cfdbb2bd84cf26
[ "Zlib" ]
23
2015-01-17T00:20:37.000Z
2020-05-24T07:45:43.000Z
Testbed/Tests/MotorJoint.hpp
minium2/Box2D
620af0b776a4773736233f0eb3cfdbb2bd84cf26
[ "Zlib" ]
null
null
null
Testbed/Tests/MotorJoint.hpp
minium2/Box2D
620af0b776a4773736233f0eb3cfdbb2bd84cf26
[ "Zlib" ]
14
2015-01-14T09:14:25.000Z
2022-02-10T17:27:14.000Z
/* * Copyright (c) 2006-2012 Erin Catto http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpos...
25.252174
77
0.65668
[ "shape" ]
b001dd3e203fecda1af3d93c68d0a447dd6e15d8
11,171
cpp
C++
src/mhd.cpp
matu3ba/simpaSRG
a38ef23973e15053414c7c8b4cdf61c09aa26bf1
[ "MIT" ]
1
2022-03-03T15:33:07.000Z
2022-03-03T15:33:07.000Z
src/mhd.cpp
matu3ba/simpaSRG
a38ef23973e15053414c7c8b4cdf61c09aa26bf1
[ "MIT" ]
null
null
null
src/mhd.cpp
matu3ba/simpaSRG
a38ef23973e15053414c7c8b4cdf61c09aa26bf1
[ "MIT" ]
null
null
null
//FILE mhd.cpp #include "mhd.h" #include <boost/algorithm/string.hpp> #include <iterator> //for copy iterator //ostream writes random ^M on carriage return, which invalidates up number conversion //C FILE API was used to read/write files due to this behavior std::ostream &operator << (std::ostream &os, const ST_Mhd...
39.473498
101
0.625369
[ "vector", "3d" ]
b005c0f903ab4014ce31e083dd8cbdf8f12a1506
14,061
hpp
C++
iOS/G3MiOSSDK/Commons/Rendererers/PlanetRenderer.hpp
restjohn/g3m
608657fd6f0e2898bd963d15136ff085b499e97e
[ "BSD-2-Clause" ]
null
null
null
iOS/G3MiOSSDK/Commons/Rendererers/PlanetRenderer.hpp
restjohn/g3m
608657fd6f0e2898bd963d15136ff085b499e97e
[ "BSD-2-Clause" ]
null
null
null
iOS/G3MiOSSDK/Commons/Rendererers/PlanetRenderer.hpp
restjohn/g3m
608657fd6f0e2898bd963d15136ff085b499e97e
[ "BSD-2-Clause" ]
null
null
null
// // PlanetRenderer.hpp // G3MiOSSDK // // Created by Agustin Trujillo Pino on 12/06/12. // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // #ifndef G3MiOSSDK_PlanetRenderer #define G3MiOSSDK_PlanetRenderer class Tile; class TileTessellator; class LayerSet; class VisibleSectorListenerEntry; class Vi...
29.539916
278
0.681815
[ "render", "vector" ]
b008fa21067058c6c0f6810d94233d966f88d5de
8,246
cpp
C++
HookDll/Hook/InventorySack_AddItem.cpp
MartinRohrbach/iagd
f6aa8880b82eab575544b66cd2a9b2a5160683c9
[ "MIT" ]
null
null
null
HookDll/Hook/InventorySack_AddItem.cpp
MartinRohrbach/iagd
f6aa8880b82eab575544b66cd2a9b2a5160683c9
[ "MIT" ]
null
null
null
HookDll/Hook/InventorySack_AddItem.cpp
MartinRohrbach/iagd
f6aa8880b82eab575544b66cd2a9b2a5160683c9
[ "MIT" ]
null
null
null
#include "stdafx.h" #include <set> #include <stdio.h> #include <stdlib.h> #include "MessageType.h" #include <detours.h> #include "InventorySack_AddItem.h" #include "Exports.h" #define STASH_1 0 #define STASH_2 1 #define STASH_3 2 #define STASH_4 3 #define STASH_5 4 #define STASH_PRIVATE 1000 HANDLE InventorySack_AddI...
36.977578
131
0.809362
[ "object" ]
b00fcffea670094e92479b26fa5b1f0067724394
1,119
cpp
C++
ccpca/cpca_wrap.cpp
takanori-fujiwara/ccpca
e2a2f57ca5d9ada00bf91892f7f5c4fa570d6110
[ "BSD-3-Clause" ]
14
2019-07-16T03:29:29.000Z
2022-02-19T14:59:11.000Z
ccpca/cpca_wrap.cpp
takanori-fujiwara/ccpca
e2a2f57ca5d9ada00bf91892f7f5c4fa570d6110
[ "BSD-3-Clause" ]
null
null
null
ccpca/cpca_wrap.cpp
takanori-fujiwara/ccpca
e2a2f57ca5d9ada00bf91892f7f5c4fa570d6110
[ "BSD-3-Clause" ]
7
2019-07-16T03:35:58.000Z
2022-01-30T05:41:07.000Z
#include "cpca.hpp" #include <pybind11/eigen.h> #include <pybind11/functional.h> #include <pybind11/pybind11.h> #include <pybind11/stl.h> namespace py = pybind11; PYBIND11_MODULE(cpca_cpp, m) { m.doc() = "cPCA wrapped with pybind11"; py::class_<CPCA>(m, "CPCA") .def(py::init<Eigen::Index const, bool const>...
34.96875
56
0.647006
[ "transform" ]
b0117278bc5834e2bb1fb01ab4b51ca94df2cd16
3,546
hpp
C++
libs/ml/include/ml/ops/divide.hpp
ejfitzgerald/ledger
01d1802220329aa348daaf4abfd502c6cc0d9f44
[ "Apache-2.0" ]
null
null
null
libs/ml/include/ml/ops/divide.hpp
ejfitzgerald/ledger
01d1802220329aa348daaf4abfd502c6cc0d9f44
[ "Apache-2.0" ]
null
null
null
libs/ml/include/ml/ops/divide.hpp
ejfitzgerald/ledger
01d1802220329aa348daaf4abfd502c6cc0d9f44
[ "Apache-2.0" ]
2
2019-11-13T10:55:24.000Z
2019-11-13T11:37:09.000Z
#pragma once //------------------------------------------------------------------------------ // // Copyright 2018-2019 Fetch.AI Limited // // 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 Licen...
29.55
94
0.573886
[ "shape", "vector" ]
b015a5ae5bc1fa09506772a66e375a7ae4a6ca7e
3,871
cpp
C++
application/src/UISystem.cpp
ChaosPaladin/l2mapconv-public
3d2c8074b0e6a9541dfdc55360bc7958f628cc39
[ "MIT" ]
42
2020-10-31T12:44:52.000Z
2022-03-06T08:27:24.000Z
application/src/UISystem.cpp
ChaosPaladin/l2mapconv-public
3d2c8074b0e6a9541dfdc55360bc7958f628cc39
[ "MIT" ]
10
2020-11-19T00:06:24.000Z
2021-12-20T18:54:47.000Z
application/src/UISystem.cpp
ChaosPaladin/l2mapconv-public
3d2c8074b0e6a9541dfdc55360bc7958f628cc39
[ "MIT" ]
28
2020-09-21T12:59:13.000Z
2022-03-12T04:53:37.000Z
#include "pch.h" #include "UISystem.h" UISystem::UISystem(UIContext &ui_context, WindowContext &window_context, RenderingContext &rendering_context) : m_ui_context{ui_context}, m_window_context{window_context}, m_rendering_context{rendering_context} { ASSERT(m_window_context.window_han...
33.95614
80
0.734694
[ "render" ]
b021890427ae0531fa77759b7d56c715bfca8124
2,222
cpp
C++
src/main.cpp
sstsai/llell
7722e1460964fb008406d480fde017a66b1f387d
[ "BSL-1.0" ]
null
null
null
src/main.cpp
sstsai/llell
7722e1460964fb008406d480fde017a66b1f387d
[ "BSL-1.0" ]
null
null
null
src/main.cpp
sstsai/llell
7722e1460964fb008406d480fde017a66b1f387d
[ "BSL-1.0" ]
null
null
null
#include "filedialog.h" #include "image.h" #include "imgui_.h" #include "glfw.h" #include "opengl.h" #include "co.h" #include <glbinding/glbinding.h> int main(int, char *av[]) { auto main_win = glfw::make_window(1280, 720, "Main", nullptr, nullptr, glfw::attrib::context_versio...
40.4
80
0.489199
[ "render" ]
b026a11247ad6ed5148d431dcae71b308a2d210f
2,047
cpp
C++
src/poe/searchmanager.cpp
azais-corentin/StillSane
5cafa1aad4964d042879ee14d80ddef71bd9f8e4
[ "MIT" ]
1
2022-03-15T18:07:37.000Z
2022-03-15T18:07:37.000Z
src/poe/searchmanager.cpp
azais-corentin/StillSane
5cafa1aad4964d042879ee14d80ddef71bd9f8e4
[ "MIT" ]
null
null
null
src/poe/searchmanager.cpp
azais-corentin/StillSane
5cafa1aad4964d042879ee14d80ddef71bd9f8e4
[ "MIT" ]
1
2022-03-20T16:09:28.000Z
2022-03-20T16:09:28.000Z
#include "searchmanager.hh" #include "api/constants.hh" #include "api/trade.hh" namespace StillSane::Poe { SearchManager::SearchManager(QObject* parent) : QObject(parent) {} SearchManager::~SearchManager() { qDeleteAll(mTradeApis); } void SearchManager::setCookies(const QString& POESESSID) { mPOESESSID = POESE...
25.271605
84
0.629702
[ "vector" ]
b033b5abc1e2fc848e4e3ef006916fa9d7d29eb5
617
hpp
C++
include/bencode/decoder/decoder.hpp
vt4a2h/bencode
fbca367d38dfc291fc1f55eae54b08fb574a5107
[ "MIT" ]
2
2022-01-04T20:22:20.000Z
2022-01-05T07:40:19.000Z
include/bencode/decoder/decoder.hpp
vt4a2h/bencode
fbca367d38dfc291fc1f55eae54b08fb574a5107
[ "MIT" ]
null
null
null
include/bencode/decoder/decoder.hpp
vt4a2h/bencode
fbca367d38dfc291fc1f55eae54b08fb574a5107
[ "MIT" ]
null
null
null
// // MIT License // // Copyright (c) 2022-present Vitaly Fanaskov // // bencode -- A simple library for decoding bencoded data // Project home: https://github.com/vt4a2h/bencode // // See LICENSE file for the further details. // #pragma once #include <bencode/element/element.hpp> #include <bencode/result/expected.hpp...
24.68
74
0.724473
[ "object", "vector" ]
b041c2190ffc2351c6ec9ffaca87354cfba35730
5,222
cpp
C++
test/src/Digest_00.cpp
ahfakt/StreamSecurity
65af4565489ea5f5e8b382c3b55dd7f22988d866
[ "MIT" ]
null
null
null
test/src/Digest_00.cpp
ahfakt/StreamSecurity
65af4565489ea5f5e8b382c3b55dd7f22988d866
[ "MIT" ]
null
null
null
test/src/Digest_00.cpp
ahfakt/StreamSecurity
65af4565489ea5f5e8b382c3b55dd7f22988d866
[ "MIT" ]
null
null
null
#include <cassert> #include <Stream/File.h> #include <Stream/Buffer.h> #include <StreamSecurity/Digest.h> #include <openssl/rand.h> #include <openssl/err.h> #include "Util.h" #define Expect1(x) if (1 != x) throw std::runtime_error(ERR_error_string(ERR_peek_last_error(), nullptr)) std::vector<std::byte> testOutputHash...
36.774648
127
0.750862
[ "vector" ]
b047b1f86af2a6ab2583a6a443d0edc11a4b0d71
1,403
cpp
C++
src/signedDistance.cpp
AntonKrug/raymarcher
dd51fd9181e9430525c96bade1444347a6c37902
[ "MIT" ]
null
null
null
src/signedDistance.cpp
AntonKrug/raymarcher
dd51fd9181e9430525c96bade1444347a6c37902
[ "MIT" ]
null
null
null
src/signedDistance.cpp
AntonKrug/raymarcher
dd51fd9181e9430525c96bade1444347a6c37902
[ "MIT" ]
null
null
null
// // Created by anton.krug@gmail.com on 27/12/21. // License: MIT // #include "signedDistance.h" namespace signedDistance { float box(vector point, vector size) { vector distance = point.abs() - size; float externalDistance = distance.max(0.0f).length(); float internalDistance = helper::minf(0....
29.229167
117
0.642195
[ "vector" ]
b0487559ab5216a2da562918309c13b7d18c44d2
15,236
cpp
C++
Source/Editor/Editor.tests.cpp
JPMMaia/H
c99b03e38b3d7ef1f9c048e13cf9156a5697ad7b
[ "MIT" ]
null
null
null
Source/Editor/Editor.tests.cpp
JPMMaia/H
c99b03e38b3d7ef1f9c048e13cf9156a5697ad7b
[ "MIT" ]
null
null
null
Source/Editor/Editor.tests.cpp
JPMMaia/H
c99b03e38b3d7ef1f9c048e13cf9156a5697ad7b
[ "MIT" ]
null
null
null
#define CATCH_CONFIG_MAIN #define CATCH_CONFIG_ENABLE_ALL_STRINGMAKERS #include <catch2/catch.hpp> import h.core; import h.editor; namespace h::editor { TEST_CASE("Create code format segment") { Code_format_segment const format_segment = create_code_format_segment("${return_type} ${function_name}(${fu...
31.414433
149
0.530454
[ "vector" ]
b04ae2566f205b6680008c4474edafc6a5402c82
1,608
cpp
C++
core/test/lib/libledger-test/MemPreferencesBackend.cpp
Manny27nyc/lib-ledger-core
fc9d762b83fc2b269d072b662065747a64ab2816
[ "MIT" ]
92
2016-11-13T01:28:34.000Z
2022-03-25T01:11:37.000Z
core/test/lib/libledger-test/MemPreferencesBackend.cpp
Manny27nyc/lib-ledger-core
fc9d762b83fc2b269d072b662065747a64ab2816
[ "MIT" ]
242
2016-11-28T11:13:09.000Z
2022-03-04T13:02:53.000Z
core/test/lib/libledger-test/MemPreferencesBackend.cpp
Manny27nyc/lib-ledger-core
fc9d762b83fc2b269d072b662065747a64ab2816
[ "MIT" ]
91
2017-06-20T10:35:28.000Z
2022-03-09T14:15:40.000Z
#include <MemPreferencesBackend.hpp> #include "utils/optional.hpp" namespace ledger { namespace core { namespace test { MemPreferencesBackend::~MemPreferencesBackend() {} std::experimental::optional<std::vector<uint8_t>> MemPreferencesBackend::get(const std::vector<uint8_...
29.777778
179
0.501866
[ "vector" ]
b04fd42c0954a1143c7e822d2e059ff4a2d503d9
2,440
cc
C++
test/run_tests.cc
t-dillon/tdoku
1668b02258c58b0647713d78e09a8ab101e13bd1
[ "BSD-2-Clause" ]
100
2019-07-01T20:16:33.000Z
2022-03-27T10:36:48.000Z
test/run_tests.cc
doc22940/tdoku
63d190a9090d9dc8e613e48e4770c635a5b7e3c3
[ "BSD-2-Clause" ]
7
2019-12-18T09:07:58.000Z
2022-03-13T19:39:46.000Z
test/run_tests.cc
doc22940/tdoku
63d190a9090d9dc8e613e48e4770c635a5b7e3c3
[ "BSD-2-Clause" ]
14
2019-06-18T05:47:28.000Z
2022-03-05T08:58:05.000Z
#include "../src/all_solvers.h" #include "../src/bitutil.h" #include <chrono> #include <cstdlib> #include <cstring> #include <fstream> #include <iostream> #include <memory> #include <sstream> #include <vector> using namespace std; void Run(const string &testdata_filename, const Solver &solver, bool verbose) { if...
31.282051
81
0.504918
[ "vector" ]
b053897c167b135a91ee1a05d9b775920df1341c
1,056
cpp
C++
src/value.cpp
akhleung/vole
358bd7a84d245e89b3ae47d369c19b3fff2f8a75
[ "MIT" ]
null
null
null
src/value.cpp
akhleung/vole
358bd7a84d245e89b3ae47d369c19b3fff2f8a75
[ "MIT" ]
null
null
null
src/value.cpp
akhleung/vole
358bd7a84d245e89b3ae47d369c19b3fff2f8a75
[ "MIT" ]
null
null
null
#include "value.hpp" namespace Vole { Value::Content::Content() { } Value::Content::Content(bool b) : boolean(b) { } Value::Content::Content(double d) : number(d) { } Value::Content::Content(Symbol s) : symbol(s) { } Value::Content::Content(String s) : string(s) { } ...
39.111111
59
0.5625
[ "vector" ]
b063aee643b7cceda304761e0d0ed035ef0c25e5
33,510
cpp
C++
sources/Service/TexServiceImplementation.cpp
palchukovsky/TunnelEx
ec645271ab8b79225e378345ff108795110c57de
[ "Apache-2.0" ]
null
null
null
sources/Service/TexServiceImplementation.cpp
palchukovsky/TunnelEx
ec645271ab8b79225e378345ff108795110c57de
[ "Apache-2.0" ]
null
null
null
sources/Service/TexServiceImplementation.cpp
palchukovsky/TunnelEx
ec645271ab8b79225e378345ff108795110c57de
[ "Apache-2.0" ]
null
null
null
/************************************************************************** * Created: 2008/02/17 5:31 * Author: Eugene V. Palchukovsky * E-mail: eugene@palchukovsky.com * ------------------------------------------------------------------- * Project: TunnelEx * URL: http://tunnelex.net **********...
31.763033
132
0.682751
[ "vector" ]
b06a4d32abeec83e6a7b87d108570a6cc417bbec
2,887
cpp
C++
source/globjects/source/ProgramPipeline.cpp
citron0xa9/globjects
53a1de45f3c177fbd805610f274d3ffb1b97843a
[ "MIT" ]
null
null
null
source/globjects/source/ProgramPipeline.cpp
citron0xa9/globjects
53a1de45f3c177fbd805610f274d3ffb1b97843a
[ "MIT" ]
null
null
null
source/globjects/source/ProgramPipeline.cpp
citron0xa9/globjects
53a1de45f3c177fbd805610f274d3ffb1b97843a
[ "MIT" ]
2
2020-10-01T04:10:51.000Z
2021-07-01T07:45:45.000Z
#include <globjects/ProgramPipeline.h> #include <glbinding/gl/enum.h> #include <glbinding/gl/boolean.h> #include <glbinding/gl/functions.h> #include <globjects/Program.h> #include <globjects/ObjectVisitor.h> #include <globjects/Resource.h> namespace globjects { ProgramPipeline::ProgramPipeline() : Object(std::u...
18.272152
82
0.659508
[ "object", "vector" ]
b07950755c76329d5380ea86a0d895470f229a19
970
cpp
C++
LCA.cpp
imran123509/graph-concept-
4fde73cc4ac41f5b3b639b5204627618e85a3016
[ "MIT" ]
null
null
null
LCA.cpp
imran123509/graph-concept-
4fde73cc4ac41f5b3b639b5204627618e85a3016
[ "MIT" ]
null
null
null
LCA.cpp
imran123509/graph-concept-
4fde73cc4ac41f5b3b639b5204627618e85a3016
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; const int N=1e5+5; //lowest common ancestor vector<int> graph[N]; int parent[N]; // storing the parent of all node void dfs(int vertex, int par=-1){ parent[vertex]=par; for(int child : graph[vertex]){ if(child==par) continue; dfs(child, vertex); } } // storing the pat...
14.477612
48
0.597938
[ "vector" ]
b0842cc27c7b7cf75ea0f51e7b0efc4d59acd67a
1,194
cpp
C++
binarysearch.io/easy/Sorting-Mail.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
18
2020-08-27T05:27:50.000Z
2022-03-08T02:56:48.000Z
binarysearch.io/easy/Sorting-Mail.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
null
null
null
binarysearch.io/easy/Sorting-Mail.cpp
wingkwong/competitive-programming
e8bf7aa32e87b3a020b63acac20e740728764649
[ "MIT" ]
1
2020-10-13T05:23:58.000Z
2020-10-13T05:23:58.000Z
/* Sorting Mail https://binarysearch.io/problems/Sorting-Mail You are given a list of mailboxes. Each mailbox is a list of strings, where each string is either "junk", "personal", "work". Go through each mailbox in round robin order starting from the first one, filtering out junk, to form a single pile and return the ...
26.533333
262
0.599665
[ "vector" ]
b086fd1679108d2b144f8b97244f2eb989c9b382
3,660
cpp
C++
src/LuaState.cpp
guwere/luapath
d782070ec8f04eef9161baeb2db9f5dcc87a008b
[ "MIT" ]
3
2015-08-05T00:00:11.000Z
2016-06-30T08:35:12.000Z
src/LuaState.cpp
guwere/luapath
d782070ec8f04eef9161baeb2db9f5dcc87a008b
[ "MIT" ]
null
null
null
src/LuaState.cpp
guwere/luapath
d782070ec8f04eef9161baeb2db9f5dcc87a008b
[ "MIT" ]
null
null
null
#include <iomanip> #include "luapath/LuaState.hpp" #include "luapath/LuaTypes.hpp" #include "luapath/exceptions.hpp" #include <lua.hpp> using std::cout; using std::endl; using std::setw; using std::string; namespace luapath{ LuaState::LuaState() :m_L(luaL_newstate()), loaded(false) { } LuaState::~LuaState() {...
21.529412
138
0.698361
[ "object" ]
b08c0100270b982a4b65a7e84c7e1c9bac8fe402
32,043
hpp
C++
src/stan/variational/advi.hpp
stephensrmmartin/stan
e95c7bc9814792204ae8d900a1b47dfd17d88c0b
[ "CC-BY-3.0", "BSD-3-Clause" ]
null
null
null
src/stan/variational/advi.hpp
stephensrmmartin/stan
e95c7bc9814792204ae8d900a1b47dfd17d88c0b
[ "CC-BY-3.0", "BSD-3-Clause" ]
null
null
null
src/stan/variational/advi.hpp
stephensrmmartin/stan
e95c7bc9814792204ae8d900a1b47dfd17d88c0b
[ "CC-BY-3.0", "BSD-3-Clause" ]
null
null
null
#ifndef STAN_VARIATIONAL_ADVI_HPP #define STAN_VARIATIONAL_ADVI_HPP #include <stan/math.hpp> #include <stan/analyze/mcmc/autocovariance.hpp> #include <stan/analyze/mcmc/compute_effective_sample_size.hpp> #include <stan/analyze/mcmc/compute_potential_scale_reduction.hpp> #include <stan/analyze/mcmc/estimate_gpd_params....
39.461823
123
0.633461
[ "object", "vector", "model" ]
b08ed886982d9928557035449b9ef6113bf9296f
2,803
hpp
C++
OcularCore/include/Scene/SceneLoader/SceneObjectLoader.hpp
ssell/OcularEngine
c80cc4fcdb7dd7ce48d3af330bd33d05312076b1
[ "Apache-2.0" ]
8
2017-01-27T01:06:06.000Z
2020-11-05T20:23:19.000Z
OcularCore/include/Scene/SceneLoader/SceneObjectLoader.hpp
ssell/OcularEngine
c80cc4fcdb7dd7ce48d3af330bd33d05312076b1
[ "Apache-2.0" ]
39
2016-06-03T02:00:36.000Z
2017-03-19T17:47:39.000Z
OcularCore/include/Scene/SceneLoader/SceneObjectLoader.hpp
ssell/OcularEngine
c80cc4fcdb7dd7ce48d3af330bd33d05312076b1
[ "Apache-2.0" ]
4
2019-05-22T09:13:36.000Z
2020-12-01T03:17:45.000Z
/** * Copyright 2014-2017 Steven T Sell (ssell@vertexfragment.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 requir...
30.802198
114
0.570817
[ "object" ]
b09db865bd60c394e525aa77ada91750c6931d54
2,131
cc
C++
xdl/ps-plus/ps-plus/common/file_system/none_file_system.cc
Ru-Xiang/x-deeplearning
04cc0497150920c64b06bb8c314ef89977a3427a
[ "Apache-2.0" ]
4,071
2018-12-13T04:17:38.000Z
2022-03-30T03:29:35.000Z
xdl/ps-plus/ps-plus/common/file_system/none_file_system.cc
laozhuang727/x-deeplearning
781545783a4e2bbbda48fc64318fb2c6d8bbb3cc
[ "Apache-2.0" ]
359
2018-12-21T01:14:57.000Z
2022-02-15T07:18:02.000Z
xdl/ps-plus/ps-plus/common/file_system/none_file_system.cc
laozhuang727/x-deeplearning
781545783a4e2bbbda48fc64318fb2c6d8bbb3cc
[ "Apache-2.0" ]
1,054
2018-12-20T09:57:42.000Z
2022-03-29T07:16:53.000Z
/* Copyright (C) 2016-2018 Alibaba Group Holding Limited 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 ...
28.039474
111
0.68184
[ "vector" ]
b0ab8fbf8140634bbcf4dddae8ff8af985216cc9
3,274
cpp
C++
src/base/src/shapes.cpp
N4G170/generic
29c8be184b1420b811e2a3db087f9bd6b76ed8bf
[ "MIT" ]
null
null
null
src/base/src/shapes.cpp
N4G170/generic
29c8be184b1420b811e2a3db087f9bd6b76ed8bf
[ "MIT" ]
null
null
null
src/base/src/shapes.cpp
N4G170/generic
29c8be184b1420b811e2a3db087f9bd6b76ed8bf
[ "MIT" ]
null
null
null
#include "shapes.hpp" #include "SDL.h" void DrawCircunference(SDL_Renderer* renderer, int centre_x, int centre_y, int radius, SDL_Colour colour) { SDL_SetRenderDrawColor( renderer, colour.r, colour.g, colour.b, colour.a ); //draw circunference int cos45 = static_cast<int>(SquareRoot(2)/2 * radius); in...
36.786517
129
0.63653
[ "render", "vector" ]
b0b9fd67d63bbb9d001d0a81b9b02343c2fb9bd5
1,037
cpp
C++
src/AdventOfCode2017/Day05-MazeOfTrampolines/Day05-MazeOfTrampolines.cpp
dbartok/advent-of-code-cpp
c8c2df7a21980f8f3e42128f7bc5df8288f18490
[ "MIT" ]
null
null
null
src/AdventOfCode2017/Day05-MazeOfTrampolines/Day05-MazeOfTrampolines.cpp
dbartok/advent-of-code-cpp
c8c2df7a21980f8f3e42128f7bc5df8288f18490
[ "MIT" ]
null
null
null
src/AdventOfCode2017/Day05-MazeOfTrampolines/Day05-MazeOfTrampolines.cpp
dbartok/advent-of-code-cpp
c8c2df7a21980f8f3e42128f7bc5df8288f18490
[ "MIT" ]
null
null
null
#include "Day05-MazeOfTrampolines.h" #include <AdventOfCodeCommon/DisableLibraryWarningsMacros.h> __BEGIN_LIBRARIES_DISABLE_WARNINGS #include <functional> __END_LIBRARIES_DISABLE_WARNINGS namespace AdventOfCode { namespace Year2017 { namespace Day05 { unsigned stepsWithInstructionModifierFunc(std::vector<int> instr...
23.044444
112
0.726133
[ "vector" ]
b0c1ee02491661a78abf8812447d0df9bd0d16fc
3,210
hpp
C++
include/aluminum/utils/locked_resource_pool.hpp
shjwudp/Aluminum
046c209adc160522ee557ad5022fe372b738d38a
[ "Apache-2.0" ]
48
2018-09-28T22:09:25.000Z
2021-11-18T05:24:53.000Z
include/aluminum/utils/locked_resource_pool.hpp
PrisdxMeany/Aluminum
49dbbde15ea2202eb0fe246da73ccf39df59e2e2
[ "Apache-2.0" ]
51
2018-09-26T21:03:50.000Z
2021-11-12T18:21:12.000Z
include/aluminum/utils/locked_resource_pool.hpp
PrisdxMeany/Aluminum
49dbbde15ea2202eb0fe246da73ccf39df59e2e2
[ "Apache-2.0" ]
19
2018-09-14T23:01:53.000Z
2021-08-12T04:13:18.000Z
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2018, Lawrence Livermore National Security, LLC. Produced at the // Lawrence Livermore National Laboratory in collaboration with University of // Illinois Urbana-Champaign. // // Written by the LBANN Research Team (N. Dry...
30
82
0.663863
[ "vector" ]
37d4877c6264b109f4e625cd61be57cad7cc6da3
60,487
cxx
C++
inetsrv/iis/iisrearc/iisplus/ulw3/isapi_handler.cxx
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
inetsrv/iis/iisrearc/iisplus/ulw3/isapi_handler.cxx
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
inetsrv/iis/iisrearc/iisplus/ulw3/isapi_handler.cxx
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
/*++ Copyright (c) 1999 Microsoft Corporation Module Name : isapi_handler.cxx Abstract: Handle ISAPI extension requests Author: Taylor Weiss (TaylorW) 27-Jan-2000 Environment: Win32 - User Mode Project: ULW3.DLL --*/ #include ...
24.321271
102
0.539008
[ "object" ]
37d8d3d9d5febd518ac9c9d7674f9e7aaed846e4
3,525
hpp
C++
firmware/src/PeripheralDrivers/CanIO.hpp
sprenger120/remote_control_device
c375ab12683c10fd2918ea8345bcb06a5d78b978
[ "MIT" ]
1
2021-01-27T12:23:43.000Z
2021-01-27T12:23:43.000Z
firmware/src/PeripheralDrivers/CanIO.hpp
sprenger120/remote_control_device
c375ab12683c10fd2918ea8345bcb06a5d78b978
[ "MIT" ]
null
null
null
firmware/src/PeripheralDrivers/CanIO.hpp
sprenger120/remote_control_device
c375ab12683c10fd2918ea8345bcb06a5d78b978
[ "MIT" ]
null
null
null
#pragma once #include "Wrapper/Task.hpp" #include <queue.h> extern "C" { #include <canfestival/can.h> } #include <stm32f3xx_hal.h> /** * @brief Processes incoming and outgoing data from the can perihperal * Dispatches data to canfestival stack * */ namespace remote_control_device { class Logging; class Canopen;...
26.503759
100
0.666099
[ "object" ]
37def5788989ed3a672bf8fecf06a3eb5cebbca2
861
cpp
C++
Miscellaneous/InterviewBit/Array/SetZeroes.cpp
chirag-singhal/-Data-Structures-and-Algorithms
9f01b5cc0f382ed59bcd74444a0be1c3aa6cd1a3
[ "MIT" ]
24
2021-02-09T17:59:54.000Z
2022-03-11T07:30:38.000Z
Miscellaneous/InterviewBit/Array/SetZeroes.cpp
chirag-singhal/-Data-Structures-and-Algorithms
9f01b5cc0f382ed59bcd74444a0be1c3aa6cd1a3
[ "MIT" ]
null
null
null
Miscellaneous/InterviewBit/Array/SetZeroes.cpp
chirag-singhal/-Data-Structures-and-Algorithms
9f01b5cc0f382ed59bcd74444a0be1c3aa6cd1a3
[ "MIT" ]
3
2021-06-22T03:09:49.000Z
2022-03-09T18:25:14.000Z
#include <bits/stdc++.h> void setZeroes(std::vector<std::vector<int> > &A) { // Do not write main() function. // Do not read input, instead use the arguments to the function. // Do not print the output, instead return values as specified // Still have a doubt. Checkout www.interviewbit.com/pages/sample...
28.7
93
0.440186
[ "vector" ]
37e4aa8018b9ab79298504891ff52da55f3813a0
14,798
cpp
C++
Final/Navigation.cpp
pts211/CS4096
6156d567ccdac9e422bb5f476093323f32f73ed8
[ "Apache-2.0" ]
2
2018-07-08T08:36:50.000Z
2021-03-10T08:38:06.000Z
Navigation/Navigation.cpp
pts211/CS4096
6156d567ccdac9e422bb5f476093323f32f73ed8
[ "Apache-2.0" ]
null
null
null
Navigation/Navigation.cpp
pts211/CS4096
6156d567ccdac9e422bb5f476093323f32f73ed8
[ "Apache-2.0" ]
null
null
null
#include "Navigation.h" #include <fstream> #include <queue> #include <math.h> // #include <iostream> // #include <string> // #include <cstring> // #include <dirent.h> using namespace std; double Node::DNE = 1000000.0; double Node::LARGE_NUM = 1000.0; // const int edge = 80; // const int red = 110; // const int green ...
25.602076
119
0.567104
[ "vector" ]
37e4bf50ecb182ec9d75319ec50931c90c0ee9f0
5,680
cxx
C++
hxisgd/tasks/hxisgdsff/.doInstrum.cxx
honsys/legacy
c8662e0df68e8169ec6550d1c0c11f3cdc8bfda8
[ "MIT" ]
null
null
null
hxisgd/tasks/hxisgdsff/.doInstrum.cxx
honsys/legacy
c8662e0df68e8169ec6550d1c0c11f3cdc8bfda8
[ "MIT" ]
null
null
null
hxisgd/tasks/hxisgdsff/.doInstrum.cxx
honsys/legacy
c8662e0df68e8169ec6550d1c0c11f3cdc8bfda8
[ "MIT" ]
null
null
null
#if !defined(DOINSTRUM_C) #define DOINSTRUM_C /** \file Implementaion of the doWork function for the Astro-H FITS b-table 'blob slicer' to help process First Fits Files. This derives from James Peachey's "ahdemo" Build 0.0 example. \author David B. Hon \date Feb-Mar-Apr 2012 */ /// all in...
32.457143
151
0.632746
[ "vector" ]
37ecaab7b1404cc3bc9e848b5d37032a5d0e501a
1,607
hpp
C++
include/x86/codegen.hpp
martinogden/mer
33b4b39b1604ce0708b0d3d1c809b95683a2f4cb
[ "Unlicense" ]
2
2019-11-17T22:54:16.000Z
2020-08-07T20:53:25.000Z
include/x86/codegen.hpp
martinogden/mer
33b4b39b1604ce0708b0d3d1c809b95683a2f4cb
[ "Unlicense" ]
null
null
null
include/x86/codegen.hpp
martinogden/mer
33b4b39b1604ce0708b0d3d1c809b95683a2f4cb
[ "Unlicense" ]
null
null
null
#pragma once #include <string> #include <vector> #include "generator.hpp" #include "inst/inst.hpp" #include "regalloc/regalloc.hpp" #include "x86/asm.hpp" #include "set.hpp" // Emit MACH-O x86-64 asm for OS X class X86CodeGen { private: std::vector<Reg> callee_saved_regs; std::vector<Reg> caller_saved_regs; uint n...
30.903846
101
0.738643
[ "vector" ]
37ed1eccfe6d4129747eb225ccb3ea8123ae62b0
9,009
cpp
C++
src/linux_parser.cpp
freire-l/CppND-System-Monitor
921032fca54f2742be9c92d5113ecbbe1c173d0c
[ "MIT" ]
null
null
null
src/linux_parser.cpp
freire-l/CppND-System-Monitor
921032fca54f2742be9c92d5113ecbbe1c173d0c
[ "MIT" ]
null
null
null
src/linux_parser.cpp
freire-l/CppND-System-Monitor
921032fca54f2742be9c92d5113ecbbe1c173d0c
[ "MIT" ]
null
null
null
#include <dirent.h> #include <unistd.h> #include <sstream> #include <string> #include <vector> #include <unordered_map> #include <iostream> #include "linux_parser.h" using std::stof; using std::string; using std::to_string; using std::vector; string LinuxParser::str_check(string my_string){ if(my_string!="") r...
27.805556
178
0.634699
[ "vector" ]
37eee36b876688e6a5537b83a1c5fa01cf7a637b
10,962
cpp
C++
Flux++/src/xcb_renderer.cpp
Glinrens-corner/Fluxpp
ea64b56d2922a0ab2a946c6a75ceb5633c5ec943
[ "MIT" ]
2
2021-03-25T05:50:17.000Z
2021-04-06T12:53:18.000Z
Flux++/src/xcb_renderer.cpp
Glinrens-corner/Fluxpp
ea64b56d2922a0ab2a946c6a75ceb5633c5ec943
[ "MIT" ]
1
2021-03-09T00:03:56.000Z
2021-03-09T00:03:56.000Z
Flux++/src/xcb_renderer.cpp
Glinrens-corner/Fluxpp
ea64b56d2922a0ab2a946c6a75ceb5633c5ec943
[ "MIT" ]
1
2021-04-05T13:10:55.000Z
2021-04-05T13:10:55.000Z
#include "backend/xcb_renderer.hpp" #include <xcb/render.h> #include <xcb/xcb_image.h> #include <hb.h> #include <hb-ft.h> #include <thread> #include <stdexcept> #include <chrono> #include <cassert> #include <fstream> #include <iostream> #include <algorithm> #include <stack> #include "widget.hpp" #include "gui_event.hp...
28.472727
125
0.672231
[ "render", "vector" ]
37f2cd09293f55c1546a2f556e8c96afff572f38
568
cc
C++
test/sample/traits.cc
czfshine/NSTL-1
5395a2bb4a4ecbfd6929c1f05bfa8f7fe2ab848e
[ "MIT" ]
1
2017-10-20T16:46:47.000Z
2017-10-20T16:46:47.000Z
test/sample/traits.cc
czfshine/NSTL-1
5395a2bb4a4ecbfd6929c1f05bfa8f7fe2ab848e
[ "MIT" ]
null
null
null
test/sample/traits.cc
czfshine/NSTL-1
5395a2bb4a4ecbfd6929c1f05bfa8f7fe2ab848e
[ "MIT" ]
1
2018-04-08T12:41:45.000Z
2018-04-08T12:41:45.000Z
// // Created by czfshine on 2017/10/20. // #include "gtest/gtest.h" #include <vector> #include "nstl_type_traits.h" namespace { /** * 编写一个函数,接受一个vector对象,返回一个指针,指向vector的第三个元素,没有就为NULL * @return */ template <class T > typename NSTLSPACE::iterator_traits<typename T::iterator>::value_type ...
20.285714
87
0.544014
[ "vector" ]
37f8ad751989d7d7dc5900d45c2e0c748e0963cf
2,349
hpp
C++
src/tl.hpp
yurivict/oink
c1259fea042a6bfc76d0506a88384d4e93d651b4
[ "Apache-2.0" ]
null
null
null
src/tl.hpp
yurivict/oink
c1259fea042a6bfc76d0506a88384d4e93d651b4
[ "Apache-2.0" ]
null
null
null
src/tl.hpp
yurivict/oink
c1259fea042a6bfc76d0506a88384d4e93d651b4
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2020 Tom van Dijk * * 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...
29
75
0.675181
[ "vector" ]
37fd68b4b69caa0eebd2ee54f27da64e1c3c4530
5,586
cpp
C++
src/fd-half/src/example-asym-series-calculate.cpp
semenak94/OpenFFD
60ceedc803acb56f63b7da166233e1d0c64037ac
[ "MIT" ]
null
null
null
src/fd-half/src/example-asym-series-calculate.cpp
semenak94/OpenFFD
60ceedc803acb56f63b7da166233e1d0c64037ac
[ "MIT" ]
23
2017-10-24T22:12:01.000Z
2018-01-24T00:11:34.000Z
src/fd-half/src/example-asym-series-calculate.cpp
semenak94/OpenFFD
60ceedc803acb56f63b7da166233e1d0c64037ac
[ "MIT" ]
null
null
null
#include "Common.h" #include "FdIndex.h" #include "AsymptoticSeries.h" #include "ZetaFunction.h" #include <iostream> TEST_CASE("calculate") { setPreciseOutput(); SECTION("m_3half") { INFO("Вычисление значения функции ФД индекса k = -3/2 при x >= x_min"); BmpReal I_x_44 = asympt_series::calculat...
31.738636
95
0.524347
[ "vector" ]
37ffb88462b4002bc9b57cb9c4bc555e69f28f58
5,840
cpp
C++
04/main.cpp
zv0n/advent_of_code_2020
f730794ff75e95286e55df8ebbb4a514d67b93e8
[ "Unlicense" ]
null
null
null
04/main.cpp
zv0n/advent_of_code_2020
f730794ff75e95286e55df8ebbb4a514d67b93e8
[ "Unlicense" ]
null
null
null
04/main.cpp
zv0n/advent_of_code_2020
f730794ff75e95286e55df8ebbb4a514d67b93e8
[ "Unlicense" ]
1
2020-12-20T16:35:13.000Z
2020-12-20T16:35:13.000Z
#include <fstream> #include <iostream> #include <sstream> #include <vector> class Passport { public: void setBirthYear( int year ) { birth_year = year; } void setIssueYear( int year ) { issue_year = year; } void setExpirationYear( int year ) { expiration_year = year; }...
29.948718
79
0.537842
[ "vector" ]
53052a4581ea31ae2caa9dfa466d01fb27f2ede5
1,075
cpp
C++
Level-1/13. Stack and Queues/5. Largest_Area_Histogram.cpp
anubhvshrma18/PepCoding
1d5ebd43e768ad923bf007c8dd584e217df1f017
[ "Apache-2.0" ]
22
2021-06-02T04:25:55.000Z
2022-01-30T06:25:07.000Z
Level-1/13. Stack and Queues/5. Largest_Area_Histogram.cpp
amitdubey6261/PepCoding
1d5ebd43e768ad923bf007c8dd584e217df1f017
[ "Apache-2.0" ]
2
2021-10-17T19:26:10.000Z
2022-01-14T18:18:12.000Z
Level-1/13. Stack and Queues/5. Largest_Area_Histogram.cpp
amitdubey6261/PepCoding
1d5ebd43e768ad923bf007c8dd584e217df1f017
[ "Apache-2.0" ]
8
2021-07-21T09:55:15.000Z
2022-01-31T10:32:51.000Z
#include <bits/stdc++.h> using namespace std; vector<int> nextSmalleronleft(int *arr,int n){ vector<int> v(n); stack<int> st; st.push(0); v[0]=-1; for(int i=1;i<n;i++){ while(st.size()>0 && arr[st.top()]>=arr[i]){ st.pop(); } if(st.size()==0){ v[i]=-1; } else{ v[i]=st.top(); } st.push(i);...
14.144737
47
0.55814
[ "vector" ]
53055d9de7b26dacc06006a8a0b4050ff1eeecc3
2,835
cpp
C++
src/levels/level1.cpp
TomSavas/ScrewGeometry
396a6302220de2fcd7f9a947b5c5a508c28ded69
[ "MIT" ]
null
null
null
src/levels/level1.cpp
TomSavas/ScrewGeometry
396a6302220de2fcd7f9a947b5c5a508c28ded69
[ "MIT" ]
null
null
null
src/levels/level1.cpp
TomSavas/ScrewGeometry
396a6302220de2fcd7f9a947b5c5a508c28ded69
[ "MIT" ]
null
null
null
#include "levels/level1.h" #include <utility> #include "OBJ_Loader.h" #include "components/model.h" #include "components/transform.h" Level1::~Level1() { } void Level1::Load() { /* objl::Loader loader; loader.LoadFile("../assets/models/cube.obj"); Model cubeModel(loader.LoadedMeshes[0]); D...
42.954545
93
0.716049
[ "model", "transform" ]
5307d63ff3c22286d5319742cce0f4da63a21a8c
3,674
cc
C++
engine/convertor/worker.cc
YaoPu2021/galileo
0ebee2052bf78205f93f8cbbe0e2884095dd7af7
[ "Apache-2.0" ]
115
2021-09-09T03:01:58.000Z
2022-03-30T10:46:26.000Z
engine/convertor/worker.cc
Hacky-DH/galileo
e4d5021f0287dc879730dfa287b9a056f152f712
[ "Apache-2.0" ]
1
2021-12-09T07:34:41.000Z
2021-12-20T06:24:27.000Z
engine/convertor/worker.cc
Hacky-DH/galileo
e4d5021f0287dc879730dfa287b9a056f152f712
[ "Apache-2.0" ]
28
2021-09-10T08:47:20.000Z
2022-03-17T07:29:26.000Z
// Copyright 2020 JD.com, Inc. Galileo 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 requ...
34.018519
81
0.671475
[ "vector" ]
530c29b6059cfccb779afb0ad4fc1870959c1ee6
16,507
cpp
C++
dbms/src/Functions/tests/gtest_from_unixtime.cpp
solotzg/tiflash
66f45c76692e941bc845c01349ea89de0f2cc210
[ "Apache-2.0" ]
85
2022-03-25T09:03:16.000Z
2022-03-25T09:45:03.000Z
dbms/src/Functions/tests/gtest_from_unixtime.cpp
solotzg/tiflash
66f45c76692e941bc845c01349ea89de0f2cc210
[ "Apache-2.0" ]
7
2022-03-25T08:59:10.000Z
2022-03-25T09:40:13.000Z
dbms/src/Functions/tests/gtest_from_unixtime.cpp
solotzg/tiflash
66f45c76692e941bc845c01349ea89de0f2cc210
[ "Apache-2.0" ]
11
2022-03-25T09:15:36.000Z
2022-03-25T09:45:07.000Z
// Copyright 2022 PingCAP, Ltd. // // 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 i...
58.743772
201
0.68789
[ "vector" ]
53105c8739299f1900b7bfd9a64a49371d23ed1f
13,816
cpp
C++
FireRender.Max.Plugin/plugin/light/FireRenderIES_General.cpp
Vsevolod1983/RadeonProRenderMaxPlugin
d5393fd04e45dd2c77c8b17fac4e10b20df55285
[ "Apache-2.0" ]
6
2020-05-24T12:00:43.000Z
2021-07-13T06:22:49.000Z
FireRender.Max.Plugin/plugin/light/FireRenderIES_General.cpp
Vsevolod1983/RadeonProRenderMaxPlugin
d5393fd04e45dd2c77c8b17fac4e10b20df55285
[ "Apache-2.0" ]
4
2020-09-17T17:05:38.000Z
2021-06-23T14:29:14.000Z
FireRender.Max.Plugin/plugin/light/FireRenderIES_General.cpp
Vsevolod1983/RadeonProRenderMaxPlugin
d5393fd04e45dd2c77c8b17fac4e10b20df55285
[ "Apache-2.0" ]
8
2020-05-15T08:29:17.000Z
2021-07-14T08:38:07.000Z
/********************************************************************** Copyright 2020 Advanced Micro Devices, Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/L...
26.216319
106
0.768746
[ "object" ]
5313094f18213424ca88377521d0f087992be01e
671
hpp
C++
include/RasterPolygonBase.hpp
mh0fm4/RasTL
96b072fe4080dfc13d7fd9064e5e0f9ff1c4f394
[ "MIT" ]
null
null
null
include/RasterPolygonBase.hpp
mh0fm4/RasTL
96b072fe4080dfc13d7fd9064e5e0f9ff1c4f394
[ "MIT" ]
null
null
null
include/RasterPolygonBase.hpp
mh0fm4/RasTL
96b072fe4080dfc13d7fd9064e5e0f9ff1c4f394
[ "MIT" ]
null
null
null
#ifndef RTL_RASTER_POLYGON_BASE_HPP #define RTL_RASTER_POLYGON_BASE_HPP #include <cassert> #include "Geometry.hpp" #include "Canvas.hpp" #include "RasterBase.hpp" namespace rastl { template<typename CanvasType> class RasterPolygonBase: RasterBase<CanvasType> { public: using Coordinate_t = typename CanvasType::Co...
20.333333
57
0.766021
[ "geometry" ]
5315a49315a79ccd19d16defb3c071bd8f91a103
2,307
cpp
C++
src/CADAssembler/CADCreoUtils/TestQcr.cpp
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
src/CADAssembler/CADCreoUtils/TestQcr.cpp
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
src/CADAssembler/CADCreoUtils/TestQcr.cpp
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
/*--------------------------------------------------------------------*\ Pro/TOOLKIT includes \*--------------------------------------------------------------------*/ #include <ProToolkit.h> #include <ProObjects.h> #include <ProMdl.h> /*--------------------------------------------------...
36.619048
73
0.350672
[ "model" ]
53178dc9d1b875aa6da51cf73e7e30f011a4db6c
12,061
hpp
C++
source/LibFgBase/src/FgBounds.hpp
maamountki/FaceGenBaseLibrary
0c647920e913354028ed09fff3293555e84d2b94
[ "MIT" ]
null
null
null
source/LibFgBase/src/FgBounds.hpp
maamountki/FaceGenBaseLibrary
0c647920e913354028ed09fff3293555e84d2b94
[ "MIT" ]
null
null
null
source/LibFgBase/src/FgBounds.hpp
maamountki/FaceGenBaseLibrary
0c647920e913354028ed09fff3293555e84d2b94
[ "MIT" ]
null
null
null
// // Copyright (c) 2015 Singular Inversions Inc. (facegen.com) // Use, modification and distribution is subject to the MIT License, // see accompanying file LICENSE.txt or facegen.com/base_library_license.txt // // Authors: Andrew Beatty // Created: Sept. 28, 2009 // // min/max bounds of n-D data structures, a...
26.802222
105
0.612387
[ "vector" ]
531e7844618723810e512663ae0473af2be33dae
1,671
hpp
C++
components/scream/src/physics/shoc/shoc_diag_second_moments_lbycond_impl.hpp
ambrad/scream
52da60f65e870b8a3994bdbf4a6022fdcac7cab5
[ "BSD-3-Clause" ]
22
2018-12-12T17:44:55.000Z
2022-03-11T03:47:38.000Z
components/scream/src/physics/shoc/shoc_diag_second_moments_lbycond_impl.hpp
ambrad/scream
52da60f65e870b8a3994bdbf4a6022fdcac7cab5
[ "BSD-3-Clause" ]
1,440
2018-07-10T16:49:55.000Z
2022-03-31T22:41:25.000Z
components/scream/src/physics/shoc/shoc_diag_second_moments_lbycond_impl.hpp
ambrad/scream
52da60f65e870b8a3994bdbf4a6022fdcac7cab5
[ "BSD-3-Clause" ]
24
2018-11-12T15:43:53.000Z
2022-03-30T18:10:52.000Z
#ifndef SHOC_DIAG_SECOND_MOMENTS_LBYCOND_IMPL_HPP #define SHOC_DIAG_SECOND_MOMENTS_LBYCOND_IMPL_HPP #include "shoc_functions.hpp" // for ETI only but harmless for GPU namespace scream { namespace shoc { template<typename S, typename D> KOKKOS_FUNCTION void Functions<S,D> ::shoc_diag_second_moments_lbycond( const...
34.102041
94
0.722322
[ "model" ]
531f3f14261ef08317c4bfde9a0c2aa0adf45408
1,445
cpp
C++
nodes/Fun.cpp
Gabriel29/Sparrow-CImporter
31ebb895bd998273c8722cfb7be6094b81d557ef
[ "MIT" ]
null
null
null
nodes/Fun.cpp
Gabriel29/Sparrow-CImporter
31ebb895bd998273c8722cfb7be6094b81d557ef
[ "MIT" ]
null
null
null
nodes/Fun.cpp
Gabriel29/Sparrow-CImporter
31ebb895bd998273c8722cfb7be6094b81d557ef
[ "MIT" ]
null
null
null
#include "Fun.hpp" #include "FunParam.hpp" #include "Type.hpp" #include "utils.hpp" using namespace cimporter; Fun::Fun(CXCursor cursor) : Decl(cursor) { _name = getCursorName(_cursor); } void Fun::parseDecl() { auto cursorType = clang_getCursorType(_cursor); auto retType = cla...
24.913793
93
0.611073
[ "vector" ]
53208d297e150c2338eae1a2f7549e0f572a1b91
419
hpp
C++
include/ast/rootNode.hpp
EthanSK/C-to-MIPS-Compiler
a736901053ec1a2ad009bf33f588b4ce5293317c
[ "MIT" ]
6
2019-05-21T09:42:10.000Z
2021-03-22T04:34:20.000Z
include/ast/rootNode.hpp
EthanSK/C-to-MIPS-Compiler
a736901053ec1a2ad009bf33f588b4ce5293317c
[ "MIT" ]
null
null
null
include/ast/rootNode.hpp
EthanSK/C-to-MIPS-Compiler
a736901053ec1a2ad009bf33f588b4ce5293317c
[ "MIT" ]
1
2019-06-25T22:35:24.000Z
2019-06-25T22:35:24.000Z
#ifndef rootNode_hpp #define rootNode_hpp #include "statement.hpp" class RootNode : public Statement { public: RootNode(StatementPtr tree); void generatePython(std::ostream &os, PythonContext &context, int scopeDepth = 0) const override; void generateIL(std::vector<Instr> &instrs, ILContext &context, std::strin...
23.277778
103
0.75895
[ "vector" ]
53249d7c2e5eadb08803edabd17b5134e5de9f34
5,217
cpp
C++
codes/data structures/seg_tree.cpp
chessbot108/solved-problems
0945be829a8ea9f0d5896c89331460d70d076691
[ "MIT" ]
2
2021-03-07T03:34:02.000Z
2021-03-09T01:22:21.000Z
codes/data structures/seg_tree.cpp
chessbot108/solved-problems
0945be829a8ea9f0d5896c89331460d70d076691
[ "MIT" ]
1
2021-03-27T15:01:23.000Z
2021-03-27T15:55:34.000Z
codes/data structures/seg_tree.cpp
chessbot108/solved-problems
0945be829a8ea9f0d5896c89331460d70d076691
[ "MIT" ]
1
2021-03-27T05:02:33.000Z
2021-03-27T05:02:33.000Z
#include <iostream> #include <cstdio> #include <cstring> #include <cstdlib> #include <ctime> #include <cmath> #include <cassert> #include <algorithm> #include <vector> #include <string> #include <map> #include <set> #include <sstream> #include <list> #include <unordered_map> #include <unordered_set> #include <functiona...
24.608491
113
0.450642
[ "vector" ]
53274a44ef713be3171640b039fd92207f37ba3e
5,875
cpp
C++
Courses/101 - Advanced Algorithms and Complexity/week1_flows_in_networks/airline_crews/airline_crews.cpp
aKhfagy/Data-Structures-and-Algorithms-Specialization
3f5582f10c55e108add47292fa40e0eda6910e2d
[ "CC0-1.0" ]
1
2021-01-25T09:56:15.000Z
2021-01-25T09:56:15.000Z
Courses/101 - Advanced Algorithms and Complexity/week1_flows_in_networks/airline_crews/airline_crews.cpp
aKhfagy/data-structures-algorithms
3f5582f10c55e108add47292fa40e0eda6910e2d
[ "CC0-1.0" ]
null
null
null
Courses/101 - Advanced Algorithms and Complexity/week1_flows_in_networks/airline_crews/airline_crews.cpp
aKhfagy/data-structures-algorithms
3f5582f10c55e108add47292fa40e0eda6910e2d
[ "CC0-1.0" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> #include <memory> #include <queue> #include <limits> using std::vector; using std::cin; using std::cout; using std::queue; using std::numeric_limits; /* class MaxMatching { public: void Solve() { vector<vector<bool>> adj_matrix = ReadData(); vector<...
26.345291
97
0.548766
[ "vector" ]
5329c73bddaad278094af917e224a1587f777058
2,652
cpp
C++
src/nighthaunt/MyrmournBanshees.cpp
rweyrauch/AoSSimulator
d2bfbbe0fab904cc543f1a01e62e0b82cf67c27b
[ "MIT" ]
5
2019-02-01T01:41:19.000Z
2021-06-17T02:16:13.000Z
src/nighthaunt/MyrmournBanshees.cpp
rweyrauch/AoSSimulator
d2bfbbe0fab904cc543f1a01e62e0b82cf67c27b
[ "MIT" ]
2
2020-01-14T16:57:42.000Z
2021-04-01T00:53:18.000Z
src/nighthaunt/MyrmournBanshees.cpp
rweyrauch/AoSSimulator
d2bfbbe0fab904cc543f1a01e62e0b82cf67c27b
[ "MIT" ]
1
2019-03-02T20:03:51.000Z
2019-03-02T20:03:51.000Z
/* * Warhammer Age of Sigmar battle simulator. * * Copyright (C) 2020 by Rick Weyrauch - rpweyrauch@gmail.com * * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) */ #include <UnitFactory.h> #include "nighthaunt/MyrmournBanshees.h" #include "NighthauntPrivate.h" namespace Ni...
37.885714
115
0.62368
[ "model" ]
532ecabb372d7d02e6fe45c43854aba4d1d681be
4,682
cpp
C++
src/dmdump_module/dmdump_module.cpp
brinkqiang/dmdump
791c7d511c9797182ea73d56d9e81346a24cb2f3
[ "MIT" ]
1
2018-10-25T08:33:37.000Z
2018-10-25T08:33:37.000Z
src/dmdump_module/dmdump_module.cpp
brinkqiang/dmdump
791c7d511c9797182ea73d56d9e81346a24cb2f3
[ "MIT" ]
null
null
null
src/dmdump_module/dmdump_module.cpp
brinkqiang/dmdump
791c7d511c9797182ea73d56d9e81346a24cb2f3
[ "MIT" ]
null
null
null
// Copyright (c) 2018 brinkqiang (brink.qiang@gmail.com) // // 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, m...
28.204819
133
0.629859
[ "vector" ]
5330af95806d461bba83ecaf41f94798e967c8b9
697
cpp
C++
codechef-div-3-rated-contest-2021-division-2-unrated/CHEFPAT.cpp
JorgeKtch/codechef-solutions
e9e7a223386dd899801686623226f2d963dce0cd
[ "MIT" ]
2
2021-01-27T20:27:51.000Z
2021-02-07T10:04:36.000Z
codechef-div-3-rated-contest-2021-division-2-unrated/CHEFPAT.cpp
JorgeKtch/codechef-solutions
e9e7a223386dd899801686623226f2d963dce0cd
[ "MIT" ]
null
null
null
codechef-div-3-rated-contest-2021-division-2-unrated/CHEFPAT.cpp
JorgeKtch/codechef-solutions
e9e7a223386dd899801686623226f2d963dce0cd
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; for(int c=0; c<t; c++){ int n; cin >> n; int ai, max_ai=1001; map<int, vector<int>> m; for(int i=0; i<n; i++){ cin >> ai; if(ai>max_ai) max_ai = ai; m[ai].push_back(i+1); }...
24.034483
55
0.408895
[ "vector" ]
5341205cb2c58033899e389c59afdeb3c780427c
332
cpp
C++
CodeInterviews-SwordOffer/Offer57-Two-Sum/solution1.cpp
loyio/leetcode
366393c29a434a621592ef6674a45795a3086184
[ "CC0-1.0" ]
null
null
null
CodeInterviews-SwordOffer/Offer57-Two-Sum/solution1.cpp
loyio/leetcode
366393c29a434a621592ef6674a45795a3086184
[ "CC0-1.0" ]
null
null
null
CodeInterviews-SwordOffer/Offer57-Two-Sum/solution1.cpp
loyio/leetcode
366393c29a434a621592ef6674a45795a3086184
[ "CC0-1.0" ]
2
2022-01-25T05:31:31.000Z
2022-02-26T07:22:23.000Z
class Solution { public: vector<int> twoSum(vector<int>& nums, int target) { int i = 0, j = nums.size()-1; while(i < j){ int s = nums[i] + nums[j]; if(s < target) i++; else if(s > target) j--; else return {nums[i], nums[j]}; } return {}...
23.714286
55
0.427711
[ "vector" ]
53434e9d3227fc4f7e944dd7c9f19fab97f2a5a0
722
cpp
C++
src/Tests/TypeSystem/LabelTypeTest.cpp
pawel-jarosz/nastya-lisp
813a58523b741e00c8c27980fe658b546e9ff38c
[ "MIT" ]
1
2021-03-12T13:39:17.000Z
2021-03-12T13:39:17.000Z
src/Tests/TypeSystem/LabelTypeTest.cpp
pawel-jarosz/nastya-lisp
813a58523b741e00c8c27980fe658b546e9ff38c
[ "MIT" ]
null
null
null
src/Tests/TypeSystem/LabelTypeTest.cpp
pawel-jarosz/nastya-lisp
813a58523b741e00c8c27980fe658b546e9ff38c
[ "MIT" ]
null
null
null
// // Created by caedus on 20.02.2021. // #include <memory> #include <vector> #include <gtest/gtest.h> #include "TypeSystem/Types/LabelObject.hpp" namespace nastya::typesystem { TEST(LabelTypeTest, testConstructor) { std::string test_case = "dummy_label"; LabelObject object(test_case); EXPECT_EQ(object...
25.785714
84
0.706371
[ "object", "vector" ]
5344927d3c7bb98c5bc71321e8c15ac8cb1b0544
17,422
cpp
C++
src/discover/moviedetail.cpp
keshavbhatt/moviesquare
4b2d4e8042702a271eda7707dd2c0a1fa3edd696
[ "MIT" ]
4
2020-10-03T07:20:07.000Z
2021-02-27T22:54:17.000Z
src/discover/moviedetail.cpp
keshavbhatt/moviesquare
4b2d4e8042702a271eda7707dd2c0a1fa3edd696
[ "MIT" ]
null
null
null
src/discover/moviedetail.cpp
keshavbhatt/moviesquare
4b2d4e8042702a271eda7707dd2c0a1fa3edd696
[ "MIT" ]
1
2020-10-03T10:59:57.000Z
2020-10-03T10:59:57.000Z
#include "moviedetail.h" #include "ui_moviedetail.h" #include <QJsonDocument> #include <QJsonArray> #include <QJsonObject> #include <QDesktopServices> MovieDetail::MovieDetail(QWidget *parent, double movieId, QString key, QString lang, QStandardItemModel *langModel) : QWidget(parent), ui(new Ui::MovieDetail)...
36.070393
146
0.610033
[ "object" ]
c728fa052a5d6f2ce57abd52f101e846cf5d67b0
47,738
cc
C++
base/debug/activity_tracker.cc
google-ar/chromium
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
777
2017-08-29T15:15:32.000Z
2022-03-21T05:29:41.000Z
base/debug/activity_tracker.cc
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
66
2017-08-30T18:31:18.000Z
2021-08-02T10:59:35.000Z
base/debug/activity_tracker.cc
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
123
2017-08-30T01:19:34.000Z
2022-03-17T22:55:31.000Z
// Copyright 2016 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 "base/debug/activity_tracker.h" #include <algorithm> #include <limits> #include <utility> #include "base/debug/stack_trace.h" #include "base/fi...
39.129508
80
0.69938
[ "object" ]
c72a2fc9eb72fc0f0a7f66072940f8ef7bc8a643
6,858
cpp
C++
tgmm-paper/src/cellDivisionDiscriminationWithTemporalWindow/matlabCode/cellDivAnnotatorGUI/readTGMM_XMLoutput/readTGMM_XMLoutput/readXMLmixtureGaussians.cpp
msphan/tgmm-docker
bc417f4199801df9386817eba467026167320127
[ "Apache-2.0" ]
null
null
null
tgmm-paper/src/cellDivisionDiscriminationWithTemporalWindow/matlabCode/cellDivAnnotatorGUI/readTGMM_XMLoutput/readTGMM_XMLoutput/readXMLmixtureGaussians.cpp
msphan/tgmm-docker
bc417f4199801df9386817eba467026167320127
[ "Apache-2.0" ]
null
null
null
tgmm-paper/src/cellDivisionDiscriminationWithTemporalWindow/matlabCode/cellDivAnnotatorGUI/readTGMM_XMLoutput/readTGMM_XMLoutput/readXMLmixtureGaussians.cpp
msphan/tgmm-docker
bc417f4199801df9386817eba467026167320127
[ "Apache-2.0" ]
null
null
null
//wrapper to readXMLGaussianMixtureModel #include "mex.h" #include <vector> #include <iostream> #include <fstream> #include <string> #include <map> #include "GaussianMixtureModel.h" #include "external/xmlParser2/svlStrUtils.h" #include "external/xmlParser2/xmlParser.h" using namespace std; void mexFunction(int nlhs...
38.1
225
0.645523
[ "vector" ]
c73d1c0940577044be5f17430c9a60b70b41c675
21,628
hpp
C++
ThirdParty-mod/java2cpp/android/widget/TabHost.hpp
kakashidinho/HQEngine
8125b290afa7c62db6cc6eac14e964d8138c7fd0
[ "MIT" ]
1
2019-04-03T01:53:28.000Z
2019-04-03T01:53:28.000Z
ThirdParty-mod/java2cpp/android/widget/TabHost.hpp
kakashidinho/HQEngine
8125b290afa7c62db6cc6eac14e964d8138c7fd0
[ "MIT" ]
null
null
null
ThirdParty-mod/java2cpp/android/widget/TabHost.hpp
kakashidinho/HQEngine
8125b290afa7c62db6cc6eac14e964d8138c7fd0
[ "MIT" ]
null
null
null
/*================================================================================ code generated by: java2cpp author: Zoran Angelov, mailto://baldzar@gmail.com class: android.widget.TabHost ================================================================================*/ #ifndef J2CPP_INCLUDE_IMPLEMENT...
37.09777
208
0.734048
[ "object" ]
c73dae9cab8135665c46623c7806019eb978955e
4,066
cpp
C++
rtx/core/geometry/standard.cpp
musyoku/chainer-gqn-playground
657bb931d2c531ff8f078fcb1686bbf1999afa7f
[ "MIT" ]
28
2018-09-06T18:08:28.000Z
2021-12-19T13:30:41.000Z
rtx/core/geometry/standard.cpp
musyoku/chainer-gqn-playground
657bb931d2c531ff8f078fcb1686bbf1999afa7f
[ "MIT" ]
3
2019-03-01T02:50:15.000Z
2019-06-25T08:12:21.000Z
rtx/core/geometry/standard.cpp
musyoku/chainer-gqn-playground
657bb931d2c531ff8f078fcb1686bbf1999afa7f
[ "MIT" ]
8
2018-10-26T12:05:52.000Z
2019-09-04T05:14:24.000Z
#include "standard.h" #include "../header/enum.h" #include "../header/glm.h" #include <cassert> #include <cfloat> #include <iostream> namespace rtx { namespace py = pybind11; StandardGeometry::StandardGeometry() : Geometry() { } StandardGeometry::StandardGeometry( py::array_t<int, py::array::c_style> face_vert...
35.356522
115
0.697737
[ "geometry", "shape" ]