text
stringlengths
8.71k
38.4k
//////////////////////////////////////////////////////////////////////////////// // // // Name: GenericToys.cxx // // ...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2012-2014 <NAME>, Amsterdam, the Netherlands. // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) ...
/* * Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates * * 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 req...
/* * GDevelop JS Platform * Copyright 2008-2016 <NAME> (<EMAIL>). All rights * reserved. This project is released under the MIT License. */ #include "GDJS/IDE/ExporterHelper.h" #if defined(EMSCRIPTEN) #include <emscripten.h> #endif #include <algorithm> #include <fstream> #include <functional> #include <sstream> #i...
//============================================================================ // Name : PHA.cpp // Author : <NAME> (based on code by <NAME>) // Version : 2018.11 // Description : Partial hyperplane activation // // This code is licensed under the terms of the Eclipse Public License (EPL). //===========...
/* * Copyright 2005-2009, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> */ #include "EventDispatcher.h" #include "BitmapManager.h" #include "Desktop.h" #include "EventStream.h" #include "HWInterface.h" #include "InputManager.h" #include "Serv...
/* * Copyright (c) 2014 Samsung Electronics Co., Ltd 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 * * Unl...
#include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <string.h> #include "stringiterator.h" #include "woopsistring.h" using namespace WoopsiGfx; WoopsiString::WoopsiString() { init(); } WoopsiString::WoopsiString(const char* text) { init(); setText(text); } WoopsiString::WoopsiStr...
//--------------------------------------------------------------------------- // plotcmn.c: rtkplot common functions //--------------------------------------------------------------------------- #include <QString> #include <QProcess> #include <QColor> #include <QStringList> #include <QDebug> #include "plotmain.h" #in...
/* * Copyright 2017 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 agreed to...
#include "G4ios.hh" #include "globals.hh" #include "G4Box.hh" #include "G4EllipticalTube.hh" #include "G4Tubs.hh" #include "G4SubtractionSolid.hh" #include "G4LogicalVolume.hh" #include "G4PVPlacement.hh" #include "G4OpBoundaryProcess.hh" #include "G4LogicalBorderSurface.hh" #include "G4Material.hh" #include "G4Nis...
// Copyright 2018 The MACE 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 appl...
// STANDARD class renderer_opengl : public renderer { public: virtual bool uses_opengl() { return true; } protected: SDL_Surface *screen; int dispx, dispy; // Cache of the current font size bool init_video(int w, int h) { // Get ourselves an opengl-enabled SDL window Uint32 flags = SDL_HWSURFACE ...
//===-- llvm-libtool-darwin.cpp - a tool for creating libraries -----------===// // // 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 // //===---------------------------...
/* * Common Plugin code for OpenH323/OPAL * * This code is based on the following files from the OPAL project which * have been removed from the current build and distributions but are still * available in the CVS "attic" * * src/codecs/h263codec.cxx * include/codecs/h263codec.h * The original files,...
#include <iostream> #include <vector> #include <Eigen/Dense> #include <eigen3/Eigen/Core> using MatrixXd = Eigen::MatrixXd; using VectorXd = Eigen::VectorXd; using Vector2d = Eigen::Vector2d; using Vector4d = Eigen::Vector4d; using Vector6d = Eigen::Matrix<double, 6, 1>; using Vector8d = Eigen::Matrix<double, 8, 1>; ...
// This file is part of qgrep and is distributed under the MIT license, see LICENSE.md #include "common.hpp" #include "build.hpp" #include "output.hpp" #include "format.hpp" #include "fileutil.hpp" #include "filestream.hpp" #include "constants.hpp" #include "project.hpp" #include "encoding.hpp" #include "files.hpp" #i...
/** * @file FluxSvc.cxx * @brief definition of the class FluxSvc * * $Header: /nfs/slac/g/glast/ground/cvs/FluxSvc/src/FluxSvc.cxx,v 1.117 2012/07/02 21:00:19 cohen Exp $ * Original author: <NAME> <EMAIL> */ #include "FluxSvc/IRegisterSource.h" #include "facilities/Timestamp.h" #include "facilities/Observer.h" #in...
#include "StdAfx.h" #include "../eterLib/StateManager.h" #include "../eterLib/JpegFile.h" #include "PythonGraphic.h" bool g_isScreenShotKey = false; void CPythonGraphic::Destroy() { } LPDIRECT3D8 CPythonGraphic::GetD3D() { return ms_lpd3d; } float CPythonGraphic::GetOrthoDepth() { return m_fOrthoDepth; } void C...
/** * GUIUtils.cpp * * @author <NAME> * @version 2020/3/5 * Keith final revision from end of quarter 19-2 */ #include "GUIUtils.h" #include "strlib.h" #include <sstream> #include <vector> #include <cmath> using namespace std; namespace { /* Multiplier of the line height to use between natural linebreaks. ...
// Test cases for the MVE image tools. // Written by <NAME>. #include <gtest/gtest.h> #include "mve/image.h" #include "mve/image_tools.h" namespace { mve::FloatImage::Ptr create_test_float_image (int width, int height, int chans) { mve::FloatImage::Ptr img; img = mve::FloatImage::create(w...
// Copyright (c) Microsoft Open Technologies, Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. #include "stdafx.h" #include "logging.h" // This is small, native code executable which opens a named pipe // to the compiler server...
/* * main.cpp * * Created on: 9 Oct 2021 * Author: <NAME> * License: BSD 3-Clause License (see LICENSE file) */ #include "Settings.hpp" #include <small3d/Renderer.hpp> #include <small3d/Model.hpp> #include <small3d/SceneObject.hpp> #include <small3d/Sound.hpp> #include "GameLoopAndInput.hpp" #include <...
#include <QFile> #include <QQuaternion> #include <QByteArray> #include <QDataStream> #include <QFileInfo> #include <QDir> #include <QtCore/qbuffer.h> #include "glbfile.h" #include "version.h" #include "util.h" #include "jointnodetree.h" #include "meshloader.h" // Play with glTF online: // https://gltf-viewer.donmccurd...
#include <vnl/vnl_matrix.h> #include <vnl/algo/vnl_svd.h> #include <vnl/vnl_rank.h> #include <testlib/testlib_test.h> inline int svd_rank(vnl_matrix<double> const& M) { return vnl_svd<double>(M, 1e-8).rank(); } void test_rank() { // 1x1 double vnl_matrix<double> m11(1,1, 0.0); // all zero matrix TEST("zero_1x1...
/* Copyright (c) 2010-2013 <NAME> */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining a */ /* copy of this software and associated documentation files (the "Software"), */ /* ...
/* Copyright (C) 2003-2013 by <NAME> <<EMAIL>> This program 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 2 of the License, or (at your option) any later version. This prog...
// // struck.cpp // Robust Struck // // Created by <NAME> on 10/6/14. // Copyright (c) 2014 <NAME>. All rights reserved. // #include "Struck.h" #include <math.h> #include "boost/filesystem/operations.hpp" // includes boost/filesystem/path.hpp #include "boost/filesystem/fstream.hpp" // ditto std::vector<cv::Rec...
/* Copyright (c) <NAME> and the Grit Game Engine project 2015 * 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, ...
/************************************************************** * * 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...
//===--- InitPreprocessor.cpp - PP initialization code. ---------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// sim_compartment.cpp #include "sim_compartment.h" #include "parameters.h" #include "reporter.h" #include "randomizer.h" #include "user_defined.h" // // MODEL DYNAMICS // Population::Population(Parameters& P, unsigned int pindex) : seed_row(0), p(pindex) { // Set up built-in compartments N = P.pop[p].size;...
/* * Copyright 2014 RWTH Aachen University. All rights reserved. * * Licensed under the RWTH LM License (the "License"); * you may not use this file except in compliance with the License. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an ...
#include <iostream> #include <fstream> #include <sstream> #include <string> #include <vector> #include <list> #include <bitset> #include <string.h> #include <stdlib.h> #include <inttypes.h> #include <time.h> #include <sys/time.h> #include <cstdint> #include <stdint.h> #include <unistd.h> // Includes for seeding #incl...
/*------------------------------------------------------------------------- * * spgtextproc.c * implementation of radix tree (compressed trie) over text * * In a text_ops SPGiST index, inner tuples can have a prefix which is the * common prefix of all strings indexed under that tuple. The node labels * repres...
#include <iostream> #include <fstream> #include <bitset> #include <string> #include <map> #include <opencv2/opencv.hpp> using namespace std; using namespace cv; #define ASCEND true #define DESCEND false #define INTRA true #define INTER false map<string, string> decode_dict; void initDecodeDict(); void zigzagStep(i...
#include "loottablefunction.h" #include "loottableentry.h" #include "loottablecondition.h" #include "ui_loottablefunction.h" #include "inventoryitem.h" #include "mainwindow.h" #include "numberproviderdelegate.h" #include "globalhelpers.h" #include "modelfunctions.h" #include <QJsonArray> #include <QJsonObject> #inclu...
/* jcTBL Transformation-based learning classifier system - 9/6/2015: Created by <NAME> ---------------------------------------------------------------------------- MIT License Copyright (c) 2016, <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this...
#include <vector> #include <math.h> #include <cstdlib> #include <iostream> #include <fstream> #include "library_float.h" using namespace std ; using namespace sci ; extern float intToFloat(int32_t m); extern void Softmax2(int32_t s1, int32_t s2, vector < vector < FPArray > >& inArr, vector < vector < FPArray > >& o...
/******************************************************************************\ * * * ____ _ _ _ * * | __ ) ___ ___ ___| |_ / \ ___| |_ ___ _ __ *...
/* * Read an YUV file, do a number of image transformations using basic ISA, MMX, * SE2, and AVX, and do a performance evaluation. * * Created by <NAME> at 2019/05/08 */ #include <chrono> #include <cmath> #include <cstdint> #include <cstdio> #include <cstdlib> #include <cstring> #include <fstream> #include <iostr...
#include "glsupport.h" #include "../third_party/stb_image.h" using namespace DR_D; static unsigned int cubeVAO = 0; static unsigned int cubeVBO = 0; static unsigned int quadVAO = 0; static unsigned int quadVBO = 0; static unsigned int sphereVAO = 0; static unsigned int sphereIndexSize = 0; void DR_D::renderQuad() { i...
#include "FWCore/Framework/interface/Event.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "Validation/EcalHits/interface/EcalSimHitsValidProducer.h" #include "DataFormats/Math/interface/Point3D.h" #include "SimDataFormats/ValidationFormats/interface/PValidationFormats.h" #include "SimG4CMS/Calo/in...
#include <byteswap.h> #include <math.h> #include <pthread.h> #include <stdio.h> #include <string.h> #include <iostream> #include <fstream> #include <linux/spi/spidev.h> #include <rt/rt_spi.h> #include <rt/rt_spi_lcm.h> #include <lcm/lcm-cpp.hpp> lcm::LCM *lcm_spi; unsigned char spi_mode = SPI_MODE_0; unsigned char s...
#include <assembly_dual_controllers/servers/assemble_probe_edge_action_server.h> AssembleProbeEdgeActionServer::AssembleProbeEdgeActionServer(std::string name, ros::NodeHandle &nh, std::map<std::string, std::shared_ptr<FrankaModelUpdater>> &mu) : ActionS...
/* Copyright (c) <2003-2016> <Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * includi...
// dx10HW.cpp: implementation of the DX10 specialisation of CHW. ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #pragma hdrstop #pragma warning(disable:4995) #include <d3dx/d3dx9.h> #pragma warning(default:4995) #include "../xrRender/HW.h" #include "../../xr_3da/XR_IOConsol...
#include "kmeans.h" #include <fcntl.h> #include <limits.h> #include <math.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <iostream> #include <string> #define CL_USE_DEPRECATED_OPENCL_1_2_APIS #define _CRT_SECURE_NO_DEPRECATE 1 #ifdef WIN #in...
#include <stdio.h> #include <math.h> #include <vector> #include <fstream> #include <set> #include <iostream> #include <algorithm> #include <stdlib.h> #include <ctype.h> #include <time.h> #include <assert.h> #include "MersenneTwister.h" using namespace std; using ll = long long; vector<int> L_jc; // tank of JS => L_jc ...
/* feddemo - test of federation algorithm compiles with very strict error checking: g++ -g -O0 -std=c++0x -pedantic-errors -Wall -Wextra -Wno-empty-body \ -Wno-missing-field-initializers -Wwrite-strings -Wno-deprecated \ -Wno-unused -Wno-non-virtual-dtor -Wno-variadic-macros \ -fmessage-leng...
#include "Renderer.h" #include "Input.h" #include "imgui/imgui.h" #include "Imgui/imgui_impl_dx11.h" #include "Imgui/imgui_impl_win32.h" #include <DirectXMath.h> using namespace DirectX; Renderer::Renderer(Microsoft::WRL::ComPtr<ID3D11Device> _device, Microsoft::WRL::ComPtr<ID3D11DeviceContext> _context, Microsoft:...
/* * Copyright (C) 2021 Southern Storm Software, Pty Ltd. * * 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, ...
// --------------------------------------------------------------------- // // Copyright (c) 2018 - 2020 by the IBAMR developers // All rights reserved. // // This file is part of IBAMR. // // IBAMR is free software and is distributed under the 3-clause BSD // license. The full text of the license can be found in the f...
/* * 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: main.cpp * Author: mcp * * Created on January 10, 2016, 8:55 AM */ #include <cstdlib> #include <iostream> #inclu...
/*This file is part of the FEBio source code and is licensed under the MIT license listed below. See Copyright-FEBio.txt for details. Copyright (c) 2020 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any person obtaining ...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <sys/time.h> #include <string> #include <string.h> #include <iostream> #include <iomanip> using namespace std; #include <sstream> #include <fstream> #include <libconfig.h> #include "../include/gauss_integration.hpp" #include "../include/thermal_integrand...
/* covTools.cpp Reads and writes COV files (BAM coverage) Copyright (C) 2021 <NAME> 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...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2017-2019 The DragonBallChain Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "commons/json/json_spirit_utils.h" #include "commons/json/json_spirit_valu...
#ifndef PAR_SHAPES_IMPLEMENTATION #define PAR_SHAPES_IMPLEMENTATION #endif #include "Par/par_shapes.h" #include <time.h> #include "Quadtree.h" #include "Globals.h" #include "Application.h" #include "ModuleScene.h" #include "ModuleRenderer3D.h" #include "Parson/parson.h" #include "MathGeoLib/include/MathGeoLib.h" #in...
/* The MIT License (MIT) Copyright (c) 2015 - 2018 Light Transport Entertainment, 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...
#include "QuadTree.hpp" Quadtree::Quadtree(const Vec2 minPos_, const Vec2 maxPos_, const size_t capacity_, CollisionSECM wrld, uint8_t TAG) : m_pos{ (maxPos_ - minPos_) / 2 + minPos_ }, m_size{ maxPos_ - minPos_ }, m_capacity{ capacity_ }, world{ wrld }, COLLIDER_TAG{ TAG } { root.firstSubTree = nodes.make4Child...
/* -------------------------------------------------------------------------- * * Simbody(tm): SimTKmath * * -------------------------------------------------------------------------- * * This is part of the SimTK biosimulation toolkit originating from * ...
// Copyright 2019 <NAME> (<EMAIL>) // 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, distribute,...
/* ----------------------------------------------------------------------------------------------------------- Software License for The Fraunhofer FDK AAC Codec Library for Android ?Copyright 1995 - 2013 Fraunhofer-Gesellschaft zur F?derung der angewandten Forschung e.V. All rights reserved. 1. INTRODUCTION T...
/*! @file @brief CEditViewクラスのインクリメンタルサーチ関連コマンド処理系関数群 @author genta @date 2005/01/10 作成 */ /* Copyright (C) 2004, isearch Copyright (C) 2005, genta, Moca Copyright (C) 2018-2021, Sakura Editor Organization This source code is designed for sakura editor. Please contact the copyright holders to use this code f...
/*---------------------------------------------------------- * COMPILE USING FOLLOWING OPTIONS: * HP 9000: cc paginate.c -Wc,-Ni400 -o paginate * Apollo: cc paginate.c -O -o paginate *---------------------------------------------------------- */ /*----------------------- * Compilation Notes: * HP: i...
#include <Common.hpp> #include <Instance.hpp> #include <Device.hpp> #include <FrameBuffer.hpp> #include <Memory.hpp> #include <Buffer.hpp> #include <RenderPass.hpp> #include <Surface.hpp> #include <SwapChain.hpp> #include <Image/Image.hpp> #include <Image/View.hpp> #include <Command/Pool.hpp> #include <Command/Buffer....
#include <main/VRMain.h> #include <main/VRSystem.h> #include <stdio.h> #ifdef WIN32 #include <windows.h> #else #include <unistd.h> #endif #include <display/VRConsoleNode.h> #include <display/VRGraphicsWindowNode.h> #include <display/VRGroupNode.h> #include <display/VROffAxisProjectionNode.h> #include <display/VRSter...
#include <stdio.h> #include <stdint.h> #include <string.h> #include <stdlib.h> #include <zlib.h> #include "tk.h" #define MAX_READ_PER_CHROM_PER_BARCODE 300000 #define MIN_MAPQ 20 #define FIX_LENGTH (uint64_t)1e10 typedef struct { int32_t tid; int32_t idx; // idx = (int) (pos / bin_size) uint32_t uint_bcd; } READ_...
/** @file @brief GUNNS Electrical Photovoltaic Array Shunting Regulator Model implementation @copyright Copyright 2019 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved. LIBRARY DEPENDENCY: ( (core/GunnsBasicLink....
#include "clp.h" #include "time.hh" #include "json.hh" #include "hosts.hh" #include "partitioner.hh" #include "sock_helper.hh" #include "pqserver.hh" #include "pqpersistent.hh" #include "pqdbpool.hh" #include "pqclient.hh" #include "twitter.hh" #include "twitternew.hh" #include "hackernews.hh" #include "hackernewsshim....
int Il45 , x1b2 ,JNL, WYg,KTgNu , yJkg //7xj ,RV3j3 ,j,WiSG , qTCZ//2J0 , jMR8 , JzbY4 ,w6WPD,/*x*/IH ,fvJD /*nd*/ , //XB0 IgB , WNZIS ,k7 ,AJ,EBm8,kI , Gp,LGzni , B , RaIwN, GUTM80 //oD , cA, DIZ , //vp9 G5d ,j31,ZUvj ,G7CV ,EuaoK ,yLU, DUYl, nEVj, SLob, TjwT ,d94uu , Gi,m0/*M*/,C7an58t/*H*/ , qU...
// Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fstream> #include <iomanip> #include <iostream> #include <limits> #include <map> #i...
// // Author: <NAME> // Copyright 2016 // #define _USE_MATH_DEFINES #include "AmpcorMethods.h" #include "Constants.h" #include <algorithm> #include <cmath> #include <complex> #include <ctime> #include <vector> using std::abs; using std::complex; using std::conj; using std::fill; using std::imag; using std::max; using...
/* This module contains RS decoding functions collected from <NAME>'s libfec library. Original copyright: * Copyright 2003 <NAME>, KA9Q * May be used under the terms of the GNU Lesser General Public License (LGPL) libfec source files included: - fixed.h - decode_ccsds.c - decode_rs_8.c - decode_rs.h */ #include "d...
//呼叫函式庫 #include "opencv2/opencv.hpp" #include <cstdio> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <string.h> #include <ctime> #include <iostream> #include <fstream> using namespace cv; using namespace std; #pragma warning(disable:4996) //全域變數宣告 const int ITERATION_NUMBER=2; /...
// Author Phinfinity <<EMAIL>> /* Transparent HTTP Proxy Wrapper */ // This program is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY #include <arpa/inet.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <linux/...
/* This tutorial show how to create a more complex application with the engine. We construct a simple mesh viewer using the user interface API and the scenemanagement of Irrlicht. The tutorial show how to create and use Buttons, Windows, Toolbars, Menus, ComboBoxes, Tabcontrols, Editboxes, Images, MessageBoxes,...
#include "G4ios.hh" #include "G4Event.hh" #include "G4ParticleGun.hh" #include "G4ParticleTable.hh" #include "G4ParticleDefinition.hh" #include "G4PhysicsTable.hh" #include "Randomize.hh" #include "WLSPrimaryGeneratorAction.hh" #include "WLSEventAction.hh" #include "WLSSteppingAction.hh" #include "WLSDetectorConst...
/* (c) <NAME>. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #include <base/tl/sorted_array.h> #include <base/math.h> #include <engine/config.h> #include <engine/shared/config.h> #include <engin...
/* * $Id: craStar.cpp,v 1.8 2006/10/24 18:18:07 nathanst Exp $ * * craStar.cpp * hog * * quick refinement added by <NAME> on 7/11/06 * * Created by <NAME> on 6/23/05. * Copyright 2005 <NAME>, University of Alberta. All rights reserved. * * This file is part of HOG. * * HOG is free software; you can re...
#include "ray.hpp" using namespace std::chrono; Primitive* load_scene(data_t* data) { const char* scene = data->scene; int num_primitives = 0; int* n_primitives = &num_primitives; FILE* scene_file; scene_file = fopen(scene, "r"); if (scene_file == NULL) { fprintf(stderr, "Scene file not found\n"); ...
// Copyright 2018 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 ...
#include"acidcam_window.hpp" #include"ipc_client.hpp" #ifdef SYPHON_SERVER #include "syphon.h" #endif #include<cstdlib> #include"stereo.h" acidcam::AcidCam_Window main_window; std::unordered_map<std::string, int> draw_strings_map; void key_callback(GLFWwindow *window, int key, int scancode, int action, int mode) { ...
//===- DWARFUnit.cpp ------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "toonz/rasterbrush.h" #include <vector> #include <tcurves.h> using namespace std; namespace { //===================================================================================== // forward declaration void lightPixel(const TRasterCM32P &ras, const TPoint &pix, double distance, int styleId, bool check...
/******************************************************************************\ * Technische Universitaet Darmstadt, Institut fuer Nachrichtentechnik * Copyright (c) 2001-2006 * * Author(s): * <NAME> * * Description: * * ****************************************************************************** * * Thi...
// system include files #include <cmath> #include <iostream> #include <fstream> #include <vector> #include <map> #include <string> #include "DataFormats/ForwardDetId/interface/ForwardSubdetector.h" #include "DataFormats/ForwardDetId/interface/HGCalDetId.h" #include "DataFormats/ForwardDetId/interface/HGCSiliconDetId.h...
/* Module : AAMercury.cpp Purpose: Implementation for the algorithms which obtain the heliocentric position of Mercury Created: PJN / 29-12-2003 History: PJN / 16-11-2005 1. Fixed a transcription error in the second coefficient used to calculate the longitude of Mercury. Thanks to "Mauri...
#define NOMINMAX #include "StreamProofESP.h" #include "../imgui/imgui.h" #define IMGUI_DEFINE_MATH_OPERATORS #include "../imgui/imgui_internal.h" #include "../Config.h" #include "../fnv.h" #include "../GameData.h" #include "../Helpers.h" #include "../SDK/Engine.h" #include "../SDK/GlobalVars.h" #include "../Memory.h"...
//----------------------------------------------------------------------------- // Product: OpenCTM tools // File: dae.cpp // Description: Implementation of the DAE (Collada) file format // importer/exporter. //----------------------------------------------------------------------------- // Copy...
/************ util functions ************/ #include "helper.h" using namespace std; /************ helper functions ************/ float get_classifier_cost( _Classifier_Kind classifier_kind, int num_all_instance, int num_node_instance, float raw_classifier_cost ) { float classifier_cost; if( classifier_kind == L2R_...
#include <internet/imap4Lib.h> #include <futils/general.h> /*---------------------------------------------------------------------------*/ EXC_TYPE imap4FetchMsgSync (ISockioInterface& SBSock, LPCTSTR lpszITag, // NULL == auto-generate const BOOLEAN fIsUIDFetch, const UINT32 ul...
#include "SubControls.hpp" #include <map> #include <algorithm> #include "window.hpp" #include "osdialog.h" #include "util/common.hpp" struct ModBrowserWidget; struct ListElement { ModBrowserWidget *mbw; virtual void onAction(EventAction &e) { debug ("Not Implemented"); } virtual std::string GetLabelOne() { return ...
#include "AuctAlg.h" using namespace mtl; // Compute the associated total payoff int AuctAlg::totalpay (AuctPay& Pay, AuctShape& Sh, AuctAssoc& S) { int col, fullrow, row; int pindex; int total = 0; std::list<int> colind, colmult; std::list<int>::iterator i, j; for (row = 0; row<Sh.nrows(); row++) { ...
// // 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 // //===----------------------------------------------------------------------===// // // This file implements the t...
// This code is in the public domain -- <EMAIL> /** @file Raster.cpp * @brief Triangle rasterization library using affine interpolation. Not * specially optimized, but enough for my purposes. **/ #include "nvmesh.h" // pch #include "Raster.h" #include "ClippedTriangle.h" #include "nvcore/Utils.h" // m...
/* Copyright (c) 2018, <NAME> - 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 conditions and the following discla...
// // Created by <NAME> on 2/18/19. // #include "sendData.h" dataSendHandler data_sender; // Global data sender MQTTClient mqttClient(256); // POST Timers Ticker localTargetTicker; Ticker brewersFriendTicker; Ticker brewfatherTicker; Ticker brewStatusTicker; Ticker gSheetsTicker; Ticker mqttTicker; // POST Semapho...
//===--- CFG.cpp - Utilities for SIL CFG transformations ------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...