text
stringlengths
7
961k
//////////////////////////////////////////////////////////// // // SFML - Simple and Fast Multimedia Library // Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org) // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors be held liable for any damages a...
/* this file has been autogenerated by vtkNodeJsWrap */ /* editing this might proof futile */ #define VTK_WRAPPING_CXX #define VTK_STREAMS_FWD_ONLY #include <nan.h> #include "vtkObjectWrap.h" #include "vtkLocatorWrap.h" #include "vtkObjectBaseWrap.h" #include "vtkDataSetWrap.h" #include "../../plus/plus.h" using nam...
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <string> #include "Car.h" #include "Weather.h" #include "Circuit.h" using namespace std; int main() { Circuit c; c.SetLength(600); c.SetWeather(Weather::Snow); c.AddCar(new Audi()); c.AddCar(new Ford()); c.AddCar(new Nissan()); c.AddCar(new Renault(...
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
// 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 "ppapi/proxy/plugin_var_serialization_rules.h" #include "base/logging.h" #include "ppapi/proxy/plugin_dispatcher.h" #include "ppapi/proxy/pl...
// Copyright (c) 2016 The Bitcoin Core developers // Copyright (c) 2017 The Astral Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "perf.h" #if defined(__i386__) || defined(__x86_64__) /* These archite...
#include <bits/stdc++.h> using namespace std; string xorStrings (string s1, string s2) { string s3; int i=0, n=s1.length(); while (i<n) { if (s1[i]==s2[i]) { s3+='0'; } else { s3+='1'; } i++; } return s3; } int m...
/** * @file * @brief God-granted abilities. **/ #include "AppHdr.h" #include "god-abil.h" #include <cmath> #include <numeric> #include <sstream> #include "act-iter.h" #include "areas.h" #include "artefact.h" #include "art-enum.h" #include "attitude-change.h" #include "bloodspatter.h" #include "branch.h" #include ...
// Copyright (c) 2011-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // Unit tests for denial-of-service detection/prevention code #include <banman.h> #include <chainparams.h> #include <net.h> ...
/** * Mobius Software LTD * Copyright 2015-2018, Mobius Software LTD * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later ve...
/** * * Copyright: Copyright (c) 2020, ISSuh * */ #ifndef SRPC_NET_SERVER_TCPSERVER_HPP_ #define SRPC_NET_SERVER_TCPSERVER_HPP_ #include <iostream> #include <string> #include <vector> #include <map> #include <memory> #include <thread> #include <mutex> #include <condition_variable> #include <atomic> #include <...
// // detail/impl/service_registry.ipp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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) // #if...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* *************************************************************************** * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by ...
// Copyright (c) 2014-2018, The Monero Project // Copyright (c) 2018, The Loki Project // // 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 r...
/***************************************************************************** mergeFile.cpp (c) 2009 - Aaron Quinlan Hall Laboratory Department of Biochemistry and Molecular Genetics University of Virginia aaronquinlan@gmail.com Licenced under the GNU General Public License 2.0 license. ***************...
#include "fUML/Semantics/Actions/impl/ActionsFactoryImpl.hpp" #include <cassert> #include "abstractDataTypes/SubsetUnion.hpp" #include "ecore/EClass.hpp" #include "fUML/Semantics/Actions/impl/AcceptCallActionActivationImpl.hpp" #include "fUML/Semantics/Actions/impl/AcceptCallActionActivationsImpl.hpp" #include "fUML/...
// Copyright (c) 2011-2015 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 <util.h> #include <clientversion.h> #include <primitives/transaction.h> #include <sync.h> #include <utilstrencoding...
// Copyright (c) 2014-2015 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 <chain.h> #include <util.h> #include <test/test_mgc.h> #include <vector> #include <boost/test/unit_test.hpp> #def...
// // Created by Jiang Yinzuo on 2021/12/15. // #include <cstdio> struct A { int a; }; struct B { int b; }; struct C : A, B { int c; }; int main() { C o; o.a = 1; o.b = 2; o.c = 3; B *p1 = (B *)&o; B *p2 = static_cast<B *>(&o); B *p3 = reinterpret_cast<B *>(&o); B *p4 = dynamic_cast<B *>(&o...
#ifndef BOOST_MPL_INT_FWD_HPP_INCLUDED #define BOOST_MPL_INT_FWD_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2004 // // 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) // // See http://www.boost.org/libs/mpl ...
// // receiver.cpp // ~~~~~~~~~~~~ // // Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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 <array> #include <iostream> #inclu...
/* * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <Atom/RPI.Public/FeatureProcessorFactory.h> #include <Atom/RPI.Public/FeatureProcessor.h> #...
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
// -*- C++ -*- // // Package: V0Analyzer // Class: V0Analyzer // /**\class V0Analyzer V0Analyzer.cc RecoVertex/V0Producer/test/V0Analyzer.cc Description: <one line class summary> Implementation: <Notes on implementation> */ // // Original Author: Brian Drell // Created: Tue May 22 23:54:16 C...
//******************************************************************** //* //* Warning: This file was generated by ecore4CPP Generator //* //******************************************************************** #ifndef UML_STATEINVARIANTSTATEINVARIANTIMPL_HPP #define UML_STATEINVARIANTSTATEINVARIANTIMPL_HPP //****...
#include "AIMPSoundcloud.h" #include "AIMPString.h" #include "SDK/apiPlayer.h" #include "Timer.h" #include "PlaylistListener.h" #include "AddURLDialog.h" #include "Tools.h" #include "AimpHTTP.h" #include "SoundCloudAPI.h" #include "AimpMenu.h" #include "resource.h" #include "FileSystem.h" #include "ArtworkProvider.h" ...
/**************************************************************************************** * @author: kzvd4729 created: Oct/24/2019 19:18 * solution_verdict: Wrong answer on test 29 language: GNU C++14 * run...
#include "Memoization.h" #include "Error.h" #include "Function.h" #include "IRMutator.h" #include "IROperator.h" #include "Param.h" #include "Scope.h" #include "Util.h" #include "Var.h" #include <map> namespace Halide { namespace Internal { namespace { class FindParameterDependencies : public IRGraphVisitor { publi...
// Verilated -*- C++ -*- // DESCRIPTION: Verilator output: Design implementation internals // See VTestHarness.h for the primary calling header #include "VTestHarness.h" #include "VTestHarness__Syms.h" #include "verilated_dpi.h" void VTestHarness::_settle__TOP__1006(VTestHarness__Syms* __restrict vlSymsp) { VL_D...
////////////////////////////////////////////////////////////////////////// // // pgAdmin III - PostgreSQL Tools // // Copyright (C) 2002 - 2016, The pgAdmin Development Team // This software is released under the PostgreSQL Licence // // pgSequence.cpp - Sequence class // ///////////////////////////////////////////////...
#include "ship.hpp" #include "input.hpp" #include "resources.hpp" #include "settings.hpp" #include "utils.hpp" #include "graphics/asteroids.hpp" #include "graphics/shader.hpp" constexpr float MAX_SPEED_LRUP = 10; constexpr float ACCEL_TIME_LRUP = 0.3f; constexpr float DEACCEL_TIME_LRUP = 0.5f; constexpr float MAX_ROL...
/* Copyright (c) 2009 Peter "Corsix" Cawley 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, distr...
class Solution { public: vector<string> commonChars(vector<string>& words) { vector<int> freq(26,101); for(auto s : words){ vector<int> cnt(26,0); for(auto x : s){ cnt[x - 'a']++; } for(int i=0;i<26;++i){ ...
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Copyright 2010 California Institute of Technology. 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...
#include "calc_conf.h" #include "lvgl/lvgl.h" //#include "lv_demos/lv_demo.h" #include <chrono> #include <thread> #if ENABLE_WINDOWS #include<Windows.h> #define IDI_LVGL 101 // Next default values for new objects // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOU...
// Copyright (C) 2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <ie_api.h> #undef INFERENCE_ENGINE_DEPRECATED #define INFERENCE_ENGINE_DEPRECATED(msg) __attribute__((deprecated(msg)))
//python3 module for tinyobjloader // //usage: // import tinyobjloader as tol // model = tol.LoadObj(name) // print(model["shapes"]) // print(model["materials"] #include <Python.h> #include <vector> #include "../tiny_obj_loader.h" typedef std::vector<double> vectd; PyObject* pyTupleFromfloat3 (float array[3]) { ...
#include "UnitGenInstanceBase.h" #include "Animation.h" UnitGenInstanceBase::UnitGenInstanceBase(SharedParams_t params) : Base(params), UnitName(), StartPosition(), StartRotation(), Creations() { } UnitGenInstanceBase::~UnitGenInstanceBase(void) { for (u32 i = 0; i < Creations.size(); i++) { Creations[i]->dr...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2012, John Haddon. All rights reserved. // Copyright (c) 2017, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided...
/* * Copyright (c) 2003-2017 Rony Shapiro <ronys@pwsafe.org>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php */ //////////////////////...
/* Module: contact_data Authors: Grzegorz M. Koczyk (2007), Igor Berezovsky (1990-2007) ***************************************************************************** Subroutines for calculating contact data for defining loops& locks. */ #ifndef __CONTACT_DATA_HPP__ #define __CONTACT_DATA_HPP__ #define DEBUG(...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2015-2017 The LILI developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-licens...
// Copyright (c) Csaba Molnar & Daniel Butum. All Rights Reserved. #include "SoEnemyVoiceManager.h" #include "Components/SkeletalMeshComponent.h" #include "Basic/SoGameInstance.h" #include "Basic/SoGameSingleton.h" #include "CharacterBase/SoVoiceUser.h" #include "Settings/SoGameSettings.h" #include "Basic/SoAudioMana...
/******************************************************************************* * Copyright 2018 ROBOTIS 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....
// Copyright (c) 2011-2013 The Bitcoin developers // Copyright (c) 2017-2018 The PIVX developers // Copyright (c) 2019 The TradePlus_Coin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "qvalidatedlineedi...
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/reporting/metrics/metric_reporting_controller.h" #include "base/bind.h" #include "base/task/bind_post_task.h" #include "base/threadi...
 #pragma once #include "numerics/pid.hpp" #include <numeric> #include "numerics/finite_difference.hpp" #include "quantities/si.hpp" namespace principia { namespace numerics { namespace internal_pid { namespace si = quantities::si; template<typename Input, typename Output, int horizon, ...
// MUST include this #include <catch2/catch.hpp> // File being tested #include <lbann/transforms/vision/vertical_flip.hpp> #include "helper.hpp" TEST_CASE("Testing vertical flip preprocessing", "[preproc]") { lbann::utils::type_erased_matrix mat = lbann::utils::type_erased_matrix(El::Matrix<uint8_t>()); SECTION(...
//////////////////////////////////////////////////////////////////////////////// // BSD 3-Clause License // // Copyright (c) 2020, OpenRoad Project UCSD // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions ...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2019 The PIVX developers // Copyright (c) 2020 The AVC developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-licen...
/* Copyright (c) 2007-2016, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
#include "KioskSettings.h" #include <QCommandLineParser> #include <QVariant> #include <QFileInfo> #include <QMetaEnum> #include <QDebug> static bool toBool(const QString &v) { return !v.isNull() && v == QLatin1String("true"); } KioskSettings::KioskSettings(const QCoreApplication &app) { QCommandLineParser p...
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
//============================================================================= /** * @file IOGRTest.cpp * * $Id: IOGRTest.cpp 93650 2011-03-28 08:44:53Z johnnyw $ * * This program tests the basic functionality FT IOGR implementation * * * @author Bala Natarajan <bala@cs.wustl.edu> */ //===============...
// -------------------------------------------------------------------------- // // File // Name: CompressStream.h // Purpose: Compressing stream // Created: 27/5/04 // // -------------------------------------------------------------------------- #include "Box.h" #include <stdlib.h> #include <memory> #include ...
#ifndef UTILS_H #define UTILS_H #include <string> #include "jsoncpp/include/json/value.h" void addConversionEntry(Json::Value& header, const std::string& type, const std::string& source, const Json::Value& info); std::string getUserName(); std::string getTimeStamp(); #endif
#include <vtkImageActor.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkInteractorStyleImage.h> #include <vtkMetaImageReader.h> #include <vtkNamedColors.h> #include <vtkNew.h> #include <vtkProperty.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> i...
#include "DeckLinkController.h" DeckLinkController::DeckLinkController() : selectedDevice(NULL), deckLinkInput(NULL), supportFormatDetection(false), currentlyCapturing(false) {} DeckLinkController::~DeckLinkController() { vector<IDeckLink*>::iterator it; // Release the IDeckLink list for(it = deviceList.begin(...
// Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2019 The masternodescheguevara Core developers #include "cachemultimap.h" #include "test/test_masternodescheguevara.h" #include <algorithm> #include <iostream> #include <boost/test/unit_test.hpp> BOOST_FIXTURE_TEST_SUITE(cachemultimap_tests, Basi...
///////////////////////////////////////////////////////////////////////////////////////////////// // // Tencent is pleased to support the open source community by making libpag available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the Apache License, Versio...
// Krzysztof Dabrowski 3M - Zadanie 2, sprawdzian 16.12.2021 #include <iostream> #include <time.h> using namespace std; // rozmiar tablicy #define N 10 void Wypisz(int A[]) { for(int i=0; i<N; i++){ cout << A[i] << ", "; } cout << endl; } void Losuj(int A[]){ A[N-1] = rand()%10; for(int i...
#include "mytreeviewmodel.h" MyTreeViewModel::MyTreeViewModel(QObject* parent) : QAbstractItemModel(parent) { } MyTreeViewModel::~MyTreeViewModel() { } int MyTreeViewModel::rowCount(const QModelIndex &parent) const { if (parent == QModelIndex()) return 2; if (parent.row() == 1) return 1; return 0; } int...
/* MIT License - Copyright (c) 2019-2021 Francis Van Roie For full license information read the LICENSE file in the project folder */ #if defined(ESP8266) #include <Arduino.h> #include <Esp.h> #include <ESP8266WiFi.h> #include "esp8266.h" #include "hasp_conf.h" #include "hasp_debug.h" #define BACKLIGHT_CHANNEL ...
#pragma once #include "main.h" #include "stringService.hpp" #include "fileSystemUser.hpp" #include "debug.hpp" #define SHUTDOWN 997 #define DEFAULT 0 string commands[2] = { "mkdir", "exit" }; #define DUPLICATE_NAMES 0 #define NOT_FOUND_COMMAND 1 string errors[2] = { "duplicate names - ", "not found such command -...
/* * Copyright 2009-2017 Alibaba Cloud 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...
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #include "GraphEditorCommon.h" #include "SGraphNodeComment.h" //#include "TextWrapperHelpers.h" #include "BlueprintEditorUtils.h" #include "TutorialMetaData.h" #include "SInlineEditableTextBlock.h" namespace SCommentNodeDefs { /** Size of the hit result ...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/glacier/model/InsufficientCapacityException.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespa...
/* * Win32GLContext.cpp * * This file is part of the "LLGL" project (Copyright (c) 2015-2019 by Lukas Hermanns) * See "LICENSE.txt" for license information. */ #include "Win32GLContext.h" #include "../../Ext/GLExtensions.h" #include "../../Ext/GLExtensionLoader.h" #include "../../../CheckedCast.h" #include "../....
// // Copyright (c) 2014 Christopher Baker <https://christopherbaker.net> // // SPDX-License-Identifier: MIT // #include "ofApp.h" void ofApp::setup() { // Set the video grabber to the ofxPS3EyeGrabber. grabber.setGrabber(std::make_shared<ofxPS3EyeGrabber>()); grabber.setup(640, 480); } void ofApp::up...
//============================================================================================================= /** * @file spectral.cpp * @author Daniel Strohmeier <Daniel.Strohmeier@tu-ilmenau.de>; * Lorenz Esch <lesch@mgh.harvard.edu>; * Gabriel Motta <gbmotta@mgh.harvard.edu> * @since...
#include "concepts.hpp" struct operand {}; struct operator_add { template <typename new_transformer> using add_transformer = std::true_type; }; static_assert (can_add_transformer <operator_add, operand> == true, ""); struct operator_transform { template <template <typename...> typename > ...
/** * @file unit-filter-pipeline.cc * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2017-2021 TileDB, Inc. * @copyright Copyright (c) 2016 MIT and Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documen...
// Copyright (c) 2011-2013 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2017-2018 The Criptoreal Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "edita...
#include <iostream> #include <string> #include <vector> //Math Library Headers #include "Lib\Math.h" // == int add(int a, int b); int main(int argc, char **argv){ std::vector<std::string> text = {argv[1], " + ", argv[2], " = ", std::to_string(add(atoi(argv[1]),atoi(argv[2])))}; for (auto t : text) { ...
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2015 Intel Corporation. All Rights Reserved. #ifdef RS2_USE_ANDROID_BACKEND #include "android-uvc.h" #include "../types.h" #include "libuvc/utlist.h" #include "usb_host/device_watcher.h" #include "../libuvc/utlist.h" #include <limits> #d...
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
// Copyright Aleksey Gurtovoy 2000-2004 // // 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) // // See http://www.boost.org/libs/mpl for documentation. // $Id: identity.cpp 49268 2008-10-11 06:26:17Z agurtovoy $ ...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2017-2018 The PIVX developers // Copyright (c) 2020-2021 The SupportMasterNodeCommunity developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "...
#include <catch2/catch.hpp> #include <internal/component_pool.hpp> TEST_CASE("Component pools work", "[component_pool]") { using namespace ecs; GIVEN("A component pool") { component_pool cp(2, sizeof(double)); REQUIRE(cp.count() == 0); WHEN("Components are added") { size_t i = cp.add<double>(5.0); size_...
#include <occa/internal/utils/string.hpp> #include <occa/internal/lang/modes/cuda.hpp> #include <occa/internal/lang/modes/okl.hpp> #include <occa/internal/lang/modes/oklForStatement.hpp> #include <occa/internal/lang/expr.hpp> #include <occa/internal/lang/builtins/attributes.hpp> #include <occa/internal/lang/builtins/ty...
//===----------------------------------------------------------------------===// // // 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 // //===---------------------------...
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #include "LeapMotionPrivatePCH.h" #include "LeapInterfaceUtility.h" #include "AnimBone.h" UAnimBone::UAnimBone(const class FObjectInitializer& Init) : Super(Init) { Scale = FVector(1, 1, 1); } bool UAnimBone::Enabled() { return Alpha == 1.f; } void UAn...
/* * Irunnable.cpp * * Created on: 26 déc. 2012 * Author: philippe */ #include "Irunnable.h" namespace ItfRunnable { Irunnable::Irunnable() { } Irunnable::~Irunnable() { } }
// Copyright (c) 2012-2015 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 "key.h" #include "keystore.h" #include "validation.h" #include "policy/policy.h" #include "script/script.h" #include...
/* Copyright (C) 2016 Aliyun 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 useful, ...
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "include/v8-function.h" #include "src/api/api-inl.h" #include "src/codegen/assembler-inl.h" #include "src/objects/call-site-info-inl.h" #includ...
#include <gtest/gtest.h> #include <torch/csrc/jit/ir/alias_analysis.h> #include <torch/csrc/jit/ir/irparser.h> #include <torch/csrc/jit/runtime/static/ProcessedNodeInputs.h> #include <torch/csrc/jit/runtime/static/fusion.h> #include <torch/csrc/jit/runtime/static/impl.h> #include <torch/csrc/jit/runtime/static/ops.h> #...
/* ****************************************************************************** *\ Copyright (C) 2012-2014 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 sour...
#include "Scene.h" scene::Scene::Scene(Projection _projection, int* _width, int* _height) : width(_width), height(_height), projection(_projection) { lastX = (GLfloat) (*width) / 2; lastY = (GLfloat) (*height) / 2; sceneCamera = new Camera(glm::vec3(0.0f, 0.0f, 3.0f)); viewMatrix = new glm::mat4(); *viewMatrix =...
/* //@HEADER // ************************************************************************ // // KokkosKernels 0.9: Linear Algebra and Graph Kernels // Copyright 2017 Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government retain...
/* * Copyright (c) 2003-2015 Rony Shapiro <ronys@users.sourceforge.net>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php */ #include "...
//////////////////////////////////////////////////////////////////////////// // Module : UIHelper.cpp // Created : 17.01.2008 // Author : Evgeniy Sokolov // Description : UI Helper class implementation //////////////////////////////////////////////////////////////////////////// #include "StdAfx.h" #include "UIHelp...
// Copyright (c) 2021 - present Advanced Micro Devices, Inc. All rights reserved. // // 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 r...
#include "Item_Umbrella.h" #include "Application.h" #include "ModuleCollisions.h" Item_Umbrella::Item_Umbrella(int x, int y) : Enemy(x, y) { umbrellaAnim.PushBack({ 432,104,16,15 }); collider = App->collisions->AddCollider({ 0, 0, 16, 15 }, Collider::Type::Item_Type, (Module*)App->enemies, Collider::Items::SCOREITE...
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: void inorder_traversal(TreeNode *node, vector<int>& vals) { if (node == NULL) { re...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitt...
// ====================================================================== // \title SequenceScenario.hpp // \author bocchino // \brief A sequence of scenarios // // \copyright // Copyright (C) 2017 California Institute of Technology. // ALL RIGHTS RESERVED. United States Government Sponsorship // acknowledged. // =...