text
stringlengths
8.71k
38.4k
#include <sys/stat.h> #include <errno.h> #include <unistd.h> #include <arc/data/FileCache.h> #include <arc/data/DataHandle.h> #include <arc/URL.h> #include <arc/StringConv.h> #include <arc/UserConfig.h> #include <arc/FileAccess.h> #include <arc/FileUtils.h> #include <arc/User.h> #include <arc/Utils.h> #include <arc/m...
/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warran...
/* * 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...
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2013 <NAME>. All rights reserved. *...
#include <cctype> #include "gtest/gtest.h" #include "genotype/quasimap/coverage/allele_base.hpp" #include "submod_resources.hpp" #include "test_resources.hpp" using namespace gram::submods; using namespace gram::coverage::per_base; TEST(AlleleBaseCoverageDump, GivenPopulatedAlleleBaseCoverage_CorrectJsonDump) { S...
/* * Copyright (c) 2013-2015 <NAME> * * This file is part of GamingAnywhere (GA). * * GA is free software; you can redistribute it and/or modify it * under the terms of the 3-clause BSD License as published by the * Free Software Foundation: http://directory.fsf.org/wiki/License:BSD_3Clause * * GA is distribut...
#include "TransactionBuilder.hpp" #include <iostream> #include "BlockChain.hpp" #include "CryptoNoteTools.hpp" #include "Currency.hpp" #include "Wallet.hpp" #include "common/string.hpp" #include "crypto/crypto.hpp" #include "crypto/random.h" #include "http/JsonRpc.h" #include "seria/BinaryOutputStream.hpp" ...
/** * Copyright (C) 2018-present MongoDB, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the Server Side Public License, version 1, * as published by MongoDB, Inc. * * This program is distributed in the hope that it will be useful, * but W...
#include <limits> #include "cutscene/ffmpeg/FFMPEGDecoder.h" #include "cfile/cfile.h" #include "libs/ffmpeg/FFmpegContext.h" #include "cutscene/ffmpeg/internal.h" #include "cutscene/ffmpeg/AudioDecoder.h" #include "cutscene/ffmpeg/VideoDecoder.h" #include "cutscene/ffmpeg/SubtitleDecoder.h" #include "FFMPEGDecoder...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2018 The Bitcoin Core developers // Copyright (c) 2018-2020 John "ComputerCraftr" Studnicka // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <pow.h> #include <arit...
// ================================================================================================= // ADOBE SYSTEMS INCORPORATED // Copyright 2006-2007 Adobe Systems Incorporated // All Rights Reserved // // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms // of the Adob...
/****************************************************************************//* * Copyright (C) 2021 <NAME> * * Creative Commons Legal Code * * CC0 1.0 Universal * * CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE * LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN *...
/**************************************************************************** * MeshLab o o * * A versatile mesh processing toolbox o o * * _ O _ * * Copyri...
#include "lexical.h" enum { Q0, Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11, Q12, Q13, Q14, Q15, Q16, Q17, Q18, Q19, Q20, Q21, Q22, Q23, Q24, Q25 }; int transitions[27][21] = { ...
//===- Trace.cpp - XRay Trace Loading implementation. ---------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "camera.h" #include "glad/glad.h" #include "glfw3/glfw3.h" #include "shader.h" #include "stb/stb_image.h" #include <cstdio> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <math.h> #include <mesh.h> #include <model.h> #include <vector> void framebuffer_size_callback(GLFWwindow *window...
#include "fx/gpu_particle.h" #include "glm/glm.hpp" #include "glm/gtc/type_ptr.hpp" #include "ui/views/fx/SparkleView.h" #include "shaders/particle/interop.h" #include "core/logger.h" #include "memory/assets/assets.h" // ---------------------------------------------------------------------------- uint32...
/*===========================================================================*\ | | File: cglevel.cpp | | Description: | |----------------------------------------------------------------------------- | | Copyright (C) 1995-1996 Microsoft Corporation. All Rights Reserved. | | Written by <NA...
// Copyright (c) 2008-2021 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...
#include "oglmanager.h" #include <QPalette> #include "model.h" #include "light.h" #include "air.h" #include "resourcemanager.h" #include <QDebug> #include <mainwindow.h> //#include "quaternion.h" const QVector3D CAMERA_POSITION(0.0f, 0.0f, 3.0f); const QVector3D LIGHT_POSITION(0.0f, 3.0f, 3.0f); const QVector3D AIRGR...
#include "app.h" #define INTERACTIVE 1 static void streamProgress(int frame, int max_frame, float elapsed_time, int bar_length) { cout << "\rRendering: ["; int progress = static_cast<int>( ( (float)(frame) / max_frame) * bar_length ); for (int i = 0; i < progress; i++) cout << "+"; f...
/**************************************************************** * ecm_querytest.cc * * Created on: Sep 19, 2013 * * Author: lim55392 * * Copyright (2013) JDS Uniphase. All rights reserved ...
#include <string> #include <ShlObj.h> #include <windows.h> #include <vector> #include <fstream> #include <regex> #include <algorithm> #include <stdio.h> #include <chrono> #include "main.hpp" #include "../ext/ZlibHelper.hpp" #include "../ext/Base64.hpp" #include "../ext/dirent.h" #include "../ext/json.hpp" namespace gd...
/* storage_test.cc <NAME>, 18 February 2010 Copyright (c) 2010 <NAME>. All rights reserved. Test of the storage functionality. */ #define BOOST_TEST_MAIN #define BOOST_TEST_DYN_LINK #include "mmap_test.h" #include "mmap/snapshot.h" #include "mmap/sigsegv.h" #include "jml/utils/string_functions.h" #include ...
#include "pch.h" #include <XeSDK/XeString.h> #include "gtest/gtest.h" #define STRASSERT(strExpected, str) \ ASSERT_STREQ(strExpected, (str)); \ EXPECT_EQ(strlen(str), (str).GetLength()); void XeStringTest(const char* strExpected) { Xe::String str(strExpected); EXPECT_EQ(0, strcmp(strExpected, str.GetData())); ST...
#include "interpreter.h" #include "scanner.h" #include "parser.h" #include "instruction.h" #include "instruction6502.h" #include <memory> #include "macros.h" #include "test_interpreter.h" using namespace lasm; class TestCallback: public InterpreterCallback { public: virtual void onStatementExecuted(LasmO...
/************************************************************** * * 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...
/* Copyright (c) 2016, <NAME> <<EMAIL>> * Licensed under the MIT license. See the license file LICENSE. */ #include <iostream> #include <sstream> #include <sys/time.h> //#include <random> // can only use with C++11 #include <pcl/io/ply_io.h> #include <pcl/point_types.h> #include <pcl/common/transforms.h> #include <pc...
// // Scenario.cpp // Project:RosterDesNurses // // Created by <NAME> on 18/12/2013. // Copyright (c) 2014 <NAME>. All rights reserved. // #include <sstream> #include <string> #include <solvers/Solver.h> #include "data/Scenario.h" #include "data/Nurse.h" #include "tools/MyTools.h" using std::string; using std::...
#include "imu.h" #include <QtMath> #include "workspace.h" #include "imuso3.h" #define RtA 57.324841f #define AtR 0.0174533f #define Acc_G 0.0011963f #define Gyro_G 0.0610351f #define Gyro_Gr 0.0010653f #define FILTER_NUM 2 //采样速度 #define Kpp 10.0f // proportional gain governs rate of convergence to acceleromete...
#include <iomanip> #include <cmath> #include <string> #include <harp.hpp> #include "specex_psf.h" //#include "specex_base_analytic_psf.h" #include "specex_message.h" using namespace std; /* weights and abcissa for gauss integrations (borrowed from DAOPHOT), explained in Numerical recipes */ static double Dx[4]...
/******************************************************************** Copyright (c) 2010-2015, Regents of the University of Colorado 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 s...
// ImGui SDL2 binding with OpenGL3 (slightly modified) // In this binding, ImTextureID is used to store an OpenGL 'GLuint' texture identifier. Read the FAQ about ImTextureID in imgui.cpp. #include "ici.h" // SDL WM #include <SDL_syswm.h> // Data static double g_Time = 0.0f; static bool g_MousePressed[5] = { false...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { //cout << "UKF() started." << endl; // if this is false, laser measur...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifdef MOZ_LOGGING #ifndef FORCE_P...
/* Copyright (c) 2016 <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 use, copy, modify, merge, publish, distribute, sublicen...
#include <stdio.h> #include "tools.h" //#include "global.h" #include "extern.h" #include "functions.h" #include "nfpIteration.h" #include "mpec.h" #include <math.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_linalg.h> #include <gsl/gsl_blas.h> //#include "knitro.h" void printOutputMPEC ( const int &nnzJ, const do...
#include <cassert> #include <cstring> // memcpy #include <cstdio> #include <map> #include <set> #include <string> #include <iostream> #include "pmd_reader.h" #define MAX_BUF_LEN 20 struct sjis_table_rec_t { char unicode_name[MAX_BUF_LEN]; char ascii_name[MAX_BUF_LEN]; char sjis_name[MAX_BUF_LEN]; }; using nam...
//===- SIMachineFunctionInfo.cpp - SI Machine Function Info ---------------===// // // 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 // //===---------------------------...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <string> #include <vector> #include <sqlite3.h> #include <set> #include <map> #include <algorithm> #include <limits.h> #include "protozero/varint.hpp" #include "geometry.hpp" #include "mbtiles.hpp" #include "tile.hpp" #include "seria...
/* * Software License Agreement (BSD License) * * Copyright (c) 2013-, <NAME> [<EMAIL>] * * 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 ret...
/* * Copyright (C) 2016 <NAME> <<EMAIL>> * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use,...
/******************************************************************************* * Copyright 2019-2020 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
/* Copyright 2020 Stanford * * 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 wri...
// Copyright 2014 Google Inc. 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...
// vscpautomation.cpp // // This file is part of the VSCP (http://www.vscp.org) // // The MIT License (MIT) // // Copyright (c) 2000-2018 <NAME>, <NAME> AB <<EMAIL>> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Softwar...
// // Created by Nikita on 08.01.2021. // #include "GUI/ICanvas.h" #include <GL/glew.h> #include <imgui.h> #include <ResourceManager/ResourceManager.h> #include <Debug.h> /* bool Framework::Graphics::GUI::ICanvas::Init() { Helper::Debug::Graph("ICanvas::Init() : initializing canvas..."); g_env = Graphics::E...
#include "Computerscare.hpp" #include "dsp/digital.hpp" #include "dsp/filter.hpp" #include "window.hpp" #include "dtpulse.hpp" #include <string> #include <sstream> #include <iomanip> struct ComputerscareILoveCookies; struct CookiesTF2; struct CookiesSmallDisplay; struct CookiesCurrentStepDisplay; const int numFields...
#include "stdafx.h" #include "RAPID.h" #include "RAPID_matvec.h" #include "RAPID_moments.h" #include "RAPID_obb.h" extern int RAPID_initialized; void RAPID_initialize(); int RAPID_model::BeginModel() { int bs = build_state; if (!RAPID_initialized) RAPID_initialize(); // free whatever storage we...
#include "HW7.h" // window const int WINDOW_WIDTH = 1000; const int WINDOW_HEIGHT = 1000; // camera Camera camera; float deltaTime = 0.0f; float lastTime = (float)glfwGetTime(); // move glm::vec3 direction(0.0f, 0.0f, 0.0f); bool firstMouse = true; double lastX = WINDOW_WIDTH / 2.0f; double lastY = WINDOW_HEIGHT /...
#include "des.h" int initial_key_permutaion[] = { 57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29...
/* This file is part of the sirit project. * Copyright (c) 2019 sirit * This software may be used and distributed according to the terms of the * 3-Clause BSD License */ #include <cstdio> #include <cstdlib> #include <cstring> #include <sirit/sirit.h> class MyModule : public Sirit::Module { public: MyModule() ...
/** * \file BrlyDynEqplist.cpp * Brly operation processor - (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 11 Jan 2021 */ // IP header --- ABOVE #ifdef BRLYCMBD #include <Brlycmbd.h> #else #include <Brlyopd.h> #endif #include "BrlyDynEq...
int O39 , wzM8 , UpbqD , t4,cx , Cz ,c , sR9 ,Y,Xb , pNy ,CDT/*PSN*/, CQ , LG //6 ,/*jz*/ xm7, tkpW ,Ib, cokr,//NC fRsj, nLl , FFc//OhU8 ,b6D //nOt55 , /*W*/vvjkc,O3u ,fm, P8q , Vq , Bv , KV , so29 , Nd,aC,YyYZx ,//yMDZ a71X, lL,/*I*/UK ,CC3 ,VSg4n, A0m , //Y D,N7d, KZm ,uc0 , Dsk2, B0 , ...
// TextExtractor.cpp : Implementation of CTextExtractor #define STRICT #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0400 #endif #define _ATL_APARTMENT_THREADED #include <atlbase.h> //You may derive a class from CComModule and use it if you want to override //something, but do not change the name of _Module ex...
#include "x.h" #include <xcb/randr.h> #include <xcb/xcb.h> #include <xcb/xcb_ewmh.h> #include <xcb/xcb_xrm.h> #include <iostream> #include <memory> #include <unordered_map> #include <utility> #include <vector> #include "color.h" #include "config.h" #include "types.h" enum { NET_WM_WINDOW_TYPE, NET_WM_WINDOW_TYP...
/////////////////////////////////////////////////////////////////////////////// // SOFTWARE COPYRIGHT NOTICE AGREEMENT // // This software and its documentation are copyright (2012) by the // // Broad Institute. All rights are reserved. This software is supplied // ...
#include <cstdlib> #include <array> #include <fstream> #include <functional> #include <iostream> #include <map> #include <queue> #include <unordered_set> #include <string> #include <vector> /// ############# /// #12 3 4 5 67# /// ###A#B#C#D### //+++ #D#C#B#A# //+++ #D#B#A#C# /// #A#B#C#D# /// ######### struct St...
/* * check.c * * server checks and output routines * * Copyright (c) 2010-2012, PostgreSQL Global Development Group * contrib/pg_upgrade/check.c */ #include "postgres.h" #include "knl/knl_variable.h" #include "pg_upgrade.h" static void set_locale_and_encoding(ClusterInfo* cluster); static void check_locale_an...
#include <iostream> #include <cmath> #include "projections.h" using namespace std; #ifndef M_PI #define M_PI 3.14159265358979323846 #endif // Based on answer from here: https://stackoverflow.com/questions/29678510/convert-21-equirectangular-panorama-to-cube-map // Define our six cube faces. // 0 - 3 are side faces...
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
#include <progressive/result_struct.hpp> #include <cstdint> #include <stdio.h> #include <assert.h> #include <cstring> #include <cstdlib> #include "progressive/progressive_quicksort.hpp" #include <utility> #define INSERT_SORT_LEVEL 64 using namespace std; //! insertion sort static void insertion_sort(int64_t *val, siz...
// // Created by sgunnam on 9/17/20. // #include "BoVW.h" //namespace fs = std::filesystem; BoVW::BoVW(BoVWParams& boVwParams) : boVwParams_(boVwParams) { save_dir_path = boVwParams_.dataset_dir + boVwParams_.dataset_name + boVwParams_.save_data_folder ...
/*----------------------------------------------------------------------------* * Copyright Statement: * * * * This software/firmware and related documentation ("MediaTek Software") * ...
/*********************************************************************************************************************** * Copyright (c) Hands Free Team. All rights reserved. * Contact: QQ Exchange Group -- 521037187 * * LICENSING TERMS: * The Hands Free is licensed generally under a permissive 3-clause BSD licen...
#include "classbuilder.h" #include <QJsonArray> ClassBuilder::ClassBuilder(RestBuilderXmlReader::RestClass restClass) : classData{std::move(restClass)}, data{classData}, elements{classData}, isApi{false} {} ClassBuilder::ClassBuilder(RestBuilderXmlReader::RestApi restApi) : apiData{std::move(restApi)}, data{api...
/* * WPA Supplicant / Haiku entrypoint * Copyright (c) 2011, <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Alternatively, this software may be distribu...
/********** * Copyright (c) 2017, Xilinx, Inc. * 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 ...
#include <algorithm> #include <list> #include "Mesh.h" bool Mesh::LoadFromObjectFile(std::string file_name, bool has_texture = false) { std::ifstream f(file_name); if (!f.is_open()) return false; // Local cache of verts std::vector<Vec3D> verts; std::vector<Vec2D> texs; while (!f.eof()) { char line[128]; ...
/** * Copyright 2021 SpinQ Technology Co., Ltd. * * 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 l...
/* * Copyright © 2012, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed * under the Apache License, Version 2.0 (the "License"); * you may not use th...
/* * Copyright(c) <NAME> (2017-2019) * * This file is part of brokkr framework * (see https://github.com/fsole/brokkr). * The use of this software is governed by the LICENSE file. */ // This sample is work in progress. #include "framework/camera.h" #include "core/render.h" #include "core/window.h" #include "core/ima...
// -*- coding: utf-8 -*- #include "vector2.h" #include <SDL.h> #include <SDL_main.h> #include <SDL_image.h> #include <algorithm> #include <cassert> #include <cstdlib> #include <fstream> #include <initializer_list> #include <iostream> #include <memory> #include <sstream> #include <vector> #include <m...
/* * straight_sub.c : straight subroutine * * 2001/2/12 coded by <NAME> * * <NAME> (<EMAIL>) * From Mar. 2001 to Sep. 2003 */ #include <stdio.h> #include <stddef.h> #include <stdlib.h> #include <string.h> #include <math.h> #define NR_END 1 #define FREE_ARG char* /* functions made by Banno */ #include "defs....
#include "TilerProcess.h" #include <experimental/filesystem> #include <rapidjson/document.h> #include <rapidjson/filewritestream.h> #include <rapidjson/prettywriter.h> #include <rapidjson/stringbuffer.h> #include <rapidjson/writer.h> #include "Tiler.h" #include "io/BinaryPersistence.h" #include "io/Cesium3DTilesPers...
/** * COPYRIGHT and PERMISSION NOTICE * Real Deal Robotics Software: Spline Path Generator * Copyright (C) 2019 Real Deal Robotics, LLC * All rights Reserved */ #include <rdr_spline_path/rdr_spline_path.h> #include <iostream> #include <vector> using namespace std; using namespace Eigen; splineMaker::splineMaker...
/********** This library 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. (See <http://www.gnu.org/copyleft/lesser.html>.) This libr...
/* * 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 ...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2016 The Bitcoin Core developers // Copyright (c) 2017 The Raven 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...
/* MIT License Copyright © 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 use, copy, modify, merge, publish, di...
#include "emp-sh2pc/emp-sh2pc.h" #include <cmath> #include "seal/util/uintarith.h" #include "seal/util/uintarithsmallmod.h" #include <thread> #define MAX_THREADS 8 using namespace emp; using namespace std; int num_threads = 8; //Slackoverflow Code For bit-wise shift #define SHL128(v, n) \ ({ \ _...
/*************************************************************************/ /* Xania (M)ulti(U)ser(D)ungeon server source code */ /* (C) 2021 Xania Development Team */ /* See merc.h and README for original copyrights */ /***************...
#include "ix.h" #include <stdio.h> #include <stdlib.h> #include <iostream> #include <string.h> IndexManager* IndexManager::_index_manager = 0; IndexManager* IndexManager::instance() { if(!_index_manager) _index_manager = new IndexManager(); return _index_manager; } IndexManager::IndexManager() { } I...
/** GDevelop - Platform Behavior Extension Copyright (c) 2014-2016 <NAME> (<EMAIL>) This project is released under the MIT License. */ #include "PlatformerObjectBehavior.h" #include <SFML/Window.hpp> #include <algorithm> #include <cmath> #include <iostream> #include <memory> #include "GDCore/Tools/Localization.h" #in...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/> * * Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/> * * This program is free software; ...
#include "gl_local.h" #include "zone.h" msurface_t **skychain = NULL; msurface_t **waterchain = NULL; //engine byte *lightmaps; int *lightmap_textures; void *lightmap_rectchange; int *lightmap_modified; glpoly_t **lightmap_polys; int *d_lightstylevalue; dlight_t *cl_dlights; int *r_dlightactive; int *gDecalSurfCount;...
#include <stdio.h> #include "lms7002m_calibrations.h" #include "lms7002m_controls.h" #include "lms7002m_filters.h" #include "spi.h" #include "mcu.h" #include "mcuHexBin.h" #include "LMSBoards.h" #include "LMS7002M.h" #include "IConnection.h" #include "ConnectionRegistry.h" #include <chrono> #include <fstream> #include...
/** BSD-3-Clause Copyright 2019 Alliance for Sustainable Energy, LLC 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 f...
// COCOA class implementation file // Id: Measurement.cc // CAT: Model // --------------------------------------------------------------------------- // History: v1.0 // Authors: // <NAME> #include "Alignment/CocoaModel/interface/Model.h" #include <algorithm> #include <iomanip> #include <iostream> #include <iterat...
// -*- C++ -*- // // Package: FastSimulation/CTPPSFastTrackingProducer // Class: CTPPSFastTrackingProducer // /**\class CTPPSFastTrackingProducer CTPPSFastTrackingProducer.cc FastSimulation/CTPPSFastTrackingProducer/plugins/CTPPSFastTrackingProducer.cc Description: [one line class summary] Implementation: [No...
#include "attributes.h" t_exception_table* readExceptionHandler(FILE* fp) { t_exception_table* return_value = (t_exception_table*) malloc(sizeof(t_exception_table)); return_value->start_pc = readU2(fp); return_value->end_pc = readU2(fp); return_value->handler_pc = readU2(fp); return_value->catch_type...
#pragma once #include <stdexcept> #include <iostream> #include <vector> #include <array> #include <cassert> #include <Windows.h> #include <mfapi.h> #include <atlbase.h> /** 32bit color value. */ struct R8G8B8A8 { unsigned char r; unsigned char g; unsigned char b; unsigned char a; }; #ifndef ENABLE_FFM...
/* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrQuadPerEdgeAA.h" #include "GrQuad.h" #include "glsl/GrGLSLColorSpaceXformHelper.h" #include "glsl/GrGLSLPrimitiveProcessor.h" #include "glsl/GrGLSLFragmentShaderBu...
#include "global.h" #include "RageDisplay.h" #include "RageTimer.h" #include "RageLog.h" #include "RageMath.h" #include "RageUtil.h" #include "GameConstantsAndTypes.h" #include "RageFile.h" #include "SDL_SaveJPEG.h" #include "RageSurface_Save_BMP.h" #include "SDL_rotozoom.h" #include "RageSurface.h" #include "Preferenc...
/* Copyright © 2017 Apple Inc. All rights reserved. * * Use of this source code is governed by a BSD-3-clause license that can * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause */ #include <map> #include <string> #include <unordered_map> #include <vector> #include <cmath> #inclu...
/************* Tabutil cpp Declares Source Code File (.CPP) ************/ /* Name: TABUTIL.CPP Version 1.2 */ /* */ /* (C) Copyright to the author <NAME> 2013 - 2017 */ /* ...
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or ...
//#include "Ifpack_ConfigDefs.h" #include "MxGeoMultigridPrec.h" #include <ctime> #include "MxUtil.hpp" #include "Epetra_MultiVector.h" #include "Epetra_Vector.h" #include "Epetra_CrsMatrix.h" #include "Ifpack.h" #include "Ifpack_Amesos.h" #include "Ifpack_Chebyshev.h" MxGeoMultigridPrec::MxGeoMultigridPrec(Teuc...
#include <math.h> #include <vector> #include "dat.hpp" #include "maths.hpp" #include "pycpp.hpp" #include "readwrite.hpp" // HISTOGRAMS extern "C" void getHistogram( int nValues, double* values, int nBins, double* bins, double* histogram) { // Put the `nValues' `values' in an `histogram' with `nBins' bins defi...
/* Copyright (c) 2015-2016 <NAME> Permission to use, copy, modify, and/or 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. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTI...