text
stringlengths
7
961k
// // Bytecode for Win32 .sxdata sections // // Copyright (C) 2002-2008 Peter Johnson // // 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 // no...
//===-- X86TargetTransformInfo.cpp - X86 specific TTI pass ----------------===// // // 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 // //===---------------------------...
/* * library for math function * author: fumiphys */ #ifndef _POWER_H_ #define _POWER_H_ #include <iostream> #include <cassert> using namespace std; typedef long long ll; // begin library power here // usage of this library: power<ll>(p, n); template <typename T> T power(T a, T n, T mod) { T res = 1; T tmp = ...
// // Created by zing on 4/1/2020. // #include <iostream> #include <iomanip> int main() { std::cout << 5.0 << '\n'; std::cout << 6.7f << '\n'; std::cout << 9876543.21 << '\n'; std::cout << 9.87654321f << '\n'; std::cout << 987.654321f << '\n'; std::cout << 987654.321f << '\n'; std::cout <...
// 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 <stdlib.h> #if defined(OS_WIN) #include <dwmapi.h> #include <windows.h> #endif #include "base/lazy_instance.h" #include "base/message_loop/...
#pragma once #include "../lock.hpp" #include "../util/skip_list.hpp" #include "buddy.hpp" #include "common.hpp" #include "list_node_cache.hpp" namespace fs::vfs { class file; } // namespace fs::vfs /// virtual memory system namespace memory::vm { /// page flags namespace flags { enum flags : u64 { readable = 1ul ...
# /* Copyright (C) 2001 # * Housemarque Oy # * http://www.housemarque.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) # */ # # /* Revised by Paul Mensonides (2002) */ # # /* See http://www.boost...
#include "line.hpp" line::line(sf::Vector2f position, sf::Color color, sf::Vector2f size): entity( shape ) { shape.setPosition(position); shape.setFillColor(color); shape.setSize(size); } void line::draw(sf::RenderWindow & window) { Line[0] = sf::Vertex(shape.getPosition(), shape.getFillColor()); ...
// Adapted from interp.cpp from Caffe util by Pauline Luc // Originally developed by George Papandreou #include <ATen/ATen.h> #include <ATen/NativeFunctions.h> #include <ATen/native/UpSample.h> #include <c10/util/irange.h> namespace at { namespace meta { TORCH_META_FUNC(upsample_bilinear2d) ( const Tensor& input, ...
// Copyright 2019 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
#include "examples/asio/chat/codec.h" #include "muduo/base/Logging.h" #include "muduo/base/Mutex.h" #include "muduo/net/EventLoop.h" #include "muduo/net/TcpServer.h" #include <set> #include <stdio.h> #include <unistd.h> using namespace muduo; using namespace muduo::net; class ChatServer : noncopyable { public: C...
//===--- TypeCheckConstraints.cpp - Constraint-based Type Checking --------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
// 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. #if defined(HAVE_CONFIG_H) #include "config/bitcoin-config.h" #endif #include "optionsdialog.h" #include "ui_optionsdialog.h...
/* Copyright 2018 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...
//#include <immintrin.h> #include <array> #include <tight_inclusion/avx.hpp> namespace ticcd { // __m512d function_f_ee_vector( // __m512d a0s,__m512d a1s,__m512d b0s,__m512d b1s, // __m512d a0e,__m512d a1e,__m512d b0e,__m512d b1e, // __m512d t_up,__m512d t_dw,__m512d u_up,__m512d u_dw,__...
/*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...
/*! * Copyright (c) 2014 by Contributors * \file engine_mock.cc * \brief this is an engine implementation that will * insert failures in certain call point, to test if the engine is robust to failure * \author Tianqi Chen */ // define use MOCK, os we will use mock Manager #define NOMINMAX #include <rabit/base.h...
// author -sonaspy@outlook.com // coding - utf_8 #include <iostream> #include <algorithm> #include <vector> #include <string> #include <cstring> #include <unordered_map> #include <stack> #include <queue> #include <numeric> #define test() freopen("in", "r", stdin) using namespace std; struct Person { char name[9...
// util_TxtParse.cpp // \author Logan Jones ////////////////////// \date 2/26/2001 /// \file /// \brief ... ///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// // NOTE: // ...
// Copyright 2019 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. // This target runs all benchmarks for the Topaz layer. #include "garnet/testing/benchmarking/benchmarking.h" #include "garnet/testing/benchmarking/is_vul...
/******************************************************************************************* * * raylib [core] example - basic window * * This example has been created using raylib 1.0 (www.raylib.com) * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) * * Copyright (c) 201...
#include <AoceManager.hpp> #include <module/ModuleManager.hpp> #include <iostream> #include <string> using namespace aoce; int main() { std::cout << "start" << std::endl; int a; ModuleManager::Get().regAndLoad("aoce_win_mf"); const auto& deviceList = AoceManager::Get().getVideoManager(CameraTy...
/* * W.J. van der Laan 2011-2012 */ #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #include "guiutil.h" #include "guiconstants.h" #include "init.h" #include "ui_interface.h" #include "qtipcserver.h" #include "intro.h" #include <QApplication> #include <QMessageBox...
/* 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) 2015 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...
// // Lol Engine // // Copyright © 2009—2013 Benjamin “Touky” Huet <huet.benjamin@gmail.com> // © 2010—2017 Sam Hocevar <sam@hocevar.net> // © 2009—2013 Cédric Lecacheur <jordx@free.fr> // // Lol Engine is free software. It comes without any warranty, to // the extent permitted by applicable l...
#include "waypoint.hpp" #include "client/pointers.hpp" #include "common_helpers.hpp" namespace intercept { namespace sqf { //#TODO move to headerfile once inline variables is implemented in MSVC2017 const std::string_view waypoint::__speed_lookup[4] = {"UNCHANGED"sv, "LIMITED"sv, "NORMAL"sv, "FULL"...
// 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 "google_apis/drive/drive_api_parser.h" #include <stddef.h> #include <memory> #include "base/json/json_value_converter.h" #include "base/st...
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "aboutdialog.h" #include "ui_aboutdialog.h" #include "clientmodel.h" #include "clientversion.h" // Copyright year (...
// Wrapper around a petsc KSP #include <hollow/petsc/ksp.h> #include <hollow/petsc/mpi.h> #include <geode/python/Class.h> namespace hollow { GEODE_DEFINE_TYPE(KSP) KSP::KSP(const ::KSP ksp) : ksp(ksp) {} KSP::~KSP() { CHECK(KSPDestroy(&const_cast_(ksp))); } MPI_Comm KSP::comm() const { return PetscObjectComm...
#include "config.hpp" #include "ctags.hpp" #include "grep.hpp" #include <glib.h> #include <gtkmm.h> #include <gtksourceviewmm.h> void ctags_grep_test_function() { } class Test { void ctags_grep_test_function2() { } }; int main() { auto app = Gtk::Application::create(); Gsv::init(); #ifdef JUCI_USE_UCTAGS ...
/**************************************************************************************** * @author: kzvd4729 created: Sep/19/2020 23:47 * solution_verdict: Wrong answer on test 3 language: GNU C++17 * run...
// Exercise 6.29 Part C Solution: Ex06_29.cpp // Testing for prime numbers. #include <iostream> #include <iomanip> #include <cmath> using namespace std; bool isPrime( int ); // function prototype int main() { int count = 1; // total number of primes found cout << "The prime numbers from 1 to 10000 are:" << e...
// Copyright (c) 2012, 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 "platform/globals.h" #if defined(HOST_OS_WINDOWS) #include <errno.h> // NOLINT #include <tim...
// ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2018 www.open3d.org // // Permissio...
/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtGui module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees ...
#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow() { delete ui; } void MainWindow::changeEvent(QEvent *e) { QMainWindow::changeEvent(e); switch (e->type()) { ...
/****************************************************************************** * * Project: DXF Translator * Purpose: Low level spline interpolation. * Author: David F. Rogers * ****************************************************************************** This code is derived from the code associated with ...
/* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/gpu/ops/QuadPerEdgeAA.h" #include "include/private/SkVx.h" #include "src/gpu/GrMeshDrawTarget.h" #include "src/gpu/GrResourceProvider.h" #include "src/gpu/SkGr....
/*https://www.hackerrank.com/challenges/journey-to-the-moon/problem The member states of the UN are planning to send people to the moon. They want them to be from different countries. You will be given a list of pairs of astronaut ID's. Each pair is made of astronauts from the same country. Determine how many pairs of...
/** @file ***************************************************************************** Declaration of functionality for creating and using the two PCD circuits in a multi-predicate PCD construction. The implementation follows, extends, and optimizes the approach described in \[CTV15]. At high level, there is a ...
/* ************************************************************************ * Copyright (c) 2018-2020 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 witho...
// mge - Modern Game Engine // Copyright (c) 2021 by Alexander Schroeder // All rights reserved. #include "mge/input/key.hpp" #include <iostream> namespace mge { std::ostream& operator<<(std::ostream& os, const key& k) { switch (k) { #define CASE(K) ...
/* This file is part of the WebKit open source project. This file has been generated by generate-bindings.pl. DO NOT MODIFY! This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation...
#include <iostream> using namespace std; int main() { cout <<"\n안녕 세상아"<< endl; return 0; }
/* * Copyright (c) 2012, Michael Lehn, Klaus Pototzky * * 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...
/* * Copyright (c) 2017-2020 Arm Limited and affiliates. * SPDX-License-Identifier: Apache-2.0 */ #include "mbed.h" InterruptIn button(SW2); DigitalOut led(LED1); DigitalOut flash(LED_RED); void flip() { led = !led; } int main() { button.rise(&flip); // attach the address of the flip function to the ris...
#include "MobManager.hpp" #include "PlayerManager.hpp" #include "NanoManager.hpp" #include "NPCManager.hpp" #include "ItemManager.hpp" #include "MissionManager.hpp" #include "GroupManager.hpp" #include "TransportManager.hpp" #include <cmath> #include <limits.h> #include <assert.h> std::map<int32_t, Mob*> MobManager::...
#include<stdio.h> main(){ int i,j,k,n,q,m,d,p,set=1,l,num[200]; long long s[10][20]; while(scanf("%d %d",&n,&q) && n+q){ printf("SET %d:\n",set++); for(l=i=0;i<n;i++)scanf("%d",&num[i]); while(q--){ scanf("%d %d",&d,&m); for(k=0;k<20;k++) for(j=0;j<10;j++)s[j][k]=0; for(i...
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ ** Commercial License Usage ** Licensees holding valid comm...
#include <bugcheck.hpp> #include <ktlexcept.hpp> #include <thread.hpp> #include <utility.hpp> #include <ntddk.h> namespace ktl { namespace this_thread { thread_id_t get_id() { return HandleToUlong(PsGetCurrentThreadId()); } void yield() noexcept { YieldProcessor(); } } // namespace this_thread namespace th::de...
#pragma once #include "../../../JObject.hpp" namespace android::hardware::display { class VirtualDisplay; } namespace android::hardware::display { class VirtualDisplay_Callback; } namespace android::media::projection { class MediaProjection_Callback; } namespace android::os { class Handler; } namespace android::v...
//#include "binary_gsdt.h" //bool binary_gsdt(V3DPluginCallback2 &callback, QWidget *parent, input_PARA &PARA) //{ // v3dhandle curwin = callback.currentImageWindow(); // if (!curwin) // { // QMessageBox::information(0, "", "You don't have any image open in the main window."); // return false; /...
/** @file imager_test_Triangle.cpp * @brief Test imager with Triangle * * TestCase to test the imager-imager * implementation with triangle convolution */ #include "load_json_imager.h" #include <gtest/gtest.h> #include <stp.h> using namespace stp; struct imager_test_triangle : public ImagerHandler { doub...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "pch.h" #include <Views/ControlViewManager.h> #include <Views/ShadowNodeBase.h> #include <Utils/PropertyUtils.h> #include <winrt/Windows.UI.Xaml.h> #include <winrt/Windows.UI.Xaml.Controls.h> namespace winrt { ...
#include "pin.H" #include "plrSharedData.h" #include <stdio.h> #include <stdlib.h> //----------------------------------------------------------------------------- // Global variables //----------------------------------------------------------------------------- FILE *trace; //----------------------------------------...
#ifndef __NODE_GDAL_POLYGON_RINGS_H__ #define __NODE_GDAL_POLYGON_RINGS_H__ // node #include <node.h> #include <node_object_wrap.h> // nan #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #include <nan.h> #pragma GCC diagnostic pop // gdal #include <gdal_priv.h> using namespace v8; us...
#include "Expr.h" // to avoid compiler confusion, python.hpp must be include before Halide headers #include <boost/python.hpp> #include "add_operators.h" #include "no_compare_indexing_suite.h" #include "../../src/Expr.h" #include "../../src/Var.h" #include "../../src/IROperator.h" #include "Type.h" #include <boost/...
#include "cli.h" #include <stdio.h> #include <assert.h> #include <cstring> #include <vector> #include "../version.h" #include "docopt.h" static const char USAGE[] = R"( usage: sota [options] [<source>] options: -h --help show this screen --version show version source: text | file sota is s...
// Copyright (c) 2021 The Eleccoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <chainparams.h> #include <hash.h> #include <net.h> #include <netmessagemaker.h> #include <protocol.h> #include <test/fuz...
/*========================================================================= Program: Visualization Toolkit Module: vtkIOSSFilesScanner.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 softw...
#include <test/rpc/AccountInfo_test.cpp> #include <test/rpc/AccountCurrencies_test.cpp> #include <test/rpc/AccountLinesRPC_test.cpp> #include <test/rpc/AccountObjects_test.cpp> #include <test/rpc/AccountOffers_test.cpp> #include <test/rpc/AccountSet_test.cpp> #include <test/rpc/AccountTx_test.cpp> #include <test/rpc/Am...
/* Copyright 2008, 2009 (C) Nicira, Inc. * * This file is part of NOX. * * NOX is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. ...
// // Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.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) // // Official repository: https://github.com/CPPAlliance/url // #ifndef BOOST_URL_TEST_RULE_HPP #de...
//================================================================================================= /*! // \file src/mathtest/dmatdmatschur/SDaDDa.cpp // \brief Source file for the SDaDDa dense matrix/dense matrix Schur product math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved // // This...
// // Created by Alan Freitas on 18/09/20. // // C++ #include <cmath> // Internal #include "pow.h" #include <sympp/core/sym.h> #include <sympp/functions/operators.h> #include <sympp/functions/symbolic.h> #include <sympp/node/function/cos.h> #include <sympp/node/function/cosh.h> #include <sympp/node/function/log.h> #i...
/* * Copyright 2013-2019 Automatak, LLC * * Licensed to Green Energy Corp (www.greenenergycorp.com) and Automatak * LLC (www.automatak.com) under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. Green Energy C...
#ifndef SWAP_HPP #define SWAP_HPP namespace omega_h { struct mesh; unsigned swap_slivers( struct mesh* m, double good_qual, unsigned nlayers); } #endif
// /////////////////////////////////////////////////////////////////////////////////////// // LTB Geometry Visualization Server // Copyright (c) 2020 Logan Barnes - All Rights Reserved // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation fil...
//need to change this file to .ino to run it. #include <Ultrasonic.h> // adding ultrasonic sensor's library const int trig = 12; // setting the pin of ultrassonic sensor' trigger const int echo = 13; // setting the pin of ultrassonic sensor' echo const int red1 = 8; // setting the pins of traffic lights' leds const...
#ifndef PROJECT_BASE_FUNCTION_DATA_CONTAINER_H #define PROJECT_BASE_FUNCTION_DATA_CONTAINER_H #include <string> #include <Toy/function/Define.hpp> #include <Toy/data/data.hpp> #include <Toy/function/name_container.hpp> namespace ProjectBase{ namespace function{ class PROJECT_BASE_FUNCTION_SYMBOL DataContai...
// Copyright (c) 2018 Intel Corporation // // 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, publ...
// 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...
/* =========================================================================== Doom 3 BFG Edition GPL Source Code Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company. This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code"). Doom 3 BFG Edition Source Code is free...
/*! @file タイプ別設定 - キーワードヘルプ ページ @author fon @date 2006/04/10 新規作成 */ /* Copyright (C) 2006, fon, ryoji Copyright (C) 2007, ryoji 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. Per...
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/REDhash.hpp> #include <RED4ext/Types/generated/AI/Position.hpp> namespace RED4ext { namespace AI { struct CMovementTarget : AI::Position { static constexpr const char* NAME =...
/* Copyright(c) 2016-2022 Panos Karabelas 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, distrib...
#ifndef STAN_MATH_FWD_SCAL_FUN_EXP2_HPP #define STAN_MATH_FWD_SCAL_FUN_EXP2_HPP #include <stan/math/fwd/meta.hpp> #include <stan/math/fwd/core.hpp> #include <stan/math/prim/scal/fun/exp2.hpp> #include <stan/math/prim/scal/fun/constants.hpp> #include <cmath> namespace stan { namespace math { template <typename T> inl...
/* MedianFilter.cpp * 2010-06-03: create this program by Lei Qu */ #include <QtGui> #include <math.h> #include <stdlib.h> #include "MedianFilter_called.h" #include "V3DITKFilterSingleImage.h" #include "itkMedianImageFilter.h" // Q_EXPORT_PLUGIN2 ( PluginName, ClassName ) // The value of PluginName should corre...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/types.h> #include <unistd.h> #include "sys_types.h" #include "sys_define.h" #include "mtos_task.h" #include "mtos_sem.h" #include "mtos_printk.h" #include "mtos_mem.h" #include "mtos...
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #include "catch2/catch.hpp" #include "jg/dense_hash_map.hpp" #include "jg/details/type_traits.hpp" #include <algorithm> #include <memory_resource> #include <string> #include <vector> namespace { struct increase_counter_o...
/* 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 rights to use, ...
// Copyright (c) 2009-2013 The Bitcoin developers // Copyright (c) 2017-2018 The PIVX developers // Copyright (c) 2018 The Soyuz3 developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "crypter.h" #include "scr...
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // ...
#include "IrisScene.h" #include "iris/IrisApplication.h" #include "iris/IrisLogger.h" #include "gameobject/GameObject.h" #include "transform/Transform.h" #include "renderer\Renderer.h" #include "texture2d\Texture2D.h" #include "mesh\Mesh.h" #include "assetdatabase\AssetDatabase.h" #include "shader\Shader.h" #include "m...
/** * MOAB, a Mesh-Oriented datABase, is a software component for creating, * storing and accessing finite element mesh data. * * Copyright 2004 Sandia Corporation. Under the terms of Contract * DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government * retains certain rights in this software. * * This...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #include "cbase.h" #include "baseentity.h" #include "sendproxy.h" #include "sun_shared.h" #include "map_utils.h" #include "...
// // _ _ ______ _ _ _ _ _ _ _ // | \ | | | ____| | (_) | (_) | | | | // | \| | ___ | |__ __| |_| |_ _ _ __ __ _| | | | // | . ` |/ _ \ | __| / _` | | __| | '_ \ / _` | | | | // | |\ | (_) | | |___| (_| | | |_| | | | | (_| |_|_|_| // |_| \_|\___/ |______\__,_|_|\...
#include "BoxLayout.h" namespace Ossium { REGISTER_COMPONENT(BoxLayout); void BoxLayout::OnLoadFinish() { LayoutComponent::OnLoadFinish(); } void BoxLayout::LayoutRefresh() { Transform* t = GetTransform(); // BoxLayout overrides the transform, position is based on th...
#include "combinedfragmentbuilder.h" #include "node.h" #include <algorithm> #include<conio.h> #include<iostream> CombinedFragmentBuilder::CombinedFragmentBuilder() { //ctor } CombinedFragment CombinedFragmentBuilder::build(TiXmlElement * ele_frag, vector<Message>& msgList) { int nm,nf; CombinedFragment cf;...
#include "unit_test.h" #include "cpp_lua_mgr.h" #include "LuaCaller.h" using namespace std; int main(int argc, char* argv[]) { UnitTestMgr::Obj().Start(); return 0; }
// David Eberly, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2022 // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt // https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // Version: 6.0.2022.01.06 #include "BufferUpdatingWindow3.h" #include <io...
#include <list> #include <map> #include <iostream> #include <iomanip> #include <fstream> #include <sstream> #include <stdarg.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <sys/time.h> #include "pin.H" #include "utils/debug.h" #include "utils/functions_registry.h" #include "utils/hollow_stack....
#include "MediaKeyCaptureItem.h" #ifdef Q_WS_S60 // A private class to access Symbian RemCon API class MediakeyCaptureItemPrivate : public QObject, public MRemConCoreApiTargetObserver { public: MediakeyCaptureItemPrivate(MediakeyCaptureItem *parent); ~MediakeyCaptureItemPrivate(); virtual void MrccatoComma...
/* Copyright (c) 2017, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * * All rights reserved. * * The Astrobee platform is licensed under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with t...
// 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 "chrome/browser/extensions/extension_process_manager.h" #include "chrome/browser/extensions/extension_error_reporter.h" #include "chrome/brow...
#include "Collider.h" Collider::Collider() { } Collider::~Collider() { } void Collider::CreateCollider(int w, int h) { }
#include <QTest> #include <QApplication> //tests #include <iostream> #include "test_redisconnection.h" #include "test_redisconnectionsmanager.h" #include "test_command.h" #include "test_response.h" #include "test_valueformatters.h" #include "test_valuetab.h" int main(int argc, char *argv[]) { QApplication app( argc,...
#include <fc/thread/thread.hpp> #include <fc/thread/mutex.hpp> #include <fc/thread/scoped_lock.hpp> #include <fc/thread/future.hpp> #include <fc/log/logger.hpp> #include <fc/io/enum_type.hpp> #include <net/MessageOrientedConnection.hpp> #include <net/StcpSocket.hpp> #include <net/Config.hpp> #include <blockchain/api_...
#include "processor.h" // TODO: Return the aggregate CPU utilization float Processor::Utilization() { float total_CpuTime = LinuxParser::Jiffies(); float idle_CpuTime = LinuxParser::IdleJiffies(); float delta_idle = idle_CpuTime - pre_idle_CpuTime; float delta_total = total_CpuTime - pre_total_CpuTim...