hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
int64
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
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
int64
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
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
330k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
0.99
author_id
stringlengths
2
40
5c1b13fd33222f4ff7d70d41b41663f966b6fc5f
13,116
cpp
C++
external/webkit/Source/WebKit/haiku/WebCoreSupport/EditorClientHaiku.cpp
ghsecuritylab/android_platform_sony_nicki
526381be7808e5202d7865aa10303cb5d249388a
[ "Apache-2.0" ]
6
2017-05-31T01:46:45.000Z
2018-06-12T10:53:30.000Z
Source/WebKit/haiku/WebCoreSupport/EditorClientHaiku.cpp
FMSoftCN/mdolphin-core
48ffdcf587a48a7bb4345ae469a45c5b64ffad0e
[ "Apache-2.0" ]
2
2017-07-25T09:37:22.000Z
2017-08-04T07:18:56.000Z
Source/WebKit/haiku/WebCoreSupport/EditorClientHaiku.cpp
FMSoftCN/mdolphin-core
48ffdcf587a48a7bb4345ae469a45c5b64ffad0e
[ "Apache-2.0" ]
2
2017-07-17T06:02:42.000Z
2018-09-19T10:08:38.000Z
/* * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> * Copyright (C) 2006 Zack Rusin <zack@kde.org> * Copyright (C) 2006 Apple Computer, Inc. * Copyright (C) 2007 Ryan Leavengood <leavengood@gmail.com> * Copyright (C) 2007 Andrea Anzani <andrea.anzani@gmail.com> * * All rights reserved. * * Redistri...
26.822086
136
0.613297
ghsecuritylab
5c1da5d7f606deff5526d3c4f211ae9c2a98a046
538
cpp
C++
DirectX2D11/Scenes/InventoryScene.cpp
GyumLee/DirectX2D11
7a92946241ad177c7efac5609e831bc7f0b06908
[ "Apache-2.0" ]
null
null
null
DirectX2D11/Scenes/InventoryScene.cpp
GyumLee/DirectX2D11
7a92946241ad177c7efac5609e831bc7f0b06908
[ "Apache-2.0" ]
null
null
null
DirectX2D11/Scenes/InventoryScene.cpp
GyumLee/DirectX2D11
7a92946241ad177c7efac5609e831bc7f0b06908
[ "Apache-2.0" ]
null
null
null
#include "Framework.h" #include "InventoryScene.h" InventoryScene::InventoryScene() { DataManager::Get(); store = new Store(); store->position = { 300, CENTER_Y }; inventory = new Inventory(); inventory->position = { WIN_WIDTH - 300, CENTER_Y }; store->SetInventory(inventory); } InventoryScene::~InventorySce...
14.944444
53
0.693309
GyumLee
5c1fb7246869c750492824498d53553256be88d5
563
cpp
C++
Geeks4Geeks/G4G-Solutions/check_if_number_is_fibonacci.cpp
vijay-jaisankar/Competetive_programming
860c165ce42337a7380112938b14772e6a553647
[ "MIT" ]
null
null
null
Geeks4Geeks/G4G-Solutions/check_if_number_is_fibonacci.cpp
vijay-jaisankar/Competetive_programming
860c165ce42337a7380112938b14772e6a553647
[ "MIT" ]
null
null
null
Geeks4Geeks/G4G-Solutions/check_if_number_is_fibonacci.cpp
vijay-jaisankar/Competetive_programming
860c165ce42337a7380112938b14772e6a553647
[ "MIT" ]
null
null
null
// https://practice.geeksforgeeks.org/problems/check-if-the-number-is-fibonacci/0 #include <iostream> using namespace std; #include<math.h> bool isPerfectSquare(long long int n) { long long int x = sqrt(n); return x*x == n; } bool isFibonacci(long long int n) { return isPerfectSquare(5*n*n+4)||isPerfect...
15.216216
81
0.582593
vijay-jaisankar
5c216f477cb3ad99dc478dfcbbad74e1315ee792
706
cpp
C++
cpp/io_manip_get_money.cpp
rpuntaie/c-examples
385b3c792e5b39f81a187870100ed6401520a404
[ "MIT" ]
null
null
null
cpp/io_manip_get_money.cpp
rpuntaie/c-examples
385b3c792e5b39f81a187870100ed6401520a404
[ "MIT" ]
null
null
null
cpp/io_manip_get_money.cpp
rpuntaie/c-examples
385b3c792e5b39f81a187870100ed6401520a404
[ "MIT" ]
null
null
null
/* g++ --std=c++20 -pthread -o ../_build/cpp/io_manip_get_money.exe ./cpp/io_manip_get_money.cpp && (cd ../_build/cpp/;./io_manip_get_money.exe) https://en.cppreference.com/w/cpp/io/manip/get_money */ #include <iostream> #include <sstream> #include <locale> #include <iomanip> int main() { std::istringstream in("$1,...
29.416667
141
0.565156
rpuntaie
5c22b0ad1c6992b1b6d8d1fa26834687bb0ec9dd
1,079
hpp
C++
third_party/boost/simd/function/if_plus.hpp
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
6
2018-02-25T22:23:33.000Z
2021-01-15T15:13:12.000Z
third_party/boost/simd/function/if_plus.hpp
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
null
null
null
third_party/boost/simd/function/if_plus.hpp
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
7
2017-12-12T12:36:31.000Z
2020-02-10T14:27:07.000Z
//================================================================================================== /*! @file @copyright 2016 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ //=========================...
25.093023
100
0.586654
SylvainCorlay
5c23acfe6cdd06e964103fcc92b31afe6fd1dcf6
2,194
cpp
C++
muse_mcl_2d_gridmaps/src/providers/probability_gridmap_provider.cpp
doge-of-the-day/muse_mcl_2d
4cb53120e78780ccc7a7a62d40278fd075d2a54d
[ "BSD-3-Clause" ]
4
2019-06-01T14:08:29.000Z
2019-11-07T02:01:53.000Z
muse_mcl_2d_gridmaps/src/providers/probability_gridmap_provider.cpp
cogsys-tuebingen/muse_mcl_2d
dc053c61208a6ec740b70cea81aaf3c466c1c3b4
[ "BSD-3-Clause" ]
null
null
null
muse_mcl_2d_gridmaps/src/providers/probability_gridmap_provider.cpp
cogsys-tuebingen/muse_mcl_2d
dc053c61208a6ec740b70cea81aaf3c466c1c3b4
[ "BSD-3-Clause" ]
6
2019-03-04T01:46:02.000Z
2020-09-30T01:58:22.000Z
#include "probability_gridmap_provider.h" #include <cslibs_gridmaps/static_maps/conversion/convert_probability_gridmap.hpp> #include <class_loader/register_macro.hpp> CLASS_LOADER_REGISTER_CLASS(muse_mcl_2d_gridmaps::ProbabilityGridmapProvider, muse_mcl_2d::MapProvider2D) namespace muse_mcl_2d_gridmaps { std::shared...
37.827586
123
0.602097
doge-of-the-day
5c2caa7f897b98ff33bda0eab6cdb5aeefdc7df6
2,229
cpp
C++
Pod/Classes/algorithms/complex/polartocartesian.cpp
jbloit/iosEssentia
785ba29e8178942b396575dd3872bdf3d5d63cd5
[ "MIT" ]
null
null
null
Pod/Classes/algorithms/complex/polartocartesian.cpp
jbloit/iosEssentia
785ba29e8178942b396575dd3872bdf3d5d63cd5
[ "MIT" ]
null
null
null
Pod/Classes/algorithms/complex/polartocartesian.cpp
jbloit/iosEssentia
785ba29e8178942b396575dd3872bdf3d5d63cd5
[ "MIT" ]
null
null
null
/* * Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra * * This file is part of Essentia * * Essentia is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation (FSF), either version...
38.431034
172
0.694033
jbloit
5c343f7247d275db8a68a40f2235e05dcff4da59
2,598
hpp
C++
include/SLESCXX/impl/csl_effect_send_itf.hpp
h6ah4i/openslescxx
cb7545bf04ddc66a97f95f71a998743b3daf00c6
[ "Apache-2.0" ]
1
2015-10-04T18:54:46.000Z
2015-10-04T18:54:46.000Z
include/SLESCXX/impl/csl_effect_send_itf.hpp
h6ah4i/openslescxx
cb7545bf04ddc66a97f95f71a998743b3daf00c6
[ "Apache-2.0" ]
1
2015-02-13T11:18:45.000Z
2015-02-13T12:06:15.000Z
include/SLESCXX/impl/csl_effect_send_itf.hpp
h6ah4i/openslescxx
cb7545bf04ddc66a97f95f71a998743b3daf00c6
[ "Apache-2.0" ]
null
null
null
// // Copyright (C) 2014 Haruki Hasegawa // // 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 ap...
31.301205
105
0.686682
h6ah4i
5c36d75338d3fa5fe5738b6666f61d60d21c00cc
6,791
cxx
C++
main/chart2/source/tools/LineProperties.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/chart2/source/tools/LineProperties.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/chart2/source/tools/LineProperties.cxx
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...
37.938547
114
0.611103
Grosskopf
5c37288b92b93be83773d600d5162b18b4b3f6fd
2,012
hpp
C++
include/Sirius/Renderer/Utils/VertexArray.hpp
xam4lor/Sirius
f05a89538ab2bc79a8d46f482fbb060271adce0a
[ "MIT" ]
null
null
null
include/Sirius/Renderer/Utils/VertexArray.hpp
xam4lor/Sirius
f05a89538ab2bc79a8d46f482fbb060271adce0a
[ "MIT" ]
null
null
null
include/Sirius/Renderer/Utils/VertexArray.hpp
xam4lor/Sirius
f05a89538ab2bc79a8d46f482fbb060271adce0a
[ "MIT" ]
null
null
null
#pragma once #include "srspch.hpp" #include "Buffer.hpp" namespace Sirius { ///////////////////////////////////////// /// @brief Vertex array abstraction class class VertexArray { private: std::vector<Ref<VertexBuffer>> vertexBuffers; Ref<IndexBuffer> indexBuffer; ...
32.983607
100
0.430915
xam4lor
5c3741577ba3958b20f6d8ef0ede177b1294626c
3,343
cpp
C++
lovela/StandardCDeclarations.cpp
florgard/lovela
cf5dc270c91c642ffbb4f5fed110c3862a1310b2
[ "MIT" ]
null
null
null
lovela/StandardCDeclarations.cpp
florgard/lovela
cf5dc270c91c642ffbb4f5fed110c3862a1310b2
[ "MIT" ]
null
null
null
lovela/StandardCDeclarations.cpp
florgard/lovela
cf5dc270c91c642ffbb4f5fed110c3862a1310b2
[ "MIT" ]
null
null
null
import CodeGenerator.Cpp; import Utility; import <string>; import <string_view>; import <vector>; import <map>; import <algorithm>; void StandardCDeclarations::GetHeader(std::vector<std::wstring>& headers, std::wstring_view function) { // TODO: Add more if needed, these are extracted from https://www.tutorialspoint.c...
24.580882
114
0.521089
florgard
5c37b0446ed312f5a6cb68a9b052a6f613d958bc
10,611
cpp
C++
DGEngine.core.modules/src/Parser/Utils/ParseUtilsVal.cpp
dgcor/DGEngine-Modules
02bd3dab724b8d634b8054cbf079ca4f27a7a8dc
[ "Zlib" ]
1
2021-08-19T10:24:40.000Z
2021-08-19T10:24:40.000Z
DGEngine.core.modules/src/Parser/Utils/ParseUtilsVal.cpp
dgcor/DGEngine-Modules
02bd3dab724b8d634b8054cbf079ca4f27a7a8dc
[ "Zlib" ]
null
null
null
DGEngine.core.modules/src/Parser/Utils/ParseUtilsVal.cpp
dgcor/DGEngine-Modules
02bd3dab724b8d634b8054cbf079ca4f27a7a8dc
[ "Zlib" ]
1
2021-08-19T10:24:47.000Z
2021-08-19T10:24:47.000Z
module dgengine.parser.utils.val; import dgengine.gameutils; import dgengine.json.utils; import dgengine.parser.utils; import dgengine.parser.predicate; import dgengine.sfml.utils; import dgengine.utils.utils; namespace Parser { using namespace rapidjson; Anchor getAnchorVal(const Value& elem, Anchor val) { if ...
20.288719
81
0.613703
dgcor
5c3a0cfbdecdda3118aa601d0a9c9a757f3d2656
4,595
cxx
C++
main/stoc/source/registry_tdprovider/structtypedescription.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/stoc/source/registry_tdprovider/structtypedescription.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/stoc/source/registry_tdprovider/structtypedescription.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
33.786765
80
0.667247
Grosskopf
5c3b630dacaa098dda0a50cffad9679d2c93e5ff
2,147
cpp
C++
src/phidgets_encoder_node.cpp
umigv/phidgets_encoder
7021372bda7fd0ef92d2ce26e88a79d1ecf542b5
[ "BSD-3-Clause" ]
null
null
null
src/phidgets_encoder_node.cpp
umigv/phidgets_encoder
7021372bda7fd0ef92d2ce26e88a79d1ecf542b5
[ "BSD-3-Clause" ]
null
null
null
src/phidgets_encoder_node.cpp
umigv/phidgets_encoder
7021372bda7fd0ef92d2ce26e88a79d1ecf542b5
[ "BSD-3-Clause" ]
null
null
null
#include "encoder_state_publisher.h" // umigv::EncoderStatePublisher #include <ros/ros.h> #include <sensor_msgs/JointState.h> #include <umigv_utilities/types.hpp> #include <umigv_utilities/utility.hpp> // umigv::blocking_shutdown #include <umigv_utilities/exceptions.hpp> // umigv::ParameterNotFoundException, ...
29.819444
79
0.699115
umigv
5c3beb73aac2e40501e16c4420a17e20c6cf62ad
838
cc
C++
chrome/browser/ui/webui/chromeos/login/testapi/oobe_test_api_handler.cc
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
575
2015-06-18T23:58:20.000Z
2022-03-23T09:32:39.000Z
chrome/browser/ui/webui/chromeos/login/testapi/oobe_test_api_handler.cc
Ron423c/chromium
2edf7b980065b648f8b2a6e52193d83832fe36b7
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
chrome/browser/ui/webui/chromeos/login/testapi/oobe_test_api_handler.cc
DamieFC/chromium
54ce2d3c77723697efd22cfdb02aea38f9dfa25c
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
52
2015-07-14T10:40:50.000Z
2022-03-15T01:11:49.000Z
// Copyright (c) 2012 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/ui/webui/chromeos/login/testapi/oobe_test_api_handler.h" #include "build/branding_buildflags.h" namespace chromeos { OobeT...
29.928571
81
0.789976
Ron423c
5c3c464a9aefb3bf628c945d3e8f768d34772d7d
3,999
hpp
C++
third_party/omr/compiler/z/codegen/Instruction.hpp
xiacijie/omr-wala-linkage
a1aff7aef9ed131a45555451abde4615a04412c1
[ "Apache-2.0" ]
null
null
null
third_party/omr/compiler/z/codegen/Instruction.hpp
xiacijie/omr-wala-linkage
a1aff7aef9ed131a45555451abde4615a04412c1
[ "Apache-2.0" ]
null
null
null
third_party/omr/compiler/z/codegen/Instruction.hpp
xiacijie/omr-wala-linkage
a1aff7aef9ed131a45555451abde4615a04412c1
[ "Apache-2.0" ]
null
null
null
/******************************************************************************* * Copyright (c) 2000, 2018 IBM Corp. and others * * This program and the accompanying materials are made available under * the terms of the Eclipse Public License 2.0 which accompanies this * distribution and is available at http://ec...
41.65625
151
0.574394
xiacijie
5c4384220dacca3b2d630c0a5ee775a4263a67cc
2,158
cpp
C++
game/server/entities/CRotDoor.cpp
xalalau/HLEnhanced
f108222ab7d303c9ed5a8e81269f9e949508e78e
[ "Unlicense" ]
83
2016-06-10T20:49:23.000Z
2022-02-13T18:05:11.000Z
game/server/entities/CRotDoor.cpp
xalalau/HLEnhanced
f108222ab7d303c9ed5a8e81269f9e949508e78e
[ "Unlicense" ]
26
2016-06-16T22:27:24.000Z
2019-04-30T19:25:51.000Z
game/server/entities/CRotDoor.cpp
xalalau/HLEnhanced
f108222ab7d303c9ed5a8e81269f9e949508e78e
[ "Unlicense" ]
58
2016-06-10T23:52:33.000Z
2021-12-30T02:30:50.000Z
/*** * * Copyright (c) 1996-2001, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * Use, distribution, and modification of this source code and/or resulting * object ...
25.690476
87
0.715477
xalalau
5c43b3a30db5a49e1c5d73ba8a2816eb6d76c908
494
hpp
C++
Structural-patterns/2_Bridge/src/devices/idevice.hpp
PP189B/Design-patterns-practice
3fd7f9a3fa85dcf1e48680662d9bc3ac41796b69
[ "MIT" ]
null
null
null
Structural-patterns/2_Bridge/src/devices/idevice.hpp
PP189B/Design-patterns-practice
3fd7f9a3fa85dcf1e48680662d9bc3ac41796b69
[ "MIT" ]
null
null
null
Structural-patterns/2_Bridge/src/devices/idevice.hpp
PP189B/Design-patterns-practice
3fd7f9a3fa85dcf1e48680662d9bc3ac41796b69
[ "MIT" ]
null
null
null
#pragma once #include <inttypes.h> namespace Devices { class IDevice { public: virtual uint8_t getVolume() const = 0; virtual void setVolume(uint8_t vol) = 0; virtual uint16_t getChannel() const = 0; virtual void setChannel(uint16_t vol) = 0; virtual bool isEnabled()...
19.76
51
0.603239
PP189B
5c501833e4e70936c6829d2e4ec55f4b48de41ee
1,703
cpp
C++
VisualGraph/src/GraphEditScene.cpp
IKholopov/StudyingStuff
8e5d9b98431fcc439d246d499963c33c729d5474
[ "MIT" ]
null
null
null
VisualGraph/src/GraphEditScene.cpp
IKholopov/StudyingStuff
8e5d9b98431fcc439d246d499963c33c729d5474
[ "MIT" ]
null
null
null
VisualGraph/src/GraphEditScene.cpp
IKholopov/StudyingStuff
8e5d9b98431fcc439d246d499963c33c729d5474
[ "MIT" ]
null
null
null
#include "GraphEditScene.h" #include <type_traits> #include <assert.h> GraphEditScene::GraphEditScene(EditGraphToolBar toolbar, GraphEditArea* parent):GraphScene((QObject*)parent) { this->graph_ = new VisualGraph(this, (GraphArea*)parent); this->toolbar_ = toolbar; toolbar.setTool(EditGraphTools::None); ...
23.985915
108
0.704639
IKholopov
5c507bf1513cf7b489e97c05a561aaca8d628f9c
1,893
cpp
C++
src/bind/solution/route.cpp
jonathf/pyvroom
7f7c755c763ddc416455ea8c5168b53ae1477084
[ "BSD-2-Clause" ]
13
2021-12-28T13:04:45.000Z
2022-01-06T22:05:51.000Z
src/bind/solution/route.cpp
VROOM-Project/pyvroom
7f7c755c763ddc416455ea8c5168b53ae1477084
[ "BSD-2-Clause" ]
26
2022-01-06T09:36:45.000Z
2022-03-26T11:43:14.000Z
src/bind/solution/route.cpp
VROOM-Project/pyvroom
7f7c755c763ddc416455ea8c5168b53ae1477084
[ "BSD-2-Clause" ]
4
2022-01-06T14:34:56.000Z
2022-03-29T11:53:48.000Z
#include <pybind11/pybind11.h> #include "structures/vroom/solution/route.cpp" namespace py = pybind11; void init_route(py::module_ &m) { py::class_<vroom::Route>(m, "Route") .def(py::init<>()) .def(py::init([](vroom::Id vehicle, std::vector<vroom::Step> &steps, vroom::Cost cost,...
47.325
80
0.595351
jonathf
5c50dce2443a9053281dd7695465bf0d579c8493
2,687
cc
C++
StRoot/StSpinPool/StFmsTriggerMaker/fms_fm102_2012_a.cc
xiaohaijin/RHIC-STAR
a305cb0a6ac15c8165bd8f0d074d7075d5e58752
[ "MIT" ]
2
2018-12-24T19:37:00.000Z
2022-02-28T06:57:20.000Z
StRoot/StSpinPool/StFmsTriggerMaker/fms_fm102_2012_a.cc
xiaohaijin/RHIC-STAR
a305cb0a6ac15c8165bd8f0d074d7075d5e58752
[ "MIT" ]
null
null
null
StRoot/StSpinPool/StFmsTriggerMaker/fms_fm102_2012_a.cc
xiaohaijin/RHIC-STAR
a305cb0a6ac15c8165bd8f0d074d7075d5e58752
[ "MIT" ]
null
null
null
// // Pibero Djawotho <pibero@tamu.edu> // Texas A&M University // 9 Feb 2012 // #include "bits.hh" #include "fms_fm102_2012_a.hh" void fms_fm102_2012_a(Board& fm102, int t){ int* channels = (int*)fm102.channels[t]; // Board sum thresholds const int R0 = fm102.registers[0]; // FMSlarge-cluster-th0 const int ...
29.855556
88
0.590994
xiaohaijin
5c53117894c8f1399bc373c93d0646f99374e7bf
373
cc
C++
so4/error.cc
ivantishchenko/OpenMP-CUDA
3184383025c82da7bf075f8444aa1ba846542384
[ "Apache-2.0" ]
null
null
null
so4/error.cc
ivantishchenko/OpenMP-CUDA
3184383025c82da7bf075f8444aa1ba846542384
[ "Apache-2.0" ]
null
null
null
so4/error.cc
ivantishchenko/OpenMP-CUDA
3184383025c82da7bf075f8444aa1ba846542384
[ "Apache-2.0" ]
null
null
null
#include "error.h" #include <iostream> [[noreturn]] void error(const std::string& msg) { std::cerr << msg; if (!msg.empty() && msg.back() != '\n') { std::cerr << '\n'; } std::cerr << std::flush; std::exit(EXIT_FAILURE); } [[noreturn]] void error(const char* filename, const std::string& msg...
20.722222
58
0.557641
ivantishchenko
5c55793468f9611684a35f81d5a4f982b1a61e12
1,326
cpp
C++
Engine/Source/Runtime/MovieSceneTracks/Private/Tracks/MovieSceneMaterialParameterCollectionTrack.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
1
2022-01-29T18:36:12.000Z
2022-01-29T18:36:12.000Z
Engine/Source/Runtime/MovieSceneTracks/Private/Tracks/MovieSceneMaterialParameterCollectionTrack.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
null
null
null
Engine/Source/Runtime/MovieSceneTracks/Private/Tracks/MovieSceneMaterialParameterCollectionTrack.cpp
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
null
null
null
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "Tracks/MovieSceneMaterialParameterCollectionTrack.h" #include "Materials/MaterialParameterCollection.h" #include "Evaluation/MovieSceneMaterialParameterCollectionTemplate.h" #define LOCTEXT_NAMESPACE "MovieSceneMaterialParameterCollectionTrack" U...
35.837838
153
0.856712
windystrife
5c55c3b008d46ab61ab635e68909a600d393232c
758
cpp
C++
Leetcode/Binary_Search/sqrtx.cpp
susantabiswas/competitive_coding
49163ecdc81b68f5c1bd90988cc0dfac34ad5a31
[ "MIT" ]
2
2021-04-29T14:44:17.000Z
2021-10-01T17:33:22.000Z
Leetcode/Binary_Search/sqrtx.cpp
adibyte95/competitive_coding
a6f084d71644606c21840875bad78d99f678a89d
[ "MIT" ]
null
null
null
Leetcode/Binary_Search/sqrtx.cpp
adibyte95/competitive_coding
a6f084d71644606c21840875bad78d99f678a89d
[ "MIT" ]
1
2021-10-01T17:33:29.000Z
2021-10-01T17:33:29.000Z
/* https://leetcode.com/problems/sqrtx/submissions/ We use binary search for this. We set the lower limit as 0 and upper limit as n/2. n/2 ensures that the range covers all possible candidates for sq root, since sq root is m * m, so n/2 * n/2 > n and hence covers all. TC: O(logn) */ class...
24.451613
91
0.477573
susantabiswas
5c56db2f73a99cfda90716d8a216c0b741dfae5f
1,982
hpp
C++
receiver/adi.hpp
JCYang/ya_uftp
b6a6dac7969371583c76ad90ef5ebf0c4ae66bdf
[ "BSL-1.0" ]
null
null
null
receiver/adi.hpp
JCYang/ya_uftp
b6a6dac7969371583c76ad90ef5ebf0c4ae66bdf
[ "BSL-1.0" ]
null
null
null
receiver/adi.hpp
JCYang/ya_uftp
b6a6dac7969371583c76ad90ef5ebf0c4ae66bdf
[ "BSL-1.0" ]
null
null
null
#pragma once #ifndef YA_UFTP_RECEIVER_ADI_HPP_ #define YA_UFTP_RECEIVER_ADI_HPP_ #include "api_binder.hpp" #include "boost/asio.hpp" namespace ya_uftp{ namespace receiver{ namespace task{ enum class initiate_result{ already_monitoring, just_started, failed_max_tasks_monitoring }; enum stat...
28.314286
99
0.642785
JCYang
5c5909a0f3f444b73a584bec90102ebd0ed4410a
2,453
cpp
C++
4. Brown/3 Week/8. Arithmetic expression 2/main.cpp
freeraisor/yandexcplusplus
9708fdb6cd7e039672ebc2e77f131fbc7a765750
[ "MIT" ]
14
2019-08-29T12:34:07.000Z
2022-03-09T13:31:18.000Z
4. Brown/3 Week/8. Arithmetic expression 2/main.cpp
freeraisor/yandexcplusplus
9708fdb6cd7e039672ebc2e77f131fbc7a765750
[ "MIT" ]
null
null
null
4. Brown/3 Week/8. Arithmetic expression 2/main.cpp
freeraisor/yandexcplusplus
9708fdb6cd7e039672ebc2e77f131fbc7a765750
[ "MIT" ]
8
2020-09-10T11:40:03.000Z
2022-03-24T00:34:38.000Z
#include "Common.h" #include "../../../MyUtils/MyTestFramework/TestFramework.h" #include <sstream> using namespace std; string Print(const Expression* e) { if (!e) { return "Null expression provided"; } stringstream output; output << e->ToString() << " = " << e->Evaluate(); return output.str(); } names...
28.195402
108
0.622095
freeraisor
5c5ad90202e57f7f4315361e7a89f1e30522e2df
5,016
cc
C++
src/client_manager.cc
nojhan/kakoune
c8156429c4685189e0a6b7bd0f273dc64432db2c
[ "Unlicense" ]
null
null
null
src/client_manager.cc
nojhan/kakoune
c8156429c4685189e0a6b7bd0f273dc64432db2c
[ "Unlicense" ]
null
null
null
src/client_manager.cc
nojhan/kakoune
c8156429c4685189e0a6b7bd0f273dc64432db2c
[ "Unlicense" ]
null
null
null
#include "client_manager.hh" #include "buffer_manager.hh" #include "color_registry.hh" #include "command_manager.hh" #include "event_manager.hh" #include "file.hh" #include "user_interface.hh" #include "window.hh" namespace Kakoune { ClientManager::ClientManager() = default; ClientManager::~ClientManager() = default...
29.505882
134
0.578549
nojhan
5c5df0215f8892a2533906cd33b513c9b75b1f60
1,640
cpp
C++
Gfg/C++/Maximum_Index.cpp
abdzitter/Daily-Coding-DS-ALGO-Practice
26ddbf7a3673608039a07d26d812fce31b69871a
[ "MIT" ]
289
2021-05-15T22:56:03.000Z
2022-03-28T23:13:25.000Z
Gfg/C++/Maximum_Index.cpp
abdzitter/Daily-Coding-DS-ALGO-Practice
26ddbf7a3673608039a07d26d812fce31b69871a
[ "MIT" ]
1,812
2021-05-09T13:49:58.000Z
2022-01-15T19:27:17.000Z
Gfg/C++/Maximum_Index.cpp
abdzitter/Daily-Coding-DS-ALGO-Practice
26ddbf7a3673608039a07d26d812fce31b69871a
[ "MIT" ]
663
2021-05-09T16:57:58.000Z
2022-03-27T14:15:07.000Z
//Maximum Index Solution in C++ /* Problem Stament: Given an array A[] of N positive integers. The task is to find the maximum of j - i subjected to the constraint of A[i] <= A[j]. Approach: Run two loops. In the outer loop, pick elements one by one from the left. In the inner loop, compare the picked element wi...
17.634409
72
0.582317
abdzitter
5c6046bdf8d9756fe06c5e103bcc3792ca9c0d76
4,884
cpp
C++
src/wledctrl/wledctrl.cpp
Pliskin707/WLED_Trigger_ESP01
8ae8dfa9a0cab1ba4eea677ee5de725acd74289c
[ "MIT" ]
null
null
null
src/wledctrl/wledctrl.cpp
Pliskin707/WLED_Trigger_ESP01
8ae8dfa9a0cab1ba4eea677ee5de725acd74289c
[ "MIT" ]
null
null
null
src/wledctrl/wledctrl.cpp
Pliskin707/WLED_Trigger_ESP01
8ae8dfa9a0cab1ba4eea677ee5de725acd74289c
[ "MIT" ]
null
null
null
#include "wledctrl.hpp" namespace wledTrigger { enum LorOverrideType {off, untilLiveEnds, untilReboot}; wledControl::wledControl (const IPAddress &WLEDIP) { this->_url = "http://" + WLEDIP.toString() + "/json"; this->_initFilter(this->_filter); } wledControl::wledControl(const char * const WLEDIP) { this...
25.570681
129
0.525594
Pliskin707
5c66d915f1f87f0fe5271979b08f763d6a54e03c
1,895
cpp
C++
3DEngine/Math/Vector2.cpp
EricDDK/3DEngineEEE
cf7832e69ba03111d54093b1f797eaabab3455e1
[ "MIT" ]
5
2019-07-23T03:21:04.000Z
2020-08-28T09:09:08.000Z
3DEngine/Math/Vector2.cpp
EricDDK/3DEngineEEE
cf7832e69ba03111d54093b1f797eaabab3455e1
[ "MIT" ]
null
null
null
3DEngine/Math/Vector2.cpp
EricDDK/3DEngineEEE
cf7832e69ba03111d54093b1f797eaabab3455e1
[ "MIT" ]
3
2019-07-25T01:36:02.000Z
2020-02-15T08:11:19.000Z
#include "Math/Vector2.h" #include <cmath> #include "MathCommon.h" ENGINE_NAMESPACE_START Vector2::Vector2() { x = 0.0f; y = 0.0f; } Vector2::~Vector2() { } Vector2::Vector2(float tX, float tY) { x = tX; y = tY; } Vector2::Vector2(const Vector2& v) { set(v); } Vector2 Vector2::operator=(const Vector2& v) { ...
13.439716
62
0.605805
EricDDK
5c67372d7b5d998a9a48a0cad154c5510025ef95
2,168
cpp
C++
game/server/entities/CRotButton.cpp
sohl-modders/SOHLEnhanced
71358d28bf65ba600f268368d2e4521c4158da72
[ "Unlicense" ]
null
null
null
game/server/entities/CRotButton.cpp
sohl-modders/SOHLEnhanced
71358d28bf65ba600f268368d2e4521c4158da72
[ "Unlicense" ]
null
null
null
game/server/entities/CRotButton.cpp
sohl-modders/SOHLEnhanced
71358d28bf65ba600f268368d2e4521c4158da72
[ "Unlicense" ]
null
null
null
/*** * * Copyright (c) 1996-2001, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * Use, distribution, and modification of this source code and/or resulting * object ...
26.765432
113
0.678967
sohl-modders
5c6771d33b11742d5414ffafb7cfdd1bafafec0c
1,653
cpp
C++
labs/lab02/testFileReader.cpp
jay3ss/fluffy-octo-engine
12fe84cb6208e648ed7ce0784c93413efaedae51
[ "MIT" ]
null
null
null
labs/lab02/testFileReader.cpp
jay3ss/fluffy-octo-engine
12fe84cb6208e648ed7ce0784c93413efaedae51
[ "MIT" ]
null
null
null
labs/lab02/testFileReader.cpp
jay3ss/fluffy-octo-engine
12fe84cb6208e648ed7ce0784c93413efaedae51
[ "MIT" ]
null
null
null
#include <iostream> #include <string> #include "FileReader.h" using namespace std; // Function prototype /** Opens a file */ void openFile(FileReader &reader, string fileName); int main() { FileReader filereader; cout << "+------------------------------+\n" << "| Testing the FileReader class |\n" ...
25.828125
78
0.526316
jay3ss
5c68011175074c0e9916e1a3ab779d390de9447d
7,715
cc
C++
internal/dynamic_depth/imaging_model.cc
khadas/android_external_dynamic_depth
82589497aa60f574ef747e82935fd6f3cad8109a
[ "Apache-2.0" ]
null
null
null
internal/dynamic_depth/imaging_model.cc
khadas/android_external_dynamic_depth
82589497aa60f574ef747e82935fd6f3cad8109a
[ "Apache-2.0" ]
null
null
null
internal/dynamic_depth/imaging_model.cc
khadas/android_external_dynamic_depth
82589497aa60f574ef747e82935fd6f3cad8109a
[ "Apache-2.0" ]
null
null
null
#include "dynamic_depth/imaging_model.h" #include <math.h> #include "android-base/logging.h" #include "dynamic_depth/const.h" #include "strings/numbers.h" #include "xmpmeta/base64.h" namespace dynamic_depth { namespace { using ::dynamic_depth::xmpmeta::EncodeFloatArrayBase64; using ::dynamic_depth::xmpmeta::xml::De...
34.909502
80
0.670253
khadas
5c687d6802fd46de7aba340671ede5ff3cbb43b2
2,520
cpp
C++
src/main.cpp
juliantorreno/opengl-demo
c199c487907833e52ff5c3083aed51956e6ac693
[ "MIT" ]
2
2018-01-06T19:27:07.000Z
2018-10-11T07:07:10.000Z
src/main.cpp
jtorreno/opengl-demo
c199c487907833e52ff5c3083aed51956e6ac693
[ "MIT" ]
8
2018-01-03T13:45:25.000Z
2018-01-08T01:35:49.000Z
src/main.cpp
juliantorreno/opengl-demo
c199c487907833e52ff5c3083aed51956e6ac693
[ "MIT" ]
null
null
null
#include "camera.hpp" #include "glsl_program.hpp" #include "renderer.hpp" #include "shader.hpp" #include "model.hpp" #include "texture.hpp" #include "window.hpp" #include <GLFW/glfw3.h> struct point { double x, y; }; point operator-(point const& lhs, point const& rhs) { return { lhs.x - rhs.x, lhs.y - rhs.y }; }...
33.157895
164
0.649603
juliantorreno
5c6c257448085fc22f4e3cf3a52bb5c83797adc3
6,380
cpp
C++
copasi/utilities/CCopasiMethod.cpp
bmoreau/COPASI
d0bbec8947b1266ffd2b0ecf2566da7cf2c3e5ba
[ "Artistic-2.0" ]
null
null
null
copasi/utilities/CCopasiMethod.cpp
bmoreau/COPASI
d0bbec8947b1266ffd2b0ecf2566da7cf2c3e5ba
[ "Artistic-2.0" ]
null
null
null
copasi/utilities/CCopasiMethod.cpp
bmoreau/COPASI
d0bbec8947b1266ffd2b0ecf2566da7cf2c3e5ba
[ "Artistic-2.0" ]
null
null
null
// Copyright (C) 2010 - 2013 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and The University // of Manchester. // All rights reserved. // Copyright (C) 2008 - 2009 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., EML Research, gGmbH, University of Heid...
25.82996
102
0.676646
bmoreau
5c6ca1c7996f6044245d0fec4bf4a3408e7b977f
1,692
cpp
C++
libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/cnstr_with_any.compile.pass.cpp
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/cnstr_with_any.compile.pass.cpp
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/cnstr_with_any.compile.pass.cpp
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
21.974026
80
0.54669
mkinsner
5c70e39e1f090db7df01f608d5ac5b81574e75b0
1,482
cpp
C++
LeetCode/ThousandTwo/1040-move_stone_until_consecutive_2.cpp
Ginkgo-Biloba/Cpp-Repo1-VS
231c68a055e6bf69a3f7c224e7c0182b67ce5b67
[ "Apache-2.0" ]
null
null
null
LeetCode/ThousandTwo/1040-move_stone_until_consecutive_2.cpp
Ginkgo-Biloba/Cpp-Repo1-VS
231c68a055e6bf69a3f7c224e7c0182b67ce5b67
[ "Apache-2.0" ]
null
null
null
LeetCode/ThousandTwo/1040-move_stone_until_consecutive_2.cpp
Ginkgo-Biloba/Cpp-Repo1-VS
231c68a055e6bf69a3f7c224e7c0182b67ce5b67
[ "Apache-2.0" ]
null
null
null
#include "leetcode.hpp" /* 1040. 移动石子直到连续 II 在一个长度无限的数轴上,第 i 颗石子的位置为 stones[i]。 如果一颗石子的位置最小/最大,那么该石子被称作端点石子。 每个回合,你可以将一颗端点石子拿起并移动到一个未占用的位置,使得该石子不再是一颗端点石子。 值得注意的是,如果石子像 stones = [1,2,5] 这样,你将无法移动位于位置 5 的端点石子,因为无论将它移动到任何位置(例如 0 或 3),该石子都仍然会是端点石子。 当你无法进行任何移动时,即,这些石子的位置连续时,游戏结束。 要使游戏结束,你可以执行的最小和最大移动次数分别是多少? 以长度为 2 的...
20.027027
103
0.596491
Ginkgo-Biloba
5c727a1fd0a00d251125e1bc52a3181354951d2a
2,780
cpp
C++
Win32.Zeus.a/source/builder/settings.cpp
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
2
2021-02-04T06:47:45.000Z
2021-07-28T10:02:10.000Z
Win32.Zeus.a/source/builder/settings.cpp
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
null
null
null
Win32.Zeus.a/source/builder/settings.cpp
010001111/Vx-Suites
6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79
[ "MIT" ]
null
null
null
#include <windows.h> #include "defines.h" #include "resources\resources.h" #include "main.h" #include "languages.h" /*  Processing tab.*/ INT_PTR CALLBACK toolSettingsProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch(msg) { case WM_INITDIALOG: { CWA(user32, SetDlgItemTextW)(hwnd, IDC_...
30.888889
175
0.566187
010001111
5c72b398c85525339d8b14cee2c4ab31ef4f225a
5,746
cpp
C++
src/tv_inpainting_app/main_tv_inpainting.cpp
shilinjupt/22
f4d885ffacacbb5c131d008c193ebec8b80cfb64
[ "BSD-3-Clause" ]
18
2015-01-14T23:06:15.000Z
2021-06-09T15:18:07.000Z
src/tv_inpainting_app/main_tv_inpainting.cpp
shilinjupt/22
f4d885ffacacbb5c131d008c193ebec8b80cfb64
[ "BSD-3-Clause" ]
null
null
null
src/tv_inpainting_app/main_tv_inpainting.cpp
shilinjupt/22
f4d885ffacacbb5c131d008c193ebec8b80cfb64
[ "BSD-3-Clause" ]
3
2015-03-05T20:39:08.000Z
2019-09-04T11:55:43.000Z
// Copyright (c) 2012 D'ANGELO Emmanuel // 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...
30.402116
109
0.707623
shilinjupt
5c774b086d817a15252440875010f518705fb3de
441
cpp
C++
tools/pathanalyzer/tests/condcall_v2.cpp
Trass3r/pharos
adeb128aca418696d03889daadc33c1f17ceff90
[ "RSA-MD" ]
3
2015-07-15T08:43:56.000Z
2021-02-28T17:53:52.000Z
tools/pathanalyzer/tests/condcall_two.cpp
sei-ccohen/pharos
78d08494a5c0bffff3789cae7acc538303b1926c
[ "RSA-MD" ]
null
null
null
tools/pathanalyzer/tests/condcall_two.cpp
sei-ccohen/pharos
78d08494a5c0bffff3789cae7acc538303b1926c
[ "RSA-MD" ]
null
null
null
// Copyright 2019 Carnegie Mellon University. See LICENSE file for terms. #include "test.hpp" int func3(int n) { return n-n; } int func2(int n) { return n+n; } int func1(int n) { if (n) return func2(n+1); else return func3(n); } int main() { int n = INT_RAND; path_start(); if (n<5) { n = func1(n);...
15.75
74
0.548753
Trass3r
f0752ddec503a4e8b9954ef079b232482d672a9b
1,429
cpp
C++
CNN-Test/Math/Matrix.cpp
Jannled/SoFold
8012b1bcde6bfabc06fbc8453ee8e03faa2492a9
[ "MIT" ]
null
null
null
CNN-Test/Math/Matrix.cpp
Jannled/SoFold
8012b1bcde6bfabc06fbc8453ee8e03faa2492a9
[ "MIT" ]
null
null
null
CNN-Test/Math/Matrix.cpp
Jannled/SoFold
8012b1bcde6bfabc06fbc8453ee8e03faa2492a9
[ "MIT" ]
null
null
null
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: Matrix.cpp * Author: jannl * * Created on 29. Mai 2019, 13:58 */ #include <stdexcept> #include "M...
18.802632
80
0.592022
Jannled
f07721fcfc9b484bd457ec638f60979a85d61101
5,240
cpp
C++
rmw_opendds_cpp/src/rmw_subscription.cpp
adamsj-oci/rmw_opendds
444f32cfc7730150fa6ad353ac1a2bbd23597cc0
[ "Apache-2.0" ]
7
2019-06-29T09:39:31.000Z
2021-06-23T03:20:06.000Z
rmw_opendds_cpp/src/rmw_subscription.cpp
adamsj-oci/rmw_opendds
444f32cfc7730150fa6ad353ac1a2bbd23597cc0
[ "Apache-2.0" ]
33
2018-12-14T10:49:42.000Z
2021-05-26T16:09:53.000Z
rmw_opendds_cpp/src/rmw_subscription.cpp
adamsj-oci/rmw_opendds
444f32cfc7730150fa6ad353ac1a2bbd23597cc0
[ "Apache-2.0" ]
16
2019-06-29T09:39:39.000Z
2020-05-29T20:18:39.000Z
// Copyright 2014-2017 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
29.772727
105
0.749427
adamsj-oci
f079621991da03cb60ccdc57af99f2086abf17c1
4,121
cpp
C++
source/GrassShader.cpp
Tomash667/carpglib
c8701b170e4e2cbdb4d52fe3b7c8529afb3e97ed
[ "MIT" ]
4
2019-08-18T19:33:04.000Z
2021-08-07T02:12:54.000Z
source/GrassShader.cpp
Tomash667/carpglib
c8701b170e4e2cbdb4d52fe3b7c8529afb3e97ed
[ "MIT" ]
5
2019-08-14T05:45:56.000Z
2021-03-15T07:47:24.000Z
source/GrassShader.cpp
Tomash667/carpglib
c8701b170e4e2cbdb4d52fe3b7c8529afb3e97ed
[ "MIT" ]
2
2019-10-05T02:36:35.000Z
2021-02-15T20:20:09.000Z
#include "Pch.h" #include "GrassShader.h" #include "Camera.h" #include "DirectX.h" #include "Mesh.h" #include "Render.h" #include "Scene.h" #include "SceneManager.h" struct VsGlobals { Matrix matViewProj; }; struct PsGlobals { Vec4 fogColor; Vec4 fogParams; Vec4 ambientColor; }; //==============================...
28.818182
138
0.61587
Tomash667
f07c2afe96a5b8c9f5427a67ff1abfa0f98316dd
3,600
cpp
C++
curves/hermiteinterp.cpp
kujenga/curves
03857442c7b200a9206f6cfaadeb648047e578fe
[ "MIT" ]
1
2020-09-30T07:18:44.000Z
2020-09-30T07:18:44.000Z
curves/hermiteinterp.cpp
kujenga/curves
03857442c7b200a9206f6cfaadeb648047e578fe
[ "MIT" ]
null
null
null
curves/hermiteinterp.cpp
kujenga/curves
03857442c7b200a9206f6cfaadeb648047e578fe
[ "MIT" ]
null
null
null
// // hermiteinterp.cpp // curves // // Created by Aaron Taylor on 10/12/14. // Copyright (c) 2014 Aaron Taylor. All rights reserved. // #include "hermiteinterp.h" void HermiteInterp::addControlPoint(float2 newPoint) { controlPoints.push_back(newPoint); controlPoints.push_back(float2(0.2,0.2)); } void He...
27.272727
85
0.598333
kujenga
f07c5d6abc14b576db0cb44a39208a461d43a46d
13,993
cpp
C++
ODIN_II/SRC/Latch.cpp
umarcor/vtr-verilog-to-routing
d58f993d07fe752dbe254132e739ce2d62abc9e5
[ "MIT" ]
682
2015-07-10T00:39:26.000Z
2022-03-30T05:24:53.000Z
ODIN_II/SRC/Latch.cpp
umarcor/vtr-verilog-to-routing
d58f993d07fe752dbe254132e739ce2d62abc9e5
[ "MIT" ]
1,399
2015-07-24T22:09:09.000Z
2022-03-29T06:22:48.000Z
ODIN_II/SRC/Latch.cpp
umarcor/vtr-verilog-to-routing
d58f993d07fe752dbe254132e739ce2d62abc9e5
[ "MIT" ]
311
2015-07-09T13:59:48.000Z
2022-03-28T00:15:20.000Z
/** * Copyright (c) 2021 Seyed Alireza Damghani (sdamghann@gmail.com) * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights t...
48.586806
117
0.464089
umarcor
f07c7f0c9b9e5ce25fe9c3ec63e8e21e1c4a2548
1,570
cpp
C++
src/double.cpp
geofflangdale/scans
f64b5b4f895803df792ab9f589f3f90b731c32bb
[ "BSD-3-Clause" ]
3
2018-06-19T06:43:42.000Z
2021-07-16T04:44:58.000Z
src/double.cpp
geofflangdale/scans
f64b5b4f895803df792ab9f589f3f90b731c32bb
[ "BSD-3-Clause" ]
null
null
null
src/double.cpp
geofflangdale/scans
f64b5b4f895803df792ab9f589f3f90b731c32bb
[ "BSD-3-Clause" ]
null
null
null
#include <memory> #include <set> #include "scans.h" #include "double.h" #include "vermicelli.h" #include "shufti.h" #include "truffle.h" using namespace std; // note: we could make all 9 variations here, but the other 4 aren't that interesting typedef DoubleMatcher<Vermicelli, &Vermicelli::vermicelli_op, ...
32.708333
85
0.724204
geofflangdale
f07fc86a8cc083aee778b32c3e1ff46e5075124f
602
cpp
C++
LeetCode/findAllDuplicates.cpp
hardiksinghnegi/PracticeSnippets
a34c44e9f824630a2a4865d094e1d6ee33ef65ad
[ "Apache-2.0" ]
null
null
null
LeetCode/findAllDuplicates.cpp
hardiksinghnegi/PracticeSnippets
a34c44e9f824630a2a4865d094e1d6ee33ef65ad
[ "Apache-2.0" ]
null
null
null
LeetCode/findAllDuplicates.cpp
hardiksinghnegi/PracticeSnippets
a34c44e9f824630a2a4865d094e1d6ee33ef65ad
[ "Apache-2.0" ]
null
null
null
static int __ = []() { std::ios::sync_with_stdio(false); cin.tie(nullptr); return 0; }(); class Solution { public: vector<int> findDuplicates(vector<int>& nums) { vector<int> dupVal; int inpSize = nums.size(); if(nums.size()<2){ return dupVal; } ...
20.758621
51
0.423588
hardiksinghnegi
f084c3cb4fde6402a96f67ee4b85a645dca08be4
413
cpp
C++
03_vectors/main.cpp
acc-cosc-1337-spring-2019/midterm-spring-2019-hillarywyatt
8e7a30f3c89a3a3247424955c4c4c6eeb5760ed7
[ "MIT" ]
null
null
null
03_vectors/main.cpp
acc-cosc-1337-spring-2019/midterm-spring-2019-hillarywyatt
8e7a30f3c89a3a3247424955c4c4c6eeb5760ed7
[ "MIT" ]
null
null
null
03_vectors/main.cpp
acc-cosc-1337-spring-2019/midterm-spring-2019-hillarywyatt
8e7a30f3c89a3a3247424955c4c4c6eeb5760ed7
[ "MIT" ]
null
null
null
#include "dna_consensus.h" #include <iostream> int main() { vector <string> rosalind = { "ATCCAGCT", "GGGCAACT", "ATGGATCT", "AAGCAACC", "TTGGAACT", "ATGCCATT", "ATGGCACT" }; vector <int> number_sequences = most_common_letter(rosalind); vector <string> consensus = dna_consensus(number_sequences); std::...
19.666667
67
0.663438
acc-cosc-1337-spring-2019
f085bf13250c88c16bc5ae6a50def1856f7bd431
981
cpp
C++
src/rgb.cpp
Agata-Les/rgb-hsv-fantastic-converter
e1e9c8181f2fd2aada98f73f180b5b196c78a234
[ "Apache-2.0" ]
1
2018-07-16T20:15:44.000Z
2018-07-16T20:15:44.000Z
src/rgb.cpp
Agata-Les/rgb-hsv-fantastic-converter
e1e9c8181f2fd2aada98f73f180b5b196c78a234
[ "Apache-2.0" ]
2
2018-07-17T18:04:56.000Z
2018-08-17T18:53:01.000Z
src/rgb.cpp
Agata-Les/rgb-hsv-fantastic-converter
e1e9c8181f2fd2aada98f73f180b5b196c78a234
[ "Apache-2.0" ]
null
null
null
#include "rgb.h" #include <algorithm> bool RGB::operator ==(const RGB & rhs) const { return this->Red == rhs.Red && this->Green == rhs.Green && this->Blue == rhs.Blue; } bool RGB::operator !=(const RGB & rhs) const { return this->Red != rhs.Red || this->Green != rhs.Green || this->Blue != rhs.Blue; } std::ostream ...
18.509434
87
0.66157
Agata-Les
f0931297ce43191e1d8ca35aec82f5f834cc411a
4,093
cpp
C++
steel/Source/Steel/Application.cpp
samstalhandske/steel
6b501515c619b4a127884da88a4e53c1419727dd
[ "Apache-2.0" ]
null
null
null
steel/Source/Steel/Application.cpp
samstalhandske/steel
6b501515c619b4a127884da88a4e53c1419727dd
[ "Apache-2.0" ]
null
null
null
steel/Source/Steel/Application.cpp
samstalhandske/steel
6b501515c619b4a127884da88a4e53c1419727dd
[ "Apache-2.0" ]
null
null
null
#include "pch.h" #include "Application.hpp" #include "Steel/Debug/Log.hpp" #include <glad/glad.h> #include "Input.hpp" namespace Steel { Application* Application::myInstance = nullptr; static GLenum ShaderDataTypeToOpenGLBaseType(ShaderDataType aType) { switch (aType) { case Steel::ShaderDataType::Float: ...
21.887701
101
0.683118
samstalhandske
f09411986306ee0082bab0e873332a389baeb79d
3,327
hpp
C++
Hurrican/src/Console.hpp
polluks/Hurrican-1
3808399d798342abe0f15655c7c3ceb95bc8f095
[ "MIT" ]
21
2018-04-13T10:45:45.000Z
2022-03-29T14:53:43.000Z
Hurrican/src/Console.hpp
polluks/Hurrican-1
3808399d798342abe0f15655c7c3ceb95bc8f095
[ "MIT" ]
10
2021-06-30T14:29:36.000Z
2022-01-06T17:03:48.000Z
Hurrican/src/Console.hpp
polluks/Hurrican-1
3808399d798342abe0f15655c7c3ceb95bc8f095
[ "MIT" ]
3
2021-10-08T12:35:05.000Z
2022-03-03T06:03:49.000Z
// Datei : Console.hpp // -------------------------------------------------------------------------------------- // // Konsolen-Klasse für Hurrican // // (c) 2002 Jörg M. Winterstein // // -------------------------------------------------------------------------------------- #ifndef _CONSOLE_HPP_ #define _CONSOLE_HPP...
34.65625
104
0.485422
polluks
f095dd72e43104a1ed2af4dcd95e1c7b9917f8e9
3,769
cpp
C++
Escape Room Client/src/core/Inventory.cpp
Daninjakiwi/Escape-Room-Client
a67328feb4ec51e1d8d681804ae9831deb9c2181
[ "MIT" ]
null
null
null
Escape Room Client/src/core/Inventory.cpp
Daninjakiwi/Escape-Room-Client
a67328feb4ec51e1d8d681804ae9831deb9c2181
[ "MIT" ]
null
null
null
Escape Room Client/src/core/Inventory.cpp
Daninjakiwi/Escape-Room-Client
a67328feb4ec51e1d8d681804ae9831deb9c2181
[ "MIT" ]
null
null
null
#pragma once #include "core/Inventory.hpp" #include <algorithm> #include "ui/MultiLineLabel.hpp" InventoryItem::InventoryItem(const std::string& name, const std::string& description, const std::string& thumbnail_path) : name(name), description(description), thumbnail(thumbnail_path) { } Inventory::Inventory() : m_sel...
44.341176
330
0.662245
Daninjakiwi
f098b4a0927f716620a6d1d01e2bc83ad9a91d84
2,204
hpp
C++
src/vendor/dispatcher/extra/timer.hpp
cyrusccy/Karabiner-Elements
90f83e487a0b6c671bc76f48c01e91fb28ae67c2
[ "Unlicense" ]
null
null
null
src/vendor/dispatcher/extra/timer.hpp
cyrusccy/Karabiner-Elements
90f83e487a0b6c671bc76f48c01e91fb28ae67c2
[ "Unlicense" ]
null
null
null
src/vendor/dispatcher/extra/timer.hpp
cyrusccy/Karabiner-Elements
90f83e487a0b6c671bc76f48c01e91fb28ae67c2
[ "Unlicense" ]
null
null
null
#pragma once // (C) Copyright Takayama Fumihiko 2018. // Distributed under the Boost Software License, Version 1.0. // (See http://www.boost.org/LICENSE_1_0.txt) // `pqrs::dispatcher::extra::timer` can be used safely in a multi-threaded environment. #include "dispatcher/extra/dispatcher_client.hpp" namespace pqrs {...
27.209877
89
0.666062
cyrusccy
f09b8128a2fe73174b119b9ff63820174b1903fd
9,183
cpp
C++
src/pybag/interval.cpp
felixonmars/pybag
917531aeb8e7def7731d5456e313313f88ccb6bc
[ "BSD-3-Clause" ]
null
null
null
src/pybag/interval.cpp
felixonmars/pybag
917531aeb8e7def7731d5456e313313f88ccb6bc
[ "BSD-3-Clause" ]
null
null
null
src/pybag/interval.cpp
felixonmars/pybag
917531aeb8e7def7731d5456e313313f88ccb6bc
[ "BSD-3-Clause" ]
null
null
null
#include <array> #include <memory> #include <utility> #include <pybind11/pybind11.h> #include <pybind11_generics/any.h> #include <cbag/util/interval.h> #include <pybind11_generics/iterator.h> #include <pybind11_generics/optional.h> #include <pybind11_generics/tuple.h> #include <pybag/interval.h> namespace pyg = p...
45.915
100
0.670587
felixonmars
f09cbe9800fcdf2f065ab130edc625dcd494001a
7,935
hh
C++
dune/hdd/linearelliptic/problems/interfaces.hh
tobiasleibner/dune-hdd
35a122c1c6fd019aebbdbb8ee1eb8a36ae2f2b26
[ "BSD-2-Clause" ]
1
2020-02-08T04:10:59.000Z
2020-02-08T04:10:59.000Z
dune/hdd/linearelliptic/problems/interfaces.hh
tobiasleibner/dune-hdd
35a122c1c6fd019aebbdbb8ee1eb8a36ae2f2b26
[ "BSD-2-Clause" ]
11
2018-07-31T08:29:42.000Z
2019-06-28T08:53:34.000Z
dune/hdd/linearelliptic/problems/interfaces.hh
tobiasleibner/dune-hdd
35a122c1c6fd019aebbdbb8ee1eb8a36ae2f2b26
[ "BSD-2-Clause" ]
1
2020-02-08T04:11:02.000Z
2020-02-08T04:11:02.000Z
// This file is part of the dune-hdd project: // http://users.dune-project.org/projects/dune-hdd // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_HDD_LINEARELLIPTIC_PROBLEMS_INTERFACES_HH #define DUNE_HDD_LINEARELLIPTIC_PROBLEMS_INTERFA...
42.207447
121
0.652804
tobiasleibner
f09f8945d6951e59bf2b56e54385fdfbc4b55bb1
843
cpp
C++
LeetCode/1000/436.cpp
K-ona/C-_Training
d54970f7923607bdc54fc13677220d1b3daf09e5
[ "Apache-2.0" ]
null
null
null
LeetCode/1000/436.cpp
K-ona/C-_Training
d54970f7923607bdc54fc13677220d1b3daf09e5
[ "Apache-2.0" ]
null
null
null
LeetCode/1000/436.cpp
K-ona/C-_Training
d54970f7923607bdc54fc13677220d1b3daf09e5
[ "Apache-2.0" ]
null
null
null
#include <vector> #include <algorithm> using std::vector; using std::pair; class Solution { public: vector<int> findRightInterval(vector<vector<int>>& intervals) { vector<pair<int, int>> VP; VP.reserve(20000); int cnt = 0; for (const auto& x: intervals) { VP.push_ba...
27.193548
71
0.491103
K-ona
f0a79591453fdaac06b0b67dd0420227ccb01674
3,909
cpp
C++
Lab-Assignments/Data-Structure-Lab/Assignment-4/question-3.cpp
Hics0000/Console-Based-Cpp-Programs
6a7658a302d19b9d623ff7c5de5bc456c2d5ab69
[ "MIT" ]
null
null
null
Lab-Assignments/Data-Structure-Lab/Assignment-4/question-3.cpp
Hics0000/Console-Based-Cpp-Programs
6a7658a302d19b9d623ff7c5de5bc456c2d5ab69
[ "MIT" ]
1
2021-10-05T17:00:52.000Z
2021-10-05T17:00:52.000Z
Lab-Assignments/Data-Structure-Lab/Assignment-4/question-3.cpp
Hics0000/Console-Based-Cpp-Programs
6a7658a302d19b9d623ff7c5de5bc456c2d5ab69
[ "MIT" ]
7
2021-06-13T08:15:26.000Z
2021-10-05T17:02:10.000Z
#include <iostream> using namespace std; template <class T> class Node { public: int data; Node<T> *Next; }; template <class T> class MyVector { public: Node<T> *Head; int count; MyVector() { Head = NULL; count = 0; } Node<T> *createNode(int n) //CREATE NODE { ...
20.253886
92
0.403428
Hics0000
f0a8080b240f3f8f7d3fd203066c0909063b9b5c
866
hpp
C++
examples/addition/include/romeo_moveit_actions/toolsObj.hpp
unl-nimbus-lab/phriky-units
16c8cdd91de0899411b139e5a94fcb4ea8104ad2
[ "MIT" ]
22
2017-07-18T09:39:34.000Z
2021-09-16T09:41:03.000Z
examples/addition/include/romeo_moveit_actions/toolsObj.hpp
unl-nimbus-lab/phriky-units
16c8cdd91de0899411b139e5a94fcb4ea8104ad2
[ "MIT" ]
9
2016-09-04T13:33:15.000Z
2018-01-05T22:39:03.000Z
examples/addition/include/romeo_moveit_actions/toolsObj.hpp
unl-nimbus-lab/phriky-units
16c8cdd91de0899411b139e5a94fcb4ea8104ad2
[ "MIT" ]
4
2016-12-07T16:34:57.000Z
2019-04-03T06:51:55.000Z
#ifndef TOOLSOBJ_H #define TOOLSOBJ_H namespace moveit_simple_actions { void setPose(geometry_msgs::Pose *pose, const double &x, const double &y, const double &z, const double &ox, const double &oy, const double &oz, const double &ow) { pose->position.x = x; pose->position.y = y; pos...
21.65
99
0.62933
unl-nimbus-lab
f0a91e2d73609fa5a426aa3665f4da43c50708d4
27,534
cpp
C++
WPWIV/WPWIV/Texture.cpp
ACskyline/Wave-Particles-with-Interactive-Vortex
99ed54e231971bfece26f61dfe38b9b75f809fde
[ "MIT" ]
197
2018-12-10T00:19:50.000Z
2022-03-30T08:38:50.000Z
WPWIV/WPWIV/Texture.cpp
ACskyline/Wave-Particles-with-Interactive-Vortex
99ed54e231971bfece26f61dfe38b9b75f809fde
[ "MIT" ]
1
2019-01-17T15:50:09.000Z
2019-01-18T23:11:38.000Z
WPWIV/WPWIV/Texture.cpp
ACskyline/Wave-Particles-with-Interactive-Vortex
99ed54e231971bfece26f61dfe38b9b75f809fde
[ "MIT" ]
12
2019-01-14T03:36:50.000Z
2022-01-23T19:56:30.000Z
#include "Texture.h" Texture::Texture(const wstring& _fileName) : fileName(_fileName), imageData(nullptr), textureBuffer(nullptr) { } Texture::Texture() : Texture(L"no file") { } Texture::~Texture() { ReleaseBuffer(); ReleaseBufferCPU(); } void Texture::ReleaseBuffer() { SAFE_RELEASE(textureBuffer); } void...
38.348189
176
0.779509
ACskyline
f0a9baabd160436a7bfa90dd0ddc3fd74d0c4b83
1,238
cpp
C++
src/scenes/SFPC/EstherKnowltonScene/EstherKnowltonScene.cpp
roymacdonald/ReCoded
3bcb3d579cdd17381e54a508a1e4ef9e3d5bc4f1
[ "MIT" ]
64
2017-06-12T19:24:08.000Z
2022-01-27T19:14:48.000Z
src/scenes/EstherKnowltonScene/EstherKnowltonScene.cpp
colaplate/recoded
934e1184c7502d192435c406e56b8a2106e9b6b4
[ "MIT" ]
10
2017-06-13T10:38:39.000Z
2017-11-15T11:21:05.000Z
src/scenes/EstherKnowltonScene/EstherKnowltonScene.cpp
colaplate/recoded
934e1184c7502d192435c406e56b8a2106e9b6b4
[ "MIT" ]
24
2017-06-11T08:14:46.000Z
2020-04-16T20:28:46.000Z
#include "EstherKnowltonScene.h" void EstherKnowltonScene::setup(){ // setup pramaters // if your original code use an ofxPanel instance dont use it here, instead // add your parameters to the "parameters" instance as follows. // param was declared in EstherKnowltonScene.h //parameters.add(param.set("param", 5...
21.344828
75
0.67609
roymacdonald
f0acc41b5c7997fc60ff1a09f1db5a62f954c419
3,777
h++
C++
core/proxy_property.h++
rubenvb/skui
5bda2d73232eb7a763ba9d788c7603298767a7d7
[ "MIT" ]
19
2016-10-13T22:44:31.000Z
2021-12-28T20:28:15.000Z
core/proxy_property.h++
rubenvb/skui
5bda2d73232eb7a763ba9d788c7603298767a7d7
[ "MIT" ]
1
2021-05-16T15:15:22.000Z
2021-05-16T17:01:26.000Z
core/proxy_property.h++
rubenvb/skui
5bda2d73232eb7a763ba9d788c7603298767a7d7
[ "MIT" ]
4
2017-03-07T05:37:02.000Z
2018-06-05T03:14:48.000Z
/** * The MIT License (MIT) * * Copyright © 2017-2019 Ruben Van Boxem * * 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 * ...
31.214876
89
0.688907
rubenvb
f0b020f430f7d0c243afef5780e6816fe50faa44
1,610
cpp
C++
luogu/P1522.cpp
delphi122/knowledge_planet
e86cb8f9aa47ef8918cde0e814984a6535023c21
[ "Apache-2.0" ]
1
2020-07-24T03:07:08.000Z
2020-07-24T03:07:08.000Z
luogu/P1522.cpp
delphi122/knowledge_planet
e86cb8f9aa47ef8918cde0e814984a6535023c21
[ "Apache-2.0" ]
null
null
null
luogu/P1522.cpp
delphi122/knowledge_planet
e86cb8f9aa47ef8918cde0e814984a6535023c21
[ "Apache-2.0" ]
null
null
null
// // Created by yangtao on 19-11-25. // #include <cstdio> #include <cmath> #include <cstring> #include <iostream> #include <algorithm> #define inf 0x3f3f3f3f3f3f3f3f using namespace std; const int N = 155; double d[N][N], d1[N]; int z[2][N]; int n; double m1, m2 = inf; void floyd() { for(int k = 1; k <= n; k++) ...
20.641026
84
0.360248
delphi122
f0b9b3c6efbd0a80fd7ebc103d49f417d8ab897c
2,207
cpp
C++
SCLT/Lights/AreaLight.cpp
chicio/Multispectral-Ray-tracing
ea5b399770eddd1927aae8a8ae4640dead42c48c
[ "MIT" ]
95
2016-05-05T10:46:49.000Z
2021-12-20T12:51:41.000Z
SCLT/Lights/AreaLight.cpp
chicio/Multispectral-Ray-tracing
ea5b399770eddd1927aae8a8ae4640dead42c48c
[ "MIT" ]
1
2021-12-06T03:21:32.000Z
2021-12-06T03:21:32.000Z
SCLT/Lights/AreaLight.cpp
chicio/Multispectral-Ray-tracing
ea5b399770eddd1927aae8a8ae4640dead42c48c
[ "MIT" ]
8
2017-03-12T03:04:08.000Z
2022-03-17T01:27:41.000Z
// // AreaLight.cpp // Spectral Clara Lux tracer // // Created by Fabrizio Duroni on 31/10/15. // Copyright © 2015 Fabrizio Duroni. All rights reserved. // #include "pch.h" #include "MaterialBRDF.hpp" #include "AreaLight.hpp" AreaLight::AreaLight(Point3D origin, Spectrum<constant::spectrumSam...
29.426667
100
0.685546
chicio
f0ba52f401d75d124eeb3bb1e24443c726e10ea7
972
hpp
C++
addons/misc/CfgEventHandlers.hpp
kellerkompanie/kellerkompanie-medical
b66076217c1c08b6464ec19c15eef72c91bb5cfb
[ "MIT" ]
null
null
null
addons/misc/CfgEventHandlers.hpp
kellerkompanie/kellerkompanie-medical
b66076217c1c08b6464ec19c15eef72c91bb5cfb
[ "MIT" ]
1
2019-03-26T00:56:20.000Z
2019-03-26T00:56:20.000Z
addons/misc/CfgEventHandlers.hpp
kellerkompanie/kellerkompanie-medical
b66076217c1c08b6464ec19c15eef72c91bb5cfb
[ "MIT" ]
null
null
null
class Extended_PreInit_EventHandlers { class ADDON { init = QUOTE(call COMPILE_FILE(XEH_preInit)); disableModuload = true; }; }; class Extended_Init_EventHandlers { class CAManBase { class ADDON { init = QUOTE(_this call COMPILE_FILE(XEH_init)); }; }; cla...
27.771429
105
0.597737
kellerkompanie
f0bac7bcf17c1ec31334cc88dbc6b0f66e195e24
2,325
hxx
C++
AccountingManager.hxx
resiprocate/legacy-b2bua
5684967725fc3faf6d609d6db956d855c1f9426d
[ "SGI-B-2.0", "CECILL-B" ]
3
2016-03-24T12:49:36.000Z
2019-03-20T08:35:11.000Z
AccountingManager.hxx
resiprocate/legacy-b2bua
5684967725fc3faf6d609d6db956d855c1f9426d
[ "SGI-B-2.0", "CECILL-B" ]
null
null
null
AccountingManager.hxx
resiprocate/legacy-b2bua
5684967725fc3faf6d609d6db956d855c1f9426d
[ "SGI-B-2.0", "CECILL-B" ]
2
2019-07-23T10:41:20.000Z
2021-01-21T02:15:46.000Z
#ifndef __AccountingManager_h #define __AccountingManager_h #include "rutil/Data.h" namespace b2bua { class AccountingManager { public: // Call has entered system virtual void onCallStart() = 0; // Call has been authorised virtual void onCallAuthorise() = 0; // Call has connected virtual void onCallCo...
33.695652
77
0.697204
resiprocate
f0bd89ff43830cef2f02ad3422ba30e251337ab8
1,359
cpp
C++
Code/WinApp/Interface.cpp
spencerparkin/GAVisTool
fb61a1789d58aedce4dbb5a53b181fbc06172a2a
[ "MIT" ]
null
null
null
Code/WinApp/Interface.cpp
spencerparkin/GAVisTool
fb61a1789d58aedce4dbb5a53b181fbc06172a2a
[ "MIT" ]
null
null
null
Code/WinApp/Interface.cpp
spencerparkin/GAVisTool
fb61a1789d58aedce4dbb5a53b181fbc06172a2a
[ "MIT" ]
null
null
null
// Interface.cpp /* * Copyright (C) 2013-2014 Spencer T. Parkin * * This software has been released under the MIT License. * See the "License.txt" file in the project root directory * for more information about this license. * */ #include "Interface.h" #include "Application.h" IMPLEMENT_CALCLIB_CLASS0( GAVisT...
31.604651
114
0.543782
spencerparkin
f0bdd54c633cf4175e795b23bab4c264bf1056ab
557
cc
C++
src/thirdpart/test/asr_test.cc
user-ZJ/kaldi
e8098f2c658620b56c5d18b2452673485c274900
[ "Apache-2.0" ]
null
null
null
src/thirdpart/test/asr_test.cc
user-ZJ/kaldi
e8098f2c658620b56c5d18b2452673485c274900
[ "Apache-2.0" ]
null
null
null
src/thirdpart/test/asr_test.cc
user-ZJ/kaldi
e8098f2c658620b56c5d18b2452673485c274900
[ "Apache-2.0" ]
null
null
null
#include<iostream> #include "asrlib/asr.h" using namespace ASR; using namespace std; void callASR(ASRRecog &asrRecog,string wavPath){ int N = 1; for(int i=0;i<N;i++){ fstream data_input; data_input.open(wavPath,ios::binary|ios::in); std::string result = asrRecog.predict(data_input,"ASR_WAV"); data...
21.423077
64
0.67325
user-ZJ
f0c3c448ae36049015e4ee6600dd6f8106476b5c
3,980
cpp
C++
HamurEngine/Hamur/src/game/hamurObject.cpp
ttesla/hamur
02a31b4fec9bb3527289a38cdde842a93772be41
[ "MIT" ]
null
null
null
HamurEngine/Hamur/src/game/hamurObject.cpp
ttesla/hamur
02a31b4fec9bb3527289a38cdde842a93772be41
[ "MIT" ]
null
null
null
HamurEngine/Hamur/src/game/hamurObject.cpp
ttesla/hamur
02a31b4fec9bb3527289a38cdde842a93772be41
[ "MIT" ]
null
null
null
#include "hamurObject.h" #include "../hamurTextureManager.h" #include "../helper/hamurMath.h" #include "../helper/hamurLog.h" #include "../hamurDefinitions.h" #include "../helper/hamurColor.h" #include "hamurAnimation.h" namespace hamur { HamurObject::HamurObject(const string& name) :mName(name), m...
25.512821
111
0.661558
ttesla
f0c6bdc0c4b55ee8b6f83fb78bb7c3c096698bad
1,865
cpp
C++
Testbed/Sorts/subapp_counter.cpp
abel1502/mipt_4s
c31a4bb82dfd147fa16407800e749bbad166d27d
[ "MIT" ]
null
null
null
Testbed/Sorts/subapp_counter.cpp
abel1502/mipt_4s
c31a4bb82dfd147fa16407800e749bbad166d27d
[ "MIT" ]
null
null
null
Testbed/Sorts/subapp_counter.cpp
abel1502/mipt_4s
c31a4bb82dfd147fa16407800e749bbad166d27d
[ "MIT" ]
null
null
null
#include "subapp_counter.h" #include <cstdarg> #include <string> CounterSubapp::CounterSubapp() { wrapper_t::sigOp += [this](wrapper_t::Op op, const wrapper_t *inst, const wrapper_t *other, const char *opSym) { if (!running) { return false; } onWrapperOp(op, inst, other, opSym...
20.271739
117
0.517962
abel1502
f0ca1e07c5a7a1fc9f53bccc831b79b8de6de891
827
hpp
C++
src/lib/sampling/sampler_primitives.hpp
idangerichter/CryptoWorkshop
c8d5e202fe3d02c85e58c8c01978db013a81eccd
[ "WTFPL" ]
null
null
null
src/lib/sampling/sampler_primitives.hpp
idangerichter/CryptoWorkshop
c8d5e202fe3d02c85e58c8c01978db013a81eccd
[ "WTFPL" ]
null
null
null
src/lib/sampling/sampler_primitives.hpp
idangerichter/CryptoWorkshop
c8d5e202fe3d02c85e58c8c01978db013a81eccd
[ "WTFPL" ]
null
null
null
#pragma once #include "sampler_primitive.hpp" //------------------------------------------------------------------------ // This file contains implementation of several useful sampler primitives. //------------------------------------------------------------------------ // Simple sampler primitive. Preparation is no-...
31.807692
79
0.650544
idangerichter
f0cd3f7de6c7d5dd50a62402017a28cf814709dc
493
cpp
C++
lib/strmm.cpp
langou/latl
df838fb44a1ef5c77b57bf60bd46eaeff8db3492
[ "BSD-3-Clause-Open-MPI" ]
6
2015-12-13T09:10:11.000Z
2022-02-09T23:18:22.000Z
lib/strmm.cpp
langou/latl
df838fb44a1ef5c77b57bf60bd46eaeff8db3492
[ "BSD-3-Clause-Open-MPI" ]
null
null
null
lib/strmm.cpp
langou/latl
df838fb44a1ef5c77b57bf60bd46eaeff8db3492
[ "BSD-3-Clause-Open-MPI" ]
2
2019-02-01T06:46:36.000Z
2022-02-09T23:18:24.000Z
// // strmm.cpp // Linear Algebra Template Library // // Created by Rodney James on 1/1/13. // Copyright (c) 2013 University of Colorado Denver. All rights reserved. // #include "blas.h" #include "trmm.h" using LATL::TRMM; int strmm_(char& side, char& uplo, char& trans, char& diag, int &m, int &n, float& alpha, ...
22.409091
129
0.64503
langou
f0d354ff679f9c1b6ce52bee57068e8e550ad418
1,960
cpp
C++
sandbox/apps/cpp/blur.cpp
rcodin/polymage
653487be125dec4950d1c65da4f736fa05fb938f
[ "Apache-2.0" ]
10
2016-07-22T06:53:11.000Z
2021-02-19T06:22:00.000Z
sandbox/apps/cpp/blur.cpp
rcodin/polymage
653487be125dec4950d1c65da4f736fa05fb938f
[ "Apache-2.0" ]
null
null
null
sandbox/apps/cpp/blur.cpp
rcodin/polymage
653487be125dec4950d1c65da4f736fa05fb938f
[ "Apache-2.0" ]
2
2017-11-21T20:29:36.000Z
2021-05-21T01:52:05.000Z
#include "common.h" using namespace cv; void init(int argc, char *argv[], int &nruns, Mat &img, int &Rows, int &Cols) { // Insufficient args if(argc < 2){ std::cout <<"Usage:" <<std::endl <<argv[0] <<" image [[#runs] [[height] [width]]]" <<std::endl; exit(1); } // > a.out ...
25.128205
95
0.553571
rcodin
f0d689720d417ebda71d44526c4debbef0b702a6
1,922
cpp
C++
glhelper/utils/pathutils.cpp
Wumpf/glhelper
de4658f4918533dfac25acf99fc3e5802743210b
[ "MIT" ]
14
2015-01-18T21:13:21.000Z
2021-12-21T01:03:16.000Z
glhelper/utils/pathutils.cpp
Jojendersie/glhelper
7e59fcb09bb7332cf48c1831db1ff5f59de0af81
[ "MIT" ]
7
2015-06-15T19:09:13.000Z
2015-11-26T09:22:10.000Z
glhelper/utils/pathutils.cpp
Wumpf/glhelper
de4658f4918533dfac25acf99fc3e5802743210b
[ "MIT" ]
5
2015-06-15T13:22:18.000Z
2021-10-31T00:26:01.000Z
#include "pathutils.hpp" #include <glhelperconfig.hpp> namespace PathUtils { /// Concats to paths. std::string AppendPath(const std::string& _leftPath, const std::string& _rightPath) { return CanonicalizePath(_leftPath + "/" + _rightPath); } std::string CanonicalizePath(const std::string& _path) { std::stri...
28.264706
118
0.676899
Wumpf
f0d7a552dab581c95d8235232326542d50d3acde
1,168
cpp
C++
Cpp_AcceleratedRT03/src/Lights/CuboidLight.cpp
afritz1/CppRayTracer
0b69c7713680e7d9540478a6d743908fe794bdba
[ "MIT" ]
1
2020-11-28T22:10:16.000Z
2020-11-28T22:10:16.000Z
Cpp_AcceleratedRT03/src/Lights/CuboidLight.cpp
afritz1/CppRayTracer
0b69c7713680e7d9540478a6d743908fe794bdba
[ "MIT" ]
null
null
null
Cpp_AcceleratedRT03/src/Lights/CuboidLight.cpp
afritz1/CppRayTracer
0b69c7713680e7d9540478a6d743908fe794bdba
[ "MIT" ]
null
null
null
#include "CuboidLight.h" #include "../Accelerators/BoundingBox.h" #include "../Intersections/Intersection.h" #include "../Materials/Flat.h" #include "../Materials/Material.h" #include "../Rays/Ray.h" CuboidLight::CuboidLight(const Vector3 &point) : CuboidLight(point, 0.5 + Utility::rand0To1(), 0.5 + Utility::...
25.955556
90
0.700342
afritz1
f0db77b0f1414622270a0cfee398b1ac76fd27ce
409
cpp
C++
atcoder/abc116c.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
1
2020-04-04T14:56:12.000Z
2020-04-04T14:56:12.000Z
atcoder/abc116c.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
null
null
null
atcoder/abc116c.cpp
sogapalag/problems
0ea7d65448e1177f8b3f81124a82d187980d659c
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; // [0..n] +1 while can, split-by-0 // = increaing void solve() { int n; cin >> n; int las = 0; int res = 0; for (int _ = 0; _ < n; _++) { int x; cin >> x; if (x > las) res += x-las; las = x; } cout << res; } int main() { ...
15.730769
37
0.471883
sogapalag
f0e8048384cbaa6d8b1072958b075d0a07f8744e
5,505
cpp
C++
test/binarystore_unittest.cpp
openbmc/phosphor-ipmi-blobs-binarystore
a21027dcb1a0396e57347ab1066821c4d8ba30b2
[ "Apache-2.0" ]
1
2019-04-02T22:55:57.000Z
2019-04-02T22:55:57.000Z
test/binarystore_unittest.cpp
openbmc/phosphor-ipmi-blobs-binarystore
a21027dcb1a0396e57347ab1066821c4d8ba30b2
[ "Apache-2.0" ]
3
2019-04-03T20:19:37.000Z
2020-05-12T17:03:47.000Z
test/binarystore_unittest.cpp
openbmc/phosphor-ipmi-blobs-binarystore
a21027dcb1a0396e57347ab1066821c4d8ba30b2
[ "Apache-2.0" ]
1
2021-08-16T15:56:45.000Z
2021-08-16T15:56:45.000Z
#include "binarystore.hpp" #include "binarystore_interface.hpp" #include "sys_file.hpp" #include <google/protobuf/text_format.h> #include <iostream> #include <ipmid/handler.hpp> #include <iterator> #include <memory> #include <sstream> #include <gmock/gmock.h> const std::string blobData = "jW7jiID}kD&gm&Azi:^]JT]'Ov...
32.382353
79
0.554405
openbmc
f0eeac6b3152ddb0d56933f796865fd99b9053b6
221
cpp
C++
Workshop4-Inheritence/task4/rectangle.cpp
mathewsjoyy/c-Practise-Files
4367555c3f4aa2b2d084b57791eae853f47ad36c
[ "MIT" ]
null
null
null
Workshop4-Inheritence/task4/rectangle.cpp
mathewsjoyy/c-Practise-Files
4367555c3f4aa2b2d084b57791eae853f47ad36c
[ "MIT" ]
null
null
null
Workshop4-Inheritence/task4/rectangle.cpp
mathewsjoyy/c-Practise-Files
4367555c3f4aa2b2d084b57791eae853f47ad36c
[ "MIT" ]
null
null
null
#include "rectangle.h" double Rectangle::area() const { return width * height; } Rectangle Rectangle::operator+(const Rectangle& r) const { return Rectangle(this -> width + r.width, this -> height + r.height); }
22.1
73
0.683258
mathewsjoyy
e7c4039ff960d41dca343bf3dd3d2c2a439e95b9
35,271
cc
C++
src/Distributed/RedistributeNodes.cc
jmikeowen/Spheral
3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
22
2018-07-31T21:38:22.000Z
2020-06-29T08:58:33.000Z
src/Distributed/RedistributeNodes.cc
jmikeowen/Spheral
3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
41
2020-09-28T23:14:27.000Z
2022-03-28T17:01:33.000Z
src/Distributed/RedistributeNodes.cc
jmikeowen/Spheral
3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
7
2019-12-01T07:00:06.000Z
2020-09-15T21:12:39.000Z
//---------------------------------Spheral++----------------------------------// // RedistributeNodes -- An abstract base class for methods that repartition // the Spheral++ NodeLists among domains. // // Created by JMO, Tue Feb 4 14:23:11 PST 2003 //--------------------------------------------------------------------...
41.59316
183
0.631454
jmikeowen
e7c62bd17fb0219b69e0cea3be5ff7e18e9587a9
4,630
cpp
C++
src/CPluginWeatherSystem.cpp
omggomb/Plugin_WeatherSystem
c616ebb42101f8aacc2abae4f45c50918baf281b
[ "BSD-2-Clause" ]
4
2016-03-16T21:16:47.000Z
2021-04-13T22:22:47.000Z
src/CPluginWeatherSystem.cpp
omggomb/Plugin_WeatherSystem
c616ebb42101f8aacc2abae4f45c50918baf281b
[ "BSD-2-Clause" ]
1
2017-11-12T21:09:21.000Z
2017-12-16T06:18:46.000Z
src/CPluginWeatherSystem.cpp
omggomb/Plugin_WeatherSystem
c616ebb42101f8aacc2abae4f45c50918baf281b
[ "BSD-2-Clause" ]
2
2019-03-07T21:11:08.000Z
2021-04-13T22:22:50.000Z
/* WeatherSystem_Plugin - for licensing and copyright see license.txt */ #include <StdAfx.h> #include "CPluginWeatherSystem.h" namespace WeatherSystemPlugin { CPluginWeatherSystem *gPlugin = NULL; CPluginWeatherSystem::CPluginWeatherSystem() { gPlugin = this; m_pWeatherSystem = new CWeatherSystem(); } CPluginWeat...
22.259615
155
0.700864
omggomb
e7c926cadff767d9424c88a77fecbb729ce4dfd4
551
cpp
C++
impl/gui/sdl/src/gui_sdl.cpp
cschreib/lxgui
b317774d9b4296dda8a70b994950987378a05678
[ "MIT" ]
50
2015-01-15T10:00:31.000Z
2022-02-04T20:45:25.000Z
impl/gui/sdl/src/gui_sdl.cpp
cschreib/lxgui
b317774d9b4296dda8a70b994950987378a05678
[ "MIT" ]
88
2020-03-15T17:40:04.000Z
2022-03-15T08:21:44.000Z
impl/gui/sdl/src/gui_sdl.cpp
cschreib/lxgui
b317774d9b4296dda8a70b994950987378a05678
[ "MIT" ]
19
2017-03-11T04:32:01.000Z
2022-01-12T22:47:12.000Z
#include "lxgui/impl/gui_sdl.hpp" #include <lxgui/impl/input_sdl_source.hpp> #include <lxgui/gui_manager.hpp> namespace lxgui { namespace gui { namespace sdl { utils::owner_ptr<gui::manager> create_manager(SDL_Window* pWindow, SDL_Renderer* pRenderer, bool bInitialiseSDLImage) { return utils::make...
26.238095
105
0.700544
cschreib
e7c9d0dcf2c6a856932cc173feecc631464b62b5
5,156
cc
C++
demos/demo_scrfd_camera.cc
zhouzy-creator/Tengine
fea5c064da7b8ed0e24212dcc65d30fda3c7477c
[ "Apache-2.0" ]
4,697
2017-12-30T12:15:43.000Z
2022-03-25T08:22:31.000Z
demos/demo_scrfd_camera.cc
zhouzy-creator/Tengine
fea5c064da7b8ed0e24212dcc65d30fda3c7477c
[ "Apache-2.0" ]
943
2018-01-02T06:15:00.000Z
2022-03-31T05:32:32.000Z
demos/demo_scrfd_camera.cc
crouchggj/Tengine
587220f924198966c503c1bd15c83451d22f56ad
[ "Apache-2.0" ]
1,076
2017-12-30T12:15:46.000Z
2022-03-30T01:28:56.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 you under the Apache License, Version 2.0 (the * License); you ma...
33.051282
142
0.640419
zhouzy-creator
e7cb79e061b0049a6e0e1bc6a6ee3b3ada199f5b
3,328
cc
C++
chrome/browser/ash/arc/nearby_share/ui/low_disk_space_dialog_view_unittest.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
76
2020-09-02T03:05:41.000Z
2022-03-30T04:40:55.000Z
chrome/browser/ash/arc/nearby_share/ui/low_disk_space_dialog_view_unittest.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
45
2020-09-02T03:21:37.000Z
2022-03-31T22:19:45.000Z
chrome/browser/ash/arc/nearby_share/ui/low_disk_space_dialog_view_unittest.cc
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
8
2020-07-22T18:49:18.000Z
2022-02-08T10:27:16.000Z
// Copyright 2021 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/ash/arc/nearby_share/ui/low_disk_space_dialog_view.h" #include <memory> #include "chrome/browser/ui/views/chrome_layout_provide...
33.28
80
0.751502
zealoussnow
e7cc18ac4546eb3bc0f4e796ef7844a8b8abe28c
12,606
cc
C++
tensorflow/core/kernels/count_ops.cc
devinlife/tensorflow
1445444c15a396410f25ae91b7d1c19d724e2afc
[ "Apache-2.0" ]
2
2020-09-18T17:14:16.000Z
2021-03-24T11:39:13.000Z
tensorflow/core/kernels/count_ops.cc
devinlife/tensorflow
1445444c15a396410f25ae91b7d1c19d724e2afc
[ "Apache-2.0" ]
5
2021-08-25T16:16:44.000Z
2022-02-10T02:04:51.000Z
tensorflow/core/kernels/count_ops.cc
devinlife/tensorflow
1445444c15a396410f25ae91b7d1c19d724e2afc
[ "Apache-2.0" ]
1
2018-09-05T14:48:36.000Z
2018-09-05T14:48:36.000Z
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
35.114206
80
0.606854
devinlife
e7d69ecd0647621291d053a68e8fa5ac00583863
1,964
cpp
C++
Source/Utils/Win32/CrtUtils.cpp
CharlesCarley/MdDox
527721c85f2c00550353fb6d95a70c8d4f1a6230
[ "MIT" ]
null
null
null
Source/Utils/Win32/CrtUtils.cpp
CharlesCarley/MdDox
527721c85f2c00550353fb6d95a70c8d4f1a6230
[ "MIT" ]
null
null
null
Source/Utils/Win32/CrtUtils.cpp
CharlesCarley/MdDox
527721c85f2c00550353fb6d95a70c8d4f1a6230
[ "MIT" ]
null
null
null
/* ------------------------------------------------------------------------------- Copyright (c) Charles Carley. This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is gran...
29.757576
79
0.631874
CharlesCarley
e7d8d85e290d7bf18b8c1a9aaa17ad2d8fb5ab8d
567
cpp
C++
arrays&string/question9.cpp
kgajwan1/CTCI_practice
2e8e61f508777b4b7ad5d8c32dedd12ea5b27d39
[ "MIT" ]
null
null
null
arrays&string/question9.cpp
kgajwan1/CTCI_practice
2e8e61f508777b4b7ad5d8c32dedd12ea5b27d39
[ "MIT" ]
null
null
null
arrays&string/question9.cpp
kgajwan1/CTCI_practice
2e8e61f508777b4b7ad5d8c32dedd12ea5b27d39
[ "MIT" ]
null
null
null
//question 9 CTCI arrays & strings #include<bits/stdc++.h> //is s2 a rotation of s1? //best way is to check if s2 is subset if s1s1 bool isRotation(std::string s1, std::string s2){ int len = s1.length(); /*check if length of s1 and s2 aer same or not */ if(len = s2.length() && len >0){ std::string ...
23.625
53
0.592593
kgajwan1
e7d958a67ca5d22224488c3bc629e83d4ffaf863
21,622
cpp
C++
libobs-for-HQ-Windows/plugins/win-capture/graphics-hook/d3d10-capture.cpp
jayliu1989/HQ
470d9919742412795447c81c3f160278b4418ba7
[ "MIT" ]
45
2019-01-09T01:50:12.000Z
2021-08-09T20:51:22.000Z
libobs-for-HQ-Windows/plugins/win-capture/graphics-hook/d3d10-capture.cpp
jayliu1989/HQ
470d9919742412795447c81c3f160278b4418ba7
[ "MIT" ]
8
2019-01-14T10:30:55.000Z
2021-06-16T11:38:39.000Z
libobs-for-HQ-Windows/plugins/win-capture/graphics-hook/d3d10-capture.cpp
jayliu1989/HQ
470d9919742412795447c81c3f160278b4418ba7
[ "MIT" ]
24
2019-02-15T17:24:23.000Z
2021-09-09T23:45:19.000Z
#include <d3d10.h> #include <dxgi.h> #include "dxgi-helpers.hpp" #include "graphics-hook.h" #include "../funchook.h" struct d3d10_data { ID3D10Device *device; /* do not release */ uint32_t base_cx; uint32_t base_cy; uint32_t cx; ...
26.859627
79
0.681759
jayliu1989
e7d9dac005ed735e751f3f9027de9281fcf03156
29,676
cpp
C++
server/lineardb.cpp
Valaras/OneLife
0f83ffb8edf8362ff3bf0ca87a73bba21be20446
[ "Linux-OpenIB" ]
69
2018-10-05T23:29:10.000Z
2022-03-29T22:34:24.000Z
server/lineardb.cpp
Valaras/OneLife
0f83ffb8edf8362ff3bf0ca87a73bba21be20446
[ "Linux-OpenIB" ]
62
2018-11-08T14:14:40.000Z
2022-03-01T20:38:01.000Z
server/lineardb.cpp
Valaras/OneLife
0f83ffb8edf8362ff3bf0ca87a73bba21be20446
[ "Linux-OpenIB" ]
24
2018-10-11T09:20:27.000Z
2021-11-06T19:23:17.000Z
#define _FILE_OFFSET_BITS 64 #include "lineardb.h" #include <string.h> #include <stdlib.h> #include <math.h> #ifdef _WIN32 #define fseeko fseeko64 #define ftello ftello64 #endif #define DEFAULT_MAX_LOAD 0.5 #include "murmurhash2_64.cpp" /* // djb2 hash function static uint64_t djb2( const void *inB, unsigned in...
26.615247
80
0.490194
Valaras
e7e64a1e3b3e19cb93bafee7a75209a3390350cc
280
cpp
C++
src/range_based_for_loop.cpp
mwerlberger/cpp11_tutorial
e02e7a1fb61b029681060db97ff16e1b8be53ad1
[ "BSD-3-Clause" ]
null
null
null
src/range_based_for_loop.cpp
mwerlberger/cpp11_tutorial
e02e7a1fb61b029681060db97ff16e1b8be53ad1
[ "BSD-3-Clause" ]
null
null
null
src/range_based_for_loop.cpp
mwerlberger/cpp11_tutorial
e02e7a1fb61b029681060db97ff16e1b8be53ad1
[ "BSD-3-Clause" ]
null
null
null
#include <iostream> #include <vector> int main() { std::vector<int> ivec = {0, 1, 2, 3, 4, 5}; for (auto i : ivec) { std::cout << i << ", "; } std::cout << std::endl; for(auto j : {0,2,4,6,8,10}) { std::cout << j << ", "; } std::cout << std::endl; }
13.333333
45
0.457143
mwerlberger
e7e7d00961663b3da155a1b0d6692c1f5ef3e367
3,547
cpp
C++
src/IntroductionLevel.cpp
dantehemerson/Arkanoid-Returns
478ae8df92f978dce95fd227a9047e83dea9a855
[ "MIT" ]
3
2018-09-25T07:59:06.000Z
2019-08-24T09:35:43.000Z
src/IntroductionLevel.cpp
dantehemerson/Arkanoid-Returns
478ae8df92f978dce95fd227a9047e83dea9a855
[ "MIT" ]
1
2018-05-08T11:34:05.000Z
2018-05-08T11:34:05.000Z
src/IntroductionLevel.cpp
dantehemerson/Arkanoid-Returns
478ae8df92f978dce95fd227a9047e83dea9a855
[ "MIT" ]
1
2020-06-07T21:23:24.000Z
2020-06-07T21:23:24.000Z
#include "IntroductionLevel.hpp" #include <allegro5/allegro_font.h> #include <allegro5/allegro_primitives.h> #include "Gallery.hpp" #include "R.hpp" #include "Level.hpp" const int IntroductionLevel::waitTime = 85; const int IntroductionLevel::animationStart = 310; IntroductionLevel::IntroductionLevel(Level* level)...
29.31405
176
0.674373
dantehemerson
e7eaa66765589fa41db55d729629e7030c75eb31
2,258
cc
C++
src/Rtsp.cc
philberty/overflow
7370cd4d145f290c32a8c020ae849241ac9b1082
[ "MIT" ]
4
2020-03-27T21:17:06.000Z
2022-02-11T15:20:17.000Z
src/Rtsp.cc
philberty/overflow
7370cd4d145f290c32a8c020ae849241ac9b1082
[ "MIT" ]
null
null
null
src/Rtsp.cc
philberty/overflow
7370cd4d145f290c32a8c020ae849241ac9b1082
[ "MIT" ]
null
null
null
// Copyright (c) 2017 Philip Herron. // // 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...
28.582278
80
0.666076
philberty
e7ef2ea6b47ffd901a7f1941bb904ee11833a8f1
2,523
cpp
C++
sys/dev/arm/armv7m-systick/armv7m-systick.cpp
apexrtos/apex
9538ab2f5b974035ca30ca8750479bdefe153047
[ "0BSD" ]
15
2020-05-08T06:21:58.000Z
2021-12-11T18:10:43.000Z
sys/dev/arm/armv7m-systick/armv7m-systick.cpp
apexrtos/apex
9538ab2f5b974035ca30ca8750479bdefe153047
[ "0BSD" ]
11
2020-05-08T06:46:37.000Z
2021-03-30T05:46:03.000Z
sys/dev/arm/armv7m-systick/armv7m-systick.cpp
apexrtos/apex
9538ab2f5b974035ca30ca8750479bdefe153047
[ "0BSD" ]
5
2020-08-31T17:05:03.000Z
2021-12-08T07:09:00.000Z
#include "init.h" #include <arch/mmio.h> #include <atomic> #include <cpu.h> #include <debug.h> #include <irq.h> #include <sections.h> #include <timer.h> #include <v7m/bitfield.h> namespace { /* * SysTick registers */ struct syst { union csr { using S = uint32_t; struct { S r; }; bitfield::armbit<S, bool, 16...
20.02381
72
0.673405
apexrtos
e7ef4093ec6fb006886a0faa41cb7bee2a9779c5
5,692
cpp
C++
Source/SOrb/SaveFiles/SoWorldStateTypes.cpp
LaudateCorpus1/WarriOrb
7c20320484957e1a7fe0c09ab520967849ba65f1
[ "MIT" ]
200
2021-03-17T11:15:05.000Z
2022-03-31T23:45:09.000Z
Source/SOrb/SaveFiles/SoWorldStateTypes.cpp
LaudateCorpus1/WarriOrb
7c20320484957e1a7fe0c09ab520967849ba65f1
[ "MIT" ]
null
null
null
Source/SOrb/SaveFiles/SoWorldStateTypes.cpp
LaudateCorpus1/WarriOrb
7c20320484957e1a7fe0c09ab520967849ba65f1
[ "MIT" ]
38
2021-03-17T13:29:18.000Z
2022-03-04T19:32:52.000Z
// Copyright (c) Csaba Molnar & Daniel Butum. All Rights Reserved. #pragma once #include "SoWorldStateTypes.h" #include "Basic/Helpers/SoStringHelper.h" #include "DlgHelper.h" #include "Levels/SoLevelHelper.h" DEFINE_LOG_CATEGORY_STATIC(LogSoWorldStateTypes, All, All); /////////////////////////////////////////////...
33.093023
151
0.56272
LaudateCorpus1
e7f4aa77455816c3abbe4c34adbf962e940377f5
6,411
cpp
C++
source/backend/cpu/CPUGridSample.cpp
zhangzan1997/MNN
2860411058fcd5f5d4848b92b571276bda00e12b
[ "Apache-2.0" ]
1
2021-06-01T03:02:29.000Z
2021-06-01T03:02:29.000Z
source/backend/cpu/CPUGridSample.cpp
zhangzan1997/MNN
2860411058fcd5f5d4848b92b571276bda00e12b
[ "Apache-2.0" ]
null
null
null
source/backend/cpu/CPUGridSample.cpp
zhangzan1997/MNN
2860411058fcd5f5d4848b92b571276bda00e12b
[ "Apache-2.0" ]
null
null
null
// // CPUGridSample.cpp // MNN // // Created by MNN on 2021/03/24. // Copyright © 2018, Alibaba Group Holding Limited // #include "backend/cpu/CPUGridSample.hpp" #include <math.h> #include <string.h> #include "core/Concurrency.h" #include <algorithm> #include "backend/cpu/CPUBackend.hpp" #include "backend/cpu/comp...
37.057803
124
0.599282
zhangzan1997
e7f92df8112aa20a087be331e4f1abdf21c18529
2,000
cpp
C++
src/diskFile.cpp
Rocik/btree-file-index
04cb787c903a18e606b2f03f0cce345d879086f5
[ "MIT" ]
null
null
null
src/diskFile.cpp
Rocik/btree-file-index
04cb787c903a18e606b2f03f0cce345d879086f5
[ "MIT" ]
null
null
null
src/diskFile.cpp
Rocik/btree-file-index
04cb787c903a18e606b2f03f0cce345d879086f5
[ "MIT" ]
null
null
null
#include <iostream> #include <memory> #include <cassert> #include <cstring> #include "diskFile.h" int DiskFile::statRead = 0; int DiskFile::statWrite = 0; DiskFile::DiskFile(string filename, int pageSize) : filename(filename), pageSizeInBytes(pageSize) { binaryInOut = fstream::in | fstream::out | fstream::bina...
21.73913
79
0.7145
Rocik
e7fdaaa3a320a23f262e7979ba908fd2b33a70a8
3,978
hxx
C++
main/comphelper/inc/comphelper/servicehelper.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/comphelper/inc/comphelper/servicehelper.hxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/comphelper/inc/comphelper/servicehelper.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...
39
157
0.685772
Grosskopf
e7fe31c77b69ffc52b7c6444965fa827a1a14997
427
cpp
C++
src/compete/hackerrank/domains/algorithms/implementation/fair-rations.cpp
kinshuk4/algorithm-cpp
4cd81539399d1e745c55625a68b399248d25af66
[ "MIT" ]
null
null
null
src/compete/hackerrank/domains/algorithms/implementation/fair-rations.cpp
kinshuk4/algorithm-cpp
4cd81539399d1e745c55625a68b399248d25af66
[ "MIT" ]
null
null
null
src/compete/hackerrank/domains/algorithms/implementation/fair-rations.cpp
kinshuk4/algorithm-cpp
4cd81539399d1e745c55625a68b399248d25af66
[ "MIT" ]
null
null
null
/* fair-rations.cpp Fair Rations */ #include <iostream> using namespace std; int b[1000]; int main() { int n, cnt = 0; cin >> n; for (int i = 0; i < n; i++) { cin >> b[i]; } for (int i = 0; i < n; i++) { if (b[i] % 2 == 1 && i + 1 < n) { b[i]++; b[i + 1]++; cnt += 2; } }...
14.233333
37
0.393443
kinshuk4
e7fef3d6df5d8d706514527c0023aa049decc9c9
6,986
cpp
C++
storage/tests/EvictionPolicy_unittest.cpp
Hacker0912/quickstep-datalog
1de22e7ab787b5efa619861a167a097ff6a4f549
[ "Apache-2.0" ]
82
2016-04-18T03:59:06.000Z
2019-02-04T11:46:08.000Z
storage/tests/EvictionPolicy_unittest.cpp
Hacker0912/quickstep-datalog
1de22e7ab787b5efa619861a167a097ff6a4f549
[ "Apache-2.0" ]
265
2016-04-19T17:52:43.000Z
2018-10-11T17:55:08.000Z
storage/tests/EvictionPolicy_unittest.cpp
Hacker0912/quickstep-datalog
1de22e7ab787b5efa619861a167a097ff6a4f549
[ "Apache-2.0" ]
68
2016-04-18T05:00:34.000Z
2018-10-30T12:41:02.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 you under the Apache License, Version 2.0 (the * "License"); you...
34.245098
110
0.68623
Hacker0912
f0023820823cf54a5a0e857940730910d797df64
4,136
cpp
C++
tool/procedural/distributedsquaregenerator.cpp
monadgroup/sy17
2901438fcca6be69d30ff9c316097deb37a85613
[ "MIT" ]
18
2021-10-04T14:05:28.000Z
2021-12-26T21:18:06.000Z
tool/procedural/distributedsquaregenerator.cpp
monadgroup/sy17
2901438fcca6be69d30ff9c316097deb37a85613
[ "MIT" ]
null
null
null
tool/procedural/distributedsquaregenerator.cpp
monadgroup/sy17
2901438fcca6be69d30ff9c316097deb37a85613
[ "MIT" ]
null
null
null
#include "distributedsquaregenerator.h" #include "util.h" using namespace monad; DistributedSquareGenerator::DistributedSquareGenerator(ivec2 size) : size(size) { cells = new bool*[size.y]; for (auto y = 0; y < size.y; y++) { cells[y] = new bool[size.x]; } maxSize = size.x > size.y ? size.x :...
29.126761
83
0.525145
monadgroup
f006e32d05ab5161b8d32f645e442589754ef14a
4,233
cc
C++
google/cloud/bigquery/samples/read.cc
orinem/google-cloud-cpp
c43f73e9abeb2b9d8a6e99f7d9750cba37f2f6b1
[ "Apache-2.0" ]
5
2019-10-24T04:58:21.000Z
2021-06-04T06:15:38.000Z
google/cloud/bigquery/samples/read.cc
orinem/google-cloud-cpp
c43f73e9abeb2b9d8a6e99f7d9750cba37f2f6b1
[ "Apache-2.0" ]
24
2019-10-14T12:33:41.000Z
2020-04-16T19:17:34.000Z
google/cloud/bigquery/samples/read.cc
orinem/google-cloud-cpp
c43f73e9abeb2b9d8a6e99f7d9750cba37f2f6b1
[ "Apache-2.0" ]
10
2019-10-12T00:35:55.000Z
2021-10-07T21:31:13.000Z
// Copyright 2019 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
33.330709
80
0.649894
orinem
f008b30f13c42e4f41bc21dea77c7bc5a1d8356b
15,718
cpp
C++
test/LlmQtLocaleLanguageManager.cpp
nyue/locale-language-manager-Qt
74ae29a9fbaa083eeda0e40c9f3440cbd712744a
[ "MIT" ]
5
2019-06-08T17:50:58.000Z
2022-02-09T00:02:06.000Z
test/LlmQtLocaleLanguageManager.cpp
nyue/locale-language-manager-Qt
74ae29a9fbaa083eeda0e40c9f3440cbd712744a
[ "MIT" ]
null
null
null
test/LlmQtLocaleLanguageManager.cpp
nyue/locale-language-manager-Qt
74ae29a9fbaa083eeda0e40c9f3440cbd712744a
[ "MIT" ]
1
2021-01-13T00:52:31.000Z
2021-01-13T00:52:31.000Z
#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE // LmQt #include <boost/test/unit_test.hpp> #include "defines_Demo.h" #include "mainSetUp_Demo.h" #include <QApplication> #include <QSettings> #include <QStandardPaths> #include <QLocale> #include <QDir> #include <QString> #include <string> #include <iostream> #...
39.295
151
0.758366
nyue