text
stringlengths
7
961k
/** * ScriptDev3 is an extension for mangos providing enhanced features for * area triggers, creatures, game objects, instances, items, and spells beyond * the default database scripting in mangos. * * Copyright (C) 2006-2013 ScriptDev2 <http://www.scriptdev2.com/> * Copyright (C) 2014-2022 MaNGOS <https://getma...
/**@file ***************************************************************************** Dummy algebraic hash function implementation ***************************************************************************** * @author This file is part of libiop (see AUTHORS) * @copyright MIT license (see LICENSE file) ***...
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2015 - ROLI Ltd. Permission is granted to use this software under the terms of either: a) the GPL v2 (or any later version) b) the Affero GPL v3 Details of these ...
// XMLUtil.cpp: implementation of the XMLUtil class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "XMLUtil.h" #include <xercesc/parsers/XercesDOMParser.hpp> #include <xercesc/framework/LocalFileFormatTarget.hpp> #include <xercesc/util/PlatformUtils.hpp> #inc...
// 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...
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
#include "scaletransformation.h" #include "src/math/homogeneousvertex.h" ScaleTransformation::ScaleTransformation(const Vec3 &scale, const Vec3 &origin) { float data[16] = {scale.x(), 0, 0, 0, 0, scale.y(), 0, 0, 0, 0, scale.z(), 0, 0, 0, 0...
/* Copyright 2017 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) 2011-2016 The Vritzcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <arith_uint256.h> #include <uint256.h> #include <version.h> #include <test/test_vritzcoin.h> #include <boost/test/...
#include "HttpHelpers.h" #include "ByteArrayHelpers.h" namespace Pillow { namespace HttpMimeHelper { const char* getMimeTypeForFilename(const QString& filename) { if (filename.endsWith(".html", Qt::CaseInsensitive)) return "text/html"; if (filename.endsWith(".jpg", Qt::CaseInsensitive)) return "image/jpeg"...
#include "md5p.h" #define MD5P_XX(a, b, r, M, s, t) (a = b + md5_rol(a + r + M + t, s)) void MD5p::GetSum(unsigned char * message, unsigned long length, unsigned char result[16]) { MD5p md5; unsigned int p = 0; for(p = 0; p + 64 <= length; p += 64) { md5.Update((unsigned long *)&message[p]); } md5.Final(messag...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. //***************************************************************************** // File: frameinfo.cpp // // // Code to find control info about a stack frame. // //******************...
/* ** EPITECH PROJECT, 2021 ** cpp_arcade ** File description: ** Created by rectoria */ #include <ctime> #include <unordered_map> #include "Nibbler.hpp" #define WIDTH 41 #define HEIGHT 19 Arcade::IGameLib *lib = nullptr; __attribute__((constructor)) void init() { lib = new Arcade::Nibbler; } __attribute__((destru...
/******************************************************************************* * * MIT License * * Copyright (c) 2019 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
// Copyright (c) 2021 Beijing Xiaomi Mobile Software Co., Ltd. All rights reserved. // Copyright (c) 2018 Intel Corporation // Copyright (c) 2020 Florian Gramss // // 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 c...
/*++ Copyright (c) 1991-1999 Microsoft Corporation Module Name: rootdir.cxx --*/ #include <pch.cxx> #define _UFAT_MEMBER_ #include "ufat.hxx" #include "error.hxx" DEFINE_EXPORTED_CONSTRUCTOR( ROOTDIR, FATDIR, UFAT_EXPORT ); VOID ROOTDIR::Construct ( ) /*++ Routine Description: Constructor fo...
// Stefan "SoulXP" Olivier // File: validatettml.hpp // Description: header file for static TTML dictionary templates #ifndef VTNODE_HEADER #define VTNODE_HEADER // Configuration headers #ifndef VTCONFIG_HEADER #include "../config.hpp" #endif // Standard headers #include <iostream> #include <type_traits> #include <s...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-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. #include <rpc/request.h> #include <fs.h> #include <random.h> #include <rpc/protocol....
/* * 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 ...
#pragma once //------------------------------------------------------------------------------ // // Copyright 2018-2019 Fetch.AI Limited // // 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 Licen...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <vector> #include "single_layer_tests/batch_norm.hpp" using namespace LayerTestsDefinitions; namespace { const std::vector<InferenceEngine::Precision> netPrecisions = { InferenceEngine::Precision::FP32, I...
/* * 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 "behaviorOutput.hpp" /*! \brief behaviorOutput class constructor. * * Constructor * */ behaviorOutput::behaviorOutput() { m_behavior = nullptr; } /*! \brief behaviorOutput class constructor. * * Custom Constructor * * @param ptrToBehaviour the behavior to be saved. */ behaviorOutput::behaviorOutput...
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
// Copyright (c) 2009-2021 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: mphoward /*! * \file mpcd/SorterGPU.cc * \brief Defines the mpcd::SorterGPU */ #include "SorterGPU.h" #include "SorterGPU.cuh" /*! * \param...
#include "ConstStringHolderPythonString.h" namespace Mengine { ////////////////////////////////////////////////////////////////////////// ConstStringHolderPythonString::ConstStringHolderPythonString() : m_kernel( nullptr ) , m_value( nullptr ) { } ///////////////////////////////////...
/***************************************************************************** * * * OpenNI 2.x Alpha * * Copyright (C) 2012 PrimeSense Ltd. * * ...
/****************************************************************************** * * Copyright (C) 2009-2012 Broadcom Corporation * * 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: * ...
/* 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...
/* * Copyright (c), 2017, Adrien Devresse <adrien.devresse@epfl.ch> * * 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) * */ #ifndef H5ANNOTATE_TRAITS_MISC_HPP #define H5ANNOTATE_TRAITS_MISC_HPP ...
/*============================================================================= Copyright (c) 2001-2011 Joel de Guzman 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) =========================================...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2017-2018 The PIVX developers // Copyright (c) 2019 The Ultradash developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYI...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2016 ResiliNets, ITTC, University of Kansas * * 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 the Free Software Foundation; ...
// Copyright (c) 2018 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...
//https://vjudge.net/contest/435043#problem/J #include <bits/stdc++.h> using namespace std; bool solve(int N, int M, int r, int c, int& cnt, vector<vector<char>>& V, vector<vector<bool>>& Visited) { if (Visited[r][c] || V[r][c] == '#') { return true; } if (V[r][c] == 'B') { return false; ...
// Copyright (c) 2018-2020 The Rhombus Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <rpc/server.h> #include <rpc/util.h> #include <rpc/blockchain.h> #include <util/strencodings.h> #include <insig...
//===- XTenToAffine.cpp -----------------------------------------*- C++ -*-===// // // This file is licensed 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 2020 Xilinx Inc. //...
#include "PackedMesh.h" #include <geometry3PCH.h> #include <VectorUtil.h> #include <g3Debug.h> #include <g3platform.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 you under the Apache License, Version 2.0 (the * "License"); you ma...
// // ofxLaserUI.cpp // ofxLaser // // Created by Seb Lee-Delisle on 23/03/2021. // #include "ofxLaserUI.h" using namespace ofxLaser; ofxImGui::Gui ofxLaser::UI::imGui; ImFont* ofxLaser::UI::font; bool ofxLaser::UI::initialised = false; void UI::render() { ImGui::Render(); } void UI::setupGui() { ...
// Copyright (c) 2006, Google Inc. // 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 conditi...
#include <iostream> class Kecepatan{ public: void setJarak(int j){ jarak = j; } void setWaktu(int w){ waktu = w; } protected: int jarak; int waktu; }; class Kalkulasi: public Kecepatan{ public: int getKecepatan(){ return (jarak / waktu); } }; int mai...
//----------------------------------------------------------------------------- // 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...
// 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...
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "vm/dispatch_table.h" #include "vm/clustered_snapshot.h" #include "vm/hash_map.h" #include "v...
// Copyright (c) 2011-2017 The Michaellaoliu Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <qt/qvaluecombobox.h> QValueComboBox::QValueComboBox(QWidget *parent) : QComboBox(parent), role(Qt::U...
//===- LoopUnswitch.cpp - Hoist loop-invariant conditionals in loop -------===// // // 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 // //===---------------------------...
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/Scripting/Natives/Generated/game/data/AIActionSubCondition_Record.hpp> namespace RED4ext { namespace game::data { struct AIIsInActiveCameraCond_Record : game::data::AIActionSubCo...
#include "RomFactory.hh" #include "RomTypes.hh" #include "RomInfo.hh" #include "RomPageNN.hh" #include "RomPlain.hh" #include "RomDRAM.hh" #include "RomGeneric8kB.hh" #include "RomGeneric16kB.hh" #include "RomKonami.hh" #include "RomKonamiSCC.hh" #include "RomKonamiKeyboardMaster.hh" #include "RomAscii8kB.hh" #include ...
#include "GameStates/GameState.h" GamePlay* GameState::gamePlay; void GameState::initialize(GamePlay* gamePlay) { GameState::gamePlay = gamePlay; } void GameState::setGamePlay(GamePlay* gamePlay) { this->gamePlay = gamePlay; }
#include "stdafx.h" #include "UIPropertiesBox.h" #include "../hudmanager.h" #include "../level.h" #include "UIListBoxItem.h" #include "UIXmlInit.h" #define OFFSET_X (5.0f) #define OFFSET_Y (5.0f) //#define FRAME_BORDER_WIDTH 20.0f //#define FRAME_BORDER_HEIGHT 22.0f #define ITEM_HEIGHT (GetFont()->CurrentHeight()+2.0...
// RUN: %clang_cc1 -std=c++17 -ast-dump %s -ast-dump-filter Test | FileCheck %s struct A{}; template <typename T, typename U> auto Test(T* pt, U* pu) { // CHECK: UnaryOperator {{.*}} '<dependent type>' prefix '*' // CHECK-NEXT: DeclRefExpr {{.*}} 'T *' lvalue ParmVar {{.*}} 'pt' 'T *' (void)*pt; // CHECK: Un...
#include "SimG4CMS/Muon/interface/MuonRPCFrameRotation.h" #include "SimG4CMS/Muon/interface/MuonG4Numbering.h" #include "Geometry/MuonNumbering/interface/MuonDDDConstants.h" #include "Geometry/MuonNumbering/interface/MuonBaseNumber.h" #include "G4StepPoint.hh" #include "G4TouchableHistory.hh" MuonRPCFrameRotation::Mu...
#include <vector> #include "gtest/gtest.h" #include "lib/weight_balanced_tree.hh" TEST(weight_balanced_tree, construction) { enum v { a = 0, b, c, d, e, f, g, h, i, j, k, no_child, }; std::vector<std::size_t>...
#include "RomDRAM.hh" #include "PanasonicMemory.hh" #include "MSXMotherBoard.hh" #include "XMLElement.hh" #include "serialize.hh" namespace openmsx { [[nodiscard]] static unsigned calcBaseAddr(const DeviceConfig& config) { int base = config.getChild("mem").getAttributeValueAsInt("base", 0); int first = config.getCh...
// 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 "bitcoingui.h" #includ...
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkAdvancedTypefaceMetrics.h" #include "SkData.h" #include "SkFixed.h" #include "SkFontMgr.h" #include "SkMakeUnique.h" #include "SkOTTable_OS_2.h" #include "SkSFNTHe...
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // // Copyright (c) 2011 The LevelDB Authors. All rights r...
/*********************************************************************** * Copyright 1998-2020 CERN for the benefit of the EvtGen authors * * * * This file is part of EvtGen. * * ...
/** * @file * @copyright defined in roxe/LICENSE */ #pragma once #include <vector> namespace roxe { namespace chain { extern const std::vector<const char*> genesis_intrinsics; } } // namespace roxe::chain
// Copyright 2017-2018 zzu_softboy <zzu_softboy@163.com> // // THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. // IN NO EVENT SHALL THE AUTHOR BE L...
// Copyright 2016 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 "ui/events/android/key_event_utils.h" #include "ui/events/keyevent_jni_headers/KeyEvent_jni.h" namespace ui { namespace events { namespace andr...
#include <iostream> using std::ostream; using std::cout; using std::endl; #include <string> class HasPtr { public: // no point to passing a pointer if we're going to copy it anyway // store pointer to a copy of the object we're given HasPtr(const int &p, int i): ptr(new int(p)), val(i) {} // copy memb...
/*========================================================================= * * Copyright NumFOCUS * * 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.or...
#include "TestRunner.h" #include "GJKTest.h" #include "DMatrixTests.h" #include "VoxelmapPointshellTests.h" TestRunner::TestRunner() { // REGISTER ALL TESTS HERE registerTest(new DMatrixTests()); //registerTest(new GJKTest()); registerTest(new Geometry2DTest()); registerTest(new Geometry3DTest()); registerTest(n...
/**************************************************************************** * NxWidgets/libnxwidgets/include/ccheckbox.hxx * * Copyright (C) 2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "JSBundleType.h" #include <folly/Bits.h> namespace facebook { namespace react { static uint32_t constexpr RAMBundleMagi...
/**************************************************************************** ** Meta object code from reading C++ file 'mainwindow.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2) ** ** WARNING! All changes made in this file will be lost! *********************************************************...
/////////////////////////////////////////////////////////////// // Copyright 2013 John Maddock. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt // // Compare arithmetic results using fixed_int to GMP results. //...
//Leetcode Problem No 315 Count of Smaller Numbers After Self //Solution written by Xuqiang Fang on 5 June, 2018 #include <iostream> #include <vector> #include <string> #include <algorithm> #include <unordered_map> #include <unordered_set> #include <stack> #include <queue> using namespace std; //naive version is triv...
/* Copyright (c) 2018-2021 Piotr Doan. All rights reserved. Software distributed under the permissive MIT License. */ #pragma once class ReflectionGeneratorParser; /* Reflection Generator Writer */ class ReflectionGeneratorWriter { public: ReflectionGeneratorWriter(); ~ReflectionGeneratorWriter(...
/*************************************************************************** * Copyright (C) by GFZ Potsdam * * * * You can redistribute and/or modify this program under the * * terms o...
/* * Copyright 2011-2021 Asakusa Framework Team. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
// Copyright (c) 1991-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published ...
/*========================================================================= Program: Visualization Toolkit Module: vtkPhastaReader.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 distributed ...
/* * This file contains code from "C++ Primer, Fifth Edition", by Stanley B. * Lippman, Josee Lajoie, and Barbara E. Moo, and is covered under the * copyright and warranty notices given in that book: * * "Copyright (c) 2013 by Objectwrite, Inc., Josee Lajoie, and Barbara E. Moo." * * * "The authors and publi...
#include <sys/stat.h> #include <sys/types.h> #include <errno.h> #include <map> #include <Poco/Util/XMLConfiguration.h> #include <Common/escapeForFileName.h> #include <Common/Exception.h> #include <Common/typeid_cast.h> #include <Compression/CompressionFactory.h> #include <Compression/CompressedReadBuffer.h> #includ...
#include "optional.hpp" #include <iostream> #include <limits> #include <string> inline void hello(optional<std::string> what) { what.if_present([](const std::string& x) { std::cout << "Hello, " << x << std::endl; }); } inline double convert(optional<std::string> what) { return what.map(&std::stod, static_cas...
/** @file * * A brief file description * * @section license License * * 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...
// Copyright (c) 2019-2020 The Vadercoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // #include <sync.h> #include <test/util/setup_common.h> #include <txmempool.h> #include <validation.h> #include <boost/tes...
#include "Globals.h" #include "BlockInfo.h" #include "Explodinator.h" #include "Blocks/BlockHandler.h" #include "Blocks/ChunkInterface.h" #include "Chunk.h" #include "ClientHandle.h" #include "Entities/FallingBlock.h" #include "LineBlockTracer.h" #include "Simulator/SandSimulator.h" namespace Explodinator { const...
/* * Tencent is pleased to support the open source community by making * WCDB available. * * Copyright (C) 2017 THL A29 Limited, a Tencent company. * All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use * this file except in compliance with the License. You may obtai...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "subgraph_extraction.hpp" #include <onnx/onnx_pb.h> #include <functional> #include <stack> #include "ngraph/check.hpp" using namespace ngraph::onnx_editor; enum class PortType { InputPort, OutputPort }; namespace { vo...
/* * Copyright 2015-2016, Intel Corporation * * 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 2017 BitTorrent 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 agreed to in wr...
/* configmanager persists runtime configuration using NVRAM of ESP32*/ #include "globals.h" // Local logging tag static const char TAG[] = "flash"; nvs_handle my_handle; esp_err_t err; #define PAYLOADMASK \ ((GPS_DATA | ALARM_DATA | MEMS_DATA | COUNT_DATA...
#include <bits/stdc++.h> using namespace std; int main() { cout << 13.0 / 7 << endl; cout << fixed << setprecision(2) << 13.0 / 7 << endl; cout << fixed << setprecision(3) << 13.0 / 7 << endl; cout << fixed << setprecision(4) << 13.0 / 7 << endl; cout << fixed << setprecision(5) << 13.0 / 7 << end...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include "pch.h" #include "TestCommon.h" #include "TestSource.h" #include "TestHooks.h" #include "TestSettings.h" #include <AppInstallerErrors.h> #include <AppInstallerLogging.h> #include <AppInstallerDownloader.h> #include <AppInstallerStrings....
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) | +---------...
/** * 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 writing, software * distributed...
#pragma once #include <Animation/Easing.hpp> #include <Time/TimeUtils.hpp> namespace obe::Animation { class ValueTweening { private: Easing::EasingFunction m_easing = Easing::Linear; double m_from; double m_to; double m_duration; double m_current = 0; public: ...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" #include "beatsaber-hook/shared/utils/typedefs-string....
/****************************************************************************** Copyright 2017-2019 object_database 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 http:/...
/* * Simd Library (http://ermig1979.github.io/Simd). * * Copyright (c) 2011-2021 Yermalayeu Ihar. * * 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 limi...
// Copyright (c) 2014-2019, The Monero 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 retain the above copyright notice, this list of /...
//================================================================================================= /*! // \file src/mathtest/smatsmatadd/UCaSCa.cpp // \brief Source file for the UCaSCa sparse matrix/sparse matrix addition math test // // Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved // // This file...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: System.Enum #include ...
//======================================================================================== // Athena++ astrophysical MHD code // Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors // Licensed under the 3-clause BSD License, see LICENSE file for details //===============================...
// // Copyright (c) 2010-2011 Matthew Jack and Doug Binks // // This software is provided 'as-is', without any express or implied // warranty. In no event will the authors be held liable for any damages // arising from the use of this software. // Permission is granted to anyone to use this software for any purpose, /...
// Copyright 2014 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 "src/compiler/simplified-lowering.h" #include <limits> #include "src/base/bits.h" #include "src/codegen/code-factory.h" #include "src/compile...