text
stringlengths
5.71k
33.7k
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkCanvas.h" #include "SkColorPriv.h" #include "SkMathPriv.h" #include "SkSurface.h" #include "Test.h" #include "sk_tool_utils.h" #if SK_SUPPORT_GPU #include "GrCont...
/******************************************************************************* * ___ _ ____ ____ * / _ \ _ _ ___ ___| |_| _ \| __ ) * | | | | | | |/ _ \/ __| __| | | | _ \ * | |_| | |_| | __/\__ \ |_| |_| | |_) | * \__\_\\__,_|\___||___/\__|____/|____/ * * Copyright (c...
/** @author <NAME> */ #include "ProjectManager.h" #include "RootItem.h" #include "ItemManager.h" #include "ViewManager.h" #include "MessageView.h" #include "ToolBar.h" #include "Archive.h" #include "ItemTreeArchiver.h" #include "ExtensionManager.h" #include "OptionManager.h" #include "MenuManager.h" #include "AppCo...
/**************************************************************************** * * Copyright (c) 2015 Estimation and Control Library (ECL). All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: ...
#include <array> #include <charconv> #include <chrono> #include <iostream> #include <memory> #include <sstream> #include <unordered_map> #include <vector> using namespace std; using namespace std::chrono; class SuffixTree; class Node; class NonLeaf; class InternalNode; class Leaf; class Edge; class InternalEdge; class...
/*************************************************************************** qgis.v.in.cpp --------------------- begin : May 2015 copyright : (C) 2015 by <NAME> email : <EMAIL> *************************************************************************** * ...
#include <cstddef> #include <iostream> #include "arrow_utils.hpp" #include "functor_utils.hpp" #include "dict.hpp" #include "list.hpp" #include "vector.hpp" #include "either.hpp" using namespace FunctionalCpp; // test function int add1(double a) { return a + 1; } int add2(int a, int b) { return a + b; } int add3(i...
/* boosting_training_tool.cc -*- C++ -*- <NAME>, 12 June 2003 Copyright (c) 2003 <NAME>. All rights reserved. $Source$ Tool to use to train boosting with. */ #include "jml/boosting/boosted_stumps.h" #include "jml/boosting/training_data.h" #include "jml/boosting/dense...
/* Library to interface with TMP007, OPT3001, and BME280 using Software I2C. Uses integer-only calculations and variables. https://github.com/Andy4495/Weather_Sensors_SWI2C Version History 1.0.0 05/17/2020 A.T. Original */ #include "Weather_Sensors_SWI2C.h" TMP007_SWI2C::TMP007_SWI2C(byte sda_pin, byte s...
#include <cstring> #include <stddef.h> #include "assert.h" #include "debug_serial.h" #include "kernel.h" #include "virt_mem_allocator.h" #include "util.h" #if (PAGING == PAGING_PML4) // Generalized entry structure for use in all paging structures union PageTableEntry { struct { uint8_t flags; uint8_t _pad[6...
/** Copyright 2009-2017 National Technology and Engineering Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government retains certain rights in this software. Sandia National Laboratories is a multimission laboratory managed and operated by National Technology and Engineering...
/******************************************************************************** Copyright 2004 <NAME> This file is part of Tinter. Tinter 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 Foun...
#include "Directories.h" #include "Font.h" #include "HImage.h" #include "Local.h" #include "MapScreen.h" #include "Radar_Screen.h" #include "Line.h" #include "RenderWorld.h" #include "Isometric_Utils.h" #include "Interface.h" #include "Overhead.h" #include "Soldier_Control.h" #include "Timer_Control.h" #include "SysUti...
// © 2013 the Search Authors under the MIT license. See AUTHORS for the list of authors. #include "drobot.hpp" #include <limits> #include <cmath> unsigned int DockRobot::Loc::pop(unsigned int p) { assert (p < piles.size()); Pile &pile = piles[p]; unsigned int box = pile.stack.back(); pile.stack.pop_back(); if ...
// SPDX-License-Identifier: BSD-3-Clause // SPDX-FileCopyrightText: 2020-2022 The Monero Project #include <QObject> #include "nodes.h" #include "utils/Utils.h" #include "utils/os/tails.h" #include "appcontext.h" #include "constants.h" #include "utils/WebsocketNotifier.h" #include "utils/TorManager.h" bool NodeList::...
// Copyright (C) 2017 by <NAME>, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and University of // of Connecticut School of Medicine. // All rights reserved. // Copyright (C) 2010 - 2016 by <NAME>, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and The University...
/* * Copyright (c) 2012-2013, 2015-2018 ARM Limited * All rights reserved. * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementa...
#include "std.h" #include "bbsys.h" //how many strings allocated static int stringCnt; //how many objects new'd but not deleted static int objCnt; //how many objects deleted but not released static int unrelObjCnt; //how many objects to alloc per block static const int OBJ_NEW_INC = 512; //how many strings to all...
/* * Copyright (c) 2000 - 2017 Samsung Electronics Co., Ltd All Rights Reserved * * Contact: <NAME> <<EMAIL>> * * 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...
#include "utility.h" #include <stdio.h> #include <iostream> #include "BaselFace.h" int BaselFace::BaselFace_faces_w = 0; int BaselFace::BaselFace_faces_h = 0; int* BaselFace::BaselFace_faces = 0; int BaselFace::BaselFace_shapeMU_w = 0; int BaselFace::BaselFace_shapeMU_h = 0; float* BaselFace::BaselFace_shapeMU = 0; in...
/* * LEGAL NOTICE * This computer software was prepared by Battelle Memorial Institute, * hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830 * with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE * CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY * LIABILITY FOR THE USE OF...
/** * @file occupancy-grid.cpp * @author <NAME> (https://github.com/giusenso) * @brief Sketch of low-level graphic engine: Occupancy Grid Mapping for robot navigation task * @version 0.3 * @date 2018-04-01 * * @copyright Copyright (c) 2020 * */ //::::::::... LIBS ...::::::::::::::::::::::::::::::...
#include "Mesh.h" #include <stdio.h> // For the DirectX Math library using namespace DirectX; Mesh::Mesh(Vertex* vertices, int vertexCount, unsigned int* indices, int indexCount, Microsoft::WRL::ComPtr<ID3D11Device> device, Microsoft::WRL::ComPtr<ID3D11DeviceContext> context) { this->context = context; this->Calcul...
/************************************************************************* * * * Open Dynamics Engine, Copyright (C) 2001-2003 <NAME>. * * All rights reserved. Email: <EMAIL> Web: www.q12.org * * ...
#include "Cylinder.h" const int MIN_SECTOR_COUNT = 3; const int MIN_STACK_COUNT = 1; Cylinder::Cylinder(float baseRadius, float topRadius, float height, int sectors, int stacks, bool smooth) { set(baseRadius, topRadius, height, sectors, stacks, smooth); } void Cylinder::formatData(std::vector<GLuint>& indexdata,...
/****************************************************************************** * Project: libspatialindex - A C++ library for spatial indexing * Author: <NAME>, <EMAIL> ****************************************************************************** * Copyright (c) 2002, <NAME> * * All rights reserved. * * Pe...
#include <thread> #include <fstream> #include <iostream> #include "../common/itkImageProcessingTools.h" #include "itkLabelOverlapMeasuresImageFilter.h" #include "itkHausdorffDistanceImageFilter.h" #include "itkMersenneTwisterRandomVariateGenerator.h" #include "../alphaAMDDeformableRegistration.h" #include "itkNeares...
/** *----------------------------------------------------------------------------- * Title : PGP rate test utility * ---------------------------------------------------------------------------- * File : pgpLoopTest.cpp * Author : <NAME>, <EMAIL> * Created : 2016-08-08 * Last update: 2016-08-08 ...
/* * Copyright 2008 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkPoint.h" void SkIPoint::rotateCW(SkIPoint* dst) const { SkASSERT(dst); // use a tmp in case this == dst int32_t tmp = fX; d...
/****************************************************************************** * AHRS.cpp * AHRS Device API implementation. * * Copyright (C) 2015 Robotics at Maryland * Copyright (C) 2015 <NAME> <<EMAIL>> * All rights reserved. * * Adapted from earlier work of <NAME> and <NAME> (2007) **********************...
/* * libjingle * Copyright 2004--2005, Google Inc. * * 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 conditions and...
#include "gui_window.h" #include "XPLMDisplay.h" // for window creation and manipulation #include "XPLMGraphics.h" // for window drawing #include "XPLMDataAccess.h" // for the VR dataref #include "XPLMPlugin.h" // for XPLM_MSG_SCENERY_LOADED message #include "XPLMUtilities.h" // for Various utilities #incl...
#include <iostream> #include <iomanip> #include <numeric> #include <random> #include "hala.hpp" #include "hala_vex.hpp" using std::cout; using std::endl; using std::setw; /*! * \file example_vex.cpp * \brief Example of using the BLAS module of HALA. * \author <NAME> * \copyright BSD-3-Clause * \ingroup HALAEXAM...
#include "searchdialog.h" #include "ui_searchdialog.h" SearchDialog::SearchDialog(QWidget *parent) : QDialog(parent), ui(new Ui::SearchDialog) { ui->setupUi(this); this->setWindowTitle(tr("Расширенный поиск")); this->setWindowFlags(Qt::Window | Qt::WindowSystemMenuHint | Qt::WindowCloseButtonHint);...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team. * Copyright (c) 2013,2014,2015,2016,2017 by the GROMACS development team. * Copyright (c) 2018,2019,2020, by the GROMA...
#include <fstream> #include <boost/config.hpp> #include <boost/archive/text_oarchive.hpp> #include <boost/archive/text_iarchive.hpp> #include "Metadata.h" #include "seispp.h" using namespace std; using namespace SEISPP; /* This procedure probably should be added to mdlist.cc. I writes the contents of a MetadataList to...
#include <iostream> #include <string> #include <stdio.h> #include <stdlib.h> #include <arpa/inet.h> #include <netinet/in.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <pthread.h> #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> #include "../sha256/sha256.h" #define PIPE_PR...
// Copyright (C) 2019. Huawei Technologies Co., Ltd. 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,...
/* Minetest Copyright (C) 2013 celeron55, <NAME> <<EMAIL>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This progr...
#include "IHMethod.h" //int _Verbose; //int _Plot; vector< pair<EID,Interval> > IHMethod::IHAlgorithm(Hungarian& _h){ vector< pair<EID, Interval> > intervals, it_m, it_um; it_m = IHMatchedEdge(_h, _h.M); it_um = IHUnMatchedEdge(_h, _h.GetUnMatchedSet()); //combine two vectors into one intervals.reser...
// This file is part of BOINC. // http://boinc.berkeley.edu // Copyright (C) 2011 University of California // // BOINC is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, // either version 3 of the Licens...
//----------------------------------------------------------------------------- // 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...
// // GLMHelpers.cpp // libraries/shared/src // // Created by <NAME> on 2014-08-07. // Copyright 2014 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "GLMHelpers.h" #include "Numerica...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-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 "pow.h" #include "arith_uint256.h" #include "chain.h" #include "chainparams.h" #i...
/* * Copyright (c) 2016, 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 <fata...
/* * Copyright 2015 <NAME> * * 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...
/*------------MD.cpp----------------------------------------------------------// * * MD.cpp -- a simple event-driven MD simulation * * Purpose: Figure out the pressure on the interior of a box based on * Boltzmann's theory and stuff * * Notes: This simulation will predominantly follow the logic o...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <stdint.h> #include <string.h> #include <math.h> #include "I2Cdev.h" #include "MPU6050_6Axis_MotionApps20.h" #include <dirent.h> #include <iostream> #include <filesystem> #include <sys/stat.h> #include <sys/timeb.h> #include <sys/time.h> #include <wiri...
/* * Copyright 2010-2016, Tarantool AUTHORS, please see AUTHORS file. * * 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 lis...
#include "stdafx.h" #include "PrimeTimeUpdater.h" #include "Base/FileFuncs.h" #include "FileDownloader.h" #include "FileProgressDlg.h" #include <direct.h> #include "Base/MsgLogger.h" #include "Base/StringFuncs.h" #include "Base/NumFuncs.h" #include "MD5.h" #include <set> #include "Base/PTDefines.h" static const wchar_...
/* Copyright (c) 2019 Sentient Things, Inc. All right reserved. */ //#DEFINE DEBUG // include this library's description file #include "IoTNodeThingSpeak.h" enum TSState { START, ADD_NEXT, CREATE_CHANNEL, //UPDATE_CHANNEL }; TSState TSstate = START; // include description files for other libra...
#include "PTEHandler.h" #include "PDPTPool.h" #include <vm/Map.h> #include <mem/PhysicalAllocator.h> #include <arch.h> #include <log.h> #include <string.h> using namespace arch::vm; /// Pointer to the kernel PTE arch::vm::PTEHandler *gArchKernelPte = nullptr; // log the modification of page directories #define LOG_...
/* Copyright 2003, 2016 <NAME>. 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 ...
/* MIT License Copyright (c) 2018 <NAME>, prince.chrismc(at)gmail(dot)com 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, cop...
/* * Copyright (C) 2014 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...
#include "iwa_fractalnoisefx.h" #include "iwa_noise1234.h" #include "tparamuiconcept.h" namespace { // convert sRGB color space to power space template <typename T = double> inline T to_linear_color_space(T nonlinear_color, T exposure, T gamma) { // return -std::log(T(1) - std::pow(nonlinear_color, gamma)) / exposur...
/* ** GLIM - OpenGL Immediate Mode ** Copyright <NAME> (<EMAIL>) ** For more details, see the included Readme.txt. */ #include "stdafx.h" #include "glimBatchData.h" #include "glimInterface.h" #include "Core/Headers/StringHelper.h" #include "Platform/Video/RenderBackend/OpenGL/Headers/GLWrapper.h" #include "Platform/...
#include "../core/global.h" #include "../core/datetime.h" #include "../core/makedir.h" #include "../core/config_parser.h" #include "../core/timer.h" #include "../core/threadsafequeue.h" #include "../dataio/sgf.h" #include "../dataio/trainingwrite.h" #include "../dataio/loadmodel.h" #include "../neuralnet/modelversion.h...
#include "stdafx.h" #include "util.h" #include "writer.h" #include "GoogleVssClient.h" // Main routines for writers metadata/status gathering. // Gather writers metadata. HRESULT GoogleVssClient::GatherWriterMetadata() { LogDebugMessage(L"Gathering writer metadata..."); // This call can be performed once per IVs...
// See LICENSE_CELLO file for license and copyright information /// @file enzo_EnzoMethodBackgroundAcceleration.cpp /// @author <NAME> (<EMAIL>) /// @date 2018-05 /// @brief Implements the EnzoMethodBackgroundAcceleration class #include "cello.hpp" #include "enzo.hpp" // What are these defs and do I ne...
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- #include <map> #include <set> #include <boost/scoped_ptr.hpp> #include <sys/types.h> #include <cstdlib> #include "include/buffer.h" #include "common/map_cacher.hpp" #include "osd/SnapMapper.h" #include "common/Cond.h" #include "gtest/gtest.h" usi...
#include <LCD.h> #include <SPI.h> #define USE_FRAME_BUFFER 1 #if USE_FRAME_BUFFER == 1 uint16_t frame_buf[320*240]; #endif void TFT::lcd_init() { __LCD_DC_OUT(); __LCD_DC_SET(); __LCD_CS_OUT(); __LCD_CS_SET(); __LCD_BKL_OUT(); __LCD_BKL_OFF(); //Driving ability Setting ...
/*********** Cpp_Helpers.cpp <NAME> , 2017 March Functions of general use for C++ programming Template Version: 2017-04-13 ***********/ #include "Cpp_Helpers.hpp" // == Debug Tools == void assert_report( bool assertion , string report ) { // Reporting wrapper for 'assert' if ( !assertion ) { cerr...
#include "gen.h" #include <iostream> using namespace std; #ifndef XP_HAS_LONG #define XP_HAS_LONG typedef int xp_long; typedef unsigned int xp_ulong; #endif #ifndef XP_HAS_BYTE #define XP_HAS_BYTE typedef unsigned char xp_byte; #endif #define ERR_RETURN(A) ERRerror("polycut",1,ERR_ORIG,A);return(1); int check_p...
#include <ros/ros.h> #include <std_msgs/Int32.h> #include <std_srvs/Empty.h> #include <geometry_msgs/PointStamped.h> #include <geometry_msgs/Vector3.h> #include <geometry_msgs/PoseStamped.h> #include <geometry_msgs/Twist.h> #include <visualization_msgs/MarkerArray.h> #include <nav_msgs/OccupancyGrid.h> #include <ras_fo...
#include <cstdio> #include <cassert> #include <cstdlib> #include <ctime> #include <stdint.h> extern "C" { #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> #include <libswscale/swscale.h> #include <libavutil/motion_vector.h> } // Fix for av_err2str which stops taking the address of a t...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
#include "pch.h" #include <string> #include <winsock2.h> #include <stdio.h> #include <iostream> #pragma comment(lib, "ws2_32.lib") #include <ws2tcpip.h> #include <map> #include <chrono> #include <thread> #include <fcntl.h> //fcntl #include "TemplateUtils.h" #include "StringUtils.h" #include "Memory...
/* Shaker is a GLSL sandbox for the desktop. You need to link OpenGL and SDL2 in order to build Shaker. The following command should suffice for most systems and compilers. clang++ shaker.cpp -o shaker -O3 -lSDL2 -lGL On Apple systems, you may need to use this command instead, based on your compiler vendor. cla...
#include <cmath> #include "util.h" #include "find_neighbors.h" #include "ECImpl.hpp" void candidates(ivec_t& candies, const kcvec_t& tiles, int threshold) { for (unsigned i = 1; i < tiles.size(); ++i) { if (tiles[i].goodCnt >= threshold) candies.push_back(i); } } void diff(evec_t& errs, u...
#include <gtest/gtest.h> #include <nvgraph/nvgraph.h> #include <cugraph.h> #include <nvgraph_gdf.h> #include "test_utils.h" // do the perf measurements // enabled by command line parameter s'--perf' static int PERF = 0; // iterations for perf tests // enabled by command line parameter '--perf-iters" static int PERF_M...
/*! * Copyright (c) 2017-2020 by Contributors * \file builder.cc * \brief model builder frontend * \author <NAME> */ #include <dmlc/registry.h> #include <treelite/frontend.h> #include <treelite/tree.h> #include <memory> #include <queue> /* data structures with underscore prefixes are internal use only and do ...
/** * @file hdf5_io.cpp * @author <NAME> and <NAME> * @copyright Copyright © UCLouvain 2020 * * FLUPS is a Fourier-based Library of Unbounded Poisson Solvers. * * Copyright <2020> <Université catholique de Louvain (UCLouvain), Belgique> * * List of the contributors to the development of FLUPS, Description a...
#include "StdAfx.h" #include "CmShow.h" const Vec3b CmShow::gColors[CmShow::COLOR_NUM] = { Vec3b(0, 0, 255), Vec3b(0, 255, 0), Vec3b(255, 0, 0), Vec3b(153, 0, 48), Vec3b(0, 183, 239), Vec3b(255, 255, 0), Vec3b(255, 126, 0), Vec3b(255, 194, 14), Vec3b(168, 230, 29), Vec3b(237, 28, 36), Vec3b(77, 109...
/* * Author: <NAME> * Copyright (c) 2018, Private Octopus, Inc. * All rights reserved. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THIS SOFTWARE ...
#include "cacert_pem.h" #include "xbackend_data.h" #include "common.h" // #include "xnode.h" #include "xbackend.h" #include "xpatch.h" #include <arpa/inet.h> #include <fcntl.h> #include <netdb.h> #include <netinet/in.h> #include <pthread.h> #include <sys/select.h> #include <sys/socket.h> #include <unistd.h> #include ...
/* * grove_comp_hmc5883l.cpp * * Copyright (c) 2012 seeed technology inc. * Website : www.seeed.cc * Author : <NAME> * * The MIT License (MIT) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal...
#include "3rdParty/fs_std.hpp" #include "PreprocessingApp/SphereFitting.hpp" #include "Utils/DepthIO.hpp" #include "Utils/Logger.hpp" #include "Utils/Utils.hpp" #include "Utils/cvutils.hpp" #include <opencv2/core/eigen.hpp> #include <opencv2/opencv.hpp> #include <cstdio> #include <fstream> using namespace cv; usi...
/* This file is a part of QVGE - Qt Visual Graph Editor (c) 2016-2020 <NAME> (<EMAIL>) It can be used freely, maintaining the information above. */ #include "CFileSerializerGEXF.h" #include "CNode.h" #include "CDirectEdge.h" #include "CPolyEdge.h" #include <QFile> #include <QDate> #include <QDebug> #include <QAppl...
// // Copyright 2021 Splunk 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 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 y...
#include "clipmap/TextureStack.h" #include "clipmap/PageCache.h" #include <SM_Calc.h> #include <tessellation/Painter.h> #include <unirender/Device.h> #include <unirender/TextureDescription.h> #include <unirender/Framebuffer.h> #include <unirender/ShaderProgram.h> #include <unirender/RenderState.h> #include <unirender/...
#include <cstdio> #include <cstdlib> #include <vector> #include <cmath> using namespace std; // this class contains the parameters for the genes in the population, such // as permissible ranges of each gene class Genetics { public: vector<double> mins; // minimum value a gene can posess vector<double> maxes; // max...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
#include "analyzer.h" #include <stdlib.h> Analyzer::Analyzer() { } void Analyzer::treeOrder(Parser::TreeNode *tree){ if(tree != nullptr){ for(int i = 0; i < 5; ++i){ treeOrder(tree->child[i]); } if(tree->token.type == Tokenizer::ID){ map<string, STable::TableInfo>...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <time.h> #include <math.h> /********************************************************************* * $Id: L2wBemc2009.cxx,v 1.2 2009/11/19 15:48:49 balewski Exp $ * \author <NAME>,MIT , 2009 *********************************************************...
#include <Rcpp.h> #include <omp.h> #include<iostream> #include "defs.h" #include <unordered_map> #include "basic_util.h" #include "basic_comm.h" #include "color_comm.h" #include "sync_comm.h" #include <set> using namespace Rcpp; void parse_SNAP(graph * G, NumericMatrix links, std::unordered_map<long, long> &clusterL...
#include "fault_cnf.h" #include "util/log.h" #include <unordered_set> #include <cassert> #include <sstream> FanoutConeInfo make_fanout_cone(const Fault& fault) { FanoutConeInfo fanout_cone; fanout_cone.lines_inside.insert(fault.line); const auto& line_out_gates = fault.line->destination_gates; std::vector<cons...
#include "Effects.h" #include "windows.h" #include <string> #include <iostream> using namespace std; void Effects::BannerPrint(char banner) { string pslots[10]{ "","", "", "", "", "", "", "", "", "" }; if (banner == 'a') { pslots[0] = "88888888ba 88 ad88888ba 8...
/* Copyright 2020 Futurewei Technologies, 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 applicabl...
/** * \file QryWznmSteAAction.cpp * job handler for job QryWznmSteAAction (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE #ifdef WZNMCMBD #include <Wznmcmbd.h> #else #include <Wznmd.h> #endif #include ...
/* Copyright 2022 NVIDIA 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
#include "columns.hpp" #include <components/misc/stringops.hpp> #include "universalid.hpp" namespace CSMWorld { namespace Columns { struct ColumnDesc { int mId; const char *mName; }; const ColumnDesc sNames[] = { { ColumnId_Value, ...
#include "ix/ix.h" #include "ix/winSys/_privateDef.h" ///========================/// // constructor / destructor // ///========================/// ixDropList::ixDropList(): usage(this), ixBaseWindow(&is, &usage) { _type= ixeWinType::dropList; buttonDx= buttonDy= 0; selNr= -1; sel= null; _scr= new ixScrol...
/* -*- mode:C++; indent-tabs-mode:nil; -*- */ /* MIT License -- MyThOS: The Many-Threads Operating System * * 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, includi...
#include "ComponentParticleEmitter.h" #include "pcg-c-basic-0.9/pcg_basic.h" #include "Application.h" #include "MathGeoLib/MathGeoLib.h" #include "mmgr/mmgr.h" ComponentParticleEmitter::ComponentParticleEmitter() { type = PARTICLE_EMITTER; emitterLifetime = -1; //Default Values speed.max = 5; speed.min = 0; ...
/* * integrator.cpp * * Created on: 2016年12月7日 * Author: zhuqian */ #include "integrator.h" #include "camera.h" #include "film.h" #include "scene.h" #include "sampler.h" #include "interaction.h" #include "light.h" #include "parallel.h" #include "memory.h" #include "reflection.h" #include "sampling.h" #includ...
#include "engine.hh" #include <assimp/Importer.hpp> #include <assimp/scene.h> #include <assimp/postprocess.h> #include "json.hpp" using namespace std; using namespace glm; using nlohmann::json; // ----------------------------------------------- void Camera::update() { front = vec3( cos(rot.x) * sin...
#include <MPU9250.hpp> #include <wiringPiSPI.h> #include <unistd.h> #include <iostream> #include <vector> #include <bitset> #include <cmath> using std::vector; using std::array; using byteset = std::bitset<8>; namespace { constexpr uint8_t I2C_RD_BIT = 0x80; constexpr int SPI_CHANNEL = 0; ...
int zWre , a0pU , FaiS, nNp/*UJGq*/, Rg//Zc , UWu , sl ,//T Kt0 , //h vfZ , jw, j56y , V3H , HN ,WkzG3BH ,Kw, fJ8 , W, xT5 ,OsCi//dl , dUv/*k*/ , cmoG , jJ,beF,WTG, b , YcEa3;void f_f0//yx (){ volatile int rd,//lD3h xzw, eScc6 ,F5, q3v; YcEa3 = q3v//4yXi + rd + xzw + eScc6 +F5;; { {{ {} }...