text
stringlengths
7
961k
// // accum1.hpp // cpptemples-ch19 // // Created by yws6909 on 02/05/2018. // Copyright © 2018 yws6909. All rights reserved. // #ifndef accum1_h #define accum1_h template <typename> struct accum_traits; template <> struct accum_traits<char> { using type = int; static constexpr type identity() { ...
/* * 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) 2021, Jesse Buhagiar <jooster669@gmail.com> * * SPDX-License-Identifier: BSD-2-Clause */ #include <Kernel/Devices/USB/PacketTypes.h> #include <Kernel/Devices/USB/UHCIController.h> #include <Kernel/Devices/USB/USBPipe.h> #include <Kernel/Devices/USB/USBTransfer.h> namespace Kernel::USB { KResul...
/* Copyright 2016 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 ag...
// Copyright 2014, Additive Regularization of Topic Models. // Author: Marina Suvorova (m.dudarenko@gmail.com) #include "artm/core/exceptions.h" #include "artm/core/protobuf_helpers.h" #include "artm/score/theta_snippet.h" namespace artm { namespace score { void ThetaSnippet::AppendScore( const Item& item, ...
////////////////////////////////////////////////////////////////////////////// /// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand /// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI /// /// Distributed under the Boost Software License, Version 1.0 /// ...
#ifndef __TRACYPROTOCOL_HPP__ #define __TRACYPROTOCOL_HPP__ #include <limits> #include <stdint.h> #include "../common/tracy_lz4.hpp" namespace tracy { using lz4sz_t = uint32_t; enum { TargetFrameSize = 256 * 1024 }; enum { LZ4Size = LZ4_COMPRESSBOUND( TargetFrameSize ) }; static_assert( LZ4Size <= std::numeric_lim...
#include <stdio.h> int main() { int a; int b; scanf("%d", &a); scanf("%d", &b); printf("%d", a - b); }
//======================================================================= // Copyright Baptiste Wicht 2011-2016. // Distributed under the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //======================================================================= /** * ed...
//////////////////////////////////////////////////////////////////////////////// /// \file streams.cpp /// \version 0.1 /// \date May, 2022 /// \author Gino Francesco Bogo /// \copyright This file is released under the MIT license //////////////////////////////////////////////////////////////////////////...
//===-- llvm-ar.cpp - LLVM archive librarian utility ----------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// // write_at.cpp // ~~~~~~~~~~~~ // // Copyright (c) 2003-2015 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) // // Disable autolinking for unit tests. #if ...
// Copyright (c) 2014-2015 The Dash developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "misc/util.h" #include "misc/sync.h" #include "misc/addrman.h" #include "darksend/darksend.h" #include "masternode-payment...
//Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. //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 <boost/qvm/gen/vec_operations4.hpp>
#include <library/cpp/testing/unittest/registar.h> #include <util/stream/file.h> #include <util/system/filemap.h> #include <util/system/tempfile.h> #include "chunked_helpers.h" /// Data for TChunkedHelpersTest::TestGeneralVector struct TPodStruct { int x; float y; TPodStruct(int _x = 0, float _y = 0) ...
#include "common.hpp" #include <ndn-cxx/mgmt/dispatcher.hpp> #include <ndn-cxx/security/certificate-fetcher-direct-fetch.hpp> #include <ndn-cxx/security/validation-policy-command-interest.hpp> #include <ndn-cxx/security/validation-policy-simple-hierarchy.hpp> namespace ndn6 { namespace prefix_server { namespace mgmt ...
#pragma once #include <fstream> #include <iostream> #include <nlohmann/json.hpp> using json = nlohmann::json; class Config { public: Config(std::string fileName); ~Config(); void Read(); const std::string GetDataFile() {return data_path;}; const std::string GetTargetFile() {return target_path;}; ...
#include "FunctionsStringSearch.h" #include "FunctionFactory.h" #include "PositionImpl.h" namespace DB { namespace { struct NamePositionCaseInsensitive { static constexpr auto name = "positionCaseInsensitive"; }; using FunctionPositionCaseInsensitive = FunctionsStringSearch<PositionImpl<PositionCaseInsensitiveA...
// Copyright (c) 2009 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 "net/http/partial_data.h" #include "base/format_macros.h" #include "base/logging.h" #include "base/string_util.h" #include "net/base/net_err...
//======================================================================= // Copyright Baptiste Wicht 2013-2016. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://www.opensource.org/licenses/MIT) //=================================================================...
#include <iostream> #include<cmath> using namespace std; int main() { int i,t; double L; cin>>t; for(i=1;i<=t;i++) { cin>>L; printf("%.2lf %.2lf\n",(acos(-1)*(L*L)/25.0),(L*L*(3/5.0-(acos(-1)/25.0)))); } return 0; }
#include "AppHdr.h" #include "mon-pathfind.h" #include "directn.h" #include "env.h" #include "los.h" #include "mon-movetarget.h" #include "mon-place.h" #include "religion.h" #include "state.h" #include "terrain.h" #include "traps.h" ///////////////////////////////////////////////////////////////////////////// // mon...
#include "trans.h" #include <fstream> oper::oper(const string &d, const string &s, const int &delta, const int &order){ this->op = OP::s; this->dst = d; this->src = s; this->value = delta; this->order = order; } oper::oper(const string &s, const int &order){ this->op = OP::r; this->src = s...
//===-test_flatten_negative_axis2_xnnpack.cc-----------------------------------------------------------===// // // Copyright (C) 2019-2020 Alibaba Group Holding 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 o...
#include "Arduino.h" #include "led.h" void LED::init(int _pin) { pin=_pin; pinMode(pin, OUTPUT); } void LED::pulse() { on(); delay(1000); off(); delay(1000); } void LED::on() { analogWrite(pin,0); } void LED::off() { analogWrite(pin,255); } void LED::setVal(int val) { analogWrite(pin,255-val); }
#include "BuildingManager.hpp" BuildingManager::BuildingManager(Tilemap *map) { // Initialize defaults. mMap = map; mBuildMode = false; mTPS = 1; mGlobalClock.restart(); // Attempt to initialize buildings... if (!initBuildings()) { throw std::runtime_error("Building initialization failed."); } //In...
// Copyright (c) 2018 Till Kolditz // // 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...
#include <Common/typeid_cast.h> #include <Common/Exception.h> #include <Core/Block.h> #include <Storages/StorageValues.h> #include <DataTypes/DataTypeTuple.h> #include <Parsers/ASTExpressionList.h> #include <Parsers/ASTLiteral.h> #include <Parsers/ASTFunction.h> #include <TableFunctions/ITableFunction.h> #include <T...
//================================================================================================= /*! // \file src/mathtest/dmatdmatmin/M6x6aMHb.cpp // \brief Source file for the M6x6aMHb dense matrix/dense matrix minimum math test // // Copyright (C) 2012-2017 Klaus Iglberger - All Rights Reserved // // This fil...
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com) // (C) Copyright 2003-2007 Jonathan Turkanis // 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/iostreams for docume...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2011-2012 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2017 Adam Wulkiewicz, Lodz, Poland. // This file was modified by Oracle on 2017. // Modifications copyright (c) 2017 Oracle and/or its affiliates. // Contributed and/or modifie...
// Copyright (c) 2012-2020 The GleecBTC Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <limitedmap.h> #include <test/setup_common.h> #include <boost/test/unit_test.hpp> BOOST_FIXTURE_TEST_SUITE(limit...
// Method - Boyer - Moore Voting Algorithm // Time Complexity T - O(n), since loop runs "n" // Space Complexity S - O(1), No extra space class Solution { public: int majorityElement(vector<int>& nums) { // initialise the result as the "0" and count to 0 int result = nums[0]; ...
#include "catch.hpp" #include "graph/expression_graph.h" #include "graph/expression_operators.h" #ifdef CUDA_FOUND #include "tensors/gpu/backend.h" #endif #include <cmath> using namespace marian; template <typename T> void tests(DeviceType device, Type floatType = Type::float32) { // Checking for FP16 support and ...
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2017 - ROLI Ltd. JUCE is an open source library subject to commercial or open-source licensing. The code included in this file is provided under the terms of the ISC...
// Copyright 2013 The Flutter 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 "flutter/shell/platform/android/android_choreographer.h" #include "flutter/fml/native_library.h" // Only avialalbe on API 24+ typedef void AChor...
/* * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #inc...
// Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018-2019 The Solbit Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "masternode.h" #inc...
// QtPromise #include <QtPromise> // Qt #include <QtConcurrent> #include <QtTest> using namespace QtPromise; class tst_future : public QObject { Q_OBJECT private Q_SLOTS: void fulfilled(); void fulfilled_void(); void rejected(); void rejected_void(); void unhandled(); void unhandled_void...
//===--- IncludeCleanerTests.cpp --------------------------------*- C++ -*-===// // // 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 // //===---------------------------...
/** * Open Space Program * Copyright © 2019-2020 Open Space Program Project * * MIT License * * 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 li...
/* * Copyright 2008-2015, Axel Dörfler, axeld@pinc-software.de. * Distributed under the terms of the MIT License. */ #include "ActivityWindow.h" #include <stdio.h> #include <Application.h> #include <Catalog.h> #include <File.h> #include <FindDirectory.h> #ifdef __HAIKU__ #include <GroupLayout.h> #endif #include ...
/* * Copyright 2011-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...
#pragma once #include <iostream> #include <fstream> #include <GL/glut.h> #include <memory> #include <vector> #include <stack> #include <string> #include <utility> // pair #include <numeric> #include <random> #include <chrono> #include "utility.hpp" #include "image.hpp" #include "ppm.hpp" #define _USE_MATH_DEFINES #incl...
#include "std.h" #include <iostream> #include <assert.h> #include "char.h" std::shared_ptr<SchemeObject> scheme_true = std::make_shared<SchemeBool>(true); std::shared_ptr<SchemeObject> scheme_false = std::make_shared<SchemeBool>(false); std::shared_ptr<SchemeObject> scheme_empty = std::make_shared<SchemeSymbol>(""); s...
/* Copyright 2016 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 ag...
#include <filter.h> #include <texture.h> #include <cassert> #include <math.h> using namespace luminate; float luminate::pixel_luminance(float* rgb_pixel){ return 0.2989 * rgb_pixel[0] + 0.5870* rgb_pixel[1] + 0.1140 * rgb_pixel[2]; } float pixel_intensity(float* rgb_pixel){ return (rgb_pixel[0] + rgb_pixel[1...
// Copyright 2022 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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 re...
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: Frank Dellaert, et al. (see THANKS for the full author list) * See LICENSE for the license information * ----...
/* Copyright 2015 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) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2019 The DashDiamond developers // Distributed under the MIT software license, see the accompanying // file COPYING or h...
/* ---------------------------------------------------------------------- */ /* Copyright (c) Microsoft Corporation. All rights reserved. */ /* Licensed under the MIT License */ /* ---------------------------------------------------------------------- */ #define DLL_...
// @HEADER // *********************************************************************** // // Panzer: A partial differential equation assembly // engine for strongly coupled complex multiphysics systems // Copyright (2011) Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85...
// AlexNet - 80% outsource #include "cuda_runtime.h" #include "device_launch_parameters.h" #include <torch/library.h> #include <torch/script.h> #include <torch/torch.h> #include <ATen/ATen.h> #include <iostream> #include <random> #include <string> #include <io.h> #include <memory> #include <vector> #include <random> #...
// Problem # : 133A // Created on : 2018-10-14 09:58:00 #include <bits/stdc++.h> #define FR(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef vector<int> vi; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); string s = "H...
#include "source/common/http/match_wrapper/config.h" #include "envoy/http/filter.h" #include "envoy/matcher/matcher.h" #include "envoy/registry/registry.h" #include "source/common/config/utility.h" #include "source/common/http/matching/data_impl.h" #include "source/common/matcher/matcher.h" #include "absl/status/sta...
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ // Your Codec object will be instantiated and called as such: // Codec codec; // codec.deserialize(codec.serialize(root)); ...
#include "dtl_test_common.hpp" string create_path (const string& test_name, string diff_name, enum type_diff t, bool is_use_suffix) { string ret; switch (t) { case TYPE_DIFF_SES: ret = (getcwd(NULL, 0) + string("/") + string("ses") + string("/") + diff_name + string("/") + test_name); bre...
/* file: qualitymetricset_batch.cpp */ /******************************************************************************* * Copyright 2014-2020 Intel 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 o...
#pragma GCC optimize("Ofast") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,fma") #pragma GCC optimize("unroll-loops") #include <bits/stdc++.h> #include <complex> #include <queue> #include <set> #include <unordered_set> #include <list> #include <chrono> #include <random> #include <iostream> #incl...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
/* The smooth Class Library * Copyright (C) 1998-2018 Robert Kausch <robert.kausch@gmx.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of "The Artistic License, Version 2.0". * * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR * IMPLIED WARRAN...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: StorageManager.hpp * Author: ubuntu * * Created on March 6, 2018, 6:13 AM */ #ifndef STORAGEMANAGER_HPP #define ST...
// Copyright 2019 the Autoware Foundation // // 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...
/* dynamical.cpp Copyright (c) 2014, 2015, 2016 Terumasa Tadano This file is distributed under the terms of the MIT license. Please see the file 'LICENCE.txt' in the root directory or http://opensource.org/licenses/mit-license.php for information. */ #include "mpi_common.h" #include "constants.h" #include "dyn...
// // Created by Aditi Khanna on 3/21/21. // #include "histogram.h" #include <glm/vec2.hpp> namespace idealgas { using glm::vec2; Histogram::Histogram(vec2 lower, vec2 upper, cinder::ColorT<float> type) { histlowerbound_ = lower; histupperbound_ = upper; particleType_ = type; } const void Histogram::SetAllSpe...
// 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. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <qt/optionsmodel.h> #include <qt/bitcoinunits...
#include <iostream> #include <QBuffer> #include "xlsxdocument.h" int main() { QBuffer device; device.open(QIODevice::WriteOnly); QXlsx::Document xlsx1; xlsx1.write("A1", true); xlsx1.write("A2", false); xlsx1.saveAs(&device); std::cout << "Package test completed"; return 0; }
// ArduinoJson - https://arduinojson.org // Copyright Benoit Blanchon 2014-2021 // MIT License #pragma once #include <ArduinoJson/Namespace.hpp> #include <ArduinoJson/Strings/StoragePolicy.hpp> namespace ARDUINOJSON_NAMESPACE { class StringMover { public: StringMover(char* ptr) : _writePtr(ptr) {} void startS...
#include "de_web_plugin.h" #include "de_web_plugin_private.h" #include "device.h" #include "device_descriptions.h" #define ACTIVE_POWER 0x050B #define RMS_VOLTAGE 0x0505 #define RMS_CURRENT 0x0508 #define APPARENT_POWER ...
// See LICENSE_CELLO file for license and copyright information /// @file _problem.hpp /// @author James Bordner (jobordner@ucsd.edu) /// @date Thu Mar 11 17:20:03 PST 2010 /// @brief Private include file for the \ref Problem component #ifndef _PROBLEM_HPP #define _PROBLEM_HPP /// @enum sync_enum //...
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2012-2012. // 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/move...
#include <iostream> using namespace std; int main(){ /* Ada 2 buah looping. Looping pertama itu ke bawah Looping kedua itu ke kanan */ int n, i; cout << "Masukkan angka : "; cin >> n; cout << "\n"; cout << "Segitiga 1\n\n"; for(int i = 1; i <= n; i++){ ...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/> * * Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/> * * This program is free software; ...
/* * DrawObjBase.cpp * * Created on: Jun 17, 2016 * Author: hatem */ #include "op_simu/DrawObjBase.h" namespace Graphics { DrawObjBase::DrawObjBase() { m_followX = 0; m_followY = 0; m_followZ = 0; m_followA = 0; } DrawObjBase::~DrawObjBase() { // TODO Auto-generated destructor stub } } /* name...
#include "L1Trigger/L1TMuonEndCap/interface/EMTFSubsystemCollector.h" #include "FWCore/Framework/interface/Event.h" #include "DataFormats/Common/interface/Handle.h" #include "helper.h" // adjacent_cluster // Specialized for CSC template <> void EMTFSubsystemCollector::extractPrimitives( CSCTag tag, // Defined ...
#include <IO/WriteBuffer.h> #include <IO/ReadBufferFromString.h> #include <IO/WriteBufferFromString.h> #include <common/logger_useful.h> #include <random> #include <sstream> #include "MySQLProtocol.h" namespace DB { namespace MySQLProtocol { void PacketSender::resetSequenceId() { sequence_id = 0; } String Packe...
/* Copyright (c) 2015 - 2021 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 in the Software without restriction, including without limitation the rights to use, copy, modify, mer...
/* Generated by Cython 0.29.13 */ /* BEGIN: Cython Metadata { "distutils": { "depends": [], "extra_compile_args": [ "/O2" ], "language": "c++", "name": "evaluate", "sources": [ "evaluate.pyx" ] }, "module_name": "evaluate" } EN...
/* Copyright 2020-2021 The Silkworm 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://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agree...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2016 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
/** * @file AddressTranslator.cpp * @brief Implementation of the functions in Disassembler class which dynamically calculate the address of instructions */ #include <math.h> #include "..\..\include\SubUnits\Disassembler\Disassembler.h" #include "..\..\include\SubUnits\Modules\Modules.h" void Disassembler::GetD...
#include "camera.hpp" Camera::Camera() { } Camera::Camera(int w, int h) : w(w), h(h) { camRect = {x, y, w, h}; } int Camera::getH() { return this->h; } int Camera::getW() { return this->w; } Camera::~Camera() { }
// This file is part of VSTGUI. It is subject to the license terms // in the LICENSE file found in the top-level directory of this // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE #include "x11fileselector.h" #include <unistd.h> #include <sys/wait.h> #include <sys/types.h> #include <signal.h> #in...
#include <Storages/StorageURL.h> #include <Interpreters/Context.h> #include <Interpreters/evaluateConstantExpression.h> #include <Parsers/ASTCreateQuery.h> #include <Parsers/ASTLiteral.h> #include <Parsers/ASTInsertQuery.h> #include <IO/ReadHelpers.h> #include <IO/WriteBufferFromHTTP.h> #include <IO/WriteHelpers.h> #...
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) * * 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 Fre...
#include <cstddef> #include <gloat.hpp> #define INNER_HEAP_SIZE 0x80000 size_t nx_inner_heap_size = INNER_HEAP_SIZE; char nx_inner_heap[INNER_HEAP_SIZE]; volatile void* heap_address; volatile size_t heap_size; __attribute__((section(".bss"))) char __nx_module_runtime[0xD0]; // We setup newlib internal heap that ma...
/*************************************************************************** * * @license * Copyright (C) Codeplay Software 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 License at *...
#include <Compression/CompressionCodecNone.h> #include <Compression/CompressionInfo.h> #include <Compression/CompressionFactory.h> #include <Parsers/ASTIdentifier.h> namespace DB { uint8_t CompressionCodecNone::getMethodByte() const { return static_cast<uint8_t>(CompressionMethodByte::NONE); } ASTPtr Compressio...
/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | https://www.mrpt.org/ | | | | Cop...
/* * Copyright (c) 2008-2010 * Nakata, Maho * All rights reserved. * * $Id: RCsum1.cpp,v 1.5 2010/08/07 04:48:32 nakatamaho Exp $ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributi...
/* This file is part of Into. * Copyright (C) Intopii 2013. * All rights reserved. * * Licensees holding a commercial Into license may use this file in * accordance with the commercial license agreement. Please see * LICENSE.commercial for commercial licensing terms. * * Alternatively, this file may be used und...
// Copyright (c) 2017-2019 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/json/ #ifndef TAO_JSON_EVENTS_PREFER_SIGNED_HPP #define TAO_JSON_EVENTS_PREFER_SIGNED_HPP #include <cstdint> namespace tao::json::events { template< typename Consumer > struct prefer...
#include "ReportDBManager.h" #include <fstream> #include <boost/lexical_cast.hpp> ReportDBManager::ReportDBManager(void) : currentID(0) { } ReportDBManager::~ReportDBManager(void) { } Report::ID ReportDBManager::getNextReportID() { return currentID++; } std::shared_ptr<Report> ReportDBManager::getReport(Report::I...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE401_Memory_Leak__new_wchar_t_52b.cpp Label Definition File: CWE401_Memory_Leak__new.label.xml Template File: sources-sinks-52b.tmpl.cpp */ /* * @description * CWE: 401 Memory Leak * BadSource: Allocate data using new * GoodSource: Allocate data on the stack * Sinks...
#if defined _DEBUG || defined DEBUG #include "stdafx.h" #include <exception> #include "MockMaterial.hpp" #include "domain/physics/InfinitesimalState.hpp" #include "domain/physics/UpdatedPhysicalState.hpp" #include "foundation/blas/DenseMatrix.hpp" #include "foundation/memory/pointer.hpp" namespace ada = axis::domain:...
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #include <c...
#ifndef __KOKKOSBATCHED_SVD_DECL_HPP__ #define __KOKKOSBATCHED_SVD_DECL_HPP__ /// \author Brian Kelley (bmkelle@sandia.gov) #include "KokkosBatched_Util.hpp" #include "KokkosBatched_Vector.hpp" namespace KokkosBatched { /// Given a general matrix A (m x n), compute the full singular value decomposition (SVD): /...
/*************************************************************************/ /* transform.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
// // #include <iostream> #include "library.h" #include <string> #include <stdexcept> using namespace std; namespace isi { //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Node Node::Node(int id, NodeType type, string lbl) { ...