text
stringlengths
3.08k
22k
#include "MessageLogger.h" #include <QDebug> #include <QDialog> #include <QDesktopServices> #include <QMessageBox> #include <QDateTime> #include <QDir> #include <QUrl> #include <QThreadStorage> #include <cstdio> MessageLogger* MessageLogger::ptr = nullptr; MessageLogger::MessageLogger(QObject *parent) : QObject(par...
//===-- RegisterContextFreeBSD_mips64.cpp ---------------------------------===// // // 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 // //===---------------------------...
/* * 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 <OBJ.hpp> #define _USE_MATH_DEFINES #include <math.h> #include <fstream> #include <mat3x3.hpp> #include <Logger.hpp> OBJ::OBJ(std::vector<vf3> _vertices, std::vector<texCoord> _texCoords, std::vector<indexTriangle> _triangles, std::vector<material> _materials, std::vector<Image> _textures) { texCoords = ...
#include "move.h" #include <unistd.h> #include <stdlib.h> #include <assert.h> #include "dungeon.h" #include "heap.h" #include "move.h" #include "npc.h" #include "pc.h" #include "character.h" #include "utils.h" #include "path.h" #include "event.h" #include "io.h" #include "npc.h" int is_boss_alive = 1; void do_comba...
// Copyright 2020 Makani Technologies 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 ...
#include <memory> // std::shared_ptr #include <string> // std::string #include <utility> // std::pair #include <vector> // std::vector #include <opc/ua/node.h> // OpcUa::Node #include <opc/ua/protocol/variant.h> // OpcUa::Variant #include <opc/ua/protocol/attribute_ids.h> // OpcUa::At...
/* Copyright (c) 2011-2012, 2015, 2020, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistributions of source code must retain the above copyright * n...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2010 Couchbase, 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 * * h...
/* * Copyright 2018, alex at staticlibs.net * * 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 ag...
#include <ncurses.h> #include <map> #include "Terminal/NcursesTerminal/NcursesTerminal.hpp" #include "Internal.hpp" using namespace AppCUI::Internal; using namespace AppCUI::Graphics; constexpr size_t EXTENDED_COLORSET_SIZE = 16; constexpr size_t REDUCED_COLORSET_SIZE = 8; constexpr std::array<Color, NR_APPCUI_COLO...
// Copyright (C) 2012-2018 Leap Motion, Inc. All rights reserved. #include "stdafx.h" #include "TestFixtures/Decoration.hpp" class AutoFilterCollapseRulesTest: public testing::Test { public: AutoFilterCollapseRulesTest(void) { // All decorator tests must run from an initiated context AutoCurrentContext()->...
// // Copyright 2021 <NAME>. All Rights Reserved. // // Licensed under the Apache License 2.0 (the "License"). You may not use // this file except in compliance with the License. You can obtain a copy // in the file LICENSE in the source distribution. // #include <cstdint> #include <iostream> #include <list> #include ...
// Copyright 2015 /* ---------------------------------------------------------------------------* * Implementation of the FMI interface based on functions and macros to * be defined by the includer of this file. * If FMI_COSIMULATION is defined, this implements "FMI for Co-Simulation 1.0", * otherwise "FMI for Mode...
#include <EnginePCH.hpp> #include <Resources/SoundResource.hpp> using namespace Poly; SoundResource::SoundResource(const String& path) { alGenBuffers(1, &BufferID); // Declarations and loading file to buffer. BinaryBuffer* data = LoadBinaryFile(path); Dynarray<char> rawData; ogg_sync_state syncState; /* s...
#include "Camera.h" Camera::Camera() :rotangles{ 0.0f, 0.0f, 0.0f } { //Camera information this->camPosition = XMVectorSet(0.0f, 3.0f, -8.0f, 0.0f); this->camTarget = XMVectorSet(0.0f, 0.0f, 0.0f, 0.0f); this->camUp = XMVectorSet(0.0f, 1.0f, 0.0f, 0.0f); /* ↓ for Mesh ↓ */ this->scale = XMMatrixScaling(...
/* * Copyright 2009-2017 Alibaba Cloud 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...
//================================================================================================== // pathmatch // // This program returns all files and directories matching the specified pattern. // // _________________________________________________________________________________________________ // Copyright ...
// // Copyright (c) 2018 Advanced Micro Devices, Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights /...
// Machaira: SwordBackend.cpp // GUI viewer for SWORD Project files using wxWidgets // This file is the backend, using SWORD Project to find the appropriate // texts and to deliver them to the UI // <NAME> // Created: November 9, 2021 // Current version: Pre-release #include "SwordBackend.hpp" #include <iostream> #in...
/*======================================================================= Copyright 2010 <NAME>. All Rights Reserved. This software is distributed for noncommercial use only, without any warranties, and provided that all copies contain the full copyright notice licence.txt located at the base folder of the ...
#include "stdafx.h" #include "config.h" stConfig defConfig = { /////////////////////////////////////////////////////////////// // BEGIN_CONFIG 0x04030201, /////////////////////////////////////////////////////////////// // dwId ('I')+('M'<<8)+('P'<<16), // 100 == version 1.00 100, //szAppName "", //s...
/* * Copyright (c) 2008 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public License * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WI...
// // zcash_interface.cpp // FXTrue // // Created by <NAME> on 29/10/2016. // Copyright © 2016 <NAME>. All rights reserved. // #include "zcash_interface.hpp" #include <iostream> #include <string> #include <map> #include <boost/iostreams/concepts.hpp> #include <boost/iostreams/stream.hpp> #include <boost/asio.hpp> ...
#include "yapdbr.hh" #include <cstdlib> #include <cmath> #include <iostream> #include <map> #include <utility> std::map<int, std::string> data; void initMap() { data[0] = "ATOM 1 N MET A 0 23.612 8.367 -9.458 1.00 26.59 N "; data[1] = "ATOM 2 CA MET A 0 23.871 9.8...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * 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 t...
#include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/features2d.hpp> #include <opencv2/aruco.hpp> #include "Utils.h" #include <strstream> #include <iostream> #include <map> using namespace cv; using namespace std; string project_path = "/home/...
#include "application.h" #include <SFML/OpenGL.hpp> #include "odfaeg/Window/window.hpp" #include "odfaeg/Window/x11Window.hpp" #include "odfaeg/Window/context.hpp" #include <SFML/Window/WindowStyle.hpp> #include "odfaeg/Graphics/sprite.h" using namespace odfaeg::core; using namespace odfaeg::math; using namespace odfae...
/* * Copyright (C) 2013- <NAME> <<EMAIL>> * */ #include <string.h> #include <math.h> #include <assert.h> #include "cint_bas.hpp" #include "misc.hpp" #include "g1e.hpp" #include "g2e.hpp" void CINTg0_lj2d_4d(double *g, const CINTEnvVars *envs); void CINTg0_kj2d_4d(double *g, const CINTEnvVars *envs); void CINTg0_i...
// Copyright 2021 Adobe // All Rights Reserved. // // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms // of the Adobe license agreement accompanying it. #pragma once // stdc++ #include <cstring> #include <filesystem> #include <functional> #include <iostream> #include <t...
#include <apfGraph.h> #include <apfMesh2.h> #include <cassert> #include <gmi_mesh.h> #include <apfMDS.h> #include <apf.h> #include <cstdlib> #include <stdint.h> #include <apfNumbering.h> #include <cstring> #include <engpar_support.h> void testSizes(apf::Mesh* m,agi::Ngraph* g,int primary,int* seconds,int n); void test...
#include "itkImage.h" #include "itkImageFileReader.h" #include "vnl/vnl_matrix_ref.h" #include "vnl/vnl_matrix.h" #include "tkdCmdParser.h" #include "flens.h" #include <cmath> #include <boost/math/special_functions/fpclassify.hpp> // 26-12-2009 // added to Kajo's clustercoefficient: nan-check! (for binary unconnected ...
#include <stdio.h> #include <string.h> #include <string> // C++ string enum SignalType { Internal, Input, Output }; enum SignalNature { Reg, Wire }; class Signal { public: enum SignalType type; enum SignalNature nature; std::string name; size_t size_1, size_2; }; class FileHandler { private: FILE *fp; char l...
#include<memory> //auto_ptr #include<functional>//function bind placeholders #include <iostream> // cout #include <utility> // move #include <string> // string #include <algorithm> // sort #include <vector> // vector #include <array> // array #include <unordered_map> #include <map> #include <tuple> #...
#include "property.h" #include <cmath> #define MAX_STRING_LENGTH 0x200 uint32_t read_int(Bitstream &stream, const SendProp *prop) { if (prop->flags & SP_EncodedAgainstTickcount) { if (prop->flags & SP_Unsigned) { return stream.read_var_uint(); } else { uint32_t value = stream.read_var_uint(); ...
// // begin license header // // This file is part of Pixy CMUcam5 or "Pixy" for short // // All Pixy source code is provided under the terms of the // GNU General Public License v2 (http://www.gnu.org/licenses/gpl-2.0.html). // Those wishing to use Pixy source code, software and/or // technologies under differ...
#include "pch.h" #include <windows.h> #include <iostream> #include <vector> #include <unordered_set> #include <math.h> #include <time.h> #include <assert.h> #define MAZE_WIDTH 20 #define MAZE_HEIGHT 20 enum MazeDirection : uint8_t { UP = 1, RIGHT = 1 << 1, DOWN = 1 << 2, LEFT = 1 << 3 }; std::vector<int> visite...
#include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <netinet/in.h> #include <sys/socket.h> #include <fcntl.h> #include <unistd.h> #include <assert.h> #include <poll.h> #include "chat_types.h" #include "../../lib/config.hpp" #define MAX_PENDING_CONNECTIONS 32 #defi...
// Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include <algorithm> #include <assert.h> #include <iterator> #include <limits> #include <numeric> #include <random> #include <stdint.h> using namespace std; template <typename T, typename U> void assert_e...
// MPI include #include <vtk_mpi.h> // VTK includes #include "vtkCellData.h" #include "vtkCellType.h" #include "vtkDoubleArray.h" #include "vtkExtentRCBPartitioner.h" #include "vtkIdList.h" #include "vtkIdTypeArray.h" #include "vtkMPIController.h" #include "vtkPointData.h" #include "vtkStructuredData.h" #include "vtkU...
// // Kaleido.cpp // mdt-Core // // Created by <NAME> on 7/10/12. // Copyright (c) 2012 <EMAIL>. All rights reserved. // #include "Kaleido.h" Kaleido::Kaleido(){ width = 800*1.771; height = 600*1.771; trackMode = TRACK_JUST_OBJECT; offset = ofPoint(50,50); } Kaleido::~Kaleido(){ for( map...
#include <vitasdk.h> #include <vitaGL.h> #include <imgui_vita.h> #include <stdio.h> #include <string> extern "C" { void *__wrap_memcpy(void *dest, const void *src, size_t n) { return sceClibMemcpy(dest, src, n); } void *__wrap_memmove(void *dest, const void *src, size_t n) { return sceClibMemmove(dest, src, n); }...
// MainFrm.cpp : implmentation of the CMainFrame class // ///////////////////////////////////////////////////////////////////////////// #include "pch.h" #include "resource.h" #include "AboutDlg.h" #include "View.h" #include "MainFrm.h" #include "DataTarget.h" #include "ProcessSelectDlg.h" #include "TreeNodeBase.h" #i...
#include <bits/stdc++.h> typedef unsigned long long LL; LL xorshift(LL x) { x ^= x << 13; x ^= x >> 7; x ^= x << 17; return x; } std::unordered_map<LL, int> M[20]; struct _ { int A[9][9]; void swap(int x, int y) { std::swap(A[x], A[y]); } _ operator ~() const { _ r; for (int i = 0; i < 9; ++i) for (i...
/* Copyright (c) 2005, Regents of Massachusetts Institute of Technology, * Brandeis University, Brown University, and University of Massachusetts * Boston. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
// Copyright (c) 2014-2018, The Monero Project // // 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 o...
/* * UpdateCheck.cpp * * Created on: October 2, 2014 * Author: moritz */ #include "UpdateCheck.h" #include "Version.h" #include "Log.h" #include <unistd.h> #include <sys/socket.h> #include <arpa/inet.h> #include <stdlib.h> #include <netdb.h> #include <errno.h> #include <cstring> #include <time.h> #includ...
#include <iostream> #include "editmode.h" #include "keyhelper.h" #include "editormath.h" using namespace jnr; using namespace glm; jnr::PrimitiveRenderer &jnr::EditMode::getPrimitveRenderer() { return editor.primitiveRenderer; } jnr::Camera &jnr::EditMode::getCamera() { return editor.cam; } jnr::LevelT &jnr...
// // Horn-SAT // // Description: // In a SAT problem, if all clauses contains at most one positive literals, // this problem is called a Horn-SAT, and solved in linear time. // // Algorithm: // If there is no singleton clause, by assigning false for all literals, // we obtain a solution. Otherwise, let {u} b...
// @doc INTERNAL // @com This file implements a simple sanity test that verify file // @extension independence for a variety of encodings. This is motivated // @by the SDK's official need to support both .aaf and .isr as valid // @AAF file extensions. //=----------------------------------------------------------------...
/* Copyright (c) 2002-2010 Tampere University. This file is part of TTA-Based Codesign Environment (TCE). 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, ...
#include "DAFFMetadataImpl.h" #include "Utils.h" #include <algorithm> #include <cassert> #include <iomanip> #include <sstream> class DAFFMetadataKey { public: int m_iType; inline DAFFMetadataKey(int iType) : m_iType(iType) {}; inline virtual ~DAFFMetadataKey() {}; }; class DAFFMetadataKeyB...
/* * Copyright (c) 2016 Samsung Electronics 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...
#include "Renderer.h" Renderer* Renderer::rendererInstance = new Renderer(); Renderer::Renderer() : scrWidth(1024),scrHeight(768) { } Renderer::Renderer(SDL_Window * window, SDL_Surface* surface, const uint32_t& scrWidth, const uint32_t& scrHeight) { this->window = window; this->surface = surface; thi...
#include <signal.h> #include <stdlib.h> #include <stdio.h> #include <utility> #include <workflow/Workflow.h> #include <workflow/HttpMessage.h> #include <workflow/HttpUtil.h> #include <workflow/WFHttpServer.h> #include <workflow/WFFacilities.h> #include <spdlog/spdlog.h> // 这个proxy在实现上需要抓取下来完整的http页面再转发,下载/上传大文件会有延迟 /...
/** * @author <NAME> */ #include <iostream> #include <fstream> #include "llvm/Analysis/Passes.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/ExecutionEngine/MCJIT.h" #include "llvm/ExecutionEngine/SectionMemoryManager.h" #include "llvm/IR/IRBuilder.h" #include "llvm/IR/Verifier.h" #include "llv...
// --------------------------------------------------------------------- // Процедуры для работы с выводом текста // --------------------------------------------------------------------- // Обработчик окна при вызове таймера void display() { if (cpu_halt) { disassembly(); } else ...
/* $Id$ */ /* * This file is part of OpenTTD. * OpenTTD 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, version 2. * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
#include "acsf.h" #include <tuple> #include <map> #include <math.h> #include <string> #include <numeric> #include <utility> #include <cmath> #include <algorithm> #include <sstream> #include <stdexcept> #include <iostream> using namespace std; ACSF::ACSF(double rCut, vector<vector<double> > g2Params, vector<double> g3...
#include <iostream> #include <algorithm> /* Avl tree is templated to hold all types of data */ template<class T> struct Avl_Node { Avl_Node(T Newvalue) { value = Newvalue; height = 1; left = nullptr; right = nullptr; } T value; int height; Avl_Node* left; Avl_Node* right; ~Avl_...
#include "Arduino.h" #include "interchange.h" extern states state = BOOT; Command commands[MAX_COMMANDS]; // list of commands Stream* ser; // mapping to a serial port String command; // current command being worked on. uint8_t mem_addresses[] = {INTERCHANGE_I2C_ADDRESS, INTERCHANGE_USE_CUSTOM, INTERCHANGE_FIRMWARE_ID...
/*------------------------------------------------------------------------- This source file is a part of m8rscript For the latest info, see http:www.marrin.org/ Copyright (c) 2018-2019, <NAME> All rights reserved. Use of this source code is governed by the MIT license that can be found in the L...
#include <cassert> #include <cmath> #include <iostream> #include <vector> #include <random> #include <chrono> #include <algorithm> unsigned get_random_seed() { return std::chrono::system_clock::now().time_since_epoch().count(); } template <typename IntType> struct uniform_int_rng { uniform_int_rng(IntType fro...
// Bindings #include "CPyCppyy.h" #include "CPPEnum.h" #include "PyStrings.h" #include "Utility.h" //- private helpers ---------------------------------------------------------- static PyObject* pytype_from_enum_type(const std::string& enum_type) { if (enum_type == "char") return (PyObject*)&CPyCppyy_PyTe...
#ifndef __PROGTEST__ #include <cassert> #include <cstdio> #include <cstdlib> #include <iostream> #include <sstream> #include <iomanip> #include <string> #include <vector> #include <queue> #include <stack> #include <deque> #include <map> #include <set> #include <list> #include <algorithm> #if defined ( __cplusplus ) &&...
#include <_dialog/dialog.file.open.h> #include <_type/type.tokenizer.h> #include <_resource/resource.icon.folder.up.h> #include <_controller/controller.gui.h> #include <_controller/controller.localization.h> _fileExtensionList _fileOpenDialog::getFileMask( _int value ) const { const string& extensions = std::g...
//# Filename: lookup.cpp //# //# specify a point on the sphere, return its ID/Name to a certain depth //# //# //# Author: <NAME> //# //# Date: October 15, 1999 //# //# //# //# Copyright (C) 2000 <NAME>, <NAME>, <NAME> //# The Johns Hopkins University //# //# ...
#include "image.hpp" #include "ds9.hpp" struct options_t { std::string outdir = "./"; std::string extra; bool verbose = false; bool show_progress = false; double aperture = dnan; // [arcsec] double search_radius = dnan; // [arcsec] std::string exclude; std::string include; double de...
#include "main.h" CAudioEngine aEngine; void GetMonsterInfo(ifstream &fin, tRoom &room, string strMonsterName) { string strLine = ""; fin.seekg(NULL,ios::beg); fin.clear(); room.monster.SetName(strMonsterName); while(getline(fin, strLine, '\n')) { if (strLine == "<" + room.strCurrentRoom + "|" ...
#include "udp.h" // turn the UAVCAN port id into a UDP port number uint16_t udp_port_number(UAVPortID port_id, UAVTransferKind kind) { uint16_t udp_port = 16384; // 1<<14 switch(kind) { case UAVTransfer::KindMessage: udp_port += (port_id & 0x7fff); break; case UAVTransfer::KindRequest: udp_po...
#include "core/math/Rect.h" #include "core/math/Math.h" #include "core/math/Easing.h" #include "render2d/object/CTextMesh.h" #include "renderer/texture/RrFontTexture.h" #include <cctype> CTextMesh::CTextMesh ( void ) : CRenderable2D(), m_text(""), m_max_width(-1), m_font_texture(NULL), m_text_glyph_count(0) { /...
#include "Vector.h" #include "Util.h" #include "FastConv.h" CFastConv::CFastConv( void ): _pfIR(0), m_pCFft(0) { reset(); CFft::create(m_pCFft); } CFastConv::~CFastConv( void ) { reset(); CFft::destroy(m_pCFft); } Error_t CFastConv::create( CFastConv * &pFastConv ) { pFastConv = new CFastConv()...
#include <bx/bx.h> #include <bx/os.h> #if BX_PLATFORM_LINUX || BX_PLATFORM_BSD # define GLFW_EXPOSE_NATIVE_X11 # define GLFW_EXPOSE_NATIVE_GLX #elif BX_PLATFORM_OSX # define GLFW_EXPOSE_NATIVE_COCOA # define GLFW_EXPOSE_NATIVE_NSGL #elif BX_PLATFORM_WINDOWS # define GLFW_EXPOSE_NATIVE_WIN32 # define GLFW_EXPOSE_NATIVE...
//===- ReorderOp.cpp - convert cpu op ----------------------------------===// // // Copyright 2019 The MLIR Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apa...
/* * Copyright (C) 2011-2017 Redis Labs Ltd. * * This file is part of memtier_benchmark. * * memtier_benchmark 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, version 2. * * memtier_benchmark is distr...
#include <mex.h> #include <limits> #include <cmath> #include "private/Gamma.h" /* Confidence level estimators for a Binomial distribution. For a detailed discussion see: "Interval Estimation for a Binomial Proportion", <NAME>, <NAME> and <NAME>, 2001, Statistical Sciences 16 (2) 101-133, h...
#include "BlackHoleSun.h" #include <Widgets/FxWidgetFaceDistortion.h> #include <Widgets/FxWidgetFacePinch.h> #include <Graphics/GraphicsCommon.h> BlackHoleSun::BlackHoleSun() { auto targetdistortionShader = shaderManagerWrapper.LoadFromFile("./Assets/shaders/vertex/transparent.vertex", "./Assets/shaders/fragment/defa...
#pragma once //Copyright (c) 2021 kahlering // //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, pub...
#include "lavaMD.h" void load_padded(int flag, int A_x, int A_y, int A_z, int B_offset_x, int B_offset_y, int B_offset_z, TYPE local_B_pos_i[NUMBER_PAR_PER_BOX][POS_DIM], TYPE local_B_q_i[NUMBER_PAR_PER_BOX], TYPE pos_i[N_PADDED*POS_DIM], TYPE q_i[N_PADDED]) { #pragma HLS INLINE OFF int x, y, z; ...
#include "GaudiKernel/MsgStream.h" #include "GaudiKernel/AlgFactory.h" #include "GaudiKernel/IDataProviderSvc.h" #include "GaudiKernel/SmartDataPtr.h" #include "GaudiKernel/Algorithm.h" #include "Event/TopLevel/Event.h" #include "Event/TopLevel/EventModel.h" #include "Event/TopLevel/MCEvent.h" #include "Event/MonteCar...
/* * (c) Copyright 2016-2017, 2021 Hewlett Packard Enterprise Development Company LP. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the * GNU Lesser General Public License Version 3, or (at your option) * later with exceptions ...
// This file is part of snark, a generic and flexible library for robotics research // Copyright (c) 2011 The University of Sydney // 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. Redistr...
/* LED strip animations WS2812B 144 LEDS/Meter IP65/IP67/IP68 (1 meter strip) Logic Level Converter (1 pc, may work w/o but good practice to use) ESP8266 - ESP8266 NodeMCU WiFi Module (1pc) */ #include <Arduino.h> #define SERIAL_OUT Serial // #define SETUP_STAT_NONE 0 #def...
// // main.cpp // NeuralNetworks // // Created by <NAME> on 4/17/14. // Copyright (c) 2014 cs189. All rights reserved. // #include <iostream> #include <math.h> #include <algorithm> #include <fstream> #include <sstream> #include <string> #include <unistd.h> #include <vector> #include <stdlib.h> #include <cstdlib> #...
#include <http_parser.h> #include <netdb.h> #include <switch.h> #include <sys/socket.h> #include <unistd.h> #include <common/logger.hpp> #include <nxcord/discord_session.hpp> #include <nxcord/zlib_wrapper.hpp> #include <sstream> #define NEW_LINE "\r\n" constexpr const char *METHOD_NAMES[] = {"POST", "PATCH", "DELETE"...
#include "gpz++.hpp" template<typename T> void write_vec1d(std::ofstream& fout, const T& vec) { uint_t nelem = vec.size(); for (uint_t i : range(nelem)) { if (i != 0) fout << " "; fout << vec[i]; } fout << std::endl; } void write_vec2d(std::ofstream& fout, const PHZ_GPz::Vec2d& vec) { ...
/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * * The MIT License * * 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...
#include "rfw.h" #include "Internal.h" using namespace rfw; inline void sRGBtoLinear(unsigned char *pixels, const uint size, const uint stride) { for (uint j = 0; j < size; j++) { pixels[j * stride + 0u] = (pixels[j * stride + 0u] * pixels[j * stride + 0u]) >> 8u; pixels[j * stride + 1u] = (pixels[j * stride + ...
// // Testtool - Health Check Generals // // Copyright (c) 2018 InnoGames GmbH // #define FMT_HEADER_ONLY #include <fmt/format.h> #include <fmt/printf.h> #include <iostream> #include <nlohmann/json.hpp> #include <sstream> #include <stdlib.h> #include <typeinfo> #include "config.h" #include "healthcheck.h" #include "...
/// @file /// /// PaddingUtils a class containing utilities used for FFT padding in preconditioners. Code like this /// can probably be moved to a higer level. At this stage we just need to make these methods available not /// just to the WienerPreconditioner, but for other classes as well. /// /// @copyright (c) 2007 ...
/* -*- C++ -*- * * SarReader.cpp - Reader from a SAR archive * * Copyright (c) 2001-2011 Ogapee. All rights reserved. * * <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...
/* Bacula(R) - The Network Backup Solution Copyright (C) 2000-2018 <NAME> The original author of Bacula is <NAME>, with contributions from many others, a complete list can be found in the file AUTHORS. You may use this file and others of this release according to the license defined in the LICENSE ...
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* // ** Copyright UCAR (c) 1992 - 2015 // ** University Corporation for Atmospheric Research(UCAR) // ** National Center for Atmospheric Research(NCAR) // ** Research Applications Laboratory(RAL) // ** P.O.Box 3000, Boulder, Colorado, 80307...
/** * @file PowerExtender.cpp * @author <NAME> * @brief Implements the functions defined in PowerExtender.h * @version 0.0.1 * @date 2021-07-15 */ #include <Arduino.h> #include <Wire.h> #include "PowerExtender.h" PowerExtender::PowerExtender() { } void PowerExtender::begin() { Wire.begin(); // Init...
/******************************************************* CoolReader Engine txtselector.cpp: DOM document selection navigator (c) <NAME>, 2000-2010 This source code is distributed under the terms of GNU General Public License See LICENSE file for details *******************************************...
// Copyright (C) 2018, CERN // PRocess MONitor // See https://github.com/HSF/prmon #include <getopt.h> #include <signal.h> #include <stdlib.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <condition_variable> #include <cstddef> #include <fstream> #include <iostream> #include <map> #incl...
/* * arm_control.cpp * Copyright 2013 University of Massachusetts Lowell * Author: <NAME> */ #include "arm/arm_control.h" #include <cstdio> #include <cmath> /*! * \brief Calls the init and run methods */ ArmControl::ArmControl() { init(); run(); } /*! * \brief Initializes the node * * There are two functi...
/* * Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2014, 2020, Red Hat Inc. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU Gene...
#include <stdlib.h> #include <typeinfo> #include <unordered_map> #include <math.h> #include "mog/Constants.h" #include "mog/core/opengl.h" #include "mog/core/Engine.h" #include "mog/base/Entity.h" #include "mog/base/Scene.h" #include "mog/base/AppBase.h" #include "mog/core/Screen.h" #include "mog/core/DataStore.h" usi...