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
abc21d602e79c9f7a517cea4006533343d639167
1,031
hpp
C++
HomeFries/AAPLHashBytes.hpp
bgerstle/HomeFries
0d28e22e60f7046c5e80bf7371754a9d41c589be
[ "MIT" ]
null
null
null
HomeFries/AAPLHashBytes.hpp
bgerstle/HomeFries
0d28e22e60f7046c5e80bf7371754a9d41c589be
[ "MIT" ]
null
null
null
HomeFries/AAPLHashBytes.hpp
bgerstle/HomeFries
0d28e22e60f7046c5e80bf7371754a9d41c589be
[ "MIT" ]
null
null
null
#import <Foundation/Foundation.h> // extracted apple implementation // http://opensource.apple.com/source/CF/CF-550/CFUtilities.c #define ELF_STEP(B) T1 = (H << 4) + B; T2 = T1 & 0xF0000000; if (T2) T1 ^= (T2 >> 24); T1 &= (~T2); H = T1; static NSUInteger AAPLHashBytes(uint8_t *bytes, CFIndex length) { /* The ELF...
28.638889
107
0.637245
[ "object" ]
abc819d1d3cccc49852460013d68856547470c3f
2,604
cc
C++
testing/config_desktop.cc
oliwilkinsonio/firebase-cpp-sdk
1a2790030e92f77ad2aaa87000a1222d12dcabfc
[ "Apache-2.0" ]
null
null
null
testing/config_desktop.cc
oliwilkinsonio/firebase-cpp-sdk
1a2790030e92f77ad2aaa87000a1222d12dcabfc
[ "Apache-2.0" ]
null
null
null
testing/config_desktop.cc
oliwilkinsonio/firebase-cpp-sdk
1a2790030e92f77ad2aaa87000a1222d12dcabfc
[ "Apache-2.0" ]
null
null
null
// Copyright 2020 Google // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
31.756098
80
0.712366
[ "vector" ]
abc918266d35577f232c48a5bec3c43e1bd1cd2f
4,362
cxx
C++
Libs/Widgets/GUI/MidasCommunityTreeItem.cxx
midasplatform/MidasClient
728d4a5969691b54b7d0efd2dbad5a4df85d1a0e
[ "Apache-2.0" ]
null
null
null
Libs/Widgets/GUI/MidasCommunityTreeItem.cxx
midasplatform/MidasClient
728d4a5969691b54b7d0efd2dbad5a4df85d1a0e
[ "Apache-2.0" ]
null
null
null
Libs/Widgets/GUI/MidasCommunityTreeItem.cxx
midasplatform/MidasClient
728d4a5969691b54b7d0efd2dbad5a4df85d1a0e
[ "Apache-2.0" ]
null
null
null
/****************************************************************************** * Copyright 2011 Kitware 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....
26.925926
103
0.651994
[ "object", "vector", "model" ]
abcf7f12578bf9825d0527ddd1f0c63c6d64dbc5
10,654
hpp
C++
include/Newtonsoft/Json/Utilities/BidirectionalDictionary_2.hpp
RedBrumbler/BeatSaber-Quest-Codegen
73dda50b5a3e51f10d86b766dcaa24b0c6226e25
[ "Unlicense" ]
null
null
null
include/Newtonsoft/Json/Utilities/BidirectionalDictionary_2.hpp
RedBrumbler/BeatSaber-Quest-Codegen
73dda50b5a3e51f10d86b766dcaa24b0c6226e25
[ "Unlicense" ]
null
null
null
include/Newtonsoft/Json/Utilities/BidirectionalDictionary_2.hpp
RedBrumbler/BeatSaber-Quest-Codegen
73dda50b5a3e51f10d86b766dcaa24b0c6226e25
[ "Unlicense" ]
null
null
null
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" #include "beatsaber-hook/shared/utils/il2cpp-utils-met...
68.294872
312
0.759715
[ "object", "vector" ]
abd1e0b329e91e60198418b32b52ff2bd206ede4
11,072
cpp
C++
FireworksParticleSystem/CustomModel.cpp
TRBrown/Work_Examples
34b0d8a1eb51488f36ca8141a4eea89a2ff7c17f
[ "MIT" ]
null
null
null
FireworksParticleSystem/CustomModel.cpp
TRBrown/Work_Examples
34b0d8a1eb51488f36ca8141a4eea89a2ff7c17f
[ "MIT" ]
null
null
null
FireworksParticleSystem/CustomModel.cpp
TRBrown/Work_Examples
34b0d8a1eb51488f36ca8141a4eea89a2ff7c17f
[ "MIT" ]
null
null
null
#include "DXUT.h" #include "CustomModel.h" IDirect3DVertexDeclaration9* CustomModel::NMapVertex::Decl = 0; CustomModel::CustomModel(std::string strMesh, std::string strFX, IDirect3DDevice9* pd3dDevice) { m_sMeshFN = strMesh; m_sFXFN = strFX; m_pD3dDevice = pd3dDevice; m_bError = false; Loadmodel(); Loadfx()...
29.291005
157
0.725343
[ "mesh", "render", "object" ]
abd43b414a005e26e754bacaa5dd3935e2ef287a
1,056
cc
C++
test/test-logreg.cc
cloudera/madlibport
e1a47822fbb69899fe602ef71c56f6c6dacc1340
[ "Apache-2.0" ]
10
2015-01-01T09:13:57.000Z
2018-01-30T02:55:46.000Z
test/test-logreg.cc
cloudera/madlibport
e1a47822fbb69899fe602ef71c56f6c6dacc1340
[ "Apache-2.0" ]
null
null
null
test/test-logreg.cc
cloudera/madlibport
e1a47822fbb69899fe602ef71c56f6c6dacc1340
[ "Apache-2.0" ]
4
2015-10-16T12:17:55.000Z
2020-12-12T10:33:18.000Z
#include <cstdio> #include "test-macros.h" #include "bismarck-common.h" template <class T> T* BismarckAllocate(void* ignore, size_t len) { return new T[len]; } #include "logreg-inl.h" using namespace hazy; /*! Check that we're linked and can call a function :) */ int TEST_Logrinit() { bismarck::bytea model;...
21.12
73
0.652462
[ "model" ]
abd6f39446076710b436ea42c9d2421a20d365bb
3,583
cpp
C++
QuantExt/qle/models/exactbachelierimpliedvolatility.cpp
mrslezak/Engine
c46ff278a2c5f4162db91a7ab500a0bb8cef7657
[ "BSD-3-Clause" ]
335
2016-10-07T16:31:10.000Z
2022-03-02T07:12:03.000Z
QuantExt/qle/models/exactbachelierimpliedvolatility.cpp
mrslezak/Engine
c46ff278a2c5f4162db91a7ab500a0bb8cef7657
[ "BSD-3-Clause" ]
59
2016-10-31T04:20:24.000Z
2022-01-03T16:39:57.000Z
QuantExt/qle/models/exactbachelierimpliedvolatility.cpp
mrslezak/Engine
c46ff278a2c5f4162db91a7ab500a0bb8cef7657
[ "BSD-3-Clause" ]
180
2016-10-08T14:23:50.000Z
2022-03-28T10:43:05.000Z
/* Copyright (C) 2020 Quaternion Risk Management Ltd All rights reserved. This file is part of ORE, a free-software/open-source library for transparent pricing and risk analysis - http://opensourcerisk.org ORE is free software: you can redistribute it and/or modify it under the terms of the Modified BSD License...
38.117021
120
0.622383
[ "model" ]
abd77aeb5b18c23e4ddbc96c66759b3abe505314
2,541
cpp
C++
gearoenix/vulkan/sampler/gx-vk-smp-sampler.cpp
Hossein-Noroozpour/gearoenix
c8fa8b8946c03c013dad568d6d7a97d81097c051
[ "BSD-Source-Code" ]
35
2018-01-07T02:34:38.000Z
2022-02-09T05:19:03.000Z
gearoenix/vulkan/sampler/gx-vk-smp-sampler.cpp
Hossein-Noroozpour/gearoenix
c8fa8b8946c03c013dad568d6d7a97d81097c051
[ "BSD-Source-Code" ]
111
2017-09-20T09:12:36.000Z
2020-12-27T12:52:03.000Z
gearoenix/vulkan/sampler/gx-vk-smp-sampler.cpp
Hossein-Noroozpour/gearoenix
c8fa8b8946c03c013dad568d6d7a97d81097c051
[ "BSD-Source-Code" ]
5
2020-02-11T11:17:37.000Z
2021-01-08T17:55:43.000Z
#include "gx-vk-smp-sampler.hpp" #ifdef GX_USE_VULKAN #include "../../system/gx-sys-log.hpp" #include "../device/gx-vk-dev-logical.hpp" #include "../gx-vk-check.hpp" gearoenix::vulkan::sampler::Sampler::Sampler( std::shared_ptr<device::Logical> ld, const render::texture::SamplerInfo& sampler_info) noexcept ...
37.367647
115
0.738686
[ "render" ]
abd815a2e1166399ee03abfc56643839dd6ff738
9,626
cpp
C++
YorozuyaGSLib/source/CMoveMapLimitInfoListDetail.cpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
YorozuyaGSLib/source/CMoveMapLimitInfoListDetail.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
YorozuyaGSLib/source/CMoveMapLimitInfoListDetail.cpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
44
2017-12-19T08:02:59.000Z
2022-02-24T23:15:01.000Z
#include <CMoveMapLimitInfoListDetail.hpp> #include <common/ATFCore.hpp> START_ATF_NAMESPACE namespace Detail { Info::CMoveMapLimitInfoListctor_CMoveMapLimitInfoList2_ptr CMoveMapLimitInfoListctor_CMoveMapLimitInfoList2_next(nullptr); Info::CMoveMapLimitInfoListctor_CMoveMapLimitInfoL...
60.924051
237
0.716289
[ "vector" ]
abdb59a188c28cf8ba3b74aace99fcdb9a2450ec
1,102
hpp
C++
src/level/level.hpp
tevoran/haeschen-und-woelfchen
4d993f9bfbe1c767292ff00cf980830ca8b9c913
[ "BSD-2-Clause" ]
2
2021-06-11T18:58:42.000Z
2021-06-11T19:09:30.000Z
src/level/level.hpp
tevoran/haeschen-und-woelfchen
4d993f9bfbe1c767292ff00cf980830ca8b9c913
[ "BSD-2-Clause" ]
null
null
null
src/level/level.hpp
tevoran/haeschen-und-woelfchen
4d993f9bfbe1c767292ff00cf980830ca8b9c913
[ "BSD-2-Clause" ]
null
null
null
#pragma once #include <huw.hpp> #define ABFALL 1 #define NEON_L 2 #define NEON_M 3 #define NEON_R 4 #define NEON 5 #define TAUBE 6 #define GHETTO 7 #define WOLF 8 #define HASE 9 #define LEVEL_X 20 #define LEVEL_Y 11 namespace huw { class level { private: huw::game *m_game=NULL; bool activated=false; publi...
20.407407
95
0.703267
[ "render", "vector" ]
abdc462fa265851fb1d1fd888c019256a1bf8850
4,918
cpp
C++
ecs/src/v2/model/ListServerGroupsResult.cpp
yangzhaofeng/huaweicloud-sdk-cpp-v3
4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23
[ "Apache-2.0" ]
5
2021-03-03T08:23:43.000Z
2022-02-16T02:16:39.000Z
ecs/src/v2/model/ListServerGroupsResult.cpp
yangzhaofeng/huaweicloud-sdk-cpp-v3
4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23
[ "Apache-2.0" ]
null
null
null
ecs/src/v2/model/ListServerGroupsResult.cpp
yangzhaofeng/huaweicloud-sdk-cpp-v3
4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23
[ "Apache-2.0" ]
7
2021-02-26T13:53:35.000Z
2022-03-18T02:36:43.000Z
#include "huaweicloud/ecs/v2/model/ListServerGroupsResult.h" namespace HuaweiCloud { namespace Sdk { namespace Ecs { namespace V2 { namespace Model { ListServerGroupsResult::ListServerGroupsResult() { id_ = ""; idIsSet_ = false; membersIsSet_ = false; metadataIsSet_ = false; name_ = ""; n...
22.456621
99
0.652501
[ "object", "vector", "model" ]
abdf13be95947fcadccc73fd199ff04b5c73c72e
11,054
cpp
C++
tutorial/allocators.cpp
ggerganov/dynamix
7530d2d6a39a0824410f2535ab5fc95d3821488f
[ "MIT" ]
580
2016-06-26T20:44:17.000Z
2022-03-30T01:26:51.000Z
tutorial/allocators.cpp
ggerganov/dynamix
7530d2d6a39a0824410f2535ab5fc95d3821488f
[ "MIT" ]
35
2016-06-28T11:15:49.000Z
2022-01-28T14:03:30.000Z
tutorial/allocators.cpp
ggerganov/dynamix
7530d2d6a39a0824410f2535ab5fc95d3821488f
[ "MIT" ]
52
2016-06-26T19:49:24.000Z
2022-01-25T18:18:31.000Z
// DynaMix // Copyright (c) 2013-2019 Borislav Stanimirov, Zahary Karadjov // // Distributed under the MIT Software License // See accompanying file LICENSE.txt or copy at // https://opensource.org/licenses/MIT // #include <iostream> #include <dynamix/dynamix.hpp> using namespace std; //[allocators_global /*` DynaMix...
32.416422
119
0.717297
[ "object", "vector" ]
abe2dd33436d01848d5207f26153ad4e829bfbb6
27,216
cpp
C++
mlir/parsers/qasm3/visitor_handlers/classical_types_handler.cpp
amirebrahimi/qcor
1345cc04e7871105e1a251a1714dd9ce19a5f646
[ "BSD-3-Clause" ]
null
null
null
mlir/parsers/qasm3/visitor_handlers/classical_types_handler.cpp
amirebrahimi/qcor
1345cc04e7871105e1a251a1714dd9ce19a5f646
[ "BSD-3-Clause" ]
null
null
null
mlir/parsers/qasm3/visitor_handlers/classical_types_handler.cpp
amirebrahimi/qcor
1345cc04e7871105e1a251a1714dd9ce19a5f646
[ "BSD-3-Clause" ]
null
null
null
#include "expression_handler.hpp" #include "qasm3_visitor.hpp" namespace qcor { // classicalDeclarationStatement // : ( classicalDeclaration | constantDeclaration ) SEMICOLON // ; // constantDeclaration // : 'const' equalsAssignmentList // ; // singleDesignatorDeclaration // : singleDesignatorT...
38.332394
80
0.636574
[ "shape", "vector" ]
abe38c8404f59bda6bc416fed9340b9315cd06a0
10,006
cpp
C++
Plugins/org.blueberry.ui.qt/src/internal/defaultpresentation/berryNativeTabFolder.cpp
liu3xing3long/MITK-2016.11
385c506f9792414f40337e106e13d5fd61aa3ccc
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Plugins/org.blueberry.ui.qt/src/internal/defaultpresentation/berryNativeTabFolder.cpp
liu3xing3long/MITK-2016.11
385c506f9792414f40337e106e13d5fd61aa3ccc
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
Plugins/org.blueberry.ui.qt/src/internal/defaultpresentation/berryNativeTabFolder.cpp
liu3xing3long/MITK-2016.11
385c506f9792414f40337e106e13d5fd61aa3ccc
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
/*=================================================================== BlueBerry Platform Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY o...
27.489011
158
0.673796
[ "geometry" ]
743af15f53f7c3364c0d163c2bd2d6ee45eb75ca
1,155
hxx
C++
Code/Tools/Standalone/Source/Driller/Replica/ReplicaTreeViewModel.hxx
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
1
2022-03-12T14:13:45.000Z
2022-03-12T14:13:45.000Z
Code/Tools/Standalone/Source/Driller/Replica/ReplicaTreeViewModel.hxx
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
2
2022-01-13T04:29:38.000Z
2022-03-12T01:05:31.000Z
Code/Tools/Standalone/Source/Driller/Replica/ReplicaTreeViewModel.hxx
cypherdotXd/o3de
bb90c4ddfe2d495e9c00ebf1e2650c6d603a5676
[ "Apache-2.0", "MIT" ]
null
null
null
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #ifndef DRILLER_REPLICA_REPLICATREEVIEWMODELS_H #define DRILLER_REPLICA_REPLICATREEVIEWMODELS_H #...
24.574468
100
0.719481
[ "3d" ]
743c61372f5290e1762e330d1dba9910d7a1501b
723
cpp
C++
data/dailyCodingProblem184.cpp
vidit1999/daily_coding_problem
b90319cb4ddce11149f54010ba36c4bd6fa0a787
[ "MIT" ]
2
2020-09-04T20:56:23.000Z
2021-06-11T07:42:26.000Z
data/dailyCodingProblem184.cpp
vidit1999/daily_coding_problem
b90319cb4ddce11149f54010ba36c4bd6fa0a787
[ "MIT" ]
null
null
null
data/dailyCodingProblem184.cpp
vidit1999/daily_coding_problem
b90319cb4ddce11149f54010ba36c4bd6fa0a787
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; /* Given n numbers, find the greatest common denominator between them. For example, given the numbers [42, 56, 14], return 14. */ int gcd(int a, int b, unordered_map<string, int>& seen){ if(b == 0) return a; string find_string = to_string(a) + "$" + to_string(b); if...
20.083333
67
0.658368
[ "vector" ]
74455c5162471aae5f98361cc7f02c47ec9b953f
3,154
hpp
C++
core/shuffle_combiner_factory.hpp
Christina-hshi/Boosting-with-Husky
1744f0c90567a969d3e50d19f27f358f5865d2f6
[ "Apache-2.0" ]
1
2019-01-23T02:10:10.000Z
2019-01-23T02:10:10.000Z
core/shuffle_combiner_factory.hpp
Christina-hshi/Boosting-with-Husky
1744f0c90567a969d3e50d19f27f358f5865d2f6
[ "Apache-2.0" ]
null
null
null
core/shuffle_combiner_factory.hpp
Christina-hshi/Boosting-with-Husky
1744f0c90567a969d3e50d19f27f358f5865d2f6
[ "Apache-2.0" ]
null
null
null
// Copyright 2016 Husky Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
39.924051
116
0.642993
[ "vector" ]
744eb02deecef5cebddcb016cf853c8424cfca3a
5,299
hpp
C++
atomics/Average.hpp
ksuryakrishna/Blind_and_Lighting_Controller
008f1fb734a3c6a1e5598b42de687ca1c4583bc9
[ "MIT" ]
null
null
null
atomics/Average.hpp
ksuryakrishna/Blind_and_Lighting_Controller
008f1fb734a3c6a1e5598b42de687ca1c4583bc9
[ "MIT" ]
null
null
null
atomics/Average.hpp
ksuryakrishna/Blind_and_Lighting_Controller
008f1fb734a3c6a1e5598b42de687ca1c4583bc9
[ "MIT" ]
1
2020-05-31T10:51:41.000Z
2020-05-31T10:51:41.000Z
/* * By: Harish & Surya Krishna * ARSLab - Carleton University */ #ifndef BOOST_SIMULATION_PDEVS_AVERAGE_HPP #define BOOST_SIMULATION_PDEVS_AVERAGE_HPP #include <cadmium/modeling/ports.hpp> #include <cadmium/modeling/message_bag.hpp> #include <limits> #include <math.h> #include <assert.h> #include <memory...
32.913043
214
0.513682
[ "model" ]
745301fe86809d5b1e967bb9dff21be0cb0e64be
1,960
cpp
C++
source/common/mesh/Material.cpp
MoaazZaki/coolGameEngine
2324c62c5c7ad6860b3a8b817cd24ca80b1b18ae
[ "MIT" ]
2
2021-01-18T20:51:54.000Z
2021-11-01T08:41:38.000Z
source/common/mesh/Material.cpp
MoaazZaki/coolGameEngine
2324c62c5c7ad6860b3a8b817cd24ca80b1b18ae
[ "MIT" ]
null
null
null
source/common/mesh/Material.cpp
MoaazZaki/coolGameEngine
2324c62c5c7ad6860b3a8b817cd24ca80b1b18ae
[ "MIT" ]
null
null
null
#include "Material.hpp" #include <vector> // pairing the values with their names and giving them size famm::Material::Material(ShaderProgram* shader){ s = shader; } void famm::Material::updateProperty(std::string name , float value) { UniformScalar[locationMap[name]] = value; } void famm::Material::updateProper...
25.128205
76
0.746939
[ "vector" ]
74545887d50e1da0e8d713c6b80b24dee6faa4c7
1,454
cpp
C++
merkle-hellman-knapsack/encryption.cpp
ruthussanketh/cryptography
853111c8b6be58013b41bd10a2322890afdbf21c
[ "CC0-1.0" ]
2
2021-06-08T17:46:08.000Z
2021-09-13T15:19:36.000Z
merkle-hellman-knapsack/encryption.cpp
ruthussanketh/cryptography
853111c8b6be58013b41bd10a2322890afdbf21c
[ "CC0-1.0" ]
null
null
null
merkle-hellman-knapsack/encryption.cpp
ruthussanketh/cryptography
853111c8b6be58013b41bd10a2322890afdbf21c
[ "CC0-1.0" ]
1
2020-12-15T12:38:25.000Z
2020-12-15T12:38:25.000Z
#include <iostream> #include <string> #include <vector> using namespace std; class Public_Weights { public: int weight; }; class Plaintext { public: int plaintext; }; int MerkleHellmanEncrypt(vector<Public_Weights>PublicWeights, vector<Plaintext>xPlaintext) { int ciphertext=0; unsigned si...
22.369231
91
0.568776
[ "vector" ]
745d7c7832eed4f897d444f61a01f16b0580d5ba
18,708
cpp
C++
Dx12Core/Src/GraphicsDevice.cpp
Impulse21/GraphicsLearning-Dx12
bbe165f6a75408505c1dbab3b5030dcdd31cceb8
[ "MIT" ]
1
2022-03-26T00:57:06.000Z
2022-03-26T00:57:06.000Z
Dx12Core/Src/GraphicsDevice.cpp
Impulse21/GraphicsLearning-Dx12
bbe165f6a75408505c1dbab3b5030dcdd31cceb8
[ "MIT" ]
null
null
null
Dx12Core/Src/GraphicsDevice.cpp
Impulse21/GraphicsLearning-Dx12
bbe165f6a75408505c1dbab3b5030dcdd31cceb8
[ "MIT" ]
null
null
null
#include "Dx12Core/GraphicsDevice.h" #include "Dx12Core/Dx12Queue.h" #include "Dx12DescriptorHeap.h" using namespace Dx12Core; Dx12Core::GraphicsDevice::GraphicsDevice(GraphicsDeviceDesc desc, Dx12Context& context) : m_context(context) , m_desc(std::move(desc)) { this->m_queues[static_cast<size_t>(CommandQueue::Gr...
32.994709
138
0.779827
[ "vector" ]
745f53185ff80fadf622db73f4df9adaed153e5d
13,212
cpp
C++
CESystem/CollisionSystem.cpp
infaldez/CESystem
7b2f562f0e6f2511fcb4d834a9cc76816bce0ed3
[ "Unlicense" ]
null
null
null
CESystem/CollisionSystem.cpp
infaldez/CESystem
7b2f562f0e6f2511fcb4d834a9cc76816bce0ed3
[ "Unlicense" ]
null
null
null
CESystem/CollisionSystem.cpp
infaldez/CESystem
7b2f562f0e6f2511fcb4d834a9cc76816bce0ed3
[ "Unlicense" ]
null
null
null
#include "CollisionSystem.h" #include <SFML\Graphics.hpp> #include "Entity.h" #include "componentDamage.h" #include "ComponentHealth.h" #include "ComponentPosition.h" #include "ComponentAABB.h" #include "ComponentEvent.h" #include <unordered_map> #include <algorithm> #include <iostream> /* TODO - entities can occu...
28.110638
135
0.661066
[ "vector", "solid" ]
7462a7dcca35fd088b5c0ae76d1a8530349edab3
7,488
cpp
C++
client/skeletonReceiver/src/midi/midiTrigger.cpp
ofZach/piano
017e2065330701a58f81ba0f41262622aa37d7d1
[ "MIT" ]
2
2015-02-02T17:38:08.000Z
2015-06-08T19:02:08.000Z
client/skeletonReceiver/src/midi/midiTrigger.cpp
ofZach/piano
017e2065330701a58f81ba0f41262622aa37d7d1
[ "MIT" ]
10
2015-01-20T16:38:53.000Z
2015-04-21T16:18:19.000Z
client/skeletonReceiver/src/midi/midiTrigger.cpp
ofZach/piano
017e2065330701a58f81ba0f41262622aa37d7d1
[ "MIT" ]
null
null
null
#include "midiTrigger.h" #pragma mark - Interface midiTrigger::midiTrigger() : _settings() { } void midiTrigger::setMidiOut(shared_ptr<ofxMidiOut> midiOut) { _midiOut = midiOut; } shared_ptr<ofxMidiOut> midiTrigger::getMidiOut() { return _midiOut; } void midiTrigger::reset() { for(const auto& note : getSettin...
27.630996
108
0.695379
[ "vector" ]
7464c33a3ece3611c8b04e04aead5362e4a1faab
4,240
hpp
C++
include/mesh_generator.hpp
shakibbinhamid/OpenGL-Major-Project
1f7d2138b3dd5b45679951a6170679dbb8638844
[ "MIT" ]
null
null
null
include/mesh_generator.hpp
shakibbinhamid/OpenGL-Major-Project
1f7d2138b3dd5b45679951a6170679dbb8638844
[ "MIT" ]
null
null
null
include/mesh_generator.hpp
shakibbinhamid/OpenGL-Major-Project
1f7d2138b3dd5b45679951a6170679dbb8638844
[ "MIT" ]
null
null
null
// // mesh_generator.h // Coursework 3 // // Created by Shakib-Bin Hamid on 30/03/2016. // Copyright © 2016 Shakib-Bin Hamid. All rights reserved. // #ifndef mesh_generator_h #define mesh_generator_h #include "mesh.hpp" #include <vector> /* Generates a sphere and populates the vertices, indices based on how man...
28.648649
111
0.490802
[ "mesh", "vector" ]
7464e3623f3df94930e399ead2d37010401812e2
1,512
cpp
C++
src/scene_types.cpp
DoubleJump/waggle
06a2fb07d7e3678f990396d1469cf4f85e3863a1
[ "MIT" ]
1
2021-04-30T11:14:32.000Z
2021-04-30T11:14:32.000Z
src/scene_types.cpp
DoubleJump/waggle
06a2fb07d7e3678f990396d1469cf4f85e3863a1
[ "MIT" ]
null
null
null
src/scene_types.cpp
DoubleJump/waggle
06a2fb07d7e3678f990396d1469cf4f85e3863a1
[ "MIT" ]
null
null
null
#define MAX_ENTITY_CHILDREN 16 enum struct Entity_Type { DEFAULT = 0, CAMERA = 1, }; struct Transform { Vec3 position; Vec3 scale; Vec4 rotation; Mat4 local_matrix; Mat4 world_matrix; }; struct Entity : Transform { u32 id; b32 active; Entity_Type entity_type; Entity* parent; Entity* childr...
14.970297
39
0.683201
[ "mesh", "transform" ]
7465dde6e530f461f3beaaf892eeed6134c21ab7
3,448
cc
C++
cc/paint/clear_for_opaque_raster.cc
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
cc/paint/clear_for_opaque_raster.cc
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
86
2015-10-21T13:02:42.000Z
2022-03-14T07:50:50.000Z
cc/paint/clear_for_opaque_raster.cc
chromium/chromium
df46e572c3449a4b108d6e02fbe4f6d24cf98381
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.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 "cc/paint/clear_for_opaque_raster.h" #include <cmath> #include "base/check_op.h" #include "ui/gfx/geometry/rect.h" #include "ui/gfx/geometry/si...
42.04878
80
0.673434
[ "geometry" ]
746658aba499f5e1cf7943916ed40e31205628b1
909
cc
C++
smart_pointers/01-pointer.cc
aakbar5/handy-cplusplus
fd8ae187811f1ff9a6d19909202ed31564c4e384
[ "MIT" ]
null
null
null
smart_pointers/01-pointer.cc
aakbar5/handy-cplusplus
fd8ae187811f1ff9a6d19909202ed31564c4e384
[ "MIT" ]
null
null
null
smart_pointers/01-pointer.cc
aakbar5/handy-cplusplus
fd8ae187811f1ff9a6d19909202ed31564c4e384
[ "MIT" ]
null
null
null
// // Program // This program simply creates auto pointer. // // Compile // g++ -std=c++17 -o 01-pointer 01-pointer.cc // // Execution // ./01-pointer // #include <iostream> #include <memory> // // Entry function // int main() { std::cout << "--- std::auto_ptr ---" << "\n"; // Handling of Test object via...
20.659091
66
0.50275
[ "object" ]
74672eb4319a5101882806e4f7548fc7d62def89
4,805
hpp
C++
controller/ConnectionPool.hpp
icecubi/ZeroTierOne
7ea2354540cd891f61d0944ff8a25c53a42bd038
[ "RSA-MD" ]
null
null
null
controller/ConnectionPool.hpp
icecubi/ZeroTierOne
7ea2354540cd891f61d0944ff8a25c53a42bd038
[ "RSA-MD" ]
null
null
null
controller/ConnectionPool.hpp
icecubi/ZeroTierOne
7ea2354540cd891f61d0944ff8a25c53a42bd038
[ "RSA-MD" ]
1
2019-03-04T07:31:55.000Z
2019-03-04T07:31:55.000Z
/* * Copyright (c)2021 ZeroTier, Inc. * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file in the project's root directory. * * Change Date: 2025-01-01 * * On the date above, in accordance with the Business Source License, use * of this software will be governe...
29.84472
164
0.576275
[ "object" ]
746d645c94c34c1ec0eb9a76eea59acbac454c27
3,412
hpp
C++
src/libraries/waves/waves/relaxationZone/relaxationScheme/spatialInterpolation/relaxationSchemeSpatialInterpolation.hpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
src/libraries/waves/waves/relaxationZone/relaxationScheme/spatialInterpolation/relaxationSchemeSpatialInterpolation.hpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
src/libraries/waves/waves/relaxationZone/relaxationScheme/spatialInterpolation/relaxationSchemeSpatialInterpolation.hpp
MrAwesomeRocks/caelus-cml
55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7
[ "mpich2" ]
null
null
null
/*---------------------------------------------------------------------------*\ Copyright Niels Gjøl Jacobsen, Deltares. ------------------------------------------------------------------------------- License This file is part of Caelus. CAELUS is free software: you can redistribute it and/or modify it und...
28.198347
80
0.552755
[ "shape" ]
7478f89f57071774a36cf4ed577439cc8ac10dfd
2,801
cpp
C++
TL_SIM_TimeProfile/TL_SIM_time_node.cpp
TinySim/TinySim
2e3bed223b1b75faa25e4ab7d80551b9896bf446
[ "MIT" ]
1
2019-07-30T02:26:18.000Z
2019-07-30T02:26:18.000Z
TL_SIM_TimeProfile/TL_SIM_time_node.cpp
TinySim/TinySim
2e3bed223b1b75faa25e4ab7d80551b9896bf446
[ "MIT" ]
null
null
null
TL_SIM_TimeProfile/TL_SIM_time_node.cpp
TinySim/TinySim
2e3bed223b1b75faa25e4ab7d80551b9896bf446
[ "MIT" ]
null
null
null
#include "TL_SIM_time_node.h" #include <map> #include <vector> using namespace std; void TL_SIM_time_node::set_moteid(int i_moteid) { this->moteid = i_moteid; } int TL_SIM_time_node::get_moteid() { return this->moteid; } void TL_SIM_time_node::set_random_access_delay(int random_access_delay) { this->random...
18.427632
95
0.732953
[ "vector" ]
747d3d27722d89880286f002bdfdda3e83d15b7a
11,163
cpp
C++
LightpackAPI/LedDevice.cpp
matthewn4444/Lightpack-Filter-and-API
b4cd7d448f12a111ebf8a8b55338a2d75e120517
[ "MIT-0" ]
9
2015-01-29T02:26:58.000Z
2019-11-20T03:16:16.000Z
LightpackAPI/LedDevice.cpp
matthewn4444/Lightpack-Filter-and-API
b4cd7d448f12a111ebf8a8b55338a2d75e120517
[ "MIT-0" ]
7
2015-07-31T15:56:10.000Z
2017-11-05T22:18:02.000Z
LightpackAPI/LedDevice.cpp
matthewn4444/Lightpack-Filter-and-API
b4cd7d448f12a111ebf8a8b55338a2d75e120517
[ "MIT-0" ]
null
null
null
#include <algorithm> #include "../include/Lightpack.h" #include "thirdparty\hidapi\hidapi.h" #include "device\commands.h" #include "device\USB_ID.h" #define WRITE_BUFFER_INDEX_REPORT_ID 0 #define WRITE_BUFFER_INDEX_COMMAND 1 #define WRITE_BUFFER_INDEX_DATA_START 2 namespace Lightpack { LedDevice::LedDev...
30.752066
100
0.510705
[ "vector" ]
747e359cedacfde15eb92c964c6273b9dbea607f
1,581
cpp
C++
DSA Crack Sheet/solutions/N-Queens II.cpp
Akshad7829/DataStructures-Algorithms
439822c6a374672d1734e2389d3fce581a35007d
[ "MIT" ]
5
2021-08-10T18:47:49.000Z
2021-08-21T15:42:58.000Z
DSA Crack Sheet/solutions/N-Queens II.cpp
Akshad7829/DataStructures-Algorithms
439822c6a374672d1734e2389d3fce581a35007d
[ "MIT" ]
2
2022-02-25T13:36:46.000Z
2022-02-25T14:06:44.000Z
DSA Crack Sheet/solutions/N-Queens II.cpp
Akshad7829/DataStructures-Algorithms
439822c6a374672d1734e2389d3fce581a35007d
[ "MIT" ]
1
2021-08-11T06:36:42.000Z
2021-08-11T06:36:42.000Z
/* N-Queens II =========== The n-queens puzzle is the problem of placing n queens on an n x n chessboard such that no two queens attack each other. Given an integer n, return the number of distinct solutions to the n-queens puzzle. Example 1: Input: n = 4 Output: 2 Explanation: There are two distinct solutions to th...
17.764045
120
0.488931
[ "vector" ]
748ccb441eb18370807e4be31765363cb79286dc
751
cpp
C++
Vishv_GE/Framework/Physics/Src/Firework.cpp
InFaNsO/Vishv_GameEngine
e721afa899fb8715e52cdd67c2656ba6cce7ffed
[ "MIT" ]
1
2021-12-19T02:06:12.000Z
2021-12-19T02:06:12.000Z
Vishv_GE/Framework/Physics/Src/Firework.cpp
InFaNsO/Vishv_GameEngine
e721afa899fb8715e52cdd67c2656ba6cce7ffed
[ "MIT" ]
null
null
null
Vishv_GE/Framework/Physics/Src/Firework.cpp
InFaNsO/Vishv_GameEngine
e721afa899fb8715e52cdd67c2656ba6cce7ffed
[ "MIT" ]
null
null
null
#include "Precompiled.h" #include "Particle.h" #include "Firework.h" #include "PhysicsVectors.h" /*using namespace Vishv; using namespace Vishv::Physics; void Vishv::Physics::Firework::Initialize(std::vector<Firework> payload, Fireworks::Ruleset rule, Math::Vector3 spawnPos, float mass, Math::Vector3 acceleratrion) ...
22.088235
162
0.76032
[ "vector" ]
748ee49a13e9422ee131463f1b215d1630941b47
1,649
cxx
C++
src/jpeg_transform.cxx
NoevilMe/libwebcam
2c6d27fb7b92a1818a999f292e24adc03e20184b
[ "MIT" ]
null
null
null
src/jpeg_transform.cxx
NoevilMe/libwebcam
2c6d27fb7b92a1818a999f292e24adc03e20184b
[ "MIT" ]
null
null
null
src/jpeg_transform.cxx
NoevilMe/libwebcam
2c6d27fb7b92a1818a999f292e24adc03e20184b
[ "MIT" ]
null
null
null
#include "jpeg_transform.h" #include <cstring> #include <stdexcept> namespace noevil { namespace webcam { JpegTransform::JpegTransform(JpegTransformOp op) : handle_(tjInitTransform()) { if (!handle_) { throw std::runtime_error(tjGetErrorStr()); } memset(&xtrans_, 0, sizeof(xtrans_)); switc...
22.589041
79
0.619163
[ "transform" ]
749c85254a89b4aa21c3d47f46363548dbe4913e
5,685
cc
C++
tensorrt-laboratory/core/src/affinity.cc
ryanleary/tensorrt-laboratory
1bb2151bfdffbb2e72b1a096e41b67602789c445
[ "BSD-3-Clause" ]
4
2020-01-16T13:50:28.000Z
2021-12-08T09:35:13.000Z
tensorrt-laboratory/core/src/affinity.cc
ryanleary/tensorrt-laboratory
1bb2151bfdffbb2e72b1a096e41b67602789c445
[ "BSD-3-Clause" ]
5
2020-03-24T17:57:33.000Z
2022-03-12T00:07:08.000Z
tensorrt-laboratory/core/src/affinity.cc
ryanleary/tensorrt-laboratory
1bb2151bfdffbb2e72b1a096e41b67602789c445
[ "BSD-3-Clause" ]
null
null
null
/* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of ...
30.40107
100
0.666139
[ "vector" ]
74a340bfef8466d77ff8e0b74bf189c99a837d96
481
cpp
C++
Modules/TArc/Sources/TArc/Utils/Private/RhiEmptyFrame.cpp
reven86/dava.engine
ca47540c8694668f79774669b67d874a30188c20
[ "BSD-3-Clause" ]
5
2020-02-11T12:04:17.000Z
2022-01-30T10:18:29.000Z
Modules/TArc/Sources/TArc/Utils/Private/RhiEmptyFrame.cpp
reven86/dava.engine
ca47540c8694668f79774669b67d874a30188c20
[ "BSD-3-Clause" ]
null
null
null
Modules/TArc/Sources/TArc/Utils/Private/RhiEmptyFrame.cpp
reven86/dava.engine
ca47540c8694668f79774669b67d874a30188c20
[ "BSD-3-Clause" ]
4
2019-11-28T19:24:34.000Z
2021-08-24T19:12:50.000Z
#include "TArc/Utils/RhiEmptyFrame.h" #include "Render/Renderer.h" #include "Render/RenderHelper.h" namespace DAVA { namespace TArc { RhiEmptyFrame::RhiEmptyFrame() { const rhi::HTexture nullTexture; const rhi::Viewport nullViewport(0, 0, 1, 1); Renderer::BeginFrame(); RenderHelper::CreateClearPass(nu...
20.041667
91
0.721414
[ "render" ]
74a5ecac2e8f64a4e05d08cf947f104983ead48c
12,273
cpp
C++
src/mongo/db/repl/repl_set_heartbeat_response.cpp
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/mongo/db/repl/repl_set_heartbeat_response.cpp
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
src/mongo/db/repl/repl_set_heartbeat_response.cpp
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
/** * Copyright (C) 2018-present MongoDB, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the Server Side Public License, version 1, * as published by MongoDB, Inc. * * This program is distributed in the hope that it will be useful, * but W...
37.996904
99
0.644341
[ "object" ]
74a92e2eb944116b14240b6c27ecf4f5a126c60b
1,906
cc
C++
src/measurement_models/measurement_model_base.cc
jwidauer/refill
64947e0a8e15855f4a5ad048f09f8d38715bbe91
[ "MIT" ]
2
2021-06-13T07:28:51.000Z
2021-09-08T11:26:34.000Z
src/measurement_models/measurement_model_base.cc
jwidauer/refill
64947e0a8e15855f4a5ad048f09f8d38715bbe91
[ "MIT" ]
null
null
null
src/measurement_models/measurement_model_base.cc
jwidauer/refill
64947e0a8e15855f4a5ad048f09f8d38715bbe91
[ "MIT" ]
3
2021-06-01T13:21:41.000Z
2021-06-01T20:33:20.000Z
#include "refill/measurement_models/measurement_model_base.h" using std::size_t; namespace refill { /** * Use this constructor when inheriting from this class. * The constructor clones the measurement noise, so it can be used again. * * @param state_dim The state dimension. * @param measurement_dim The measurem...
31.766667
73
0.764953
[ "model" ]
74b464d302fd62ff34d0e9e4dd06be14cd965261
2,204
cpp
C++
src/globals.cpp
AlessandroParrotta/parrlib
d1679ee8a7cff7d14b2d93e898ed58fecff13159
[ "MIT" ]
2
2020-05-08T20:27:14.000Z
2021-01-21T10:28:19.000Z
src/globals.cpp
AlessandroParrotta/parrlib
d1679ee8a7cff7d14b2d93e898ed58fecff13159
[ "MIT" ]
null
null
null
src/globals.cpp
AlessandroParrotta/parrlib
d1679ee8a7cff7d14b2d93e898ed58fecff13159
[ "MIT" ]
1
2020-05-08T20:27:16.000Z
2020-05-08T20:27:16.000Z
#include <parrlib/globals.h> #include <parrlib/sprite.h> #include <parrlib/utils3d/mesh3d.h> namespace globals { std::unordered_map<std::string, TextRenderer> txrs; bool findTxr(std::string const& name) { return txrs.find(name) != txrs.end(); } void setTxr(std::string const& name, std::vector<std::string> const&...
42.384615
145
0.676951
[ "vector" ]
74b53c60c5031ec35edb51ebd786751d7def10ac
1,118
hpp
C++
src/algorithms/prune.hpp
vgteam/od
9e9c4811169760f64690e86619dbd1b088ec5955
[ "MIT" ]
60
2019-03-04T13:32:46.000Z
2021-02-23T02:32:54.000Z
src/algorithms/prune.hpp
vgteam/od
9e9c4811169760f64690e86619dbd1b088ec5955
[ "MIT" ]
120
2019-03-08T18:06:37.000Z
2021-03-18T09:12:16.000Z
src/algorithms/prune.hpp
vgteam/od
9e9c4811169760f64690e86619dbd1b088ec5955
[ "MIT" ]
18
2019-04-03T09:50:57.000Z
2021-02-23T14:55:55.000Z
#ifndef DSGVG_PRUNE_HPP_INCLUDED #define DSGVG_PRUNE_HPP_INCLUDED #include <iostream> #include <vector> #include <list> #include <omp.h> #include <handlegraph/util.hpp> #include <handlegraph/handle_graph.hpp> #include "position.hpp" /** \file * Functions for working with `kmers_t`'s in HandleGraphs. */ namespace ...
24.304348
108
0.677102
[ "vector" ]
74bb5ff266a999a8f140d91ae76da88592aa300f
1,600
cpp
C++
src/BMPFile.cpp
wysiwyng/sidecrawler
4f19604945cc7377d7f3f8a4da71c340a7d87383
[ "BSD-3-Clause" ]
2
2015-03-11T09:20:37.000Z
2015-09-06T21:02:28.000Z
src/BMPFile.cpp
wysiwyng/sidecrawler
4f19604945cc7377d7f3f8a4da71c340a7d87383
[ "BSD-3-Clause" ]
null
null
null
src/BMPFile.cpp
wysiwyng/sidecrawler
4f19604945cc7377d7f3f8a4da71c340a7d87383
[ "BSD-3-Clause" ]
null
null
null
#include "BMPFile.h" #include "Polycode.h" BMPFile::BMPFile(){ } BMPFile::BMPFile(const char * filename){ read(filename); } BMPFile::~BMPFile(){ } void BMPFile::read(const char* filename){ std::ifstream file(filename); if (file){ file.seekg(0, std::ios::end); std::streampos length = file.tellg(); file.se...
24.615385
155
0.664375
[ "vector" ]
74c0c54273fe8334758c4357be6134352b02d739
3,654
cc
C++
src/server/memory/malloc.cc
TREiop/v6d
9ad80c65c226405b0c7b4ed6b6c9b1229bbf9175
[ "Apache-2.0", "CC0-1.0" ]
417
2020-10-23T12:35:27.000Z
2021-04-15T09:37:00.000Z
src/server/memory/malloc.cc
TREiop/v6d
9ad80c65c226405b0c7b4ed6b6c9b1229bbf9175
[ "Apache-2.0", "CC0-1.0" ]
294
2021-05-28T03:04:26.000Z
2022-03-31T07:09:45.000Z
src/server/memory/malloc.cc
TREiop/v6d
9ad80c65c226405b0c7b4ed6b6c9b1229bbf9175
[ "Apache-2.0", "CC0-1.0" ]
30
2021-05-31T13:34:57.000Z
2022-03-25T06:39:47.000Z
/** * NOLINT(legal/copyright) * * The file src/server/memory/malloc.cc is referred and derived from project * apache-arrow, * * https://github.com/apache/arrow/blob/master/cpp/src/plasma/malloc.cc * * which has the following license: * // Licensed to the Apache Software Foundation (ASF) under one // or more...
31.230769
80
0.670224
[ "vector" ]
74c4e4d94b74138339cc14d538a7f8d45a279ad6
265
cpp
C++
ConsoleApplication2/ConsoleApplication2/ConsoleApplication2.cpp
mattgambill/MiscCppProjects
e2c6d39e8f6825b28ba0fea19268bfc3a59b736f
[ "MIT" ]
null
null
null
ConsoleApplication2/ConsoleApplication2/ConsoleApplication2.cpp
mattgambill/MiscCppProjects
e2c6d39e8f6825b28ba0fea19268bfc3a59b736f
[ "MIT" ]
null
null
null
ConsoleApplication2/ConsoleApplication2/ConsoleApplication2.cpp
mattgambill/MiscCppProjects
e2c6d39e8f6825b28ba0fea19268bfc3a59b736f
[ "MIT" ]
null
null
null
// ConsoleApplication2.cpp : Defines the entry point for the console application. // #include<iostream> #include<cmath> #include<vector> int main() { int count=0, j=0; double a0,a, v1, v2, k, purity, epsilon; return 0; }
10.6
82
0.596226
[ "vector" ]
74c5a99bb6933dc58fef991ea024c0fd00bd114c
16,094
cc
C++
elec/ProcBox.cc
paulkefer/cardioid
59c07b714d8b066b4f84eb50487c36f6eadf634c
[ "MIT-0", "MIT" ]
33
2018-12-12T20:05:06.000Z
2021-09-26T13:30:16.000Z
elec/ProcBox.cc
paulkefer/cardioid
59c07b714d8b066b4f84eb50487c36f6eadf634c
[ "MIT-0", "MIT" ]
5
2019-04-25T11:34:43.000Z
2021-11-14T04:35:37.000Z
elec/ProcBox.cc
paulkefer/cardioid
59c07b714d8b066b4f84eb50487c36f6eadf634c
[ "MIT-0", "MIT" ]
15
2018-12-21T22:44:59.000Z
2021-08-29T10:30:25.000Z
#include "ProcBox.hh" #include <cassert> #include <iostream> //ewd DEBUG #include "GridPoint.hh" #include <mpi.h> //ewd DEBUG using namespace std; ProcBox::ProcBox(int peid) : peid_(peid) { addCnt_ = 0; planes_.resize(3); axisPoints_.resize(3); min_.resize(3); max_.resize(3); for (int ii=0; ii<3; ii+...
29.970205
111
0.441345
[ "vector" ]
74c6fe8405740ec3b0d135a93cf09b0cc2aff7ba
3,466
cpp
C++
test/test_similarity.cpp
danila19991/graph-analysis
edac8a56ea0b74235c31340bf2b691dbbcdb7be6
[ "Apache-2.0" ]
null
null
null
test/test_similarity.cpp
danila19991/graph-analysis
edac8a56ea0b74235c31340bf2b691dbbcdb7be6
[ "Apache-2.0" ]
2
2019-05-09T19:49:16.000Z
2019-05-20T09:13:42.000Z
test/test_similarity.cpp
danila19991/graph-analysis
edac8a56ea0b74235c31340bf2b691dbbcdb7be6
[ "Apache-2.0" ]
null
null
null
// // Created by danila on 27.04.19. // #include <gtest/gtest.h> #include "../algo/algorithms.hpp" #include "test_utils.h" #include <math.h> TEST(test_common_neighbors, empty_graph) { std::vector<std::vector<int>> e; std::vector<int> t; graph g(e,t); auto res = common_neighbors(g); ASSERT_EQ(res...
24.069444
104
0.578477
[ "vector" ]
74cba8a4d5fb30789e3ba152bcbb4bcfccac3147
5,008
cc
C++
rtc_base/sequenced_task_checker_unittest.cc
18165/webrtc
b118d428499844749df6dd28aa3dbc8d5e1484fe
[ "BSD-3-Clause" ]
null
null
null
rtc_base/sequenced_task_checker_unittest.cc
18165/webrtc
b118d428499844749df6dd28aa3dbc8d5e1484fe
[ "BSD-3-Clause" ]
null
null
null
rtc_base/sequenced_task_checker_unittest.cc
18165/webrtc
b118d428499844749df6dd28aa3dbc8d5e1484fe
[ "BSD-3-Clause" ]
null
null
null
/* * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
28.781609
78
0.764776
[ "object" ]
74da78fff66cb40d379454c79f49a9a785fce164
1,923
cpp
C++
misc/set-of-intervals.cpp
hsnavarro/icpc-notebook
5e501ecdd56a2a719d2a3a5e99e09d926d7231a3
[ "MIT" ]
null
null
null
misc/set-of-intervals.cpp
hsnavarro/icpc-notebook
5e501ecdd56a2a719d2a3a5e99e09d926d7231a3
[ "MIT" ]
null
null
null
misc/set-of-intervals.cpp
hsnavarro/icpc-notebook
5e501ecdd56a2a719d2a3a5e99e09d926d7231a3
[ "MIT" ]
null
null
null
// Set of Intervals // Use when you have disjoint intervals #include <bits/stdc++.h> using namespace std; const int N = 2e5 + 5; #define pb push_back #define st first #define nd second typedef pair<int, int> pii; typedef pair<pii, int> piii; int n, m, x, t; set<piii> s; set<pii> mosq; vector<piii...
22.623529
69
0.482059
[ "vector" ]
74dbefa3821dba0ab6ca549b30ede01379577798
2,248
hpp
C++
include/filesystem/serialisation/vector_serialization.hpp
FrancoisSestier/filesystem
ffea5fdeeb788718e6822c3374cfd450208fd193
[ "Unlicense" ]
null
null
null
include/filesystem/serialisation/vector_serialization.hpp
FrancoisSestier/filesystem
ffea5fdeeb788718e6822c3374cfd450208fd193
[ "Unlicense" ]
null
null
null
include/filesystem/serialisation/vector_serialization.hpp
FrancoisSestier/filesystem
ffea5fdeeb788718e6822c3374cfd450208fd193
[ "Unlicense" ]
null
null
null
#pragma once #include <filesystem/serialisation/trivially_copyable.hpp> #include <filesystem/serializable.hpp> #include <fstream> #include <vector> #include <type_traits> namespace fs { namespace details { template <typename T, typename A> inline void write_size(std::ostream& os, std::vector...
31.661972
104
0.572509
[ "vector" ]
74e06d47760364dc35274de54a6d7fc45cb651d8
1,146
cpp
C++
SistemaDeGerenciamentoDeFolha/Gerenciamento.cpp
cans10/Roteiro8
826663d50985adad2b0064725c8d14178e27255d
[ "MIT" ]
null
null
null
SistemaDeGerenciamentoDeFolha/Gerenciamento.cpp
cans10/Roteiro8
826663d50985adad2b0064725c8d14178e27255d
[ "MIT" ]
null
null
null
SistemaDeGerenciamentoDeFolha/Gerenciamento.cpp
cans10/Roteiro8
826663d50985adad2b0064725c8d14178e27255d
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> #include <string> #include "Gerenciamento.h" Gerenciamento::Gerenciamento(double o): orcamento(o){} void Gerenciamento::setFuncionarios(vector<Funcionario*> &func){ funcionario = func; } double Gerenciamento::calcularTotalDaFolha(){ double totalFolha = 0; for(int i ...
23.875
90
0.638743
[ "vector" ]
d55d6ad46c7205e56ae7d589907c71337aeb6fab
5,002
cc
C++
llvm-gcc-4.2-2.9/libstdc++-v3/testsuite/27_io/basic_ios/cons/char/3.cc
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
1
2016-04-09T02:58:13.000Z
2016-04-09T02:58:13.000Z
llvm-gcc-4.2-2.9/libstdc++-v3/testsuite/27_io/basic_ios/cons/char/3.cc
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
llvm-gcc-4.2-2.9/libstdc++-v3/testsuite/27_io/basic_ios/cons/char/3.cc
vidkidz/crossbridge
ba0bf94aee0ce6cf7eb5be882382e52bc57ba396
[ "MIT" ]
null
null
null
// 2001-06-05 Benjamin Kosnik <bkoz@redhat.com> // Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // F...
28.420455
79
0.651739
[ "object" ]
d55da67d348a3b3ee28356017e1a58346cc891d4
6,618
cpp
C++
tests/capi/cell.cpp
jmintser/chemfiles
fb1ed5ee47790cc004468e5484954e2b3d1adff2
[ "BSD-3-Clause" ]
null
null
null
tests/capi/cell.cpp
jmintser/chemfiles
fb1ed5ee47790cc004468e5484954e2b3d1adff2
[ "BSD-3-Clause" ]
null
null
null
tests/capi/cell.cpp
jmintser/chemfiles
fb1ed5ee47790cc004468e5484954e2b3d1adff2
[ "BSD-3-Clause" ]
1
2021-07-19T11:12:52.000Z
2021-07-19T11:12:52.000Z
// Chemfiles, a modern library for chemistry file reading and writing // Copyright (C) Guillaume Fraux and contributors -- BSD license #include "catch.hpp" #include "helpers.hpp" #include "chemfiles.h" #include <cmath> static bool approx_eq(double A[3][3], double B[3][3]) { double eps = 1e-10; return ...
29.283186
112
0.566183
[ "shape", "vector" ]
d566b07a485b4daae2a3d7b65534be3ead57c86d
307
hpp
C++
wrappers/ois/code/custom_to_from_ruby.hpp
cajun-code/ogrerb
7b0ad79b5fa019fd033406149e3153e09c7c9222
[ "MIT" ]
1
2015-11-05T05:09:21.000Z
2015-11-05T05:09:21.000Z
wrappers/ois/code/custom_to_from_ruby.hpp
cajun-code/ogrerb
7b0ad79b5fa019fd033406149e3153e09c7c9222
[ "MIT" ]
null
null
null
wrappers/ois/code/custom_to_from_ruby.hpp
cajun-code/ogrerb
7b0ad79b5fa019fd033406149e3153e09c7c9222
[ "MIT" ]
null
null
null
#ifndef __CUSTOM_TO_RUBY_H__ #define __CUSTOM_TO_RUBY_H__ #include <rice/Object.hpp> #include <rice/Hash.hpp> #include <rice/to_from_ruby.hpp> #include "OIS.h" template<> Rice::Object to_ruby<short int>(short int const & a); template<> OIS::ParamList& from_ruby<OIS::ParamList&>(Rice::Object x); #endif
19.1875
59
0.752443
[ "object" ]
d5697cfd68fd83563189dfcd465a4bd2b9a54805
23,640
cpp
C++
Sources/Elastos/Frameworks/Droid/Base/Services/Server/src/elastos/droid/server/pm/CLauncherAppsImpl.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
7
2017-07-13T10:34:54.000Z
2021-04-16T05:40:35.000Z
Sources/Elastos/Frameworks/Droid/Base/Services/Server/src/elastos/droid/server/pm/CLauncherAppsImpl.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
null
null
null
Sources/Elastos/Frameworks/Droid/Base/Services/Server/src/elastos/droid/server/pm/CLauncherAppsImpl.cpp
jingcao80/Elastos
d0f39852356bdaf3a1234743b86364493a0441bc
[ "Apache-2.0" ]
9
2017-07-13T12:33:20.000Z
2021-06-19T02:46:48.000Z
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ...
34.713656
116
0.636548
[ "object" ]
d56eee86d3390bf70776427f921943bb55c48783
5,958
inl
C++
2007/utils/Atil/Inc/Image.inl
kevinzhwl/ObjectARXCore
ce09e150aa7d87675ca15c9416497c0487e3d4d4
[ "MIT" ]
12
2015-10-05T07:11:57.000Z
2021-11-20T10:22:38.000Z
2007/utils/Atil/Inc/Image.inl
HelloWangQi/ObjectARXCore
ce09e150aa7d87675ca15c9416497c0487e3d4d4
[ "MIT" ]
null
null
null
2007/utils/Atil/Inc/Image.inl
HelloWangQi/ObjectARXCore
ce09e150aa7d87675ca15c9416497c0487e3d4d4
[ "MIT" ]
14
2015-12-04T08:42:08.000Z
2022-01-08T02:09:23.000Z
/////////////////////////////////////////////////////////////////////////////// // // // (C) Copyright 2005-2006 by Autodesk, Inc. All rights reserved. // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that ...
30.553846
108
0.669856
[ "object", "model" ]
d57f93ae5aec654fafad1d1fb2a10408e54aa7bc
48,007
cpp
C++
src/Microsoft.DotNet.Wpf/src/WpfGfx/core/sw/swlib/swrast.cpp
nsivov/wpf
d36941860f05dd7a09008e99d1bcd635b0a69fdb
[ "MIT" ]
2
2020-05-18T17:00:43.000Z
2021-12-01T10:00:29.000Z
src/Microsoft.DotNet.Wpf/src/WpfGfx/core/sw/swlib/swrast.cpp
nsivov/wpf
d36941860f05dd7a09008e99d1bcd635b0a69fdb
[ "MIT" ]
5
2020-05-05T08:05:01.000Z
2021-12-11T21:35:37.000Z
src/Microsoft.DotNet.Wpf/src/WpfGfx/core/sw/swlib/swrast.cpp
nsivov/wpf
d36941860f05dd7a09008e99d1bcd635b0a69fdb
[ "MIT" ]
4
2020-05-04T06:43:25.000Z
2022-02-20T12:02:50.000Z
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //+----------------------------------------------------------------------------- // // // $TAG ENGR // $Mod...
29.326206
145
0.609224
[ "geometry", "render", "object", "shape", "transform", "solid" ]
d57fc3358be854872bbcf5261cf8a99e7fd4c7ac
4,314
cpp
C++
src/Utils/Python/SoluteSolventComplexPython.cpp
qcscine/utilities
493b8db45772b231bc0296535a09905b8e292f77
[ "BSD-3-Clause" ]
null
null
null
src/Utils/Python/SoluteSolventComplexPython.cpp
qcscine/utilities
493b8db45772b231bc0296535a09905b8e292f77
[ "BSD-3-Clause" ]
2
2019-06-19T14:34:38.000Z
2022-03-25T15:07:18.000Z
src/Utils/Python/SoluteSolventComplexPython.cpp
qcscine/utilities
493b8db45772b231bc0296535a09905b8e292f77
[ "BSD-3-Clause" ]
3
2019-06-14T16:44:19.000Z
2020-04-19T20:48:19.000Z
/** * @file * @copyright This code is licensed under the 3-clause BSD license.\n * Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.\n * See LICENSE.txt for details. */ #include <Utils/Solvation/SoluteSolventComplex.h> #include <pybind11/eigen.h> #include <pybind11/pybind1...
63.441176
139
0.658554
[ "vector" ]
d580e361bffe4e89e1c4f96be450490aae963fe4
6,669
cpp
C++
searchlib/src/tests/fef/featureoverride/featureoverride.cpp
Anlon-Burke/vespa
5ecd989b36cc61716bf68f032a3482bf01fab726
[ "Apache-2.0" ]
4,054
2017-08-11T07:58:38.000Z
2022-03-31T22:32:15.000Z
searchlib/src/tests/fef/featureoverride/featureoverride.cpp
Anlon-Burke/vespa
5ecd989b36cc61716bf68f032a3482bf01fab726
[ "Apache-2.0" ]
4,854
2017-08-10T20:19:25.000Z
2022-03-31T19:04:23.000Z
searchlib/src/tests/fef/featureoverride/featureoverride.cpp
Anlon-Burke/vespa
5ecd989b36cc61716bf68f032a3482bf01fab726
[ "Apache-2.0" ]
541
2017-08-10T18:51:18.000Z
2022-03-11T03:18:56.000Z
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/log/log.h> LOG_SETUP("featureoverride_test"); #include <vespa/vespalib/testkit/testapp.h> #include <vespa/searchlib/fef/fef.h> #include <vespa/searchlib/fef/test/indexenvironment.h> #include <vespa/...
38.549133
104
0.603239
[ "vector" ]
d586f0ee115625cce6a11e6949e73118678ed807
22,242
cpp
C++
Common/VirtualDisplay/Document/VirtualDisplay.cpp
testdrive-profiling-master/profiles
6e3854874366530f4e7ae130000000812eda5ff7
[ "BSD-3-Clause" ]
null
null
null
Common/VirtualDisplay/Document/VirtualDisplay.cpp
testdrive-profiling-master/profiles
6e3854874366530f4e7ae130000000812eda5ff7
[ "BSD-3-Clause" ]
null
null
null
Common/VirtualDisplay/Document/VirtualDisplay.cpp
testdrive-profiling-master/profiles
6e3854874366530f4e7ae130000000812eda5ff7
[ "BSD-3-Clause" ]
null
null
null
//================================================================================ // Copyright (c) 2013 ~ 2019. HyungKi Jeong(clonextop@gmail.com) // All rights reserved. // // The 3-Clause BSD License (https://opensource.org/licenses/BSD-3-Clause) // // Redistribution and use in source and binary forms, // with or ...
29.150721
245
0.684201
[ "3d" ]
d5918ac1b6e0566cfd05975ec816612cc7aaf99b
1,898
hpp
C++
algebra/fft.hpp
dendi239/algorithms-data-structures
43db1aa8340f8ef9669bcb26894884f4bc420def
[ "MIT" ]
10
2020-02-02T23:53:04.000Z
2022-02-14T02:55:14.000Z
algebra/fft.hpp
dendi239/algorithms-data-structures
43db1aa8340f8ef9669bcb26894884f4bc420def
[ "MIT" ]
2
2020-09-02T12:27:48.000Z
2021-05-04T00:10:44.000Z
algebra/fft.hpp
dendi239/algorithms-data-structures
43db1aa8340f8ef9669bcb26894884f4bc420def
[ "MIT" ]
1
2020-04-30T23:16:08.000Z
2020-04-30T23:16:08.000Z
#pragma once #include <vector> namespace fft { namespace detail { int reverse(int number, int logs) { int res = 0; for (int log = 0, rev_log = logs - 1; log < logs; ++log, --rev_log) { if (number & (1 << log)) { res |= 1 << rev_log; } } return res; } template <class T> T root(size_t pow); te...
24.025316
77
0.555848
[ "vector" ]
d5920e111d5c146ab01d8affebbd4404cfa77417
446
cpp
C++
C++/test/algorithm/searching/quick_search.cpp
aidan-lane/Algos
59ce4db6d59b4ef05537ea50f921eb3ed369f382
[ "MIT" ]
null
null
null
C++/test/algorithm/searching/quick_search.cpp
aidan-lane/Algos
59ce4db6d59b4ef05537ea50f921eb3ed369f382
[ "MIT" ]
null
null
null
C++/test/algorithm/searching/quick_search.cpp
aidan-lane/Algos
59ce4db6d59b4ef05537ea50f921eb3ed369f382
[ "MIT" ]
null
null
null
#include "third_party/catch.hpp" #include "algorithm/searching/quick_search.hpp" TEST_CASE("Base cases", "[searching][quick_search]") { REQUIRE(quick_search(std::vector<int>(), 0, 0, 0) == -1); REQUIRE(quick_search(std::vector<int>({0, 6, 3, 1, 2}), 3, 0, 5) == 4); REQUIRE(quick_search(std::vector<int>({0,...
49.555556
84
0.596413
[ "vector" ]
d59434cbf81cba62ccc26943c9bd9cc64bf106d4
1,559
cpp
C++
Source/Sample/MeshUtil.cpp
nhamil/oasis-engine
b2d804abc3cb6360188a6890791acc9a24ddb194
[ "MIT" ]
1
2021-01-25T02:27:13.000Z
2021-01-25T02:27:13.000Z
Source/Sample/MeshUtil.cpp
nhamil/oasis
b2d804abc3cb6360188a6890791acc9a24ddb194
[ "MIT" ]
null
null
null
Source/Sample/MeshUtil.cpp
nhamil/oasis
b2d804abc3cb6360188a6890791acc9a24ddb194
[ "MIT" ]
null
null
null
#include "Sample/MeshUtil.h" Mesh* MeshUtil::CreateCube() { float s = 1; float verts[] = { -s, s, -s, -s, s, s, s, s, s, s, s, -s, -s, -s, -s, -s, -s, s, s, -s, s, s, -s, -s, s, -s, -s, s, s, -s, ...
15.135922
46
0.270686
[ "mesh" ]
d594e32a50d8bb2d98dea1ef54478157e4b3c94e
144,384
cpp
C++
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_l2_eth_infra_cfg.cpp
CiscoDevNet/ydk-cpp
ef7d75970f2ef1154100e0f7b0a2ee823609b481
[ "ECL-2.0", "Apache-2.0" ]
17
2016-12-02T05:45:49.000Z
2022-02-10T19:32:54.000Z
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_l2_eth_infra_cfg.cpp
CiscoDevNet/ydk-cpp
ef7d75970f2ef1154100e0f7b0a2ee823609b481
[ "ECL-2.0", "Apache-2.0" ]
2
2017-03-27T15:22:38.000Z
2019-11-05T08:30:16.000Z
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_l2_eth_infra_cfg.cpp
CiscoDevNet/ydk-cpp
ef7d75970f2ef1154100e0f7b0a2ee823609b481
[ "ECL-2.0", "Apache-2.0" ]
11
2016-12-02T05:45:52.000Z
2019-11-07T08:28:17.000Z
#include <sstream> #include <iostream> #include <ydk/entity_util.hpp> #include "bundle_info.hpp" #include "generated_entity_lookup.hpp" #include "Cisco_IOS_XR_l2_eth_infra_cfg.hpp" using namespace ydk; namespace cisco_ios_xr { namespace Cisco_IOS_XR_l2_eth_infra_cfg { EthernetFeatures::EthernetFeatures() : ...
34.295487
492
0.706927
[ "vector" ]
d59a9efb1b1958556970f63572ecff6b40bf07d0
595
hpp
C++
001/myvector.hpp
suomesta/myvector
60a1844976b4d469d8115755f0e404ba6b0e173e
[ "MIT" ]
null
null
null
001/myvector.hpp
suomesta/myvector
60a1844976b4d469d8115755f0e404ba6b0e173e
[ "MIT" ]
null
null
null
001/myvector.hpp
suomesta/myvector
60a1844976b4d469d8115755f0e404ba6b0e173e
[ "MIT" ]
null
null
null
/** * @file myvector.hpp * @brief Implementation of myvector class. * myvector class imitates std::vector. * @author toda * @date 2019-05-06 * @version 0.1.0 * @remark the target is C++11 or more. */ #ifndef INCLUDE_GUARD_MYVECTOR_HPP #define INCLUDE_GUARD_MYVECTOR_HPP /** * @class myvec...
22.884615
77
0.589916
[ "vector" ]
d59ada2077e784fe3543573f00560d3aa7227b08
1,772
cpp
C++
jogo_nave_cpp/uteis.cpp
eduardo-amaro-maciel/C-
fe5bbc126004f77422989ee6174686fdd47f9bf3
[ "MIT" ]
null
null
null
jogo_nave_cpp/uteis.cpp
eduardo-amaro-maciel/C-
fe5bbc126004f77422989ee6174686fdd47f9bf3
[ "MIT" ]
null
null
null
jogo_nave_cpp/uteis.cpp
eduardo-amaro-maciel/C-
fe5bbc126004f77422989ee6174686fdd47f9bf3
[ "MIT" ]
null
null
null
#include <iostream> #include "uteis.h" #include <SDL2/SDL.h> #include <ctime> using namespace std; SDL_Texture* LoadBMP(const char* img, SDL_Renderer* render) { SDL_Surface* backGround = SDL_LoadBMP(img); if (!backGround) { cout << SDL_GetError() << endl;; return nullptr; ...
19.472527
105
0.555869
[ "render" ]
d59b60f05c24ee37b6b1d844de496a30bd4d9d21
1,663
hpp
C++
src/graphics/GraphicsManager.hpp
cstegel/opengl-fireworks
5acc2e2e937cae632bf2cf8074d209ea22d719c8
[ "MIT" ]
1
2017-10-09T06:56:17.000Z
2017-10-09T06:56:17.000Z
src/graphics/GraphicsManager.hpp
cstegel/opengl-fireworks
5acc2e2e937cae632bf2cf8074d209ea22d719c8
[ "MIT" ]
null
null
null
src/graphics/GraphicsManager.hpp
cstegel/opengl-fireworks
5acc2e2e937cae632bf2cf8074d209ea22d719c8
[ "MIT" ]
null
null
null
#pragma once // NO INCLUDES BEFORE THIS SO WE GUARANTEE glew is included before glfw #include <GL/glew.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <Ecs.hh> #include "Common.hpp" #include "graphics/Renderer.hpp" #include "graphics/Model.hpp" #include "graphics/DisplayMode.hpp" #include "graphics/Rende...
22.780822
71
0.748046
[ "model" ]
d5aa6a0cc329a936fab6b19e02a1755136ccf7ff
9,025
cpp
C++
apps/foundation_test/rftype_typetraverser.cpp
max-delta/retrofit-public
5447fd6399fd74ffbb75494c103940751000db12
[ "X11" ]
3
2019-10-27T22:32:44.000Z
2020-05-21T04:00:46.000Z
apps/foundation_test/rftype_typetraverser.cpp
max-delta/retrofit-public
5447fd6399fd74ffbb75494c103940751000db12
[ "X11" ]
null
null
null
apps/foundation_test/rftype_typetraverser.cpp
max-delta/retrofit-public
5447fd6399fd74ffbb75494c103940751000db12
[ "X11" ]
null
null
null
#include "stdafx.h" // TODO: Remove dependency on Example.h, and move these tests to core tests #include "RFType/Example.h" #include "core_rftype/TypeTraverser.h" #include "rftl/unordered_set" namespace RF::rftype { /////////////////////////////////////////////////////////////////////////////// void EnsureAllFunc...
24.066667
150
0.735512
[ "vector" ]
d5b78c21229554fab88f31f13ae2556fd8299408
4,238
cpp
C++
Linux/Samples/TestPattern/VideoFrame3D.cpp
EncovGroup/DecklinkSDK
61a2fff5e54720a2acdae4afbf78818cf7cbd269
[ "BSL-1.0" ]
1
2019-06-19T02:02:07.000Z
2019-06-19T02:02:07.000Z
Linux/Samples/TestPattern/VideoFrame3D.cpp
EncovGroup/DecklinkSDK
61a2fff5e54720a2acdae4afbf78818cf7cbd269
[ "BSL-1.0" ]
null
null
null
Linux/Samples/TestPattern/VideoFrame3D.cpp
EncovGroup/DecklinkSDK
61a2fff5e54720a2acdae4afbf78818cf7cbd269
[ "BSL-1.0" ]
null
null
null
/* -LICENSE-START- ** Copyright (c) 2013 Blackmagic Design ** ** Permission is hereby granted, free of charge, to any person or organization ** obtaining a copy of the software and accompanying documentation covered by ** this license (the "Software") to use, reproduce, display, distribute, ** execute, and transmit the...
26
89
0.767579
[ "object" ]
d5bb737f733f18573f0dd46f3c4307dbabddfbaa
47,927
cpp
C++
signin.cpp
RivuletSonata/BankSystem
ac2227d9a22a0c44c6b93fab8d178443bd31ba84
[ "MIT" ]
null
null
null
signin.cpp
RivuletSonata/BankSystem
ac2227d9a22a0c44c6b93fab8d178443bd31ba84
[ "MIT" ]
null
null
null
signin.cpp
RivuletSonata/BankSystem
ac2227d9a22a0c44c6b93fab8d178443bd31ba84
[ "MIT" ]
2
2019-06-28T05:22:43.000Z
2019-06-28T08:30:51.000Z
#include <bits/stdc++.h> #include <windows.h> #include <cstdio> #include "signin.h" #include <conio.h> #include <time.h> #include "bank.h" #include "BankPersonnel.hpp" #include "uitool.h" using namespace std; void SignIn::Init_Signin_UI(){ //界面 system("cls"); for (int i = 1; i <= 35; ++i){ setCurso...
29.5117
90
0.395977
[ "vector" ]
d5bdcc83cd6977f73c336d540d4a6de3d561f5db
16,456
cpp
C++
src/gui/brush.cpp
strandfield/yasl
d109eb3166184febfe48d1a2d1c96683c4a813f7
[ "MIT" ]
1
2020-12-28T01:41:35.000Z
2020-12-28T01:41:35.000Z
src/gui/brush.cpp
strandfield/yasl
d109eb3166184febfe48d1a2d1c96683c4a813f7
[ "MIT" ]
null
null
null
src/gui/brush.cpp
strandfield/yasl
d109eb3166184febfe48d1a2d1c96683c4a813f7
[ "MIT" ]
null
null
null
// Copyright (C) 2018 Vincent Chambrin // This file is part of the Yasl project // For conditions of distribution and use, see copyright notice in LICENSE #include "yasl/gui/brush.h" #include "yasl/common/binding/class.h" #include "yasl/common/binding/default_arguments.h" #include "yasl/common/binding/namespace.h" #i...
49.122388
147
0.748602
[ "transform" ]
d5c3ddc656ceadff13091a87ff613b640703254f
170,551
cc
C++
Source/Compiler/CompilationVisitor.cc
fuzziqersoftware/nemesys
ee6cc8e1fd804b5cfaa94a79e295770cadec8204
[ "MIT" ]
9
2018-02-05T06:52:02.000Z
2022-03-27T18:26:14.000Z
Source/Compiler/CompilationVisitor.cc
fuzziqersoftware/nemesys
ee6cc8e1fd804b5cfaa94a79e295770cadec8204
[ "MIT" ]
1
2021-05-17T16:53:12.000Z
2021-05-31T11:19:28.000Z
Source/Compiler/CompilationVisitor.cc
fuzziqersoftware/nemesys
ee6cc8e1fd804b5cfaa94a79e295770cadec8204
[ "MIT" ]
3
2018-02-06T17:24:34.000Z
2021-11-16T17:20:28.000Z
#include "CompilationVisitor.hh" #include <inttypes.h> #include <math.h> #include <stdlib.h> #include <stdio.h> #include <phosg/Filesystem.hh> #include <phosg/Strings.hh> #include <libamd64/AMD64Assembler.hh> #include "../Debug.hh" #include "../AST/PythonLexer.hh" #include "../AST/PythonParser.hh" #include "../AST/P...
39.515987
145
0.689272
[ "object", "vector" ]
d5dd13ace27ecf5abbbfdf587c40b7925c8709a2
3,934
cpp
C++
Samples/Server/Directx-Multithreaded/MultiDeviceContextDXUTMesh.cpp
HoeniS/PoC-3DStreaming
143e56bfb1ad1f4cc4c83d09ec277905ecebc98e
[ "MIT" ]
224
2018-07-13T19:14:12.000Z
2022-03-23T23:54:44.000Z
Samples/Server/Directx-Multithreaded/MultiDeviceContextDXUTMesh.cpp
HoeniS/PoC-3DStreaming
143e56bfb1ad1f4cc4c83d09ec277905ecebc98e
[ "MIT" ]
193
2017-07-17T16:48:04.000Z
2018-06-12T12:53:03.000Z
Samples/Server/Directx-Multithreaded/MultiDeviceContextDXUTMesh.cpp
HoeniS/PoC-3DStreaming
143e56bfb1ad1f4cc4c83d09ec277905ecebc98e
[ "MIT" ]
70
2018-07-10T08:04:49.000Z
2022-03-21T07:02:44.000Z
//-------------------------------------------------------------------------------------- // File: MultiDeviceContextDXUTMesh.cpp // // Extended implementation of DXUT Mesh for M/T rendering // // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------...
36.766355
101
0.466192
[ "mesh", "render" ]
d5de04fe69480cbd39241fa7d9809692354c0bce
17,852
cpp
C++
src/r3d_scene.cpp
ProjectAsura/sample_pt3
5696c22e0f476fb6ea8a3d8a8052e97f838740e3
[ "MIT" ]
null
null
null
src/r3d_scene.cpp
ProjectAsura/sample_pt3
5696c22e0f476fb6ea8a3d8a8052e97f838740e3
[ "MIT" ]
null
null
null
src/r3d_scene.cpp
ProjectAsura/sample_pt3
5696c22e0f476fb6ea8a3d8a8052e97f838740e3
[ "MIT" ]
null
null
null
//------------------------------------------------------------------------------------------------- // File : r3d_scene.cpp // Desc : Scene. // Copyright(c) Project Asura. All right reserved. //------------------------------------------------------------------------------------------------- //------------------...
26.684604
118
0.479274
[ "mesh", "shape", "vector" ]
d5df62199762b42d0882df623ed9305a3235605b
8,553
cpp
C++
src/qt/src/3rdparty/webkit/Source/WebCore/svg/SVGMaskElement.cpp
ant0ine/phantomjs
8114d44a28134b765ab26b7e13ce31594fa81253
[ "BSD-3-Clause" ]
46
2015-01-08T14:32:34.000Z
2022-02-05T16:48:26.000Z
src/qt/src/3rdparty/webkit/Source/WebCore/svg/SVGMaskElement.cpp
ant0ine/phantomjs
8114d44a28134b765ab26b7e13ce31594fa81253
[ "BSD-3-Clause" ]
7
2015-01-20T14:28:12.000Z
2017-01-18T17:21:44.000Z
src/qt/src/3rdparty/webkit/Source/WebCore/svg/SVGMaskElement.cpp
ant0ine/phantomjs
8114d44a28134b765ab26b7e13ce31594fa81253
[ "BSD-3-Clause" ]
14
2015-10-27T06:17:48.000Z
2020-03-03T06:15:50.000Z
/* * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org> * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> * Copyright (C) Research In Motion Limited 2009-2010. All rig...
39.96729
134
0.717175
[ "object" ]
d5e2869a482eb6a7e80824b61fd250aa91386d92
21,525
cc
C++
packager/media/event/hls_notify_muxer_listener_unittest.cc
s3bubble/shaka-packager
77721fce857742744df7d118b651c6937dc90608
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1,288
2016-05-25T01:20:31.000Z
2022-03-02T23:56:56.000Z
packager/media/event/hls_notify_muxer_listener_unittest.cc
s3bubble/shaka-packager
77721fce857742744df7d118b651c6937dc90608
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
894
2016-05-17T00:39:30.000Z
2022-03-02T18:46:21.000Z
packager/media/event/hls_notify_muxer_listener_unittest.cc
s3bubble/shaka-packager
77721fce857742744df7d118b651c6937dc90608
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
400
2016-05-25T01:20:35.000Z
2022-03-03T02:12:00.000Z
// Copyright 2016 Google Inc. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd #include <gmock/gmock.h> #include <gtest/gtest.h> #include "packager/hls/base/hls_notifier.h" #in...
41
80
0.706945
[ "vector" ]
d5e4e1588f884d42c9d4bc7946e56cb01b4c51bf
13,570
hpp
C++
10 - Shunting Yard/ShuntingYard/shunting_yard.hpp
CrimsonCrow/yt-challenges
5e4282fde046875221f82791511263b83cc3e257
[ "W3C" ]
11
2020-10-17T07:50:26.000Z
2022-03-20T10:29:53.000Z
10 - Shunting Yard/ShuntingYard/shunting_yard.hpp
CrimsonCrow/yt-challenges
5e4282fde046875221f82791511263b83cc3e257
[ "W3C" ]
9
2020-10-06T18:41:40.000Z
2021-11-17T11:10:54.000Z
10 - Shunting Yard/ShuntingYard/shunting_yard.hpp
CrimsonCrow/yt-challenges
5e4282fde046875221f82791511263b83cc3e257
[ "W3C" ]
22
2020-05-10T03:51:10.000Z
2022-03-09T17:30:16.000Z
#ifndef SHUNTING_YARD #define SHUNTING_YARD #include <vector> #include <string> #include <map> #include <stack> #include <cmath> namespace ShuntingYard { /* Typedefs */ // RPN list typedef std::vector<std::string> RPN; // callback to unary function (1 argument) typedef double(*UnaryFuncEval)(double x); //...
23.6
102
0.61577
[ "object", "vector" ]
d5e6cfc4b5ca270c84d83fec95babbb401aebf6b
2,347
cpp
C++
zadania/zad1/main.cpp
Kavaldrin/adv
8fd4f3b8829b68030b1481c5460231528a7b9a2c
[ "MIT" ]
null
null
null
zadania/zad1/main.cpp
Kavaldrin/adv
8fd4f3b8829b68030b1481c5460231528a7b9a2c
[ "MIT" ]
null
null
null
zadania/zad1/main.cpp
Kavaldrin/adv
8fd4f3b8829b68030b1481c5460231528a7b9a2c
[ "MIT" ]
null
null
null
/* Zadanie zeby przyswoic sobie skladnie z przenoszeniem Prosze zaimplementowac klase MyObject -glosny konstruktor kopiujacy -glosny konstruktor przenoszacy -glosny operator przypisania -glosny przenoszacy operator przypisania Adresy z mojego outputu powinny byc analogiczne... Pliku main nie mozna edytowac. */ #i...
26.977011
90
0.684278
[ "object" ]
d5ec9f5c384260e3bf5785a4220123f24510fb70
2,275
hpp
C++
libs/common/cloneable.hpp
truongnmt/iroha
e9b969df9a0eb6ce62eae3ab62c5c3f046a5e6e1
[ "Apache-2.0" ]
1
2021-12-03T02:01:43.000Z
2021-12-03T02:01:43.000Z
libs/common/cloneable.hpp
truongnmt/iroha
e9b969df9a0eb6ce62eae3ab62c5c3f046a5e6e1
[ "Apache-2.0" ]
2
2020-07-07T19:31:15.000Z
2021-06-01T22:29:48.000Z
libs/common/cloneable.hpp
truongnmt/iroha
e9b969df9a0eb6ce62eae3ab62c5c3f046a5e6e1
[ "Apache-2.0" ]
1
2021-12-03T02:00:05.000Z
2021-12-03T02:00:05.000Z
/** * Copyright Soramitsu Co., Ltd. 2018 All Rights Reserved. * http://soramitsu.co.jp * * 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/LICENS...
24.202128
75
0.67956
[ "object" ]
d5ed2d04b355a5293ae1e52db06e64c4f04850d8
1,634
cpp
C++
LeetCode/Algorithms/Medium/DesignCircularQueue.cpp
roshan11160/Competitive-Programming-Solutions
2d9cfe901c23a2b7344c410b7368eb02f7fa6e7e
[ "MIT" ]
40
2020-07-25T19:35:37.000Z
2022-01-28T02:57:02.000Z
LeetCode/Algorithms/Medium/DesignCircularQueue.cpp
afrozchakure/Hackerrank-Problem-Solutions
014155d841e08cb1f7609c23335576dc9b29cef3
[ "MIT" ]
160
2021-04-26T19:04:15.000Z
2022-03-26T20:18:37.000Z
LeetCode/Algorithms/Medium/DesignCircularQueue.cpp
afrozchakure/Hackerrank-Problem-Solutions
014155d841e08cb1f7609c23335576dc9b29cef3
[ "MIT" ]
24
2020-05-03T08:11:53.000Z
2021-10-04T03:23:20.000Z
class MyCircularQueue { public: int front, rear, size, capacity; vector<int> queue; MyCircularQueue(int k) { queue = vector<int>(k, 0); front = 0; rear = -1; size = 0; capacity = k; } bool enQueue(int value) { if (!isFull()) { ...
18.781609
71
0.439412
[ "object", "vector" ]
d5ef77d7b0231f3dd57797235eea09168441993a
24,880
cpp
C++
src/core/operation/TermVirtualList.cpp
SRCH2/srch2-ngn
925f36971aa6a8b31cdc59f7992790169e97ee00
[ "BSD-3-Clause" ]
14
2016-01-15T20:26:54.000Z
2018-11-26T20:47:43.000Z
src/core/operation/TermVirtualList.cpp
SRCH2/srch2-ngn
925f36971aa6a8b31cdc59f7992790169e97ee00
[ "BSD-3-Clause" ]
2
2016-04-26T05:29:01.000Z
2016-05-07T00:13:38.000Z
src/core/operation/TermVirtualList.cpp
SRCH2/srch2-ngn
925f36971aa6a8b31cdc59f7992790169e97ee00
[ "BSD-3-Clause" ]
7
2016-02-27T11:35:59.000Z
2018-11-26T20:47:59.000Z
/* * Copyright (c) 2016, SRCH2 * 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 of conditions ...
48.030888
154
0.634325
[ "vector" ]
d5f358de462cda09b30fe04eac05826b8bf73c05
3,272
cpp
C++
examples/glfw/src/example_4_particle_emiters.cpp
filipwasil/fillwave
65f5eeebf8ca4a8ce2d25293874b051c2a4c0550
[ "MIT" ]
27
2015-09-26T23:29:48.000Z
2021-03-06T08:54:46.000Z
examples/glfw/src/example_4_particle_emiters.cpp
filipwasil/fillwave
65f5eeebf8ca4a8ce2d25293874b051c2a4c0550
[ "MIT" ]
83
2015-09-28T22:20:16.000Z
2018-05-16T13:25:28.000Z
examples/glfw/src/example_4_particle_emiters.cpp
filipwasil/fillwave
65f5eeebf8ca4a8ce2d25293874b051c2a4c0550
[ "MIT" ]
8
2015-11-03T22:29:29.000Z
2018-11-17T08:49:07.000Z
#include "example_4_particle_emiters.h" using namespace flw; using namespace flw::flf; using namespace flw::flc; using namespace flw::flc; WaterEmiter::WaterEmiter() : EmiterPointCPU(ContextGLFW::mGraphics, 0.3, 60000.0, glm::vec4(0.1, 0.1, 1.0, 1.0), ...
31.161905
81
0.441626
[ "render" ]
d5f4ad8d050570bf3e3aaca4ebea5c418ef72554
16,227
cpp
C++
src/misc.cpp
MoochMcGee/SuperPC
e23e5d5d6ea50addcb9c46006f3e161f9c1abf96
[ "BSD-3-Clause" ]
9
2015-04-20T21:10:05.000Z
2020-01-11T22:43:49.000Z
src/misc.cpp
qeeg/SuperPC
e23e5d5d6ea50addcb9c46006f3e161f9c1abf96
[ "BSD-3-Clause" ]
1
2016-10-02T17:27:36.000Z
2016-10-04T18:26:34.000Z
src/misc.cpp
qeeg/SuperPC
e23e5d5d6ea50addcb9c46006f3e161f9c1abf96
[ "BSD-3-Clause" ]
2
2016-10-02T09:40:46.000Z
2017-03-27T02:14:41.000Z
#include <cstdio> #include "misc.h" #include "cpu.h" namespace IO_XT { std::vector<iohandler> handlers; u8 rb(u16 addr) { int i; for(i = 0; i<handlers.size(); i++) { if(addr>=handlers[i].start && addr<=handlers[i].end && handlers[i].rb != NULL) return handlers[i].rb(addr-handlers[i].s...
22.228767
147
0.383127
[ "vector" ]
d5fa5c008fe10f5573a6181ca90866858f3b09ec
9,842
cpp
C++
Universal-Physics-mod/src/gui/search/SearchController.cpp
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
1
2022-03-26T20:01:13.000Z
2022-03-26T20:01:13.000Z
Universal-Physics-mod/src/gui/search/SearchController.cpp
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
null
null
null
Universal-Physics-mod/src/gui/search/SearchController.cpp
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
1
2022-03-26T19:59:13.000Z
2022-03-26T19:59:13.000Z
#include "SearchController.h" #include "SearchModel.h" #include "SearchView.h" #include "gui/dialogues/ConfirmPrompt.h" #include "gui/preview/PreviewController.h" #include "gui/preview/PreviewView.h" #include "tasks/Task.h" #include "tasks/TaskWindow.h" #include "Platform.h" #include "Controller.h" #include "graph...
25.043257
142
0.687665
[ "vector" ]
d5fd722ac090fed0f9d5a693bc505f6a9a40332c
92,815
cpp
C++
qcom-caf/display/sdm/libs/core/drm/hw_device_drm.cpp
nubia-rom-team/android_device_nubia_NX651J
a55ec3e131a4ebeb2c973f4abc982584464d79f8
[ "Apache-2.0" ]
1
2022-02-11T10:31:53.000Z
2022-02-11T10:31:53.000Z
qcom-caf/display/sdm/libs/core/drm/hw_device_drm.cpp
nubia-rom-team/android_device_nubia_NX651J
a55ec3e131a4ebeb2c973f4abc982584464d79f8
[ "Apache-2.0" ]
null
null
null
qcom-caf/display/sdm/libs/core/drm/hw_device_drm.cpp
nubia-rom-team/android_device_nubia_NX651J
a55ec3e131a4ebeb2c973f4abc982584464d79f8
[ "Apache-2.0" ]
3
2021-08-17T19:04:22.000Z
2021-11-11T11:06:10.000Z
/* * Copyright (c) 2017-2020, The Linux Foundation. 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...
38.576475
100
0.702602
[ "object", "vector", "transform", "solid" ]
9100e4d16aa0f40107cd7d716a659b2bdeae86d9
4,544
cpp
C++
csp.cpp
ZerglingOne/CSP
7bfe2b04bb5471c7c44f0d0d848a4f1b6af952ec
[ "MIT" ]
null
null
null
csp.cpp
ZerglingOne/CSP
7bfe2b04bb5471c7c44f0d0d848a4f1b6af952ec
[ "MIT" ]
null
null
null
csp.cpp
ZerglingOne/CSP
7bfe2b04bb5471c7c44f0d0d848a4f1b6af952ec
[ "MIT" ]
null
null
null
#include "csp.h" bool constraint1(string sum, string num1, string num2)//the length of the sum cannot exceed more than +1 of the operands { int longer; if(num1.size() > num2.size()) longer = num1.size(); else longer = num2.size(); if((sum.size() - longer) == 0 || (sum.size() - longer) == 1) r...
24.967033
120
0.577465
[ "vector" ]
91042ef1ac69246b885b7f9c7f1c1db5e9f798b3
15,705
cc
C++
aria2/src/DownloadCommand.cc
dingdayu/aria2
7e5edc5c1de8b880b20c2d22dabce08558d9e2f6
[ "Apache-2.0" ]
null
null
null
aria2/src/DownloadCommand.cc
dingdayu/aria2
7e5edc5c1de8b880b20c2d22dabce08558d9e2f6
[ "Apache-2.0" ]
null
null
null
aria2/src/DownloadCommand.cc
dingdayu/aria2
7e5edc5c1de8b880b20c2d22dabce08558d9e2f6
[ "Apache-2.0" ]
null
null
null
/* <!-- copyright */ /* * aria2 - The high speed download utility * * Copyright (C) 2006 Tatsuhiro Tsujikawa * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Lice...
36.779859
80
0.649284
[ "object", "transform" ]
9107ec20e4cd6da49b9aeb135bd7c27017e16d05
7,612
cc
C++
chrome/browser/toolbar_model.cc
zachlatta/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
1
2021-09-24T22:49:10.000Z
2021-09-24T22:49:10.000Z
chrome/browser/toolbar_model.cc
changbai1980/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
null
null
null
chrome/browser/toolbar_model.cc
changbai1980/chromium
c4625eefca763df86471d798ee5a4a054b4716ae
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2006-2008 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/toolbar_model.h" #include "app/l10n_util.h" #include "chrome/browser/cert_store.h" #include "chrome/browser/profile.h" ...
34.6
80
0.676957
[ "vector" ]
510d29d44fb3036c42b5aabb06b7890997369600
3,678
cpp
C++
Templates/BasicChebyshev/src/main.cpp
Huaguiyuan/TBTK
fc4382395ed0eaae32c236b914dd4e888e21bfc3
[ "Apache-2.0" ]
null
null
null
Templates/BasicChebyshev/src/main.cpp
Huaguiyuan/TBTK
fc4382395ed0eaae32c236b914dd4e888e21bfc3
[ "Apache-2.0" ]
null
null
null
Templates/BasicChebyshev/src/main.cpp
Huaguiyuan/TBTK
fc4382395ed0eaae32c236b914dd4e888e21bfc3
[ "Apache-2.0" ]
1
2019-12-08T01:21:49.000Z
2019-12-08T01:21:49.000Z
/* Copyright 2016 Kristofer Björnson * * 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...
29.66129
79
0.705275
[ "model" ]
510dbf625dfa58c49e12d27e670eaa9ac0e00b25
4,581
cpp
C++
sources/System/Lobby/ResumeLobbySystem.cpp
EternalRat/Bomberman
d4d0c6dea61f7de1e71c6f182a6bf27407092356
[ "MIT" ]
6
2021-05-27T13:31:37.000Z
2021-11-21T17:35:08.000Z
sources/System/Lobby/ResumeLobbySystem.cpp
EternalRat/Bomberman
d4d0c6dea61f7de1e71c6f182a6bf27407092356
[ "MIT" ]
174
2021-05-12T14:10:04.000Z
2021-06-26T11:29:39.000Z
sources/System/Lobby/ResumeLobbySystem.cpp
EternalRat/Bomberman
d4d0c6dea61f7de1e71c6f182a6bf27407092356
[ "MIT" ]
2
2021-05-27T13:28:46.000Z
2021-06-21T12:25:27.000Z
// // Created by Zoe Roux on 6/11/21. // #include "System/Event/EventSystem.hpp" #include "Component/Renderer/Drawable2DComponent.hpp" #include "System/Lobby/ResumeLobbySystem.hpp" #include "Component/Controllable/ControllableComponent.hpp" #include "Component/Speed/SpeedComponent.hpp" #include "System/MenuControllabl...
38.822034
150
0.719712
[ "model" ]
5113524011919ca0954b09f5c02709465130122a
4,106
cpp
C++
src/MapleFE/autogen/src/operator_gen.cpp
venshine/OpenArkCompiler
264cd4463834356658154f0d254672ef559f245f
[ "MulanPSL-1.0" ]
2
2019-09-06T07:02:41.000Z
2019-09-09T12:24:46.000Z
src/MapleFE/autogen/src/operator_gen.cpp
venshine/OpenArkCompiler
264cd4463834356658154f0d254672ef559f245f
[ "MulanPSL-1.0" ]
null
null
null
src/MapleFE/autogen/src/operator_gen.cpp
venshine/OpenArkCompiler
264cd4463834356658154f0d254672ef559f245f
[ "MulanPSL-1.0" ]
null
null
null
/* * Copyright (C) [2020] Futurewei Technologies, Inc. All rights reverved. * * OpenArkFE is licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS...
28.713287
87
0.560156
[ "vector" ]
51154914fc617eded8b218a6f3851d43baddc233
1,034
hh
C++
extern/typed-geometry/src/typed-geometry/functions/matrix/compose.hh
rovedit/Fort-Candle
445fb94852df56c279c71b95c820500e7fb33cf7
[ "MIT" ]
null
null
null
extern/typed-geometry/src/typed-geometry/functions/matrix/compose.hh
rovedit/Fort-Candle
445fb94852df56c279c71b95c820500e7fb33cf7
[ "MIT" ]
null
null
null
extern/typed-geometry/src/typed-geometry/functions/matrix/compose.hh
rovedit/Fort-Candle
445fb94852df56c279c71b95c820500e7fb33cf7
[ "MIT" ]
null
null
null
#pragma once #include <typed-geometry/detail/operators.hh> #include <typed-geometry/functions/basic/scalar_math.hh> #include <typed-geometry/types/mat.hh> #include <typed-geometry/types/quat.hh> #include <typed-geometry/types/size.hh> #include <typed-geometry/types/vec.hh> namespace tg { template <class T> constexpr ...
31.333333
130
0.630561
[ "geometry" ]
513bf3ca78cdbc5a15ca97bcad99bb9237ab06b7
3,939
cpp
C++
src/Application.cpp
darsto/spooky
f1d43e63137bb9179ec76683df5ee51669d35815
[ "MIT" ]
7
2016-05-03T15:58:49.000Z
2018-12-16T15:50:44.000Z
src/Application.cpp
darsto/spookytom
f1d43e63137bb9179ec76683df5ee51669d35815
[ "MIT" ]
11
2016-08-14T10:56:52.000Z
2020-09-29T13:32:35.000Z
src/Application.cpp
darsto/spookytom
f1d43e63137bb9179ec76683df5ee51669d35815
[ "MIT" ]
3
2016-06-28T23:37:21.000Z
2019-10-01T14:15:32.000Z
/* * Copyright (c) 2017 Dariusz Stojaczyk. All Rights Reserved. * The following source code is released under an MIT-style license, * that can be found in the LICENSE file. */ #include <cmath> #include "Application.h" #include "util/os.h" #include "util/log.h" #include "window/Window.h" #ifndef SIMULATION #defin...
26.614865
77
0.582889
[ "render" ]
51488e0cb2a484ba8c016a2cf0cb2d6ba30b1a82
4,617
cpp
C++
mps_voxels/src/mps_voxels/logging/log_cv_mat.cpp
UM-ARM-Lab/multihypothesis_segmentation_tracking
801d460afbf028100374c880bc684187ec8b909f
[ "MIT" ]
3
2020-10-31T21:42:36.000Z
2021-12-16T12:56:02.000Z
mps_voxels/src/mps_voxels/logging/log_cv_mat.cpp
UM-ARM-Lab/multihypothesis_segmentation_tracking
801d460afbf028100374c880bc684187ec8b909f
[ "MIT" ]
1
2020-11-11T03:46:08.000Z
2020-11-11T03:46:08.000Z
mps_voxels/src/mps_voxels/logging/log_cv_mat.cpp
UM-ARM-Lab/multihypothesis_segmentation_tracking
801d460afbf028100374c880bc684187ec8b909f
[ "MIT" ]
1
2022-03-02T12:32:21.000Z
2022-03-02T12:32:21.000Z
/* * Copyright (c) 2020 Andrew Price * 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 conditi...
30.78
136
0.749404
[ "vector" ]
514b37d29403fe67b597e09874134ac80ff14cdd
14,875
cpp
C++
src/sphere.cpp
tengtonggan/PBRT-Learning
6a4e01b768b4d215023c51befe2f6e753d080f30
[ "Apache-2.0" ]
null
null
null
src/sphere.cpp
tengtonggan/PBRT-Learning
6a4e01b768b4d215023c51befe2f6e753d080f30
[ "Apache-2.0" ]
null
null
null
src/sphere.cpp
tengtonggan/PBRT-Learning
6a4e01b768b4d215023c51befe2f6e753d080f30
[ "Apache-2.0" ]
null
null
null
#include "sphere.h" #include "onb.h" bool sphere::hit(const ray& r, double t_min, double t_max, hit_record& rec) const { Vector3f oc = r.origin() - center; auto a = r.direction().LengthSquared(); auto half_b = Dot(oc, r.direction()); auto c = oc.LengthSquared() - radius * radius; auto discriminant...
38.939791
106
0.565916
[ "object", "shape", "transform", "solid" ]
514c17014b6c078df37c439ecfc14a5b1f6bc38a
573
hpp
C++
include/components/Component.hpp
dknb0709/MandelbrotExploler
5df64d0ac4d63712c2321e41aafdb07c72156c67
[ "MIT" ]
null
null
null
include/components/Component.hpp
dknb0709/MandelbrotExploler
5df64d0ac4d63712c2321e41aafdb07c72156c67
[ "MIT" ]
null
null
null
include/components/Component.hpp
dknb0709/MandelbrotExploler
5df64d0ac4d63712c2321e41aafdb07c72156c67
[ "MIT" ]
null
null
null
#pragma once #include <array> #include <initializer_list> #include <unordered_map> #include <vector> #include "../events/Event.hpp" #include "../shared/AppConstants.hpp" #include "../events/EventHandler.hpp" #include "../events/MouseEvent.hpp" #include "../events/KeyBoardEvent.hpp" struct Component { EventHandler ...
26.045455
69
0.727749
[ "render", "vector" ]
514faa0b7fb22fe85e89fd3437a63b78ef304e2d
3,269
cc
C++
stapl_release/test/containers/heap/cm_heap.cc
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
stapl_release/test/containers/heap/cm_heap.cc
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
stapl_release/test/containers/heap/cm_heap.cc
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
/* // Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a // component of the Texas A&M University System. // All rights reserved. // The information and source code contained herein is the exclusive // property of TEES and may not be disclosed, examined or reproduced // in whole or in part withou...
26.795082
74
0.657693
[ "vector" ]
514fd39ad71380497e1bed6e5b4bd0e672456150
88,387
cpp
C++
tests/generated/world/SceneValidInputRangeTests.cpp
tier4/ad-rss-lib
7634fd6f040e33e176d5be83638a74b29f5a012b
[ "BSD-3-Clause" ]
1
2019-07-20T02:10:53.000Z
2019-07-20T02:10:53.000Z
tests/generated/world/SceneValidInputRangeTests.cpp
ANTi7kZ/ad-rss-lib
7634fd6f040e33e176d5be83638a74b29f5a012b
[ "BSD-3-Clause" ]
null
null
null
tests/generated/world/SceneValidInputRangeTests.cpp
ANTi7kZ/ad-rss-lib
7634fd6f040e33e176d5be83638a74b29f5a012b
[ "BSD-3-Clause" ]
1
2021-02-25T01:02:15.000Z
2021-02-25T01:02:15.000Z
/* * ----------------- BEGIN LICENSE BLOCK --------------------------------- * * Copyright (c) 2018-2019 Intel Corporation * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code mu...
69.43205
115
0.82804
[ "object" ]
51532056b09a1be7dcf4e4416bb560deaaaac35c
7,004
cpp
C++
engines/interpolantmc.cpp
yoni206/pono
0b8223bfff70932555aa3eda12e2ee3ca04a0462
[ "BSD-3-Clause" ]
null
null
null
engines/interpolantmc.cpp
yoni206/pono
0b8223bfff70932555aa3eda12e2ee3ca04a0462
[ "BSD-3-Clause" ]
null
null
null
engines/interpolantmc.cpp
yoni206/pono
0b8223bfff70932555aa3eda12e2ee3ca04a0462
[ "BSD-3-Clause" ]
null
null
null
/********************* */ /*! \file ** \verbatim ** Top contributors (to current version): ** Makai Mann, Ahmed Irfan ** This file is part of the pono project. ** Copyright (c) 2019 by the authors listed in the file AUTHORS ** in the top-level source direct...
27.359375
80
0.63992
[ "model" ]
516a348e7ee78be92afc35850cf0c5a2c2f967ec
44,310
cpp
C++
libsplit/src/Driver.cpp
phuchant/libsplitcl
4688bd9ab8c3b60c7848eab73519e44cb083cbbc
[ "MIT" ]
null
null
null
libsplit/src/Driver.cpp
phuchant/libsplitcl
4688bd9ab8c3b60c7848eab73519e44cb083cbbc
[ "MIT" ]
null
null
null
libsplit/src/Driver.cpp
phuchant/libsplitcl
4688bd9ab8c3b60c7848eab73519e44cb083cbbc
[ "MIT" ]
null
null
null
#include <Queue/DeviceQueue.h> #include <Queue/Event.h> #include <Scheduler/Scheduler.h> #include <Scheduler/SchedulerBadBroyden.h> #include <Scheduler/SchedulerBroyden.h> #include <Scheduler/SchedulerEnv.h> #include <Scheduler/SchedulerFixedPoint.h> #include <Scheduler/SchedulerMKGR.h> #include <Scheduler/SchedulerMKG...
30.349315
94
0.633085
[ "vector" ]
516bf4a10fbe066683204bb819e69a20d667388d
9,548
hpp
C++
mcu/cortex-m0/CortexM0Cpu.hpp
fgr1986/fused
2443cf92390914060b074d12e9226f5358e3899b
[ "Apache-2.0" ]
9
2020-04-25T13:37:31.000Z
2021-02-27T08:36:12.000Z
mcu/cortex-m0/CortexM0Cpu.hpp
fgr1986/fused
2443cf92390914060b074d12e9226f5358e3899b
[ "Apache-2.0" ]
null
null
null
mcu/cortex-m0/CortexM0Cpu.hpp
fgr1986/fused
2443cf92390914060b074d12e9226f5358e3899b
[ "Apache-2.0" ]
5
2021-01-20T23:08:23.000Z
2021-11-18T04:39:32.000Z
/* * Copyright (c) 2019-2020, University of Southampton and Contributors. * All rights reserved. * * SPDX-License-Identifier: Apache-2.0 */ #pragma once #include "mcu/ClockSourceIf.hpp" #include "ps/PowerModelChannelIf.hpp" #include <deque> #include <systemc> #include <tlm> #include <unordered_set> extern "C" {...
29.469136
80
0.661709
[ "model" ]
516c241d444000bbe53b979b7af78afcd53488e0
2,354
cpp
C++
src/tsppd/solver/ap/ap_atsppd_solver.cpp
ryanjoneil/tsppd
f0e1e5e867e13c8fa0dcddf4d2ffa2aae7f46da4
[ "AFL-1.1" ]
4
2018-03-30T20:58:57.000Z
2018-04-25T01:48:09.000Z
src/tsppd/solver/ap/ap_atsppd_solver.cpp
ryanjoneil/tsppd
f0e1e5e867e13c8fa0dcddf4d2ffa2aae7f46da4
[ "AFL-1.1" ]
7
2019-04-21T13:42:09.000Z
2019-05-09T15:49:56.000Z
src/tsppd/solver/ap/ap_atsppd_solver.cpp
ryanjoneil/tsppd-hybrid
f0e1e5e867e13c8fa0dcddf4d2ffa2aae7f46da4
[ "AFL-1.1" ]
1
2020-03-01T16:19:18.000Z
2020-03-01T16:19:18.000Z
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the tsppd program and library for solving */ /* Traveling Salesman Problems with Pickup and Delivery. tsppd requires */ ...
38.590164
79
0.52124
[ "model" ]