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
693651132ff94d0597023f3ade82c653348b193b
864
hpp
C++
Source/Colyseus/Compare.hpp
endel/colyseus-cocos2d-x
96a12a15d1f70f061365769e6cc84ba9bde49c72
[ "MIT" ]
15
2019-01-24T22:05:12.000Z
2022-01-19T08:40:42.000Z
Source/Colyseus/Compare.hpp
endel/colyseus-cocos2d-x
96a12a15d1f70f061365769e6cc84ba9bde49c72
[ "MIT" ]
3
2019-02-09T14:19:21.000Z
2021-05-08T01:41:38.000Z
Source/Colyseus/Compare.hpp
endel/colyseus-cocos2d-x
96a12a15d1f70f061365769e6cc84ba9bde49c72
[ "MIT" ]
2
2019-02-05T04:52:12.000Z
2020-03-17T17:21:16.000Z
#ifndef Compare_h #define Compare_h #include <sstream> #include <iostream> #include <stdio.h> #include "msgpack.hpp" class PatchObject { public: PatchObject(std::vector<std::string> path, std::string op, msgpack::object value); std::vector<std::string> path; std::string op; // "add" | "remove" | "replace"...
24.685714
107
0.696759
[ "object", "vector" ]
693a263cb32e0adc16b6725e42304e0f8fade0e7
2,375
cpp
C++
codeforces/3/3C_TicTacToe.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
3
2015-05-25T06:24:37.000Z
2016-09-10T07:58:00.000Z
codeforces/3/3C_TicTacToe.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
null
null
null
codeforces/3/3C_TicTacToe.cpp
ibudiselic/contest-problem-solutions
88082981b4d87da843472e3ca9ed5f4c42b3f0aa
[ "BSD-2-Clause" ]
5
2015-05-25T06:24:40.000Z
2021-08-19T19:22:29.000Z
#include <cassert> #include <vector> #include <algorithm> #include <iostream> #include <cstdio> #include <cstdlib> #include <cmath> #include <string> #include <cstring> using namespace std; inline int illegal() { cout << "illegal\n"; return 0; } inline int first() { cout << "first\n"; return 0; } inli...
17.723881
57
0.365895
[ "vector" ]
6941ccf4952ac92b4d73786c1e4a5b2b89c76929
27,054
cc
C++
mysql-server/storage/ndb/plugin/ha_ndbinfo.cc
silenc3502/MYSQL-Arch-Doc-Summary
fcc6bb65f72a385b9f56debc9b2c00cee5914bae
[ "MIT" ]
null
null
null
mysql-server/storage/ndb/plugin/ha_ndbinfo.cc
silenc3502/MYSQL-Arch-Doc-Summary
fcc6bb65f72a385b9f56debc9b2c00cee5914bae
[ "MIT" ]
null
null
null
mysql-server/storage/ndb/plugin/ha_ndbinfo.cc
silenc3502/MYSQL-Arch-Doc-Summary
fcc6bb65f72a385b9f56debc9b2c00cee5914bae
[ "MIT" ]
null
null
null
/* Copyright (c) 2009, 2020, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with cer...
32.054502
80
0.618984
[ "vector" ]
6943def6537d4e60570dae158468d619dce6fcd3
3,361
cpp
C++
er_perception/src/er_pointcloud_to_2d_node.cpp
RAS18G3/everything_robot
7453610dc68babac3a397a1f08754b473ef99c67
[ "MIT" ]
null
null
null
er_perception/src/er_pointcloud_to_2d_node.cpp
RAS18G3/everything_robot
7453610dc68babac3a397a1f08754b473ef99c67
[ "MIT" ]
4
2018-10-07T11:37:26.000Z
2018-11-29T20:52:19.000Z
er_perception/src/er_pointcloud_to_2d_node.cpp
RAS18G3/everything_robot
7453610dc68babac3a397a1f08754b473ef99c67
[ "MIT" ]
null
null
null
#include "er_pointcloud_to_2d_node.h" PointCloudTo2DNode::PointCloudTo2DNode() : nh_() { } PointCloudTo2DNode::~PointCloudTo2DNode() { } void PointCloudTo2DNode::pointcloud_cb(const PointCloud::ConstPtr& msg) { PointCloud transformed_pointcloud; PointCloud modified_pointcloud; PointCloud map_pointcloud; /...
36.934066
157
0.670336
[ "transform" ]
69514aa98b5f52e1078bf509467c156d4b88779a
1,570
cpp
C++
production_apps/ESPRESO/src/input/openfoam/foam/face.cpp
readex-eu/readex-apps
38493b11806c306f4e8f1b7b2d97764b45fac8e2
[ "BSD-3-Clause" ]
2
2020-11-25T13:10:11.000Z
2021-03-15T20:26:35.000Z
production_apps/ESPRESO/src/input/openfoam/foam/face.cpp
readex-eu/readex-apps
38493b11806c306f4e8f1b7b2d97764b45fac8e2
[ "BSD-3-Clause" ]
null
null
null
production_apps/ESPRESO/src/input/openfoam/foam/face.cpp
readex-eu/readex-apps
38493b11806c306f4e8f1b7b2d97764b45fac8e2
[ "BSD-3-Clause" ]
1
2018-09-30T19:04:38.000Z
2018-09-30T19:04:38.000Z
#include "face.h" using namespace espreso::input; Face::Face() { numberOfPoints =0; } Face::~Face() { //dtor } ParseError* Face::parse(Tokenizer &ts) { PARSE_GUARD(ts.readeslocal(numberOfPoints)); PARSE_GUARD(ts.consumeChar('(')); PARSE_GUARD(ts.readeslocal(p[0])); PARSE_GUARD(ts.readeslocal...
22.428571
92
0.536306
[ "object" ]
69544214e85dd1cde7a4face967b5bd6e46fe994
5,842
cc
C++
src/PowerGen.cc
oseikuffuor1/mgmol
5442962959a54c919a5e18c4e78db6ce41ee8f4e
[ "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
src/PowerGen.cc
oseikuffuor1/mgmol
5442962959a54c919a5e18c4e78db6ce41ee8f4e
[ "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
src/PowerGen.cc
oseikuffuor1/mgmol
5442962959a54c919a5e18c4e78db6ce41ee8f4e
[ "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. // LLNL-CODE-743438 // All rights reserved. // This file is part of MGmol. For details, see https://github.com/llnl/mgmol. // Please also read this link https://github.com/llnl/mgmol/LICENSE #in...
30.747368
80
0.586101
[ "vector" ]
695af9473cdb33eab5f942ad920d44866c63d986
7,294
cpp
C++
demos/FiniteVolume/AMR_Burgers_Hat.cpp
hpc-maths/samurai
30627951044aa3e31f94445286521c63a0011c4b
[ "BSD-3-Clause" ]
13
2021-01-07T19:23:42.000Z
2022-01-26T13:07:41.000Z
demos/FiniteVolume/AMR_Burgers_Hat.cpp
gouarin/samurai
7ae877997e8b9bdb85b84acaabb3c0483ff78689
[ "BSD-3-Clause" ]
1
2021-07-04T17:30:47.000Z
2021-07-04T17:30:47.000Z
demos/FiniteVolume/AMR_Burgers_Hat.cpp
gouarin/samurai
7ae877997e8b9bdb85b84acaabb3c0483ff78689
[ "BSD-3-Clause" ]
2
2021-01-07T15:54:49.000Z
2021-02-24T13:11:42.000Z
// Copyright 2021 SAMURAI TEAM. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include <iostream> #include <fmt/format.h> #include <samurai/box.hpp> #include <samurai/field.hpp> #include <samurai/hdf5.hpp> #include <samurai/amr/mesh.hpp> #i...
32.5625
146
0.548807
[ "mesh" ]
696165bbf4c53bacf9b648adeadeecb3f00b2dbc
7,828
cpp
C++
Eunoia-Engine/Src/Eunoia/Core/Engine.cpp
EunoiaGames/Eunoia-Dev
94edea774d1de05dc6a0c24ffdd3bb91b91a3346
[ "Apache-2.0" ]
null
null
null
Eunoia-Engine/Src/Eunoia/Core/Engine.cpp
EunoiaGames/Eunoia-Dev
94edea774d1de05dc6a0c24ffdd3bb91b91a3346
[ "Apache-2.0" ]
null
null
null
Eunoia-Engine/Src/Eunoia/Core/Engine.cpp
EunoiaGames/Eunoia-Dev
94edea774d1de05dc6a0c24ffdd3bb91b91a3346
[ "Apache-2.0" ]
null
null
null
#include "Engine.h" #include "../Utils/Log.h" #include "Application.h" #include "../Rendering/MasterRenderer.h" #include "../Rendering/Asset/AssetManager.h" #include "Input.h" #include "../Metadata/Metadata.h" #include "../ECS/Systems/TransformHierarchy3DSystem.h" #include "../ECS/Systems/TransformHierarchy2DSystem.h" ...
22.238636
144
0.702095
[ "render" ]
6965837d77b5cca7e494283504f0bb11a9f19736
10,845
cpp
C++
src/pooling_global_avg.cpp
Pandinosaurus/MinkowskiEngine
a40123a32eb1208f6a11fa32c36ee866ad4d4827
[ "MIT" ]
1
2021-07-28T18:31:06.000Z
2021-07-28T18:31:06.000Z
src/pooling_global_avg.cpp
Pandinosaurus/MinkowskiEngine
a40123a32eb1208f6a11fa32c36ee866ad4d4827
[ "MIT" ]
null
null
null
src/pooling_global_avg.cpp
Pandinosaurus/MinkowskiEngine
a40123a32eb1208f6a11fa32c36ee866ad4d4827
[ "MIT" ]
null
null
null
/* Copyright (c) Chris Choy (chrischoy@ai.stanford.edu). * * 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, mo...
39.010791
80
0.657077
[ "object", "vector" ]
69787cbd3aab2f2ae771b7c49db7ae8df714463a
4,151
cpp
C++
NAS2D/Renderer/Renderer.cpp
Brett208/nas2d-core
f9506540f32d34f3c60bc83b87b34460d582ae81
[ "Zlib" ]
null
null
null
NAS2D/Renderer/Renderer.cpp
Brett208/nas2d-core
f9506540f32d34f3c60bc83b87b34460d582ae81
[ "Zlib" ]
null
null
null
NAS2D/Renderer/Renderer.cpp
Brett208/nas2d-core
f9506540f32d34f3c60bc83b87b34460d582ae81
[ "Zlib" ]
null
null
null
// ================================================================================== // = NAS2D // = Copyright © 2008 - 2020 New Age Software // ================================================================================== // = NAS2D is distributed under the terms of the zlib license. You are free to copy, // = m...
19.672986
157
0.644664
[ "vector" ]
697f6c53043620790e81be57ebbe0e1cb945fc1c
23,344
cpp
C++
paxoskv/comm/svrlist_config_base.cpp
shanbaoyin/paxosstore
d9969c102df9ea4ef11a95f94f40c63d9d12b354
[ "BSD-3-Clause" ]
1,567
2017-08-30T07:58:14.000Z
2022-03-28T07:46:54.000Z
paxoskv/comm/svrlist_config_base.cpp
tomjobs/paxosstore
120ce539ef4fef18b3bef512cec28e3e0e3b241c
[ "BSD-3-Clause" ]
21
2017-08-31T01:21:30.000Z
2021-08-31T12:55:39.000Z
paxoskv/comm/svrlist_config_base.cpp
tomjobs/paxosstore
120ce539ef4fef18b3bef512cec28e3e0e3b241c
[ "BSD-3-Clause" ]
352
2017-08-30T15:25:40.000Z
2022-03-18T10:02:57.000Z
/* * Tencent is pleased to support the open source community by making PaxosStore available. * Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of...
21.755825
307
0.649503
[ "vector" ]
698234d920cdc7f84fc41b8e8f43e52c739cf244
633
cpp
C++
Syl3D/entity/uvsphere.cpp
Vivekyadavgithub/Syl3D
9533f69d4c96d7d7d9bcc4189b218a7a9138f12a
[ "MIT" ]
null
null
null
Syl3D/entity/uvsphere.cpp
Vivekyadavgithub/Syl3D
9533f69d4c96d7d7d9bcc4189b218a7a9138f12a
[ "MIT" ]
null
null
null
Syl3D/entity/uvsphere.cpp
Vivekyadavgithub/Syl3D
9533f69d4c96d7d7d9bcc4189b218a7a9138f12a
[ "MIT" ]
null
null
null
#include "uvsphere.h" using namespace entity; UVSphere::UVSphere(int parallels, int meridians, std::string shaderName) : Entity(shaderName), _sphere(std::make_shared<mesh::UVSphereMesh>(parallels, meridians)) { this->initialize({ std::static_pointer_cast<mesh::Mesh>(_sphere) }); } UVSphere::UVSphere(math::Vec3 s...
25.32
97
0.744076
[ "mesh" ]
6983491fdfa07d3665399c7915332621e36a7d04
5,127
cpp
C++
src/main/resources/main/c++/DynamicRenderable.cpp
yildiz-online/module-graphic-ogre
8f45fbfd3984d3f9f3143767de5b211e9a9c525f
[ "MIT" ]
null
null
null
src/main/resources/main/c++/DynamicRenderable.cpp
yildiz-online/module-graphic-ogre
8f45fbfd3984d3f9f3143767de5b211e9a9c525f
[ "MIT" ]
8
2018-11-19T20:41:21.000Z
2021-12-03T03:03:51.000Z
src/main/resources/main/c++/DynamicRenderable.cpp
yildiz-online/module-graphic-ogre
8f45fbfd3984d3f9f3143767de5b211e9a9c525f
[ "MIT" ]
null
null
null
/* * This file is part of the Yildiz-Engine project, licenced under the MIT License (MIT) * * Copyright (c) 2019 Grégory Van den Borre * * More infos available: https://engine.yildiz-games.be * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated * docu...
33.077419
119
0.707821
[ "render" ]
698b2389ff217abb00e39e222852ce1457ca8d7d
674
cpp
C++
Leetcode/res/Find All Numbers Disappeared in an Array/1.cpp
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
1
2022-03-04T16:06:41.000Z
2022-03-04T16:06:41.000Z
Leetcode/res/Find All Numbers Disappeared in an Array/1.cpp
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
null
null
null
Leetcode/res/Find All Numbers Disappeared in an Array/1.cpp
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
null
null
null
\* Author: allannozomu Runtime: 116 ms Memory: 14.7 MB*\ class Solution { public: vector<int> findDisappearedNumbers(vector<int>& nums) { int qty = nums.size(); int res_qty = qty; for (int i = 0 ; i < qty; ++i){ int curr_index = nums[i] < 0 ? -(nums[i]) : nums[i]; cu...
24.962963
64
0.431751
[ "vector" ]
7e348caebdf131300f2e255ba9a0ad11814350b0
6,252
cpp
C++
ext/stub/java/awt/LinearGradientPaint-stub.cpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
ext/stub/java/awt/LinearGradientPaint-stub.cpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
ext/stub/java/awt/LinearGradientPaint-stub.cpp
pebble2015/cpoi
6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6
[ "Apache-2.0" ]
null
null
null
// Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar #include <java/awt/LinearGradientPaint.hpp> template<typename ComponentType, typename... Bases> struct SubArray; namespace java { namespace awt { typedef ::SubArray< ::java::awt::Transparency, ::java::lang::Object...
50.829268
333
0.727927
[ "transform" ]
7e3af736c28f47fe6be0b20710519ac956396cab
30,858
cpp
C++
src/distributed_paillier.cpp
fedlearnJDT/libfedlearn
581dfeca7ba6c49c480b883a883001dce7922f76
[ "Apache-2.0" ]
8
2021-07-20T01:54:18.000Z
2021-11-09T07:56:04.000Z
src/distributed_paillier.cpp
fedlearnJDT/libfedlearn
581dfeca7ba6c49c480b883a883001dce7922f76
[ "Apache-2.0" ]
null
null
null
src/distributed_paillier.cpp
fedlearnJDT/libfedlearn
581dfeca7ba6c49c480b883a883001dce7922f76
[ "Apache-2.0" ]
null
null
null
/* Copyright 2020 The FedLearn Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
36.648456
124
0.538888
[ "vector" ]
7e3f8834a68c8ede4f04cd77ce10217a29af4408
26,289
cpp
C++
source/Model.cpp
mackron/GTGameEngine
380d1e01774fe6bc2940979e4e5983deef0bf082
[ "BSD-3-Clause" ]
31
2015-03-19T08:44:48.000Z
2021-12-15T20:52:31.000Z
source/Model.cpp
mackron/GTGameEngine
380d1e01774fe6bc2940979e4e5983deef0bf082
[ "BSD-3-Clause" ]
19
2015-07-09T09:02:44.000Z
2016-06-09T03:51:03.000Z
source/Model.cpp
mackron/GTGameEngine
380d1e01774fe6bc2940979e4e5983deef0bf082
[ "BSD-3-Clause" ]
3
2017-10-04T23:38:18.000Z
2022-03-07T08:27:13.000Z
// Copyright (C) 2011 - 2014 David Reid. See included LICENCE. #include <GTGE/Model.hpp> #include <GTGE/VertexArrayLibrary.hpp> #include <GTGE/CPUVertexShader_SimpleTransform.hpp> #include <GTGE/Math.hpp> #include <GTGE/GTEngine.hpp> #include <GTGE/Core/Timing.hpp> #include <cfloat> #undef min #undef max ...
36.111264
173
0.503671
[ "mesh", "geometry", "vector", "model", "transform" ]
7e40e4ff233a2831696ca917ce4b9a9ee4da3ba7
15,788
cpp
C++
av/media/libmedia/IMediaSource.cpp
Keneral/aframeworks
af1d0010bfb88751837fb1afc355705bd8a9ad8b
[ "Unlicense" ]
10
2020-04-17T04:02:36.000Z
2021-11-23T11:38:42.000Z
av/media/libmedia/IMediaSource.cpp
Keneral/aframeworks
af1d0010bfb88751837fb1afc355705bd8a9ad8b
[ "Unlicense" ]
3
2020-02-19T16:53:25.000Z
2021-04-29T07:28:40.000Z
av/media/libmedia/IMediaSource.cpp
Keneral/aframeworks
af1d0010bfb88751837fb1afc355705bd8a9ad8b
[ "Unlicense" ]
5
2019-12-25T04:05:02.000Z
2022-01-14T16:57:55.000Z
/* * Copyright (C) 2009 The Android Open Source Project * * 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 app...
33.879828
120
0.550165
[ "vector" ]
7e4474bbaf72a6d94150064a168e557d92046269
2,052
cpp
C++
TG/bookcodes/ch5/uva10917.cpp
Anyrainel/aoapc-code
e787a01380698fb9236d933462052f97b20e6132
[ "Apache-2.0" ]
3
2017-08-15T06:00:01.000Z
2018-12-10T09:05:53.000Z
TG/bookcodes/ch5/uva10917.cpp
Anyrainel/aoapc-related-code
e787a01380698fb9236d933462052f97b20e6132
[ "Apache-2.0" ]
null
null
null
TG/bookcodes/ch5/uva10917.cpp
Anyrainel/aoapc-related-code
e787a01380698fb9236d933462052f97b20e6132
[ "Apache-2.0" ]
2
2017-09-16T18:46:27.000Z
2018-05-22T05:42:03.000Z
// UVa10917 A Walk through the Forest // Rujia Liu #include<cstdio> #include<cstring> #include<queue> using namespace std; const int INF = 1000000000; const int maxn = 1000 + 10; struct Edge { int from, to, dist; }; struct HeapNode { int d, u; bool operator < (const HeapNode& rhs) const { return d > rhs.d;...
20.52
59
0.503411
[ "vector" ]
7e504d03f076cd290e79e9e9cab9ce9c15d4811f
1,401
cpp
C++
tsplp/src/LinearConstraint.cpp
sebrockm/mtsp-vrp
28955855d253f51fcb9397a0b22c6774f66f8d55
[ "MIT" ]
null
null
null
tsplp/src/LinearConstraint.cpp
sebrockm/mtsp-vrp
28955855d253f51fcb9397a0b22c6774f66f8d55
[ "MIT" ]
null
null
null
tsplp/src/LinearConstraint.cpp
sebrockm/mtsp-vrp
28955855d253f51fcb9397a0b22c6774f66f8d55
[ "MIT" ]
null
null
null
#include "LinearConstraint.hpp" #include "LinearVariableComposition.hpp" #include <CoinFinite.hpp> tsplp::LinearConstraint tsplp::operator<=(LinearVariableComposition lhs, LinearVariableComposition rhs) { LinearConstraint result = lhs - rhs; result.m_upperBound *= -1; result.m_lowerBound = -COIN_DBL_MAX; ...
32.581395
140
0.748751
[ "model" ]
7e54742f9281e60bad640254daa0938c2aeed4d9
3,713
cpp
C++
evolve4src/src/evolve/ZoomHistory.cpp
ilyar/Evolve
f1aa89ea71fcf8be3ff6eb9ca1d57afd41cc7d88
[ "EFL-2.0" ]
null
null
null
evolve4src/src/evolve/ZoomHistory.cpp
ilyar/Evolve
f1aa89ea71fcf8be3ff6eb9ca1d57afd41cc7d88
[ "EFL-2.0" ]
null
null
null
evolve4src/src/evolve/ZoomHistory.cpp
ilyar/Evolve
f1aa89ea71fcf8be3ff6eb9ca1d57afd41cc7d88
[ "EFL-2.0" ]
null
null
null
// // ZoomHistory // #include "stdafx.h" // AboutDialog dialog ZoomHistory::ZoomHistory() { m_sp = 0; tf = &m_stack[m_sp]; } ZoomHistory::~ZoomHistory() { } void ZoomHistory::set_world(UNIVERSE *u) { world.left = 0.0 - 0.5; world.right = u->width + 0.5; world.top = 0.0 - 0.5; world.bottom = u->height + 0.5; ...
17.110599
87
0.618368
[ "transform" ]
7e556e50bd7762abfaf1a34dce03934dc94b74dd
720
cpp
C++
AEngine/src/GameObject.cpp
JaymieX/AEngine
660fb6e124f809f7c758bd49e1c3bc2ddf75df16
[ "Unlicense" ]
null
null
null
AEngine/src/GameObject.cpp
JaymieX/AEngine
660fb6e124f809f7c758bd49e1c3bc2ddf75df16
[ "Unlicense" ]
null
null
null
AEngine/src/GameObject.cpp
JaymieX/AEngine
660fb6e124f809f7c758bd49e1c3bc2ddf75df16
[ "Unlicense" ]
null
null
null
#include <Core/AEpch.h> #include "GameObject.h" #include "Graphics/Model.h" #include "Graphics/Shader.h" GameObject::GameObject(Model* model, Shader* shader) : model(model), shader(shader) { transformMatrixID = shader->getUniformID("modelMatrix"); normalMatrixID = shader->getUniformID("normalMatrix"); } GameObjec...
24
76
0.738889
[ "render", "model" ]
7e6369269a0c99a4477c0aac4ab1320b0fdd6546
8,818
hpp
C++
openjdk11/src/hotspot/share/gc/g1/g1ParScanThreadState.hpp
iootclab/openjdk
b01fc962705eadfa96def6ecff46c44d522e0055
[ "Apache-2.0" ]
2
2018-06-19T05:43:32.000Z
2018-06-23T10:04:56.000Z
openjdk11/src/hotspot/share/gc/g1/g1ParScanThreadState.hpp
iootclab/openjdk
b01fc962705eadfa96def6ecff46c44d522e0055
[ "Apache-2.0" ]
null
null
null
openjdk11/src/hotspot/share/gc/g1/g1ParScanThreadState.hpp
iootclab/openjdk
b01fc962705eadfa96def6ecff46c44d522e0055
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
37.364407
131
0.732139
[ "object" ]
7e67851014b2d27ee8c0c72b6a05de5798c8be9a
2,881
hpp
C++
include/codegen/include/OVR/OpenVR/IVRSystem__PollNextEventWithPose.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
1
2021-11-12T09:29:31.000Z
2021-11-12T09:29:31.000Z
include/codegen/include/OVR/OpenVR/IVRSystem__PollNextEventWithPose.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
null
null
null
include/codegen/include/OVR/OpenVR/IVRSystem__PollNextEventWithPose.hpp
Futuremappermydud/Naluluna-Modifier-Quest
bfda34370764b275d90324b3879f1a429a10a873
[ "MIT" ]
2
2021-10-03T02:14:20.000Z
2021-11-12T09:29:36.000Z
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:00 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "utils/typedefs.h" // Including type: System.MulticastDelegate #include "System/MulticastDelegate....
53.351852
249
0.767789
[ "object" ]
7e6dbf0e2b30718ea1894a109637891ee33c1a77
683
cpp
C++
dynamic_programming/triangle.cpp
jaswantcoder/C-Plus-Plus
3501c124743dfc4be437f0ecad5e4e8d7d81fbba
[ "MIT" ]
null
null
null
dynamic_programming/triangle.cpp
jaswantcoder/C-Plus-Plus
3501c124743dfc4be437f0ecad5e4e8d7d81fbba
[ "MIT" ]
null
null
null
dynamic_programming/triangle.cpp
jaswantcoder/C-Plus-Plus
3501c124743dfc4be437f0ecad5e4e8d7d81fbba
[ "MIT" ]
null
null
null
/*Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following triangle [ [2], [3,4], [6,5,7], [4,1,8,3] ] The minimum path sum from top to bottom is 11 (i.e., 2 + 3 + 5 + 1 = 11). */ class Solution { publ...
19.514286
126
0.464129
[ "vector" ]
7e77ccba1cb59bd482e58e533bb6c10f5e067e1e
5,835
cpp
C++
hw2/src/main.cpp
kungcn/Teamwork_of_Algorithm
55ed4785896aae7876b4ef34c73c4fed2111d187
[ "MIT" ]
null
null
null
hw2/src/main.cpp
kungcn/Teamwork_of_Algorithm
55ed4785896aae7876b4ef34c73c4fed2111d187
[ "MIT" ]
null
null
null
hw2/src/main.cpp
kungcn/Teamwork_of_Algorithm
55ed4785896aae7876b4ef34c73c4fed2111d187
[ "MIT" ]
null
null
null
#include "header.h" #include "def.h" int main(int argc, char *argv[]) { // dateFile path char MNIST_DS[MAX_ARRAY_NUMBER] = "./Mnist.ds"; // decode command line for (int i = 0; i < argc; i++) { if (strcmp(argv[i], "-n") == 0) { number_of_dataset = atoi(argv[i+1]); cout << "number_...
43.87218
215
0.655698
[ "vector" ]
7e7de481e4d8c3ec37743b03c9777503eb1e3507
18,021
cpp
C++
Src/CreatureEditor/creature/glink.cpp
jjuiddong/Creature-Editor
ee68cc71b8b93bcc164318344d1a0f87b3ebef4f
[ "MIT" ]
1
2020-01-19T08:45:16.000Z
2020-01-19T08:45:16.000Z
Src/CreatureEditor/creature/glink.cpp
jjuiddong/Creature-Editor
ee68cc71b8b93bcc164318344d1a0f87b3ebef4f
[ "MIT" ]
null
null
null
Src/CreatureEditor/creature/glink.cpp
jjuiddong/Creature-Editor
ee68cc71b8b93bcc164318344d1a0f87b3ebef4f
[ "MIT" ]
1
2020-11-26T11:52:37.000Z
2020-11-26T11:52:37.000Z
#include "stdafx.h" #include "glink.h" using namespace evc; cGLink::cGLink() : graphic::cNode(common::GenerateId(), "glink") , m_autoDelete(true) , m_gnode0(nullptr) , m_gnode1(nullptr) , m_highlightRevoluteAxis(false) { m_prop.type = phys::eJointType::Fixed; m_prop.isAngularSensor = false; m_prop.isLimitSe...
29.786777
91
0.711448
[ "render", "transform" ]
7e893975fca0ed8028b7439867975c673dececa6
3,533
hpp
C++
libff/common/utils.hpp
FardeenFindora/libff
9be5f23075f9723840eb2ceb0016d24d69dfea8f
[ "MIT" ]
null
null
null
libff/common/utils.hpp
FardeenFindora/libff
9be5f23075f9723840eb2ceb0016d24d69dfea8f
[ "MIT" ]
null
null
null
libff/common/utils.hpp
FardeenFindora/libff
9be5f23075f9723840eb2ceb0016d24d69dfea8f
[ "MIT" ]
null
null
null
/** @file ***************************************************************************** Declaration of miscellaneous math, serialization, and other common utility functions. ***************************************************************************** * @author This file is part of libff, developed by SCIPR La...
28.723577
127
0.652986
[ "vector" ]
7e8cb4fa1135fb1c606ac1d50551aee3242fa3f8
480
cpp
C++
1029. Two City Scheduling.cpp
MadanParth786/LeetcodeSolutions_PracticeQuestions
8a9c1eb88a6d5214abdb2becf2115a51e317a5c4
[ "MIT" ]
1
2022-01-19T14:25:36.000Z
2022-01-19T14:25:36.000Z
1029. Two City Scheduling.cpp
MadanParth786/LeetcodeSolutions_PracticeQuestions
8a9c1eb88a6d5214abdb2becf2115a51e317a5c4
[ "MIT" ]
null
null
null
1029. Two City Scheduling.cpp
MadanParth786/LeetcodeSolutions_PracticeQuestions
8a9c1eb88a6d5214abdb2becf2115a51e317a5c4
[ "MIT" ]
null
null
null
class Solution { public: int TwocitySchedCost(vector<vector<int>>& costs) { vector<int> refund; int N = costs.size()/2; int minCost = 0; for(vector<int> cost : costs){ minCost += cost[0]; refund.push_back(cost[1] - cost[0]); } sort(r...
25.263158
55
0.454167
[ "vector" ]
7e8eff53b4b0d722555d59a799f7b818ec6a7e24
513
hpp
C++
SniperCommander.hpp
talcome/WarGame
1af9cba399cae255d95618814881f06021f5a239
[ "MIT" ]
null
null
null
SniperCommander.hpp
talcome/WarGame
1af9cba399cae255d95618814881f06021f5a239
[ "MIT" ]
null
null
null
SniperCommander.hpp
talcome/WarGame
1af9cba399cae255d95618814881f06021f5a239
[ "MIT" ]
null
null
null
#pragma once #include "Sniper.hpp" namespace WarGame { class SniperCommander : public Sniper{ public: explicit SniperCommander(uint playerID): Sniper(playerID,120,120,100){} ~SniperCommander() override= default; std::pair<int,int> getEnemyLoc(std::vector<std::vector<Soldier*...
27
101
0.647173
[ "vector" ]
7e8f59132328c7f91c7b4afcaf61f08bc7fe8ac4
9,502
cpp
C++
tests/src/runtimeApi/module/hipModuleLoadMultProcessOnMultGPU.cpp
krishoza/HIP
f83315ac3b62801c61098e7f2604ce07e79b633c
[ "MIT" ]
7
2022-03-23T07:04:20.000Z
2022-03-30T02:44:42.000Z
tests/src/runtimeApi/module/hipModuleLoadMultProcessOnMultGPU.cpp
krishoza/HIP
f83315ac3b62801c61098e7f2604ce07e79b633c
[ "MIT" ]
null
null
null
tests/src/runtimeApi/module/hipModuleLoadMultProcessOnMultGPU.cpp
krishoza/HIP
f83315ac3b62801c61098e7f2604ce07e79b633c
[ "MIT" ]
null
null
null
/* Copyright (c) 2020-Present Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,...
30.357827
111
0.67228
[ "object", "vector" ]
7e955e31e68d28f123276bf002dfb8b0f6a015c4
557
cpp
C++
Acmicpc/C++/BOJ13333.cpp
sungmen/Acmicpc_Solve
0298a6aec84993a4d8767bd2c00490b7201e06a4
[ "MIT" ]
1
2020-07-08T23:16:19.000Z
2020-07-08T23:16:19.000Z
Acmicpc/C++/BOJ13333.cpp
sungmen/Acmicpc_Solve
0298a6aec84993a4d8767bd2c00490b7201e06a4
[ "MIT" ]
1
2020-05-16T03:12:24.000Z
2020-05-16T03:14:42.000Z
Acmicpc/C++/BOJ13333.cpp
sungmen/Acmicpc_Solve
0298a6aec84993a4d8767bd2c00490b7201e06a4
[ "MIT" ]
2
2020-05-16T03:25:16.000Z
2021-02-10T16:51:25.000Z
#include <iostream> #include <vector> #include <algorithm> int main() { int n; scanf("%d", &n); std::vector<int> v(n); for(int i = 0; i < n; i++) scanf("%d", &v[i]); std::sort(v.begin(), v.end()); for(int i = n; i >= int(n/2); i--) { int cnt = 0; for(int j...
20.62963
41
0.35009
[ "vector" ]
7e988c89940fca4b49f63f046b822a52fc1a9e42
2,250
hpp
C++
storage/storage_builder.hpp
mapsme/travelguide
26dd50b93f55ef731175c19d12514da5bace9fa4
[ "Apache-2.0" ]
61
2015-12-05T19:34:20.000Z
2021-06-25T09:07:09.000Z
storage/storage_builder.hpp
mapsme/travelguide
26dd50b93f55ef731175c19d12514da5bace9fa4
[ "Apache-2.0" ]
9
2016-02-19T23:22:20.000Z
2017-01-03T18:41:04.000Z
storage/storage_builder.hpp
mapsme/travelguide
26dd50b93f55ef731175c19d12514da5bace9fa4
[ "Apache-2.0" ]
35
2015-12-17T00:09:14.000Z
2021-01-27T10:47:11.000Z
#pragma once #include "storage.hpp" #include "article_info.hpp" #include "../std/map.hpp" #include "../std/stdint.hpp" class ArticleInfoBuilder : public ArticleInfo { public: explicit ArticleInfoBuilder(string const & title) : ArticleInfo(title) { } ArticleInfoBuilder(ArticleInfo const & info) : ArticleInfo...
20.833333
89
0.679111
[ "vector" ]
7ea55f9cecbf0f96335197b63f3a197457e2fe9d
3,787
cpp
C++
csapex_vision/src/matrix_operations/convert_type.cpp
AdrianZw/csapex_core_plugins
1b23c90af7e552c3fc37c7dda589d751d2aae97f
[ "BSD-3-Clause" ]
2
2016-09-02T15:33:22.000Z
2019-05-06T22:09:33.000Z
csapex_vision/src/matrix_operations/convert_type.cpp
AdrianZw/csapex_core_plugins
1b23c90af7e552c3fc37c7dda589d751d2aae97f
[ "BSD-3-Clause" ]
1
2021-02-14T19:53:30.000Z
2021-02-14T19:53:30.000Z
csapex_vision/src/matrix_operations/convert_type.cpp
AdrianZw/csapex_core_plugins
1b23c90af7e552c3fc37c7dda589d751d2aae97f
[ "BSD-3-Clause" ]
6
2016-10-12T00:55:23.000Z
2021-02-10T17:49:25.000Z
#include "convert_type.h" /// PROJECT #include <csapex/model/node_modifier.h> #include <csapex/msg/io.h> #include <csapex/param/parameter_factory.h> #include <csapex/utility/register_apex_plugin.h> #include <csapex_opencv/cv_mat_message.h> using namespace csapex; using namespace csapex::connection_types; using namesp...
34.117117
160
0.607077
[ "model" ]
7eb2b5485a471b35c9d6c52ed711a90674a4b766
14,952
cpp
C++
PICam/code/kinetics.cpp
sliakat/SpeReadPy
f57e4eeaf3759de3fc01bc5c7712d0f8a12b71c2
[ "MIT" ]
2
2021-02-11T18:15:33.000Z
2021-06-06T22:14:36.000Z
PICam/code/kinetics.cpp
sliakat/SpeReadPy
f57e4eeaf3759de3fc01bc5c7712d0f8a12b71c2
[ "MIT" ]
1
2020-12-30T16:04:09.000Z
2020-12-30T16:04:09.000Z
PICam/code/kinetics.cpp
sliakat/SpeReadPy
f57e4eeaf3759de3fc01bc5c7712d0f8a12b71c2
[ "MIT" ]
1
2021-06-02T01:05:10.000Z
2021-06-02T01:05:10.000Z
//--------------------------------------------------------------------------- // Kinetics.cpp Sample Code to demonstrate Kinetics Capture using PI API // This source defaults to produce a set of free-running kinetics acquisitions // See notes below to produce code for manually triggered acquisition //---------...
37.19403
117
0.619382
[ "object" ]
9d1b5e4fa6e3f71d09ba7770740bf28fe7fbe72b
1,808
cpp
C++
backup/2/interviewbit/c++/fraction.cpp
yangyanzhan/code-camp
4272564e916fc230a4a488f92ae32c07d355dee0
[ "Apache-2.0" ]
21
2019-11-16T19:08:35.000Z
2021-11-12T12:26:01.000Z
backup/2/interviewbit/c++/fraction.cpp
yangyanzhan/code-camp
4272564e916fc230a4a488f92ae32c07d355dee0
[ "Apache-2.0" ]
1
2022-02-04T16:02:53.000Z
2022-02-04T16:02:53.000Z
backup/2/interviewbit/c++/fraction.cpp
yangyanzhan/code-camp
4272564e916fc230a4a488f92ae32c07d355dee0
[ "Apache-2.0" ]
4
2020-05-15T19:39:41.000Z
2021-10-30T06:40:31.000Z
// Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)...
34.113208
345
0.489491
[ "vector" ]
9d1cdca2d9fc5d6d87b3b9677fd9c0dbeeeb3a48
18,168
cpp
C++
src/ADP/AnotherDangParser.cpp
Stephen-Seo/AnotherDangParser
59d9d27e47efc2e4d4f061ad3b80cbf13060bdfc
[ "MIT" ]
null
null
null
src/ADP/AnotherDangParser.cpp
Stephen-Seo/AnotherDangParser
59d9d27e47efc2e4d4f061ad3b80cbf13060bdfc
[ "MIT" ]
null
null
null
src/ADP/AnotherDangParser.cpp
Stephen-Seo/AnotherDangParser
59d9d27e47efc2e4d4f061ad3b80cbf13060bdfc
[ "MIT" ]
null
null
null
#include "AnotherDangParser.hpp" #include <cstring> #include <queue> #include <vector> #include <stdexcept> #include "OptionFlag.hpp" using namespace ADP; const std::regex AnotherDangParser::dashRegex("^-[^-].*$"); const std::regex AnotherDangParser::dashFullRegex("^-([a-zA-Z])$"); const std::regex AnotherDangPars...
31.817863
125
0.455746
[ "vector" ]
9d220e2effd6f20bcd832798fdde3c8fad102a01
7,353
cpp
C++
src/backend/llvm/IRGen.cpp
google/ohmu
33991d1bb655ab26ce1f172fdea0fd7eef32e763
[ "Apache-2.0" ]
79
2015-01-08T11:43:59.000Z
2022-02-13T23:39:27.000Z
src/backend/llvm/IRGen.cpp
google/ohmu
33991d1bb655ab26ce1f172fdea0fd7eef32e763
[ "Apache-2.0" ]
null
null
null
src/backend/llvm/IRGen.cpp
google/ohmu
33991d1bb655ab26ce1f172fdea0fd7eef32e763
[ "Apache-2.0" ]
22
2015-01-03T07:31:58.000Z
2021-10-13T09:08:31.000Z
//===- IRGen.cpp -----------------------------------------------*- C++ --*-===// // Copyright 2014 Google // // 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/l...
28.948819
81
0.637699
[ "vector" ]
9d22b216d8200b733b6624a74b8fecd59af172a6
24,439
cc
C++
py_mini_racer/extension/mini_racer_extension.cc
studyhub-co/PyMiniRacer
ada7f86a03bb1b387315d0635027ccab3fd8f6b8
[ "ISC" ]
569
2016-08-02T14:43:21.000Z
2022-03-30T09:20:20.000Z
py_mini_racer/extension/mini_racer_extension.cc
studyhub-co/PyMiniRacer
ada7f86a03bb1b387315d0635027ccab3fd8f6b8
[ "ISC" ]
63
2016-08-02T14:40:04.000Z
2022-01-24T12:53:55.000Z
py_mini_racer/extension/mini_racer_extension.cc
sqreen/PyMiniRacer
f7b9da0d4987ca7d1982af7f24da423f06da9894
[ "0BSD" ]
52
2016-08-03T12:10:25.000Z
2021-11-20T17:58:01.000Z
#include <libplatform/libplatform.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <v8-profiler.h> #include <v8-version-string.h> #include <v8.h> #include <chrono> #include <map> #include <mutex> #include <thread> #ifdef V8_OS_WIN #define LIB_EXPORT __declspec(dllexport) #else // V8_OS_WIN #def...
30.060271
80
0.641802
[ "object" ]
9d2857e44747f8cf8fcbcee1190d485960d4c925
3,952
cpp
C++
kwj1270/3월 2주/13460_구슬탈출.cpp
kwj1270/Algorithm_AlgoGaZa
91286b7f06f4031da3d7476f9091058c825f8542
[ "MIT" ]
1
2021-01-26T09:11:01.000Z
2021-01-26T09:11:01.000Z
kwj1270/3월 2주/13460_구슬탈출.cpp
kwj1270/Algorithm_AlgoGaZa
91286b7f06f4031da3d7476f9091058c825f8542
[ "MIT" ]
null
null
null
kwj1270/3월 2주/13460_구슬탈출.cpp
kwj1270/Algorithm_AlgoGaZa
91286b7f06f4031da3d7476f9091058c825f8542
[ "MIT" ]
1
2021-01-26T09:14:52.000Z
2021-01-26T09:14:52.000Z
#include <iostream> #include <vector> #include <string> using namespace std; int dx[] = {0,0,1,-1}; // 4방향 int dy[] = {1,-1,0,0}; // 4방향 const int LIMIT = 10; // 10 제한 vector<int> gen(int k) { // 정수 k를 길이가 10인 4진법으로 나타내는 것 vector<int> a(LIMIT); for (int i=0; i<LIMIT; i++) { a[i] = (k&3); k >>= ...
34.666667
109
0.446609
[ "vector" ]
9d2b02b9e7398dfa7ab62460c9500a53bb50a4d8
4,282
cpp
C++
svntrunk/src/BlueMatter/util/src/basicblocks.cpp
Bhaskers-Blu-Org1/BlueMatter
1ab2c41af870c19e2e1b1095edd1d5c85eeb9b5e
[ "BSD-2-Clause" ]
7
2020-02-25T15:46:18.000Z
2022-02-25T07:04:47.000Z
svntrunk/src/BlueMatter/util/src/basicblocks.cpp
IBM/BlueMatter
5243c0ef119e599fc3e9b7c4213ecfe837de59f3
[ "BSD-2-Clause" ]
null
null
null
svntrunk/src/BlueMatter/util/src/basicblocks.cpp
IBM/BlueMatter
5243c0ef119e599fc3e9b7c4213ecfe837de59f3
[ "BSD-2-Clause" ]
5
2019-06-06T16:30:21.000Z
2020-11-16T19:43:01.000Z
/* Copyright 2001, 2019 IBM Corporation * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the * following d...
38.576577
118
0.6149
[ "vector" ]
9d34a0b9032269440adad060f406bde3b74e16f0
293
cpp
C++
src/SvgLib/Region.cpp
steneva/svg-lib
47a754f71be923bd75bfef35ab529c61702b93ae
[ "MIT" ]
2
2020-08-11T20:46:31.000Z
2020-08-14T09:51:02.000Z
src/SvgLib/Region.cpp
steneva/svg-lib
47a754f71be923bd75bfef35ab529c61702b93ae
[ "MIT" ]
null
null
null
src/SvgLib/Region.cpp
steneva/svg-lib
47a754f71be923bd75bfef35ab529c61702b93ae
[ "MIT" ]
null
null
null
#include "Region.h" Region::Region(Coordinate x, Coordinate y) { this->x = x; this->y = y; } bool Region::contains(const Shape& shape) const { for (const Point& point : shape.boundary()) { if (!this->contains(point)) return false; } return true; } Region::~Region() = default;
13.952381
47
0.641638
[ "shape" ]
9d483ebde60cfa3cc285451b543ce41b4aad42fc
5,338
hh
C++
core/test/UtGunnsFluidConductor.hh
nasa/gunns
248323939a476abe5178538cd7a3512b5f42675c
[ "NASA-1.3" ]
18
2020-01-23T12:14:09.000Z
2022-02-27T22:11:35.000Z
core/test/UtGunnsFluidConductor.hh
nasa/gunns
248323939a476abe5178538cd7a3512b5f42675c
[ "NASA-1.3" ]
39
2020-11-20T12:19:35.000Z
2022-02-22T18:45:55.000Z
core/test/UtGunnsFluidConductor.hh
nasa/gunns
248323939a476abe5178538cd7a3512b5f42675c
[ "NASA-1.3" ]
7
2020-02-10T19:25:43.000Z
2022-03-16T01:10:00.000Z
#ifndef UtGunnsFluidConductor_EXISTS #define UtGunnsFluidConductor_EXISTS //////////////////////////////////////////////////////////////////////////////////////////////////// /// @defgroup UT_FLUID_CONDUCTOR Gunns Fluid Conductor Unit Test /// @ingroup UT_GUNNS /// /// @copyright Copyright 2021 United States Gover...
51.326923
140
0.542151
[ "vector" ]
9d59b7b8be827c3e5b85a570f174046c657ba284
981
cpp
C++
leetcode/cpp/546-Remove-Boxes.cpp
liu-chunhou/OnlineJudge
b79c8e05acf05411d8cf172214aa42e49cc20867
[ "MIT" ]
null
null
null
leetcode/cpp/546-Remove-Boxes.cpp
liu-chunhou/OnlineJudge
b79c8e05acf05411d8cf172214aa42e49cc20867
[ "MIT" ]
null
null
null
leetcode/cpp/546-Remove-Boxes.cpp
liu-chunhou/OnlineJudge
b79c8e05acf05411d8cf172214aa42e49cc20867
[ "MIT" ]
null
null
null
#include <vector> using namespace std; class Solution { public: int removeBoxes(vector<int>& boxes) { int n = boxes.size(); int dp[n][n][n+1]; // dp[i][j][k]: max score we can get from boxes[i] to boxes[j] with boxes[i] repeat k times on the left for(int i=0;i<n;++i){ f...
30.65625
111
0.345566
[ "vector" ]
9d5a1e841b1529994423be379dbd12c136128284
4,619
cpp
C++
src/logdensity.cpp
Jonghyun-Yun/LSA
359934190e2f7e3852781f90e15d62575436618b
[ "MIT" ]
null
null
null
src/logdensity.cpp
Jonghyun-Yun/LSA
359934190e2f7e3852781f90e15d62575436618b
[ "MIT" ]
null
null
null
src/logdensity.cpp
Jonghyun-Yun/LSA
359934190e2f7e3852781f90e15d62575436618b
[ "MIT" ]
null
null
null
#include "logdensity.h" #include <cmath> #include <stan/math.hpp> #include "tbb/blocked_range2d.h" using namespace std; // PoissonLogNormal implementation PoissonLogNormal::PoissonLogNormal(double y, double mu, double sigma) : y(y), mu(mu), sigma(sigma) {} vector<double> PoissonLogNormal::clean(vector<double> x) {...
31.421769
127
0.523057
[ "vector" ]
9d5a2b17476bb0eebd4038fed232abd9195cba45
3,229
cpp
C++
freq/appname_manager.cpp
mehrdad-shokri/libwxfreq
8281a2d530588f44661b42ea9be9474ba9316014
[ "BSD-3-Clause" ]
195
2018-01-01T01:54:14.000Z
2021-11-30T09:52:16.000Z
freq/appname_manager.cpp
mehrdad-shokri/libwxfreq
8281a2d530588f44661b42ea9be9474ba9316014
[ "BSD-3-Clause" ]
2
2018-03-12T04:41:03.000Z
2018-05-14T08:52:48.000Z
freq/appname_manager.cpp
mehrdad-shokri/libwxfreq
8281a2d530588f44661b42ea9be9474ba9316014
[ "BSD-3-Clause" ]
50
2018-01-02T00:54:16.000Z
2022-01-13T09:31:15.000Z
/* * Tencent is pleased to support the open source community by making libwxfreq available. * * Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use this file * except in compliance with the License. You may obtain a cop...
33.635417
88
0.650666
[ "vector" ]
9d5f5712297302b1dfb045ed5a9b49c1303a2792
382
cpp
C++
code/jump-game-2.cpp
tqgy/interview
1f51a70fd6b86ba15a900aed072a138524e84609
[ "CC0-1.0" ]
4
2018-04-09T12:57:46.000Z
2019-07-30T00:25:40.000Z
code/jump-game-2.cpp
tqgy/interview
1f51a70fd6b86ba15a900aed072a138524e84609
[ "CC0-1.0" ]
null
null
null
code/jump-game-2.cpp
tqgy/interview
1f51a70fd6b86ba15a900aed072a138524e84609
[ "CC0-1.0" ]
3
2018-11-19T03:11:15.000Z
2021-07-28T11:48:30.000Z
// Jump Game // 思路2,时间复杂度O(n),空间复杂度O(1) class Solution { public: bool canJump (const vector<int>& nums) { if (nums.empty()) return true; // 逆向下楼梯,最左能下降到第几层 int left_most = nums.size() - 1; for (int i = nums.size() - 2; i >= 0; --i) if (i + nums[i] >= left_most) ...
23.875
50
0.5
[ "vector" ]
9d644d63e22795509712704ab438eea47e234f1f
14,722
hpp
C++
Source/AllProjects/WndUtils/CIDCtrls/CIDCtrls_MColListBox.hpp
eudora-jia/CIDLib
02795d283d95f8a5a4fafa401b6189851901b81b
[ "MIT" ]
1
2019-05-28T06:33:01.000Z
2019-05-28T06:33:01.000Z
Source/AllProjects/WndUtils/CIDCtrls/CIDCtrls_MColListBox.hpp
eudora-jia/CIDLib
02795d283d95f8a5a4fafa401b6189851901b81b
[ "MIT" ]
null
null
null
Source/AllProjects/WndUtils/CIDCtrls/CIDCtrls_MColListBox.hpp
eudora-jia/CIDLib
02795d283d95f8a5a4fafa401b6189851901b81b
[ "MIT" ]
null
null
null
// // FILE NAME: CIDCtrls_MCColListBox.hpp // // AUTHOR: Dean Roddey // // CREATED: 11/28/2017 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2019 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https://ope...
41.122905
98
0.520581
[ "object", "vector" ]
9d6931281a5ad7ab7ba1c2248556f99e6818ea20
2,514
hpp
C++
include/boost/numpy/dstream/wiring/detail/nd_accessor.hpp
IceCube-SPNO/BoostNumpy
66538c0b6e38e2f985e0b44d8191c878cea0332d
[ "BSL-1.0" ]
6
2015-01-07T17:29:40.000Z
2019-03-28T15:18:27.000Z
include/boost/numpy/dstream/wiring/detail/nd_accessor.hpp
IceCube-SPNO/BoostNumpy
66538c0b6e38e2f985e0b44d8191c878cea0332d
[ "BSL-1.0" ]
2
2017-04-12T19:01:21.000Z
2017-04-14T16:18:38.000Z
include/boost/numpy/dstream/wiring/detail/nd_accessor.hpp
IceCube-SPNO/BoostNumpy
66538c0b6e38e2f985e0b44d8191c878cea0332d
[ "BSL-1.0" ]
2
2018-01-15T07:32:24.000Z
2020-10-14T02:55:55.000Z
/** * $Id$ * * Copyright (C) * 2014 - $Date$ * Martin Wolf <boostnumpy@martin-wolf.org> * * \file boost/numpy/dstream/wiring/detail/nd_accessor.hpp * \version $Revision$ * \date $Date$ * \author Martin Wolf <boostnumpy@martin-wolf.org> * * \brief This file defines the nd_accessor template to acce...
26.744681
80
0.702068
[ "object", "vector" ]
9d6d4081c086bba43e6e3232b3bbd0f6e29458bf
2,050
cpp
C++
src/discordpp/commands/CommandManager.cpp
Devincf/Discordpp
0166773f378ed4aa15389133ebee283a8287c07a
[ "Apache-2.0" ]
2
2019-02-15T16:32:48.000Z
2019-04-02T11:29:38.000Z
src/discordpp/commands/CommandManager.cpp
Devincf/Discordpp
0166773f378ed4aa15389133ebee283a8287c07a
[ "Apache-2.0" ]
null
null
null
src/discordpp/commands/CommandManager.cpp
Devincf/Discordpp
0166773f378ed4aa15389133ebee283a8287c07a
[ "Apache-2.0" ]
null
null
null
/** * @file CommandManager.cpp * @author Devin-Can Firat (devinc.firat@gmail.com) * @brief * @version 0.1 * @date 2019-04-02 01:06 * * @copyright Copyright (c) 2019 * */ #include "CommandManager.hpp" #include "util/constants.hpp" #include "boost/algorithm/string.hpp" namespace discordpp { bool CommandMan...
26.973684
108
0.598049
[ "vector" ]
9d7191d94f4dd13201cec74f948ae3fc6d39ad50
706
cpp
C++
LeetCode/Tag/Array/cpp/581.shortest-unsorted-continuous-subarray.cpp
pakosel/competitive-coding-problems
187a2f13725e06ab3301ae2be37f16fbec0c0588
[ "MIT" ]
17
2017-08-12T14:42:46.000Z
2022-02-26T16:35:44.000Z
LeetCode/Tag/Array/cpp/581.shortest-unsorted-continuous-subarray.cpp
pakosel/competitive-coding-problems
187a2f13725e06ab3301ae2be37f16fbec0c0588
[ "MIT" ]
21
2019-09-20T07:06:27.000Z
2021-11-02T10:30:50.000Z
LeetCode/Tag/Array/cpp/581.shortest-unsorted-continuous-subarray.cpp
pakosel/competitive-coding-problems
187a2f13725e06ab3301ae2be37f16fbec0c0588
[ "MIT" ]
21
2017-05-28T10:15:07.000Z
2021-07-20T07:19:58.000Z
class Solution { public: int findUnsortedSubarray(vector<int>& nums) { int n = nums.size(); vector<int> maxLeft(n, -1e5-1), minRight(n, 1e5+1); maxLeft[0] = nums[0]; minRight.back() = nums.back(); for (int i = 1, j = n-2; i < n; ++i, --j) { maxLeft[i] = ma...
37.157895
94
0.467422
[ "vector" ]
9d7416c19c6162da6123165a1ffe5285d1de6943
3,343
cpp
C++
Source/ArcadeSHMUP/EnemyAndAI/EnemyBlinker.cpp
DawgDaPoog/ArcadeSHMUP
07b5fb31af008fbdf7b27ee8fe70423537207f99
[ "MIT" ]
null
null
null
Source/ArcadeSHMUP/EnemyAndAI/EnemyBlinker.cpp
DawgDaPoog/ArcadeSHMUP
07b5fb31af008fbdf7b27ee8fe70423537207f99
[ "MIT" ]
null
null
null
Source/ArcadeSHMUP/EnemyAndAI/EnemyBlinker.cpp
DawgDaPoog/ArcadeSHMUP
07b5fb31af008fbdf7b27ee8fe70423537207f99
[ "MIT" ]
null
null
null
// Copyright Vladyslav Kulinych 2018. All Rights Reserved. #include "EnemyBlinker.h" #include "Particles/ParticleSystem.h" #include "Particles/ParticleSystemComponent.h" #include "Kismet/GameplayStatics.h" #include "Kismet/KismetMathLibrary.h" #include "Engine/World.h" #include "TimerManager.h" #include "BlinkerRay.h"...
22.587838
140
0.744541
[ "mesh" ]
9d7e04f3b592be6a055bdf973992d6d932544181
1,545
cpp
C++
src/FluidCinderApp.cpp
kotsoft/FluidCinder
3cd10cf75cd7e8df080e82428483764b8045cc50
[ "MIT" ]
44
2015-01-20T09:43:31.000Z
2022-01-23T06:18:13.000Z
src/FluidCinderApp.cpp
YangTrees/FluidCinder
3cd10cf75cd7e8df080e82428483764b8045cc50
[ "MIT" ]
2
2016-05-19T06:41:34.000Z
2016-07-24T13:39:30.000Z
src/FluidCinderApp.cpp
YangTrees/FluidCinder
3cd10cf75cd7e8df080e82428483764b8045cc50
[ "MIT" ]
9
2016-02-06T22:41:09.000Z
2021-12-11T23:07:29.000Z
#include "cinder/app/AppBasic.h" #include "cinder/gl/gl.h" #include "Simulator.cpp" #include <vector> #include "cinder/gl/Vbo.h" //#include <omp.h> using namespace ci; using namespace ci::app; using namespace std; class FluidCinderApp : public AppBasic { Simulator s; int n; GLfloat* vertices; public: void setu...
19.556962
60
0.686084
[ "vector" ]
9d7ff1bc4ec4f1b6127a54cbf50a618afa8038ae
2,207
hxx
C++
main/editeng/inc/editeng/unoviwou.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/editeng/inc/editeng/unoviwou.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/editeng/inc/editeng/unoviwou.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
33.953846
92
0.708654
[ "shape" ]
9d83f7c6c050806fba638c3c0b43706d8a946f88
28,885
hpp
C++
include/System/Linq/Expressions/Interpreter/InterpretedFrame.hpp
v0idp/virtuoso-codegen
6f560f04822c67f092d438a3f484249072c1d21d
[ "Unlicense" ]
null
null
null
include/System/Linq/Expressions/Interpreter/InterpretedFrame.hpp
v0idp/virtuoso-codegen
6f560f04822c67f092d438a3f484249072c1d21d
[ "Unlicense" ]
null
null
null
include/System/Linq/Expressions/Interpreter/InterpretedFrame.hpp
v0idp/virtuoso-codegen
6f560f04822c67f092d438a3f484249072c1d21d
[ "Unlicense" ]
1
2022-03-30T21:07:35.000Z
2022-03-30T21:07:35.000Z
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: System.Linq.Expressions.Interpreter...
62.252155
330
0.749836
[ "object", "vector" ]
9d863fc5d8d2ce44d4c96a401496438f76849b9b
1,488
cpp
C++
higan/fc/ppu/ppu.cpp
13824125580/higan
fbdd3f980b65412c362096579869ae76730e4118
[ "Intel", "ISC" ]
10
2019-12-19T01:19:41.000Z
2021-02-18T16:30:29.000Z
higan/fc/ppu/ppu.cpp
13824125580/higan
fbdd3f980b65412c362096579869ae76730e4118
[ "Intel", "ISC" ]
null
null
null
higan/fc/ppu/ppu.cpp
13824125580/higan
fbdd3f980b65412c362096579869ae76730e4118
[ "Intel", "ISC" ]
null
null
null
#include <fc/fc.hpp> namespace Famicom { PPU ppu; #include "memory.cpp" #include "render.cpp" #include "serialization.cpp" auto PPU::Enter() -> void { while(true) scheduler.synchronize(), ppu.main(); } auto PPU::main() -> void { renderScanline(); } auto PPU::step(uint clocks) -> void { uint L = vlines(); ...
20.383562
81
0.563172
[ "render" ]
9d8be2b7a3dd3ac6ab292ddce8ea2c81463b4e24
456
hpp
C++
libraries/protocol/include/futurepia/protocol/block.hpp
futurepia/futurepia
31163047b18082223a86ec4f95a820748275ceaa
[ "MIT" ]
3
2019-12-24T13:49:22.000Z
2021-01-02T08:26:13.000Z
libraries/protocol/include/futurepia/protocol/block.hpp
futurepia/futurepia
31163047b18082223a86ec4f95a820748275ceaa
[ "MIT" ]
4
2020-01-01T20:41:39.000Z
2021-11-30T16:31:10.000Z
libraries/protocol/include/futurepia/protocol/block.hpp
futurepia/futurepia
31163047b18082223a86ec4f95a820748275ceaa
[ "MIT" ]
5
2019-03-30T12:53:31.000Z
2021-06-10T16:22:11.000Z
#pragma once #include <futurepia/protocol/block_header.hpp> #include <futurepia/protocol/transaction.hpp> namespace futurepia { namespace protocol { struct signed_block : public signed_block_header { checksum_type calculate_merkle_root()const; vector<signed_transaction> transactions; }; } } // f...
28.5
115
0.77193
[ "vector" ]
9da5b64f659bd75b0f69da722cda74c7f88e201f
2,256
cpp
C++
1023 CamelCase Matching.cpp
think-start/Leetcode-Solutions
6b0870d10cf02c3e285fa9b9e603fc4ca25db575
[ "BSD-3-Clause-Attribution" ]
7
2021-05-28T21:28:26.000Z
2021-09-20T13:14:22.000Z
1023 CamelCase Matching.cpp
think-start/Leetcode-Solutions
6b0870d10cf02c3e285fa9b9e603fc4ca25db575
[ "BSD-3-Clause-Attribution" ]
null
null
null
1023 CamelCase Matching.cpp
think-start/Leetcode-Solutions
6b0870d10cf02c3e285fa9b9e603fc4ca25db575
[ "BSD-3-Clause-Attribution" ]
5
2021-05-28T13:43:33.000Z
2022-02-18T09:14:45.000Z
// problem 1023 Camelcase Matching // A query word matches a given pattern if we can insert lowercase letters to the pattern word so that it equals the query. // (We may insert each character at any position, and may insert 0 characters.) // Given a list of queries, and a pattern. // return an answer list of boolea...
34.707692
124
0.562943
[ "vector" ]
9dc3e9094779cbf0f8bfe7388386219846c0c63d
11,714
hpp
C++
lib/utils/ArgumentParser.hpp
maldicion069/monkeybrush-
2bccca097402ff1f5344e356f06de19c8c70065b
[ "MIT" ]
1
2016-11-15T09:04:12.000Z
2016-11-15T09:04:12.000Z
lib/utils/ArgumentParser.hpp
maldicion069/monkeybrush-
2bccca097402ff1f5344e356f06de19c8c70065b
[ "MIT" ]
null
null
null
lib/utils/ArgumentParser.hpp
maldicion069/monkeybrush-
2bccca097402ff1f5344e356f06de19c8c70065b
[ "MIT" ]
null
null
null
/* * Copyright (c) 2016 maldicion069 * * Authors: Cristian Rodríguez Bernal <ccrisrober@gmail.com> * * This file is part of MonkeyBrushPlusPlus * <https://github.com/maldicion069/monkeybrushplusplus> * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser...
30.035897
138
0.693188
[ "vector" ]
e386e35337ba6f4a8643b7be8b1941126b70ae34
7,454
cpp
C++
src/ConstraintFactory.cpp
nandofioretto/gpuMPE
875fcae5eb37194fef6bc36441296dc7f67c9439
[ "MIT" ]
1
2018-06-27T11:39:41.000Z
2018-06-27T11:39:41.000Z
src/ConstraintFactory.cpp
nandofioretto/gpuMPE
875fcae5eb37194fef6bc36441296dc7f67c9439
[ "MIT" ]
null
null
null
src/ConstraintFactory.cpp
nandofioretto/gpuMPE
875fcae5eb37194fef6bc36441296dc7f67c9439
[ "MIT" ]
null
null
null
#include <string> #include <sstream> #include <rapidxml.hpp> #include <iterator> #include <vector> #include "string_utils.hpp" #include "ConstraintFactory.hpp" #include "Assert.hpp" #include "Types.hpp" #include "Agent.hpp" #include "Variable.hpp" #include "TableConstraint.hpp" #include "Utils/Permutation.hpp" // used...
25.972125
88
0.653743
[ "vector" ]
e38ec80f474397039c3a06d8cfc7bb9c14f5b548
530
cc
C++
poj/2/2218.cc
eagletmt/procon
adbe503eb3c1bbcc1538b2ee8988aa353937e8d4
[ "MIT" ]
1
2015-04-17T09:54:23.000Z
2015-04-17T09:54:23.000Z
poj/2/2218.cc
eagletmt/procon
adbe503eb3c1bbcc1538b2ee8988aa353937e8d4
[ "MIT" ]
null
null
null
poj/2/2218.cc
eagletmt/procon
adbe503eb3c1bbcc1538b2ee8988aa353937e8d4
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { string msg; while (cin >> msg) { vector<pair<int,string> > v; string name; while (cin >> name && name != "END") { int days, weight; cin >> days >> weight; v.push_back(make_pair(weight-days, na...
21.2
89
0.556604
[ "vector" ]
e3912149a6e3cb6f5758f4b693c2973817614d9b
2,901
cpp
C++
test/test-from-sources.cpp
mindastray/lincxx
13fa45b9c6bc77ed77c0e5ae7b6cdffa937ace1f
[ "MIT" ]
null
null
null
test/test-from-sources.cpp
mindastray/lincxx
13fa45b9c6bc77ed77c0e5ae7b6cdffa937ace1f
[ "MIT" ]
null
null
null
test/test-from-sources.cpp
mindastray/lincxx
13fa45b9c6bc77ed77c0e5ae7b6cdffa937ace1f
[ "MIT" ]
null
null
null
#include <gtest/gtest.h> #include <lincxx.hpp> #include <vector> #include "test_tools.h" class test_from_sources : public ::testing::Test { protected: struct test_struct_deep { std::string x; }; struct test_struct { int id; bool select; test_struct_deep ref; inline int calculate_stuffs() { return id *...
30.21875
337
0.64495
[ "vector" ]
e392dc9ab9a6c3200956262c1f47babd3f4fef50
481
cpp
C++
src/treedelegate.cpp
alechaka/cognat
affd9f41cd1517eaf85c7c1860673e78685b15e1
[ "MIT" ]
null
null
null
src/treedelegate.cpp
alechaka/cognat
affd9f41cd1517eaf85c7c1860673e78685b15e1
[ "MIT" ]
null
null
null
src/treedelegate.cpp
alechaka/cognat
affd9f41cd1517eaf85c7c1860673e78685b15e1
[ "MIT" ]
null
null
null
#include "treedelegate.h" TreeDelegate::TreeDelegate(const int &width, const int &height, QObject *parent) : QItemDelegate(parent) { this->width = width; this->height = height; } QSize TreeDelegate::sizeHint(const QStyleOptionViewItem & /*option*/, const QModelIndex &index) const { bool DomainOrGi = i...
26.722222
101
0.679834
[ "model" ]
e3937cbe319cccb5125d39e633142c68d338beb3
2,121
cpp
C++
blockware/curvy-snake/lib/CurvySnake/CurvySnake.cpp
jcasts/blocks-with-screens
024e8336905bb41a56b943ce137b324d397d9dc7
[ "MIT" ]
24
2020-11-18T19:16:06.000Z
2022-02-24T05:27:59.000Z
blockware/curvy-snake/lib/CurvySnake/CurvySnake.cpp
jcasts/blocks-with-screens
024e8336905bb41a56b943ce137b324d397d9dc7
[ "MIT" ]
8
2021-11-14T16:18:52.000Z
2021-11-29T19:56:05.000Z
blockware/curvy-snake/lib/CurvySnake/CurvySnake.cpp
jcasts/blocks-with-screens
024e8336905bb41a56b943ce137b324d397d9dc7
[ "MIT" ]
6
2021-03-16T23:13:10.000Z
2021-11-24T01:40:48.000Z
#include <Adafruit_SSD1351.h> #include <algorithm> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <vector> #include "CurvySnake.h" #include <Colors.h> #include <Entity.h> #include <Random.h> extern Adafruit_SSD1351 tft; // in-memory 16-bit canvas GFXcanvas16* canvas; int screenWi...
22.09375
85
0.637435
[ "vector" ]
e398236c6e87ee4c44542eac338ebf9e5d91a396
15,734
cpp
C++
DemoApps/GLES3/ParticleSystem/source/ParticleSystemBasicScene.cpp
alejandrolozano2/OpenGL_DemoFramework
5fd85f05c98cc3d0c0a68bac438035df8cabaee7
[ "MIT", "BSD-3-Clause" ]
3
2019-01-19T20:21:24.000Z
2021-08-10T02:11:32.000Z
DemoApps/GLES3/ParticleSystem/source/ParticleSystemBasicScene.cpp
alejandrolozano2/OpenGL_DemoFramework
5fd85f05c98cc3d0c0a68bac438035df8cabaee7
[ "MIT", "BSD-3-Clause" ]
null
null
null
DemoApps/GLES3/ParticleSystem/source/ParticleSystemBasicScene.cpp
alejandrolozano2/OpenGL_DemoFramework
5fd85f05c98cc3d0c0a68bac438035df8cabaee7
[ "MIT", "BSD-3-Clause" ]
1
2021-08-10T02:11:33.000Z
2021-08-10T02:11:33.000Z
/**************************************************************************************************************************************************** * Copyright (c) 2015 Freescale Semiconductor, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permi...
39.732323
174
0.698742
[ "render" ]
e39883a12c6d11ff914fcf5e54f6a5370b365c01
683
cpp
C++
pgm07_17.cpp
neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C-
c9a29d2dd43ad8561e828c25f98de6a8c8f2317a
[ "Unlicense" ]
1
2021-07-13T03:58:36.000Z
2021-07-13T03:58:36.000Z
pgm07_17.cpp
neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C-
c9a29d2dd43ad8561e828c25f98de6a8c8f2317a
[ "Unlicense" ]
null
null
null
pgm07_17.cpp
neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C-
c9a29d2dd43ad8561e828c25f98de6a8c8f2317a
[ "Unlicense" ]
null
null
null
// // This file contains the C++ code from Program 7.17 of // "Data Structures and Algorithms // with Object-Oriented Design Patterns in C++" // by Bruno R. Preiss. // // Copyright (c) 1998 by Bruno R. Preiss, P.Eng. All rights reserved. // // http://www.pads.uwaterloo.ca/Bruno.Preiss/books/opus4/programs...
29.695652
80
0.670571
[ "object" ]
e39b531fea7ef9442f98c29393853faa8fd3ce3a
15,585
hpp
C++
modules/umfcore/include/umf/metadatastream.hpp
intel/umf
3103e3b0ab63a0f60f4d8d83ebf4dc39a61552aa
[ "Apache-2.0" ]
13
2018-01-23T22:05:21.000Z
2020-04-21T15:19:29.000Z
modules/umfcore/include/umf/metadatastream.hpp
intel/umf
3103e3b0ab63a0f60f4d8d83ebf4dc39a61552aa
[ "Apache-2.0" ]
10
2015-08-25T22:20:23.000Z
2016-06-08T10:13:26.000Z
modules/umfcore/include/umf/metadatastream.hpp
01org/vmf
3103e3b0ab63a0f60f4d8d83ebf4dc39a61552aa
[ "Apache-2.0" ]
10
2015-11-16T14:19:31.000Z
2016-08-18T21:44:07.000Z
/* * Copyright 2015 Intel(r) 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 agr...
32.741597
193
0.673917
[ "object", "vector" ]
e39c0a6ed06a0854477477361d9245ffb5810a84
16,090
cpp
C++
provider/src/ocpn-import/Viewport.cpp
free-x/avnav-ocharts-provider
7df95482d7bcef30f0cb0e1ae538cb9befc30deb
[ "MIT" ]
1
2020-09-10T21:11:10.000Z
2020-09-10T21:11:10.000Z
provider/src/ocpn-import/Viewport.cpp
free-x/avnav-ocharts-provider
7df95482d7bcef30f0cb0e1ae538cb9befc30deb
[ "MIT" ]
15
2020-09-10T17:58:35.000Z
2022-03-08T18:03:08.000Z
provider/src/ocpn-import/Viewport.cpp
free-x/avnav-ocharts-provider
7df95482d7bcef30f0cb0e1ae538cb9befc30deb
[ "MIT" ]
2
2020-06-18T07:29:05.000Z
2021-05-07T09:47:59.000Z
#include <math.h> #include "ocpn_types.h" #include "georef.h" #include "dychart.h" //from chartbase.h // Projection type enum typedef enum OcpnProjType { PROJECTION_UNKNOWN, PROJECTION_MERCATOR, PROJECTION_TRANSVERSE_MERCATOR, PROJECTION_POLYCONIC }_OcpnProjType; static bool g_bCou...
31.673228
136
0.52747
[ "geometry" ]
e3a8cde8fab6fd1e21519287da12272f6d0ac227
14,979
hpp
C++
include/ProxyKernelServer.hpp
NotThatJonSmith/CASK-Proxy-Platform
05c6326f2865f1337620adc132dc3acc6b5d3b56
[ "MIT" ]
1
2022-02-08T02:28:24.000Z
2022-02-08T02:28:24.000Z
include/ProxyKernelServer.hpp
NotThatJonSmith/CASK-Proxy-Platform
05c6326f2865f1337620adc132dc3acc6b5d3b56
[ "MIT" ]
null
null
null
include/ProxyKernelServer.hpp
NotThatJonSmith/CASK-Proxy-Platform
05c6326f2865f1337620adc132dc3acc6b5d3b56
[ "MIT" ]
null
null
null
#pragma once #include <IOTarget.hpp> #include <EventQueue.hpp> #include <vector> #include <string> #include <unordered_map> #include <iostream> #include <fstream> namespace CASK { class ProxyKernelServer : public CASK::IOTarget { public: ProxyKernelServer(IOTarget *systemBus, EventQueue *eq, __uint32_t shutdo...
79.675532
154
0.756726
[ "vector" ]
e3ad71da83440f37d022121b4968d60f58d801f3
1,268
cpp
C++
Labs/lab08/vector_program/try_vector.cpp
pranavas11/CS162-Introduction-to-CS-II
c17c5c1f844de1be4a49646201d77717394dfdbc
[ "MIT" ]
null
null
null
Labs/lab08/vector_program/try_vector.cpp
pranavas11/CS162-Introduction-to-CS-II
c17c5c1f844de1be4a49646201d77717394dfdbc
[ "MIT" ]
null
null
null
Labs/lab08/vector_program/try_vector.cpp
pranavas11/CS162-Introduction-to-CS-II
c17c5c1f844de1be4a49646201d77717394dfdbc
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include "./vector.hpp" //We do not want to include either statement. We wouldn't be able to compare our vector template to the Standard //using std::vector; //using namespace std; using std::cout; using std::endl; int main() { vector<int> v; // our vector class std::vect...
29.488372
112
0.638801
[ "vector" ]
e3b0d0538e7d7c98bbbc5403a44a9960b3d6f5ab
9,516
cpp
C++
src/other/ext/openscenegraph/src/osg/AttributeDispatchers.cpp
lf-/brlcad
f91ea585c1a930a2e97c3f5a8274db8805ebbb46
[ "BSD-4-Clause", "BSD-3-Clause" ]
null
null
null
src/other/ext/openscenegraph/src/osg/AttributeDispatchers.cpp
lf-/brlcad
f91ea585c1a930a2e97c3f5a8274db8805ebbb46
[ "BSD-4-Clause", "BSD-3-Clause" ]
null
null
null
src/other/ext/openscenegraph/src/osg/AttributeDispatchers.cpp
lf-/brlcad
f91ea585c1a930a2e97c3f5a8274db8805ebbb46
[ "BSD-4-Clause", "BSD-3-Clause" ]
null
null
null
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file * included with this...
34.603636
153
0.683586
[ "vector" ]
e3b459ffd46898591b2595d1535c02c42c15a5eb
6,759
hpp
C++
physics/dynamic_frame_body.hpp
tnuvoletta/Principia
25cf2fb70c512cf86a842ed525f6ab10e57f937c
[ "MIT" ]
2
2015-02-23T19:32:16.000Z
2015-04-07T03:55:53.000Z
physics/dynamic_frame_body.hpp
tnuvoletta/Principia
25cf2fb70c512cf86a842ed525f6ab10e57f937c
[ "MIT" ]
null
null
null
physics/dynamic_frame_body.hpp
tnuvoletta/Principia
25cf2fb70c512cf86a842ed525f6ab10e57f937c
[ "MIT" ]
null
null
null
 #pragma once #include "physics/barycentric_rotating_dynamic_frame.hpp" #include "physics/body_centred_body_direction_dynamic_frame.hpp" #include "physics/body_centred_non_rotating_dynamic_frame.hpp" #include "physics/body_surface_dynamic_frame.hpp" #include "physics/dynamic_frame.hpp" #include "quantities/elementary...
41.722222
80
0.729398
[ "geometry", "vector" ]
e3c52613b06e761a4654d18e8da10fdfe376499d
7,333
hpp
C++
lib/mockturtle/include/mockturtle/views/mffc_view.hpp
Ace-Ma/LSOracle
6e940906303ef6c2c6b96352f44206567fdd50d3
[ "MIT" ]
null
null
null
lib/mockturtle/include/mockturtle/views/mffc_view.hpp
Ace-Ma/LSOracle
6e940906303ef6c2c6b96352f44206567fdd50d3
[ "MIT" ]
null
null
null
lib/mockturtle/include/mockturtle/views/mffc_view.hpp
Ace-Ma/LSOracle
6e940906303ef6c2c6b96352f44206567fdd50d3
[ "MIT" ]
null
null
null
/* mockturtle: C++ logic network library * Copyright (C) 2018 EPFL * * 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 u...
30.554167
163
0.65853
[ "vector" ]
e3c634461067f2e22a1e6322d29447772fc4718c
899
cpp
C++
CodeForces/Complete/200-299/295A-GregAndArray.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
36
2019-12-27T08:23:08.000Z
2022-01-24T20:35:47.000Z
CodeForces/Complete/200-299/295A-GregAndArray.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
10
2019-11-13T02:55:18.000Z
2021-10-13T23:28:09.000Z
CodeForces/Complete/200-299/295A-GregAndArray.cpp
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
53
2020-08-15T11:08:40.000Z
2021-10-09T15:51:38.000Z
#include <cstdio> #include <vector> int main(){ long long n, m, k; scanf("%lld %lld %lld\n", &n, &m, &k); std::vector<long long> array(n, 0), add(n + 1, 0); for(long long p = 0; p < n; p++){scanf("%lld", &array[p]);} std::vector<long long> left(m, 0), right(m, 0), value(m, 0); for(long long p = ...
25.685714
94
0.461624
[ "vector" ]
e3c6ce027190bbde32bf6b6ed862b5de24c6aee8
1,064
cpp
C++
src/homework/04_vectors/main.cpp
acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-ChelliBean
9e2f45a1d9682f5c9391a594e1284c6beffd9f58
[ "MIT" ]
null
null
null
src/homework/04_vectors/main.cpp
acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-ChelliBean
9e2f45a1d9682f5c9391a594e1284c6beffd9f58
[ "MIT" ]
null
null
null
src/homework/04_vectors/main.cpp
acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-ChelliBean
9e2f45a1d9682f5c9391a594e1284c6beffd9f58
[ "MIT" ]
null
null
null
#include "vectors.h" #include<iostream> #include<vector> using std::cout; using std::cin; /* use a vector of int with values 8, 4, 20, 88, 66, 99 Prompt user for 1 for Get Max from vector and 2 for Get primes. Prompt user for a number and return max value or list of primes and display them to screen. Program continue...
20.461538
67
0.595865
[ "vector" ]
e3d934406c45021d5c9fac41c2f09a29eb300179
150
cpp
C++
04/7_stl/01_pointer_aliasing_vector/main.cpp
HuSharp/parallel101
882a35c254538a64d3594d112caa6d1bb5315903
[ "CC0-1.0" ]
1,276
2021-12-11T05:21:48.000Z
2022-03-31T15:30:45.000Z
04/7_stl/01_pointer_aliasing_vector/main.cpp
HuSharp/parallel101
882a35c254538a64d3594d112caa6d1bb5315903
[ "CC0-1.0" ]
7
2021-12-30T15:41:34.000Z
2022-03-02T07:13:51.000Z
04/7_stl/01_pointer_aliasing_vector/main.cpp
HuSharp/parallel101
882a35c254538a64d3594d112caa6d1bb5315903
[ "CC0-1.0" ]
196
2021-12-12T08:15:36.000Z
2022-03-31T07:15:23.000Z
#include <vector> void func(std::vector<int> &a, std::vector<int> &b, std::vector<int> &c) { c[0] = a[0]; c[0] = b[0]; }
16.666667
32
0.453333
[ "vector" ]
e3ea5d3c7f29c7d20c5a4c8773f5a59f2fa51e07
6,403
cpp
C++
examples/abcinvaders/openglwindow.cpp
pi-etro/abc-invaders
72e45b9ad71b03560207ff15c94be713cfd1a682
[ "MIT" ]
null
null
null
examples/abcinvaders/openglwindow.cpp
pi-etro/abc-invaders
72e45b9ad71b03560207ff15c94be713cfd1a682
[ "MIT" ]
null
null
null
examples/abcinvaders/openglwindow.cpp
pi-etro/abc-invaders
72e45b9ad71b03560207ff15c94be713cfd1a682
[ "MIT" ]
1
2021-10-31T01:28:14.000Z
2021-10-31T01:28:14.000Z
#include "openglwindow.hpp" #include <imgui.h> #include "abcg.hpp" void OpenGLWindow::handleEvent(SDL_Event &event) { // keyboard events if (event.type == SDL_KEYDOWN) { if (event.key.keysym.sym == SDLK_SPACE) m_gameData.m_input.set(static_cast<size_t>(Input::Fire)); if (event.key.keysym.sym == SDL...
29.37156
80
0.648602
[ "render" ]
e3f05642749bb3b7b59d3546db9451090677a8ae
2,799
hpp
C++
third-party/Empirical/include/emp/matching/selectors_static/RankedSelector.hpp
koellingh/empirical-p53-simulator
aa6232f661e8fc65852ab6d3e809339557af521b
[ "MIT" ]
null
null
null
third-party/Empirical/include/emp/matching/selectors_static/RankedSelector.hpp
koellingh/empirical-p53-simulator
aa6232f661e8fc65852ab6d3e809339557af521b
[ "MIT" ]
null
null
null
third-party/Empirical/include/emp/matching/selectors_static/RankedSelector.hpp
koellingh/empirical-p53-simulator
aa6232f661e8fc65852ab6d3e809339557af521b
[ "MIT" ]
null
null
null
/** * @note This file is part of Empirical, https://github.com/devosoft/Empirical * @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md * @date 2020 * * @file RankedSelector.hpp * @brief Selector that picks the N best matches within a threshold. * */ #ifndef EMP_RA...
23.521008
96
0.628439
[ "vector" ]
e3f3961634f7b358fb83c814f02e1119ee0baa95
755
cpp
C++
713.subarray-product-less-than-k.166266173.ac.cpp
blossom2017/Leetcode
8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b
[ "Apache-2.0" ]
null
null
null
713.subarray-product-less-than-k.166266173.ac.cpp
blossom2017/Leetcode
8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b
[ "Apache-2.0" ]
null
null
null
713.subarray-product-less-than-k.166266173.ac.cpp
blossom2017/Leetcode
8bcfc2d5eeb344a1489b0d84a9a81a9f5d61281b
[ "Apache-2.0" ]
null
null
null
class Solution { public: int numSubarrayProductLessThanK(vector<int>& nums, int k) { int count=0; /* for(int i=0;i<nums.size();i++) { long long int prod=1; for(int j=i;j<nums.size();j++) { prod*=nums[j]; if(prod<k)co...
20.972222
63
0.366887
[ "vector" ]
e3f789d1bff7407db30189c6c03b1df40d2ec7ad
226
cpp
C++
src/AcetylCompound.cpp
jweinst1/acetyl
2d092b882b966fb645cf7cc89b4f8465294a7810
[ "MIT" ]
null
null
null
src/AcetylCompound.cpp
jweinst1/acetyl
2d092b882b966fb645cf7cc89b4f8465294a7810
[ "MIT" ]
null
null
null
src/AcetylCompound.cpp
jweinst1/acetyl
2d092b882b966fb645cf7cc89b4f8465294a7810
[ "MIT" ]
null
null
null
#include "AcetylCompound.h" bool AcetylCompound::hasId(const char* id) const { for(std::vector<AcetylElement>::const_iterator it = begin(); it != end(); it++) { if(it->isId(id)) { return true; } } return false; }
16.142857
80
0.641593
[ "vector" ]
e3fe6df51f825191b061730e8a8854c0c131a42c
1,615
cpp
C++
src/vedo/common/CDSphere2Sphere.cpp
IAries/VEDO
8268005d381268cafcf7024ff38fef91c6318ef4
[ "BSD-3-Clause" ]
null
null
null
src/vedo/common/CDSphere2Sphere.cpp
IAries/VEDO
8268005d381268cafcf7024ff38fef91c6318ef4
[ "BSD-3-Clause" ]
null
null
null
src/vedo/common/CDSphere2Sphere.cpp
IAries/VEDO
8268005d381268cafcf7024ff38fef91c6318ef4
[ "BSD-3-Clause" ]
null
null
null
#include <vedo/common/CDSphere2Sphere.h> #include <vedo/common/DOSphere.h> #include <aries/utility/Constants.h> namespace vedo { CDSphere_Sphere::CDSphere_Sphere(): ContactDetector() { cInfo.uShapeTypeSlave = DOShapeType::Sphere; cInfo.uShapeTypeMaster = DOShapeType::Sphere; } void CDSphere_Sphere::CalDistance(co...
25.634921
117
0.722601
[ "vector" ]
e3ffa60f9753476cd91fe8c734a1f1f0fb2ea0e8
3,925
c++
C++
src/Ogita.d/main.c++
naruto2/CodeFEM
eb689aa7573d4ac9fc83d057f99c79a5d8f3bd90
[ "MIT" ]
1
2020-09-27T07:28:04.000Z
2020-09-27T07:28:04.000Z
src/Ogita.d/main.c++
naruto2/CodeFEM
eb689aa7573d4ac9fc83d057f99c79a5d8f3bd90
[ "MIT" ]
null
null
null
src/Ogita.d/main.c++
naruto2/CodeFEM
eb689aa7573d4ac9fc83d057f99c79a5d8f3bd90
[ "MIT" ]
null
null
null
#include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <fstream> #include <vector> #include <future> #include <thread> #include <unistd.h> #include "est/sparse.hpp" #include "est/op.hpp" #include "est/xmesh.hpp" #include "est/matrix.hpp" #include "est/solver.hpp" using namespace std; v...
29.074074
192
0.575541
[ "vector" ]
5404ec3e9617420c2f3e55528ec815657892fbab
827
cc
C++
tsdf_plusplus/src/mesh/color_map.cc
TheMangalex/tsdf-plusplus
aefb7fa40b53475ce424d5082b3045587bbb5de3
[ "MIT" ]
91
2021-05-18T03:15:18.000Z
2022-03-28T01:53:02.000Z
tsdf_plusplus/src/mesh/color_map.cc
ali-robot/tsdf-plusplus
602f2aeec267a82ac3c5d88ef3eabba2ea2f3c04
[ "MIT" ]
4
2021-05-18T06:10:20.000Z
2022-01-25T11:38:33.000Z
tsdf_plusplus/src/mesh/color_map.cc
cmrobotics/tsdf-plusplus
9cb15273b2bd5e7b13f67ef563856d2f92cd34dd
[ "MIT" ]
16
2021-05-18T02:17:48.000Z
2022-03-07T02:57:01.000Z
// Copyright (c) 2020- Margarita Grinvald, Autonomous Systems Lab, ETH Zurich // Licensed under the MIT License (see LICENSE for details) #include "tsdf_plusplus/mesh/color_map.h" #include <voxblox/core/color.h> void ColorMap::getColor(const ObjectID& object_id, voxblox::Color* color) { CHECK_NOTNULL(color); CHE...
30.62963
78
0.726723
[ "mesh" ]
541076e6a0b42596ee15052cc50f4397c320af23
837
cpp
C++
codes/ch3-filter-example.cpp
polossk/Zero-Kara-FCPP
4cc3110b6c01dbfb07edc3e2b7f81e8d4f31bb67
[ "MIT" ]
77
2018-09-15T11:33:39.000Z
2022-02-20T09:10:36.000Z
codes/ch3-filter-example.cpp
polossk/Zero-Kara-FCPP
4cc3110b6c01dbfb07edc3e2b7f81e8d4f31bb67
[ "MIT" ]
null
null
null
codes/ch3-filter-example.cpp
polossk/Zero-Kara-FCPP
4cc3110b6c01dbfb07edc3e2b7f81e8d4f31bb67
[ "MIT" ]
7
2018-11-09T07:05:50.000Z
2021-02-03T12:24:59.000Z
#include <iostream> #include <algorithm> #include <vector> using std::cout; using std::endl; int main() { auto print_value = [](auto v){ for (auto e : v) cout << " " << int(e); cout << endl; }; #define DISPLAY_VALUE(v) do { cout << #v ":"; print_value(v); } while (0); std::vector<int> a = { 1, 2, 3, 4, 5,...
31
91
0.555556
[ "vector" ]
5410f639de2ab5624bed9aa242921f180cddcd2f
9,099
cpp
C++
week 5/project.cpp
mtereshkin/coursera-white-belt-cpp
54c57315bdc8733ebfdbd83b72d767f1c6e9a2d7
[ "MIT" ]
null
null
null
week 5/project.cpp
mtereshkin/coursera-white-belt-cpp
54c57315bdc8733ebfdbd83b72d767f1c6e9a2d7
[ "MIT" ]
null
null
null
week 5/project.cpp
mtereshkin/coursera-white-belt-cpp
54c57315bdc8733ebfdbd83b72d767f1c6e9a2d7
[ "MIT" ]
null
null
null
#include <iostream> #include <sstream> #include <string> #include <map> #include <vector> #include<algorithm> #include <stdexcept> #include <iostream> #include <exception> #include <string> #include <iomanip> #include <iterator> using namespace std; class Date { public: Date(int year_input, int month_input, int...
32.151943
149
0.411803
[ "vector" ]
5418c01f15ab1df5c5bb6987a85093893285bffd
1,205
cpp
C++
src/main/cpp/binarysearch/edges_that_disconnect_the_graph.cpp
jo3-l/cp-practice
d1db0c8e9269c8720b31013068dff948b33f57fd
[ "MIT" ]
5
2022-01-05T20:15:47.000Z
2022-02-15T22:40:44.000Z
src/main/cpp/binarysearch/edges_that_disconnect_the_graph.cpp
jo3-l/ccc-java
7a77f365e52496967e5265ecefb34f3b7db5fae8
[ "MIT" ]
3
2022-01-06T01:34:42.000Z
2022-01-20T23:46:53.000Z
src/main/cpp/binarysearch/edges_that_disconnect_the_graph.cpp
jo3-l/ccc-java
7a77f365e52496967e5265ecefb34f3b7db5fae8
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; template <class Fun> class y_combinator_result { Fun fun_; public: template <class T> explicit y_combinator_result(T &&fun) : fun_(std::forward<T>(fun)) {} template <class... Args> decltype(auto) operator()(Args &&...args) { return fun_(std::ref(*this), std::forward<A...
28.690476
134
0.629876
[ "vector" ]
541ec14eb94f24da28b053ef79ce4ad2e101c1d4
1,518
cpp
C++
ZJ/zj a017.cpp
Xi-Plus/OJ-Code
7ff6d691f34c9553d53dc9cddf90ad7dc7092349
[ "MIT" ]
null
null
null
ZJ/zj a017.cpp
Xi-Plus/OJ-Code
7ff6d691f34c9553d53dc9cddf90ad7dc7092349
[ "MIT" ]
null
null
null
ZJ/zj a017.cpp
Xi-Plus/OJ-Code
7ff6d691f34c9553d53dc9cddf90ad7dc7092349
[ "MIT" ]
null
null
null
// By xiplus #include <bits/stdc++.h> #define endl '\n' using namespace std; vector<char> op; vector<int> ans; map<char, int> oporder; int a, b; bool ophigher(char op1, char op2) { return oporder[op1] < oporder[op2]; } void action(char c) { b = ans.back(); ans.pop_back(); a = ans.back(); ans.pop_back(); switch(c) {...
18.289157
59
0.498024
[ "vector" ]
f9ac30017eb8b1ca70fefb6d5a61967489908e7d
8,567
cpp
C++
Speck/Speck/JointShowcaseState.cpp
Bojanovski/Speck
41d64de63c54424e06b66f653e854cab8a1cc6f8
[ "MIT" ]
4
2019-01-27T01:17:27.000Z
2021-09-16T05:29:33.000Z
Speck/Speck/JointShowcaseState.cpp
Bojanovski/Speck
41d64de63c54424e06b66f653e854cab8a1cc6f8
[ "MIT" ]
null
null
null
Speck/Speck/JointShowcaseState.cpp
Bojanovski/Speck
41d64de63c54424e06b66f653e854cab8a1cc6f8
[ "MIT" ]
null
null
null
#include "JointShowcaseState.h" #include <EngineCore.h> #include <ProcessAndSystemData.h> #include <AppCommands.h> #include <WorldCommands.h> #include <World.h> #include <InputHandler.h> #include <SetLookAtCameraController.h> #include "SpeckPrimitivesGenerator.h" #include "StaticPrimitivesGenerator.h" using namespace...
36.76824
177
0.757908
[ "vector", "transform" ]
f9aca1d66f63bb390333ca59a18a020454f48c58
10,054
cpp
C++
MultiStationWorker.cpp
EricAlex/structrock
754d8c481d22a48ea7eb4e055eb16c64c44055ab
[ "BSD-3-Clause" ]
11
2016-05-10T07:07:35.000Z
2022-03-23T02:57:14.000Z
MultiStationWorker.cpp
liuxinren456852/structrock
1a5e660bdbb5f80fb2ab479b7398c072e2573fd1
[ "BSD-3-Clause" ]
null
null
null
MultiStationWorker.cpp
liuxinren456852/structrock
1a5e660bdbb5f80fb2ab479b7398c072e2573fd1
[ "BSD-3-Clause" ]
11
2016-03-25T01:24:59.000Z
2020-06-04T23:40:06.000Z
/* * Software License Agreement (BSD License) * * Xin Wang * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyrigh...
41.374486
126
0.740501
[ "vector" ]
f9c1efe940e16b53b27807bf58fc53f7298d8e12
2,560
cpp
C++
production_apps/ESPRESO/src/output/resultstore/libvtk/vtkxml.cpp
readex-eu/readex-apps
38493b11806c306f4e8f1b7b2d97764b45fac8e2
[ "BSD-3-Clause" ]
2
2020-11-25T13:10:11.000Z
2021-03-15T20:26:35.000Z
production_apps/ESPRESO/src/output/resultstore/libvtk/vtkxml.cpp
readex-eu/readex-apps
38493b11806c306f4e8f1b7b2d97764b45fac8e2
[ "BSD-3-Clause" ]
null
null
null
production_apps/ESPRESO/src/output/resultstore/libvtk/vtkxml.cpp
readex-eu/readex-apps
38493b11806c306f4e8f1b7b2d97764b45fac8e2
[ "BSD-3-Clause" ]
1
2018-09-30T19:04:38.000Z
2018-09-30T19:04:38.000Z
#include <fstream> #include "vtkSmartPointer.h" #include "vtkUnstructuredGrid.h" #include "vtkXMLWriter.h" #include "../../regiondata.h" #include "../../../assembler/solution.h" #include "../../../mesh/structures/elementtypes.h" #include "../vtkxmlascii.h" using namespace espreso; VTKXML::VTKXML(const OutputCon...
29.090909
120
0.707422
[ "mesh", "vector" ]
f9c8ac258406c1f9437d74f49deba8aa0d9dee45
555
cpp
C++
source/vxEngine/ActionPlayAnimation.cpp
DennisWandschura/vxEngine
1396a65f7328aaed50dd34634c65cac561271b9e
[ "MIT" ]
1
2015-11-29T11:38:04.000Z
2015-11-29T11:38:04.000Z
source/vxEngine/ActionPlayAnimation.cpp
DennisWandschura/vxEngine
1396a65f7328aaed50dd34634c65cac561271b9e
[ "MIT" ]
null
null
null
source/vxEngine/ActionPlayAnimation.cpp
DennisWandschura/vxEngine
1396a65f7328aaed50dd34634c65cac561271b9e
[ "MIT" ]
null
null
null
#include "ActionPlayAnimation.h" #include <PxRigidDynamic.h> ActionPlayAnimation::ActionPlayAnimation() :m_animation(), m_currentFrame(0), m_frameCount(0) { } ActionPlayAnimation::~ActionPlayAnimation() { } void ActionPlayAnimation::run() { auto currentFrame = m_currentFrame; auto &layer = m_animation->layers...
16.818182
51
0.758559
[ "transform" ]
f9d1b3cf80d3beead02784ddf5863136a13bfa68
45,438
cpp
C++
src/adv_diff/AdvDiffHierarchyIntegrator.cpp
MSV-Project/IBAMR
3cf614c31bb3c94e2620f165ba967cba719c45ea
[ "BSD-3-Clause" ]
2
2017-12-06T06:16:36.000Z
2021-03-13T12:28:08.000Z
src/adv_diff/AdvDiffHierarchyIntegrator.cpp
MSV-Project/IBAMR
3cf614c31bb3c94e2620f165ba967cba719c45ea
[ "BSD-3-Clause" ]
null
null
null
src/adv_diff/AdvDiffHierarchyIntegrator.cpp
MSV-Project/IBAMR
3cf614c31bb3c94e2620f165ba967cba719c45ea
[ "BSD-3-Clause" ]
null
null
null
// Filename: AdvDiffHierarchyIntegrator.cpp // Created on 21 May 2012 by Boyce Griffith // // Copyright (c) 2002-2013, Boyce Griffith // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // *...
40.788151
205
0.717791
[ "object", "vector" ]
f9d3b7f02dd1ceca0c3b54f44e9bc641d39bb4fe
4,287
cpp
C++
Source/Position/DirectionPredictor.cpp
favorart/robot-hand
55ea2a74573972a6e5efcf525485e56918d81086
[ "MIT" ]
2
2016-01-16T09:28:40.000Z
2016-04-14T05:21:20.000Z
Source/Position/DirectionPredictor.cpp
favorart/robot-hand
55ea2a74573972a6e5efcf525485e56918d81086
[ "MIT" ]
null
null
null
Source/Position/DirectionPredictor.cpp
favorart/robot-hand
55ea2a74573972a6e5efcf525485e56918d81086
[ "MIT" ]
null
null
null
#include "StdAfx.h" #include "Position.h" namespace Positions { using namespace std; using namespace HandMoves; //------------------------------------------ DirectionPredictor::DirectionPredictor (IN Hand &hand) { hand.SET_DEFAULT; hand_base = hand.position; for ( auto j : hand.joints_ ) { ...
28.203947
99
0.520411
[ "vector" ]
f9d4da2b65353d59caf6ed93b47833f1072bc621
15,720
cpp
C++
tools/developer/generatelts/generatelts.cpp
nouwaarom/mCRL2
cd77f9ab46c9568aa655a49d4d49c08d1768e870
[ "BSL-1.0" ]
null
null
null
tools/developer/generatelts/generatelts.cpp
nouwaarom/mCRL2
cd77f9ab46c9568aa655a49d4d49c08d1768e870
[ "BSL-1.0" ]
null
null
null
tools/developer/generatelts/generatelts.cpp
nouwaarom/mCRL2
cd77f9ab46c9568aa655a49d4d49c08d1768e870
[ "BSL-1.0" ]
null
null
null
// Author(s): Wieger Wesselink // Copyright: see the accompanying file COPYING or copy at // https://github.com/mCRL2org/mCRL2/blob/master/COPYING // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // /// \file t...
45.172414
197
0.635242
[ "transform" ]
f9dba936c76c047d8094211ebe444813e95ee4db
18,771
cpp
C++
src/raygen/sceneloader.cpp
jingwood/raygen-renderer
c77f3efc4753690bb2a4dc1c58ed5c1ea8d6c814
[ "MIT" ]
3
2020-01-18T01:30:02.000Z
2021-12-21T15:15:26.000Z
src/raygen/sceneloader.cpp
jingwood/raygen-renderer
c77f3efc4753690bb2a4dc1c58ed5c1ea8d6c814
[ "MIT" ]
null
null
null
src/raygen/sceneloader.cpp
jingwood/raygen-renderer
c77f3efc4753690bb2a4dc1c58ed5c1ea8d6c814
[ "MIT" ]
1
2021-08-03T05:16:15.000Z
2021-08-03T05:16:15.000Z
/////////////////////////////////////////////////////////////////////////////// // Raygen Renderer // A simple cross-platform ray tracing engine for 3D graphics rendering. // // MIT License // (c) 2016-2020 Jingwood, unvell.com, all rights reserved. //////////////////////////////////////////////////////////////////...
25.998615
122
0.643919
[ "mesh", "object", "vector", "3d" ]
f9eb4aa343653b6fc3ac323ef3e86e1641f81498
4,441
cc
C++
db/nvmdb.cc
DaviBrg/nvrec_ycsb
ebb786793c48dd1565ff4d891c3c5523f1ad2ccd
[ "Apache-2.0" ]
null
null
null
db/nvmdb.cc
DaviBrg/nvrec_ycsb
ebb786793c48dd1565ff4d891c3c5523f1ad2ccd
[ "Apache-2.0" ]
null
null
null
db/nvmdb.cc
DaviBrg/nvrec_ycsb
ebb786793c48dd1565ff4d891c3c5523f1ad2ccd
[ "Apache-2.0" ]
null
null
null
#include "db/nvmdb.h" #include <algorithm> #include "recovery/nvmblk_engine.h" #include "recovery/nvmlog_engine.h" #include "recovery/nvrec_engine.h" using namespace ycsbc; using Tables = std::map<std::string, NVMDB::Table>; NVMDB::NVMDB(kNVMDBType type) { switch (type) { case kNVMBlk: rec_engine_=...
30.006757
80
0.583202
[ "vector" ]
f9eb4ffa56b3b4eedf4a6dd7ae995d10a4992da7
2,492
cpp
C++
Cartwheel/cartwheel-3d/Core/TwoLinkIK.cpp
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/cartwheel-3d/Core/TwoLinkIK.cpp
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/cartwheel-3d/Core/TwoLinkIK.cpp
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
#include "TwoLinkIK.h" TwoLinkIK::TwoLinkIK(void){ } TwoLinkIK::~TwoLinkIK(void){ } /** All quantities that are passed in as parameters here need to be expressed in the same "global" coordinate frame, unless otherwise noted: - p1: this is the location of the origin of the parent link - p2: this is the target lo...
51.916667
197
0.76565
[ "vector" ]
f9f306f7b803d240532c3b8948680ae8193d5a6e
8,067
cpp
C++
test/distribution/decorrelated_gaussian_test.cpp
aeolusbot-tommyliu/fl
a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02
[ "MIT" ]
17
2015-07-03T06:53:05.000Z
2021-05-15T20:55:12.000Z
test/distribution/decorrelated_gaussian_test.cpp
aeolusbot-tommyliu/fl
a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02
[ "MIT" ]
3
2015-02-20T12:48:17.000Z
2019-12-18T08:45:13.000Z
test/distribution/decorrelated_gaussian_test.cpp
aeolusbot-tommyliu/fl
a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02
[ "MIT" ]
15
2015-02-20T11:34:14.000Z
2021-05-15T20:55:13.000Z
/* * This is part of the fl library, a C++ Bayesian filtering library * (https://github.com/filtering-library) * * Copyright (c) 2015 Max Planck Society, * Autonomous Motion Department, * Institute for Intelligent Systems * * This Source Code Form is subject to the terms of the MIT License (MIT). ...
31.635294
81
0.640263
[ "vector" ]
f9fb91ea2b16c7add2d8b4a0abeb4701737bed0e
102,734
cpp
C++
cognitics/meshgen/ws/WebServices.cpp
mikedig/cdb-productivity-api
e2bedaa550a8afa780c01f864d72e0aebd87dd5a
[ "MIT" ]
null
null
null
cognitics/meshgen/ws/WebServices.cpp
mikedig/cdb-productivity-api
e2bedaa550a8afa780c01f864d72e0aebd87dd5a
[ "MIT" ]
null
null
null
cognitics/meshgen/ws/WebServices.cpp
mikedig/cdb-productivity-api
e2bedaa550a8afa780c01f864d72e0aebd87dd5a
[ "MIT" ]
null
null
null
#include "rapidjson/filereadstream.h" #include "rapidjson/document.h" #include "WebServices.h" #include "ip/GDALRasterSampler.h" #include <fstream> #include <vector> #include <iomanip> #include <iterator> #include <iostream> #include <string> #include "b64/base64.h" #include <cctype> #include "gdal_utils....
42.08685
721
0.538283
[ "vector", "transform" ]
e60186c84ee6a604e9697f6ec3dfefcf88c1419e
31,552
cpp
C++
src/liblightmetrica/renderer/renderer_vcm.cpp
jammm/lightmetrica-v2
6864942ec48d37f2c35dc30a38a26d7cc4bb527e
[ "MIT" ]
150
2015-12-28T10:26:02.000Z
2021-03-17T14:36:16.000Z
src/liblightmetrica/renderer/renderer_vcm.cpp
jammm/lightmetrica-v2
6864942ec48d37f2c35dc30a38a26d7cc4bb527e
[ "MIT" ]
null
null
null
src/liblightmetrica/renderer/renderer_vcm.cpp
jammm/lightmetrica-v2
6864942ec48d37f2c35dc30a38a26d7cc4bb527e
[ "MIT" ]
17
2016-02-08T10:57:55.000Z
2020-09-04T03:57:33.000Z
/* Lightmetrica - A modern, research-oriented renderer Copyright (c) 2015 Hisanari Otsu 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 ...
39.44
232
0.483773
[ "render", "vector" ]