text
stringlengths
7
961k
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "gtest/gtest.h" #include "gmock/gmock.h" // #include "core/framework/customregistry.h" #include "core/framework/session_state.h" #include "core/providers/cpu/controlflow/if.h" #include "test/providers/provider_test...
#include "Globals.h" #include <QMutex> #include <QTime> namespace Thermite { //Our single globals object Globals globals; Globals::Globals(QObject* parent) :QObject(parent) ,mTimeStamp(0) ,mTimeStampMutex(0) { mTimeSinceAppStart = new QTime; mTimeSinceAppStart->start(); mTimeStampMutex = new QMutex;...
// 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: System.Xml.XmlQualifiedName #includ...
#include "gui_state.hpp" #include <cmath> #include <regex> #include <arbor/morph/primitives.hpp> #include <arbor/morph/morphexcept.hpp> #include <arbor/mechcat.hpp> #include <arbor/mechinfo.hpp> #include <arbor/cable_cell.hpp> #include <arbor/cable_cell_param.hpp> #include <arbor/version.hpp> #include <arborio/neurol...
/* * VelocityTuningCommand.h * * Created on: Mar 19, 2018 * Author: anton */ #pragma once #include <vector> #include <Commands/Command.h> #include "../Robot.hpp" class VelocityTuningCommand: public frc::Command { public: VelocityTuningCommand(); void Initialize() override; voi...
class Solution { public: int robVaule; int rob(vector<int>& nums) { robVaule = 0; helpDFS(nums, 0, 0); return robVaule; } void helpDFS(vector<int>& nums, int index, int sum) { if (index >= (nums.size() - 1)) { robVaule = max(robVaule, sum); } for (int i = index; i < nums.size(); ++i) { he...
/* * 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 ...
#include "mock.h" #include <openxr/loader_interfaces.h> IUnityXRTrace* s_Trace = nullptr; MockRuntime* s_runtime = nullptr; #define XR_UNITY_mock_test_SPEC_VERSION 123 #define XR_UNITY_MOCK_TEST_EXTENSION_NAME "XR_UNITY_mock_test" #define XR_UNITY_null_gfx_SPEC_VERSION 1 #define XR_UNITY_NULL_GFX_EXTENSION_NAME "XR_...
// (C) Copyright John Maddock 2007. // Use, modification and distribution are 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) // // This file is machine generated, do not edit by hand // Polynomial evaluation using s...
#include <fstream> #include <sstream> #include <gtest/gtest.h> #include <test/utility.hpp> using cmdstan::test::count_matches; using cmdstan::test::get_path_separator; using cmdstan::test::run_command; using cmdstan::test::run_command_output; TEST(CommandDiagnose, corr_gauss) { std::string path_separator; path_se...
/* * Copyright 2004-present Facebook, 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 applicable law or a...
#include "BulletOBBModel.h" namespace sofa { namespace component { namespace collision { template <class DataTypes> TBulletOBBModel<DataTypes>::TBulletOBBModel() : TOBBModel<DataTypes>() , margin(initData(&margin, (SReal)0.04, "margin","Margin used for collision detection within bullet")) , _bt_cshape...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2015-2017 The DMD Diamond developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/lice...
/** * Copyright 2019-2022 Huawei Technologies Co., Ltd * * 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 applicabl...
/* * Copyright (c) [2020] Huawei Technologies Co., Ltd. All rights reserved. * * OpenArkCompiler is licensed under the Mulan Permissive Software License v2. * You can use this software according to the terms and conditions of the MulanPSL - 2.0. * You may obtain a copy of MulanPSL - 2.0 at: * * https://opensou...
#include <algorithm> #include "allocore/system/al_PeriodicThread.hpp" namespace al{ PeriodicThread::PeriodicThread(double periodSec) : mAutocorrect(0.1) { joinOnDestroy(true); period(periodSec); } PeriodicThread::PeriodicThread(const PeriodicThread& o) : Thread(o), mPeriod(o.mPeriod), mTimeCurr(o.mTimeCurr), mTim...
/* author: s y m o n h a s a n date: 01 / 09 / 2019 */ #include<windows.h> #include <GL/gl.h> #include <GL/glut.h> #include <bits/stdc++.h> using namespace std; bool def_box = false; double ObjX[ 105 ][ 5 ], ObjY[ 105 ][ 5 ]; double gR = 239/255.0, gG = 241/255.0, gB = 243/255.0; // background color double ...
#include "Stage.h" #include "FrameWorkManager.h" #include "Include/Render/SpriteRenderCommand.h" #include "Include/Resource/ResourceManager.h" Stage::Stage() : stageNo_(0) , backGroundSprite_(nullptr) , scroll_(0) { } Stage::~Stage() { } void Stage::Initialize(int stageNo) { switch (stageNo) { c...
/*! @file Adapts `std::array` for use with Hana. @copyright Louis Dionne 2013-2016 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_EXT_STD_ARRAY_HPP #define BOOST_HANA_EXT_STD_ARRAY_HPP #include <boost/ha...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "pch.h" #include "ProfileViewModel.h" #include "ProfileViewModel.g.cpp" #include "EnumEntry.h" #include <LibraryResources.h> #include "../WinRTUtils/inc/Utils.h" #include "../../renderer/base/FontCache.h" using namespace winrt::Windo...
//Primary class arifle_MSBS65_F; class TUO_T_Promet:arifle_MSBS65_F { //AmmoType 30Rnd_65x39_caseless_msbs_mag scope=1; //private=0, protected=1, public=2 class LinkedItems { class LinkedItemsOptic { slot="CowsSlot"; item="optic_ico_01_f"; }; class LinkedItemAcc { slot="PointerSlot...
// Copyright (c) 2020 by Robert Bosch GmbH. 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...
#include "optionsdialog.h" #include "ui_optionsdialog.h" #include "pwrcoinunits.h" #include "monitoreddatamapper.h" #include "netbase.h" #include "optionsmodel.h" #include <QDir> #include <QIntValidator> #include <QLocale> #include <QMessageBox> #include <QRegExp> #include <QRegExpValidator> OptionsDialog::OptionsDi...
/**************************************************************************** Copyright (c) 2013 cocos2d-x.org Copyright (c) 2013-2015 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation...
//============================================================================== // Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
/** \file \author Datta Ramadasan //============================================================================== // Copyright 2015 INSTITUT PASCAL UMR 6602 CNRS/Univ. Clermont II // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE.txt or ...
// // Visualization of Signed Distance Fields // // // https://www.shadertoy.com/view/XsB3Rm // #include <Eigen/Dense> #include <GL/freeglut.h> #include <cuda_gl_interop.h> #include <cuda_profiler_api.h> #include <cuda_runtime.h> #include <driver_functions.h> #include <vector_functions.h> #include <vector_types.h> ...
/************************************************************************ Copyright 2017-2019 eBay Inc. Author/Developer(s): Jung-Sang Ahn Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https:...
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
//wap to input your full name and store in file abc.txt #include<iostream> #include<fstream> #include<string.h> using namespace std; int main() { char name[100]; ofstream ofs; ofs.open("abc.txt"); cout<<"Enter full name"<<endl; cin.getline(name,100); ofs.write(name,strlen(name)); ofs.close(); }
/** * Copyright (C) 2015 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be usef...
// // Created by aedoran on 12/18/19. // #include <cmath> #include "correlation_factor_function.h" #ifdef HAVE_CUDA #define HOSTDEVICE __host__ __device__ #else #define HOSTDEVICE #endif HOSTDEVICE double Linear_f12(double r12, double gamma, double beta) { return r12; } HOSTDEVICE double Linear_f12_a(double r12, ...
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
#include <fstream> #include <iostream> #include <sstream> #include "str.hh" #include "defs.hh" #include "conf.hh" #include "Ngram.hh" using namespace std; int main(int argc, char* argv[]) { try { conf::Config config; config("usage: ngramppl [OPTION...] ARPAFILE INPUT\n") ('r', "use-root-...
// Copyright 2021 The Fuchsia 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 <fuchsia/hardware/clockimpl/c/banjo.h> #include <fuchsia/hardware/platform/bus/c/banjo.h> #include <fuchsia/hardware/platform/bus/cpp/banjo.h> #in...
#if GLM_ARCH & GLM_ARCH_SSE2_BIT #include "type_mat4x4.hpp" #include "../geometric.hpp" #include "../simd/matrix.h" #include <cstring> namespace glm{ namespace detail { # if GLM_CONFIG_ALIGNED_GENTYPES == GLM_ENABLE template<qualifier Q> struct compute_matrixCompMult<4, 4, float, Q, true> { GLM_STATIC_ASSERT(det...
/* * 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 may ...
#include "keyboardnavigator.h" void KeyboardNavigator::resetDimensions(int rows, int cols) { m_rows = rows; m_cols = cols; } int KeyboardNavigator::navigateTo(int indexFrom, Qt::Key keyboardInput) const { auto params = mapKeyToIter(indexFrom, keyboardInput); if (!params.first) return indexFrom; ...
#define NOMINMAX #include <algorithm> #include <fstream> #include <stdexcept> #include <string> #include <string_view> #include <ios> #include <iostream> #include <io.h> #include <fcntl.h> #include "MEIToAVI.hpp" using namespace std::literals; namespace { constexpr std::size_t CacheStorageSize = std::numeric_lim...
//===- Sparsification.cpp - Implementation of sparsification --------------===// // // 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 // //===---------------------------...
/* * 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...
#include "../CommonCommandFlags.h" #include "../Menus.h" #include "../Prefs.h" #include "../Project.h" #include "../commands/CommandContext.h" #include "../commands/CommandManager.h" #include "../toolbars/DeviceToolBar.h" #include <wx/frame.h> // helper functions and classes namespace { } /// Namespace for helper fu...
/* //@HEADER // ************************************************************************ // // Kokkos v. 3.0 // Copyright (2020) National Technology & Engineering // Solutions of Sandia, LLC (NTESS). // // Under the terms of Contract DE-NA0003525 with NTESS, // the U.S. Govern...
/* * DRace, a dynamic data race detector * * Copyright 2018 Siemens AG * * Authors: * Felix Moessbauer <felix.moessbauer@siemens.com> * * SPDX-License-Identifier: MIT */ /** \brief Managed Symbol Resolver (MSR) */ #include "Controller.h" #include "ManagedResolver.h" #include "ProtocolHandler.h" #ifdef EXTS...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include "config.h" #include "vbucketmap.hh" VBucketMap::VBucketMap(Configuration &config) : buckets(new RCPtr<VBucket>[config.getMaxVbuckets()]), bucketDeletion(new Atomic<bool>[config.getMaxVbuckets()]), bucketVersions(new A...
#include<bits/stdc++.h> using namespace std; template<typename T> class graph { public: map<T, list<pair<T,int> > > adjlist; void addEdge(T u, T v, int dist,bool bidirec = 1) { adjlist[u].push_back(make_pair(v, dist)); if (bidirec) adjlist[v].push_back(make_pair(u, dist)); } void print_adj() { ...
class Solution { public: int sum[1001]; int specialArray(vector<int>& ar) { int n = ar.size(); for( int i = 0 ; i < n ; i++ ) sum[ar[i]]++; for( int i = 1 ; i <= 1000 ; i++ ) sum[i] += sum[i-1]; int l = 0 , r = 1000 , last = -1; while(l <= r) { ...
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
//===--- SwiftSourceDocInfo.cpp -------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
// RUN: %clang_cc1 -x c -fsyntax-only -verify %s // RUN: %clang_cc1 -std=c++17 -fsyntax-only -verify -Wall -Wno-unused -Wno-misleading-indentation -DCXX17 %s // RUN: %clang_cc1 -x c -fsyntax-only -verify -Wmisleading-indentation -DWITH_WARN -ftabstop 8 -DTAB_SIZE=8 %s // RUN: %clang_cc1 -std=c++17 -fsyntax-only -verify...
// // $Id$ // // // Original author: Darren Kessner <darren@proteowizard.org> // // Copyright 2007 Spielberg Family Center for Applied Proteomics // Cedars-Sinai Medical Center, Los Angeles, California 90048 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in...
// // Created by Jacob Lo on 10/1/18. // #include "catch.hpp" #include "DataStructure/Deque.h" using namespace JDeque; TEST_CASE("Test Deque Push Back", "[TestPushBack]") { Deque<int> d; for (int i = 0; i < 10; i++) { d.push_back(i); } int i = 0; for ( Deque<int>::iterator it = d.begin(); it != d.end(...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "intro.h" #include "ui_...
/****************************************************************************//* * Copyright (C) 2021 Marek M. Cel * * Creative Commons Legal Code * * CC0 1.0 Universal * * CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE * LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE...
// Copyright (C) 2002-2012 Nikolaus Gebhardt // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h #include "CGUIInOutFader.h" #include "IGUIEnvironment.h" #include "IVideoDriver.h" #include "os.h" namespace irr { namespace gui { //! constructo...
// Copyright 2014 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 "ash/touch/touch_transformer_controller.h" #include "ash/shell.h" #include "ash/test/ash_test_base.h" #include "ui/aura/window_tree_host.h" #inc...
/* * Copyright 2022 The Naja Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
// 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 "content/shell/app/shell_main_delegate.h" #include "base/base_switches.h" #include "base/command_line.h" #include "base/cpu.h" #include "bas...
#include "node-syslog.h" using namespace v8; using namespace node; Persistent<FunctionTemplate> Syslog::constructor_template; bool Syslog::connected_ = false; char Syslog::name[1024]; void Syslog::Initialize ( Handle<Object> target) { Local<FunctionTemplate> t = FunctionTemplate::New(); constructor_template = Pers...
/* * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
#include <Kernel/Net/Routing.h> #include <Kernel/Thread.h> //#define ROUTING_DEBUG Lockable<HashMap<IPv4Address, MACAddress>>& arp_table() { static Lockable<HashMap<IPv4Address, MACAddress>>* the; if (!the) the = new Lockable<HashMap<IPv4Address, MACAddress>>; return *the; } bool RoutingDecision:...
/* * Copyright (c) 2016, The OpenThread 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 code must retain the above copyright * notice, this ...
// This file is part of libigl, a simple c++ geometry processing library. // // Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla Public License // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at htt...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Copyright (c) 2017 The Pigeon Core developers // Copyright (c) 2018 The PerfectCoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licen...
//platform agnostic #include "Server.h" //standard library includes #include <map> #include <algorithm> #include "Utilities/strtools.h" #include <ctime> using namespace std; //platform agnostic project headers #include "define.h" //_WINDOWS, _LOGFILE, etc. //include everything for compilationInformation() #include "...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
#include "rlibm-prog.h" polynomial* rlibm_solve_with_soplex(sample_data* sintervals, size_t ssize, int* power, int termsize){ SoPlex mysoplex; mysoplex.setBoolParam(SoPlex::RATFACJUMP,true); mysoplex.setIntParam(SoPlex::SOLVEMODE,2); mysoplex.setIntParam(SoPlex::CHECKMODE,2); mysoplex.setIntParam...
// Copyright (c) 2011-2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <qt/bitcoingui.h> #include <qt/bitcoinunits.h> #include <qt/clientmodel.h> #include <qt/createwalletdialog.h> #incl...
/*========================================================================= Program: Visualization Toolkit Module: TestLinePlot.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is ...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team. * Copyright (c) 2013,2014,2015,2016,2017,2018,2019, by the GROMACS development team, led by * Mark Abraham, David van ...
#ifndef OPTION_HPP #define OPTION_HPP template<typename T> class Some { public: Some(const Some<T>&) = delete; Some(const T&) = delete; Some(T&&) : value_(value) {} private: template<typename U> friend class Result; T value_; }; class None { public: None() {} }; template<typename T> c...
/*============================================================================= Boost.Wave: A Standard compliant C++ preprocessor library http://www.boost.org/ Copyright (c) 2001-2010 Hartmut Kaiser. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt o...
/** encoding: UTF-8 * * © Copyright 2021 Rafał M. Siejakowski <rs@rs-math.net> * * This software is licensed under the terms of the 3-Clause BSD License. * Please refer to the accompanying LICENSE file for the license terms. * */ #include "tests.h" #include "lossy_values.h" #include "../compensated.h" /** * @...
/** * @file param-callback.cpp * @author Guillaume Delbergue <guillaulme.delbergue@hiventive.com> * @date March, 2019 * @copyright Copyright (C) 2019, Hiventive. * * @brief Parameter callback implementation */ #ifndef HV_CONFIGURATION_PARAM_CALLBACK_IMPL_H #define HV_CONFIGURATION_PARAM_CALLBACK_IMPL_H #includ...
#include <precompiled.h> /// /// MIT License /// Copyright (c) 2018-2019 Jongmin Yun /// /// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR /// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, /// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL...
/* * Copyright 2016-2017 Internet Corporation for Assigned Names and Numbers. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, you can obtain one at https://mozilla.org/MPL/2.0/. */ /* * Developed by Sinodun IT ...
#include <iostream> #include <cstdlib> #include <optional> #include "test.h" #include "util.h" using sum_t = unsigned int; // uint64_t // sum_digits sums the digits in the given string and returns an integer of type sum_t sum_t sum_digits(string digits) { sum_t total = 0; for (const auto &digit : digits) { ...
// Copyright(c) 2021 Jounayd Id Salah // Distributed under the MIT License (See accompanying file LICENSE.md file or copy at http://opensource.org/licenses/MIT). #include "render/pch.h" #include "render/debug/coDebugRenderer.h" #include "render/shader/coShader.h" #include "render/shader/coShaderProgram.h" #include "lan...
#include "widgets/helper/ScrollbarHighlight.hpp" #include "Application.hpp" #include "singletons/Theme.hpp" #include "widgets/Scrollbar.hpp" namespace chatterino { ScrollbarHighlight::ScrollbarHighlight() : color_(std::make_shared<QColor>()) , style_(Style::None) { } ScrollbarHighlight::ScrollbarHighlight(c...
#define OLC_PGE_APPLICATION #include "Application.h" int main() { Application* app = new Application(); if (app->Construct(1000, 800, 1, 1)) app->Start(); app = nullptr; delete app; return 0; }
//============================================================================= // // Adventure Game Studio (AGS) // // Copyright (C) 1999-2011 Chris Jones and 2011-20xx others // The full list of copyright holders can be found in the Copyright.txt // file, which is part of this source code distribution. // // The AGS ...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018 The Tet developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-licen...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: TSAArchives.sos.proto #include "TSAArchives.sos.pb.h" #include <algorithm> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/extension_set.h> #include <google/protobuf/wire_format_lite.h> #include <google/protobuf/descriptor....
#pragma once #ifndef UIT_DUCTS_PROC_IMPL_BACKEND_POOLEDBACKEND_HPP_INCLUDE #define UIT_DUCTS_PROC_IMPL_BACKEND_POOLEDBACKEND_HPP_INCLUDE #include <tuple> #include "../../../../../../third-party/Empirical/include/emp/base/vector.hpp" #include "../../../../../../third-party/Empirical/include/emp/datastructs/tuple_utils...
#include "CPxShape.h" #include "PxPhysicsAPI.h" #include "CPxTransformHelpers.h" void CPxShape_setLocalPose(CPxShape* cs, CSTRUCT CPxTransform* tr) { static_cast<physx::PxShape*>(cs->obj)->setLocalPose(CPxTransform_toPxTransform(*tr)); } CPxTransform CPxShape_getLocalPose(CPxShape* cs) { return PxTransform_toCPxTra...
#include "global.h" #include "RageSoundReader_FileReader.h" #include "RageFile.h" #include "RageLog.h" #include "RageUtil.h" #include "ActorUtil.h" #include <set> #if defined(HAS_WAV) #include "RageSoundReader_WAV.h" #endif #if defined(HAS_MP3) #include "RageSoundReader_MP3.h" #endif #if defined(HAS_OGG) #include "R...
/* Copyright (c) 2019 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "base/Base.h" #include "time/detail/TscHelper.h" #include "time/WallClock.h" namespace nebula { namespace time...
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obta...
/*** * * Copyright (c) 1999, 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 co...
#pragma once #include <stddef.h> #include <stdint.h> #include <utility> #include <frg/tuple.hpp> #include <x86/gdt.hpp> #include <x86/idt.hpp> #include <x86/machine.hpp> #include <x86/tss.hpp> #include <thor-internal/arch/ints.hpp> #include <thor-internal/arch/paging.hpp> #include <thor-internal/arch/pic.hpp> #includ...
/* -- MAGMA (version 2.1.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date August 2016 @generated from testing/testing_zsysv_nopiv_gpu.cpp, normal z -> c, Tue Aug 30 09:39:08 2016 @author Mark Gates @author Adr...
/* MIT License Copyright(c) 2018-2019 megai2 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, dist...
// // boost/assert.hpp - BOOST_ASSERT(expr) // BOOST_ASSERT_MSG(expr, msg) // BOOST_VERIFY(expr) // BOOST_VERIFY_MSG(expr, msg) // // Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd. // Copyright (c) 2007, 2014 Peter Dimov // Copyright (c) Beman D...
#include "RenderContext_DX11.h" //------------------------------------------------------------------------- namespace KRG::Render { Float4 const RenderContext::s_defaultClearColor = Color( 96, 96, 96 ).ToFloat4(); ID3D11DepthStencilState* RenderContext::s_pDepthTestingOn = nullptr; ID3D11DepthStencilStat...
// C++ program to implement recursive Binary Search #include <iostream> using namespace std; // A recursive binary search function. It returns // location of x in given array arr[l..r] is present, // otherwise -1 int binarySearch(int arr[], int l, int r, int x) { if (r >= l) { int mid = l + (r -...
// Caution: Do not run *this code* on the Operating Systems // that has no specific runtime such as *Linux*, // your computer will crash and 'll need to *reboot* your computer! #include <iostream> #include <new> using std::cout; using std::endl; using std::bad_alloc; int main() { int* a; int num = 0; try { ...
// pch #include "PreCompiled.h" #include "SpriteSheet.h" // voxel #include "Application.h" #include "Utility.h" #include "FileSystem.h" #include "Logger.h" #include "Config.h" using namespace Voxel; using json = nlohmann::json; Voxel::SpriteSheet::SpriteSheet() : texture(nullptr) { } Voxel::SpriteSheet::~SpriteSh...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
// Copyright 2013 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/extensions/api/sessions/sessions_api.h" #include "base/command_line.h" #include "base/path_service.h" #include "base/strings/str...