text
stringlengths
7
961k
//===-- SelectionDAG.cpp - Implement the SelectionDAG data structures -----===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* * (C) Copyright IBM Corp. 1998-2013 - All Rights Reserved * */ #include "LETypes.h" #include "LEFontInstance.h" #include "OpenTypeTables.h" #include "AnchorTables.h" #include "MarkArrays.h" #include "GlyphPositioningTables.h" #include "AttachmentPosnSubtables.h" #include "MarkToLigaturePosnSubtables.h" #include ...
/* Area of circle = 2*PIE*radius Area of triangle = base*height/2 */ #ifdef _WIN32 #include<iostream.h> #include<cmath.h> #endif #ifdef linux #include<iostream> #include<cmath> #endif #include<stdio.h> //define fix value of PIW #define PIE 3.141592654 using std::cout; using std::cin; //method to find area...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // =========================================================================== // File: Prestub.cpp // // =========================================================================== ...
/*** Bismillahir Rahmanir Rahim Read the name of Allah, who created you!!! Author : Shah Newaj Rabbi Shishir Department of CSE, City University, Bangladesh. ***/ #include <bits/stdc++.h> using namespace std; #define sf scanf #define pf printf #define scase sf ("%d",&t...
#include "biome.h" #include "terrainfeature.h" Biome::Biome(BiomeManager *b, string _name){ name = _name; bm = b; } float Biome::getBlockHeight(const Vector3 &_coordinates, BiomeGenInfo &_info){ return _info.height; } inline float getFeatureValue(const BiomeGenInfo &_info){ float a = _info.height ...
/* * Copyright (c) <2002-2009> <Jean-Philippe Barrette-LaPierre> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files * (curlpp), to deal in the Software without restriction, * including without limitation the r...
// Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/developer/debug/zxdb/console/format_context.h" #include "gtest/gtest.h" #include "src/developer/debug/zxdb/client/arch_info.h" #include "src...
// Copyright John W. Wilkinson 2007 - 2009. // Distributed under the MIT License, see accompanying file LICENSE.txt // json spirit version 4.03 #include "json_spirit_reader.h" #include "json_spirit_reader_template.h" bool json_spirit::read(const std::string& s, json_spirit::Value& value) { return read_s...
#pragma once #include <string> #include <vector> #include <map> #include <memory> #include <functional> #include <math.h> #include "../exceptions/exceptions.hpp" #include "types.hpp" namespace Branches::core { extern std::map<std::string,std::function<data_t(data_t)>> standard_functions; extern variables_t con...
/* MIT License Copyright (c) 2017 Johan Burke 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, di...
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * 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 noti...
#ifdef PEGASUS_OS_LINUX #ifndef __UNIX_VIDEOHEAD_PRIVATE_H #define __UNIX_VIDEOHEAD_PRIVATE_H #endif #endif
// Copyright 2016 Open Source Robotics Foundation, 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 appli...
// Copyright 2020 The SwiftShader 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 b...
// -*- C++ -*- // $Id: OS_NS_regex.inl 1861 2011-08-31 16:18:08Z mesnierp $ #include "ace/OS_NS_errno.h" #include "ace/os_include/os_regex.h" ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE char * ACE_OS::compile (const char *instring, char *expbuf, char *endbuf) { ACE_OS_TRACE ("ACE_OS::compile"); #if defined (ACE_...
/*********************************************************************** * file: vitmatrix.hh * licence: Artistic Licence, see file LICENCE.TXT or * http://www.opensource.org/licenses/artistic-license.php * descr.: data structures used inside the viterbi matrix * author: Oliver Keller (keller@cs.uni-...
// Copyright (c) 2012-2013 The PPCoin developers // Copyright (c) 2013-2015 The Cryptobullcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // Distributed under the MIT/X11 software license, see the accompanying...
#ifndef THREE_GL_SHADERS_IPP #define THREE_GL_SHADERS_IPP #include <three/config.hpp> #include <three/renderers/gl_shaders.hpp> #include <three/materials/uniform.hpp> #include <array> namespace three { const char* ShaderChunk::fog_pars_fragment() { return "#ifdef USE_FOG\n" "uniform vec3 fogColor;\...
#include <string> #include <Core/EventSystem/Events.h> #include <Core/Game/Game.h> #include <Core/Platform/Window/MouseState.h> #include <Core/Platform/Window/Keys.h> #include "Actor.h" #include "Scene.h" #include "IComponent.h" namespace LilEngie { IComponent::IComponent() { actor = nullptr; input = Input::core...
/* * Copyright 2017 Jacopo Urbani * * 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, V...
/* * Copyright 2018-2021 Max Kellermann <max.kellermann@gmail.com> * * 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 co...
/* Copyright (c) 2006, Michael Kazhdan and Matthew Bolitho 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 ...
// https://codeforces.com/contest/1283/problem/A #include <iostream> using namespace std; int main() { int tc; cin >> tc; while (tc--) { int hours, minutes; cin >> hours >> minutes; cout << ((23 - hours) * 60 + (60 - minutes)) << endl; } return 0; }
#include "surface.hpp" Surface::Surface() { this->setColor(ColorFactory::generateGray()); } void Surface::setColor(std::shared_ptr<Color> color) { this->color = color; } std::shared_ptr<Color> Surface::getColor() { return this->color; }
// Copyright (c) 2012-2020 LG Electronics, 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...
// This file is subject to the terms and conditions defined in 'LICENSE' in the source code package #include <gtest/gtest.h> #include "game/player/player.h" #include "jactorioTests.h" namespace jactorio::game { class PlayerRecipeTest : public testing::Test { protected: Player player_; Pl...
// // ConvolutionCommon.cpp // MNN // // Created by MNN on 2020/03/02. // Copyright © 2018, Alibaba Group Holding Limited // #include "ConvolutionCommon.hpp" #include <math.h> #include "half.hpp" namespace MNN { static inline void *MNNMemoryAllocAlignZeroAlign(size_t size) { return MNNMemoryCallocAlign(size, M...
#include <iostream> using namespace ::std; const int num = 100; int *countBits1(int, int *); int *countBits2(int, int *); int *countBits1(int num, int *res) { // int res[num + 1]; res[0] = 0; for (int i = 1; i <= num; i++) { // 关键是这句,主要作用是, // 对于没有进位(末尾从0变1),1的个数比前面一个多1,恰好i & (i - 1)=i...
#include "globals.h" #include "web_history.h" web_history::web_history() { m_current_item = 0; } web_history::~web_history() { } void web_history::url_opened( const std::string& url ) { if(!m_items.empty()) { if(m_current_item != m_items.size() - 1) { if(m_current_item > 0 && m_items[m_current_item - 1] ...
// Copyright Epic Games, Inc. All Rights Reserved. #include "ThirdPersonCpp425GameMode.h" #include "ThirdPersonCpp425Character.h" #include "UObject/ConstructorHelpers.h" AThirdPersonCpp425GameMode::AThirdPersonCpp425GameMode() { // set default pawn class to our Blueprinted character static ConstructorHelpers::FClas...
// ******************************************************************************************************************************* // ******************************************************************************************************************************* // // Name: ST7920LCDDriver.cpp // Purpose: LCD...
#include "../../include/scene/components/CPointLight.h" namespace TDEngine2 { CPointLight::CPointLight() : CBaseLight() { } E_RESULT_CODE CPointLight::Init() { if (mIsInitialized) { return RC_FAIL; } mIsInitialized = true; return RC_OK; } E_RESULT_CODE CPointLight::Load(IArchiveReader* pRead...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE369_Divide_by_Zero__float_connect_socket_73b.cpp Label Definition File: CWE369_Divide_by_Zero__float.label.xml Template File: sources-sinks-73b.tmpl.cpp */ /* * @description * CWE: 369 Divide by Zero * BadSource: connect_socket Read data using a connect socket (client...
/* * Copyright (c) 2015-2016, Georgia Tech Research Corporation * All rights reserved. * * Author(s): Michael X. Grey <mxgrey@gatech.edu> * * Georgia Tech Graphics Lab and Humanoid Robotics Lab * * Directed by Prof. C. Karen Liu and Prof. Mike Stilman * <karenliu@cc.gatech.edu> <mstilman@cc.gatech.edu> * * T...
// Copyright (c) 2009-2014 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/costly-config.h" #endif #include <cstddef> #if defined(HAVE_SYS_SELECT_H) #incl...
/* * DIPlib 3.0 * This file contains definitions for the Image class and related functions. * * (c)2014-2020, Cris Luengo. * Based on original DIPlib code: (c)1995-2014, Delft University of Technology. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in comp...
#ifndef REVERSE_BITS_HPP_ #define REVERSE_BITS_HPP_ #include <cstdint> using namespace std; class ReverseBits { public: uint32_t reverseBits(uint32_t n); }; #endif // REVERSE_BITS_HPP_
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_char_memcpy_07.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806.label.xml Template File: sources-sink-07.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Initialize dat...
#include "core.hpp" #include "utils.hpp" namespace rise::rendering { class Debugger : public LLGL::RenderingDebugger { public: protected: void OnError(LLGL::ErrorType type, Message &message) override { // std::cout << message.GetText() << std::endl; } void OnWarnin...
#include <algorithm> #include <fstream> #include <chrono> #include <cassert> #include <iostream> #include "Crypt.h" #include "core.hpp" #include "perftimer.h" static UL make_4b(const char* str) { UL k = 0; k |= UL(UC(str[0])) << 0; k |= UL(UC(str[1])) << 8; k |= UL(UC(str[2])) << 16; k |= UL(UC(str[3])) << 24...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * ...
#include <lib/ios.hpp> #include <lib/tree.hpp> int main() { lib::tree<int> t; auto parent = t.push_root(0); t.push_back_child(1, parent); t.push_back_child(22, parent); t.push_back_child(3, parent); t.push_back_child(3, parent); t.push_back_child(3, parent); t.push_back_child(3, parent); t.push_b...
// 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 "limitedmap.h" #include "test/test_sanity.h" #include <boost/test/unit_test.hpp> BOOST_FIXTURE_TEST_SUITE(limited...
// 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 "rpcconsole.h" #include "ui_rpcconsole.h" #include "clientmodel.h" #include "bitcoinrpc.h" #include "guiutil.h" #in...
#include "pch.h" #include "WFObjectToString.h" static PyObject * string2obj_wrapper(PyObject * self, PyObject * args) { int result; const char * input_file_1; const char * input_file_2; const char * input_string; const char * output_file; PyObject * ret; // parse arguments if (!PyArg_ParseTuple(args, "s|s|s...
// Copyright 2017 The Ray 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 agreed to i...
#include "NetworkException.hpp" using namespace arepa::networking; using Kind = NetworkException::Kind; constexpr const char* what_message(Kind kind) noexcept { switch (kind) { case Kind::ESTABLISH_ERROR: return "Failed to establish a socket."; case Kind::BIND_ERROR: return "Failed to bind...
#include <iostream> #include "alibabacloud/core/AlibabaCloud.h" #include "alibabacloud/imageenhan/ImageenhanClient.h" #include "alibabacloud/core/CommonClient.h" #include "model/common.h" extern "C" { using namespace std; using namespace AlibabaCloud; using namespace AlibabaCloud::Imageenhan; int erasePerson(char *im...
// Copyright 2018-2020 Lexis Nexis Risk Solutions // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
// Copyright (c) 2018, uPlexa Team // // 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 // conditi...
/*************************************************************************/ /* editor_about.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/* * 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...
#include "config.h" #include "Scene_points_with_normal_item.h" #include "Scene_polygon_soup_item.h" #include "Scene_surface_mesh_item.h" #include <CGAL/Three/Scene_group_item.h> #include <CGAL/Three/Polyhedron_demo_plugin_helper.h> #include <CGAL/Three/Polyhedron_demo_plugin_interface.h> #include <CGAL/Three/Scene_gro...
/* * 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 ...
#pragma ident "$Id$" /** * @file FICData162.hpp * Augment the FICData class to provide the ability to load * the FICData specifically for Block 162 */ #ifndef GPSTK_FICDATA162_HPP #define GPSTK_FICDATA162_HPP //============================================================================ // // This file is par...
#include <DefHeader.h> #include <job/system/Job.h> #ifdef _DEBUG #include <dx/core/XDebug.h> #include <dx/setup/GIDebug.h> #endif #include <dx/setup/GIFactory.h> #include <dx/core/XDevice.h> #include <dx/window/GfxWindow.h> #include <dx/cmds/CommandQueueManager.h> #include <dx/cmds/CommandListManager.h> #include <dx/...
/* * Copyright (C) 2018 Open Source Robotics 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 appl...
// framework #include "art/Framework/Principal/Event.h" #include "fhiclcpp/ParameterSet.h" #include "art/Framework/Principal/Handle.h" #include "art/Framework/Core/EDProducer.h" #include "art/Framework/Core/ModuleMacros.h" #include "art_root_io/TFileService.h" // data #include "Offline/RecoDataProducts/inc/CaloDigi.hh...
// Copyright 2020 The Pigweed Authors // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agre...
#include "../inc/sai_adapter.h" sai_status_t sai_adapter::create_bridge(sai_object_id_t *bridge_id, sai_object_id_t switch_id, uint32_t attr_count, const sai_attribute_t *attr_list) { Bridge_obj *b...
/** * * Author: Juarez Paulino(coderemite) * Email: juarez.paulino@gmail.com * */ #include <bits/stdc++.h> using namespace std; #define eb emplace_back #define mp make_pair #define mt make_tuple #define fi first #define se second #define sz(v) ((int) (v).size()) #define all(v) (v).begin(), (v).end() #define ms(x...
/* * Copyright 2019 Xilinx 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 ...
 // EpgDataCap_BonDlg.cpp : 実装ファイル // #include "stdafx.h" #include "EpgDataCap_Bon.h" #include "EpgDataCap_BonDlg.h" #include "../../Common/CommonDef.h" #include "../../Common/CtrlCmdDef.h" #include "../../Common/CtrlCmdUtil.h" #include "../../Common/TimeUtil.h" #include <shellapi.h> #include <objbase.h> #include "Ta...
/* This routine is called by interrupt in regular intervals */ /* Interval can be set in paxcounter.conf (HOMECYCLE) */ // Basic config #include "cyclic.h" // Local logging tag static const char TAG[] = "main"; // do all housekeeping void doHousekeeping() { // update uptime counter uptime(); // check i...
// // Copyright (c) 2017 The Khronos Group 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 la...
#include <bits/stdc++.h> using namespace std; using ll = long long; // -------------------------------------------------------- template<class T> bool chmax(T& a, const T b) { if (a < b) { a = b; return 1; } return 0; } template<class T> bool chmin(T& a, const T b) { if (b < a) { a = b; return 1; } return 0; } #define ...
/* _____ __ ___ __ ____ _ __ / ___/__ ___ _ ___ / |/ /__ ___ / /_____ __ __/ __/_______(_)__ / /_ / (_ / _ `/ ' \/ -_) /|_/ / _ \/ _ \/ '_/ -_) // /\ \/ __/ __/ / _ \/ __/ \___/\_,_/_/_/_/\__/_/ /_/\___/_//_/_/\_\\__/\_, /___/\__/_/ /_/ .__/\__/ ...
#include <bits/stdc++.h> using namespace std; // shortened type names typedef long long ll; typedef vector<int> vi; typedef pair<int, int> pi; // macros #define F first #define S second #define PB push_back #define MP make_pair #define REP(i, a, b) for (int i = a; i < b; i++) #define REPI(i, a, b) for (int i = a; i <...
/* BrepWithVoids.cpp * BRL-CAD * * Copyright (c) 1994-2014 United States Government as represented by * the U.S. Army Research Laboratory. * * This program 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 publi...
#include <iostream> using namespace std; int main() { int n = 0; int a = 0; int b = 0; int c = 0; int sum = 0; cin >> n; a = n / 100; b = (n % 100) / 10; c = n % 10; sum = a + b + c; cout << sum; }
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
/* * 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 2021 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 2017 Open Source Robotics Foundation, 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 appli...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2009 Klaus Spanderen This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and...
// Guy Shechter // June 2004 // Variables used for time debugging. TV tv1,tv2; TZ tz; // // Call this function to build the k-d Tree. // Tree *build_kdtree(double *reference, int N, int D, int *index, int L,int offset) { Tree *treeptr; if ( (treeptr = (Tree *) malloc(sizeof(Tree))) == NULL ) mexPrintf...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the L...
/* * Copyright (c) 2021, Brian Gianforcaro <bgianf@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include <LibTest/TestCase.h> #include <AK/IntrusiveList.h> #include <AK/NonnullOwnPtr.h> #include <AK/RefPtr.h> class IntrusiveTestItem { public: IntrusiveTestItem() = default; IntrusiveListNo...
/*********************************************************************** * * Copyright (c) 2012-2022 Barbara Geller * Copyright (c) 2012-2022 Ansel Sermersheim * Copyright (c) 2015 The Qt Company Ltd. * * This file is part of KitchenSink. * * KitchenSink is free software, released under the BSD 2-Clause license. * For ...
/* * Qt4 bitcoin GUI. * * W.J. van der Laan 2011-2012 * The Bitcoin Developers 2011-2012 */ #include <QApplication> #include "bitcoingui.h" #include "transactiontablemodel.h" #include "addressbookpage.h" #include "sendcoinsdialog.h" #include "signverifymessagedialog.h" #include "multisigdialog.h" #include "opti...
/* * Copyright (c) 2017 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
#include <XCurses/XCurses.h> #include <iostream> class HelloWorldWindow : public xcur::Window { public: static Object::Ptr<HelloWorldWindow> create() { std::shared_ptr<HelloWorldWindow> result(new HelloWorldWindow()); result->setBorder(xcur::Border::create(xcur::BorderTraits::Simple)); ...
#include "stdafx.h" #pragma hdrstop #pragma warning(push) #pragma warning(disable:4995) #include <d3dx9.h> #pragma warning(pop) #include "../../xrCDB/frustum.h" #ifdef USE_DX11 #include "../xrRenderDX10/StateManager/dx10StateManager.h" #include "../xrRenderDX10/StateManager/dx10ShaderResourceStateCache.h" #endif vo...
#include <SDL.h> #include <sstream> #include <universe/engine/sdl_error.hpp> namespace Universe::Errors { static const char* kSDLCategory = "SDL"; SDLError::SDLError(const std::string& category) : Error({kSDLCategory, category}, SDL_GetError()){}; }; // namespace Universe::Errors
#ifndef _TENSORVIEW_HPP #define _TENSORVIEW_HPP template <typename T> class Tensor; // Note: TensorView types are for local, temporary use only (e.g., // to allow TRIOT expressions that do not start at the same tuple // indices). But they should not be stored long term; the tensor // pointer may change, so long-term ...
// Copyright (c) 2017-2018 SECI developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "bench.h" #include "util.h" #include "validation.h" #include "checkqueue.h" #include "prevector.h" #include <vector> #include <b...
// Copyright 2017 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 "base/containers/span.h" #include <stdint.h> #include <iterator> #include <memory> #include <string> #include <type_traits> #include <vector> ...
#define _USE_MATH_DEFINES #include <iostream> #include <stdio.h> #include <cmath> #include <iomanip> #include <vector> #include <string> #include <algorithm> #include <unordered_set> #include <ctype.h> #include <queue> #include <map> #include <set> #include <stack> #include <unordered_map> #define EPSILON 0.00001 type...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/renderer/input/input_handler_proxy.h" #include "base/debug/trace_event.h" #include "base/logging.h" #include "base/metrics/histogram.h"...
/* Copyright 2015 LE, Duc-Anh 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, softwar...
/** * @file TickMeter_.cpp * @brief mex interface for cv::TickMeter and related functions * @ingroup core * @author Amro * @date 2017 */ #include "mexopencv.hpp" using namespace std; using namespace cv; namespace { // Persistent objects /// Last object id to allocate int last_id = 0; /// Object container map<int...
#include "DAINO.h" //------------------------------------------------------------------------------------------------------- // Function : Output_FlagMap // Description : Output the flag result of entire domain at level "lv" // // Note : ( X . O ) <--> (not flagged no patch flagged) // // xyz ...
/** * @file * @copyright defined in eos/LICENSE.txt */ #include "eosio.system.hpp" #include <eosiolib/eosio.hpp> #include <eosiolib/crypto.h> #include <eosiolib/print.hpp> #include <eosiolib/datastream.hpp> #include <eosiolib/serialize.hpp> #include <eosiolib/multi_index.hpp> #include <eosiolib/privileged.hpp> #i...
#include<rowdy.hpp> #include<utility.hpp> #include<stdexcept> #include<random> #include<vector> namespace PiKtures::Rowdy{ using __rowdy_pixel_t = cv::Point3_<uint8_t>; using PiKtures::Utility::checkProbability; using PiKtures::Utility::checkImage; using PiKtures::Utility::ErrorCode; constexpr doubl...
#include <iostream> #include <fstream> #include <string> #include <vector> #include <stack> #include <queue> #include <math.h> #include <stdlib.h> const char *in_file_name = "bellmanford.in"; const char *out_file_name = "bellmanford.out"; const int MAX = 9999999; using namespace std; ifstream in_file; ofstream out_f...
#include "Halide.h" #include "HalideRuntime.h" #include <assert.h> #include <stdio.h> #include <stdlib.h> using namespace Halide; #ifdef _WIN32 #define DLLEXPORT __declspec(dllexport) #else #define DLLEXPORT #endif // External functions to track whether the cache is working. int call_count = 0; extern "C" DLLEXPOR...
#include "NumberParserImpl.hpp" #include <boost/spirit/include/phoenix_core.hpp> #include <boost/spirit/include/phoenix_operator.hpp> #include <boost/spirit/include/phoenix_stl.hpp> //#include <boost/spirit/home/phoenix/container.hpp> //#include <boost/spirit/home/phoenix/statement/sequence.hpp> #include <climits> #inc...
//$Id: MediaCorrectionInterface.hpp 67 2010-06-17 21:56:16Z tdnguye2@NDC $ //------------------------------------------------------------------------------ // MediaCorrectionInterface //------------------------------------------------------------------------------ // GMAT: General Mission Analys...
#define BZ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/detail/standard_policies.hpp> using ll = int64_t; using ld = long double; using ull = uint64_t; using namespace std; using namespace __gnu_pbds; typedef vector <int> vi; typedef pair <int, int> ii; const int INF = 1 << 30;...