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
bca410e19d825d674530aa5860e7ab881d68aec4
10,594
cpp
C++
CUDA/CudaDeviceInfo/cudadeviceinfo.cpp
nicolasrosa/StereoVision
16f042258846a9a098888553d45e7bf3485edbae
[ "MIT" ]
9
2016-04-06T02:48:16.000Z
2021-01-29T23:11:05.000Z
CUDA/CudaDeviceInfo/cudadeviceinfo.cpp
nicolasrosa/StereoVision
16f042258846a9a098888553d45e7bf3485edbae
[ "MIT" ]
null
null
null
CUDA/CudaDeviceInfo/cudadeviceinfo.cpp
nicolasrosa/StereoVision
16f042258846a9a098888553d45e7bf3485edbae
[ "MIT" ]
3
2017-01-11T16:34:35.000Z
2019-08-27T15:50:30.000Z
#include "opencv2/opencv.hpp" #include "opencv2/core/cuda.hpp" #include <iostream> using namespace std; using namespace cv; /* @ function main */ int main( int argc, char *argv[] ) { // CUDA device count int nDeviceCount = 0; nDeviceCount = cuda::getCudaEnabledDeviceCount(); // CUDA device index ...
43.958506
104
0.709741
[ "3d" ]
bca9b99272cdc3523aaeaa2b336cb06bcef800a9
7,657
cpp
C++
OilSpillage/UI/Elements/ItemSelector.cpp
Xemrion/Exam-work
7243f8db9951a0cdaebcfb5804df737a4d795b10
[ "Apache-2.0" ]
3
2020-04-25T22:23:07.000Z
2022-03-03T17:44:00.000Z
OilSpillage/UI/Elements/ItemSelector.cpp
Xemrion/Exam-work
7243f8db9951a0cdaebcfb5804df737a4d795b10
[ "Apache-2.0" ]
null
null
null
OilSpillage/UI/Elements/ItemSelector.cpp
Xemrion/Exam-work
7243f8db9951a0cdaebcfb5804df737a4d795b10
[ "Apache-2.0" ]
null
null
null
#include "ItemSelector.h" #include "../../game.h" #include "../UserInterface.h" Vector2 ItemSelector::size = Vector2(736, 192); void ItemSelector::addTextbox() { int selectedIndex = this->selectedIndex[this->selectedType] - this->startIndex[this->selectedType]; Container::Slot* slot = Container::playerInventory->ge...
36.8125
274
0.709024
[ "object", "vector" ]
bcb34f451937f0899045aee6466bf6b63e9c6d54
553
cpp
C++
ZeroEngine/Bullet.cpp
bamtoll09/GROWN
0f2098bce97a739f9b786d487136aa44f1b6a227
[ "MIT" ]
null
null
null
ZeroEngine/Bullet.cpp
bamtoll09/GROWN
0f2098bce97a739f9b786d487136aa44f1b6a227
[ "MIT" ]
null
null
null
ZeroEngine/Bullet.cpp
bamtoll09/GROWN
0f2098bce97a739f9b786d487136aa44f1b6a227
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "Bullet.h" Bullet::Bullet(void) :available(true), speed(500.f), update(true) { bullet = new ZeroSprite("%s", "exresource/bullet.png"); this->SetWidth(bullet->Width()); this->SetHeight(bullet->Height()); PushScene(bullet); } Bullet::~Bullet(void) { } void Bullet::Update(float eTime...
14.945946
56
0.632911
[ "render" ]
bcb66e0e5c6cfbfe35afcdb313fd5282f5e5ea59
14,619
cpp
C++
Tests/GeometryShop/regression/ebio.cpp
malvarado27/Amrex
8d5c7a37695e7dc899386bfd1f6ac28221984976
[ "BSD-3-Clause-LBNL" ]
1
2021-05-20T13:04:05.000Z
2021-05-20T13:04:05.000Z
Tests/GeometryShop/regression/ebio.cpp
malvarado27/Amrex
8d5c7a37695e7dc899386bfd1f6ac28221984976
[ "BSD-3-Clause-LBNL" ]
null
null
null
Tests/GeometryShop/regression/ebio.cpp
malvarado27/Amrex
8d5c7a37695e7dc899386bfd1f6ac28221984976
[ "BSD-3-Clause-LBNL" ]
null
null
null
#include "AMReX_BaseIVFactory.H" #include "AMReX_EBIndexSpace.H" #include "AMReX_EBISLayout.H" #include "AMReX_BoxIterator.H" #include "AMReX_ParmParse.H" #include "AMReX_GeometryShop.H" #include "AMReX_WrappedGShop.H" #include "AMReX_EBCellFAB.H" #include "AMReX_EBLevelGrid.H" #include "AMReX_LayoutData.H" #include "...
29.355422
113
0.551816
[ "geometry", "vector" ]
bcbce956a8c807f913bb7e71c26a5bdda02eb094
7,551
hpp
C++
framework/areg/component/private/EventConsumerMap.hpp
Ali-Nasrolahi/areg-sdk
4fbc2f2644220196004a31672a697a864755f0b6
[ "Apache-2.0" ]
70
2021-07-20T11:26:16.000Z
2022-03-27T11:17:43.000Z
framework/areg/component/private/EventConsumerMap.hpp
Ali-Nasrolahi/areg-sdk
4fbc2f2644220196004a31672a697a864755f0b6
[ "Apache-2.0" ]
32
2021-07-31T05:20:44.000Z
2022-03-20T10:11:52.000Z
framework/areg/component/private/EventConsumerMap.hpp
Ali-Nasrolahi/areg-sdk
4fbc2f2644220196004a31672a697a864755f0b6
[ "Apache-2.0" ]
40
2021-11-02T09:45:38.000Z
2022-03-27T11:17:46.000Z
#pragma once /************************************************************************ * This file is part of the AREG SDK core engine. * AREG SDK is dual-licensed under Free open source (Apache version 2.0 * License) and Commercial (with various pricing models) licenses, depending * on the nature of the project (c...
44.417647
104
0.533572
[ "object" ]
bcbd5f80517fe250afdf4d16cc189c3f1724b476
5,885
hxx
C++
main/framework/inc/uielement/menubarmerger.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/framework/inc/uielement/menubarmerger.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/framework/inc/uielement/menubarmerger.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...
48.636364
170
0.494138
[ "vector" ]
bcbf4b921040e9efe8af76477d8e5fec00041fb6
6,183
cxx
C++
inetcore/winhttp/tools/w3spoof/om/session/scriptsite.cxx
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
inetcore/winhttp/tools/w3spoof/om/session/scriptsite.cxx
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
inetcore/winhttp/tools/w3spoof/om/session/scriptsite.cxx
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
/*++=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Copyright (c) 2000 Microsoft Corporation Module Name: scriptsite.cxx Abstract: Implements the IActiveScriptSite interface for the session object. Author: Paul M Midgen (pmidge) 10-October-2000 Revi...
21.925532
103
0.51496
[ "object" ]
346739af8e905d242f0441d80284d88f103ad5b2
681
cpp
C++
Scripts/501_std.cpp
zzz0906/LeetCode
cd0b4a4fd03d0dff585c9ef349984eba1922ece0
[ "MIT" ]
17
2018-08-23T08:53:56.000Z
2021-04-17T00:06:13.000Z
Scripts/501_std.cpp
zzz0906/LeetCode
cd0b4a4fd03d0dff585c9ef349984eba1922ece0
[ "MIT" ]
null
null
null
Scripts/501_std.cpp
zzz0906/LeetCode
cd0b4a4fd03d0dff585c9ef349984eba1922ece0
[ "MIT" ]
null
null
null
class Solution { public: vector<int> findMode(TreeNode* root) { vector<int> res; int mx = 0, cnt = 1; TreeNode *pre = NULL; inorder(root, pre, cnt, mx, res); return res; } void inorder(TreeNode* node, TreeNode*& pre, int& cnt, int& mx, vector<int>& res) { if (...
28.375
87
0.465492
[ "vector" ]
346901c2afdbab68c324f5f4f2c1a6ff4b362420
1,388
cpp
C++
aws-cpp-sdk-eks/source/model/ListFargateProfilesResult.cpp
Neusoft-Technology-Solutions/aws-sdk-cpp
88c041828b0dbee18a297c3cfe98c5ecd0706d0b
[ "Apache-2.0" ]
1
2022-02-10T08:06:54.000Z
2022-02-10T08:06:54.000Z
aws-cpp-sdk-eks/source/model/ListFargateProfilesResult.cpp
Neusoft-Technology-Solutions/aws-sdk-cpp
88c041828b0dbee18a297c3cfe98c5ecd0706d0b
[ "Apache-2.0" ]
1
2021-10-14T16:57:00.000Z
2021-10-18T10:47:24.000Z
aws-cpp-sdk-eks/source/model/ListFargateProfilesResult.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2021-11-09T12:02:58.000Z
2021-11-09T12:02:58.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/eks/model/ListFargateProfilesResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #include <aws/...
27.76
142
0.773055
[ "model" ]
34696a79cd51f819e238943fe8c4531ab2d31039
4,922
cpp
C++
MyProgram/2DOverlay/Source.cpp
shihyu/openvr
44310f0ecdcdbfba442ff1bc140b03211432fb1b
[ "BSD-3-Clause" ]
2
2018-07-30T07:46:41.000Z
2019-03-21T13:00:23.000Z
MyProgram/2DOverlay/Source.cpp
KHeresy/openvr
f644fc67c96132d9fe5a67d42a27ccc6bcf5595c
[ "BSD-3-Clause" ]
null
null
null
MyProgram/2DOverlay/Source.cpp
KHeresy/openvr
f644fc67c96132d9fe5a67d42a27ccc6bcf5595c
[ "BSD-3-Clause" ]
4
2016-06-26T07:26:51.000Z
2018-10-05T05:48:30.000Z
// A test program to use 'overlay' in OpenVR // STD Headers #include <chrono> #include <iostream> #include <string> #include <sstream> #include <thread> // OpenVR #include <openvr.h> #pragma comment(lib,"openvr_api.lib") // OpenCV #include <opencv2/core.hpp> #include <opencv2/imgcodecs.hpp> #include <opencv2/imgpro...
31.551282
127
0.70703
[ "render", "model" ]
346ea9c6d08614c731590be21e59ebf6d3c82347
2,875
cpp
C++
src/Correctors/Best.cpp
dsiuta/Comps
2071279280d33946e975de25deedc60f1881eda0
[ "BSD-3-Clause" ]
null
null
null
src/Correctors/Best.cpp
dsiuta/Comps
2071279280d33946e975de25deedc60f1881eda0
[ "BSD-3-Clause" ]
null
null
null
src/Correctors/Best.cpp
dsiuta/Comps
2071279280d33946e975de25deedc60f1881eda0
[ "BSD-3-Clause" ]
null
null
null
#include "Best.h" #include "../Obs.h" #include "../Parameters.h" CorrectorBest::CorrectorBest(const Options& iOptions, const Data& iData) : Corrector(iOptions, iData), mNum(1) { //! How many of the best members should be used? iOptions.getValue("num", mNum); iOptions.check(); } void CorrectorBest::correctCore...
30.913978
115
0.570087
[ "vector" ]
3484288d5dc51e9493c8dd6695b9cceaf5a95ff7
2,936
hpp
C++
include/mex_cv_4b.hpp
davin11/GNLM
73ec2a9b4a1091e7e00283f2dfc6ebc6fdfb3679
[ "BSD-4-Clause-UC" ]
7
2018-12-18T12:31:13.000Z
2022-02-22T16:39:42.000Z
include/mex_cv_4b.hpp
davin11/GNLM
73ec2a9b4a1091e7e00283f2dfc6ebc6fdfb3679
[ "BSD-4-Clause-UC" ]
1
2020-05-04T04:37:19.000Z
2020-05-04T04:37:19.000Z
include/mex_cv_4b.hpp
davin11/GNLM
73ec2a9b4a1091e7e00283f2dfc6ebc6fdfb3679
[ "BSD-4-Clause-UC" ]
4
2020-11-05T13:14:53.000Z
2022-03-20T11:06:15.000Z
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // // Copyright (c) 2012 Image Processing Research Group of University Federico II of Naples ('GRIP-UNINA'). // All rights reserved. // This software should be used, reproduced and modified only for informational and nonprofit purposes. /...
31.234043
106
0.521117
[ "vector", "3d" ]
348b133f18875fe36aa202f08ac0b1cfc4f8614b
4,658
cpp
C++
src/CNFA.cpp
alexander-smoktal/pattern-engine
49a500008c278d8f9ee3ca233418aee68fb9e8d2
[ "Apache-2.0" ]
null
null
null
src/CNFA.cpp
alexander-smoktal/pattern-engine
49a500008c278d8f9ee3ca233418aee68fb9e8d2
[ "Apache-2.0" ]
null
null
null
src/CNFA.cpp
alexander-smoktal/pattern-engine
49a500008c278d8f9ee3ca233418aee68fb9e8d2
[ "Apache-2.0" ]
null
null
null
#include "CNFA.h" CNFA::CNFA(const std::shared_ptr<CState> &start_state, const std::shared_ptr<CState> &end_state) : _start_state(start_state) , _final_state(end_state) { _final_state->setIsFinalState(true); } CNFA::~CNFA() { // NFA start state is the only entry point for the NFA graph. If we are going to // de...
30.246753
124
0.719622
[ "vector" ]
3496bfb3f77d2383a67c565f60f34309913b4253
76,157
cpp
C++
AuditRules.cpp
kovdan01/OMS-Auditd-Plugin
529db434129f43f5763a405eb3357bedad757968
[ "MIT" ]
13
2019-07-01T04:58:51.000Z
2022-01-28T13:38:02.000Z
AuditRules.cpp
kovdan01/OMS-Auditd-Plugin
529db434129f43f5763a405eb3357bedad757968
[ "MIT" ]
16
2019-05-08T00:40:43.000Z
2021-07-27T23:11:26.000Z
AuditRules.cpp
kovdan01/OMS-Auditd-Plugin
529db434129f43f5763a405eb3357bedad757968
[ "MIT" ]
9
2019-12-19T00:06:53.000Z
2021-12-03T09:45:20.000Z
/* microsoft-oms-auditd-plugin Copyright (c) Microsoft Corporation All rights reserved. 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 without restriction, in...
33.832519
464
0.504747
[ "vector" ]
349fa317b29cee36b90468081f0e99e9af7c8a26
1,106
cpp
C++
src/lib/storage/AbstractIndex.cpp
EvilMcJerkface/hyrise-v1
d97fa0df5b9e2b9aaa78865c010e93173404086d
[ "MIT" ]
7
2017-11-13T11:02:59.000Z
2022-02-05T11:49:35.000Z
src/lib/storage/AbstractIndex.cpp
EvilMcJerkface/hyrise-v1
d97fa0df5b9e2b9aaa78865c010e93173404086d
[ "MIT" ]
null
null
null
src/lib/storage/AbstractIndex.cpp
EvilMcJerkface/hyrise-v1
d97fa0df5b9e2b9aaa78865c010e93173404086d
[ "MIT" ]
6
2017-10-19T13:34:08.000Z
2020-11-30T13:14:47.000Z
// Copyright (c) 2012 Hasso-Plattner-Institut fuer Softwaresystemtechnik GmbH. All rights reserved. #include <storage/AbstractIndex.h> namespace hyrise { namespace storage { AbstractIndex::AbstractIndex() {}; AbstractIndex::AbstractIndex(std::string id) : _id(id) {} AbstractIndex::~AbstractIndex() {} std::string A...
39.5
120
0.576854
[ "vector" ]
34bc5636da46a8af1e70324fb10d1bb077d67827
2,728
cpp
C++
mplugins/cameras_mplugin/src/cameras/flow/RaspiCam.cpp
mico-corp/mico
45febf13da8c919eea77af9fa3b91afeb324f81b
[ "MIT" ]
3
2020-02-08T19:47:14.000Z
2022-03-14T14:13:29.000Z
mplugins/cameras_mplugin/src/cameras/flow/RaspiCam.cpp
mico-corp/mico
45febf13da8c919eea77af9fa3b91afeb324f81b
[ "MIT" ]
10
2020-01-29T21:27:12.000Z
2022-03-22T17:03:02.000Z
mplugins/cameras_mplugin/src/cameras/flow/RaspiCam.cpp
mico-corp/mico
45febf13da8c919eea77af9fa3b91afeb324f81b
[ "MIT" ]
null
null
null
//--------------------------------------------------------------------------------------------------------------------- // Cameras wrapper MICO plugin //--------------------------------------------------------------------------------------------------------------------- // Copyright 2020 Pablo Ramon Soria (a.k.a. Bar...
43.301587
119
0.519062
[ "vector" ]
34bdef10ab74702e6285c9a618ac7bc0f181f4c4
2,802
cpp
C++
src/PureGravComp.cpp
ndehio/mc_franka
230fda2c0f872ccd9cd387159b46ca769930519b
[ "BSD-2-Clause" ]
null
null
null
src/PureGravComp.cpp
ndehio/mc_franka
230fda2c0f872ccd9cd387159b46ca769930519b
[ "BSD-2-Clause" ]
null
null
null
src/PureGravComp.cpp
ndehio/mc_franka
230fda2c0f872ccd9cd387159b46ca769930519b
[ "BSD-2-Clause" ]
null
null
null
// Copyright (c) 2017 Franka Emika GmbH // Use of this source code is governed by the Apache-2.0 license, see LICENSE #include <array> #include <atomic> #include <cmath> #include <functional> #include <iostream> #include <iterator> #include <mutex> #include <thread> #include <Eigen/Core> #include <Eigen/Eigen> #inclu...
38.916667
180
0.652034
[ "model" ]
34ce1b371f1492d80dd787e27de453a38cc8b591
13,329
hpp
C++
libtifwang/TiffFile.hpp
Imagine-Programming/tiffconvert
1eba05f3f876ac669d28ab9309326376bef61ef1
[ "MIT" ]
null
null
null
libtifwang/TiffFile.hpp
Imagine-Programming/tiffconvert
1eba05f3f876ac669d28ab9309326376bef61ef1
[ "MIT" ]
3
2021-02-15T08:10:59.000Z
2021-03-13T10:52:47.000Z
libtifwang/TiffFile.hpp
Imagine-Programming/tiffconvert
1eba05f3f876ac669d28ab9309326376bef61ef1
[ "MIT" ]
null
null
null
#pragma once #include "pch.h" #ifndef tiff_file_h #define tiff_file_h namespace TiffWang { namespace Tiff { constexpr const char* IntelEndian = "II"; // Start bytes of Tiff files, little endian. constexpr const char* MotorolaEndian = "MM"; // Start bytes of Tiff files, big endian. constexpr uint16_t ...
42.858521
171
0.652037
[ "vector" ]
34d0987fc3ff6edab38c6dc08b3de48cf2f23f07
150,962
cpp
C++
source/grains.cpp
cloudy-astrophysics/cloudy_lfs
aed1d6d78042b93f17ea497a37b35a524f3d3e2e
[ "Zlib" ]
null
null
null
source/grains.cpp
cloudy-astrophysics/cloudy_lfs
aed1d6d78042b93f17ea497a37b35a524f3d3e2e
[ "Zlib" ]
null
null
null
source/grains.cpp
cloudy-astrophysics/cloudy_lfs
aed1d6d78042b93f17ea497a37b35a524f3d3e2e
[ "Zlib" ]
null
null
null
/* This file is part of Cloudy and is copyright (C)1978-2019 by Gary J. Ferland and * others. For conditions of distribution and use see copyright notice in license.txt */ /*grain main routine to converge grains thermal solution */ #include "cddefines.h" #include "atmdat.h" #include "atmdat_adfa.h" #include "rfield.h...
31.915856
113
0.635153
[ "vector", "model" ]
34d0a001f86abc839b7d792c37f0a0fac0b105f2
6,683
hpp
C++
test/src/minko/render/DrawCallPoolTest.hpp
undeadinu/minko
9171805751fb3a50c6fcab0b78892cdd4253ee11
[ "BSD-3-Clause" ]
478
2015-01-04T16:59:53.000Z
2022-03-07T20:28:07.000Z
test/src/minko/render/DrawCallPoolTest.hpp
undeadinu/minko
9171805751fb3a50c6fcab0b78892cdd4253ee11
[ "BSD-3-Clause" ]
83
2015-01-15T21:45:06.000Z
2021-11-08T11:01:48.000Z
test/src/minko/render/DrawCallPoolTest.hpp
undeadinu/minko
9171805751fb3a50c6fcab0b78892cdd4253ee11
[ "BSD-3-Clause" ]
175
2015-01-04T03:30:39.000Z
2020-01-27T17:08:14.000Z
/* Copyright (c) 2014 Aerys Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicens...
44.553333
111
0.576388
[ "geometry", "render" ]
34d455f5e2ae664101ae626be74df811fba654e3
1,702
cpp
C++
src/HTTP/HTMLDocument.cpp
b10h4z4rd1337/CppServer
983f682bd129ab615e8433304584467a716ec455
[ "Apache-2.0" ]
3
2018-01-03T10:33:43.000Z
2022-03-13T20:04:39.000Z
src/HTTP/HTMLDocument.cpp
b10h4z4rd1337/CppServer
983f682bd129ab615e8433304584467a716ec455
[ "Apache-2.0" ]
null
null
null
src/HTTP/HTMLDocument.cpp
b10h4z4rd1337/CppServer
983f682bd129ab615e8433304584467a716ec455
[ "Apache-2.0" ]
1
2022-03-13T20:04:47.000Z
2022-03-13T20:04:47.000Z
// // HTMLDocument.cpp // Cpp_Server // // Created by Mathias Tahas on 22.04.17. // Copyright © 2017 Mathias Tahas. All rights reserved. // #include "HTMLDocument.hpp" #include "FileIO.hpp" #include "Parser.hpp" #include <sstream> using namespace CppServer; using namespace FileIO; HTMLDocument HTMLDocument::fro...
26.59375
95
0.663925
[ "vector" ]
34d5b8396b7a3ae9207edf0444064d2ded93b5b7
48,192
cpp
C++
src/GameState.cpp
jemeador/monopoly
b4945fbb3cb527f54d3875b367b906e35e07acda
[ "MIT" ]
null
null
null
src/GameState.cpp
jemeador/monopoly
b4945fbb3cb527f54d3875b367b906e35e07acda
[ "MIT" ]
16
2021-02-13T04:38:20.000Z
2021-05-02T23:16:10.000Z
src/GameState.cpp
jemeador/monopoly
b4945fbb3cb527f54d3875b367b906e35e07acda
[ "MIT" ]
null
null
null
#include"GameState.h" #include"Board.h" #include"DisplayStrings.h" using namespace monopoly; #include<algorithm> #include<iostream> #include<numeric> GameState::GameState(GameSetup setup) : rng() , phase(TurnPhase::WaitingForRoll) , bank() , decks(init_decks(setup)) , players(init_players(setup)) ...
35.566052
171
0.689222
[ "vector", "transform" ]
34e632f1581d5b32d27a8b284ca08742e9521d35
2,682
cpp
C++
Week1/MTE140-LectureNotes#1-Selection-Sort-Implementation.cpp
ahtchow/mte-140
0dee938d5801544e8f592ee7a81a16bed8bbbf29
[ "BSD-4-Clause-UC" ]
null
null
null
Week1/MTE140-LectureNotes#1-Selection-Sort-Implementation.cpp
ahtchow/mte-140
0dee938d5801544e8f592ee7a81a16bed8bbbf29
[ "BSD-4-Clause-UC" ]
null
null
null
Week1/MTE140-LectureNotes#1-Selection-Sort-Implementation.cpp
ahtchow/mte-140
0dee938d5801544e8f592ee7a81a16bed8bbbf29
[ "BSD-4-Clause-UC" ]
null
null
null
#include <iostream> #include <vector> #include <functional> using namespace std; // TODO: Implement the Selection Sort algorithm from Lecture Notes #1 // By completing this code exercise on your own, you should be able to: // (1) Implement the selection sort algorithm // (2) Pass vectors by reference into fu...
30.827586
81
0.691648
[ "vector" ]
34e9c7df9007ba5a867b60ba9ec13cc65276ed12
5,665
cpp
C++
src/controller/src/mcp23x08.cpp
johnmgreenwell/cpld-alu
5a8c1022d1aedaf551c2ee3efaef6eb39feabdf2
[ "MIT" ]
null
null
null
src/controller/src/mcp23x08.cpp
johnmgreenwell/cpld-alu
5a8c1022d1aedaf551c2ee3efaef6eb39feabdf2
[ "MIT" ]
null
null
null
src/controller/src/mcp23x08.cpp
johnmgreenwell/cpld-alu
5a8c1022d1aedaf551c2ee3efaef6eb39feabdf2
[ "MIT" ]
null
null
null
//---------------------------------------------------------------------------- // Name : mcp23x08.cpp // Purpose : MCP23X08 IO-Expander Chip Controller Class // Description : This source file accompanies header file mcp23x08.h // Platform : Multiple // Framework : Arduino // Language : C++ // Copyrig...
27.634146
78
0.642012
[ "object" ]
34eefd5cf0e7e38fa4328be2de12feaee9932785
7,125
cpp
C++
src/apps/S3DAnalyzer/worker/videosynchronizer.cpp
hugbed/OpenS3D
4ffad16f9b0973404b59eb1424cc45f68754fe12
[ "BSD-3-Clause" ]
8
2017-04-16T16:38:15.000Z
2020-04-20T03:23:15.000Z
src/apps/S3DAnalyzer/worker/videosynchronizer.cpp
hugbed/OpenS3D
4ffad16f9b0973404b59eb1424cc45f68754fe12
[ "BSD-3-Clause" ]
40
2017-04-12T17:24:44.000Z
2017-12-21T18:41:23.000Z
src/apps/S3DAnalyzer/worker/videosynchronizer.cpp
hugbed/OpenS3D
4ffad16f9b0973404b59eb1424cc45f68754fe12
[ "BSD-3-Clause" ]
6
2017-07-13T21:51:09.000Z
2021-05-18T16:22:03.000Z
#include "videosynchronizer.h" #include "live_capture_device_factory.h" #include <QDebug> #include <QImage> #include <QTimer> #include <s3d/cv/video/stereo_demuxer/stereo_demuxer_cv_side_by_side.h> #include <s3d/cv/video/stereo_demuxer/stereo_demuxer_factory_cv.h> #include <s3d/video/capture/ffmpeg/file_video_captur...
30.448718
103
0.718737
[ "3d" ]
34f107afdd3953541663587d20a555d6e16ea45f
3,546
cc
C++
src/unittest/test_memory.cc
sylvainbouxin/MiyukiRenderer
88242b9e18ca7eaa1c751ab07f585fac8b591b5a
[ "MIT" ]
null
null
null
src/unittest/test_memory.cc
sylvainbouxin/MiyukiRenderer
88242b9e18ca7eaa1c751ab07f585fac8b591b5a
[ "MIT" ]
null
null
null
src/unittest/test_memory.cc
sylvainbouxin/MiyukiRenderer
88242b9e18ca7eaa1c751ab07f585fac8b591b5a
[ "MIT" ]
1
2019-09-11T20:20:54.000Z
2019-09-11T20:20:54.000Z
// // Created by Shiina Miyuki on 2019/2/3. // #include "../core/memory.h" #include "../core/util.h" #define BOOST_AUTO_TEST_MAIN #define BOOST_TEST_MODULE TestMemory #include <boost/test/unit_test.hpp> #include <boost/test/unit_test_log.hpp> #include <boost/filesystem/fstream.hpp> namespace utf = boost::unit_test...
24.797203
70
0.467569
[ "vector" ]
34f453dcdf0a2d7f36c1d60ee08aef1c59c82687
9,910
tpp
C++
core/src/utility/python_utility.tpp
maierbn/opendihu
577650e2f6b36a7306766b0f4176f8124458cbf0
[ "MIT" ]
17
2018-11-25T19:29:34.000Z
2021-09-20T04:46:22.000Z
core/src/utility/python_utility.tpp
maierbn/opendihu
577650e2f6b36a7306766b0f4176f8124458cbf0
[ "MIT" ]
1
2020-11-12T15:15:58.000Z
2020-12-29T15:29:24.000Z
core/src/utility/python_utility.tpp
maierbn/opendihu
577650e2f6b36a7306766b0f4176f8124458cbf0
[ "MIT" ]
4
2018-10-17T12:18:10.000Z
2021-05-28T13:24:20.000Z
#include "utility/python_utility.h" #include <Python.h> #include "easylogging++.h" #include <fstream> #include <iostream> #include <iomanip> #include <algorithm> #include <array> #include "utility/vector_operators.h" #include "control/python_config/settings_file_name.h" template<typename Key, typename Value> std::p...
30.776398
154
0.625025
[ "vector" ]
34f82b6c5caf3c11c712c5f6a8e2ceace6f33199
11,743
hpp
C++
chaste/TestCrumbPredictions.hpp
CardiacModelling/PyHillFit
91a9b5dd3a9455dbf0f3a2ea4785402925fab26b
[ "BSD-3-Clause" ]
9
2016-11-21T13:38:59.000Z
2021-11-16T04:03:57.000Z
chaste/TestCrumbPredictions.hpp
CardiacModelling/PyHillFit
91a9b5dd3a9455dbf0f3a2ea4785402925fab26b
[ "BSD-3-Clause" ]
1
2017-02-27T23:11:54.000Z
2017-07-31T17:55:25.000Z
chaste/TestCrumbPredictions.hpp
CardiacModelling/PyHillFit
91a9b5dd3a9455dbf0f3a2ea4785402925fab26b
[ "BSD-3-Clause" ]
2
2020-04-06T11:45:05.000Z
2020-12-17T16:50:04.000Z
/* Copyright (c) 2005-2016, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and binary forms...
48.127049
204
0.631355
[ "vector", "model" ]
5a606a14f5fa06c3087fe612d831f1f8fea67650
2,618
cpp
C++
src/registrar/registrar.cpp
MrQuasar173/CATNET
ba6f5ab18241ec141cd078615df54e3aaf90558b
[ "MIT" ]
2
2021-04-13T03:41:05.000Z
2021-07-12T21:46:40.000Z
src/registrar/registrar.cpp
MrQuasar173/CATNET
ba6f5ab18241ec141cd078615df54e3aaf90558b
[ "MIT" ]
null
null
null
src/registrar/registrar.cpp
MrQuasar173/CATNET
ba6f5ab18241ec141cd078615df54e3aaf90558b
[ "MIT" ]
null
null
null
#include "registrar.hpp" #include <message.hpp> #include <tcp_socket.hpp> #include <tcp_server_socket.hpp> #include <tcp_socket.hpp> #include <thread> #include <base.pb.h> #include <encrypt.hpp> #include <log.hpp> #include <message.hpp> #include <vector> #include "../message/include/message.hpp" #include "../message/i...
26.714286
100
0.71505
[ "vector" ]
5a6d5d3933aa474fc06ab0a0cdaca7b75fd9e5a6
32,841
cpp
C++
src/core/core.cpp
dtcxzyw/animgui
0e99e4302fc08d8085ef1fdf55d380a79c04373b
[ "MIT" ]
2
2021-07-14T05:52:26.000Z
2021-12-28T13:39:32.000Z
src/core/core.cpp
dtcxzyw/animgui
0e99e4302fc08d8085ef1fdf55d380a79c04373b
[ "MIT" ]
null
null
null
src/core/core.cpp
dtcxzyw/animgui
0e99e4302fc08d8085ef1fdf55d380a79c04373b
[ "MIT" ]
2
2022-01-01T06:03:11.000Z
2022-02-17T07:36:46.000Z
// SPDX-License-Identifier: MIT #include <animgui/builtins/styles.hpp> #include <animgui/core/animator.hpp> #include <animgui/core/canvas.hpp> #include <animgui/core/command_optimizer.hpp> #include <animgui/core/context.hpp> #include <animgui/core/font_backend.hpp> #include <animgui/core/image_compactor.hpp> ...
51.314063
131
0.552206
[ "render", "vector", "transform" ]
5a6e3afc0d7e6562ae0c05db663a75bde771ce61
5,626
cpp
C++
Editor/LevelEditor/Edit/SceneObject.cpp
ixray-team/xray-vss-archive
b245c8601dcefb505b4b51f58142da6769d4dc92
[ "Linux-OpenIB" ]
1
2022-03-26T17:00:19.000Z
2022-03-26T17:00:19.000Z
Editor/LevelEditor/Edit/SceneObject.cpp
ixray-team/xray-vss-archive
b245c8601dcefb505b4b51f58142da6769d4dc92
[ "Linux-OpenIB" ]
null
null
null
Editor/LevelEditor/Edit/SceneObject.cpp
ixray-team/xray-vss-archive
b245c8601dcefb505b4b51f58142da6769d4dc92
[ "Linux-OpenIB" ]
1
2022-03-26T17:00:21.000Z
2022-03-26T17:00:21.000Z
//---------------------------------------------------- // file: CEditObject.cpp //---------------------------------------------------- #include "stdafx.h" #pragma hdrstop #include "SceneObject.h" #include "UI_Main.h" #include "bottombar.h" #include "scene.h" #include "d3dutils.h" #include "libra...
27.714286
118
0.638287
[ "mesh", "render", "object" ]
5a79eb2611237e710690a700e87e89431c56e2ca
15,781
cpp
C++
center.cpp
yuantailing/2-center
d9d7408bfda30626160ae569ee36b8f5a5ebe38e
[ "MIT" ]
null
null
null
center.cpp
yuantailing/2-center
d9d7408bfda30626160ae569ee36b8f5a5ebe38e
[ "MIT" ]
null
null
null
center.cpp
yuantailing/2-center
d9d7408bfda30626160ae569ee36b8f5a5ebe38e
[ "MIT" ]
null
null
null
#include "center.h" #include <cassert> #include <cmath> #include <algorithm> #include <chrono> #include <iostream> #include <random> #include <stdexcept> #include "kptree.h" #ifndef M_PI #define M_PI 3.14159265358979323846 #endif bool quick_case_only = false; static int tmp_dc_case; static Float tmp_dc_rotate_angle;...
40.464103
172
0.445282
[ "vector" ]
5a92a81a2205e78e87284560aef9499ff521dfb9
12,240
cpp
C++
brlycmbd/CrdBrlyNav/PnlBrlyNavConnect_blks.cpp
mpsitech/brly-BeamRelay
481ccb3e83ea6151fb78eba293b44ade62a0ec78
[ "MIT" ]
null
null
null
brlycmbd/CrdBrlyNav/PnlBrlyNavConnect_blks.cpp
mpsitech/brly-BeamRelay
481ccb3e83ea6151fb78eba293b44ade62a0ec78
[ "MIT" ]
null
null
null
brlycmbd/CrdBrlyNav/PnlBrlyNavConnect_blks.cpp
mpsitech/brly-BeamRelay
481ccb3e83ea6151fb78eba293b44ade62a0ec78
[ "MIT" ]
null
null
null
/** * \file PnlBrlyNavConnect_blks.cpp * job handler for job PnlBrlyNavConnect (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...
29.352518
111
0.640114
[ "vector" ]
5a9c0267993aeac7bd4943a799b598bd7a5b57f9
24,034
cxx
C++
Modules/Loadable/SubjectHierarchy/Widgets/qSlicerSubjectHierarchyScriptedPlugin.cxx
forfullstack/slicersources-src
91bcecf037a27f3fad4c0ab57e8286fc258bb0f5
[ "Apache-2.0" ]
null
null
null
Modules/Loadable/SubjectHierarchy/Widgets/qSlicerSubjectHierarchyScriptedPlugin.cxx
forfullstack/slicersources-src
91bcecf037a27f3fad4c0ab57e8286fc258bb0f5
[ "Apache-2.0" ]
null
null
null
Modules/Loadable/SubjectHierarchy/Widgets/qSlicerSubjectHierarchyScriptedPlugin.cxx
forfullstack/slicersources-src
91bcecf037a27f3fad4c0ab57e8286fc258bb0f5
[ "Apache-2.0" ]
null
null
null
/*============================================================================== Program: 3D Slicer Copyright (c) Laboratory for Percutaneous Surgery (PerkLab) Queen's University, Kingston, ON, Canada. All Rights Reserved. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. U...
37.908517
160
0.682242
[ "3d" ]
5aa51da16e001551cb53121788843cfb7053dece
6,411
cpp
C++
Chapter 2/CppPrimer_Sec2.4/CppPrimer_Sec2.4/main.cpp
toddbrentlinger/Cpp-Primer-5th-Edition
24594e1c8ae4cd5e28508d2e51f53631246efc18
[ "MIT" ]
null
null
null
Chapter 2/CppPrimer_Sec2.4/CppPrimer_Sec2.4/main.cpp
toddbrentlinger/Cpp-Primer-5th-Edition
24594e1c8ae4cd5e28508d2e51f53631246efc18
[ "MIT" ]
null
null
null
Chapter 2/CppPrimer_Sec2.4/CppPrimer_Sec2.4/main.cpp
toddbrentlinger/Cpp-Primer-5th-Edition
24594e1c8ae4cd5e28508d2e51f53631246efc18
[ "MIT" ]
null
null
null
#include <iostream> #include <string> // Function prototypes void NewSectionTitle(std::string customText = ""); void NewExerciseTitle(std::string customText = ""); int main() { // Section 2.4 - const Qualifier std::cout << "\n\tSection 2.4 - const Qualifier" << std::endl; // Exercise 2.26 std::c...
25.644
74
0.603026
[ "object" ]
5aa782854969b5eea753fadc54154c07b2fdca91
793
cpp
C++
ch11/ex11_9_and_11_19.cpp
Direct-Leo/CppPrimer
9d3993c7604377abc5a925c9fe6342ad3a062983
[ "CC0-1.0" ]
null
null
null
ch11/ex11_9_and_11_19.cpp
Direct-Leo/CppPrimer
9d3993c7604377abc5a925c9fe6342ad3a062983
[ "CC0-1.0" ]
null
null
null
ch11/ex11_9_and_11_19.cpp
Direct-Leo/CppPrimer
9d3993c7604377abc5a925c9fe6342ad3a062983
[ "CC0-1.0" ]
null
null
null
/* Created by vleo on 21/10/24 * Copyright(c)2021 vleo. All rights reserved. * * ex11_3 * "word counter" practice */ #include <string> #include <iostream> #include <sstream> #include <map> #include <algorithm> #include <vector> #include <list> using std::string; using std::map; using std::vector; using std::li...
18.880952
67
0.636822
[ "vector" ]
5aac1e53b71e0bf2ca18c734fd318fb24489a04d
19,484
cpp
C++
ardupilot/libraries/AP_NavEKF2/AP_NavEKF2_Outputs.cpp
quadrotor-IITKgp/emulate_GPS
3c888d5b27b81fb17e74d995370f64bdb110fb65
[ "MIT" ]
1
2021-07-17T11:37:16.000Z
2021-07-17T11:37:16.000Z
ardupilot/libraries/AP_NavEKF2/AP_NavEKF2_Outputs.cpp
arl-kgp/emulate_GPS
3c888d5b27b81fb17e74d995370f64bdb110fb65
[ "MIT" ]
null
null
null
ardupilot/libraries/AP_NavEKF2/AP_NavEKF2_Outputs.cpp
arl-kgp/emulate_GPS
3c888d5b27b81fb17e74d995370f64bdb110fb65
[ "MIT" ]
null
null
null
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- #include <AP_HAL/AP_HAL.h> #if HAL_CPU_CLASS >= HAL_CPU_CLASS_150 #include "AP_NavEKF2.h" #include "AP_NavEKF2_core.h" #include <AP_AHRS/AP_AHRS.h> #include <AP_Vehicle/AP_Vehicle.h> #include <stdio.h> extern const AP_HAL::HAL& hal; //...
39.601626
191
0.690823
[ "3d" ]
5ab084579555c8fa0799507a8d7dea8093b32b38
885
cpp
C++
Scripts/PlayerMovement/SliceSkill.cpp
solidajenjo/Engine
409516f15e0f083e79b749b9c9184f2f04184325
[ "MIT" ]
10
2019-02-25T11:36:23.000Z
2021-11-03T22:51:30.000Z
Scripts/PlayerMovement/SliceSkill.cpp
solidajenjo/Engine
409516f15e0f083e79b749b9c9184f2f04184325
[ "MIT" ]
146
2019-02-05T13:57:33.000Z
2019-11-07T16:21:31.000Z
Scripts/PlayerMovement/SliceSkill.cpp
FractalPuppy/Engine
409516f15e0f083e79b749b9c9184f2f04184325
[ "MIT" ]
3
2019-11-17T20:49:12.000Z
2020-04-19T17:28:28.000Z
#include "SliceSkill.h" #include "ComponentTransform.h" #include "ComponentBoxTrigger.h" #include "PlayerMovement.h" #include "PlayerStateAttack.h" #include "GameObject.h" #include "imgui.h" #include "JSON.h" SliceSkill::SliceSkill(PlayerMovement* PM, const char* trigger, ComponentBoxTrigger* attackBox) : MeleeSk...
20.581395
108
0.726554
[ "transform" ]
5ab6978ff1a7168ba95970b1c3fc326d55faac6e
7,849
cpp
C++
types/mesh.cpp
LAK132/laklib
25d1f28fceb0ef4d72f6182e0859418f95350db1
[ "MIT" ]
null
null
null
types/mesh.cpp
LAK132/laklib
25d1f28fceb0ef4d72f6182e0859418f95350db1
[ "MIT" ]
null
null
null
types/mesh.cpp
LAK132/laklib
25d1f28fceb0ef4d72f6182e0859418f95350db1
[ "MIT" ]
null
null
null
/* MIT License Copyright (c) 2018 LAK132 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
32.433884
208
0.568353
[ "mesh", "vector" ]
5abc484e0254e1bea5377c7127f3166c20c46240
1,627
cpp
C++
SPOJ/ABCDEF(Math, logic, Vector upper lower bound).cpp
abusomani/DS-Algo
b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba
[ "Unlicense" ]
null
null
null
SPOJ/ABCDEF(Math, logic, Vector upper lower bound).cpp
abusomani/DS-Algo
b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba
[ "Unlicense" ]
null
null
null
SPOJ/ABCDEF(Math, logic, Vector upper lower bound).cpp
abusomani/DS-Algo
b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba
[ "Unlicense" ]
null
null
null
//Sometimes I feel like giving up, then I remember I have a lot of motherfuckers to prove wrong! //@BEGIN OF SOURCE CODE ( By Abhishek Somani) /* (axb) + c = d x (e+f) // Both sides can be computed in O(n^3) Now as numbers as distinct, for each occurence of LHS, find all occurence in RHS. summation of these is ...
28.051724
115
0.492932
[ "vector" ]
5abd75aeb3a012dd08fca1d750db886bb25f49f1
10,526
hpp
C++
SDK/ARKSurvivalEvolved_WeapTekSniper_parameters.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
10
2020-02-17T19:08:46.000Z
2021-07-31T11:07:19.000Z
SDK/ARKSurvivalEvolved_WeapTekSniper_parameters.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
9
2020-02-17T18:15:41.000Z
2021-06-06T19:17:34.000Z
SDK/ARKSurvivalEvolved_WeapTekSniper_parameters.hpp
2bite/ARK-SDK
c38ca9925309516b2093ad8c3a70ed9489e1d573
[ "MIT" ]
3
2020-07-22T17:42:07.000Z
2021-06-19T17:16:13.000Z
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_WeapTekSniper_classes.hpp" namespace sdk { //--------------------------------------------------------------------------- //Parameters //--------------------------------------------------------...
44.041841
176
0.561087
[ "mesh" ]
62bf7c696dddca0bbc3d534169a5855d1a33b18b
691
cpp
C++
Online-Judges/CodeForces/1100/1288B.Yet_Another_Meme_Problem.cpp
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodeForces/1100/1288B.Yet_Another_Meme_Problem.cpp
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodeForces/1100/1288B.Yet_Another_Meme_Problem.cpp
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
#include <bits/stdc++.h> using namespace std; typedef long long int llint; typedef unsigned long long int ullint; typedef short int sint; #define endn "\n" #define umap unordered_map #define uset unordered_set #define pb push_back template<typename tem> void print_vector(vector<tem> &vec) { for (auto &ele : vec) cout<...
20.323529
62
0.612156
[ "vector" ]
62c381273e08a5bed92a8d7b8d8a49f6460f0e2e
638
cpp
C++
acmicpc/13334.cpp
juseongkr/BOJ
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
7
2020-02-03T10:00:19.000Z
2021-11-16T11:03:57.000Z
acmicpc/13334.cpp
juseongkr/Algorithm-training
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
1
2021-01-03T06:58:24.000Z
2021-01-03T06:58:24.000Z
acmicpc/13334.cpp
juseongkr/Algorithm-training
8f10a2bf9a7d695455493fbe7423347a8b648416
[ "Apache-2.0" ]
1
2020-01-22T14:34:03.000Z
2020-01-22T14:34:03.000Z
#include <iostream> #include <functional> #include <algorithm> #include <vector> #include <queue> using namespace std; int n, l, x, y, ans; vector<pair<int, int>> vec; priority_queue<int, vector<int>, greater<int>> que; int main() { ios_base::sync_with_stdio(0); cout.tie(0); cin.tie(0); cin >> n; for (int i=0; ...
15.560976
51
0.561129
[ "vector" ]
62cc7378127d2e6dbd6dce5b5025a0c0bb81e804
23,731
cpp
C++
tools/extractors/extract_battlescape_map.cpp
trevortomesh/OpenApoc
53cd163889fbfd21a9c128183427dad4255ac1a3
[ "MIT" ]
1
2020-11-10T18:31:44.000Z
2020-11-10T18:31:44.000Z
tools/extractors/extract_battlescape_map.cpp
trevortomesh/OpenApoc
53cd163889fbfd21a9c128183427dad4255ac1a3
[ "MIT" ]
null
null
null
tools/extractors/extract_battlescape_map.cpp
trevortomesh/OpenApoc
53cd163889fbfd21a9c128183427dad4255ac1a3
[ "MIT" ]
null
null
null
#include "framework/data.h" #include "framework/framework.h" #include "game/state/battle/battle.h" #include "game/state/gamestate.h" #include "game/state/rules/battle/battlemap.h" #include "library/strings_format.h" #include "tools/extractors/common/battlemap.h" #include "tools/extractors/extractors.h" #include <unorde...
30.269133
96
0.572837
[ "vector" ]
62ccd5ea1ad0aae5352e11f2ccb70e42a818cc43
672
hpp
C++
model/tests/mock/IoDeviceMock.hpp
benvenutti/core8
6677f509d309ec2d0bdbe360165429d664811177
[ "MIT" ]
2
2017-12-09T02:09:17.000Z
2018-10-20T03:59:40.000Z
model/tests/mock/IoDeviceMock.hpp
benvenutti/core8
6677f509d309ec2d0bdbe360165429d664811177
[ "MIT" ]
45
2016-11-07T23:13:29.000Z
2018-12-26T16:02:58.000Z
model/tests/mock/IoDeviceMock.hpp
benvenutti/core8
6677f509d309ec2d0bdbe360165429d664811177
[ "MIT" ]
null
null
null
#pragma once #include "model/Chip8.hpp" #include "model/IoDevice.hpp" namespace Mock { class IoDeviceMock : public model::IoDevice { public: ~IoDeviceMock() override = default; bool isKeyPressed( model::chip8::key key ) const override { if ( m_pressedKey ) { return key == m_p...
17.230769
66
0.607143
[ "model" ]
62d4de48d5526441ddf539e370b3e4090294c6c8
1,130
cpp
C++
2016/Day17/main.cpp
marcuskrahl/AdventOfCode
0148d9a01a565aac1a6104a6001478fab3b6d4f8
[ "MIT" ]
null
null
null
2016/Day17/main.cpp
marcuskrahl/AdventOfCode
0148d9a01a565aac1a6104a6001478fab3b6d4f8
[ "MIT" ]
null
null
null
2016/Day17/main.cpp
marcuskrahl/AdventOfCode
0148d9a01a565aac1a6104a6001478fab3b6d4f8
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include "Containers.hpp" #include <vector> void run_part_one() { std::vector<unsigned int> containers; unsigned int container_value; while (std::cin >> container_value) { containers.push_back(container_value); } std::cout << get_number_of_combinations...
26.27907
95
0.614159
[ "vector" ]
62df28d10e249c3ada6dadb97f92f63500acd012
1,767
cpp
C++
test/main.cpp
strangeQuark1041/samarium
7e4d107e719d54b55b16d63707595a27f357fb6d
[ "MIT" ]
1
2021-12-25T16:37:53.000Z
2021-12-25T16:37:53.000Z
test/main.cpp
strangeQuark1041/samarium
7e4d107e719d54b55b16d63707595a27f357fb6d
[ "MIT" ]
1
2022-03-07T11:46:27.000Z
2022-03-07T11:46:27.000Z
test/main.cpp
strangeQuark1041/samarium
7e4d107e719d54b55b16d63707595a27f357fb6d
[ "MIT" ]
null
null
null
/* * SPDX-License-Identifier: MIT * Copyright (c) 2022 Jai Bellare * See <https://opensource.org/licenses/MIT/> or LICENSE.md * Project homepage: https://github.com/strangeQuark1041/samarium */ // Based on: https://youtu.be/EK32jo7i5LQ #include "samarium/graphics/colors.hpp" #include "samarium/samarium.hpp" sta...
27.184615
97
0.55631
[ "vector", "transform" ]
62ef0c96252ad0038a4321d7c8819efa48a089b3
3,788
cpp
C++
tests/test_qp.cpp
vkotaru/nonlinear_controls
fbb32195924d810605cab90ea75308e878532e70
[ "BSD-3-Clause" ]
5
2020-12-22T02:27:27.000Z
2022-02-04T15:46:34.000Z
tests/test_qp.cpp
vkotaru/nonlinear_controls
fbb32195924d810605cab90ea75308e878532e70
[ "BSD-3-Clause" ]
null
null
null
tests/test_qp.cpp
vkotaru/nonlinear_controls
fbb32195924d810605cab90ea75308e878532e70
[ "BSD-3-Clause" ]
4
2021-04-30T12:32:36.000Z
2021-08-18T22:33:18.000Z
#include "common/qpoases_eigen.hpp" #include "controls/clf_qp.h" #include "quadprog/qpswift_eigen.h" #include <chrono> #include <eigen3/Eigen/Dense> #include <iostream> #include <qpOASES.hpp> namespace nlc = nonlinear_controls; #define nlc_real double int main() { USING_NAMESPACE_QPOASES ////////////////////////...
35.401869
79
0.587381
[ "object" ]
62f3600703d2d6101254311e7f196b9d1862aaeb
4,716
cpp
C++
elements/rendering/techniques/lpp_lighting_process.cpp
fromasmtodisasm/elements
31574ee5423b291d58b1169fa84f27938ce9666b
[ "MIT" ]
55
2016-06-13T07:26:22.000Z
2021-06-12T17:42:52.000Z
elements/rendering/techniques/lpp_lighting_process.cpp
fromasmtodisasm/elements
31574ee5423b291d58b1169fa84f27938ce9666b
[ "MIT" ]
22
2016-06-14T01:40:40.000Z
2017-01-03T23:26:20.000Z
elements/rendering/techniques/lpp_lighting_process.cpp
PkXwmpgN/elements
31574ee5423b291d58b1169fa84f27938ce9666b
[ "MIT" ]
7
2016-06-13T18:59:31.000Z
2019-08-14T16:36:55.000Z
/* The MIT License (MIT) Copyright (c) 2016 Alexey Yegorov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,...
34.173913
103
0.745123
[ "render", "transform" ]
62f5b23479c6d9e9763de5acd0cc460912e62d0d
139,534
cpp
C++
digitanks/src/digitanks/ui/hud.cpp
BSVino/Digitanks
1bd1ed115493bce22001ae6684b70b8fcf135db0
[ "BSD-4-Clause" ]
5
2015-07-03T18:42:32.000Z
2017-08-25T10:28:12.000Z
digitanks/src/digitanks/ui/hud.cpp
BSVino/Digitanks
1bd1ed115493bce22001ae6684b70b8fcf135db0
[ "BSD-4-Clause" ]
null
null
null
digitanks/src/digitanks/ui/hud.cpp
BSVino/Digitanks
1bd1ed115493bce22001ae6684b70b8fcf135db0
[ "BSD-4-Clause" ]
null
null
null
#include "hud.h" #include <geometry.h> #include <strutils.h> #include <tinker/cvar.h> #include <glgui/rootpanel.h> #include <tinker/profiler.h> #include <sound/sound.h> #include <renderer/game_renderer.h> #include <renderer/game_renderingcontext.h> #include <game/cameramanager.h> #include "digitankswindow.h" #inclu...
29.923654
323
0.709949
[ "geometry", "vector" ]
62fb268d318f1a6dccf8e3d498c8ee2b64f7d1e3
2,879
cpp
C++
modules/task_3/chernyh_d_simpson/simpson.cpp
allnes/pp_2022_spring
159191f9c2f218f8b8487f92853cc928a7652462
[ "BSD-3-Clause" ]
null
null
null
modules/task_3/chernyh_d_simpson/simpson.cpp
allnes/pp_2022_spring
159191f9c2f218f8b8487f92853cc928a7652462
[ "BSD-3-Clause" ]
null
null
null
modules/task_3/chernyh_d_simpson/simpson.cpp
allnes/pp_2022_spring
159191f9c2f218f8b8487f92853cc928a7652462
[ "BSD-3-Clause" ]
2
2022-03-31T17:48:22.000Z
2022-03-31T18:06:07.000Z
// Copyright 2022 Chernyh Daria #include <tbb/parallel_reduce.h> #include <iostream> #include <functional> #include <numeric> #include"../../../modules/task_3/chernyh_d_simpson/simpson.h" void SimpsonCalcul::operator() (const tbb::blocked_range<int>& r) { std::vector<double> x_left(dimension), x_right(dimension), ...
30.62766
80
0.552275
[ "vector" ]
1a09a4919f3c4c249fe656adcd14ed2e629f7448
5,382
cc
C++
modules/tools/navi_generator/backend/util/navigation_expander.cc
yujianyi/fusion_localization
c0057e29cbf690d6260f021080fd951c1a6b6baa
[ "Apache-2.0" ]
2
2019-03-04T02:11:04.000Z
2019-04-18T11:19:45.000Z
modules/tools/navi_generator/backend/util/navigation_expander.cc
yujianyi/fusion_localization
c0057e29cbf690d6260f021080fd951c1a6b6baa
[ "Apache-2.0" ]
1
2019-03-15T08:37:53.000Z
2019-03-15T08:37:53.000Z
modules/tools/navi_generator/backend/util/navigation_expander.cc
yujianyi/fusion_localization
c0057e29cbf690d6260f021080fd951c1a6b6baa
[ "Apache-2.0" ]
1
2019-03-04T02:11:09.000Z
2019-03-04T02:11:09.000Z
/****************************************************************************** * Copyright 2018 The Apollo 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 ...
35.88
79
0.681903
[ "vector" ]
1a0e667ad8533bd9fa881b831ad52fd2ff225c3e
87,993
cpp
C++
src/js/vm/TypedArrayObject.cpp
fengjixuchui/blazefox
d5c732ac7305a79fe20704c2d134c130f14eca83
[ "MIT" ]
149
2018-12-23T09:08:00.000Z
2022-02-02T09:18:38.000Z
src/js/vm/TypedArrayObject.cpp
fengjixuchui/blazefox
d5c732ac7305a79fe20704c2d134c130f14eca83
[ "MIT" ]
null
null
null
src/js/vm/TypedArrayObject.cpp
fengjixuchui/blazefox
d5c732ac7305a79fe20704c2d134c130f14eca83
[ "MIT" ]
56
2018-12-23T18:11:40.000Z
2021-11-30T13:18:17.000Z
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ ...
34.917857
121
0.601889
[ "object", "shape" ]
1a11b7eccb4c3b9efd9589f60dbd38a0fe88bdd7
1,861
cpp
C++
libadb/src/libadb/api/interactions/interactions.cpp
faserg1/adb
65507dc17589ac6ec00caf2ecd80f6dbc4026ad4
[ "MIT" ]
1
2022-03-10T15:14:13.000Z
2022-03-10T15:14:13.000Z
libadb/src/libadb/api/interactions/interactions.cpp
faserg1/adb
65507dc17589ac6ec00caf2ecd80f6dbc4026ad4
[ "MIT" ]
9
2022-03-07T21:00:08.000Z
2022-03-15T23:14:52.000Z
libadb/src/libadb/api/interactions/interactions.cpp
faserg1/adb
65507dc17589ac6ec00caf2ecd80f6dbc4026ad4
[ "MIT" ]
null
null
null
#include <libadb/api/interactions/interactions.hpp> #include <libadb/api/gateway/gateway-events.hpp> #include <libadb/api/utils/algorithms.hpp> #include <utility> using namespace adb::api; Interactions::Interactions(std::shared_ptr<GatewayEvents> events) : events_(events) { } std::unique_ptr<adb::types::Subscrip...
37.979592
145
0.642128
[ "vector" ]
1a1e046f54c0fc806a03ec9c5d7105cc4583295f
22,993
cpp
C++
source/gameengine/Ketsji/KX_BlenderMaterial.cpp
wycivil08/blendocv
f6cce83e1f149fef39afa8043aade9c64378f33e
[ "Unlicense" ]
30
2015-01-29T14:06:05.000Z
2022-01-10T07:47:29.000Z
source/gameengine/Ketsji/KX_BlenderMaterial.cpp
ttagu99/blendocv
f6cce83e1f149fef39afa8043aade9c64378f33e
[ "Unlicense" ]
1
2017-02-20T20:57:48.000Z
2018-12-19T23:44:38.000Z
source/gameengine/Ketsji/KX_BlenderMaterial.cpp
ttagu99/blendocv
f6cce83e1f149fef39afa8043aade9c64378f33e
[ "Unlicense" ]
15
2015-04-23T02:38:36.000Z
2021-03-01T20:09:39.000Z
/** \file gameengine/Ketsji/KX_BlenderMaterial.cpp * \ingroup ketsji */ // ------------------------------------ // ... // ------------------------------------ #include "GL/glew.h" #include "KX_BlenderMaterial.h" #include "BL_Material.h" #include "KX_Scene.h" #include "KX_Light.h" #include "KX_GameObject.h" #includ...
23.534289
109
0.69743
[ "object" ]
1a26ef6aa016fd95aa0b4dbf24d64e2b3e627b04
1,264
cpp
C++
src_extras/std_autocomp/extract.cpp
stahta01/Zinjal
8d1e52c9eab5cde9f7cb96c99a0fbdf97904da42
[ "OML" ]
1
2019-03-24T00:58:59.000Z
2019-03-24T00:58:59.000Z
src_extras/std_autocomp/extract.cpp
stahta01/Zinjal
8d1e52c9eab5cde9f7cb96c99a0fbdf97904da42
[ "OML" ]
null
null
null
src_extras/std_autocomp/extract.cpp
stahta01/Zinjal
8d1e52c9eab5cde9f7cb96c99a0fbdf97904da42
[ "OML" ]
null
null
null
#include <iostream> #include <fstream> #include <vector> #include <cstdlib> using namespace std; int main(int argc, char *argv[]) { if (argc<3) { cerr<<"ERROR: argc<3"<<endl; return 1; } ifstream fin(argv[1]); vector<string> v; string aux; while (getline(fin,aux)) v.push_back(aux); fin.close(); ofstream fout;...
27.478261
72
0.578323
[ "vector" ]
1a2737f0abcc908ec04f4149e65de47f37662973
809
cpp
C++
uva/uva_00394/main.cpp
rockoanna/nirvana
81fadbe66b0a24244feec312c6f7fe5c8effccaa
[ "MIT" ]
null
null
null
uva/uva_00394/main.cpp
rockoanna/nirvana
81fadbe66b0a24244feec312c6f7fe5c8effccaa
[ "MIT" ]
12
2019-09-04T10:38:24.000Z
2019-12-08T18:09:41.000Z
uva/uva_00394/main.cpp
rockoanna/nirvana
81fadbe66b0a24244feec312c6f7fe5c8effccaa
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; typedef pair<int,int> bd; struct ArrDesc{ string name; int dim; vector<bd> bounds; }; int main() { int n; cin >> n; int x; cin >> x; vector<string> names(n); vector<vector<int>> nr; for(int i = 0; i < n; i++) { ...
13.948276
38
0.419036
[ "vector" ]
1a2a0eab44009218e50dc77f4cb9c83f6211f342
4,549
cpp
C++
src/stat_bench/reporter/console_reporter.cpp
MusicScience37/cpp-stat-bench
e9cac78d7d3c0fe123e0908122e3876f7a38a127
[ "Apache-2.0" ]
null
null
null
src/stat_bench/reporter/console_reporter.cpp
MusicScience37/cpp-stat-bench
e9cac78d7d3c0fe123e0908122e3876f7a38a127
[ "Apache-2.0" ]
null
null
null
src/stat_bench/reporter/console_reporter.cpp
MusicScience37/cpp-stat-bench
e9cac78d7d3c0fe123e0908122e3876f7a38a127
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2021 MusicScience37 (Kenta Kabashima) * * 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 applica...
32.262411
80
0.662563
[ "vector" ]
1a325d47ff5f5f858294e0e4cdaf9b409085a17a
9,133
cpp
C++
sources/plugins/scs/scscodeeditor.cpp
ostis-ai/kbe
7105798d4edad0993a80f8275cec974badf74d55
[ "MIT" ]
5
2016-12-25T15:43:50.000Z
2021-04-02T13:54:14.000Z
sources/plugins/scs/scscodeeditor.cpp
ostis-ai/kbe
7105798d4edad0993a80f8275cec974badf74d55
[ "MIT" ]
11
2016-12-13T21:00:35.000Z
2021-03-11T09:11:05.000Z
sources/plugins/scs/scscodeeditor.cpp
ostis-ai/kbe
7105798d4edad0993a80f8275cec974badf74d55
[ "MIT" ]
12
2016-12-13T20:49:03.000Z
2021-12-14T15:42:37.000Z
/* * This source file is part of an OSTIS project. For the latest info, see http://ostis.net * Distributed under the MIT License * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT) */ #include "scscodeeditor.h" #include <QPainter> #include <QTextBlock> #include <QAbstractItemView> ...
29.272436
104
0.6609
[ "model" ]
1a332c0aa57408d2863c35e2fe3e07ee4297fdda
8,058
cpp
C++
src/calculator.cpp
svenslaggare/termcalc
1bdc4c873003b636ccd73f86400d87808560b822
[ "MIT" ]
4
2019-06-11T11:17:08.000Z
2020-09-18T18:28:37.000Z
src/calculator.cpp
svenslaggare/termcalc
1bdc4c873003b636ccd73f86400d87808560b822
[ "MIT" ]
1
2017-11-11T11:32:27.000Z
2017-11-18T08:57:49.000Z
src/calculator.cpp
svenslaggare/termcalc
1bdc4c873003b636ccd73f86400d87808560b822
[ "MIT" ]
null
null
null
#include "calculator.h" #include "calculation/numberhelpers.h" #include "visitors/printvisitor.h" #include <cmath> #include <iostream> #include <fstream> #include <sstream> #include <algorithm> Calculator::Calculator(std::ostream& os) : mOutputStream(os), mEngine(os), mEnvironment(mEngine.defaultEnvironment()) { s...
27.882353
134
0.60201
[ "vector" ]
1a3397b23ffee583d3dd32f6cbefc6de29094a3a
3,301
hpp
C++
CmnIP/module/group/inc/group/images_combined.hpp
Khoronus/CmnUniverse
9cf9b4297f2fcb49330126aa1047b422144045e1
[ "MIT" ]
null
null
null
CmnIP/module/group/inc/group/images_combined.hpp
Khoronus/CmnUniverse
9cf9b4297f2fcb49330126aa1047b422144045e1
[ "MIT" ]
null
null
null
CmnIP/module/group/inc/group/images_combined.hpp
Khoronus/CmnUniverse
9cf9b4297f2fcb49330126aa1047b422144045e1
[ "MIT" ]
null
null
null
/** * @file organized_images.hpp * @brief Header to display some organized images * * @section LICENSE * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PAR...
34.747368
89
0.750985
[ "vector" ]
1a45c1a6f958cb6dc1ea1ceeaa882f91c4391e53
5,286
cpp
C++
source/omni/core/model/if_statement.cpp
daniel-kun/omni
ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18
[ "MIT" ]
33
2015-03-21T04:12:45.000Z
2021-04-18T21:44:33.000Z
source/omni/core/model/if_statement.cpp
daniel-kun/omni
ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18
[ "MIT" ]
null
null
null
source/omni/core/model/if_statement.cpp
daniel-kun/omni
ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18
[ "MIT" ]
2
2016-03-05T12:57:05.000Z
2017-09-12T10:11:52.000Z
#include <omni/core/model/if_statement.hpp> #include <omni/core/context.hpp> #include <omni/core/model/expression.hpp> #include <omni/core/model/block.hpp> #include <llvm/IR/BasicBlock.h> #include <llvm/IR/IRBuilder.h> #include <llvm/IR/NoFolder.h> // See meta_info.cpp for initialization. namespace omniMetaImpl { ext...
35.006623
137
0.701665
[ "model" ]
1a4898dcbaebdf0e6ac78272b70d23059fbb64f6
5,213
cpp
C++
examples/03-pruning.cpp
USCbiostats/pruner
0f6b575a25292612a433f20cbc2fea5ba2a19e2e
[ "MIT" ]
1
2020-05-08T08:55:55.000Z
2020-05-08T08:55:55.000Z
examples/03-pruning.cpp
USCbiostats/pruner
0f6b575a25292612a433f20cbc2fea5ba2a19e2e
[ "MIT" ]
1
2020-01-16T23:22:52.000Z
2020-01-16T23:22:52.000Z
examples/03-pruning.cpp
USCbiostats/pruner
0f6b575a25292612a433f20cbc2fea5ba2a19e2e
[ "MIT" ]
2
2020-07-01T01:35:55.000Z
2022-03-09T14:58:27.000Z
#include <Rcpp.h> #include "../include/pruner.hpp" #include "03-pruning.hpp" using namespace Rcpp; class TreeData { public: uint nstates; uint n; uint nfuns; // Annotations pruner::vv_uint A; pruner::v_uint Ntype; // Temporal storage ---------------------------------------------------------- ...
21.191057
80
0.50681
[ "model" ]
1a4932690e81c4dcdd37997640d958efa8a5bd34
40,937
hpp
C++
src/api/dcps/isocpp/include/spec/dds/core/policy/TCorePolicy.hpp
brezillon/opensplice
725ae9d949c83fce1746bd7d8a154b9d0a81fe3e
[ "Apache-2.0" ]
133
2017-11-09T02:10:00.000Z
2022-03-29T09:45:10.000Z
src/api/dcps/isocpp/include/spec/dds/core/policy/TCorePolicy.hpp
brezillon/opensplice
725ae9d949c83fce1746bd7d8a154b9d0a81fe3e
[ "Apache-2.0" ]
131
2017-11-07T14:48:43.000Z
2022-03-13T15:30:47.000Z
src/api/dcps/isocpp/include/spec/dds/core/policy/TCorePolicy.hpp
brezillon/opensplice
725ae9d949c83fce1746bd7d8a154b9d0a81fe3e
[ "Apache-2.0" ]
94
2017-11-09T02:26:19.000Z
2022-02-24T06:38:25.000Z
#ifndef OMG_TDDS_CORE_POLICY_CORE_POLICY_HPP_ #define OMG_TDDS_CORE_POLICY_CORE_POLICY_HPP_ /* Copyright 2010, Object Management Group, Inc. * Copyright 2010, PrismTech, Corp. * Copyright 2010, Real-Time Innovations, Inc. * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); ...
25.145577
124
0.612746
[ "object" ]
1a5462ef01c17072814741aaf826d70ad539bf05
596
cpp
C++
Hackerrank/ProblemSolving/Dynamic Array.cpp
willingtonortiz/CPSolutions
66c48995ba0f8658e000a1ef828ab5759549975e
[ "MIT" ]
null
null
null
Hackerrank/ProblemSolving/Dynamic Array.cpp
willingtonortiz/CPSolutions
66c48995ba0f8658e000a1ef828ab5759549975e
[ "MIT" ]
null
null
null
Hackerrank/ProblemSolving/Dynamic Array.cpp
willingtonortiz/CPSolutions
66c48995ba0f8658e000a1ef828ab5759549975e
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main(){ int size, queries, type, a, b, lastA = 0; cin >> size >> queries; vector<vector<int>> list(size, vector<int>()); for(int i = 0; i < queries; ++i){ cin >> type >> a >> b; // cout << type << " " << a << " " << b << endl; ...
22.074074
56
0.422819
[ "vector" ]
1a61f046cb9ae399f6c0b315391410b444a5597f
8,485
cpp
C++
bot/botState.cpp
rdujardin/Ara
ae045d4477b80f66329b4686bc4b052e44433d1c
[ "BSD-2-Clause" ]
null
null
null
bot/botState.cpp
rdujardin/Ara
ae045d4477b80f66329b4686bc4b052e44433d1c
[ "BSD-2-Clause" ]
null
null
null
bot/botState.cpp
rdujardin/Ara
ae045d4477b80f66329b4686bc4b052e44433d1c
[ "BSD-2-Clause" ]
null
null
null
/* bot_vals[cpp (part of Ara, https://github.com/rdujardin/Ara) Copyright (c) 2016, Raphaël Dujardin (rdujardin) & Jean Boehm (jboehm1) 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...
44.424084
299
0.728108
[ "vector" ]
1a6c3f3498d6681ad0dc596657f3e50728f9e8b1
19,289
cpp
C++
src/providers/internal/InternalStorageProvider.cpp
webosose/com.webos.service.storageaccess
9d1c912c5654ff9df33206d0d367359b04e03e22
[ "Apache-2.0" ]
null
null
null
src/providers/internal/InternalStorageProvider.cpp
webosose/com.webos.service.storageaccess
9d1c912c5654ff9df33206d0d367359b04e03e22
[ "Apache-2.0" ]
1
2021-06-22T22:18:47.000Z
2021-06-22T22:18:47.000Z
src/providers/internal/InternalStorageProvider.cpp
webosose/com.webos.service.storageaccess
9d1c912c5654ff9df33206d0d367359b04e03e22
[ "Apache-2.0" ]
null
null
null
/* @@@LICENSE * * Copyright (c) 2021 LG Electronics, Inc. * * Confidential computer software. Valid license from LG required for * possession, use or copying. Consistent with FAR 12.211 and 12.212, * Commercial Computer Software, Computer Software Documentation, and * Technical Data for Commercial Items are lice...
37.970472
119
0.63461
[ "object" ]
1a6f5541dd08de026dc3bf24caf1d86198f5c1df
45,823
cpp
C++
tao/src/taoModule.cpp
guoxiaoyong/simple-useful
63f483250cc5e96ef112aac7499ab9e3a35572a8
[ "CC0-1.0" ]
null
null
null
tao/src/taoModule.cpp
guoxiaoyong/simple-useful
63f483250cc5e96ef112aac7499ab9e3a35572a8
[ "CC0-1.0" ]
null
null
null
tao/src/taoModule.cpp
guoxiaoyong/simple-useful
63f483250cc5e96ef112aac7499ab9e3a35572a8
[ "CC0-1.0" ]
null
null
null
//////////////////////////////////////////////////////////////////////////// /* This file is a part of an interpreter for Tao, a high level object-oriented computing and scripting language. Copyright (C) 2004-2005, Fu Limin. Contact: fu.limin.tao@gmail.com, limin.fu@ircc.it Th...
30.447176
80
0.542871
[ "object", "vector" ]
2b2ebe2a5d16d8fb89d02df3c8ee00b12d959b69
887
cc
C++
leetcode/Math/perfect_number.cc
LIZHICHAOUNICORN/Toolkits
db45dac4de14402a21be0c40ba8e87b4faeda1b6
[ "Apache-2.0" ]
null
null
null
leetcode/Math/perfect_number.cc
LIZHICHAOUNICORN/Toolkits
db45dac4de14402a21be0c40ba8e87b4faeda1b6
[ "Apache-2.0" ]
null
null
null
leetcode/Math/perfect_number.cc
LIZHICHAOUNICORN/Toolkits
db45dac4de14402a21be0c40ba8e87b4faeda1b6
[ "Apache-2.0" ]
null
null
null
#include <algorithm> #include <array> #include <climits> #include <cmath> #include <vector> #include "third_party/gflags/include/gflags.h" #include "third_party/glog/include/logging.h" using namespace std; // Problem: // https://leetcode-cn.com/problems/permutation-sequence/ class Solution { public: bool checkPe...
19.711111
64
0.626832
[ "vector" ]
2b3698401da26dd0fc871bff2b367bea2f5c3c21
1,191
hpp
C++
include/src/OperationApplier.hpp
zeta1999/METL-recursed
495aaa610eb7a98fa720429ebccf9bb98abc3e55
[ "Apache-2.0" ]
10
2018-09-09T04:13:12.000Z
2021-04-20T06:23:11.000Z
include/src/OperationApplier.hpp
zeta1999/METL-recursed
495aaa610eb7a98fa720429ebccf9bb98abc3e55
[ "Apache-2.0" ]
3
2018-10-04T01:56:47.000Z
2020-07-01T15:20:26.000Z
include/src/OperationApplier.hpp
zeta1999/METL-recursed
495aaa610eb7a98fa720429ebccf9bb98abc3e55
[ "Apache-2.0" ]
3
2018-09-28T16:04:46.000Z
2020-01-12T10:55:57.000Z
#pragma once #include "src/Utility/get_each.hpp" #include "src/TypeErasure/UntypedExpression.hpp" #include "src/DataBase/CompilerEntityDataBase.hpp" #include "src/Caster.hpp" #include "src/DataBase/UnaryID.hpp" #include "src/DataBase/BinaryID.hpp" #include "src/DataBase/FunctionID.hpp" #include "src/DataBase/Suffix...
27.068182
124
0.74979
[ "vector" ]
2b387ad69967ad8d60a9a21ab2716c3e5bd753ee
9,396
cpp
C++
Source/CSBackend/Platform/Windows/Core/Base/Device.cpp
angelahnicole/ChilliSource_ParticleOpt
6bee7e091c7635384d6aefbf730a69bbb5b55721
[ "MIT" ]
null
null
null
Source/CSBackend/Platform/Windows/Core/Base/Device.cpp
angelahnicole/ChilliSource_ParticleOpt
6bee7e091c7635384d6aefbf730a69bbb5b55721
[ "MIT" ]
null
null
null
Source/CSBackend/Platform/Windows/Core/Base/Device.cpp
angelahnicole/ChilliSource_ParticleOpt
6bee7e091c7635384d6aefbf730a69bbb5b55721
[ "MIT" ]
null
null
null
// // Device.cpp // Chilli Source // Created by Ian Copland on 24/04/2014. // // The MIT License (MIT) // // Copyright (c) 2014 Tag Games Limited // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), t...
35.191011
162
0.474351
[ "vector", "model" ]
2b451fc8cb2ada99e288bc3a7460da8749397cee
1,741
hpp
C++
engine/GLManager.hpp
InfiniBrains/mobagen
262fa833195cd1b32f82ee4d825b0a39e7ebe4cb
[ "WTFPL" ]
32
2017-12-29T16:44:35.000Z
2021-08-06T23:10:28.000Z
engine/GLManager.hpp
InfiniBrains/mobagen
262fa833195cd1b32f82ee4d825b0a39e7ebe4cb
[ "WTFPL" ]
66
2017-12-29T16:37:35.000Z
2019-04-19T23:57:20.000Z
engine/GLManager.hpp
InfiniBrains/mobagen
262fa833195cd1b32f82ee4d825b0a39e7ebe4cb
[ "WTFPL" ]
7
2017-12-29T16:49:53.000Z
2021-08-06T23:10:35.000Z
#pragma once #if defined(GLES2) #include <GLES2/gl2.h> #elif defined(GLES3) #include <GLES3/gl3.h> #else #include <GL/glew.h> #endif #include <vector> #include "Renderer.hpp" #include "SimpleRenderer.hpp" #include "Shader.hpp" #include "Entity.hpp" #include "Window.hpp" #include "Line.hpp" #include "components/Camer...
23.527027
79
0.73521
[ "vector" ]
2b466ade2ee98fb31ea4a8194852044a6ee4b553
15,113
cc
C++
src/copy/tasks/scatter_by_slice.cc
marcinz/legate.pandas
94c21c436f59c06cfba454c6569e9f5d7109d839
[ "Apache-2.0" ]
67
2021-04-12T18:06:55.000Z
2022-03-28T06:51:05.000Z
src/copy/tasks/scatter_by_slice.cc
marcinz/legate.pandas
94c21c436f59c06cfba454c6569e9f5d7109d839
[ "Apache-2.0" ]
2
2021-06-22T00:30:36.000Z
2021-07-01T22:12:43.000Z
src/copy/tasks/scatter_by_slice.cc
marcinz/legate.pandas
94c21c436f59c06cfba454c6569e9f5d7109d839
[ "Apache-2.0" ]
6
2021-04-14T21:28:00.000Z
2022-03-22T09:45:25.000Z
/* Copyright 2021 NVIDIA Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
34.115124
99
0.619401
[ "shape", "vector", "transform" ]
2b4d6eb79f3e5080e4bc7876595ae43d95670f24
1,122
cpp
C++
PacManView/src/texture/Texture.cpp
BeardedPlatypus/PacMan
319e9776582cf9118b38c72d31855fb4c598e986
[ "MIT" ]
5
2019-12-23T22:45:46.000Z
2021-11-11T06:27:12.000Z
PacManView/src/texture/Texture.cpp
BeardedPlatypus/PacMan
319e9776582cf9118b38c72d31855fb4c598e986
[ "MIT" ]
null
null
null
PacManView/src/texture/Texture.cpp
BeardedPlatypus/PacMan
319e9776582cf9118b38c72d31855fb4c598e986
[ "MIT" ]
1
2021-11-11T06:27:14.000Z
2021-11-11T06:27:14.000Z
#include "stdafx.h" #include "texture/Texture.h" namespace pacman { namespace view { Texture::Texture(std::unique_ptr<sdl::IResourceWrapper<SDL_Texture>> p_tex, sdl::IDispatcher* p_dispatcher) : _p_tex_resource(std::move(p_tex)), _p_dispatcher(p_dispatcher) { } SDL_Rect Texture::GetDimensi...
23.87234
75
0.502674
[ "render" ]
2b4eb35d15c87df0ada81b85e33db42e187fb7cc
19,289
cpp
C++
agif.cpp
moseymosey/ichabod
3c738daa8734f3daefb0c7da79c98cfead9aff0f
[ "MIT" ]
null
null
null
agif.cpp
moseymosey/ichabod
3c738daa8734f3daefb0c7da79c98cfead9aff0f
[ "MIT" ]
null
null
null
agif.cpp
moseymosey/ichabod
3c738daa8734f3daefb0c7da79c98cfead9aff0f
[ "MIT" ]
null
null
null
#include <stdio.h> #include "agif.h" #include <gif_lib.h> #include "quant.h" #include <iostream> #include <cassert> #include <vector> #include <algorithm> #include <map> #include <QColor> #include <QRgb> #include <QHash> #include <QMultiMap> #include <QPainter> #include <QVariant> typedef QList< QPair<QRgb, int> > Q...
29.181543
148
0.543419
[ "vector" ]
2b4fc6db4b613cb7a77d89e67154cbf1d1f5587e
7,808
hh
C++
tools/spi_barrier_test/HaloExchange.hh
paulkefer/cardioid
59c07b714d8b066b4f84eb50487c36f6eadf634c
[ "MIT-0", "MIT" ]
33
2018-12-12T20:05:06.000Z
2021-09-26T13:30:16.000Z
tools/spi_barrier_test/HaloExchange.hh
paulkefer/cardioid
59c07b714d8b066b4f84eb50487c36f6eadf634c
[ "MIT-0", "MIT" ]
5
2019-04-25T11:34:43.000Z
2021-11-14T04:35:37.000Z
tools/spi_barrier_test/HaloExchange.hh
paulkefer/cardioid
59c07b714d8b066b4f84eb50487c36f6eadf634c
[ "MIT-0", "MIT" ]
15
2018-12-21T22:44:59.000Z
2021-08-29T10:30:25.000Z
#ifndef HALO_EXCHANGE_HH #define HALO_EXCHANGE_HH #include <vector> #include <cassert> #include "CommTable.hh" #include <iostream> #include "PerformanceTimers.hh" using namespace std; #ifdef SPI #include "spi_impl.h" #endif /** * There are two ways of using this class. The simplest is to call * execute(). This...
29.801527
143
0.644339
[ "vector" ]
2b559d637aaa9500bd6d18d957916c1bc29a939e
3,203
hpp
C++
src/point_instances.hpp
chamini2/IS-PS
f532ee41b836b0eba7b8e9b690314d1878e34616
[ "MIT" ]
null
null
null
src/point_instances.hpp
chamini2/IS-PS
f532ee41b836b0eba7b8e9b690314d1878e34616
[ "MIT" ]
null
null
null
src/point_instances.hpp
chamini2/IS-PS
f532ee41b836b0eba7b8e9b690314d1878e34616
[ "MIT" ]
null
null
null
// Class to define specific problem point classes // These classes need to extend point_interface. #ifndef __POINT_INSTANCES_HPP__ #define __POINT_INSTANCES_HPP__ // #include <algorithm> #include <cstring> #include <iostream> using std::pair; #include <sstream> using std::ostream; #include <set> using std::set; #i...
24.265152
75
0.573213
[ "vector" ]
2b59dbc67d02c8756b410115b6b219ec20fa25fc
6,799
hpp
C++
develop/v0.2/Ngen/include/Ngen.Type.hpp
archendian/ngensdk
0d8b8e21e00ba71f0596e228dd073017e1c785ed
[ "MIT" ]
1
2017-01-29T09:27:32.000Z
2017-01-29T09:27:32.000Z
develop/v0.2/Ngen/include/Ngen.Type.hpp
archendian/ngensdk
0d8b8e21e00ba71f0596e228dd073017e1c785ed
[ "MIT" ]
15
2017-01-29T05:49:51.000Z
2018-08-12T22:17:04.000Z
develop/v0.2/Ngen/include/Ngen.Type.hpp
archendian/ngensdk
0d8b8e21e00ba71f0596e228dd073017e1c785ed
[ "MIT" ]
null
null
null
/* _______ ________ \ \ / _____/ ____ ___ / | \/ \ ____/ __ \ / \ / | \ \_\ \ ___/| | \ \____|__ /\______ /\___ >___| / \/ \/ \/ \/ The MIT License (MIT) Copyright (c) 2013 Ngeneers Inc. Permission is hereby granted, free of charge, to any ...
35.046392
122
0.706574
[ "object" ]
2b68639732ec2a9ed6d68bd21c2c328bfb73b93a
1,926
cpp
C++
Programs/Binary_Lifting_Tree_Advanced/binary_lifting.cpp
shivamjha779/Hacktoberfest2021-5
0a900f4390108c818ddb99d60766f974a7838433
[ "MIT" ]
21
2021-10-02T07:10:18.000Z
2022-01-28T08:38:27.000Z
Programs/Binary_Lifting_Tree_Advanced/binary_lifting.cpp
shivamjha779/Hacktoberfest2021-5
0a900f4390108c818ddb99d60766f974a7838433
[ "MIT" ]
19
2021-10-01T17:03:46.000Z
2021-10-20T07:31:36.000Z
Programs/Binary_Lifting_Tree_Advanced/binary_lifting.cpp
shivamjha779/Hacktoberfest2021-5
0a900f4390108c818ddb99d60766f974a7838433
[ "MIT" ]
115
2021-10-01T22:03:58.000Z
2022-01-28T08:38:31.000Z
// PLEASE READ README.TXT BEFORE USING #include<bits/stdc++.h> #define ll long long #define ull unsigned long long #define MOD 1000000007 #define FOR(i, a, b) for(ll i=a; i<=b; ++i) #define FORR(i, a, b) for(ll i=a; i>=b; --i) using namespace std; int ROOT; void lift( int root, vector<vector<int>> &tree, vecto...
19.454545
137
0.579439
[ "vector" ]
2b698c4fce2f5498a4634877a4693effc754f796
4,512
cpp
C++
cross_section/Product.cpp
fmidev/smartmet-plugin-cross_section
c421523a7f1ba7887d44dc8a229fbf22b4393faa
[ "MIT" ]
null
null
null
cross_section/Product.cpp
fmidev/smartmet-plugin-cross_section
c421523a7f1ba7887d44dc8a229fbf22b4393faa
[ "MIT" ]
null
null
null
cross_section/Product.cpp
fmidev/smartmet-plugin-cross_section
c421523a7f1ba7887d44dc8a229fbf22b4393faa
[ "MIT" ]
null
null
null
#include "Product.h" #include "Config.h" #include "State.h" #include <boost/lexical_cast.hpp> #include <ctpp2/CDT.hpp> #include <macgyver/TimeParser.h> #include <macgyver/Exception.h> #include <spine/HTTP.h> namespace { // ---------------------------------------------------------------------- /*! * \brief Distance be...
28.738854
97
0.570922
[ "object" ]
2b6ac182e535344de003e48bc17d78a10e85a35b
334
cpp
C++
PostScript objects/name.cpp
ntclark/PostScript
b8655b0313b43827309b3468df7a5ba2ac6a9deb
[ "BSD-3-Clause" ]
1
2019-06-23T04:38:22.000Z
2019-06-23T04:38:22.000Z
PostScript objects/name.cpp
ntclark/PostScript
b8655b0313b43827309b3468df7a5ba2ac6a9deb
[ "BSD-3-Clause" ]
null
null
null
PostScript objects/name.cpp
ntclark/PostScript
b8655b0313b43827309b3468df7a5ba2ac6a9deb
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2017 InnoVisioNate Inc. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "PostScript objects\name.h" name::name(char *pszValue) : object(pszValue,object::name) { } name::~name() { return...
20.875
74
0.628743
[ "object" ]
2b7207ee8169435af4fc099dbd0e6c80b064d3d7
4,411
hpp
C++
PAQ8/Paq8.hpp
Vicshann/Common
f5f5145382ecac5e44459ad9fceb4bc281afd5df
[ "MIT" ]
4
2018-05-22T13:43:34.000Z
2021-12-21T08:33:59.000Z
PAQ8/Paq8.hpp
Vicshann/Common
f5f5145382ecac5e44459ad9fceb4bc281afd5df
[ "MIT" ]
null
null
null
PAQ8/Paq8.hpp
Vicshann/Common
f5f5145382ecac5e44459ad9fceb4bc281afd5df
[ "MIT" ]
3
2020-03-21T10:56:17.000Z
2021-12-24T11:31:10.000Z
#pragma once #include <windows.h> #pragma warning(disable:4554) // warning C4554: '>>': check operator precedence for possible error; use parentheses to clarify precedence namespace NPAQ8 // paq8o10t { #include "PaqUtils.hpp" #include "PaqFilters.hpp" #include "PaqMixer.hpp" #include "PaqCtxMap.hpp" #...
34.732283
191
0.575606
[ "transform" ]
2b7976392acdd87546a291d1a7e2370ae8d4c2d2
9,742
cc
C++
src/data/slot_reader.cc
wakensky/parameter_server
12f9e086ca637366fdf3a5e5292ad8234e2b214e
[ "Apache-2.0" ]
null
null
null
src/data/slot_reader.cc
wakensky/parameter_server
12f9e086ca637366fdf3a5e5292ad8234e2b214e
[ "Apache-2.0" ]
null
null
null
src/data/slot_reader.cc
wakensky/parameter_server
12f9e086ca637366fdf3a5e5292ad8234e2b214e
[ "Apache-2.0" ]
null
null
null
#include "data/slot_reader.h" #include "data/example_parser.h" #include "util/threadpool.h" #include "util/filelinereader.h" #include "util/split.h" namespace PS { DEFINE_int32(load_data_max_mb_per_thread, 2 * 1024, "maximum memory usage (MB) allowed for each worker thread " "while downloading data (LOAD_DATA)")...
30.34891
81
0.619893
[ "vector" ]
2b7e1a9ceffb1c34e810c15fc0d0dc6d8bdbd4ff
315
cpp
C++
src/bounce/physics/collider/ctor.cpp
cbosoft/bounce
f63e5ad1aabe201debf7a9a73525e93973c34932
[ "MIT" ]
null
null
null
src/bounce/physics/collider/ctor.cpp
cbosoft/bounce
f63e5ad1aabe201debf7a9a73525e93973c34932
[ "MIT" ]
null
null
null
src/bounce/physics/collider/ctor.cpp
cbosoft/bounce
f63e5ad1aabe201debf7a9a73525e93973c34932
[ "MIT" ]
null
null
null
#include <bounce/physics/collider/collider.hpp> Collider::Collider(Transform *parent) : Transform(parent) , _hw(.5) , _hh(.5) , _shape_type(ST_RECT) , _touching_flags(0) , _interaction_mask(1) , _renderable_collider(nullptr) { this->set_shape_rectangle(1.0, 1.0); this->add_tag("collider"); }
22.5
47
0.692063
[ "transform" ]
2b7ff8a116b268f289def9eeb439ddfb88c04065
2,347
cpp
C++
SimulationsOMP/RigidObject/FrictionalContact2D.cpp
COFS-UWA/MPM3D
1a0c5dc4e92dff3855367846002336ca5a18d124
[ "MIT" ]
null
null
null
SimulationsOMP/RigidObject/FrictionalContact2D.cpp
COFS-UWA/MPM3D
1a0c5dc4e92dff3855367846002336ca5a18d124
[ "MIT" ]
2
2020-10-19T02:03:11.000Z
2021-03-19T16:34:39.000Z
SimulationsOMP/RigidObject/FrictionalContact2D.cpp
COFS-UWA/MPM3D
1a0c5dc4e92dff3855367846002336ca5a18d124
[ "MIT" ]
1
2020-04-28T00:33:14.000Z
2020-04-28T00:33:14.000Z
#include "SimulationsOMP_pcp.h" #include "FrictionalContact2D.h" FrictionalContact2D::FrictionalContact2D() : Kn_cont(0.0), Kt_cont(0.0), friction_ratio(0.0) {} FrictionalContact2D::~FrictionalContact2D() {} void FrictionalContact2D::cal_contact_force( // in size_t substp_id, size_t ori_pcl_id, double dist, c...
27.611765
71
0.709842
[ "model" ]
2b8155e13b53f6fac14dcd95184454b0597e5ef9
3,074
cpp
C++
src/Game/Physics/Debugger.cpp
Lexicality/Wulf2012
5bcf42797e6fb0db16107ab134e8b977fc99daed
[ "MIT" ]
6
2015-01-06T13:04:52.000Z
2020-04-21T05:50:01.000Z
src/Game/Physics/Debugger.cpp
Lexicality/Wulf2012
5bcf42797e6fb0db16107ab134e8b977fc99daed
[ "MIT" ]
null
null
null
src/Game/Physics/Debugger.cpp
Lexicality/Wulf2012
5bcf42797e6fb0db16107ab134e8b977fc99daed
[ "MIT" ]
null
null
null
#include "Game/Physics/Debugger.h" #include "Game/Physics/TileData.h" using namespace Wulf; using namespace Wulf::Physics; Debugger::Debugger() { } Debugger::~Debugger() { } // comes from the manager. (This is icky but hey) CollisionObj getObj(const Entity& ent); CollisionObj adjust(const CollisionObj& original, V...
26.730435
103
0.725439
[ "render", "vector", "solid" ]
2b966288017100fa3a7c3b52d71c190512df9ef8
389
cpp
C++
solutions/443.string-compression.324046769.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
78
2020-10-22T11:31:53.000Z
2022-02-22T13:27:49.000Z
solutions/443.string-compression.324046769.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
null
null
null
solutions/443.string-compression.324046769.ac.cpp
satu0king/Leetcode-Solutions
2edff60d76c2898d912197044f6284efeeb34119
[ "MIT" ]
26
2020-10-23T15:10:44.000Z
2021-11-07T16:13:50.000Z
class Solution { public: int compress(vector<char> &chars) { int l = 0; int c = 1; for (int i = 1; i <= chars.size(); i++) { if (i == chars.size() || chars[i] != chars[i - 1]) { chars[l++] = chars[i - 1]; if (c > 1) for (char j : to_string(c)) chars[l++] = j; ...
17.681818
58
0.398458
[ "vector" ]
2b994d16ac408fce94e02405fef8db3455ace5fb
446
cpp
C++
ArthurProject/src/Nodes/AudioSource.cpp
JackiBackiBoy/ArthurProject
88c5a7365cb3edc768a88f9a71a8f29751a1d75e
[ "Apache-2.0" ]
null
null
null
ArthurProject/src/Nodes/AudioSource.cpp
JackiBackiBoy/ArthurProject
88c5a7365cb3edc768a88f9a71a8f29751a1d75e
[ "Apache-2.0" ]
null
null
null
ArthurProject/src/Nodes/AudioSource.cpp
JackiBackiBoy/ArthurProject
88c5a7365cb3edc768a88f9a71a8f29751a1d75e
[ "Apache-2.0" ]
null
null
null
#include "AudioSource.h" #include "Managers/AssetManager.h" #include "data/Options.h" void AudioSource::Play(std::string aString) { mySounds.push_back(sf::Sound(AssetManager::GetSoundBuffer(aString))); mySounds.back().setVolume(Options::GetSoundEffectVolume()); mySounds.back().play(); } AudioSource::AudioSource(...
22.3
106
0.737668
[ "vector" ]
2ba816c45ae4aa3ebc8f8e799f9e4ce08698a74f
844
cc
C++
Code/2188-minimized-maximum-of-products-distributed-to-any-store.cc
SMartQi/Leetcode
9e35c65a48ba1ecd5436bbe07dd65f993588766b
[ "MIT" ]
2
2019-12-06T14:08:57.000Z
2020-01-15T15:25:32.000Z
Code/2188-minimized-maximum-of-products-distributed-to-any-store.cc
SMartQi/Leetcode
9e35c65a48ba1ecd5436bbe07dd65f993588766b
[ "MIT" ]
1
2020-01-15T16:29:16.000Z
2020-01-26T12:40:13.000Z
Code/2188-minimized-maximum-of-products-distributed-to-any-store.cc
SMartQi/Leetcode
9e35c65a48ba1ecd5436bbe07dd65f993588766b
[ "MIT" ]
null
null
null
class Solution { public: int minimizedMaximum(int n, vector<int>& quantities) { int low = 1; int high = 1; for (auto &quantity : quantities) { high = max(high, quantity); } int middle; while (low < high - 1) { middle = (low + high) / 2; ...
26.375
58
0.418246
[ "vector" ]
ad953d2a0e8ffbc267dce7f6512bf3ff5632ceca
3,761
cpp
C++
test/test_basics.cpp
OpenCL/ComplexMath
e0b0d11471478341c21bbad6811ca92ba7258aeb
[ "MIT" ]
6
2017-05-11T07:10:35.000Z
2021-05-24T00:38:06.000Z
test/test_basics.cpp
OpenCL/ComplexMath
e0b0d11471478341c21bbad6811ca92ba7258aeb
[ "MIT" ]
1
2016-12-28T03:21:08.000Z
2017-04-14T15:49:45.000Z
test/test_basics.cpp
OpenCL/ComplexMath
e0b0d11471478341c21bbad6811ca92ba7258aeb
[ "MIT" ]
2
2019-05-13T14:21:49.000Z
2020-01-10T02:12:17.000Z
//---------------------------------------------------------------------------// // MIT License // // Copyright (c) 2017 StreamComputing // // 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 w...
38.377551
81
0.657272
[ "vector" ]
ad9d754c54d01baa320a86d39f9676dadba52b55
14,631
hpp
C++
include/src/Core/Block/SparseBlockMatrixBase.impl.hpp
sjokic/WallDestruction
2e1c000096df4aa027a91ff1732ce50a205b221a
[ "MIT" ]
1
2021-11-03T11:30:05.000Z
2021-11-03T11:30:05.000Z
include/src/Core/Block/SparseBlockMatrixBase.impl.hpp
sjokic/WallDestruction
2e1c000096df4aa027a91ff1732ce50a205b221a
[ "MIT" ]
null
null
null
include/src/Core/Block/SparseBlockMatrixBase.impl.hpp
sjokic/WallDestruction
2e1c000096df4aa027a91ff1732ce50a205b221a
[ "MIT" ]
null
null
null
/* * This file is part of bogus, a C++ sparse block matrix library. * * Copyright 2013 Gilles Daviet <gdaviet@gmail.com> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/M...
27.24581
127
0.70337
[ "vector" ]
adaa53bf27aa9dd1eeaea11c806d60a2f04590dc
867
hpp
C++
wxdraw/object/Object.hpp
yasuikentarow/graed
45db4f4291bdca27c32a3b2938ccd1aa7b40d48a
[ "MIT" ]
null
null
null
wxdraw/object/Object.hpp
yasuikentarow/graed
45db4f4291bdca27c32a3b2938ccd1aa7b40d48a
[ "MIT" ]
null
null
null
wxdraw/object/Object.hpp
yasuikentarow/graed
45db4f4291bdca27c32a3b2938ccd1aa7b40d48a
[ "MIT" ]
null
null
null
#pragma once namespace wxdraw::object { /** オブジェクト基底クラス */ class Object : public std::enable_shared_from_this<Object> { private: wxString type_; wxString id_; wxString name_; static std::map<std::type_index, std::map<wxString, int>> Serials; public: Object(const wxString& type); Object(const Objec...
18.847826
68
0.689735
[ "object" ]
adb565139efde49fc780fa8b1b8e9d14b8ab26c5
22,372
cc
C++
utils/flatbuffers/mutable.cc
yangzhigang1999/libtextclassifier
4c965f1c12b3c7a37f6126cef737a8fe33f4677c
[ "Apache-2.0" ]
null
null
null
utils/flatbuffers/mutable.cc
yangzhigang1999/libtextclassifier
4c965f1c12b3c7a37f6126cef737a8fe33f4677c
[ "Apache-2.0" ]
null
null
null
utils/flatbuffers/mutable.cc
yangzhigang1999/libtextclassifier
4c965f1c12b3c7a37f6126cef737a8fe33f4677c
[ "Apache-2.0" ]
1
2021-03-20T03:40:21.000Z
2021-03-20T03:40:21.000Z
// Copyright 2020 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
32.612245
80
0.63432
[ "object", "vector" ]
adbacce3de707cca8aa512af1e0856b1167c4aa9
4,707
cpp
C++
src/caffe/layers/eltwise_layer_hip.cpp
emerth/hipCaffe
8996c92bed2fbe353d1f31ab3ad116ab8831cd94
[ "BSD-2-Clause" ]
123
2017-05-04T02:15:47.000Z
2021-01-04T05:04:24.000Z
src/caffe/layers/eltwise_layer_hip.cpp
emerth/hipCaffe
8996c92bed2fbe353d1f31ab3ad116ab8831cd94
[ "BSD-2-Clause" ]
43
2017-05-10T11:21:25.000Z
2021-01-28T14:53:01.000Z
src/caffe/layers/eltwise_layer_hip.cpp
emerth/hipCaffe
8996c92bed2fbe353d1f31ab3ad116ab8831cd94
[ "BSD-2-Clause" ]
32
2017-05-10T11:08:18.000Z
2020-12-17T20:03:45.000Z
#include <cfloat> #include <vector> #include "caffe/layers/eltwise_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void MaxForward(const int nthreads, const Dtype* bottom_data_a, const Dtype* bottom_data_b, const int blob_idx, Dtype* top_data, int* m...
33.621429
109
0.628001
[ "vector" ]
adbbaa953ff1fdc844088eedd5e3dad6a774e2bf
1,584
hxx
C++
Core/GraphicsKit/GraphicsHandler.hxx
broken-bytes/Cyanite-Engine
5733e1fc010b375bbafc9ebfa41e248845f945b3
[ "MIT" ]
null
null
null
Core/GraphicsKit/GraphicsHandler.hxx
broken-bytes/Cyanite-Engine
5733e1fc010b375bbafc9ebfa41e248845f945b3
[ "MIT" ]
null
null
null
Core/GraphicsKit/GraphicsHandler.hxx
broken-bytes/Cyanite-Engine
5733e1fc010b375bbafc9ebfa41e248845f945b3
[ "MIT" ]
1
2020-12-20T07:35:05.000Z
2020-12-20T07:35:05.000Z
#pragma once #include <cstdint> #include "pch.hxx" #include "Frame.hxx" #include "Gpu.hxx" #include "Texture.hxx" #include "../EventKit/EventRelay.hxx" namespace Cyanite::GraphicsKit { class GraphicsHandler { public: explicit GraphicsHandler(HWND window); ~GraphicsHandler(); GraphicsHandler(const GraphicsHand...
31.68
65
0.710859
[ "render" ]
adbfb5969900ba7dfb2f0b5039d95a936e265ac1
1,922
cc
C++
code/Modules/IO/private/schemeRegistry.cc
FrogAC/oryol
7254c59411e97bbb6f2363aa685718def9f13827
[ "MIT" ]
1,707
2015-01-01T14:56:08.000Z
2022-03-28T06:44:09.000Z
code/Modules/IO/private/schemeRegistry.cc
FrogAC/oryol
7254c59411e97bbb6f2363aa685718def9f13827
[ "MIT" ]
256
2015-01-03T14:55:53.000Z
2020-09-09T10:43:46.000Z
code/Modules/IO/private/schemeRegistry.cc
FrogAC/oryol
7254c59411e97bbb6f2363aa685718def9f13827
[ "MIT" ]
222
2015-01-05T00:20:54.000Z
2022-02-06T01:41:37.000Z
//------------------------------------------------------------------------------ // schemeRegistry.cc //------------------------------------------------------------------------------ #include "Pre.h" #include "schemeRegistry.h" #include "IO/FileSystemBase.h" #include "Core/Core.h" #if ORYOL_HAS_THREADS #incl...
31.508197
111
0.523933
[ "object" ]
adc24ff0cc0097fdfbf27c19f8f2c849e06b4b4c
1,632
cpp
C++
project2D/MenuState.cpp
PancakesMan/GameStateProject
09a2587d96759768f04c521585b90bd961ef1758
[ "MIT" ]
null
null
null
project2D/MenuState.cpp
PancakesMan/GameStateProject
09a2587d96759768f04c521585b90bd961ef1758
[ "MIT" ]
null
null
null
project2D/MenuState.cpp
PancakesMan/GameStateProject
09a2587d96759768f04c521585b90bd961ef1758
[ "MIT" ]
null
null
null
#include "MenuState.h" #include "GameState.h" MenuState::MenuState(Application2D* _app) : IGameState(_app) { m_font = resources.getFont("./font/consolas.ttf", 28); m_start = new Button(app->getWindowWidth() / 2, app->getWindowHeight() / 2 - 60, "Start Game", m_font.get()); m_controls = new Button(app->getWindowWid...
36.266667
153
0.681985
[ "render" ]
adc38dfcf77ce239654964aa2d7013b0d0b6473b
1,269
cpp
C++
cpp/lib/search/bfs.cpp
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
cpp/lib/search/bfs.cpp
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
cpp/lib/search/bfs.cpp
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> #define rep(i,n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; void bfs(int H, int W, int sy, int sx, vector<string> &c, vector<vector<int>> &dist) { vector<vector<int>> directions = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}}; queue<pair<int,int>> q; q.push(make...
20.142857
86
0.427896
[ "vector" ]
adcca3afb4a6b09498041b5d9aeb00cead9e722b
5,286
cpp
C++
CoolProp/purefluids/R125.cpp
perrante/coolprop
c67ecc570e545d624c18feaf2a01e48b63ae1501
[ "MIT" ]
12
2015-04-21T07:43:09.000Z
2021-11-09T08:35:58.000Z
CoolProp/purefluids/R125.cpp
perrante/coolprop
c67ecc570e545d624c18feaf2a01e48b63ae1501
[ "MIT" ]
32
2015-01-04T05:05:05.000Z
2017-12-13T18:03:29.000Z
CoolProp/purefluids/R125.cpp
perrante/coolprop
c67ecc570e545d624c18feaf2a01e48b63ae1501
[ "MIT" ]
8
2015-01-01T21:15:37.000Z
2020-08-05T13:31:50.000Z
#include "CoolProp.h" #include <vector> #include "CPExceptions.h" #include "FluidClass.h" #include "R125.h" #include "REFPROP.h" R125Class::R125Class() { double n[] = {0.0, 5.280760, -8.676580, 0.7501127, 0.7590023, 0.01451899, 4.777189, -3.330988, 3.775673, -2.290919, 0.8888268, -0.6234864, -0.04127263, -0.08455389,...
31.464286
227
0.622777
[ "vector" ]
add97e9fa17f26fbb2ba5b8d9268039d44db79b7
7,767
cc
C++
elang/compiler/semantics/nodes_test.cc
eval1749/elang
5208b386ba3a3e866a5c0f0271280f79f9aac8c4
[ "Apache-2.0" ]
1
2018-01-27T22:40:53.000Z
2018-01-27T22:40:53.000Z
elang/compiler/semantics/nodes_test.cc
eval1749/elang
5208b386ba3a3e866a5c0f0271280f79f9aac8c4
[ "Apache-2.0" ]
1
2016-01-29T00:54:49.000Z
2016-01-29T00:54:49.000Z
elang/compiler/semantics/nodes_test.cc
eval1749/elang
5208b386ba3a3e866a5c0f0271280f79f9aac8c4
[ "Apache-2.0" ]
null
null
null
// Copyright 2014-2015 Project Vogue. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <sstream> #include <string> #include "elang/compiler/testing/analyzer_test.h" #include "base/strings/string_piece.h" #include "base/strings/utf_s...
34.52
80
0.690485
[ "object", "vector" ]