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
da8c28984bc6d475be17819091daef1d5557b6f7
1,641
cpp
C++
Spoj/A_Needle_in_the_Haystack.cpp
ANONYMOUS609/Competitive-Programming
d3753eeee24a660963f1d8911bf887c8f41f5677
[ "MIT" ]
2
2019-01-30T12:45:18.000Z
2021-05-06T19:02:51.000Z
Spoj/A_Needle_in_the_Haystack.cpp
ANONYMOUS609/Competitive-Programming
d3753eeee24a660963f1d8911bf887c8f41f5677
[ "MIT" ]
null
null
null
Spoj/A_Needle_in_the_Haystack.cpp
ANONYMOUS609/Competitive-Programming
d3753eeee24a660963f1d8911bf887c8f41f5677
[ "MIT" ]
3
2020-10-02T15:42:04.000Z
2022-03-27T15:14:16.000Z
#include<bits/stdc++.h> using namespace std; #define fast ios::sync_with_stdio(false);cin.tie(0) #define pb push_back #define digit(x) floor(log10(x))+1 #define mod 1000000007 #define endl "\n" typedef long long ll; typedef long double ld; typedef vector<vector<ll> > matrix; typedef vector<ll> arr; typedef vector<strin...
20.259259
51
0.470445
[ "vector" ]
da8ca9ed581699da1a6938be6c34056c2d68afee
17,864
cc
C++
mash/wm/bridge/wm_window_mus.cc
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
1
2020-09-15T08:43:34.000Z
2020-09-15T08:43:34.000Z
mash/wm/bridge/wm_window_mus.cc
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
mash/wm/bridge/wm_window_mus.cc
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
// 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 "mash/wm/bridge/wm_window_mus.h" #include "ash/wm/common/container_finder.h" #include "ash/wm/common/window_state.h" #include "ash/wm/common/wm_...
29
80
0.704266
[ "vector" ]
da8feca8fbce7724e1fcd8314d05b800f7562425
19,921
cpp
C++
wbsModels/LaricobiusNigrinus/LaricobiusNigrinusModel.cpp
RNCan/WeatherBasedSimulationFramework
19df207d11b1dddf414d78e52bece77f31d45df8
[ "MIT" ]
6
2017-05-26T21:19:41.000Z
2021-09-03T14:17:29.000Z
wbsModels/LaricobiusNigrinus/LaricobiusNigrinusModel.cpp
RNCan/WeatherBasedSimulationFramework
19df207d11b1dddf414d78e52bece77f31d45df8
[ "MIT" ]
5
2016-02-18T12:39:58.000Z
2016-03-13T12:57:45.000Z
wbsModels/LaricobiusNigrinus/LaricobiusNigrinusModel.cpp
RNCan/WeatherBasedSimulationFramework
19df207d11b1dddf414d78e52bece77f31d45df8
[ "MIT" ]
1
2019-06-16T02:49:20.000Z
2019-06-16T02:49:20.000Z
//*********************************************************** // 07/03/2019 1.0.0 Rémi Saint-Amant Creation //*********************************************************** #include "LaricobiusNigrinusModel.h" #include "ModelBase/EntryPoint.h" #include "Basic\DegreeDays.h" #include <boost/math/distributions/weibu...
26.561333
145
0.57472
[ "vector", "model" ]
da9db09aee33d5de9077420cf1f23ed1ac937820
14,078
cpp
C++
ThreadManager/mainwindow.cpp
gusenov/task-manager-qt
373df4371222d09a73752668a14e785e4109e2c4
[ "MIT" ]
3
2020-07-21T14:46:13.000Z
2021-12-25T22:05:33.000Z
ThreadManager/mainwindow.cpp
gusenov/task-manager-qt
373df4371222d09a73752668a14e785e4109e2c4
[ "MIT" ]
null
null
null
ThreadManager/mainwindow.cpp
gusenov/task-manager-qt
373df4371222d09a73752668a14e785e4109e2c4
[ "MIT" ]
1
2021-05-22T14:59:17.000Z
2021-05-22T14:59:17.000Z
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QDebug> // Конструктор: MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), // вызов родительского конструктора. ui(new Ui::MainWindow) { ui->setupUi(this); // Отключение кнопки для разворачивания окна // и возмож...
33.124706
123
0.669768
[ "model" ]
daa1c449fe6f1d376384b46dc22952d2baa435e7
4,540
hpp
C++
Source/AllProjects/CoreTech/CQCIR/CQCIR_BlasterPersistData.hpp
MarkStega/CQC
c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07
[ "MIT" ]
51
2020-12-26T18:17:16.000Z
2022-03-15T04:29:35.000Z
Source/AllProjects/CoreTech/CQCIR/CQCIR_BlasterPersistData.hpp
MarkStega/CQC
c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07
[ "MIT" ]
null
null
null
Source/AllProjects/CoreTech/CQCIR/CQCIR_BlasterPersistData.hpp
MarkStega/CQC
c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07
[ "MIT" ]
4
2020-12-28T07:24:39.000Z
2021-12-29T12:09:37.000Z
// // FILE NAME: CQCIR_BlasterPersistData.hpp // // AUTHOR: Dean Roddey // // CREATED: 09/12/2003 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2020 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https:...
31.971831
79
0.432159
[ "model" ]
daa6081552642afc69895bc58d7192f4d8387b27
547
cpp
C++
Library/Source/EnergyManager/Benchmarking/Workloads/Workload.cpp
NB4444/BachelorProjectEnergyManager
d1fd93dcc83af6d6acd36b7efda364ac2aab90eb
[ "MIT" ]
null
null
null
Library/Source/EnergyManager/Benchmarking/Workloads/Workload.cpp
NB4444/BachelorProjectEnergyManager
d1fd93dcc83af6d6acd36b7efda364ac2aab90eb
[ "MIT" ]
null
null
null
Library/Source/EnergyManager/Benchmarking/Workloads/Workload.cpp
NB4444/BachelorProjectEnergyManager
d1fd93dcc83af6d6acd36b7efda364ac2aab90eb
[ "MIT" ]
null
null
null
#include "./Workload.hpp" #include "EnergyManager/Utility/Exceptions/Exception.hpp" namespace EnergyManager { namespace Benchmarking { namespace Workloads { void Workload::onRun() { for(const auto& operation : operations_) { operation->run(); } } Workload::Workload(std::vector<std::shared_pt...
24.863636
124
0.705667
[ "vector" ]
dab0a0cf490b7d1a3986bb9d9a06d5a8992a6cb3
5,492
hpp
C++
fon9/crypto/CryptoTools.hpp
fonwin/Plan
3bfa9407ab04a26293ba8d23c2208bbececb430e
[ "Apache-2.0" ]
21
2019-01-29T14:41:46.000Z
2022-03-11T00:22:56.000Z
fon9/crypto/CryptoTools.hpp
fonwin/Plan
3bfa9407ab04a26293ba8d23c2208bbececb430e
[ "Apache-2.0" ]
null
null
null
fon9/crypto/CryptoTools.hpp
fonwin/Plan
3bfa9407ab04a26293ba8d23c2208bbececb430e
[ "Apache-2.0" ]
9
2019-01-27T14:19:33.000Z
2022-03-11T06:18:24.000Z
/// \file fon9/crypto/CryptoTools.hpp /// /// 您應該使用 OpenSSL or Windows Bcrypt.dll /// 這裡僅提供一些簡單的包裝, 並降低相依姓. /// /// \author fonwinz@gmail.com #ifndef __fon9_crypto_CryptoTools_hpp__ #define __fon9_crypto_CryptoTools_hpp__ #include "fon9/Utility.hpp" #include "fon9/Endian.hpp" #include "fon9/buffer/MemBlock.hpp" names...
32.497041
99
0.624181
[ "transform" ]
dab380b8b913f4451827b2f5391f81c300e6ec36
5,326
tpp
C++
core/src/quadrature/tensor_product.tpp
maierbn/opendihu
577650e2f6b36a7306766b0f4176f8124458cbf0
[ "MIT" ]
17
2018-11-25T19:29:34.000Z
2021-09-20T04:46:22.000Z
core/src/quadrature/tensor_product.tpp
maierbn/opendihu
577650e2f6b36a7306766b0f4176f8124458cbf0
[ "MIT" ]
1
2020-11-12T15:15:58.000Z
2020-12-29T15:29:24.000Z
core/src/quadrature/tensor_product.tpp
maierbn/opendihu
577650e2f6b36a7306766b0f4176f8124458cbf0
[ "MIT" ]
4
2018-10-17T12:18:10.000Z
2021-05-28T13:24:20.000Z
#include "quadrature/tensor_product.h" #include "utility/math_utility.h" namespace Quadrature { template<unsigned int D, typename Quadrature> constexpr int TensorProductBase<D,Quadrature>:: numberEvaluations() { // compile-time power function return MathUtility::powConst(Quadrature::numberEvaluations(),D); } //...
34.810458
132
0.721179
[ "3d" ]
dab74df410eea3dc38bf095246eb830a235bd381
17,992
cpp
C++
udp_discovery_peer.cpp
truvorskameikin/udp-discovery-cpp
9423117dbf30d4297e7601e7169e7d1ffd84f8b7
[ "MIT" ]
29
2017-01-18T14:13:16.000Z
2022-01-19T13:08:28.000Z
udp_discovery_peer.cpp
truvorskameikin/udp-discovery-cpp
9423117dbf30d4297e7601e7169e7d1ffd84f8b7
[ "MIT" ]
20
2017-02-16T12:40:31.000Z
2021-11-27T20:24:43.000Z
udp_discovery_peer.cpp
truvorskameikin/udp-discovery-cpp
9423117dbf30d4297e7601e7169e7d1ffd84f8b7
[ "MIT" ]
11
2017-04-02T01:51:11.000Z
2021-09-02T02:46:23.000Z
#include "udp_discovery_peer.hpp" #include <stdlib.h> #include <string.h> #include <iostream> #include <vector> #include "udp_discovery_protocol.hpp" // sockets #if defined(_WIN32) #define NOMINMAX #include <winsock2.h> #include <ws2tcpip.h> typedef SOCKET SocketType; typedef int AddressLenType; const SocketType kI...
24.150336
80
0.630336
[ "object", "vector" ]
dab9bae5e6ffa6fa6dfe7154779f03c1f092784d
14,195
cpp
C++
src/input/parsers/xdmf/heavydata/griddata.cpp
It4innovations/mesio
de966f2a13e1e301be818485815d43ceff1e7094
[ "BSD-3-Clause" ]
1
2021-09-16T10:15:50.000Z
2021-09-16T10:15:50.000Z
src/input/parsers/xdmf/heavydata/griddata.cpp
It4innovations/mesio
de966f2a13e1e301be818485815d43ceff1e7094
[ "BSD-3-Clause" ]
null
null
null
src/input/parsers/xdmf/heavydata/griddata.cpp
It4innovations/mesio
de966f2a13e1e301be818485815d43ceff1e7094
[ "BSD-3-Clause" ]
null
null
null
#include "griddata.h" #include "basis/utilities/parser.h" #include "wrappers/mpi/communication.h" #include "esinfo/eslog.hpp" #include "input/meshbuilder.h" #include "input/parsers/mixedelementsparser.h" #include "input/parsers/xdmf/lightdata/lightdata.h" #include "input/parsers/xdmf/lightdata/xdmfdataitem.h" #include...
36.966146
146
0.644241
[ "mesh", "geometry", "vector" ]
dac8ee510bb5a6506dcae0b161d978953c754c3f
2,440
cc
C++
emr/src/model/GetAuditLogsResult.cc
iamzken/aliyun-openapi-cpp-sdk
3c991c9ca949b6003c8f498ce7a672ea88162bf1
[ "Apache-2.0" ]
null
null
null
emr/src/model/GetAuditLogsResult.cc
iamzken/aliyun-openapi-cpp-sdk
3c991c9ca949b6003c8f498ce7a672ea88162bf1
[ "Apache-2.0" ]
null
null
null
emr/src/model/GetAuditLogsResult.cc
iamzken/aliyun-openapi-cpp-sdk
3c991c9ca949b6003c8f498ce7a672ea88162bf1
[ "Apache-2.0" ]
1
2020-11-27T09:13:12.000Z
2020-11-27T09:13:12.000Z
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
28.045977
75
0.735656
[ "vector", "model" ]
dadb407394cef503db2efc32903b329da21795f6
33,235
cpp
C++
controller/src/beerocks/master/wfa_ca.cpp
marcos-mxl/prplMesh
de16b3f74cf90d5d269e4b6f43723a34bc065917
[ "BSD-2-Clause-Patent" ]
null
null
null
controller/src/beerocks/master/wfa_ca.cpp
marcos-mxl/prplMesh
de16b3f74cf90d5d269e4b6f43723a34bc065917
[ "BSD-2-Clause-Patent" ]
null
null
null
controller/src/beerocks/master/wfa_ca.cpp
marcos-mxl/prplMesh
de16b3f74cf90d5d269e4b6f43723a34bc065917
[ "BSD-2-Clause-Patent" ]
null
null
null
#include "wfa_ca.h" #include "son_actions.h" #include <beerocks/bcl/beerocks_string_utils.h> #include <beerocks/bcl/network/network_utils.h> #include <beerocks/tlvf/beerocks_message.h> #include <beerocks/tlvf/beerocks_message_bml.h> #include <tlvf/wfa_map/eTlvTypeMap.h> #include <tlvf/wfa_map/tlvChannelPreference....
36.602423
100
0.58634
[ "object", "vector", "model", "transform" ]
dadc674ca3014e18b1e2eddcda34f9b251627d81
519
hpp
C++
src/ui/focusable.hpp
ArthurSonzogni/beagle-config
8283226adb5dd6844f8b0c24b18da20aab74e043
[ "MIT" ]
null
null
null
src/ui/focusable.hpp
ArthurSonzogni/beagle-config
8283226adb5dd6844f8b0c24b18da20aab74e043
[ "MIT" ]
null
null
null
src/ui/focusable.hpp
ArthurSonzogni/beagle-config
8283226adb5dd6844f8b0c24b18da20aab74e043
[ "MIT" ]
null
null
null
#ifndef BEAGLE_CONFIG_UI_PANEL_FOCUSABLE #define BEAGLE_CONFIG_UI_PANEL_FOCUSABLE namespace ui { using namespace ftxui; // A simple text highlighted when focused. class Focusable : public ftxui::ComponentBase { public: Focusable(const std::wstring& title) : title_(title) {} Element Render() final { auto styl...
22.565217
67
0.734104
[ "render" ]
dadcd58425cd07ae82356d4f5a35cfebbd64467c
3,423
cpp
C++
training/POJ/3281.cpp
voleking/ICPC
fc2cf408fa2607ad29b01eb00a1a212e6d0860a5
[ "MIT" ]
68
2017-10-08T04:44:23.000Z
2019-08-06T20:15:02.000Z
training/POJ/3281.cpp
voleking/ICPC
fc2cf408fa2607ad29b01eb00a1a212e6d0860a5
[ "MIT" ]
null
null
null
training/POJ/3281.cpp
voleking/ICPC
fc2cf408fa2607ad29b01eb00a1a212e6d0860a5
[ "MIT" ]
18
2017-05-31T02:52:23.000Z
2019-07-05T09:18:34.000Z
// written at 17:27 on 20 Jan 2017 #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <string> #include <sstream> #include <algorithm> #include <complex> #include <deque> #include <list> #include <map> #include <q...
26.129771
118
0.488168
[ "vector" ]
daefab9fa12fc4a8ff1fbc0f609939a6982e2281
21,334
cpp
C++
engine/src/physics/DeformableBody.cpp
targodan/gameProgramming
5c0b36bee271dca65636d0317324a2bb786613f0
[ "MIT" ]
1
2019-07-14T11:32:30.000Z
2019-07-14T11:32:30.000Z
engine/src/physics/DeformableBody.cpp
targodan/gameProgramming
5c0b36bee271dca65636d0317324a2bb786613f0
[ "MIT" ]
null
null
null
engine/src/physics/DeformableBody.cpp
targodan/gameProgramming
5c0b36bee271dca65636d0317324a2bb786613f0
[ "MIT" ]
null
null
null
#include "DeformableBody.h" #include <easylogging++.h> #ifndef ABS #define ABS(x) ((x) < 0 ? -(x) : (x)) #endif namespace engine { namespace physics { SparseMatrix<double> DeformableBody::calculateMaterialMatrix() const { SparseMatrix<double> materialMat(6, 6); materialMat.reserve...
51.781553
205
0.562154
[ "mesh", "vector" ]
8ccc223c7085019fcfb9df22c0ca4120dabb789f
331
cpp
C++
zadanie8/zadanie8.cpp
majkel84/kurs_cpp_podstawowy
eddaffb310c6132304aa26dc87ec04ddfc09c541
[ "MIT" ]
1
2020-05-19T09:31:06.000Z
2020-05-19T09:31:06.000Z
zadanie8/zadanie8.cpp
majkel84/kurs_cpp_podstawowy
eddaffb310c6132304aa26dc87ec04ddfc09c541
[ "MIT" ]
2
2020-05-22T22:01:52.000Z
2020-05-30T09:24:42.000Z
zadanie8/zadanie8.cpp
majkel84/kurs_cpp_podstawowy
eddaffb310c6132304aa26dc87ec04ddfc09c541
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> std::vector<int> foo(int count, int sequence) { std::vector<int> vec(count); for (size_t i = 0 ; i < count ; ++i) { vec[i] = sequence * (i + 1); } return vec; } // int main() { // for (const int element : foo(10, 5)) // std::cout << element << " | "; // retu...
17.421053
47
0.528701
[ "vector" ]
8cda53a8a22b8d34b0428305e5ae23d6c900946e
3,275
hpp
C++
redis/commands-set.hpp
cblauvelt/redis-client
e7e587f47f32adf2ad5c317138f58f128644f809
[ "MIT" ]
null
null
null
redis/commands-set.hpp
cblauvelt/redis-client
e7e587f47f32adf2ad5c317138f58f128644f809
[ "MIT" ]
3
2022-02-02T04:29:21.000Z
2022-03-17T02:30:12.000Z
redis/commands-set.hpp
cblauvelt/redis-client
e7e587f47f32adf2ad5c317138f58f128644f809
[ "MIT" ]
null
null
null
#pragma once #include <map> #include <vector> #include "redis/command.hpp" #include "redis/types.hpp" #include "redis/value.hpp" namespace redis { template <typename... Args> command sadd(std::string key, Args... members) { auto commandStrings = std::vector<std::string>{"SADD", key}; (commandStrings.push_ba...
28.72807
76
0.665954
[ "vector" ]
8ce195cee3d33d53bbc5c58f8fe397d2731d2c47
2,021
cpp
C++
Lepus3D/Source/Transform/Transform.cpp
tomezpl/LepusEngine
57b7e59e27464dbe91f300526a9b6975acd5ad93
[ "MIT" ]
null
null
null
Lepus3D/Source/Transform/Transform.cpp
tomezpl/LepusEngine
57b7e59e27464dbe91f300526a9b6975acd5ad93
[ "MIT" ]
22
2017-08-25T23:27:54.000Z
2019-12-02T13:35:40.000Z
Lepus3D/Source/Transform/Transform.cpp
tomezpl/LepusEngine
57b7e59e27464dbe91f300526a9b6975acd5ad93
[ "MIT" ]
null
null
null
#include "../Transform.h" using namespace LepusEngine::Lepus3D; Transform::Transform(Vector3 p, Vector3 r, Vector3 s) : Transform::Transform() { m_Pos = glm::vec4(p.x, p.y, p.z, 1.f); m_Rot = glm::vec4(r.x, r.y, r.z, 1.f); m_Scale = glm::vec4(s.x, s.y, s.z, 1.f); } glm::mat4 Transform::GetMatrix() { glm::mat4 re...
20.414141
90
0.636813
[ "transform" ]
8ce71cc64626857f4abfc6f6b444c6920fdd1875
596
cc
C++
leetcode/055-jump-game/can_jump_v2.cc
dantin/poj
812859a982da666daecedbb1197afed21485a432
[ "BSD-3-Clause" ]
null
null
null
leetcode/055-jump-game/can_jump_v2.cc
dantin/poj
812859a982da666daecedbb1197afed21485a432
[ "BSD-3-Clause" ]
null
null
null
leetcode/055-jump-game/can_jump_v2.cc
dantin/poj
812859a982da666daecedbb1197afed21485a432
[ "BSD-3-Clause" ]
null
null
null
// version 1.0 2018-05-14 #include <iostream> #include <vector> using namespace std; class Solution { public: bool canJump(vector<int> &nums) { int maxCover = 0; for (int i = 0; i <= maxCover && i < nums.size(); ++i) { if (nums[i] + i > maxCover) { maxCover = nums[i] + i; } if ...
14.536585
60
0.526846
[ "vector" ]
8ce9505955fedbc4baea7d07fe687b5c1bc2a786
5,337
cpp
C++
ArdUI.cpp
ivanseidel/ArdUI
599fe2bcb7c8e7d496a640866d0f242cc30d5421
[ "MIT" ]
11
2015-02-03T22:24:16.000Z
2021-08-07T17:49:37.000Z
ArdUI.cpp
ivanseidel/ArdUI
599fe2bcb7c8e7d496a640866d0f242cc30d5421
[ "MIT" ]
null
null
null
ArdUI.cpp
ivanseidel/ArdUI
599fe2bcb7c8e7d496a640866d0f242cc30d5421
[ "MIT" ]
null
null
null
#include "ArdUI.h" #include "Graphics.h" #include "View.h" #include "ViewGroup.h" #ifdef DEBUG #pragma message("ArdUI DEBUG Mode is ON") #endif // Default Setup callback ArdUI::onInvalidateView = NULL; bool ArdUI::enabled = false; UTFT* ArdUI::LCD = NULL; View* ArdUI::rootView = 0; // NULL ArdUI::TouchTriggerMo...
24.259091
75
0.66498
[ "object" ]
8ceeb59e4ab69589b1d5962038a50d52c23f76a4
9,165
cpp
C++
1 course/math_lab_5/main.cpp
SgAkErRu/labs
9cf71e131513beb3c54ad3599f2a1e085bff6947
[ "BSD-3-Clause" ]
null
null
null
1 course/math_lab_5/main.cpp
SgAkErRu/labs
9cf71e131513beb3c54ad3599f2a1e085bff6947
[ "BSD-3-Clause" ]
null
null
null
1 course/math_lab_5/main.cpp
SgAkErRu/labs
9cf71e131513beb3c54ad3599f2a1e085bff6947
[ "BSD-3-Clause" ]
null
null
null
#include <iostream> #include <cmath> #include <ctime> #include <limits.h> #include <vector> #include <iomanip> #include <fstream> #include <windows.h> using namespace std; typedef vector<int> row; typedef vector<row> graf; void clean (graf &A) { for (int i=0; i<5; i++) { for (int j=0; j<5; j++) ...
29.469453
133
0.438953
[ "vector" ]
8cf498ba9f1f340d9ebd333c2bd7c7b6abece40b
5,777
cpp
C++
cwp/src/v20180228/model/DescribeUndoVulCountsResponse.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
43
2019-08-14T08:14:12.000Z
2022-03-30T12:35:09.000Z
cwp/src/v20180228/model/DescribeUndoVulCountsResponse.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
12
2019-07-15T10:44:59.000Z
2021-11-02T12:35:00.000Z
cwp/src/v20180228/model/DescribeUndoVulCountsResponse.cpp
suluner/tencentcloud-sdk-cpp
a56c73cc3f488c4d1e10755704107bb15c5e000d
[ "Apache-2.0" ]
28
2019-07-12T09:06:22.000Z
2022-03-30T08:04:18.000Z
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
33.201149
136
0.694478
[ "object", "model" ]
8cf7e4c1d42b4e8c082f992ce58fd5eb44095041
90,143
cpp
C++
src/main.cpp
intesight/Panorama4GWM
55571a1d22fae2257db4a968ee7c1776c9ad543a
[ "WTFPL" ]
null
null
null
src/main.cpp
intesight/Panorama4GWM
55571a1d22fae2257db4a968ee7c1776c9ad543a
[ "WTFPL" ]
null
null
null
src/main.cpp
intesight/Panorama4GWM
55571a1d22fae2257db4a968ee7c1776c9ad543a
[ "WTFPL" ]
3
2021-01-16T13:53:41.000Z
2021-01-28T10:48:30.000Z
/***************************************************************************** * * Freescale Confidential Proprietary * * Copyright (c) 2016 Freescale Semiconductor; * All Rights Reserved * ***************************************************************************** * * THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" A...
39.48445
388
0.668771
[ "geometry", "object" ]
8cf80433b4337489f80350833cde15eec627275e
20,959
cpp
C++
Source/main.cpp
harrymt/rasterizer
7afd2fd9e8a0e25ecdd7fcde82f7e045cc8522c0
[ "MIT" ]
3
2020-02-15T12:45:02.000Z
2021-09-13T17:00:17.000Z
Source/main.cpp
harrymt/rasterizer
7afd2fd9e8a0e25ecdd7fcde82f7e045cc8522c0
[ "MIT" ]
null
null
null
Source/main.cpp
harrymt/rasterizer
7afd2fd9e8a0e25ecdd7fcde82f7e045cc8522c0
[ "MIT" ]
null
null
null
#include "rasterizer.h" #include "omp.h" #define D2R(x) x * pi / 180 SDL_Surface* screen; int t; Triangle* triangles; int num_triangles; glm::vec3 cameraPos(0, 0, -FOCAL); const float delta_displacement = 0.1f; float rotationAngle = 0; glm::vec3 lightPos(0, 0, -FOCAL_LIGHT);// (0, -FOCAL_LIGHT, 0); glm::mat3 lightRo...
34.873544
176
0.642636
[ "render", "vector", "model" ]
ea0b251905a4dd19f4905ece462fb1568267647f
22,214
cpp
C++
kdrive/src/access/core/KnxPort.cpp
weinzierl-engineering/baos
306acc8e86da774fdeecec042dcf99734677fdc0
[ "MIT" ]
34
2015-09-16T10:10:14.000Z
2022-02-19T16:11:04.000Z
kdrive/src/access/core/KnxPort.cpp
weinzierl-engineering/baos
306acc8e86da774fdeecec042dcf99734677fdc0
[ "MIT" ]
17
2017-01-02T15:26:19.000Z
2022-01-20T01:27:24.000Z
kdrive/src/access/core/KnxPort.cpp
weinzierl-engineering/baos
306acc8e86da774fdeecec042dcf99734677fdc0
[ "MIT" ]
20
2016-12-12T22:18:08.000Z
2022-03-15T16:20:20.000Z
#include "pch/kdrive_pch.h" #include "kdrive/access/core/KnxPort.h" #include "kdrive/access/core/Exception.h" #include "kdrive/access/ldm/LocalDeviceManager.h" #include "kdrive/access/ldm/LinkLayerManagement.h" #include "kdrive/access/core/KnxPacket.h" #include "kdrive/access/core/TransportPacket.h" #include "kdrive/a...
73.072368
274
0.802692
[ "vector" ]
ea0b9ed48a02b531a878da8761bfe262281b2532
1,180
cpp
C++
LeetCode/ThousandOne/0030-substr_with_concat_words.cpp
Ginkgo-Biloba/Cpp-Repo1-VS
231c68a055e6bf69a3f7c224e7c0182b67ce5b67
[ "Apache-2.0" ]
null
null
null
LeetCode/ThousandOne/0030-substr_with_concat_words.cpp
Ginkgo-Biloba/Cpp-Repo1-VS
231c68a055e6bf69a3f7c224e7c0182b67ce5b67
[ "Apache-2.0" ]
null
null
null
LeetCode/ThousandOne/0030-substr_with_concat_words.cpp
Ginkgo-Biloba/Cpp-Repo1-VS
231c68a055e6bf69a3f7c224e7c0182b67ce5b67
[ "Apache-2.0" ]
null
null
null
#include "leetcode.hpp" /* 30. 串联所有单词的子串 给定一个字符串 s 和一些长度相同的单词 words。 找出 s 中恰好可以由 words 中所有单词串联形成的子串的起始位置。 注意子串要与 words 中的单词完全匹配,中间不能有其他字符,但不需要考虑 words 中单词串联的顺序。 示例 1: 输入: s = "barfoothefoobarman", words = ["foo","bar"] 输出:[0,9] 解释: 从索引 0 和 9 开始的子串分别是 "barfoo" 和 "foobar" 。 输出的顺序不重要, [9,0] 也是有效答案。 示例 2: 输入: s = ...
18.4375
73
0.613559
[ "vector" ]
ea18427928ed08c2be03a55f35f44f1e25986145
320
cpp
C++
799-champagne-tower/799-champagne-tower.cpp
SouvikChan/-Leetcode_Souvik
cc4b72cb4a14a1c6b8be8bd8390de047443fe008
[ "MIT" ]
null
null
null
799-champagne-tower/799-champagne-tower.cpp
SouvikChan/-Leetcode_Souvik
cc4b72cb4a14a1c6b8be8bd8390de047443fe008
[ "MIT" ]
null
null
null
799-champagne-tower/799-champagne-tower.cpp
SouvikChan/-Leetcode_Souvik
cc4b72cb4a14a1c6b8be8bd8390de047443fe008
[ "MIT" ]
null
null
null
class Solution { public: double champagneTower(int poured, int query_row, int query_glass) { vector<double> dp(101, 0); dp[0] = poured; for(int row=1; row<=query_row; row++) for(int i=row; i>=0; i--) dp[i+1] += dp[i] = max(0.0, (dp[i]-1)/2); return min(dp[query_glass], 1.0); } };
32
71
0.5625
[ "vector" ]
ea18aa42c4c2aa7a305e092080b521e9c140da99
3,132
cpp
C++
willow/src/aliasesmap.cpp
gglin001/popart
3225214343f6d98550b6620e809a3544e8bcbfc6
[ "MIT" ]
61
2020-07-06T17:11:46.000Z
2022-03-12T14:42:51.000Z
willow/src/aliasesmap.cpp
gglin001/popart
3225214343f6d98550b6620e809a3544e8bcbfc6
[ "MIT" ]
1
2021-02-25T01:30:29.000Z
2021-11-09T11:13:14.000Z
willow/src/aliasesmap.cpp
gglin001/popart
3225214343f6d98550b6620e809a3544e8bcbfc6
[ "MIT" ]
6
2020-07-15T12:33:13.000Z
2021-11-07T06:55:00.000Z
// Copyright (c) 2021 Graphcore Ltd. All rights reserved. #include <popart/aliasesmap.hpp> #include <poprithms/logging/timepartitionlogger.hpp> namespace popart { AliasesMap::AliasesMap() : ir{nullptr}, aliasesMap{} {} AliasesMap::AliasesMap(const Ir *ir_) : ir{ir_}, aliasesMap{} { update(); } AliasesMap::AliasesM...
27.234783
80
0.564176
[ "shape" ]
ea191fe84d1a87de06275152c25b69887d32d4cc
12,506
cpp
C++
Source/rubikCube.cpp
rajatarora21/ComputerGraphics
314288d3c7ed4cf1593327bd1ec03b2c5c6306da
[ "MIT" ]
null
null
null
Source/rubikCube.cpp
rajatarora21/ComputerGraphics
314288d3c7ed4cf1593327bd1ec03b2c5c6306da
[ "MIT" ]
null
null
null
Source/rubikCube.cpp
rajatarora21/ComputerGraphics
314288d3c7ed4cf1593327bd1ec03b2c5c6306da
[ "MIT" ]
null
null
null
#include "rubikCube.h" using namespace glm; using namespace std; std::vector<RubikCube::Cube*> RubikCube::findCubesOfLayer(function<bool(glm::vec3)> pred) { std::vector<RubikCube::Cube*> layerOfCubes; for (auto c:cubes) { mat4 m = c->rotation* c->translation; vec3 center = m*vec4(0, 0, 0, 1); if (p...
30.502439
128
0.592036
[ "render", "vector", "model" ]
ea1a730c0c7464c30df2a10f677453a98dba4e72
9,136
hpp
C++
Sources/Fonts/Text.hpp
liuping1997/Acid
0b28d63d03ead41047d5881f08e3b693a4e6e63f
[ "MIT" ]
null
null
null
Sources/Fonts/Text.hpp
liuping1997/Acid
0b28d63d03ead41047d5881f08e3b693a4e6e63f
[ "MIT" ]
null
null
null
Sources/Fonts/Text.hpp
liuping1997/Acid
0b28d63d03ead41047d5881f08e3b693a4e6e63f
[ "MIT" ]
null
null
null
#pragma once #include "Maths/Colour.hpp" #include "Maths/Vector2.hpp" #include "Maths/Visual/Driver.hpp" #include "Models/Model.hpp" #include "Models/VertexDefault.hpp" #include "Graphics/Descriptors/DescriptorsHandler.hpp" #include "Graphics/Buffers/UniformHandler.hpp" #include "Graphics/Pipelines/PipelineGraphics.h...
28.197531
177
0.709829
[ "object", "vector", "model", "solid" ]
ea315a10b595438a779c0043680113c0b5152603
9,914
cc
C++
src/application/AppCli_m.cc
badriciobq/rogue-drone
d982bd4cdad6d90b22465b4fbae258061aa59295
[ "MIT" ]
null
null
null
src/application/AppCli_m.cc
badriciobq/rogue-drone
d982bd4cdad6d90b22465b4fbae258061aa59295
[ "MIT" ]
null
null
null
src/application/AppCli_m.cc
badriciobq/rogue-drone
d982bd4cdad6d90b22465b4fbae258061aa59295
[ "MIT" ]
null
null
null
// // Generated file, do not edit! Created by nedtool 4.6 from application/AppCli.msg. // // Disable warnings about unused variables, empty switch stmts, etc: #ifdef _MSC_VER # pragma warning(disable:4101) # pragma warning(disable:4065) #endif #include <iostream> #include <sstream> #include "AppCli_m.h" USING_NAME...
29.861446
153
0.679342
[ "object", "vector" ]
ea38f2b5c2d8e285015f7dbd074220630e293563
3,078
cpp
C++
compute_samples/core/ocl_utils/test/ocl_utils_integration_tests.cpp
maximd33/compute-samples
b16a666b76b43c2a7bd1671edc563b45e978f1a7
[ "MIT" ]
75
2018-03-19T16:06:11.000Z
2022-02-10T11:10:17.000Z
compute_samples/core/ocl_utils/test/ocl_utils_integration_tests.cpp
maximd33/compute-samples
b16a666b76b43c2a7bd1671edc563b45e978f1a7
[ "MIT" ]
10
2019-04-17T04:52:55.000Z
2021-04-19T22:20:07.000Z
compute_samples/core/ocl_utils/test/ocl_utils_integration_tests.cpp
maximd33/compute-samples
b16a666b76b43c2a7bd1671edc563b45e978f1a7
[ "MIT" ]
17
2018-03-15T01:48:55.000Z
2022-02-10T11:10:17.000Z
/* * Copyright (C) 2019 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "ocl_utils/ocl_utils.hpp" #include "gtest/gtest.h" #include "utils/utils.hpp" #include <fstream> #include <boost/compute/utility/source.hpp> #include "test_harness/test_harness.hpp" namespace cs = compute_samples; namespac...
36.642857
77
0.68681
[ "vector" ]
356e81f54b2876faeac36f9df5f9c6b950dd658d
7,998
cc
C++
src/AMOS/datatypes_AMOS.cc
sagrudd/amos
47643a1d238bff83421892cb74daaf6fff8d9548
[ "Artistic-1.0" ]
10
2015-03-20T18:25:56.000Z
2020-06-02T22:00:08.000Z
src/AMOS/datatypes_AMOS.cc
sagrudd/amos
47643a1d238bff83421892cb74daaf6fff8d9548
[ "Artistic-1.0" ]
5
2015-05-14T17:51:20.000Z
2020-07-19T04:17:47.000Z
src/AMOS/datatypes_AMOS.cc
sagrudd/amos
47643a1d238bff83421892cb74daaf6fff8d9548
[ "Artistic-1.0" ]
10
2015-05-17T16:01:23.000Z
2020-05-20T08:13:43.000Z
//////////////////////////////////////////////////////////////////////////////// //! \file //! \author Adam M Phillippy //! \date 10/30/2003 //! //! \brief Source for datatypes_AMOS.hh //! //////////////////////////////////////////////////////////////////////////////// #include "datatypes_AMOS.hh" #include <sstream> u...
22.155125
80
0.437484
[ "vector" ]
357323f2f80093d011069313f34c675e265ac8b3
1,762
cpp
C++
test/reporter/templateprocessor_test.cpp
pefoo/MoSer2
f593126112637c9fa3a7e6a66e34e80f515b796b
[ "MIT" ]
1
2019-06-01T11:39:53.000Z
2019-06-01T11:39:53.000Z
test/reporter/templateprocessor_test.cpp
pefoo/MoSer2
f593126112637c9fa3a7e6a66e34e80f515b796b
[ "MIT" ]
null
null
null
test/reporter/templateprocessor_test.cpp
pefoo/MoSer2
f593126112637c9fa3a7e6a66e34e80f515b796b
[ "MIT" ]
null
null
null
#include "reporter/templateprocessor/templateprocessor.hpp" #include <filesystem> #include <fstream> #include <sstream> #include "catch2/catch.hpp" #include "reporter/templateprocessor/templatetoken.hpp" std::string GetTestFile(const std::string file_name) { std::stringstream ss{}; ss << TESTDATA_DIR; ss << file...
30.37931
78
0.690125
[ "vector" ]
357bd68dc1682b7f66a0fe7c01329bf2706da9e6
11,845
cpp
C++
src/tools/Segmentation.cpp
tomasiser/pepr3d
5eaacd573c553e0e8eb79212842894bf32b5c666
[ "BSD-2-Clause" ]
128
2019-11-18T16:09:58.000Z
2022-01-15T03:59:51.000Z
src/tools/Segmentation.cpp
tomasiser/pepr3d
5eaacd573c553e0e8eb79212842894bf32b5c666
[ "BSD-2-Clause" ]
3
2019-04-01T17:41:19.000Z
2020-07-23T08:55:08.000Z
src/tools/Segmentation.cpp
tomasiser/pepr3d
5eaacd573c553e0e8eb79212842894bf32b5c666
[ "BSD-2-Clause" ]
31
2019-04-04T11:28:11.000Z
2022-03-14T08:52:38.000Z
#include "tools/Segmentation.h" #include <random> #include <vector> #include "commands/CmdPaintSingleColor.h" #include "geometry/SdfValuesException.h" #include "ui/MainApplication.h" namespace pepr3d { void Segmentation::drawToSidePane(SidePane& sidePane) { if(!mGeometryCorrect) { sidePane.drawText("Polyh...
41.271777
120
0.644913
[ "mesh", "geometry", "shape", "vector", "model" ]
3583ef09f6e87cfb0d070fca5091859d8ff1ceb6
1,814
cpp
C++
ocl_c_test/logging.cpp
cpieloth/GPGPU-on-Hadoop
533d27d1ee4440de35d71906f42af9eaa1471108
[ "Apache-2.0" ]
4
2016-01-08T15:23:45.000Z
2016-08-26T15:03:00.000Z
ocl_c_test/logging.cpp
cpieloth/GPGPU-on-Hadoop
533d27d1ee4440de35d71906f42af9eaa1471108
[ "Apache-2.0" ]
null
null
null
ocl_c_test/logging.cpp
cpieloth/GPGPU-on-Hadoop
533d27d1ee4440de35d71906f42af9eaa1471108
[ "Apache-2.0" ]
1
2022-01-05T07:45:40.000Z
2022-01-05T07:45:40.000Z
/** * @file */ #include "logging.hpp" #include <limits> #include <iostream> using namespace logging; using namespace std; // Default level const Level Level::ERR("ERROR", 1); const Level Level::WARN("WARN", 2); const Level Level::INFO("INFO", 4); const Level Level::TRACE("TRACE", 8); const Level Le...
20.155556
79
0.640022
[ "vector" ]
35882414c4114657ac97cf4d2cd5977a08004631
970
cpp
C++
src/textureLoader.cpp
JM-Ski/CarGame
af7329780e55e550dd787f6dd233bb7a079a7d84
[ "MIT" ]
null
null
null
src/textureLoader.cpp
JM-Ski/CarGame
af7329780e55e550dd787f6dd233bb7a079a7d84
[ "MIT" ]
null
null
null
src/textureLoader.cpp
JM-Ski/CarGame
af7329780e55e550dd787f6dd233bb7a079a7d84
[ "MIT" ]
null
null
null
#include "textureLoader.h" #include <iostream> //<! Initializer TextureLoader::TextureLoader() { setBaseDirectory(".\\assets\\textures\\"); } //<! Sets our base directory void TextureLoader::setBaseDirectory(std::string dir) { baseDirectory = dir; } //<! Loads textures based on the string input void TextureLoader...
26.216216
86
0.694845
[ "vector" ]
358e273e8e35752d25079c1f2dbe2511e932a45d
6,001
hpp
C++
src-unused/dispersion_threshold_bak.hpp
lucas137/eyelib
e88eaea6dd2c2e4b365d178f67869a3cd47751a5
[ "MIT" ]
null
null
null
src-unused/dispersion_threshold_bak.hpp
lucas137/eyelib
e88eaea6dd2c2e4b365d178f67869a3cd47751a5
[ "MIT" ]
null
null
null
src-unused/dispersion_threshold_bak.hpp
lucas137/eyelib
e88eaea6dd2c2e4b365d178f67869a3cd47751a5
[ "MIT" ]
null
null
null
//===========================================================================// /// @file /// @brief @ref eye::DispersionThreshold algorithm. /// @author Nathan Lucas /// @date 2016 //===========================================================================// #ifndef EYE_DISPERSION_THRESHOLD_HPP #defi...
28.042056
80
0.604066
[ "object", "vector" ]
3595c351c12f3304dd6213310e4e1b0ab8c7783d
2,819
hpp
C++
Pods/Realm/include/core/realm/chunked_binary.hpp
EetuHernesniemi/iOS-Todoye
353e503dd897571e7c1fc7e5658f1d03f7f31ec7
[ "MIT" ]
null
null
null
Pods/Realm/include/core/realm/chunked_binary.hpp
EetuHernesniemi/iOS-Todoye
353e503dd897571e7c1fc7e5658f1d03f7f31ec7
[ "MIT" ]
null
null
null
Pods/Realm/include/core/realm/chunked_binary.hpp
EetuHernesniemi/iOS-Todoye
353e503dd897571e7c1fc7e5658f1d03f7f31ec7
[ "MIT" ]
null
null
null
/************************************************************************* * * Copyright 2019 Realm Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lice...
28.474747
81
0.671515
[ "vector" ]
35a182445770fb0bdc2a25d1fc202f37ada295b9
7,001
cc
C++
chrome/browser/sync/test/integration/two_client_web_apps_integration_sync_test.cc
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/browser/sync/test/integration/two_client_web_apps_integration_sync_test.cc
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/browser/sync/test/integration/two_client_web_apps_integration_sync_test.cc
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-03-07T14:20:02.000Z
2021-03-07T14:20:02.000Z
// Copyright 2020 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/barrier_closure.h" #include "base/path_service.h" #include "base/test/bind.h" #include "chrome/browser/sync/test/integration/apps_helper.h"...
33.023585
82
0.724896
[ "vector" ]
35b7278e06fd966b199c3fa33a3ef9b0a300f75d
2,740
cxx
C++
odb-tests-2.4.0/pgsql/types/driver.cxx
edidada/odb
78ed750a9dde65a627fc33078225410306c2e78b
[ "MIT" ]
null
null
null
odb-tests-2.4.0/pgsql/types/driver.cxx
edidada/odb
78ed750a9dde65a627fc33078225410306c2e78b
[ "MIT" ]
null
null
null
odb-tests-2.4.0/pgsql/types/driver.cxx
edidada/odb
78ed750a9dde65a627fc33078225410306c2e78b
[ "MIT" ]
null
null
null
// file : pgsql/types/driver.cxx // copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file // Test PostgreSQL type conversion. // #include <memory> // std::auto_ptr #include <cassert> #include <iostream> #include <odb/pgsql/database.hxx> #include <...
21.076923
78
0.544891
[ "object" ]
35bef3ba851b9281359c5cf48a2da8f8ae1abea6
34,040
cpp
C++
src/kernels/cpu/math_cpu.cpp
ViewFaceCore/TenniS
c1d21a71c1cd025ddbbe29924c8b3296b3520fc0
[ "BSD-2-Clause" ]
null
null
null
src/kernels/cpu/math_cpu.cpp
ViewFaceCore/TenniS
c1d21a71c1cd025ddbbe29924c8b3296b3520fc0
[ "BSD-2-Clause" ]
null
null
null
src/kernels/cpu/math_cpu.cpp
ViewFaceCore/TenniS
c1d21a71c1cd025ddbbe29924c8b3296b3520fc0
[ "BSD-2-Clause" ]
null
null
null
// // Created by kier on 2018/7/19. // #include "kernels/cpu/math_cpu.h" #include "kernels/common/math.h" #include "utils/assert.h" #include "runtime/inside/thread_pool.h" #include "utils/ctxmgr.h" #include "utils/box.h" #include <iostream> #include <cmath> #include <runtime/inside/parallel.h> #include "kernels/co...
42.710163
143
0.418684
[ "vector" ]
35c08bd63600871700b5505ce8f31f7283f2a838
2,901
cpp
C++
api-cpp-validator/src/OrganizationValidator.cpp
nuralogix/dfx-api-client-cpp
6b45307ddf4b0036c107eebd7e8915f6c501c3b0
[ "MIT" ]
null
null
null
api-cpp-validator/src/OrganizationValidator.cpp
nuralogix/dfx-api-client-cpp
6b45307ddf4b0036c107eebd7e8915f6c501c3b0
[ "MIT" ]
null
null
null
api-cpp-validator/src/OrganizationValidator.cpp
nuralogix/dfx-api-client-cpp
6b45307ddf4b0036c107eebd7e8915f6c501c3b0
[ "MIT" ]
null
null
null
// Copyright (c) Nuralogix. All rights reserved. Licensed under the MIT license. // See LICENSE.txt in the project root for license information. #include "dfx/api/validator/OrganizationValidator.hpp" #include "CloudValidatorMacros.hpp" using namespace dfx::api; using namespace dfx::api::validator; const Organization...
40.291667
107
0.632196
[ "vector" ]
35cdf17de53ae14ba991d659552c775df29b3a02
299
cpp
C++
Arrays/Maximum_Subarray_Leetcode.cpp
AK-aShH/DSA-Practice
625215232669260cf333eac46baa1cb0287aac03
[ "MIT" ]
null
null
null
Arrays/Maximum_Subarray_Leetcode.cpp
AK-aShH/DSA-Practice
625215232669260cf333eac46baa1cb0287aac03
[ "MIT" ]
null
null
null
Arrays/Maximum_Subarray_Leetcode.cpp
AK-aShH/DSA-Practice
625215232669260cf333eac46baa1cb0287aac03
[ "MIT" ]
null
null
null
class Solution { public: int maxSubArray(vector<int>& nums) { int l=nums.size(); int s=-10001, ts=0; for(int i=0;i<l;i++){ ts+=nums[i]; if(ts>s) s=ts; if(ts<0) ts=0; }return s; } };
18.6875
40
0.371237
[ "vector" ]
35cfab76b697d5bceef462254b4c2f9b5f5b34de
19,290
tpp
C++
projects/Viz/include/Viz/Traversals/programmable.tpp
maurizioabba/rose
7597292cf14da292bdb9a4ef573001b6c5b9b6c0
[ "BSD-3-Clause" ]
488
2015-01-09T08:54:48.000Z
2022-03-30T07:15:46.000Z
projects/Viz/include/Viz/Traversals/programmable.tpp
sujankh/rose-matlab
7435d4fa1941826c784ba97296c0ec55fa7d7c7e
[ "BSD-3-Clause" ]
174
2015-01-28T18:41:32.000Z
2022-03-31T16:51:05.000Z
projects/Viz/include/Viz/Traversals/programmable.tpp
sujankh/rose-matlab
7435d4fa1941826c784ba97296c0ec55fa7d7c7e
[ "BSD-3-Clause" ]
146
2015-04-27T02:48:34.000Z
2022-03-04T07:32:53.000Z
#include "jsonxx.h" extern void build_sage_name_variant_map(std::map<std::string, VariantT> & name_variant_map); extern void build_sage_variant_name_map(std::map<VariantT, std::string> & variant_name_map); extern void build_sage_parent_variant_map(std::map<VariantT, VariantT> & parent_variant_map); namespace Rose { ...
47.747525
181
0.746138
[ "object", "shape" ]
35e6b6f0ce7585248a1c1f6eaade88f7ff03aafa
2,303
cpp
C++
src/shaders/lightingshaderdemo.cpp
Alec-Sobeck/FPS-Game
3a0f3e82bdbc651ee99e7b10d71d55ba43bb6d35
[ "MIT" ]
null
null
null
src/shaders/lightingshaderdemo.cpp
Alec-Sobeck/FPS-Game
3a0f3e82bdbc651ee99e7b10d71d55ba43bb6d35
[ "MIT" ]
null
null
null
src/shaders/lightingshaderdemo.cpp
Alec-Sobeck/FPS-Game
3a0f3e82bdbc651ee99e7b10d71d55ba43bb6d35
[ "MIT" ]
1
2015-02-04T23:29:59.000Z
2015-02-04T23:29:59.000Z
#include <sstream> #include "shaders/lightingshaderdemo.h" #include "graphics/gluhelper.h" #include "graphics/windowhelper.h" void LightingShaderDemo::render() { using namespace gl; startRenderCycle(); glLoadIdentity(); //Draw shader1->bindShader(); glLoadIdentity(); glTranslatef(0.0f, 0.0...
25.876404
85
0.633956
[ "render", "vector" ]
e305f96c68ca6b3cebff5d93dc91805a494f9d8c
742
cpp
C++
JContainers/src/basic_part.cpp
Verteiron/JContainers
a5c83198c782458a7c2ae683319558cc88959d25
[ "MIT" ]
1
2018-07-30T21:36:28.000Z
2018-07-30T21:36:28.000Z
JContainers/src/basic_part.cpp
Verteiron/JContainers
a5c83198c782458a7c2ae683319558cc88959d25
[ "MIT" ]
null
null
null
JContainers/src/basic_part.cpp
Verteiron/JContainers
a5c83198c782458a7c2ae683319558cc88959d25
[ "MIT" ]
1
2021-03-03T06:28:53.000Z
2021-03-03T06:28:53.000Z
#include <thread> #include <mutex> #include <chrono> #include <algorithm> #include <vector> #include <atomic> #include <boost/serialization/serialization.hpp> #include <boost/serialization/export.hpp> #include <boost/serialization/vector.hpp> #include <boost/serialization/map.hpp> #include <boost/serialization/spli...
18.097561
48
0.773585
[ "vector" ]
e313c444da66bbe05bc10bda297fdf7a8a70e3fa
7,155
cpp
C++
CPlusPlus/Random Program/Main.cpp
BillyFrcs/CPPPrograming
3904d30413aaea6c9109b8c5250c44c67aa0fc20
[ "MIT" ]
3
2021-12-17T02:45:51.000Z
2022-03-31T23:55:38.000Z
CPlusPlus/Random Program/Main.cpp
BillyFrcs/Programming
32dc67ce4c12189b56921de63446d79c25799457
[ "MIT" ]
1
2021-06-12T08:28:38.000Z
2021-06-12T08:28:38.000Z
CPlusPlus/Random Program/Main.cpp
BillyFrcs/Programming
32dc67ce4c12189b56921de63446d79c25799457
[ "MIT" ]
2
2021-04-28T20:08:55.000Z
2021-05-25T08:45:54.000Z
#include <fstream> #include <iostream> #include <stdlib.h> #include <string> constexpr bool EXT = true; using namespace std; class Crud { private: //Max limits data const int maxRow = 20; std::string namaMahasiswa[20], npmMahasiswa[20]; public: // tambahkan data virtual void addData() ...
23.613861
102
0.396087
[ "object" ]
e3150f424093132d8e28fe83969b4319e78b4cf4
5,094
cc
C++
path-tracer/core/node.cc
sdao/path-tracer-nacl
abb3eb0a51059e5109b87bafd7de60a8d4055453
[ "BSD-2-Clause" ]
null
null
null
path-tracer/core/node.cc
sdao/path-tracer-nacl
abb3eb0a51059e5109b87bafd7de60a8d4055453
[ "BSD-2-Clause" ]
null
null
null
path-tracer/core/node.cc
sdao/path-tracer-nacl
abb3eb0a51059e5109b87bafd7de60a8d4055453
[ "BSD-2-Clause" ]
null
null
null
#include "node.h" #include <exception> #include <boost/algorithm/string.hpp> #include <boost/format.hpp> #include "scene.h" using boost::format; Node::Node(const boost::property_tree::ptree& attr, const Scene& cont) : attributes(attr), container(cont) {} std::string Node::getString(std::string key) const { auto ...
26.393782
80
0.670985
[ "geometry", "vector" ]
e315ee4aabede16b5a9e54f9418ad1655bcaa2a6
546
hpp
C++
caffparser/header/parser.hpp
Jezus-es-a-haverok/CaffShop
222f9945e77228ecc8fa73c9bb4fad8799af0825
[ "MIT" ]
null
null
null
caffparser/header/parser.hpp
Jezus-es-a-haverok/CaffShop
222f9945e77228ecc8fa73c9bb4fad8799af0825
[ "MIT" ]
null
null
null
caffparser/header/parser.hpp
Jezus-es-a-haverok/CaffShop
222f9945e77228ecc8fa73c9bb4fad8799af0825
[ "MIT" ]
null
null
null
#ifndef FILE_PARSER_HPP #define FILE_PARSER_HPP #include <vector> #include <string> /** * @file */ #include <caff.hpp> /** Parses the given CAFF file. * Creates a CAFF class in the heap, calls it's parse function and returns it to * the caller. The CAFF class contains the gathered data, it's getter methods can ...
22.75
81
0.708791
[ "vector" ]
e31ca08675474531c6e2653886f5d056edd6b2b2
3,075
cpp
C++
src/main/algorithms/cpp/array/kth_largest_element_in_a_stream_703/solution.cpp
algorithmlover2016/leet_code
2eecc7971194c8a755e67719d8f66c636694e7e9
[ "Apache-2.0" ]
null
null
null
src/main/algorithms/cpp/array/kth_largest_element_in_a_stream_703/solution.cpp
algorithmlover2016/leet_code
2eecc7971194c8a755e67719d8f66c636694e7e9
[ "Apache-2.0" ]
null
null
null
src/main/algorithms/cpp/array/kth_largest_element_in_a_stream_703/solution.cpp
algorithmlover2016/leet_code
2eecc7971194c8a755e67719d8f66c636694e7e9
[ "Apache-2.0" ]
null
null
null
#include "../../head.h" // #define DEBUG class KthLargest { public: KthLargest(int k_, std::vector<int> const & nums_) : k(k_), nums(nums_) { } int add(int val) { nums.emplace_back(val); // quickSort(nums, 0, nums.size() - 1); quickSortDD(nums, 0, nums.size() - 1); #ifdef...
26.059322
125
0.478049
[ "vector" ]
e31eae96f932b14be7192bb7b56fe7b5a34238b3
2,625
cpp
C++
tools/ShaderHeaderProcessor.cpp
Pratool/learning-vulkan
616a0c331f0af62b4ff974f643fc033742f1f7d9
[ "MIT" ]
null
null
null
tools/ShaderHeaderProcessor.cpp
Pratool/learning-vulkan
616a0c331f0af62b4ff974f643fc033742f1f7d9
[ "MIT" ]
null
null
null
tools/ShaderHeaderProcessor.cpp
Pratool/learning-vulkan
616a0c331f0af62b4ff974f643fc033742f1f7d9
[ "MIT" ]
null
null
null
#include <cmath> #include <fstream> #include <iomanip> #include <vector> #include <string> #include <sstream> #include <iostream> #include <netinet/in.h> /// This should process the binary SPIR-V file and put it into a std::array in a .cpp or .hpp file that can be /// included in the main program. void processFile(con...
24.082569
120
0.583238
[ "vector" ]
e3252d27f96f8be0ad32f5feba9bb4c01b9ae93f
38,425
cc
C++
chrome/browser/android/vr_shell/vr_shell_gl.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
chrome/browser/android/vr_shell/vr_shell_gl.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
chrome/browser/android/vr_shell/vr_shell_gl.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 "chrome/browser/android/vr_shell/vr_shell_gl.h" #include "base/android/jni_android.h" #include "base/memory/ptr_util.h" #include "base/metrics/h...
38.348303
80
0.710007
[ "render", "object", "vector", "model", "transform", "3d" ]
e3304c4002a13dce21b71ef11b1ae57ab3a49664
446
cpp
C++
c++/leetCode/august/12.pascals-triangle-II.cpp
08pixels/juizes-online
7202eeaed6886e8ff33fc2031c213348043d5909
[ "Apache-2.0" ]
1
2020-06-23T06:23:03.000Z
2020-06-23T06:23:03.000Z
c++/leetCode/august/12.pascals-triangle-II.cpp
08pixels/juizes-online
7202eeaed6886e8ff33fc2031c213348043d5909
[ "Apache-2.0" ]
null
null
null
c++/leetCode/august/12.pascals-triangle-II.cpp
08pixels/juizes-online
7202eeaed6886e8ff33fc2031c213348043d5909
[ "Apache-2.0" ]
null
null
null
class Solution { public: vector<int> getRow(int rowIndex) { vector<int> memo[2]; memo[0].resize(rowIndex + 1); memo[1].resize(rowIndex + 1); memo[0][0] = memo[1][0] = 1; for(int i = 1; i <= rowIndex; ++i) { for(int j = 1; j <= i; ++j) ...
22.3
65
0.408072
[ "vector" ]
e330ae75bc43a606842c615590ab4c8aa151fd80
4,111
cc
C++
tests/testfoundation/float4test.cc
sirAgg/nebula
3fbccc73779944aa3e56b9e8acdd6fedd1d38006
[ "BSD-2-Clause" ]
377
2018-10-24T08:34:21.000Z
2022-03-31T23:37:49.000Z
tests/testfoundation/float4test.cc
sirAgg/nebula
3fbccc73779944aa3e56b9e8acdd6fedd1d38006
[ "BSD-2-Clause" ]
11
2020-01-22T13:34:46.000Z
2022-03-07T10:07:34.000Z
tests/testfoundation/float4test.cc
sirAgg/nebula
3fbccc73779944aa3e56b9e8acdd6fedd1d38006
[ "BSD-2-Clause" ]
23
2019-07-13T16:28:32.000Z
2022-03-20T09:00:59.000Z
//------------------------------------------------------------------------------ // float4test.cc // (C) 2007 Radon Labs GmbH //------------------------------------------------------------------------------ #include "stdneb.h" #include "float4test.h" namespace Test { __ImplementClass(Test::Float4Test, 'F4TS', Test::...
28.157534
85
0.467283
[ "vector", "transform" ]
e33b1858ae4c55fb43f5f20bed9bb57b29c7afd7
1,994
hpp
C++
stack.hpp
dkarthus/containers_ft
9877bfc5143742bbc57a27b16eadbbdbf5aa9af8
[ "MIT" ]
null
null
null
stack.hpp
dkarthus/containers_ft
9877bfc5143742bbc57a27b16eadbbdbf5aa9af8
[ "MIT" ]
null
null
null
stack.hpp
dkarthus/containers_ft
9877bfc5143742bbc57a27b16eadbbdbf5aa9af8
[ "MIT" ]
null
null
null
#pragma once namespace ft { template <class T, class Container = ft::vector<T> > class stack { public: typedef T value_type; typedef Container container_type; typedef value_type& reference; typedef const value_type& const_reference; typedef typename Container::size_type size_type; p...
20.141414
88
0.650451
[ "vector" ]
e33b21a1ec8497540880a33d0adfa0ae2577c46a
6,242
cpp
C++
sources/common/src/platform/baseplatform.cpp
rdkcmf/rdkc-rms
65ab1efcee9e3de46a888c125f591cd48b815601
[ "Apache-2.0" ]
3
2020-07-30T19:41:00.000Z
2020-10-28T12:52:37.000Z
sources/common/src/platform/baseplatform.cpp
rdkcmf/rdkc-rms
65ab1efcee9e3de46a888c125f591cd48b815601
[ "Apache-2.0" ]
null
null
null
sources/common/src/platform/baseplatform.cpp
rdkcmf/rdkc-rms
65ab1efcee9e3de46a888c125f591cd48b815601
[ "Apache-2.0" ]
2
2020-05-11T03:19:00.000Z
2021-07-07T17:40:47.000Z
/** ########################################################################## # If not stated otherwise in this file or this component's LICENSE # file the following copyright and licenses apply: # # Copyright 2019 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
27.619469
107
0.689843
[ "vector" ]
e33f346071fd0c147d0e3eb26f1d5fc2bb2275cc
10,492
cpp
C++
src/plugins/matrixops/vstack_operation.cpp
diehlpk/phylanx
7eba54f0f22dc66d18addac0b24f006380d0f798
[ "BSL-1.0" ]
null
null
null
src/plugins/matrixops/vstack_operation.cpp
diehlpk/phylanx
7eba54f0f22dc66d18addac0b24f006380d0f798
[ "BSL-1.0" ]
null
null
null
src/plugins/matrixops/vstack_operation.cpp
diehlpk/phylanx
7eba54f0f22dc66d18addac0b24f006380d0f798
[ "BSL-1.0" ]
null
null
null
// Copyright (c) 2018 Bibek Wagle // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <phylanx/config.hpp> #include <phylanx/execution_tree/primitives/node_data_helpers.hpp> #include <phylanx/ir/node_dat...
34.175896
80
0.513439
[ "vector" ]
e33fdd55ac68fb7d1db3237fbb26259902829a75
46,462
cc
C++
cow/src/components/audio_src_pulse.cc
halleyzhao/alios-mm
bef2a6de0c207a5ae9bf4f63de2e562df864aa3e
[ "Apache-2.0" ]
null
null
null
cow/src/components/audio_src_pulse.cc
halleyzhao/alios-mm
bef2a6de0c207a5ae9bf4f63de2e562df864aa3e
[ "Apache-2.0" ]
null
null
null
cow/src/components/audio_src_pulse.cc
halleyzhao/alios-mm
bef2a6de0c207a5ae9bf4f63de2e562df864aa3e
[ "Apache-2.0" ]
null
null
null
/** * Copyright (C) 2017 Alibaba Group Holding Limited. 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 * * ...
29.994835
153
0.62832
[ "render" ]
e344014eb6ebcb2ec7d9915730215170d8277092
6,147
cpp
C++
src/dbobjects/common/DbTrigger.cpp
Ascent-Group/visual-db
4cd074fb64fac2def74bb5005fc0d46caa0e96f7
[ "BSD-3-Clause" ]
1
2015-06-25T18:12:50.000Z
2015-06-25T18:12:50.000Z
src/dbobjects/common/DbTrigger.cpp
Ascent-Group/visual-db
4cd074fb64fac2def74bb5005fc0d46caa0e96f7
[ "BSD-3-Clause" ]
null
null
null
src/dbobjects/common/DbTrigger.cpp
Ascent-Group/visual-db
4cd074fb64fac2def74bb5005fc0d46caa0e96f7
[ "BSD-3-Clause" ]
null
null
null
/*- * Copyright (c) 2009, Ascent Group. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list o...
19.514286
85
0.693997
[ "object" ]
e34c1aa84c645658cbff52e46228e6fb3685c08e
1,162
hpp
C++
src/gizmo/TranslateGizmo.hpp
buresu/OgreMockup
7084ea520900b41a6a56ac4b261d52823eba00bc
[ "MIT" ]
null
null
null
src/gizmo/TranslateGizmo.hpp
buresu/OgreMockup
7084ea520900b41a6a56ac4b261d52823eba00bc
[ "MIT" ]
null
null
null
src/gizmo/TranslateGizmo.hpp
buresu/OgreMockup
7084ea520900b41a6a56ac4b261d52823eba00bc
[ "MIT" ]
null
null
null
#pragma once #include "AbstractGizmo.hpp" class TranslateGizmo : public AbstractGizmo { public: enum TranslateType { TranslateType_None, TranslateType_X, TranslateType_Y, TranslateType_Z, TranslateType_Camera }; explicit TranslateGizmo(const Ogre::String &name); virtual ~TranslateGizmo();...
25.26087
69
0.745267
[ "render" ]
e355a6000b52f91d768fa4a029d3872e45b167e8
5,369
cpp
C++
applications/physbam/physbam-lib/Public_Library/PhysBAM_Solids/PhysBAM_Rigids/Collisions/RIGID_BODY_IMPULSE_ACCUMULATOR.cpp
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
20
2017-07-03T19:09:09.000Z
2021-09-10T02:53:56.000Z
applications/physbam/physbam-lib/Public_Library/PhysBAM_Solids/PhysBAM_Rigids/Collisions/RIGID_BODY_IMPULSE_ACCUMULATOR.cpp
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
null
null
null
applications/physbam/physbam-lib/Public_Library/PhysBAM_Solids/PhysBAM_Rigids/Collisions/RIGID_BODY_IMPULSE_ACCUMULATOR.cpp
schinmayee/nimbus
170cd15e24a7a88243a6ea80aabadc0fc0e6e177
[ "BSD-3-Clause" ]
9
2017-09-17T02:05:06.000Z
2020-01-31T00:12:01.000Z
//##################################################################### // Copyright 2004-2005, Zhaosheng Bao, Eran Guendelman, Sergey Koltakov. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //#####################################...
57.117021
135
0.714844
[ "mesh", "object", "vector" ]
e35d50404842586766bf77764a01ea80bd714d95
1,053
cpp
C++
GFG/Backtracking/tugofwar.cpp
vishwajeet-hogale/LearnSTL
0cbfc12b66ba844de23d7966d18cadc7b2d5a77f
[ "MIT" ]
null
null
null
GFG/Backtracking/tugofwar.cpp
vishwajeet-hogale/LearnSTL
0cbfc12b66ba844de23d7966d18cadc7b2d5a77f
[ "MIT" ]
null
null
null
GFG/Backtracking/tugofwar.cpp
vishwajeet-hogale/LearnSTL
0cbfc12b66ba844de23d7966d18cadc7b2d5a77f
[ "MIT" ]
null
null
null
#include <iostream> #include <bits/stdc++.h> using namespace std; int dp[100][100] = {-1}; int subSetSum(vector<int> &nums, int target) { for (int i = 0; i <= nums.size(); i++) { dp[i][0] = 1; } for (int i = 1; i <= target; i++) { dp[0][i] = 0; } for (int i = 1; i <= nums.siz...
22.404255
70
0.391263
[ "vector" ]
e3611914d1a05734af3eb54a881794d56f62dbfe
417
hpp
C++
backend/Simulator/processor.hpp
Ridhii/SyncdSim
4cd120e9f7d4db348d405db4608ef9c6f9499d01
[ "BSD-3-Clause" ]
null
null
null
backend/Simulator/processor.hpp
Ridhii/SyncdSim
4cd120e9f7d4db348d405db4608ef9c6f9499d01
[ "BSD-3-Clause" ]
null
null
null
backend/Simulator/processor.hpp
Ridhii/SyncdSim
4cd120e9f7d4db348d405db4608ef9c6f9499d01
[ "BSD-3-Clause" ]
null
null
null
#ifndef PROCESSOR_HPP #define PROCESSOR_HPP #include "common.hpp" #include "context.hpp" class Context; class Processor{ private: contech::Task* currTask; std::vector<contech::MemoryAction> memActionQueue; Context* myContext; int tempTotalTask; public: Processor(Context* context); void run(); void populate...
13.9
63
0.757794
[ "vector" ]
e3650f075d2f715223b3206606152042fc293819
12,886
cpp
C++
ELM_GUI_lib/ELM_GUI_lib/ELM.cpp
therealddx/EagleLibraryManager
bc6dfb2f9dbbc6cf8d3145befdeb71e5c9c8e0e8
[ "MIT" ]
null
null
null
ELM_GUI_lib/ELM_GUI_lib/ELM.cpp
therealddx/EagleLibraryManager
bc6dfb2f9dbbc6cf8d3145befdeb71e5c9c8e0e8
[ "MIT" ]
null
null
null
ELM_GUI_lib/ELM_GUI_lib/ELM.cpp
therealddx/EagleLibraryManager
bc6dfb2f9dbbc6cf8d3145befdeb71e5c9c8e0e8
[ "MIT" ]
null
null
null
#include "Stdafx.h" #include "ELM.h" #include "ctype.h" namespace ELM_GUI_lib { //Declare constructors. ELM::ELM() { } ELM::ELM(const ELM& orig) { } ELM::~ELM() { } //Declare variables. int ELM::numDevices; Device * ELM::deviceList; std::string ELM::preMaterial; std::string ELM::pos...
28.635556
137
0.649853
[ "vector" ]
e368244f29316838a0d990b112f8193167405eb4
3,037
cpp
C++
src/components/renderer.cpp
Socapex/opengl_water
b9935285e8f8cda77d86b44d743e9a79c2523200
[ "BSD-3-Clause" ]
1
2018-04-19T17:29:41.000Z
2018-04-19T17:29:41.000Z
src/components/renderer.cpp
p-groarke/opengl_water
b9935285e8f8cda77d86b44d743e9a79c2523200
[ "BSD-3-Clause" ]
null
null
null
src/components/renderer.cpp
p-groarke/opengl_water
b9935285e8f8cda77d86b44d743e9a79c2523200
[ "BSD-3-Clause" ]
null
null
null
#include "components/renderer.hpp" #include <fstream> #include <iostream> #include <string> #include <vector> namespace { static inline bool gl_program_was_linked(int id) { int result; char info[1024]; glGetProgramiv(id, GL_LINK_STATUS, &result); if (!result) { glGetProgramInfoLog(id, 1024, nullptr, (char *)inf...
22.664179
77
0.69674
[ "render", "vector" ]
e3694a5d85893ada309121c00d7b9befb57759f2
806
hpp
C++
GameContext.hpp
Derjik/Outpost
93a419df75c1a17c1ffa30b0b9061bb3dfd7ce57
[ "0BSD" ]
1
2018-10-26T08:48:07.000Z
2018-10-26T08:48:07.000Z
GameContext.hpp
Derjik/Outpost
93a419df75c1a17c1ffa30b0b9061bb3dfd7ce57
[ "0BSD" ]
null
null
null
GameContext.hpp
Derjik/Outpost
93a419df75c1a17c1ffa30b0b9061bb3dfd7ce57
[ "0BSD" ]
null
null
null
#ifndef GAME_CONTEXT_HPP_INCLUDED #define GAME_CONTEXT_HPP_INCLUDED #include <VBN/IGameContext.hpp> class Platform; class IEventHandler; class IView; class IModel; class GameContext : public IGameContext { private: std::shared_ptr<Platform> _platform; std::shared_ptr<IModel> _model; std::shared_ptr<IView> _v...
20.15
48
0.744417
[ "model" ]
e36a64f2b2e431a47506a86409ec16f4ecaa24e3
900
cpp
C++
Layer.cpp
unigoetheradaw/prg2-pr_milestone3-master
47395c1479838b9e1a45e5d16953d0db5c2b3453
[ "MIT" ]
null
null
null
Layer.cpp
unigoetheradaw/prg2-pr_milestone3-master
47395c1479838b9e1a45e5d16953d0db5c2b3453
[ "MIT" ]
null
null
null
Layer.cpp
unigoetheradaw/prg2-pr_milestone3-master
47395c1479838b9e1a45e5d16953d0db5c2b3453
[ "MIT" ]
null
null
null
/** * Project NeuralNet */ #include "Layer.h" #include <vector> #include "Node.h" Layer::Layer(std::size_t num, std::function<double(double)> activation_function, std::function<double(double)> activation_function_diff) : nodes_(std::vector<Node>(num, Node(activation_function, activation_function_diff))) { no...
23.076923
136
0.631111
[ "vector" ]
e36a97ef5f5787cd7e200f7eacbf8f8856806971
15,037
cc
C++
webkit/fileapi/file_system_path_manager_unittest.cc
meego-tablet-ux/meego-app-browser
0f4ef17bd4b399c9c990a2f6ca939099495c2b9c
[ "BSD-3-Clause" ]
1
2015-10-12T09:14:22.000Z
2015-10-12T09:14:22.000Z
webkit/fileapi/file_system_path_manager_unittest.cc
meego-tablet-ux/meego-app-browser
0f4ef17bd4b399c9c990a2f6ca939099495c2b9c
[ "BSD-3-Clause" ]
null
null
null
webkit/fileapi/file_system_path_manager_unittest.cc
meego-tablet-ux/meego-app-browser
0f4ef17bd4b399c9c990a2f6ca939099495c2b9c
[ "BSD-3-Clause" ]
1
2020-11-04T07:22:28.000Z
2020-11-04T07:22:28.000Z
// Copyright (c) 2011 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 "webkit/fileapi/file_system_path_manager.h" #include <set> #include <string> #include "base/basictypes.h" #include "base/file_util.h" #incl...
36.059952
80
0.667952
[ "vector" ]
e381c00d192c2e8558cd67ab0b8369b555a765fc
2,062
cpp
C++
engine/src/wolf.render/directX/w_graphics/w_direct2D/w_line.cpp
SiminBadri/Wolf.Engine
3da04471ec26e162e1cbb7cc88c7ce37ee32c954
[ "BSL-1.0", "Apache-2.0", "libpng-2.0" ]
1
2020-07-15T13:14:26.000Z
2020-07-15T13:14:26.000Z
engine/src/wolf.render/directX/w_graphics/w_direct2D/w_line.cpp
foroughmajidi/Wolf.Engine
f08a8cbd519ca2c70b1c8325250dc9af7ac4c498
[ "BSL-1.0", "Apache-2.0", "libpng-2.0" ]
null
null
null
engine/src/wolf.render/directX/w_graphics/w_direct2D/w_line.cpp
foroughmajidi/Wolf.Engine
f08a8cbd519ca2c70b1c8325250dc9af7ac4c498
[ "BSL-1.0", "Apache-2.0", "libpng-2.0" ]
null
null
null
#include "w_directX_pch.h" #include "w_line.h" using namespace D2D1; using namespace wolf::graphics; using namespace wolf::graphics::direct2D::shapes; w_line::w_line(const std::shared_ptr<w_graphics_device>& pGDevice, D2D1_POINT_2F pStartPoint, D2D1_POINT_2F pStopPoint) : _gDevice(pGDevice), _start_point(pStartPoint)...
22.659341
193
0.71969
[ "solid" ]
be630118bbce4dbcd3f3a8e2e86d8b8a97055615
1,109
hpp
C++
third_party/boost/simd/function/maxnummag.hpp
xmar/pythran
dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592
[ "BSD-3-Clause" ]
5
2018-02-20T11:21:12.000Z
2019-11-12T13:45:09.000Z
third_party/boost/simd/function/maxnummag.hpp
xmar/pythran
dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592
[ "BSD-3-Clause" ]
null
null
null
third_party/boost/simd/function/maxnummag.hpp
xmar/pythran
dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592
[ "BSD-3-Clause" ]
2
2017-12-12T12:29:52.000Z
2019-04-08T15:55:25.000Z
//================================================================================================== /*! @file @copyright 2016 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ //===========================...
23.595745
100
0.577998
[ "object" ]
be645aa2882b8d0de2f76ff66149ebc1afdcc067
2,985
cpp
C++
src/main.cpp
abainbridge/chart-chisel
5b6a02a77faaf1a76fc40594581873ba820899a0
[ "MIT" ]
1
2019-02-25T11:13:00.000Z
2019-02-25T11:13:00.000Z
src/main.cpp
abainbridge/chart-chisel
5b6a02a77faaf1a76fc40594581873ba820899a0
[ "MIT" ]
null
null
null
src/main.cpp
abainbridge/chart-chisel
5b6a02a77faaf1a76fc40594581873ba820899a0
[ "MIT" ]
null
null
null
// Own header #include "main.h" // Standard headers #include <stdarg.h> #include <stdio.h> // Deadfrog headers #include "fonts/df_mono.h" #include "df_bmp.h" #include "df_font.h" #include "df_message_dialog.h" #include "df_time.h" #include "df_window.h" // Project headers #include "antialiased_draw.h" #include "mess...
24.467213
96
0.605025
[ "render" ]
be70eea0f50157b59fa1f26a70292fcf4fc973dd
173,836
cpp
C++
ds/security/services/scerpc/client/setupcln.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
ds/security/services/scerpc/client/setupcln.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
ds/security/services/scerpc/client/setupcln.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
/*++ Copyright (c) 1996 Microsoft Corporation Module Name: setupcln.cpp Abstract: SCE setup Client APIs Author: Jin Huang (jinhuang) 23-Jun-1997 created Revision History: jinhuang 23-Jan-1998 split to client-server model --*/ #include "headers.h" #include "scer...
29.103633
131
0.430843
[ "object", "model" ]
be73fdf4c9a9fc35de867b0b65d8715986c33922
18,826
cpp
C++
brlycmbd/CrdBrlyNav/PnlBrlyNavAdmin_blks.cpp
mpsitech/brly-BeamRelay
481ccb3e83ea6151fb78eba293b44ade62a0ec78
[ "MIT" ]
null
null
null
brlycmbd/CrdBrlyNav/PnlBrlyNavAdmin_blks.cpp
mpsitech/brly-BeamRelay
481ccb3e83ea6151fb78eba293b44ade62a0ec78
[ "MIT" ]
null
null
null
brlycmbd/CrdBrlyNav/PnlBrlyNavAdmin_blks.cpp
mpsitech/brly-BeamRelay
481ccb3e83ea6151fb78eba293b44ade62a0ec78
[ "MIT" ]
null
null
null
/** * \file PnlBrlyNavAdmin_blks.cpp * job handler for job PnlBrlyNavAdmin (implementation of blocks) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Alexander Wirthmueller (auto-generation) * \date created: 11 Jan 2021 */ // IP header --- ABOVE using namespace std; using namespace Sbecore; using nam...
35.587902
200
0.674546
[ "vector" ]
be835341b18eb6acfc04f321dec080e0ae15a0a2
3,161
cpp
C++
Source/Transform.cpp
chuckeles/metal-pacman
78f20fff1e2f578932014e349a5e81b1f6eb7d7c
[ "MIT" ]
1
2019-05-10T06:37:54.000Z
2019-05-10T06:37:54.000Z
Source/Transform.cpp
chuckeles/metal-pacman
78f20fff1e2f578932014e349a5e81b1f6eb7d7c
[ "MIT" ]
null
null
null
Source/Transform.cpp
chuckeles/metal-pacman
78f20fff1e2f578932014e349a5e81b1f6eb7d7c
[ "MIT" ]
null
null
null
#include "Transform.hpp" #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> void Transform::Move(float x, float y, float z, Space space) { Move(glm::vec3(x, y, z), space); } void Transform::Move(glm::vec3 pos, Space space) { mDirty = true; switch (space) { case Space::Local: ...
21.951389
83
0.585574
[ "transform" ]
be878c1e0194816a6ae48de9a8eebcef0412c6e4
3,550
cpp
C++
Source/WebKit/WebProcess/GPU/media/RemoteCDMFactory.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Source/WebKit/WebProcess/GPU/media/RemoteCDMFactory.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Source/WebKit/WebProcess/GPU/media/RemoteCDMFactory.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (C) 2020 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
34.803922
187
0.770141
[ "vector" ]
be8bd469c1b21d91971199daf00520e2e2efc1a5
726
cpp
C++
hihocoder/1038.cpp
phiysng/leetcode
280e8b1a0b45233deb2262ceec85b8174e9b2ced
[ "BSD-3-Clause" ]
3
2019-04-12T19:12:55.000Z
2020-05-29T07:55:16.000Z
hihocoder/1038.cpp
phiysng/leetcode
280e8b1a0b45233deb2262ceec85b8174e9b2ced
[ "BSD-3-Clause" ]
null
null
null
hihocoder/1038.cpp
phiysng/leetcode
280e8b1a0b45233deb2262ceec85b8174e9b2ced
[ "BSD-3-Clause" ]
null
null
null
#include <algorithm> #include <iostream> #include <unordered_map> #include <vector> using namespace std; int main(int argc, char const* argv[]) { int nu, values; cin >> nu >> values; vector<int> need(nu + 1), value(nu + 1); for (size_t i = 1; i < nu + 1; i++) { cin >> need[i] >> value[i]; ...
24.2
85
0.484848
[ "vector" ]
be8ccce94e27b398f1bce48d43c0f360ff44082c
1,101
cxx
C++
POSN Camp2/frog_jump-094718.cxx
ParamaaS/ParamaaS-Cpp-code-
a6c78151defe38d1460cde2b005a67be5a1d092d
[ "MIT" ]
null
null
null
POSN Camp2/frog_jump-094718.cxx
ParamaaS/ParamaaS-Cpp-code-
a6c78151defe38d1460cde2b005a67be5a1d092d
[ "MIT" ]
null
null
null
POSN Camp2/frog_jump-094718.cxx
ParamaaS/ParamaaS-Cpp-code-
a6c78151defe38d1460cde2b005a67be5a1d092d
[ "MIT" ]
null
null
null
/*/ - Paramaa Sawanpanyalert - Lang : c++ /*/ #include <bits/stdc++.h> using namespace std; #define X first #define Y second #define mp make_pair #define pb push_back int n,m,arr[255][255],ard[250][250],c,c2; int ar[255][255],x,y,disr,disd,nx,ny; queue<pair<int,int>> q; main() { while(scanf("%d%d",&n,&m)!=EOF) { fo...
16.938462
41
0.453224
[ "3d" ]
be94976508d42ae6db08ef7e7c1e620dac64a322
7,766
cpp
C++
src/common/benchmarkdatabase.cpp
pc2/fbench
0e21704f9e4dd3440b03ee913e058ee3916086f2
[ "MIT" ]
null
null
null
src/common/benchmarkdatabase.cpp
pc2/fbench
0e21704f9e4dd3440b03ee913e058ee3916086f2
[ "MIT" ]
null
null
null
src/common/benchmarkdatabase.cpp
pc2/fbench
0e21704f9e4dd3440b03ee913e058ee3916086f2
[ "MIT" ]
2
2020-10-20T14:51:31.000Z
2020-10-20T15:25:41.000Z
/***************************************************************************** * @file benchmarkdatabase.cpp * @class BenchmarkDatabase * * <b>Purpose:</b> Track results for multiple benchmarks * Print statistics of raw results. Generate JSON, XML, CSV * file for results. * * <b>Modifications:</b> * * @author Masood R...
24.971061
95
0.522148
[ "vector" ]
be95c205d94a298435497de8ccf8a171e3d851c7
5,760
cpp
C++
1139/main.cpp
Heliovic/PAT_Solutions
7c5dd554654045308f2341713c3e52cc790beb59
[ "MIT" ]
2
2019-03-18T12:55:38.000Z
2019-09-07T10:11:26.000Z
1139/main.cpp
Heliovic/My_PAT_Answer
7c5dd554654045308f2341713c3e52cc790beb59
[ "MIT" ]
null
null
null
1139/main.cpp
Heliovic/My_PAT_Answer
7c5dd554654045308f2341713c3e52cc790beb59
[ "MIT" ]
null
null
null
#include <cstdio> #include <vector> #include <set> #include <utility> #include <algorithm> #include <queue> #define MAX_ID 10240 #define MALE 1 #define FEMALE -1 using namespace std; int gender[MAX_ID]; vector<int> friends[MAX_ID]; int N, M, K; vector<pair<int, int> > ans; void MF(int s, int t) { //printf("%d...
21.254613
79
0.358333
[ "vector" ]
be98cb6106d633b137d90c809ac4e8c15bfd74a9
19,704
cpp
C++
test/vcf/normalize_test.cpp
Jack-Ren1/vcf-validator
186085059cb5c25b710afc3d4ce68a40be22f96e
[ "Apache-2.0" ]
null
null
null
test/vcf/normalize_test.cpp
Jack-Ren1/vcf-validator
186085059cb5c25b710afc3d4ce68a40be22f96e
[ "Apache-2.0" ]
null
null
null
test/vcf/normalize_test.cpp
Jack-Ren1/vcf-validator
186085059cb5c25b710afc3d4ce68a40be22f96e
[ "Apache-2.0" ]
null
null
null
/** * Copyright 2017 EMBL - European Bioinformatics Institute * * 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 ...
51.3125
127
0.630989
[ "vector" ]
be9a94d5e579488d9b363c176c2606427573476b
517
cpp
C++
142_count_no_of_hops.cpp
swapmali/Must-Do-Coding-Questions-For-Companies-GFG
b68340c150f572c0fad7311af87f79b684060fb9
[ "MIT" ]
1
2021-02-07T19:50:36.000Z
2021-02-07T19:50:36.000Z
142_count_no_of_hops.cpp
swapmali/Must-Do-Coding-Questions-For-Companies-GFG
b68340c150f572c0fad7311af87f79b684060fb9
[ "MIT" ]
null
null
null
142_count_no_of_hops.cpp
swapmali/Must-Do-Coding-Questions-For-Companies-GFG
b68340c150f572c0fad7311af87f79b684060fb9
[ "MIT" ]
1
2021-05-06T15:30:47.000Z
2021-05-06T15:30:47.000Z
// https://practice.geeksforgeeks.org/problems/count-number-of-hops/0 #include <bits/stdc++.h> using namespace std; int main() { #ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); #endif ios_base::sync_with_stdio(false); cin.tie(NULL); int t; cin >> t; while (t--) { ...
15.666667
69
0.547389
[ "vector" ]
be9ca91b0f830eaae9c4dfa77bf560ec3c09a42a
12,390
cxx
C++
SimVascular-master/Code/Source/sv4gui/Modules/svFSI/sv4gui_svFSIJob.cxx
mccsssk2/SimVascularPM3_March2020
3cce6cc7be66545bea5dc3915a2db50a3892bf04
[ "BSD-3-Clause" ]
null
null
null
SimVascular-master/Code/Source/sv4gui/Modules/svFSI/sv4gui_svFSIJob.cxx
mccsssk2/SimVascularPM3_March2020
3cce6cc7be66545bea5dc3915a2db50a3892bf04
[ "BSD-3-Clause" ]
null
null
null
SimVascular-master/Code/Source/sv4gui/Modules/svFSI/sv4gui_svFSIJob.cxx
mccsssk2/SimVascularPM3_March2020
3cce6cc7be66545bea5dc3915a2db50a3892bf04
[ "BSD-3-Clause" ]
null
null
null
/* Copyright (c) Stanford University, The Regents of the University of * California, and others. * * All Rights Reserved. * * See Copyright-SimVascular.txt for additional details. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated doc...
38.71875
148
0.524455
[ "mesh", "vector", "model" ]
be9d526da647e15b933e8ea62be3c6cf5aed5bc4
6,378
cpp
C++
src/debug.cpp
dj1mm/vhdlstuff
36768a6195991f31a33015fbeb3cf717c5d52ce4
[ "Unlicense" ]
null
null
null
src/debug.cpp
dj1mm/vhdlstuff
36768a6195991f31a33015fbeb3cf717c5d52ce4
[ "Unlicense" ]
null
null
null
src/debug.cpp
dj1mm/vhdlstuff
36768a6195991f31a33015fbeb3cf717c5d52ce4
[ "Unlicense" ]
null
null
null
#include <chrono> #include <filesystem> #include <fstream> #include <iostream> #include <string> #include <vector> #include "version.h" // this define is needed before the include format.h. Otherwise will get an // `undefined reference to `fmt::v8::vformat` compile error #define FMT_HEADER_ONLY #include "fmt/args.h"...
30.663462
130
0.550329
[ "vector" ]
bea32e62a4dc9a23ab66165f7a604a1538865726
3,213
cpp
C++
JanuaEngine/tgcviewer-cpp/TgcViewer/GuiController.cpp
gigc/Janua
cbcc8ad0e9501e1faef5b37a964769970aa3d236
[ "MIT", "Unlicense" ]
98
2015-01-13T16:23:23.000Z
2022-02-14T21:51:07.000Z
JanuaEngine/tgcviewer-cpp/TgcViewer/GuiController.cpp
gigc/Janua
cbcc8ad0e9501e1faef5b37a964769970aa3d236
[ "MIT", "Unlicense" ]
1
2016-06-30T22:07:54.000Z
2016-06-30T22:07:54.000Z
JanuaEngine/tgcviewer-cpp/TgcViewer/GuiController.cpp
gigc/Janua
cbcc8ad0e9501e1faef5b37a964769970aa3d236
[ "MIT", "Unlicense" ]
13
2015-08-26T11:19:08.000Z
2021-07-12T03:41:50.000Z
///////////////////////////////////////////////////////////////////////////////// // TgcViewer-cpp // // Author: Matias Leone // ///////////////////////////////////////////////////////////////////////////////// #include "TgcViewer/GuiController.h" using namespace TgcViewer; GuiController* GuiController::Instance ...
21
81
0.678494
[ "render" ]
bea3f93e00103700b51e61e5cb65d150d3c03863
2,144
cpp
C++
deepg3d/code/transforms/rotation_z.cpp
eth-sri/3dcertify
bb10f339f80149a9ebc7c07d041b2ef222efb394
[ "Apache-2.0" ]
9
2021-03-31T20:27:50.000Z
2022-01-07T21:52:47.000Z
deepg3d/code/transforms/rotation_z.cpp
eth-sri/3dcertify
bb10f339f80149a9ebc7c07d041b2ef222efb394
[ "Apache-2.0" ]
2
2021-06-21T15:38:07.000Z
2021-11-08T09:10:09.000Z
deepg3d/code/transforms/rotation_z.cpp
eth-sri/3dcertify
bb10f339f80149a9ebc7c07d041b2ef222efb394
[ "Apache-2.0" ]
4
2021-07-17T15:04:14.000Z
2022-02-09T17:51:39.000Z
#include "rotation_z.h" Point<double> RotationZTransformation3D::transform(const Point<double> &point, const std::vector<double> &params) const { assert(params.size() == 1); double alpha = params[0]; return {cos(alpha) * point.x - sin(alpha) * point.y, sin(alpha) * ...
36.338983
80
0.614272
[ "vector", "transform" ]
bead2c9afce523d8cd875569316120fd2564cc19
70,205
cpp
C++
src/CQChartsAxis.cpp
SammyEnigma/CQCharts
56433e32c943272b6faaf6771d0652c0507f943e
[ "MIT" ]
14
2018-05-22T15:06:08.000Z
2022-01-20T12:18:28.000Z
src/CQChartsAxis.cpp
SammyEnigma/CQCharts
56433e32c943272b6faaf6771d0652c0507f943e
[ "MIT" ]
6
2020-09-04T15:49:24.000Z
2022-01-12T19:06:45.000Z
src/CQChartsAxis.cpp
SammyEnigma/CQCharts
56433e32c943272b6faaf6771d0652c0507f943e
[ "MIT" ]
9
2019-04-01T13:10:11.000Z
2022-01-22T01:46:27.000Z
#include <CQChartsAxis.h> #include <CQChartsPlot.h> #include <CQChartsView.h> #include <CQChartsModelUtil.h> #include <CQChartsEditHandles.h> #include <CQChartsVariant.h> #include <CQCharts.h> #include <CQChartsPaintDevice.h> #include <CQChartsDrawUtil.h> #include <CQChartsRotatedText.h> #include <CQPropertyViewModel....
24.868934
98
0.603974
[ "model" ]
beae804862e0c7eca0d55b1bbe730f80e275e54f
3,684
cpp
C++
src/FSTable.cpp
pperehozhih/transform-cxx
f630079779e9e3cf6d06dcfc04b3ad0bd99d7e48
[ "BSD-3-Clause" ]
4
2018-09-16T09:55:22.000Z
2020-12-19T02:02:40.000Z
src/FSTable.cpp
pperehozhih/transform-cxx
f630079779e9e3cf6d06dcfc04b3ad0bd99d7e48
[ "BSD-3-Clause" ]
null
null
null
src/FSTable.cpp
pperehozhih/transform-cxx
f630079779e9e3cf6d06dcfc04b3ad0bd99d7e48
[ "BSD-3-Clause" ]
2
2015-11-24T20:27:35.000Z
2019-06-04T15:23:30.000Z
/* * FSTable.cpp * Transform SWF * * Created by smackay on Fri Mar 28 2003. * Copyright (c) 2001-2003 Flagstone Software Ltd. All rights reserved. * * This file is part of the Transform SWF library. You may not use this file except in * compliance with the terms of the license (the 'License') that...
28.338462
95
0.580347
[ "transform" ]
beb2f5dad7bcefaff43e36be9b08d73684a0708e
140,722
cpp
C++
chuffed/flatzinc/parser.tab.cpp
aekh/chuffed
61c52d833f5fc6081bf1e48b4608b36a802135d5
[ "MIT" ]
null
null
null
chuffed/flatzinc/parser.tab.cpp
aekh/chuffed
61c52d833f5fc6081bf1e48b4608b36a802135d5
[ "MIT" ]
null
null
null
chuffed/flatzinc/parser.tab.cpp
aekh/chuffed
61c52d833f5fc6081bf1e48b4608b36a802135d5
[ "MIT" ]
null
null
null
/* A Bison parser, made by GNU Bison 3.7.1. */ /* Bison implementation for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License a...
38.270873
150
0.494677
[ "vector", "model" ]
bec03e07038db885b4eb9369011066923fca0f15
9,227
cpp
C++
hydra/blocks/old/hubbardmodeldetail.cpp
awietek/hydra
724a101500e308e91186a5cd6c5c520d8b343a6c
[ "Apache-2.0" ]
null
null
null
hydra/blocks/old/hubbardmodeldetail.cpp
awietek/hydra
724a101500e308e91186a5cd6c5c520d8b343a6c
[ "Apache-2.0" ]
null
null
null
hydra/blocks/old/hubbardmodeldetail.cpp
awietek/hydra
724a101500e308e91186a5cd6c5c520d8b343a6c
[ "Apache-2.0" ]
null
null
null
// Copyright 2019 Alexander Wietek - 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 appl...
40.292576
79
0.631083
[ "vector" ]
bec65c1126171bae2f179751f00bfb491c9cb22c
4,055
cpp
C++
lib/CodeGen/Primitives/TypenamePrimitive.cpp
scross99/locic
a24bb380e17f8af69e7389acf8ce354c91a2abf3
[ "MIT" ]
80
2015-02-19T21:38:57.000Z
2016-05-25T06:53:12.000Z
lib/CodeGen/Primitives/TypenamePrimitive.cpp
scross99/locic
a24bb380e17f8af69e7389acf8ce354c91a2abf3
[ "MIT" ]
8
2015-02-20T09:47:20.000Z
2015-11-13T07:49:17.000Z
lib/CodeGen/Primitives/TypenamePrimitive.cpp
scross99/locic
a24bb380e17f8af69e7389acf8ce354c91a2abf3
[ "MIT" ]
6
2015-02-20T11:26:19.000Z
2016-04-13T14:30:39.000Z
#include <assert.h> #include <stdexcept> #include <string> #include <vector> #include <llvm-abi/ABI.hpp> #include <llvm-abi/ABITypeInfo.hpp> #include <llvm-abi/Type.hpp> #include <llvm-abi/TypeBuilder.hpp> #include <locic/CodeGen/ArgInfo.hpp> #include <locic/CodeGen/ConstantGenerator.hpp> #include <locic/CodeGen/Deb...
36.531532
113
0.623921
[ "vector" ]
beccedb1b00b6b6c0cc50d7d603ad6a17539e1d9
1,260
hpp
C++
lib/SurfacingAlgorithms/huji-rich-Elad3DFast/source/newtonian/three_dimensional/cell_updater_3d.hpp
GalaxyHunters/Vivid
f724e5671b650433d0c26319c86231bd3b246e4e
[ "BSD-3-Clause" ]
null
null
null
lib/SurfacingAlgorithms/huji-rich-Elad3DFast/source/newtonian/three_dimensional/cell_updater_3d.hpp
GalaxyHunters/Vivid
f724e5671b650433d0c26319c86231bd3b246e4e
[ "BSD-3-Clause" ]
222
2018-07-25T18:13:57.000Z
2021-10-10T14:54:04.000Z
lib/SurfacingAlgorithms/huji-rich-Elad3DFast/source/newtonian/three_dimensional/cell_updater_3d.hpp
GalaxyHunters/Vivid
f724e5671b650433d0c26319c86231bd3b246e4e
[ "BSD-3-Clause" ]
2
2018-07-29T09:39:40.000Z
2018-08-25T19:17:49.000Z
/*! \file cell_updater_3d.hpp \brief Abstract class for cell update scheme \author Almog Yalinewich */ #ifndef CELL_UPDATER_HPP #define CELL_UPDATER_HPP 1 #include "computational_cell.hpp" #include "conserved_3d.hpp" #include "../../3D/GeometryCommon/Tessellation3D.hpp" #include "../two_dimensional/computational...
29.302326
116
0.77381
[ "vector", "3d" ]
bee2fbe0b1259b406b9494bbc55abdb91071a3ba
5,477
cpp
C++
src/Core/Animation/DualQuaternionSkinning.cpp
Yasoo31/Radium-Engine
e22754d0abe192207fd946509cbd63c4f9e52dd4
[ "Apache-2.0" ]
78
2017-12-01T12:23:22.000Z
2022-03-31T05:08:09.000Z
src/Core/Animation/DualQuaternionSkinning.cpp
neurodiverseEsoteric/Radium-Engine
ebebc29d889a9d32e0637e425e589e403d8edef8
[ "Apache-2.0" ]
527
2017-09-25T13:05:32.000Z
2022-03-31T18:47:44.000Z
src/Core/Animation/DualQuaternionSkinning.cpp
neurodiverseEsoteric/Radium-Engine
ebebc29d889a9d32e0637e425e589e403d8edef8
[ "Apache-2.0" ]
48
2018-01-04T22:08:08.000Z
2022-03-03T08:13:41.000Z
#include <Core/Animation/DualQuaternionSkinning.hpp> #include <Core/Animation/SkinningData.hpp> namespace Ra { namespace Core { namespace Animation { DQList computeDQ( const Pose& pose, const Sparse& weight ) { CORE_ASSERT( ( pose.size() == size_t( weight.cols() ) ), "pose/weight size mismatch." ); DQList DQ...
36.513333
99
0.585357
[ "mesh", "vector", "model", "transform" ]
beec95f4a6e578e2207104fe750abda9b69a0227
1,554
cpp
C++
_codeforces/191C/191c.cpp
rusucosmin/Cplusplus
0e95cd01d20b22404aa4166c71d5a9e834a5a21b
[ "MIT" ]
11
2015-08-29T13:41:22.000Z
2020-01-08T20:34:06.000Z
_codeforces/191C/191c.cpp
rusucosmin/Cplusplus
0e95cd01d20b22404aa4166c71d5a9e834a5a21b
[ "MIT" ]
null
null
null
_codeforces/191C/191c.cpp
rusucosmin/Cplusplus
0e95cd01d20b22404aa4166c71d5a9e834a5a21b
[ "MIT" ]
5
2016-01-20T18:17:01.000Z
2019-10-30T11:57:15.000Z
#include <iostream> #include <vector> using namespace std; const int maxn = 200005; const int maxlg = 22; int n, k, level[maxn], anc[maxlg][maxn], mars[maxn]; vector <int> g[maxn]; inline void dfs(int node, int father) { anc[0][node] = father; level[node] = level[father] + 1; for(auto it : g[node]) if(it != fa...
18.722892
52
0.513514
[ "vector" ]
beed288776010d36171f5b9bef4f2ffd20bd4875
2,265
cpp
C++
2019/0420_tenka1-2019/D.cpp
kazunetakahashi/atcoder
16ce65829ccc180260b19316e276c2fcf6606c53
[ "MIT" ]
7
2019-03-24T14:06:29.000Z
2020-09-17T21:16:36.000Z
2019/0420_tenka1-2019/D.cpp
kazunetakahashi/atcoder
16ce65829ccc180260b19316e276c2fcf6606c53
[ "MIT" ]
null
null
null
2019/0420_tenka1-2019/D.cpp
kazunetakahashi/atcoder
16ce65829ccc180260b19316e276c2fcf6606c53
[ "MIT" ]
1
2020-07-22T17:27:09.000Z
2020-07-22T17:27:09.000Z
#define DEBUG 1 /** * File : D.cpp * Author : Kazune Takahashi * Created : 2019-4-20 21:08:04 * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> ...
20.972222
103
0.4883
[ "vector" ]
beee50397d8fde35592f38e151976f4d78b5b1eb
5,125
cpp
C++
hedcuter/code/hedcut.cpp
FaezDabestani/hedcut
bd653ea88a3b52586be10ed4a9d52d276bfbd646
[ "MIT" ]
null
null
null
hedcuter/code/hedcut.cpp
FaezDabestani/hedcut
bd653ea88a3b52586be10ed4a9d52d276bfbd646
[ "MIT" ]
null
null
null
hedcuter/code/hedcut.cpp
FaezDabestani/hedcut
bd653ea88a3b52586be10ed4a9d52d276bfbd646
[ "MIT" ]
null
null
null
#include "hedcut.h" #include <time.h> Hedcut::Hedcut() { //control flags disk_size = 1; //if uniform_disk_size is true, all disks have radius=disk_size, //othewise, the largest disks will have their radii=disk_size deviation = 7; uniform_disk_size = false; //true if all disks hav...
26.554404
117
0.628878
[ "vector" ]
beefb1815f6c6ff27049831155f6be3b41abdd44
3,541
cc
C++
backends/npu/kernels/where_index_kernel.cc
Aganlengzi/PaddleCustomDevice
0aa0d2e1b2e5db556777604e6fe851a7d0697456
[ "Apache-2.0" ]
null
null
null
backends/npu/kernels/where_index_kernel.cc
Aganlengzi/PaddleCustomDevice
0aa0d2e1b2e5db556777604e6fe851a7d0697456
[ "Apache-2.0" ]
null
null
null
backends/npu/kernels/where_index_kernel.cc
Aganlengzi/PaddleCustomDevice
0aa0d2e1b2e5db556777604e6fe851a7d0697456
[ "Apache-2.0" ]
null
null
null
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
34.378641
78
0.620164
[ "vector" ]
bef507265d29a0f4847813bd6e692377209d7df1
4,929
hpp
C++
src/fleury/reachable_vertices_from.hpp
CppPhil/graph_algorithms
6742fccf83a85fd7b1e500ac495b35c7d0670b84
[ "Unlicense" ]
null
null
null
src/fleury/reachable_vertices_from.hpp
CppPhil/graph_algorithms
6742fccf83a85fd7b1e500ac495b35c7d0670b84
[ "Unlicense" ]
null
null
null
src/fleury/reachable_vertices_from.hpp
CppPhil/graph_algorithms
6742fccf83a85fd7b1e500ac495b35c7d0670b84
[ "Unlicense" ]
null
null
null
#ifndef INCG_GP_FLEURY_REACHABLE_VERTICES_FROM_HPP #define INCG_GP_FLEURY_REACHABLE_VERTICES_FROM_HPP #include "../directed_graph.hpp" // gp::DirectedGraph #include "../vertex.hpp" // gp::Vertex #include <cinttypes> // UINT64_C #include <ciso646> // not ...
41.420168
80
0.664638
[ "vector", "transform" ]
bef711ea4b56f94abbcd8d510f475a825b411d9b
3,047
cpp
C++
Release/samples/granada/oauth2-server/src/business/message.cpp
htmlpuzzle/moonlynx
c098b30ab8689fc8ea25fa375c337afa9964af81
[ "MIT" ]
null
null
null
Release/samples/granada/oauth2-server/src/business/message.cpp
htmlpuzzle/moonlynx
c098b30ab8689fc8ea25fa375c337afa9964af81
[ "MIT" ]
null
null
null
Release/samples/granada/oauth2-server/src/business/message.cpp
htmlpuzzle/moonlynx
c098b30ab8689fc8ea25fa375c337afa9964af81
[ "MIT" ]
null
null
null
/** * Copyright (c) <2016> granada <afernandez@cookinapps.io> * * This source code is licensed under the MIT license. * * 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 wi...
40.626667
133
0.653101
[ "vector" ]
bef76e64c80bbb5e013f41bafa5d8dbd2e726165
1,386
cxx
C++
src/Cxx/Images/RTAnalyticSource.cxx
cvandijck/VTKExamples
b6bb89414522afc1467be8a1f0089a37d0c16883
[ "Apache-2.0" ]
309
2017-05-21T09:07:19.000Z
2022-03-15T09:18:55.000Z
src/Cxx/Images/RTAnalyticSource.cxx
yijianmingliu/VTKExamples
dc8aac47c4384f9a2de9facbdd1ab3249f62ec99
[ "Apache-2.0" ]
379
2017-05-21T09:06:43.000Z
2021-03-29T20:30:50.000Z
src/Cxx/Images/RTAnalyticSource.cxx
yijianmingliu/VTKExamples
dc8aac47c4384f9a2de9facbdd1ab3249f62ec99
[ "Apache-2.0" ]
170
2017-05-17T14:47:41.000Z
2022-03-31T13:16:26.000Z
#include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkImageActor.h> #include <vtkImageMapper3D.h> #include <vtkImageData.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkRTAnalyticSource.h> int main(int, char*[])...
27.72
57
0.765512
[ "render" ]