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 109 | 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 48.5k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a0f3f3b75f368223a128d49a347759e4e33df816 | 1,438 | cpp | C++ | Chapter_04/Source/Chapter_04/BarricksUnit.cpp | CoolHandNick80/Unreal-Engine-4.x-Scripting-with-C-Cookbook---Second-edition | 4ceb7a6f61cb9e1301def08a4a0aa1759c0659be | [
"MIT"
] | 1 | 2020-10-26T10:11:26.000Z | 2020-10-26T10:11:26.000Z | Chapter_04/Source/Chapter_04/BarricksUnit.cpp | CoolHandNick80/Unreal-Engine-4.x-Scripting-with-C-Cookbook---Second-edition | 4ceb7a6f61cb9e1301def08a4a0aa1759c0659be | [
"MIT"
] | null | null | null | Chapter_04/Source/Chapter_04/BarricksUnit.cpp | CoolHandNick80/Unreal-Engine-4.x-Scripting-with-C-Cookbook---Second-edition | 4ceb7a6f61cb9e1301def08a4a0aa1759c0659be | [
"MIT"
] | 1 | 2020-10-26T10:11:36.000Z | 2020-10-26T10:11:36.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "BarricksUnit.h"
#include "Particles/ParticleSystemComponent.h"
// Sets default values
ABarricksUnit::ABarricksUnit()
{
// Set this character to call Tick() every frame. You can turn this off to improve performance if you don... | 27.653846 | 192 | 0.749652 | CoolHandNick80 |
a0f4e25382743a924359a066604f26bc2d114b41 | 158 | cpp | C++ | examples/access-via-this-under-construction.cpp | dawidpilarski/LifetimePresentation | 56d59295b5ace86015072e65bccb3310cc5a435e | [
"BSD-3-Clause"
] | null | null | null | examples/access-via-this-under-construction.cpp | dawidpilarski/LifetimePresentation | 56d59295b5ace86015072e65bccb3310cc5a435e | [
"BSD-3-Clause"
] | null | null | null | examples/access-via-this-under-construction.cpp | dawidpilarski/LifetimePresentation | 56d59295b5ace86015072e65bccb3310cc5a435e | [
"BSD-3-Clause"
] | null | null | null | struct C {
int c;
C() : c(0) { no_opt(); }
};
const C cobj;
void no_opt() {
int i = cobj.c * 100; //unspecified value
std::cout << i << std::endl;
} | 15.8 | 43 | 0.525316 | dawidpilarski |
a0f5a62ecf0c44be91f23e92204d834d6c8bfae8 | 5,122 | cpp | C++ | src/saiga/vision/camera/KittiDataset.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | src/saiga/vision/camera/KittiDataset.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | src/saiga/vision/camera/KittiDataset.cpp | SimonMederer/saiga | ff167e60c50b1cead4d19eb5ab2e93acce8c42a3 | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2017 Darius Rückert
* Licensed under the MIT License.
* See LICENSE file for more information.
*/
#include "KittiDataset.h"
#include "saiga/core/util/ProgressBar.h"
#include "saiga/core/util/easylogging++.h"
#include "saiga/core/util/file.h"
#include "saiga/core/util/fileChecker.h"
#include "s... | 28.614525 | 106 | 0.544319 | SimonMederer |
a0f6a90104d0eea3dff399517fc88b84b3914b4c | 9,116 | cpp | C++ | WebKit2-7606.2.104.1.1/WebKit2-7606.2.104.1.1/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.cpp | mlcldh/appleWebKit2 | 39cc42a4710c9319c8da269621844493ab2ccdd6 | [
"MIT"
] | 1 | 2021-05-27T07:29:31.000Z | 2021-05-27T07:29:31.000Z | WebKit2-7606.2.104.1.1/WebKit2-7606.2.104.1.1/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.cpp | mlcldh/appleWebKit2 | 39cc42a4710c9319c8da269621844493ab2ccdd6 | [
"MIT"
] | null | null | null | WebKit2-7606.2.104.1.1/WebKit2-7606.2.104.1.1/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.cpp | mlcldh/appleWebKit2 | 39cc42a4710c9319c8da269621844493ab2ccdd6 | [
"MIT"
] | null | null | null | /*
* This file is part of the WebKit open source project.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later ve... | 32.441281 | 162 | 0.709193 | mlcldh |
a0f935ea1b19f2035a51876111e7b2d8b81018d0 | 2,112 | hpp | C++ | include/linear_algebra/addition_traits_impl.hpp | shogun-toolbox/linger | 953628ef636b7f87f5cdcbc6dd7367a1476ebc39 | [
"BSD-3-Clause"
] | 1 | 2020-04-26T09:45:32.000Z | 2020-04-26T09:45:32.000Z | include/linear_algebra/addition_traits_impl.hpp | shogun-toolbox/linger | 953628ef636b7f87f5cdcbc6dd7367a1476ebc39 | [
"BSD-3-Clause"
] | 2 | 2019-11-12T16:09:31.000Z | 2020-09-09T18:52:43.000Z | include/linear_algebra/addition_traits_impl.hpp | shogun-toolbox/linger | 953628ef636b7f87f5cdcbc6dd7367a1476ebc39 | [
"BSD-3-Clause"
] | 3 | 2019-11-11T15:55:48.000Z | 2020-06-02T20:33:48.000Z | //==================================================================================================
// File: addition_traits_impl.hpp
//
// Summary: This header defines the static member functions of matrix_addition_traits that
// perform the actual arithmetic.
//===============================... | 32 | 106 | 0.516098 | shogun-toolbox |
9d0486e86314187d85d328afb72c6cddbed79843 | 4,663 | cpp | C++ | solid/frame/aio/src/aioerror.cpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 26 | 2015-08-25T16:07:58.000Z | 2019-07-05T15:21:22.000Z | solid/frame/aio/src/aioerror.cpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 5 | 2016-10-15T22:55:15.000Z | 2017-09-19T12:41:10.000Z | solid/frame/aio/src/aioerror.cpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 5 | 2016-09-15T10:34:52.000Z | 2018-10-30T11:46:46.000Z | // solid/frame/aio/src/aioerror.cpp
//
// Copyright (c) 2016 Valentin Palade (vipalade @ gmail . com)
//
// This file is part of SolidFrame framework.
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.
//
#include "... | 29.512658 | 91 | 0.693759 | vipalade |
9d07f99ee1e5dfbb512cbd22f470000495a773f3 | 131 | hpp | C++ | 75th_RR/cfgFactionClasses.hpp | cptbassbeard/Valhalla | 56868a4567898750526e1d7a66731f23c1b7d18e | [
"CC0-1.0"
] | null | null | null | 75th_RR/cfgFactionClasses.hpp | cptbassbeard/Valhalla | 56868a4567898750526e1d7a66731f23c1b7d18e | [
"CC0-1.0"
] | null | null | null | 75th_RR/cfgFactionClasses.hpp | cptbassbeard/Valhalla | 56868a4567898750526e1d7a66731f23c1b7d18e | [
"CC0-1.0"
] | null | null | null | class CfgFactionClasses
{
class 75th_RR
{
displayName = "75th Ranger Regiment";
priority = 5;
side = 1;
icon = "";
};
}; | 13.1 | 39 | 0.618321 | cptbassbeard |
9d09ab5479200b17fcdfacb91a37167835f67963 | 49,418 | cpp | C++ | Causality/Foregrounds.cpp | ArcEarth/SrInspection | 63c540d1736e323a0f409914e413cb237f03c5c9 | [
"MIT"
] | 3 | 2016-07-13T18:30:33.000Z | 2020-03-31T22:20:34.000Z | Causality/Foregrounds.cpp | ArcEarth/SrInspection | 63c540d1736e323a0f409914e413cb237f03c5c9 | [
"MIT"
] | null | null | null | Causality/Foregrounds.cpp | ArcEarth/SrInspection | 63c540d1736e323a0f409914e413cb237f03c5c9 | [
"MIT"
] | 5 | 2016-01-16T14:25:28.000Z | 2017-06-12T16:15:18.000Z | #include "pch_bullet.h"
#include <iostream>
#include <numeric>
#include "Foregrounds.h"
#include "CausalityApplication.h"
#include "Common\PrimitiveVisualizer.h"
#include "Common\Extern\cpplinq.hpp"
#include <boost\format.hpp>
using namespace Causality;
using namespace DirectX;
using namespace DirectX::Scene;
using na... | 31.903163 | 251 | 0.68123 | ArcEarth |
9d0a0426a96bc1410fbc389a08ae818d5a5e3071 | 3,796 | cpp | C++ | modules/stitching/perf/perf_estimators.cpp | yo1990/opencv | aef4fab1c8632940d53c694f09466dcd3e72eae2 | [
"BSD-3-Clause"
] | 1 | 2020-05-11T22:26:54.000Z | 2020-05-11T22:26:54.000Z | modules/stitching/perf/perf_estimators.cpp | yo1990/opencv | aef4fab1c8632940d53c694f09466dcd3e72eae2 | [
"BSD-3-Clause"
] | 3 | 2019-08-21T07:13:41.000Z | 2020-06-23T12:35:17.000Z | modules/stitching/perf/perf_estimators.cpp | yo1990/opencv | aef4fab1c8632940d53c694f09466dcd3e72eae2 | [
"BSD-3-Clause"
] | null | null | null | #include "perf_precomp.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/opencv_modules.hpp"
namespace opencv_test
{
using namespace perf;
typedef TestBaseWithParam<tuple<string, string> > bundleAdjuster;
#if defined(HAVE_OPENCV_XFEATURES2D) && defined(OPENCV_ENABLE_NONFREE)
#define TEST_DETECTORS testing::Val... | 37.584158 | 99 | 0.68098 | yo1990 |
9d0b0c274542dcd1e6103378377dd038e647afab | 7,035 | cpp | C++ | adapters-stk/test/stk_interface_test/tScatterSpeed_Epetra.cpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | 1 | 2022-03-22T03:49:50.000Z | 2022-03-22T03:49:50.000Z | adapters-stk/test/stk_interface_test/tScatterSpeed_Epetra.cpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | adapters-stk/test/stk_interface_test/tScatterSpeed_Epetra.cpp | hillyuan/Panzer | 13ece3ea4c145c4d7b6339e3ad6332a501932ea8 | [
"BSD-3-Clause"
] | null | null | null | // STL includes
#include <iostream>
#include <vector>
#include <set>
// Teuchos includes
#include "Teuchos_GlobalMPISession.hpp"
#include "Teuchos_RCP.hpp"
#include "Teuchos_ParameterList.hpp"
#include "Teuchos_FancyOStream.hpp"
#include "Teuchos_TimeMonitor.hpp"
#include <Teuchos_oblackholestream.hpp>
// Intrepid2 i... | 30.855263 | 139 | 0.653021 | hillyuan |
9d0d7e94d62019a219cc2d281bc21e5da19b6856 | 5,179 | cpp | C++ | VulkanEngine/src/internal_buffer.cpp | JorgeVirgos/FinalProject | 5c239f86b126f6eb9625b8d1b36125eb660c298d | [
"MIT"
] | null | null | null | VulkanEngine/src/internal_buffer.cpp | JorgeVirgos/FinalProject | 5c239f86b126f6eb9625b8d1b36125eb660c298d | [
"MIT"
] | null | null | null | VulkanEngine/src/internal_buffer.cpp | JorgeVirgos/FinalProject | 5c239f86b126f6eb9625b8d1b36125eb660c298d | [
"MIT"
] | null | null | null | #include "internal_buffer.h"
#include "render_context.h"
VKE::InternalBuffer& VKE::Buffer::getInternalRsc(VKE::RenderContext* render_ctx) {
return render_ctx->getInternalRsc<VKE::Buffer::internal_class>(*this);
}
VKE::InternalBuffer::InternalBuffer(){
has_been_initialised_ = false;
has_been_allocated_ = false;
... | 32.36875 | 126 | 0.777949 | JorgeVirgos |
9d0fbd5e941c1d6dbd063972b8c56d822ef1f118 | 18,668 | cpp | C++ | coast/wdbase/Context.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/wdbase/Context.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | coast/wdbase/Context.cpp | zer0infinity/CuteForCoast | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the file license.txt.... | 31.694397 | 136 | 0.662953 | zer0infinity |
9d11c7129658aaf50641bd59e68aa5240983cb0f | 2,819 | cpp | C++ | src/tests/sys/test_fdm_lead.cpp | fe5084/mscsim | 2b0025a9e4bda69b0d83147b1e701375fef437f8 | [
"MIT"
] | 1 | 2020-02-11T08:17:23.000Z | 2020-02-11T08:17:23.000Z | src/tests/sys/test_fdm_lead.cpp | fe5084/mscsim | 2b0025a9e4bda69b0d83147b1e701375fef437f8 | [
"MIT"
] | null | null | null | src/tests/sys/test_fdm_lead.cpp | fe5084/mscsim | 2b0025a9e4bda69b0d83147b1e701375fef437f8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <QString>
#include <QtTest>
#include <fdm/sys/fdm_Lead.h>
////////////////////////////////////////////////////////////////////////////////
#define TIME_STEP 0.1
#define TIME_CONSTANT 0.3
////////////////////////////////////////////////////////////////////////////////
using namespace s... | 21.037313 | 84 | 0.346222 | fe5084 |
9d12c26c9dd7a6697c812fa6a6b0019a8217616a | 824 | cpp | C++ | code/data_structures/src/array/1d/operation/firstDuplicate.cpp | baesparza/dataStructuresAndAlgorithms | 3d6e5938f8c25e8e51e845a6e2e87df723e3fa2b | [
"MIT"
] | 1 | 2020-03-15T05:39:45.000Z | 2020-03-15T05:39:45.000Z | code/data_structures/src/array/1d/operation/firstDuplicate.cpp | baesparza/dataStructuresAndAlgorithms | 3d6e5938f8c25e8e51e845a6e2e87df723e3fa2b | [
"MIT"
] | null | null | null | code/data_structures/src/array/1d/operation/firstDuplicate.cpp | baesparza/dataStructuresAndAlgorithms | 3d6e5938f8c25e8e51e845a6e2e87df723e3fa2b | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <unordered_map>
void print(std::vector<int> &arr) {
std::cout << "Array: {";
for (int j = 0; j < arr.size(); j++) std::cout << arr[j] << ",";
std::cout << "}" << std::endl;
}
int firstDupicate(std::vector<int> a) {
// we create an unordered_map, to check... | 22.27027 | 91 | 0.540049 | baesparza |
9d1593e244d99917a52f7d753a6430ad85377934 | 3,123 | cpp | C++ | src/scheme.cpp | ajacocks/browservice | a4568c8af57d174131290402a248abfea9778109 | [
"MIT"
] | 742 | 2020-06-20T15:01:06.000Z | 2022-03-28T11:23:39.000Z | src/scheme.cpp | ajacocks/browservice | a4568c8af57d174131290402a248abfea9778109 | [
"MIT"
] | 70 | 2020-06-23T00:41:22.000Z | 2022-03-28T04:26:12.000Z | src/scheme.cpp | ajacocks/browservice | a4568c8af57d174131290402a248abfea9778109 | [
"MIT"
] | 25 | 2020-06-21T22:54:00.000Z | 2022-03-12T06:12:01.000Z | #include "scheme.hpp"
#include "bookmarks.hpp"
namespace browservice {
namespace {
class StaticResponseResourceHandler : public CefResourceHandler {
public:
StaticResponseResourceHandler(int status, string statusText, string response) {
status_ = status;
statusText_ = move(statusText);
r... | 26.466102 | 90 | 0.610631 | ajacocks |
1dd9ac91774a3a9b97470b2ae50168a1e75a4c8a | 1,844 | cc | C++ | testing/variable_storage/OutputTrial.cc | pgmaginot/DARK_ARTS | f04b0a30dcac911ef06fe0916921020826f5c42b | [
"MIT"
] | null | null | null | testing/variable_storage/OutputTrial.cc | pgmaginot/DARK_ARTS | f04b0a30dcac911ef06fe0916921020826f5c42b | [
"MIT"
] | null | null | null | testing/variable_storage/OutputTrial.cc | pgmaginot/DARK_ARTS | f04b0a30dcac911ef06fe0916921020826f5c42b | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <math.h>
#include <string>
#include "Input_Reader.h"
#include "Cell_Data.h"
#include "Fem_Quadrature.h"
#include "Angular_Quadrature.h"
#include "Quadrule_New.h"
#include "Materials.h"
#include "Intensity_Data.h"
#include "Temperature_Data.h"
#include "Intens... | 29.269841 | 105 | 0.707701 | pgmaginot |
1ddcbfb26479e38b4b32149d302543f4415c393b | 8,890 | cpp | C++ | Nacro/SDK/FN_StatsListItemWIdget_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_StatsListItemWIdget_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_StatsListItemWIdget_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | // Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function StatsListItemWIdget.StatsLis... | 29.052288 | 140 | 0.771429 | Milxnor |
1de45f91923163182ae96433fab67a0f11027076 | 1,039 | cpp | C++ | spruce/src/system/assets.cpp | gergoszaszvaradi/spruce-engine | 8c6a3d38bc5f120cdfa6dfea0dc2d3b9edd65fcb | [
"MIT"
] | null | null | null | spruce/src/system/assets.cpp | gergoszaszvaradi/spruce-engine | 8c6a3d38bc5f120cdfa6dfea0dc2d3b9edd65fcb | [
"MIT"
] | null | null | null | spruce/src/system/assets.cpp | gergoszaszvaradi/spruce-engine | 8c6a3d38bc5f120cdfa6dfea0dc2d3b9edd65fcb | [
"MIT"
] | null | null | null | #include "sprpch.h"
#include "assets.h"
#include "graphics/texture.h"
#include "graphics/shader.h"
namespace spr {
template<>
std::unordered_map<std::string, Ref<Shader>> AssetManager<Shader>::assets;
std::unordered_map<std::string, Ref<Texture>> AssetManager<Texture>::assets;
template<>
SPR_API... | 28.081081 | 84 | 0.595765 | gergoszaszvaradi |
1de70bc3f4fa01c8da0408e0b97caf8479d3fa09 | 8,894 | cpp | C++ | src/VLightCurveWriter.cpp | GernotMaier/Eventdisplay | b244d65856ddc26ea8ef88af53d2b247e8d5936c | [
"BSD-3-Clause"
] | 11 | 2019-12-10T13:34:46.000Z | 2021-08-24T15:39:35.000Z | src/VLightCurveWriter.cpp | Eventdisplay/Eventdisplay | 01ef380cf53a44f95351960a297a2d4f271a4160 | [
"BSD-3-Clause"
] | 53 | 2019-11-19T13:14:36.000Z | 2022-02-16T14:22:27.000Z | src/VLightCurveWriter.cpp | pivosb/Eventdisplay | 6b299a1d3f77ddb641f98a511a37a5045ddd6b47 | [
"BSD-3-Clause"
] | 3 | 2020-05-07T13:52:46.000Z | 2021-06-25T09:49:21.000Z | /* \class VLightCurveWriter
\brief write / print light curves in different formats
*/
#include "VLightCurveWriter.h"
VLightCurveWriter::VLightCurveWriter()
{
fDebug = false;
}
VLightCurveWriter::VLightCurveWriter( vector< VFluxDataPoint > iDataVector )
{
fDebug = false;
setDataVector( iDa... | 31.878136 | 131 | 0.557342 | GernotMaier |
1de7382e867adc85d280d0fe15b2b3b2e6badd67 | 3,447 | hpp | C++ | include/lug/Graphics/Node.hpp | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 275 | 2016-10-08T15:33:17.000Z | 2022-03-30T06:11:56.000Z | include/lug/Graphics/Node.hpp | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 24 | 2016-09-29T20:51:20.000Z | 2018-05-09T21:41:36.000Z | include/lug/Graphics/Node.hpp | Lugdunum3D/Lugdunum3D | b6d6907d034fdba1ffc278b96598eba1d860f0d4 | [
"MIT"
] | 37 | 2017-02-25T05:03:48.000Z | 2021-05-10T19:06:29.000Z | #pragma once
#include <memory>
#include <vector>
#include <lug/Graphics/Export.hpp>
#include <lug/Math/Matrix.hpp>
#include <lug/Math/Quaternion.hpp>
#include <lug/Math/Vector.hpp>
namespace lug {
namespace Graphics {
class LUG_GRAPHICS_API Node {
public:
enum class TransformSpace : uint8_t {
Local,
... | 32.214953 | 184 | 0.680302 | Lugdunum3D |
1de79bcf0ec523a4440cdd50b2845e0cd454843e | 546,113 | cpp | C++ | src/main_4100.cpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | src/main_4100.cpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | src/main_4100.cpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: Oculus.Platform.CAPI/Oculus.Platform.ovrKeyValuePair
#include "Oculus/Platform/CAPI.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-utils.hpp"
#i... | 85.812854 | 397 | 0.793995 | RedBrumbler |
1de9dd987a17339e6f578ef51e50b69b9fcaae31 | 529 | hpp | C++ | include/jln/mp/smp/functional/eval.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 9 | 2020-07-04T16:46:13.000Z | 2022-01-09T21:59:31.000Z | include/jln/mp/smp/functional/eval.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | null | null | null | include/jln/mp/smp/functional/eval.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 1 | 2021-05-23T13:37:40.000Z | 2021-05-23T13:37:40.000Z | #pragma once
#include <jln/mp/smp/contract.hpp>
#include <jln/mp/functional/eval.hpp>
#ifdef __cpp_nontype_template_parameter_class
#if __cpp_nontype_template_parameter_class >= 201806L
namespace jln::mp::smp
{
template <auto F, class C = identity>
using eval = try_contract<mp::eval<F, assume_unary<C>>>;
}
/// ... | 19.592593 | 58 | 0.705104 | jonathanpoelen |
1de9e7aad58c391fbbe3ed91f99ca089063c818d | 3,640 | cpp | C++ | apps/Sync/main.cpp | scivis-exhibitions/OpenSpace | 5b69cf45f110354ecf3bdbcee8cf9d2c75b07e9e | [
"MIT"
] | 489 | 2015-07-14T22:23:10.000Z | 2022-03-30T07:59:47.000Z | apps/Sync/main.cpp | scivis-exhibitions/OpenSpace | 5b69cf45f110354ecf3bdbcee8cf9d2c75b07e9e | [
"MIT"
] | 1,575 | 2016-07-12T18:10:22.000Z | 2022-03-31T20:12:55.000Z | apps/Sync/main.cpp | scivis-exhibitions/OpenSpace | 5b69cf45f110354ecf3bdbcee8cf9d2c75b07e9e | [
"MIT"
] | 101 | 2016-03-01T02:22:01.000Z | 2022-02-25T15:36:27.000Z | /*****************************************************************************************
* *
* OpenSpace *
* ... | 48.533333 | 90 | 0.513187 | scivis-exhibitions |
1deb7cae452e6fd0b8f53771c9c0147ffae65d09 | 2,223 | cpp | C++ | remote/rtRemoteAsyncHandle.cpp | madanwork/pxcore-local | c08e9b7a8b675bab71f6c0771c03f8e416cc9545 | [
"Apache-2.0"
] | null | null | null | remote/rtRemoteAsyncHandle.cpp | madanwork/pxcore-local | c08e9b7a8b675bab71f6c0771c03f8e416cc9545 | [
"Apache-2.0"
] | null | null | null | remote/rtRemoteAsyncHandle.cpp | madanwork/pxcore-local | c08e9b7a8b675bab71f6c0771c03f8e416cc9545 | [
"Apache-2.0"
] | null | null | null | #include "rtRemoteAsyncHandle.h"
#include "rtRemoteEnvironment.h"
#include "rtRemoteMessage.h"
#include "rtRemoteConfig.h"
rtRemoteAsyncHandle::rtRemoteAsyncHandle(rtRemoteEnvironment* env, rtRemoteCorrelationKey k)
: m_env(env)
, m_key(k)
, m_error(RT_ERROR_IN_PROGRESS)
{
RT_ASSERT(m_key != rtGuid::null());
... | 25.848837 | 107 | 0.690958 | madanwork |
1df515b9eaed81ac759569276fa08a03c7f2a7ec | 5,682 | cpp | C++ | RegNRecon/jly_main.cpp | MrJia1997/RenderKinect | 6cc6d6a56ce6a925920e155db5aa6f5239c563e8 | [
"MIT"
] | null | null | null | RegNRecon/jly_main.cpp | MrJia1997/RenderKinect | 6cc6d6a56ce6a925920e155db5aa6f5239c563e8 | [
"MIT"
] | null | null | null | RegNRecon/jly_main.cpp | MrJia1997/RenderKinect | 6cc6d6a56ce6a925920e155db5aa6f5239c563e8 | [
"MIT"
] | null | null | null | /********************************************************************
Main Function for point cloud registration with Go-ICP Algorithm
Last modified: Feb 13, 2014
"Go-ICP: Solving 3D Registration Efficiently and Globally Optimally"
Jiaolong Yang, Hongdong Li, Yunde Jia
International Conference on Computer Vision (ICCV... | 29.440415 | 145 | 0.666491 | MrJia1997 |
1df714549c028f535dae6614b37f8018cef9829f | 10,288 | cpp | C++ | die-tk/linux/ConvertersX11.cpp | thinlizzy/die-tk | eba597d9453318b03e44f15753323be80ecb3a4e | [
"Artistic-2.0"
] | 11 | 2015-11-06T01:35:35.000Z | 2021-05-01T18:34:50.000Z | die-tk/linux/ConvertersX11.cpp | thinlizzy/die-tk | eba597d9453318b03e44f15753323be80ecb3a4e | [
"Artistic-2.0"
] | null | null | null | die-tk/linux/ConvertersX11.cpp | thinlizzy/die-tk | eba597d9453318b03e44f15753323be80ecb3a4e | [
"Artistic-2.0"
] | 2 | 2017-07-06T16:05:51.000Z | 2019-07-04T01:17:15.000Z | #include "ConvertersX11.h"
#include <X11/Xlib.h>
#include <X11/cursorfont.h>
#include <X11/keysym.h>
#include "ResourceManager.h"
#define XES(et) case et: return #et
namespace tk {
std::string xEventToStr(int eventType)
{
switch(eventType) {
case 0: return "error?";
case 1: return "reply?";
XES(KeyPress);
XES(K... | 25.849246 | 67 | 0.679724 | thinlizzy |
1dffe6ef8b8b801df99225f2fb776e66a44daf9c | 1,362 | hpp | C++ | src/gameworld/gameworld/other/bigchatface/bigchatfaceconfig.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 3 | 2021-12-16T13:57:28.000Z | 2022-03-26T07:50:08.000Z | src/gameworld/gameworld/other/bigchatface/bigchatfaceconfig.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | null | null | null | src/gameworld/gameworld/other/bigchatface/bigchatfaceconfig.hpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 1 | 2022-03-26T07:50:11.000Z | 2022-03-26T07:50:11.000Z | #ifndef __BIG_CHATFACE_CONFIG_HPP__
#define __BIG_CHATFACE_CONFIG_HPP__
#include "common/tinyxml/tinyxml.h"
#include "servercommon/serverdef.h"
#include "servercommon/bigchatfacedef.hpp"
#include "servercommon/struct/itemlistparam.h"
#include "servercommon/configbase.h"
#include "servercommon/pugixml/pugixml_adapter.... | 23.894737 | 151 | 0.799559 | mage-game |
3804fa96b4f3f98ebcc7b9ea2b975c0103353172 | 1,997 | cpp | C++ | src/openloco/windows/constructionwnd.cpp | SmallJoker/OpenLoco | f42ed80be8fac5c1c5d122352a212585d54aa71f | [
"MIT"
] | 1 | 2018-02-22T06:03:32.000Z | 2018-02-22T06:03:32.000Z | src/openloco/windows/constructionwnd.cpp | SmallJoker/OpenLoco | f42ed80be8fac5c1c5d122352a212585d54aa71f | [
"MIT"
] | null | null | null | src/openloco/windows/constructionwnd.cpp | SmallJoker/OpenLoco | f42ed80be8fac5c1c5d122352a212585d54aa71f | [
"MIT"
] | 1 | 2022-03-22T01:46:13.000Z | 2022-03-22T01:46:13.000Z | #include "../input.h"
#include "../interop/interop.hpp"
#include "../ui/WindowManager.h"
using namespace openloco::interop;
namespace openloco::ui::windows::construction
{
namespace widget_idx
{
constexpr uint16_t close = 2;
constexpr uint16_t tab_0 = 4;
constexpr uint16_t tab_1 = 5;
... | 27.356164 | 64 | 0.511768 | SmallJoker |
3806eb36a37235df76883397348393cb0ce83aae | 215 | hh | C++ | include/AudioClip.hh | carolinavillam/Lucky-Monkey | 5ddbadf6c604ea00c3384cc42eda9033d6297e7e | [
"MIT"
] | null | null | null | include/AudioClip.hh | carolinavillam/Lucky-Monkey | 5ddbadf6c604ea00c3384cc42eda9033d6297e7e | [
"MIT"
] | null | null | null | include/AudioClip.hh | carolinavillam/Lucky-Monkey | 5ddbadf6c604ea00c3384cc42eda9033d6297e7e | [
"MIT"
] | null | null | null | #pragma once
#include<SFML/Audio.hpp>
class AudioClip
{
private:
sf::SoundBuffer* soundBuffer{};
sf::Sound* sound{};
public:
AudioClip(const char* audioUrl, float volume);
~AudioClip();
void Play();
}; | 13.4375 | 48 | 0.67907 | carolinavillam |
3807451cc62a5a2a55b6f82d8600fd851a4af2ae | 150 | cpp | C++ | Tests/UnitTests/SImpleTest.cpp | wocks1123/cpp_osp_test | 8a8859344ee07d07018393651282fc56aee18557 | [
"MIT"
] | null | null | null | Tests/UnitTests/SImpleTest.cpp | wocks1123/cpp_osp_test | 8a8859344ee07d07018393651282fc56aee18557 | [
"MIT"
] | null | null | null | Tests/UnitTests/SImpleTest.cpp | wocks1123/cpp_osp_test | 8a8859344ee07d07018393651282fc56aee18557 | [
"MIT"
] | null | null | null | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "doctest.h"
#include "Project1/Test.hpp"
TEST_CASE("Simple test")
{
CHECK(Add(2, 3) == 5);
} | 16.666667 | 42 | 0.713333 | wocks1123 |
380aee56336f825f1d0cfeb98929beff4bbfb39f | 5,238 | cpp | C++ | engine/generators/settlements/source/WalledSettlementGenerator.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 1 | 2020-05-24T22:44:03.000Z | 2020-05-24T22:44:03.000Z | engine/generators/settlements/source/WalledSettlementGenerator.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | null | null | null | engine/generators/settlements/source/WalledSettlementGenerator.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | null | null | null | #include "BuildingConfigFactory.hpp"
#include "WalledSettlementGenerator.hpp"
#include "FeatureGenerator.hpp"
#include "RNG.hpp"
#include "SettlementGeneratorUtils.hpp"
#include "TileGenerator.hpp"
using namespace std;
WalledSettlementGenerator::WalledSettlementGenerator(MapPtr new_base_map)
: BaseSettlementGenerator... | 30.811765 | 196 | 0.729477 | sidav |
380b371ae97928e13357dcc72565b96bfccc2c1f | 224 | cpp | C++ | solutions/Medium/137. Single Number II/solution4.cpp | BASARANOMO/leetcode-cpp | f779ec46e672f01cec69077e854d6ba15e451d27 | [
"MIT"
] | null | null | null | solutions/Medium/137. Single Number II/solution4.cpp | BASARANOMO/leetcode-cpp | f779ec46e672f01cec69077e854d6ba15e451d27 | [
"MIT"
] | null | null | null | solutions/Medium/137. Single Number II/solution4.cpp | BASARANOMO/leetcode-cpp | f779ec46e672f01cec69077e854d6ba15e451d27 | [
"MIT"
] | null | null | null | class Solution {
public:
int singleNumber(vector<int>& nums) {
int a = 0, b = 0;
for (int num: nums) {
b = ~a & (b ^ num);
a = ~b & (a ^ num);
}
return b;
}
};
| 18.666667 | 41 | 0.383929 | BASARANOMO |
380d949247a4e4cc47110a19087af3b7fa4fea5b | 663 | cpp | C++ | src/vt/util/StringBuilder.cpp | Pikaju/Veletrix | 9572f37542e0a14198de6aa8ba4d6a4fddafd433 | [
"MIT"
] | null | null | null | src/vt/util/StringBuilder.cpp | Pikaju/Veletrix | 9572f37542e0a14198de6aa8ba4d6a4fddafd433 | [
"MIT"
] | null | null | null | src/vt/util/StringBuilder.cpp | Pikaju/Veletrix | 9572f37542e0a14198de6aa8ba4d6a4fddafd433 | [
"MIT"
] | null | null | null | #include "StringBuilder.h"
namespace vt {
StringBuilder::StringBuilder() : m_main(), m_buffer(), m_bufferSize(1024)
{
}
StringBuilder::~StringBuilder()
{
}
StringBuilder& StringBuilder::append(const String& string)
{
m_buffer += string;
// Append buffer to main, if the maximum buffer size... | 19.5 | 75 | 0.631976 | Pikaju |
380eee22a33fb82fa355036c7325f8e4ecbea6a1 | 6,170 | cpp | C++ | src/rho.cpp | romz-pl/kohn-sham-atom | f8d87850469097ed39ba855b50df46787b1c3114 | [
"MIT"
] | 1 | 2022-02-24T03:48:19.000Z | 2022-02-24T03:48:19.000Z | src/rho.cpp | romz-pl/kohn-sham-atom | f8d87850469097ed39ba855b50df46787b1c3114 | [
"MIT"
] | null | null | null | src/rho.cpp | romz-pl/kohn-sham-atom | f8d87850469097ed39ba855b50df46787b1c3114 | [
"MIT"
] | null | null | null | #include <fstream>
#include <sstream>
#include "rho.h"
#include "rhoinit.h"
#include "constants.h"
#include "approxsolver.h"
#include "gauss.h"
#include "paramdb.h"
//
// Initialization of electron density.
// Proper initialization of electron density could have large impact on the
// convergence of Self Consisten Fi... | 27.918552 | 104 | 0.557536 | romz-pl |
38129f7e8c551cf615552eb79e0bed0a50fbd57c | 983 | cpp | C++ | source/vector/Sort/912sortArray.cpp | Tridu33/myclionarch | d4e41b3465a62a83cbf6c7119401c05009f4b636 | [
"MIT"
] | null | null | null | source/vector/Sort/912sortArray.cpp | Tridu33/myclionarch | d4e41b3465a62a83cbf6c7119401c05009f4b636 | [
"MIT"
] | null | null | null | source/vector/Sort/912sortArray.cpp | Tridu33/myclionarch | d4e41b3465a62a83cbf6c7119401c05009f4b636 | [
"MIT"
] | null | null | null | //quick sort
class Solution {
int partition(vector<int> &nums,int l ,int r){
int pivot = nums[r];
int i = l - 1;
for (int j = l;j<r;j++){
if(nums[j] <= pivot){
i++;
swap(nums[i], nums[j]);
}
}
swap(nums[i + 1], nums[r]);... | 28.085714 | 62 | 0.480163 | Tridu33 |
38147bb11cea0eaf2abd45c5b6e06ad67607a18c | 508 | cpp | C++ | src/telegram/types/pollanswer.cpp | AlexTeos/CustomsForgeBot | 7ac473ea88ded526c9edbc9486967a8a839b6fe2 | [
"MIT"
] | null | null | null | src/telegram/types/pollanswer.cpp | AlexTeos/CustomsForgeBot | 7ac473ea88ded526c9edbc9486967a8a839b6fe2 | [
"MIT"
] | null | null | null | src/telegram/types/pollanswer.cpp | AlexTeos/CustomsForgeBot | 7ac473ea88ded526c9edbc9486967a8a839b6fe2 | [
"MIT"
] | null | null | null | #include "pollanswer.h"
namespace Telegram
{
void readJsonObject(PollAnswer::Ptr& value, const QJsonObject& json, const QString& valueName)
{
if (json.contains(valueName) && json[valueName].isObject())
{
value = PollAnswer::Ptr::create();
QJsonObject object = json[valueName].toObject();
... | 26.736842 | 94 | 0.67126 | AlexTeos |
381498f8076837853e3fccea2eb37d434e91be42 | 144 | cpp | C++ | ProgramStudy/Source/Component/Animation/AnimatorController.cpp | trinhlehainam/ASO_3rd_year_StudyProject | 89c54e42e97cc47af175f61b26a5871bc2a718a0 | [
"MIT"
] | null | null | null | ProgramStudy/Source/Component/Animation/AnimatorController.cpp | trinhlehainam/ASO_3rd_year_StudyProject | 89c54e42e97cc47af175f61b26a5871bc2a718a0 | [
"MIT"
] | null | null | null | ProgramStudy/Source/Component/Animation/AnimatorController.cpp | trinhlehainam/ASO_3rd_year_StudyProject | 89c54e42e97cc47af175f61b26a5871bc2a718a0 | [
"MIT"
] | null | null | null | #include "AnimatorController.h"
bool AnimatorController::HasParameter(const std::string& paramKey) const
{
return paramMap.count(paramKey);
}
| 20.571429 | 72 | 0.791667 | trinhlehainam |
381683a50c346f0b08a894db50593b675c4b1d38 | 8,568 | cpp | C++ | src/fractal/fractalnft.cpp | cryptostiltskin/Espers | 8e5f098f8da47fbf2e207dc0b2ecf0d9b6c3fc13 | [
"MIT"
] | 74 | 2016-09-22T02:53:07.000Z | 2022-01-12T09:08:39.000Z | src/fractal/fractalnft.cpp | BirduIDO/Espers | f287ed5e2e187653b132142d6e66cbe68e8ad9c7 | [
"MIT"
] | 32 | 2016-05-05T12:27:19.000Z | 2021-11-07T21:31:23.000Z | src/fractal/fractalnft.cpp | BirduIDO/Espers | f287ed5e2e187653b132142d6e66cbe68e8ad9c7 | [
"MIT"
] | 56 | 2016-04-13T01:11:20.000Z | 2022-01-03T20:46:01.000Z | // Copyright (c) 2020-2021 The Espers Project/CryptoCoderz Team
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// NOTICE!
//
// This is a completely experimental NFT data storage and retrieval written by
// CryptoCoderz (Jo... | 32.210526 | 150 | 0.622549 | cryptostiltskin |
38190debf42bb9830f46082df81089f50e1a1c00 | 1,118 | cpp | C++ | LinearList/1/main.cpp | Xavi1erW/BUPT_DataStructure | c024bbfcae223f74b75712eb7b7f3a95a75e9484 | [
"MIT"
] | null | null | null | LinearList/1/main.cpp | Xavi1erW/BUPT_DataStructure | c024bbfcae223f74b75712eb7b7f3a95a75e9484 | [
"MIT"
] | null | null | null | LinearList/1/main.cpp | Xavi1erW/BUPT_DataStructure | c024bbfcae223f74b75712eb7b7f3a95a75e9484 | [
"MIT"
] | null | null | null | #include "doubleList.h"
#include "doubleList.cpp"
int main()
{
int test[5] = {1,2,3,4,5};
doubleList<int> list (test, 5);
list.show();
list.insert(3);
cout << "Length:" << list.getLength() << endl;
list.show();
list.insert(10);
list.show();
try{
list.Delete(10);
cout ... | 20.327273 | 54 | 0.449016 | Xavi1erW |
381e58d0d92f9edf2d1b0632f7bfa42666fd1522 | 2,647 | cpp | C++ | src/engine/gui/widgets/checkbox.cpp | Overpeek/Overpeek-Engine | 3df11072378ba870033a19cd09fb332bcc4c466d | [
"MIT"
] | 13 | 2020-01-10T16:36:46.000Z | 2021-08-09T09:24:47.000Z | src/engine/gui/widgets/checkbox.cpp | Overpeek/Overpeek-Engine | 3df11072378ba870033a19cd09fb332bcc4c466d | [
"MIT"
] | 1 | 2020-01-16T11:03:49.000Z | 2020-01-16T11:11:15.000Z | src/engine/gui/widgets/checkbox.cpp | Overpeek/Overpeek-Engine | 3df11072378ba870033a19cd09fb332bcc4c466d | [
"MIT"
] | 1 | 2020-02-06T21:22:47.000Z | 2020-02-06T21:22:47.000Z | #include "checkbox.hpp"
#include "engine/gui/gui_manager.hpp"
#include "engine/graphics/renderer.hpp"
#include "engine/utility/connect_guard_additions.hpp"
#include "button.hpp"
namespace oe::gui
{
Checkbox::Checkbox(Widget* parent, GUI& gui_manager, const info_t& _checkbox_info, value_t& value_ref)
... | 30.079545 | 106 | 0.715527 | Overpeek |
381f157dae543206090ef93f5aaf2e887102be75 | 1,562 | hpp | C++ | boost/range/algorithm/reverse_copy.hpp | jonstewart/boost-svn | 7f6dc0c0cb807b28072c7bdd3d77bb01ab290c59 | [
"BSL-1.0"
] | 1 | 2017-04-08T10:44:28.000Z | 2017-04-08T10:44:28.000Z | boost/range/algorithm/reverse_copy.hpp | jonstewart/boost-svn | 7f6dc0c0cb807b28072c7bdd3d77bb01ab290c59 | [
"BSL-1.0"
] | null | null | null | boost/range/algorithm/reverse_copy.hpp | jonstewart/boost-svn | 7f6dc0c0cb807b28072c7bdd3d77bb01ab290c59 | [
"BSL-1.0"
] | null | null | null | // Copyright Neil Groves 2009. Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
//
// For more information, see http://www.boost.org/libs/range/
//
#ifndef BOOST_RANGE_ALGORIT... | 31.877551 | 85 | 0.774008 | jonstewart |
381f4de1388171bcb62e533b3749d6cb17ba9525 | 760 | cpp | C++ | libs/renderer/src/renderer/lock_flags/from_mode.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/src/renderer/lock_flags/from_mode.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/src/renderer/lock_flags/from_mode.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/renderer/lock_mode.hpp>
#include <sge/renderer/lock_flags/from_mode.hpp>
#include <sg... | 31.666667 | 74 | 0.731579 | cpreh |
3822b1537b3766e69ccaeef0c718774ff40aafef | 819 | cpp | C++ | GameEngine_Prototype/GameEngine_Prototype/AudioListener.cpp | Michaelwolf95/CECS_491_GameEngine_Prototype | d134fa376484d1115bf5af75f062ef44c8e70263 | [
"MIT"
] | 2 | 2019-10-14T03:45:55.000Z | 2020-07-12T08:08:54.000Z | GameEngine_Prototype/GameEngine_Prototype/AudioListener.cpp | Michaelwolf95/CECS_491_GameEngine_Prototype | d134fa376484d1115bf5af75f062ef44c8e70263 | [
"MIT"
] | null | null | null | GameEngine_Prototype/GameEngine_Prototype/AudioListener.cpp | Michaelwolf95/CECS_491_GameEngine_Prototype | d134fa376484d1115bf5af75f062ef44c8e70263 | [
"MIT"
] | 1 | 2019-09-02T03:34:28.000Z | 2019-09-02T03:34:28.000Z | #include "AudioListener.h"
#include "AudioManager.h"
#include "AudioEngine.h"
REGISTER_COMPONENT(AudioListener, "AudioListener")
void AudioListener::Start()
{
AudioManager::getInstance().sound.Set3dListenerAndOrientation(pos, velocity, forward, up);
}
void AudioListener::Update()
{
glm::vec3 p = this->gameObject->... | 21.552632 | 106 | 0.704518 | Michaelwolf95 |
38275942cbb79019ccb677484ae260bd1fe4b887 | 2,955 | cpp | C++ | src/ShortestDistanceFromAllBuildings.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | src/ShortestDistanceFromAllBuildings.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | src/ShortestDistanceFromAllBuildings.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #include "ShortestDistanceFromAllBuildings.hpp"
#include <queue>
#include <climits>
using namespace std;
int ShortestDistanceFromAllBuildings::shortestDistance(vector<vector<int>> &grid) {
if (grid.empty()) return -1;
int m = grid.size();
int n = grid[0].size();
if (n == 0) return -1;
// accum... | 26.150442 | 103 | 0.472081 | yanzhe-chen |
382a435f6606a3ba290dbe9a017cac91767d9403 | 1,712 | cpp | C++ | artifact/storm/src/storm/abstraction/ExplicitQualitativeResultMinMax.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm/abstraction/ExplicitQualitativeResultMinMax.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm/abstraction/ExplicitQualitativeResultMinMax.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | 1 | 2022-02-05T12:39:53.000Z | 2022-02-05T12:39:53.000Z | #include "storm/abstraction/ExplicitQualitativeResultMinMax.h"
#include "storm/abstraction/ExplicitQualitativeResult.h"
namespace storm {
namespace abstraction {
bool ExplicitQualitativeResultMinMax::isExplicit() const {
return true;
}
ExplicitQualitativeResul... | 37.217391 | 95 | 0.676402 | glatteis |
382a4d6954af1e86e2094a0b5a43ac7364587dd5 | 6,007 | cpp | C++ | src/tokenizer.cpp | mihaizh/configparser | 27bc989388b341f967e1fcd5bea90b5ca9ecc3d9 | [
"MIT"
] | null | null | null | src/tokenizer.cpp | mihaizh/configparser | 27bc989388b341f967e1fcd5bea90b5ca9ecc3d9 | [
"MIT"
] | 2 | 2019-04-20T06:28:28.000Z | 2019-04-20T07:32:14.000Z | src/tokenizer.cpp | mihaizh/configparser | 27bc989388b341f967e1fcd5bea90b5ca9ecc3d9 | [
"MIT"
] | null | null | null | #include "tokenizer.h"
#include <cctype> // isalpha, isdigit
namespace configparser
{
namespace detail
{
char tokenizer::peek() const
{
return *m_text_ptr;
}
char tokenizer::peekNext() const
{
if (eof())
{
return 0;
}
return *(m_text_ptr + 1);
}
void tokenizer::consume()
{
++m_text_... | 20.571918 | 74 | 0.493258 | mihaizh |
382d272b6759ddffa178bcdbdcca478211ac18c4 | 566 | cpp | C++ | leetcode/270. Closest Binary Search Tree Value/s2.cpp | zhuohuwu0603/leetcode_cpp_lzl124631x | 6a579328810ef4651de00fde0505934d3028d9c7 | [
"Fair"
] | 787 | 2017-05-12T05:19:57.000Z | 2022-03-30T12:19:52.000Z | leetcode/270. Closest Binary Search Tree Value/s2.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 8 | 2020-03-16T05:55:38.000Z | 2022-03-09T17:19:17.000Z | leetcode/270. Closest Binary Search Tree Value/s2.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 247 | 2017-04-30T15:07:50.000Z | 2022-03-30T09:58:57.000Z | // OJ: https://leetcode.com/problems/closest-binary-search-tree-value/
// Author: github.com/lzl124631x
// Time: O(N)
// Space: O(logN)
// Ref: https://leetcode.com/problems/closest-binary-search-tree-value/discuss/70331/Clean-and-concise-java-solution
class Solution {
public:
int closestValue(TreeNode* root, doubl... | 35.375 | 116 | 0.621908 | zhuohuwu0603 |
382dc7dfb1f5621c2f6f1cb1b08ba5b95220b209 | 1,660 | hxx | C++ | src/interfaces/python/opengm/export_typedes.hxx | amueller/opengm | bf2d0c611ade9bbf1d2ae537fee0df4cb6553777 | [
"Unlicense"
] | 1 | 2020-03-13T20:56:48.000Z | 2020-03-13T20:56:48.000Z | src/interfaces/python/opengm/export_typedes.hxx | amueller/opengm | bf2d0c611ade9bbf1d2ae537fee0df4cb6553777 | [
"Unlicense"
] | null | null | null | src/interfaces/python/opengm/export_typedes.hxx | amueller/opengm | bf2d0c611ade9bbf1d2ae537fee0df4cb6553777 | [
"Unlicense"
] | null | null | null | #ifndef EXPORT_TYPEDES_HXX
#define EXPORT_TYPEDES_HXX
#include <opengm/graphicalmodel/graphicalmodel.hxx>
#include <opengm/functions/potts.hxx>
#include <opengm/utilities/tribool.hxx>
template<class V,class I,class O,class F>
struct GmGen{
typedef opengm::DiscreteSpace<I,I> SpaceType;
typedef opengm::GraphicalM... | 21.558442 | 91 | 0.693976 | amueller |
38301ba828a5fc8c151945c7e49464435f482813 | 3,842 | cpp | C++ | src/planner/plannodes/create_index_plan_node.cpp | AndiLynn/terrier | 6002f8a902d3d0d19bc67998514098f8b41ca264 | [
"MIT"
] | null | null | null | src/planner/plannodes/create_index_plan_node.cpp | AndiLynn/terrier | 6002f8a902d3d0d19bc67998514098f8b41ca264 | [
"MIT"
] | 5 | 2019-04-08T20:47:46.000Z | 2019-04-24T22:11:28.000Z | src/planner/plannodes/create_index_plan_node.cpp | AndiLynn/terrier | 6002f8a902d3d0d19bc67998514098f8b41ca264 | [
"MIT"
] | 1 | 2021-10-08T01:22:25.000Z | 2021-10-08T01:22:25.000Z | #include "planner/plannodes/create_index_plan_node.h"
#include <memory>
#include <string>
#include <utility>
#include <vector>
namespace terrier::planner {
common::hash_t CreateIndexPlanNode::Hash() const {
auto type = GetPlanNodeType();
common::hash_t hash = common::HashUtil::Hash(&type);
// Hash database_oid
... | 32.559322 | 94 | 0.700937 | AndiLynn |
38307f0eb8004b1809fbda1c4d40b1d840d175fe | 671 | cpp | C++ | AtCoder/AtcoderBiginnersSelection/ABC087B.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | AtCoder/AtcoderBiginnersSelection/ABC087B.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | AtCoder/AtcoderBiginnersSelection/ABC087B.cpp | arlechann/atcoder | 1af08efa6d3a0e8c75e4eaf13e1eda994820b9e2 | [
"CC0-1.0"
] | null | null | null | #include <cstdio>
int solve(int a, int b, int c, int x);
int main(void){
int a, b, c, x;
scanf("%d\n", &a);
scanf("%d\n", &b);
scanf("%d\n", &c);
scanf("%d\n", &x);
printf("%d\n", solve(a, b, c, x));
return 0;
}
int solve(int a, int b, int c, int x){
int result = 0;
if (x < 0){
return 0;
}
if (!x){
... | 13.42 | 41 | 0.457526 | arlechann |
38339843c19c44f58e60be5bdeba906a068dd3fc | 4,341 | cpp | C++ | core/log/convergence.cpp | kliegeois/ginkgo | 4defcc07f77828393cc5b4a735a00e50da2cbab0 | [
"BSD-3-Clause"
] | null | null | null | core/log/convergence.cpp | kliegeois/ginkgo | 4defcc07f77828393cc5b4a735a00e50da2cbab0 | [
"BSD-3-Clause"
] | null | null | null | core/log/convergence.cpp | kliegeois/ginkgo | 4defcc07f77828393cc5b4a735a00e50da2cbab0 | [
"BSD-3-Clause"
] | null | null | null | /*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2022, the Ginkgo authors
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 co... | 40.570093 | 78 | 0.696614 | kliegeois |
38361bc7f6ef0d252245256363ab9c9b0ed244d5 | 1,607 | cpp | C++ | src/perf_watcher.cpp | Foomf/Blyss-Server | f6942f740e74a2bc03f305372486aa62d94fb074 | [
"Zlib"
] | null | null | null | src/perf_watcher.cpp | Foomf/Blyss-Server | f6942f740e74a2bc03f305372486aa62d94fb074 | [
"Zlib"
] | null | null | null | src/perf_watcher.cpp | Foomf/Blyss-Server | f6942f740e74a2bc03f305372486aa62d94fb074 | [
"Zlib"
] | null | null | null | #include "perf_watcher.hpp"
#include <spdlog/spdlog.h>
#include "uv_utils.hpp"
namespace blyss::server
{
const uint64_t frame_leeway = 10;
void perf_watcher_timer_callback(uv_timer_t* handle)
{
const auto self = static_cast<perf_watcher*>(handle->data);
self->reset();
}
perf_wat... | 26.344262 | 113 | 0.650902 | Foomf |
3839069263d48f72c2c2355071087f6e8086dbf7 | 3,103 | hpp | C++ | RX600/crca.hpp | hirakuni45/RX | 3fb91bfc8d5282cde7aa00b8bd37f4aad32582d0 | [
"BSD-3-Clause"
] | 56 | 2015-06-04T14:15:38.000Z | 2022-03-01T22:58:49.000Z | RX600/crca.hpp | hirakuni45/RX | 3fb91bfc8d5282cde7aa00b8bd37f4aad32582d0 | [
"BSD-3-Clause"
] | 30 | 2019-07-27T11:03:14.000Z | 2021-12-14T09:59:57.000Z | RX600/crca.hpp | hirakuni45/RX | 3fb91bfc8d5282cde7aa00b8bd37f4aad32582d0 | [
"BSD-3-Clause"
] | 15 | 2017-06-24T11:33:39.000Z | 2021-12-07T07:26:58.000Z | #pragma once
//=====================================================================//
/*! @file
@brief RX600 グループ・CRCA 定義
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2020 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE
*/
... | 33.365591 | 75 | 0.514663 | hirakuni45 |
384156e73e2b6b3d85cdb4a2645adbc76e1f0504 | 1,550 | cpp | C++ | Ch05_Sort/215_Kth_Largest_Element_In_An_Array.cpp | Frodocz/LeetCode101 | 2dfa3c2749e59d44df892300a720fbe070625351 | [
"MIT"
] | null | null | null | Ch05_Sort/215_Kth_Largest_Element_In_An_Array.cpp | Frodocz/LeetCode101 | 2dfa3c2749e59d44df892300a720fbe070625351 | [
"MIT"
] | null | null | null | Ch05_Sort/215_Kth_Largest_Element_In_An_Array.cpp | Frodocz/LeetCode101 | 2dfa3c2749e59d44df892300a720fbe070625351 | [
"MIT"
] | null | null | null | /**
* 5.2 Quick Selection
* 215. Kth Largest Element in an Array(Medium)
*
* Given an integer array nums and an integer k, return the kth largest element in the array.
*
* Note that it is the kth largest element in the sorted order, not the kth distinct element.
*
* Input: nums = [3,2,1,5,6,4], k = 2, Output... | 25 | 93 | 0.495484 | Frodocz |
38423a5734fffc41c486656ddc1339db4ba63e9b | 7,827 | hpp | C++ | Source/CCZ4/CCZ4RHS.impl.hpp | hfinkel/GRChombo | f3f0f0dbcd3368f721eef5d5cea7808f2550d5cf | [
"BSD-3-Clause"
] | null | null | null | Source/CCZ4/CCZ4RHS.impl.hpp | hfinkel/GRChombo | f3f0f0dbcd3368f721eef5d5cea7808f2550d5cf | [
"BSD-3-Clause"
] | null | null | null | Source/CCZ4/CCZ4RHS.impl.hpp | hfinkel/GRChombo | f3f0f0dbcd3368f721eef5d5cea7808f2550d5cf | [
"BSD-3-Clause"
] | null | null | null | /* GRChombo
* Copyright 2012 The GRChombo collaboration.
* Please refer to LICENSE in GRChombo's root directory.
*/
#if !defined(CCZ4RHS_HPP_)
#error "This file should only be included through CCZ4RHS.hpp"
#endif
#ifndef CCZ4RHS_IMPL_HPP_
#define CCZ4RHS_IMPL_HPP_
#include "DimensionDefinitions.hpp"
#include "GRI... | 34.030435 | 80 | 0.54082 | hfinkel |
3845043e7ea7fe041a3f285d61eed2c25469e5bd | 782 | cpp | C++ | code/c++.cpp | zrz1996/ACM-Template | 5bd2999480275ad7e1cffc7c1f2c85fa727f0620 | [
"MIT"
] | 1 | 2017-05-22T02:51:30.000Z | 2017-05-22T02:51:30.000Z | code/c++.cpp | zrz1996/ACM-Template | 5bd2999480275ad7e1cffc7c1f2c85fa727f0620 | [
"MIT"
] | null | null | null | code/c++.cpp | zrz1996/ACM-Template | 5bd2999480275ad7e1cffc7c1f2c85fa727f0620 | [
"MIT"
] | null | null | null | C(n,m)奇偶 如果(n & m) == m,那么为奇数,否则为偶数
欧拉线上的四点中,九点圆圆心到垂心和外心的距离相等,而且重心到外心的距离是重心到垂心距离的一半。
定比分点:P, O, M, PM/MO = t; M = (P + t*O) / (1+t)
求因子和
\sum_{t_1=1}^{n_1} \sum_{t_2=1}^{n_2} \cdots \sum_{t_k=1}^{n_k} d(t_1 t_2 \cdots t_k) = \sum_{\substack{1 \leq t_i \leq n_i \ \textbf{for} \ 1 \leq i \leq k \\ (t_i,t_j)=1 \ \textb... | 25.225806 | 268 | 0.611253 | zrz1996 |
384d8d3c7d44bba5453d7eb64e8bfad9455cde5c | 3,206 | hpp | C++ | stan/math/prim/fun/exp.hpp | detcitty/math | fe99d5f31171edb24bc841a9fa2f082982771d35 | [
"BSD-3-Clause"
] | null | null | null | stan/math/prim/fun/exp.hpp | detcitty/math | fe99d5f31171edb24bc841a9fa2f082982771d35 | [
"BSD-3-Clause"
] | null | null | null | stan/math/prim/fun/exp.hpp | detcitty/math | fe99d5f31171edb24bc841a9fa2f082982771d35 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_PRIM_FUN_EXP_HPP
#define STAN_MATH_PRIM_FUN_EXP_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/functor/apply_scalar_unary.hpp>
#include <stan/math/prim/functor/apply_vector_unary.hpp>
#include <cmath>
#include <complex>
#include <limits>
names... | 29.412844 | 80 | 0.657517 | detcitty |
3853db83326e61731bef128a87042e71cfdfee7b | 442 | cc | C++ | tests/fuzzer/flexbuffers_verifier_fuzzer.cc | Apotell/flatbuffers | b92bb0584d056cd237fa7059702e49617ee156b7 | [
"Apache-2.0"
] | null | null | null | tests/fuzzer/flexbuffers_verifier_fuzzer.cc | Apotell/flatbuffers | b92bb0584d056cd237fa7059702e49617ee156b7 | [
"Apache-2.0"
] | null | null | null | tests/fuzzer/flexbuffers_verifier_fuzzer.cc | Apotell/flatbuffers | b92bb0584d056cd237fa7059702e49617ee156b7 | [
"Apache-2.0"
] | null | null | null | // Copyright 2015 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 <stddef.h>
#include <stdint.h>
#include <string>
#include "flatbuffers/flexbuffers.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data,... | 29.466667 | 73 | 0.748869 | Apotell |
3856fef9c4accc0591b791dca122fb6b163ac890 | 10,647 | cpp | C++ | argCheck/argCheck.cpp | ambiesoft/argCheck | 7726c13491dce8ad440690169eb8aa99a08d8486 | [
"BSD-2-Clause"
] | null | null | null | argCheck/argCheck.cpp | ambiesoft/argCheck | 7726c13491dce8ad440690169eb8aa99a08d8486 | [
"BSD-2-Clause"
] | null | null | null | argCheck/argCheck.cpp | ambiesoft/argCheck | 7726c13491dce8ad440690169eb8aa99a08d8486 | [
"BSD-2-Clause"
] | null | null | null | //BSD 2-Clause License
//
//Copyright (c) 2017, Ambiesoft
//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, th... | 24.645833 | 91 | 0.6646 | ambiesoft |
ee2da4a15c7d17cb69f9740fc5387bbf027943ff | 13,649 | cpp | C++ | code/engine.vc2008/xrGame/ui/UIInventoryUpgradeWnd.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 7 | 2018-03-27T12:36:07.000Z | 2020-06-26T11:31:52.000Z | code/engine.vc2008/xrGame/ui/UIInventoryUpgradeWnd.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 2 | 2018-05-26T23:17:14.000Z | 2019-04-14T18:33:27.000Z | code/engine.vc2008/xrGame/ui/UIInventoryUpgradeWnd.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 3 | 2021-11-01T06:21:26.000Z | 2022-01-08T16:13:23.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : UIInventoryUpgradeWnd.cpp
// Created : 06.10.2007
// Modified : 13.03.2009
// Author : Evgeniy Sokolov, Prishchepa Sergey
// Description : inventory upgrade UI window class implementation
/////////////////////////////////////... | 26.606238 | 123 | 0.693604 | Rikoshet-234 |
ee30343c87d9c12ed1924cddfcb6db060a9b8aac | 3,200 | cpp | C++ | WildMagic4/LibFoundation/Intersection/Wm4IntrPlane3Sphere3.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 23 | 2015-08-13T07:36:00.000Z | 2022-01-24T19:00:04.000Z | WildMagic4/LibFoundation/Intersection/Wm4IntrPlane3Sphere3.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | null | null | null | WildMagic4/LibFoundation/Intersection/Wm4IntrPlane3Sphere3.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 6 | 2015-07-06T21:37:31.000Z | 2020-07-01T04:07:50.000Z | // Geometric Tools, LLC
// Copyright (c) 1998-2010
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 4.10.0 (2009/11/18)
#include "Wm4FoundationPCH.h"
#include "Wm4IntrPlane3S... | 35.955056 | 79 | 0.504688 | rms80 |
ee379876a65fb0fb48fc6ff277e16f5dfb0db337 | 896 | cpp | C++ | src/Consumer.cpp | cieslarmichal/rabbitmq-chatroom | ab538b6c2c1060e34c097d8a4059d97533c717c1 | [
"MIT"
] | null | null | null | src/Consumer.cpp | cieslarmichal/rabbitmq-chatroom | ab538b6c2c1060e34c097d8a4059d97533c717c1 | [
"MIT"
] | null | null | null | src/Consumer.cpp | cieslarmichal/rabbitmq-chatroom | ab538b6c2c1060e34c097d8a4059d97533c717c1 | [
"MIT"
] | null | null | null | #include "Consumer.h"
#include <utility>
#include "ConsoleWriter.h"
namespace chatroom
{
Consumer::Consumer(std::unique_ptr<amqp::AmqpClient> amqpClientInit, std::string userIdInit,
std::string appIdInit, std::string queueNameInit)
: amqpClient{std::move(amqpClientInit)},
userId{std::mo... | 24.216216 | 92 | 0.606027 | cieslarmichal |
ee38e8080ebe29f80fb38b78872150c0898af249 | 2,554 | cpp | C++ | src/Interfaz/Pantalla.cpp | LeonelAguilera/Deeper-Blue | b8df4ab441fa98abfad12ce63b5e961d5af0c15e | [
"MIT"
] | null | null | null | src/Interfaz/Pantalla.cpp | LeonelAguilera/Deeper-Blue | b8df4ab441fa98abfad12ce63b5e961d5af0c15e | [
"MIT"
] | null | null | null | src/Interfaz/Pantalla.cpp | LeonelAguilera/Deeper-Blue | b8df4ab441fa98abfad12ce63b5e961d5af0c15e | [
"MIT"
] | null | null | null | #include "freeglut.h"
#include <math.h>
#include <iostream>
#include <stdlib.h>
#include <ctime>
#include "Controles.h"
#include "ETSIDI.h"
#include "Inicio.h"
#include "Pantalla.h"
#include "Interfaz.h"
using namespace std;
pantalla::pantalla() {
this->ancho = 35;
this->alto = 20;
this->rojo = 255... | 26.329897 | 77 | 0.673453 | LeonelAguilera |
ee42d13378ce80fa7a323d04cfb42b6343ae787a | 8,691 | cpp | C++ | source/tools/ToolUnitTests/internal_exception_handler_app_lin.cpp | ganboing/pintool | ece4788ffded47124b1c9b203707cc255dbaf20f | [
"Intel"
] | 1 | 2017-06-06T16:02:31.000Z | 2017-06-06T16:02:31.000Z | source/tools/ToolUnitTests/internal_exception_handler_app_lin.cpp | ganboing/pintool | ece4788ffded47124b1c9b203707cc255dbaf20f | [
"Intel"
] | null | null | null | source/tools/ToolUnitTests/internal_exception_handler_app_lin.cpp | ganboing/pintool | ece4788ffded47124b1c9b203707cc255dbaf20f | [
"Intel"
] | null | null | null | /*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2016 Intel 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 copyr... | 33.298851 | 127 | 0.660338 | ganboing |
ee4359e3a94a0129cc28d6fee906f4081e9f591e | 12,042 | cc | C++ | platforms/unity/unity.cc | seba10000/resonance-audio | e1923fe6fe733ae4d3c8460ff883c87e2ad05d6b | [
"Apache-2.0"
] | 396 | 2018-03-14T09:55:52.000Z | 2022-03-27T14:58:38.000Z | platforms/unity/unity.cc | seba10000/resonance-audio | e1923fe6fe733ae4d3c8460ff883c87e2ad05d6b | [
"Apache-2.0"
] | 46 | 2018-04-18T17:14:29.000Z | 2022-02-19T21:35:57.000Z | platforms/unity/unity.cc | seba10000/resonance-audio | e1923fe6fe733ae4d3c8460ff883c87e2ad05d6b | [
"Apache-2.0"
] | 96 | 2018-03-14T17:20:50.000Z | 2022-03-03T01:12:37.000Z | /*
Copyright 2018 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 35.627219 | 80 | 0.728617 | seba10000 |
ee441a7ff481ecd2eaa1ada8259930d97c4c0e29 | 1,252 | cpp | C++ | src/rendering/MeshFactory.cpp | MuniuDev/SpaceRush | 5a32ae5ca0ddcc3682a63ef0c0f3c534b921ce36 | [
"MIT"
] | null | null | null | src/rendering/MeshFactory.cpp | MuniuDev/SpaceRush | 5a32ae5ca0ddcc3682a63ef0c0f3c534b921ce36 | [
"MIT"
] | null | null | null | src/rendering/MeshFactory.cpp | MuniuDev/SpaceRush | 5a32ae5ca0ddcc3682a63ef0c0f3c534b921ce36 | [
"MIT"
] | null | null | null | /*
* Copyright by Michal Majczak, 2016
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* Author: Michal Majczak <michal.majczak92@gmail.com>
*/
#include "rendering/MeshFactory.hpp"
#include "rendering/MeshData.hpp"
MeshFactory &MeshFactory::GetInstance() {
static MeshFactory... | 27.217391 | 80 | 0.63099 | MuniuDev |
ee487d40d5949f71594c8685da707df6978c133e | 3,166 | hpp | C++ | include/xul/util/ptime_counter.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | 2 | 2018-03-16T07:06:48.000Z | 2018-04-02T03:02:14.000Z | include/xul/util/ptime_counter.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | null | null | null | include/xul/util/ptime_counter.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | 1 | 2019-08-12T05:15:29.000Z | 2019-08-12T05:15:29.000Z | #pragma once
#include <xul/util/ptime.hpp>
#include <xul/std/strings.hpp>
#include <boost/config.hpp>
#include <boost/static_assert.hpp>
#include <stdint.h>
namespace xul {
class ptime_counter
{
public:
ptime_counter()
{
sync();
}
explicit ptime_counter(const boost::posix_time::ptime& t) : ... | 20.037975 | 79 | 0.61434 | hindsights |
ee4c54c9194aabeabfb2223ea9c244f4796bbf54 | 480 | cpp | C++ | baekjoon/4673.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | 1 | 2019-07-15T00:27:37.000Z | 2019-07-15T00:27:37.000Z | baekjoon/4673.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | null | null | null | baekjoon/4673.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | null | null | null | #include<stdio.h>
int pow10(int x){
int prod = 1;
for (int i=0;i<x;i++){
prod *= 10;
}
return prod;
}
int d(int n){
int sum = n;
int i = 0;
while (1){
if (n >= pow10(i)){
sum += n % pow10(i+1)/pow10(i);
i++;
}
else{
return sum;
}
}
}
int main(void){
int arr[200... | 12.307692 | 37 | 0.427083 | 3-24 |
ee5163f6688dce211845577c668c980e453285fd | 3,737 | cpp | C++ | src/backends/cl/test/Fp16SupportTest.cpp | korabelnikov/armnn | 8c3259fa007d43fcc5ea56fe6928526dbe79f3c0 | [
"MIT"
] | null | null | null | src/backends/cl/test/Fp16SupportTest.cpp | korabelnikov/armnn | 8c3259fa007d43fcc5ea56fe6928526dbe79f3c0 | [
"MIT"
] | null | null | null | src/backends/cl/test/Fp16SupportTest.cpp | korabelnikov/armnn | 8c3259fa007d43fcc5ea56fe6928526dbe79f3c0 | [
"MIT"
] | null | null | null | //
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include <armnn/Descriptors.hpp>
#include <armnn/IRuntime.hpp>
#include <armnn/INetwork.hpp>
#include <Half.hpp>
#include <Graph.hpp>
#include <Optimizer.hpp>
#include <backendsCommon/CpuTensorHandle.hpp>
#include <boost/core/ign... | 33.666667 | 107 | 0.732138 | korabelnikov |
ee517b57c817336d7f94399562147e452ef994d1 | 340 | hh | C++ | include/utils.hh | Stalker2106x/Mini8BVM | d384ad30f6c870b32aa8e4b9d00705a1406779ad | [
"MIT"
] | 1 | 2021-11-30T06:52:58.000Z | 2021-11-30T06:52:58.000Z | include/utils.hh | Stalker2106x/Mini8BVM | d384ad30f6c870b32aa8e4b9d00705a1406779ad | [
"MIT"
] | null | null | null | include/utils.hh | Stalker2106x/Mini8BVM | d384ad30f6c870b32aa8e4b9d00705a1406779ad | [
"MIT"
] | null | null | null | #ifndef UTILS_HH_
#define UTILS_HH_
#include <string>
#include "config.h"
#define HEX_DELIM 'x'
#define BIN_DELIM 'b'
long long int int128FromString(std::string str);
template <wordSizeType WordSize>
std::string binStringFromInt128(long long int value)
{
return (std::bitset<WordSize>(value).to_string());
}
#en... | 18.888889 | 54 | 0.738235 | Stalker2106x |
ee52224c99fdfec2563dad899f89884ef4240be6 | 6,017 | cpp | C++ | source/EvalVar.cpp | xzrunner/shadergraph | a5bf002b40738010ef4d9870f507d4faf07ba893 | [
"MIT"
] | 1 | 2018-12-04T15:32:42.000Z | 2018-12-04T15:32:42.000Z | source/EvalVar.cpp | xzrunner/shadergraph | a5bf002b40738010ef4d9870f507d4faf07ba893 | [
"MIT"
] | null | null | null | source/EvalVar.cpp | xzrunner/shadergraph | a5bf002b40738010ef4d9870f507d4faf07ba893 | [
"MIT"
] | null | null | null | #include "shadergraph/EvalVar.h"
#include "shadergraph/Variant.h"
#include "shadergraph/ValueImpl.h"
#include "shadergraph/block/Float2.h"
#include <cpputil/StringHelper.h>
#include <assert.h>
namespace shadergraph
{
std::shared_ptr<Value>
EvalVar::ValueTrans(const Variant& var, VarType type)
{
if (var.type ==... | 28.516588 | 156 | 0.551105 | xzrunner |
ee55f79803751596b833422ab0647a76385770d0 | 78 | hpp | C++ | src/boost_numeric_odeint_stepper_generation_generation_rosenbrock4.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_numeric_odeint_stepper_generation_generation_rosenbrock4.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_numeric_odeint_stepper_generation_generation_rosenbrock4.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/numeric/odeint/stepper/generation/generation_rosenbrock4.hpp>
| 39 | 77 | 0.858974 | miathedev |
ee5a71d6030465c1a479905f845f5fe986fa4be9 | 10,563 | cpp | C++ | src/shape2d.cpp | myociss/pathfinder | 4c0b14e074cfc8f0e41836abc056989f2d465c12 | [
"MIT"
] | null | null | null | src/shape2d.cpp | myociss/pathfinder | 4c0b14e074cfc8f0e41836abc056989f2d465c12 | [
"MIT"
] | null | null | null | src/shape2d.cpp | myociss/pathfinder | 4c0b14e074cfc8f0e41836abc056989f2d465c12 | [
"MIT"
] | null | null | null | #include "shape2d.hpp"
#include <iostream>
#define _USE_MATH_DEFINES
#include <math.h>
//#include <sort.h>
using namespace Eigen;
using namespace std;
Shape2d::Shape2d(unsigned long int _id, int _numVertices, double _weight){
id=_id;
numVertices=_numVertices;
weight=_weight;
vertices.reserve(numVerti... | 26.809645 | 168 | 0.673672 | myociss |
ee5dc5830dbf201725bed848402eadf34cc54fae | 2,343 | hpp | C++ | Siv3D/src/Siv3D/Shader/GL/CShader_GL.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D/Shader/GL/CShader_GL.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D/Shader/GL/CShader_GL.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | 1 | 2019-10-06T17:09:26.000Z | 2019-10-06T17:09:26.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2018 Ryo Suzuki
// Copyright (c) 2016-2018 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <Siv3D/Platform.hpp>
# ... | 24.925532 | 109 | 0.724285 | Fuyutsubaki |
ee602ff754eb713f5ee5f40e7faee640222c1d93 | 5,633 | cpp | C++ | extras/DemFiles/src/GridLib/RecordA.cpp | jebreimo/GridLib | a90a5299512eb01623881c62a1e5f73b9f2c2513 | [
"BSD-2-Clause"
] | null | null | null | extras/DemFiles/src/GridLib/RecordA.cpp | jebreimo/GridLib | a90a5299512eb01623881c62a1e5f73b9f2c2513 | [
"BSD-2-Clause"
] | null | null | null | extras/DemFiles/src/GridLib/RecordA.cpp | jebreimo/GridLib | a90a5299512eb01623881c62a1e5f73b9f2c2513 | [
"BSD-2-Clause"
] | null | null | null | //****************************************************************************
// Copyright © 2020 Jan Erik Breimo. All rights reserved.
// Created by Jan Erik Breimo on 2020-09-27.
//
// This file is distributed under the BSD License.
// License text is included with the source distribution.
//************************... | 39.391608 | 78 | 0.644239 | jebreimo |
ee63df5b7532e903b35e11f31434233845efc52c | 7,464 | cpp | C++ | src/linux/PeripheralBase.cpp | fidoriel/SimpleBLE | 6ffb6bec0624913c47d3bac36370bdd3e2744a15 | [
"MIT"
] | 2 | 2021-07-20T06:27:08.000Z | 2021-07-28T05:47:11.000Z | third_party/SimpleBLE/src/linux/PeripheralBase.cpp | HDPNC/brainflow | ede79fbd5fcc823c1c64bcc3af3e88b4d12177bf | [
"MIT"
] | null | null | null | third_party/SimpleBLE/src/linux/PeripheralBase.cpp | HDPNC/brainflow | ede79fbd5fcc823c1c64bcc3af3e88b4d12177bf | [
"MIT"
] | null | null | null | #include "PeripheralBase.h"
#include <simpleble/Exceptions.h>
#include "Bluez.h"
#include <iostream>
using namespace SimpleBLE;
using namespace std::chrono_literals;
PeripheralBase::PeripheralBase(std::shared_ptr<BluezDevice> device) {
device_ = device;
// NOTE: As Bluez will delete the object if it was ad... | 35.042254 | 113 | 0.703108 | fidoriel |
ee65d7cba452972cc0e47752543c8e8f9f0383e6 | 2,491 | cpp | C++ | snapshotable_allocator_test.cpp | jyaif/snapshotable_allocator | 711dff8d6414265476bf8eb83eece563c0c183a8 | [
"MIT"
] | null | null | null | snapshotable_allocator_test.cpp | jyaif/snapshotable_allocator | 711dff8d6414265476bf8eb83eece563c0c183a8 | [
"MIT"
] | null | null | null | snapshotable_allocator_test.cpp | jyaif/snapshotable_allocator | 711dff8d6414265476bf8eb83eece563c0c183a8 | [
"MIT"
] | null | null | null | #include "application/memory/snapshotable_allocator.h"
#include "application/memory/snapshotable_allocator_impl.h"
#include "third_party/nex_test/src/test.h"
#include <cassert>
#include <cstdio>
template <class T>
void SnapshotTest() {
T sm;
auto snapshot1 = sm.NewEmptySnapshot();
sm.SaveMemoryIntoSnapshot(*sn... | 23.5 | 77 | 0.676435 | jyaif |
ee687c5ca3d58fe09e5bbd2c5682e697ca462a58 | 5,530 | cpp | C++ | Labirinto_AStar/mainwindow.cpp | Bernardo1411/Programacao_Avancada | 5005b60155648872ca9d4f374b3d9ea035aa33a3 | [
"MIT"
] | null | null | null | Labirinto_AStar/mainwindow.cpp | Bernardo1411/Programacao_Avancada | 5005b60155648872ca9d4f374b3d9ea035aa33a3 | [
"MIT"
] | null | null | null | Labirinto_AStar/mainwindow.cpp | Bernardo1411/Programacao_Avancada | 5005b60155648872ca9d4f374b3d9ea035aa33a3 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "labirinto.h"
#include <QFileDialog>
#include <QMessageBox>
#include <chrono>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
status = new QLabel("");
statusBar()->addWidget(stat... | 28.95288 | 95 | 0.55009 | Bernardo1411 |
ee6bc87d34b309446f6f27f37856c10c4747d49f | 781 | cpp | C++ | src/application/gui/propertyeditor/EvSpiceNumberDelegate.cpp | kaabimg/EvLibrary | 47acd8fdb39c05edb843238a61d0faea5ed6ea88 | [
"Unlicense"
] | 2 | 2017-02-01T11:05:26.000Z | 2017-07-10T13:26:29.000Z | src/application/gui/propertyeditor/EvSpiceNumberDelegate.cpp | kaabimg/EvLibrary | 47acd8fdb39c05edb843238a61d0faea5ed6ea88 | [
"Unlicense"
] | null | null | null | src/application/gui/propertyeditor/EvSpiceNumberDelegate.cpp | kaabimg/EvLibrary | 47acd8fdb39c05edb843238a61d0faea5ed6ea88 | [
"Unlicense"
] | null | null | null | #include "EvSpiceNumberDelegate.h"
#include "EvSpiceNumber.h"
#include <QLineEdit>
QWidget *EvSpiceNumberDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const
{
return new QLineEdit(parent);
}
void EvSpiceNumberDelegate::setEditorData(QWidget *editor, const QModelIndex... | 30.038462 | 118 | 0.75032 | kaabimg |
ee7520ad663d352625dd18ec50c6c4a6f7de3337 | 5,754 | hpp | C++ | cpp/Autogarden/include/pins/factory.hpp | e-dang/Autogarden | b15217e5d4755fc028b8dc4255cbdcb77ead80f4 | [
"MIT"
] | null | null | null | cpp/Autogarden/include/pins/factory.hpp | e-dang/Autogarden | b15217e5d4755fc028b8dc4255cbdcb77ead80f4 | [
"MIT"
] | null | null | null | cpp/Autogarden/include/pins/factory.hpp | e-dang/Autogarden | b15217e5d4755fc028b8dc4255cbdcb77ead80f4 | [
"MIT"
] | null | null | null | #pragma once
#include <functional>
#include <pins/logic_input.hpp>
#include <pins/logic_input_pinset.hpp>
#include <pins/logic_output.hpp>
#include <pins/logic_output_pinset.hpp>
#include <pins/terminal.hpp>
#include <pins/terminal_pinset.hpp>
class IPinFactory {
public:
virtual ~IPinFactory() = default;
vir... | 49.603448 | 120 | 0.648766 | e-dang |
ee7667a329239c078ab356a01f4b4b182a551bbf | 978 | cpp | C++ | BeautifulCPPKateGregory/finding.cpp | przet/CppProgramming | 042aff253988b74db47659d36806912ce84dd8bc | [
"MIT"
] | null | null | null | BeautifulCPPKateGregory/finding.cpp | przet/CppProgramming | 042aff253988b74db47659d36806912ce84dd8bc | [
"MIT"
] | null | null | null | BeautifulCPPKateGregory/finding.cpp | przet/CppProgramming | 042aff253988b74db47659d36806912ce84dd8bc | [
"MIT"
] | null | null | null | #include<iostream>
#include<algorithm>
#include<vector>
#include<string>
int main ()
{
std::vector<int> v{1,2,3,5,100,4,7,4};
auto result = std::find(begin(v),end(v),100);
auto resultDeref = *result;
//STL find's return an iterator for generality: not everything
// can be nicely indexed
std::cout<< resultDeref ... | 32.6 | 128 | 0.668712 | przet |
ee7a054aa84f0da0ef691965f7dd37607b2c6777 | 74,489 | cpp | C++ | src/filters/renderer/VideoRenderers/DX9AllocatorPresenter.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | null | null | null | src/filters/renderer/VideoRenderers/DX9AllocatorPresenter.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | 1 | 2019-11-14T04:18:32.000Z | 2019-11-14T04:18:32.000Z | src/filters/renderer/VideoRenderers/DX9AllocatorPresenter.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | null | null | null | /*
* $Id: DX9AllocatorPresenter.cpp 2691 2013-05-13 01:53:19Z aleksoid $
*
* (C) 2003-2006 Gabest
* (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Fre... | 29.606121 | 328 | 0.693592 | chinajeffery |
ee7c8f75e654c1e71fc25e7215f53e3ad4ccd233 | 1,157 | cpp | C++ | src/sleek/driver/context.cpp | Phirxian/sleek-engine | 741d55c8daad67ddf631e8b8fbdced59402d7bda | [
"BSD-2-Clause"
] | null | null | null | src/sleek/driver/context.cpp | Phirxian/sleek-engine | 741d55c8daad67ddf631e8b8fbdced59402d7bda | [
"BSD-2-Clause"
] | null | null | null | src/sleek/driver/context.cpp | Phirxian/sleek-engine | 741d55c8daad67ddf631e8b8fbdced59402d7bda | [
"BSD-2-Clause"
] | null | null | null | #include "context.h"
#include "ogl3/ogl3_context.h"
//#include "ogl4/ogl4_context.h"
//#include "dx11/dx11_context.h"
//#include "dx12/dx12_context.h"
//#include "vk/vk_context.h"
//#include "metal/metal_context.h"
namespace sleek
{
namespace driver
{
context::context(std::shared_ptr<device::Device> ... | 26.295455 | 146 | 0.52204 | Phirxian |
ee83b226b0bab9d284ba20e45397de2342f52711 | 529 | cpp | C++ | src/L/L1338.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/L/L1338.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/L/L1338.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define int long long
#define double long double
using namespace std;
int digitsum(int a){
if(a==0) return 0;
return a%10+digitsum(a/10);
}
bool prime(int n){
if(n==1) return false;
int m=sqrt(n);
for(int i=2;i<=m;i++){
if(n%i==0) return false;
}
return true;
}
main(){
ios::sync_with_s... | 16.53125 | 46 | 0.603025 | wlhcode |
ee85b17c677c5a923ca6f8f0e30e43f6f6c21a77 | 847 | cpp | C++ | luogu/cxx/src/P1551.cpp | HoshinoTented/Solutions | 96fb200c7eb5bce17938aec5ae6efdc43b3fe494 | [
"WTFPL"
] | 1 | 2019-09-13T13:06:27.000Z | 2019-09-13T13:06:27.000Z | luogu/cxx/src/P1551.cpp | HoshinoTented/Solutions | 96fb200c7eb5bce17938aec5ae6efdc43b3fe494 | [
"WTFPL"
] | null | null | null | luogu/cxx/src/P1551.cpp | HoshinoTented/Solutions | 96fb200c7eb5bce17938aec5ae6efdc43b3fe494 | [
"WTFPL"
] | null | null | null | #include <iostream>
struct union_find {
int *arr;
const int length;
union_find(const int &len): arr(new int[len]), length(len) {
for (size_t i = 0; i < len; ++ i) {
arr[i] = i;
}
}
auto ask(const int &x) -> int {
if (arr[x] == x) return x;
return arr[x]... | 18.822222 | 74 | 0.420307 | HoshinoTented |
ee87c6ead491a6fd9f4ae0d17bfe195c8c15039b | 39,084 | cpp | C++ | tests/src/astro/propagators/unitTestHybridArcVariationalEquations.cpp | kimonito98/tudat | c28f2a3e78b8492e2e054ad5e0d1f9ad785cd092 | [
"BSD-3-Clause"
] | null | null | null | tests/src/astro/propagators/unitTestHybridArcVariationalEquations.cpp | kimonito98/tudat | c28f2a3e78b8492e2e054ad5e0d1f9ad785cd092 | [
"BSD-3-Clause"
] | null | null | null | tests/src/astro/propagators/unitTestHybridArcVariationalEquations.cpp | kimonito98/tudat | c28f2a3e78b8492e2e054ad5e0d1f9ad785cd092 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2010-2019, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are permitted exclusively
* under the terms of the Modified BSD license. You should have received
* ... | 52.391421 | 170 | 0.647426 | kimonito98 |
ee8fddf09fb08b761d3fb16e4c3c586edd1e6435 | 5,448 | cpp | C++ | Plain/src/Runtime/Rendering/Techniques/Bloom.cpp | Gaukler/PlainRenderer | cf0f41a2300bee9f29a886230c061776cb29ba5e | [
"MIT"
] | 9 | 2021-04-09T14:07:45.000Z | 2022-03-06T07:51:14.000Z | Plain/src/Runtime/Rendering/Techniques/Bloom.cpp | Gaukler/PlainRenderer | cf0f41a2300bee9f29a886230c061776cb29ba5e | [
"MIT"
] | 14 | 2021-04-10T11:06:06.000Z | 2021-05-07T14:20:34.000Z | Plain/src/Runtime/Rendering/Techniques/Bloom.cpp | Gaukler/PlainRenderer | cf0f41a2300bee9f29a886230c061776cb29ba5e | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Bloom.h"
#include "Utilities/GeneralUtils.h"
#include "Utilities/MathUtils.h"
const int bloomMipCount = 6;
void Bloom::init(const int textureWidth, const int textureHeight) {
// bloom downsample
for (int i = 0; i < bloomMipCount - 1; i++) {
ComputePassDescription desc;
... | 37.833333 | 104 | 0.66116 | Gaukler |
ee90319edee5692142accdcca88e9493ac3c307f | 283 | cpp | C++ | Part1/Chapter1/L1-9.cpp | HarmioneF/LuoguBook_Base | 65637085e951574823749ef2b2584d08aa8e08d6 | [
"MIT"
] | null | null | null | Part1/Chapter1/L1-9.cpp | HarmioneF/LuoguBook_Base | 65637085e951574823749ef2b2584d08aa8e08d6 | [
"MIT"
] | null | null | null | Part1/Chapter1/L1-9.cpp | HarmioneF/LuoguBook_Base | 65637085e951574823749ef2b2584d08aa8e08d6 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
int main() {
double r = 5;
const double PI = 3.141593;
// # define PI 3.14125953
cout << 2 * PI * r << endl;
cout << PI * pow(r, 2) << endl;
cout << 4.0 / 3 * PI * pow(r, 3) << endl;
return 0;
}
| 18.866667 | 45 | 0.522968 | HarmioneF |
ee904debfddbf375b39451bbbe8cb470f732d65e | 108 | cpp | C++ | src/OpenCvSharpExtern/stitching.cpp | kakashasha/opencvsharp | c1f6652cec7ae211e642ae66d17c19b77abc52e7 | [
"BSD-3-Clause"
] | 3,886 | 2015-01-02T15:12:37.000Z | 2022-03-31T02:30:51.000Z | src/OpenCvSharpExtern/stitching.cpp | kakashasha/opencvsharp | c1f6652cec7ae211e642ae66d17c19b77abc52e7 | [
"BSD-3-Clause"
] | 1,110 | 2015-01-15T06:18:25.000Z | 2022-03-30T14:57:26.000Z | src/OpenCvSharpExtern/stitching.cpp | kakashasha/opencvsharp | c1f6652cec7ae211e642ae66d17c19b77abc52e7 | [
"BSD-3-Clause"
] | 1,047 | 2015-01-08T07:14:48.000Z | 2022-03-30T08:54:30.000Z | // ReSharper disable CppUnusedIncludeDirective
#include "stitching.h"
#include "stitching_detail_Matchers.h" | 36 | 46 | 0.842593 | kakashasha |
ee909d77451d31374898118b7f80a71723d2f0f3 | 5,955 | hpp | C++ | include/GlobalNamespace/LiteNetLibConnectionManager_LiteNetLibConnectionParamsBase.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/LiteNetLibConnectionManager_LiteNetLibConnectionParamsBase.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/LiteNetLibConnectionManager_LiteNetLibConnectionParamsBase.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"
// Including type: LiteNetLibConnectionManager
... | 48.024194 | 198 | 0.743913 | RedBrumbler |
ee970101ada6acb51203aae3f54385a5da9b3f8d | 57 | hpp | C++ | tests/core/generator.hpp | jschmold/icarus-prototype | 162a180dc9b9f7db5695480f5b3adff37de8248a | [
"Apache-2.0"
] | null | null | null | tests/core/generator.hpp | jschmold/icarus-prototype | 162a180dc9b9f7db5695480f5b3adff37de8248a | [
"Apache-2.0"
] | null | null | null | tests/core/generator.hpp | jschmold/icarus-prototype | 162a180dc9b9f7db5695480f5b3adff37de8248a | [
"Apache-2.0"
] | null | null | null | #pragma once
namespace GeneratorTests {
void run();
}
| 9.5 | 26 | 0.701754 | jschmold |
eea0321ca981c8b59873da342e9c902423b2cac2 | 885 | cpp | C++ | docs/examples/SampleMapping.cpp | Aschratt/Texturize | bba688d1afd60363f03e02d28e642a63845591d6 | [
"MIT"
] | 11 | 2019-05-17T12:23:12.000Z | 2020-11-12T14:03:23.000Z | docs/examples/SampleMapping.cpp | crud89/Texturize | bba688d1afd60363f03e02d28e642a63845591d6 | [
"MIT"
] | 2 | 2019-04-01T08:37:36.000Z | 2019-04-01T08:49:15.000Z | docs/examples/SampleMapping.cpp | crud89/Texturize | bba688d1afd60363f03e02d28e642a63845591d6 | [
"MIT"
] | 1 | 2019-06-25T01:04:35.000Z | 2019-06-25T01:04:35.000Z | #include <analysis.hpp>
int main(int argc, const char** argv)
{
// Read an image using OpenCV. The name of the image is provided within the first command line parameter.
cv::Mat img = cv::imread(argv[0]);
// Read the uv map, provided by the second command line parameter. Note that uv maps must contain... | 36.875 | 113 | 0.671186 | Aschratt |
eea12b353475f283a6f93b54e0ba46fd6b845413 | 67 | hpp | C++ | src/boost_geometry_strategies_concepts_distance_concept.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_geometry_strategies_concepts_distance_concept.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_geometry_strategies_concepts_distance_concept.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/geometry/strategies/concepts/distance_concept.hpp>
| 33.5 | 66 | 0.850746 | miathedev |
eea725725d18401a09d00238ffb1578ad1e4c11a | 493 | cpp | C++ | my_work/10_sayidan_tek_cift.cpp | korayyalcin1903/c-_work | 1a5f6103aa68ae9a16077d972bfeba1a4272789f | [
"MIT"
] | null | null | null | my_work/10_sayidan_tek_cift.cpp | korayyalcin1903/c-_work | 1a5f6103aa68ae9a16077d972bfeba1a4272789f | [
"MIT"
] | null | null | null | my_work/10_sayidan_tek_cift.cpp | korayyalcin1903/c-_work | 1a5f6103aa68ae9a16077d972bfeba1a4272789f | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
using namespace std;
int main(int argc, char const *argv[])
{
int sayi,teksayac=0,ciftsayac=0;
for(int i=1;i<=10;i++)
{
cout << "Sayi Giriniz=";
cin >> sayi;
if(sayi%2==0)
{
ciftsayac++;
}
else
... | 19.72 | 55 | 0.452333 | korayyalcin1903 |
eeaa82546c579db997933219ce1d466c1bf0d147 | 11,230 | cpp | C++ | applications/ParticlesEditor/src/Objects/EmitterObject.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | applications/ParticlesEditor/src/Objects/EmitterObject.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | applications/ParticlesEditor/src/Objects/EmitterObject.cpp | AluminiumRat/mtt | 3052f8ad0ffabead05a1033e1d714a61e77d0aa8 | [
"MIT"
] | null | null | null | #include <chrono>
#include <Objects/EmitterObject.h>
const std::map<EmitterObject::Shape, QString> EmitterObject::shapeNames =
{ {EmitterObject::CIRCLE_SHAPE, QT_TR_NOOP("Circle")},
{EmitterObject::SPHERE_SHAPE, QT_TR_NOOP("Sphere")}};
const std::map<EmitterObject::Distribution, QString>
... | 32.085714 | 80 | 0.664648 | AluminiumRat |
eeafbd7ec7d5309edc6a0a7eec8f79befd5c3a3f | 13,536 | cpp | C++ | lib/src/AMRElliptic/PetscCompGridVTO.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | 10 | 2018-02-01T20:57:36.000Z | 2022-03-17T02:57:49.000Z | lib/src/AMRElliptic/PetscCompGridVTO.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | 19 | 2018-10-04T21:37:18.000Z | 2022-02-25T16:20:11.000Z | lib/src/AMRElliptic/PetscCompGridVTO.cpp | rmrsk/Chombo-3.3 | f2119e396460c1bb19638effd55eb71c2b35119e | [
"BSD-3-Clause-LBNL"
] | 11 | 2019-01-12T23:33:32.000Z | 2021-08-09T15:19:50.000Z | #ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "PetscCompGridVTO.H"
#include "FluxBox.H"
#include "IntVectSet.H"
#... | 36.192513 | 126 | 0.507018 | rmrsk |
eeb4c7525e77153e9597c4d9737d1b6da2e99324 | 9,657 | hpp | C++ | src/cola/parser/AstBuilder.hpp | Wolff09/seal | c0560204743d1c5f602cfc206ffac32531ea2c06 | [
"MIT"
] | 7 | 2019-10-18T07:24:13.000Z | 2022-01-07T14:01:17.000Z | src/cola/parser/AstBuilder.hpp | Wolff09/seal | c0560204743d1c5f602cfc206ffac32531ea2c06 | [
"MIT"
] | null | null | null | src/cola/parser/AstBuilder.hpp | Wolff09/seal | c0560204743d1c5f602cfc206ffac32531ea2c06 | [
"MIT"
] | 1 | 2019-11-30T01:45:41.000Z | 2019-11-30T01:45:41.000Z | #pragma once
#include <memory>
#include <deque>
#include <unordered_map>
// TODO: import string
#include "antlr4-runtime.h"
#include "CoLaVisitor.h"
#include "cola/ast.hpp"
namespace cola {
class AstBuilder : public cola::CoLaVisitor { // TODO: should this be a private subclass to avoid misuse?
private:
const... | 68.007042 | 170 | 0.780988 | Wolff09 |
eebe45928db19e68e33f304681ba250d82f9c2fb | 2,280 | cpp | C++ | exercises/Perception-Driven_Manipulation/solution_ws/src/collision_avoidance_pick_and_place/src/tasks/detect_box_pick.cpp | JonathanPlasse/industrial_training | 2de2ecbc8d1f7d2b4b724cc6badd003ca2d653d7 | [
"Apache-2.0"
] | 324 | 2015-01-31T07:35:37.000Z | 2022-03-27T09:30:14.000Z | exercises/Perception-Driven_Manipulation/ros1/solution_ws/src/collision_avoidance_pick_and_place/src/tasks/detect_box_pick.cpp | AhmedMounir/industrial_training | e6761c7bee65d3802fee6cf7c99e3113d3dc1af2 | [
"Apache-2.0"
] | 226 | 2015-01-20T17:15:56.000Z | 2022-01-19T04:55:23.000Z | exercises/Perception-Driven_Manipulation/ros1/solution_ws/src/collision_avoidance_pick_and_place/src/tasks/detect_box_pick.cpp | AhmedMounir/industrial_training | e6761c7bee65d3802fee6cf7c99e3113d3dc1af2 | [
"Apache-2.0"
] | 219 | 2015-03-29T03:05:11.000Z | 2022-03-23T11:12:43.000Z | #include <collision_avoidance_pick_and_place/pick_and_place.h>
/* DETECTING BOX PICK POSE
Goal:
- Find the box's position in the world frame using the transform listener.
* this transform is published by the kinect AR-tag perception node
- Save the pose into 'box_pose'.
*/
geometry_msgs::Pose collisi... | 31.232877 | 87 | 0.710965 | JonathanPlasse |
eec0672afc0d69351a2c4dff6f4edaed157d62e5 | 4,490 | hpp | C++ | include/ensmallen_bits/scd/scd_impl.hpp | ElianeBriand/ensmallen | 0f634056d054d100b2a70cb8f15ea9fa38680d10 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2020-04-07T18:50:10.000Z | 2020-04-07T18:50:10.000Z | include/ensmallen_bits/scd/scd_impl.hpp | ElianeBriand/ensmallen | 0f634056d054d100b2a70cb8f15ea9fa38680d10 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | include/ensmallen_bits/scd/scd_impl.hpp | ElianeBriand/ensmallen | 0f634056d054d100b2a70cb8f15ea9fa38680d10 | [
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2019-01-16T16:21:59.000Z | 2019-01-16T16:21:59.000Z | /**
* @file scd_impl.hpp
* @author Shikhar Bhardwaj
*
* Implementation of stochastic coordinate descent.
*
* ensmallen is free software; you may redistribute it and/or modify it under
* the terms of the 3-clause BSD license. You should have received a copy of
* the 3-clause BSD license along with ensmallen. I... | 33.014706 | 79 | 0.69755 | ElianeBriand |
eec071a2cbddfd37d6f8b4116d2e6ad8fd4b5f75 | 15,143 | cpp | C++ | adaptors/emscripten/egl-implementation-emscripten.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | adaptors/emscripten/egl-implementation-emscripten.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | adaptors/emscripten/egl-implementation-emscripten.cpp | pwisbey/dali-adaptor | 21d5e77316e53285fa1e210a93b13cf9889e3b54 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2000-2013 Samsung Electronics Co., Ltd All Rights Reserved
This file is part of Dali Adaptor
PROPRIETARY/CONFIDENTIAL
This software is the confidential and proprietary information of
SAMSUNG ELECTRONICS ("Confidential Information"). You shall not
disclose such Confidential Information and shall use ... | 26.94484 | 263 | 0.695107 | pwisbey |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.