text
stringlengths
3.08k
12.5k
// Copyright 2006-2015 <NAME> (<EMAIL>). // // This file is part of the Carve CSG Library (http://carve-csg.com/) // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction,...
//////////////////////////////////////////////////////////////////////////////// // // // Name: BkgModel.cxx // // ...
#include "gui/Iluminador.h" #include <iostream> using namespace std; Iluminador::Iluminador(const unsigned int tamX, const unsigned int tamY) { this->tamX = tamX; this->tamY = tamY; this->fonteDeLuz = Ponto("", 0, 0, 0); } Iluminador::~Iluminador() { } Pixel Iluminador::iluminarPixel(Pixel p) { QColor corDif = ...
#include <elf/elf_loader.h> #include <elf/elf.h> #include <fs/vfs.h> #include <memory/page_frame_allocator.h> #include <utils/assert.h> using namespace elf; scheduler::task_t* elf::load_elf(char* filename, const char** argv, const char** envp) { fs::vfs::file_t* file = fs::vfs::global_vfs->open(filename); if (file...
#include <stdio.h> #include <stdint.h> #include <list> #define KEY_LENGTH 6 #define HASHSIZE (1 << 14) #define HASHMASK (HASHSIZE - 1) struct mac_addr { uint8_t addr[6]; }; struct mac_table { std::list<struct mac_addr> list; }; inline bool operator==(const struct mac_addr &lhs, const struct mac_addr &rhs)...
/* The MIT License (MIT) Copyright (c) [2016] [BTC.COM] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, me...
#include "llvm/IR/CFG.h" #include "llvm/IR/Function.h" #include "llvm/IR/Instruction.h" #include "llvm/IR/Instructions.h" #include "llvm/IR/Module.h" #include "llvm/IR/Type.h" #include "llvm/Pass.h" #include "llvm/Support/raw_ostream.h" #include <algorithm> #include <iterator> #include <list> #include <map> #include <s...
/* * Copyright (C) 2016 Open Source Robotics Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
#include "GLWidget.h" #include <GL/glut.h> #include "ogldev_util.h" #include "ogldev_math_3d.h" int GLWidget::_myGlutWindow = 0; GLuint GLWidget::_VBO = 0; const char* pVSFileName = "/home/lparkin/Projects/S3/LearnOpenGL/shader.vs"; const char* pFSFileName = "/home/lparkin/Projects/S3/LearnOpenGL/shader.fs"; GLWidg...
#include <memory> #include <cstring> #include <cassert> #include <iomanip> #include <iostream> #include <tweetnacl/tweetnacl.h> #include "codec.hpp" #include "message.hpp" #include "randombytes.h" /** * A message header has the following fields: * - length (of the entire message, including the payload) (4 bytes) *...
#include <csa_common.h> int64_t decimal_time(time_t tt) { if (tt==-1) tt=0; int64_t t=(sizeof(tt)==4) ? unsigned(tt) : tt; const int second=t%60; const int minute=t/60%60; const int hour=t/3600%24; t/=86400; // days since Jan 1 1970 const int term=t/1461; // 4 year terms since 1970 t%=1461; t+=(t>=...
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of co...
#include <atomic> #include <folds/folds.h> #include <util/util.h> #include <algorithm> #include <streams/stream_functions.h> #include <predicates/predicates.h> #include <rules/common.h> namespace { typedef std::shared_ptr<std::atomic<bool>> atomic_bool_t; streams_t stable_stream(double dt, atomic_bool_t state) { ...
#include <iostream> #include <fstream> #include <math.h> #include <complex> #include <chrono> #include <string> #include "twiddle.h" #include "command_opts.h" #include "fileio.h" void radix2_shuffle(dcomp** input_vector, const int sig_length, const int num_steps); void fft(dcomp** input_vector, const int sig_length, ...
/* OpenVR for PyMOL Copyright Notice ===================================== The OpenVR for PyMOL source code is copyrighted, but you can freely use and copy it as long as you don't change or remove any of the Copyright notices. OpenVR for PyMOL is made available under the following open-source license terms: ---------...
#include <Arduino.h> #include <WiFi.h> #include "BoostSupply.h" #include "Digits.h" #include "TimeWrapper.h" #include "StopWatch.h" #include "StateMachine.h" #include <driver/timer.h> #include <driver/gpio.h> const adc1_channel_t BOOST_FEEDBACK_PIN = ADC1_CHANNEL_5; const gpio_num_t BOOST_PWM_PIN = GPIO_NUM_25; const ...
#include <iostream> #include <fstream> #include <deque> /* Funciones para la interpolacion de Lagrange * float L(int i, float t, std::deque<int> x) -> i: Posicion dentro de los puntos en x para no tomar dicho valor en el interpolador -> t: Punto a interpolar -> x: Valores de la c...
#include "bitmap_class.h" // Initilizes our CTarga to a specified width, height, and color depth bool CTarga::init(int w, int h, int c) { // If we're not trying to create a 24-bit or 32-bit CTarga, there is // no need to go on if(!(c == 3 || c == 4)) return false; // If CTarga has already been set -- clear i...
#include "SDL2/SDL.h" #include "SDL2/SDL_image.h" #include "SDL2/SDL_ttf.h" #include "SDL2/SDL_mixer.h" #include <string> #include <vector> #include <algorithm> #include "../include/grape2d.h" using namespace G2D; Engine *Engine::instance = nullptr; Engine::Engine(int width, int height, const char *title, bool deb...
// Copyright (c) 2021 steff393, MIT license #include <Arduino.h> #include <AsyncElegantOTA.h> #include <AsyncJson.h> #include <ArduinoJson.h> #include <ESP8266WiFi.h> #include <ESP8266mDNS.h> #include <ESPAsyncTCP.h> #include <ESPAsyncWebServer.h> #include <globalConfig.h> #include <LittleFS.h> #include <l...
// MOAB #include "moab/EntityType.hpp" #include "moab/CartVect.hpp" #include "moab/GeomUtil.hpp" // Local #include "double-down/primitives.hpp" void intersectionFilter(void* ptr, RTCDRayHit &rayhit) { switch(rayhit.ray.rf_type) { case RayFireType::RF: //if this is a typical ray_fire, check the dot_product ...
// license:BSD-3-Clause // copyright-holders:<NAME>, <NAME> /********************************************************************* formats/esq16_dsk.c Formats for 16-bit Ensoniq synthesizers and samplers Disk is PC MFM, 80 tracks, double-sided, with 10 sectors per track *********************************...
//#include <iostream> //#include <fstream> //#include <string> #include "IniConfigs.h" // When installed: //#include <vlm/iniconfigs/IniConfigs.h> using vlm::IniValue; using vlm::IniValueString; // Custom type: struct A { A() = default; A(const A &) = default; A(A &&) = default; A(int...
/*========================================================================= * * Copyright SINAPSE: Scalable Informatics for Neuroscience, Processing and Software Engineering * The University of Iowa * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file excep...
// Copyright (c) 2022 andreas.miketta, steff393, MIT license // based on https://github.com/AMiketta/wbec #include <Arduino.h> #include <AsyncJson.h> #include <ArduinoJson.h> #include <globalConfig.h> #include <IPAddress.h> #include <ModbusIP_ESP8266.h> #include <pvAlgo.h> static IPAddress remote; // Address of Modb...
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/basictypes.h" #include "base/platform_thread.h" #include "base/shared_memory.h" #include "testing/gtest/include/gtest/gtest.h" st...
/* This file is part of the PhantomJS project from Ofi Labs. Copyright (C) 2011 <NAME> <<EMAIL>> Copyright (C) 2011 <NAME> <<EMAIL>> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source...
#include "TickHistory.h" #include "../TickData.h" #include "../History.h" #include "../AnalyzerInlines.h" #include "../AnalyzerMath.h" #include "../../zgui/menu.h" #ifndef NOLATENCY #define NOLATENCY 999999; #endif template <typename T> void pop_front(std::vector<T>& v) { if (v.size() > 0) v.erase(v.begi...
// -*- C++ -*- // // <NAME> <<EMAIL>> // #include <cmath> #include "mccomponents/kernels/sample/SQE_EnergyFocusing_Kernel.h" #include "mccomponents/kernels/sample/AbstractSQE.h" #include "mccomponents/exception.h" #include "mccomponents/math/random.h" #include "mccomponents/physics/constants.h" // #define DEBUG #ifd...
#include "genotype/infer/output_specs/json_site_spec.hpp" #include "genotype/infer/level_genotyping/site.hpp" #include "genotype/infer/output_specs/fields.hpp" #include "genotype/infer/types.hpp" using namespace gram::json; using namespace gram::genotype::infer; void add_or_check_allele(std::string const& allele, gra...
#include "Model.h" #include "../../stb_image.h" #include "../Renderer.h" void Model::Render(std::shared_ptr<Shader> shader) { for (unsigned int i = 0; i < meshes.size(); i++) meshes[i]->Render(shader); } void Model::loadModel(std::string path) { Assimp::Importer import; const aiScene* scene = impo...
// // $Id$ // // // <NAME> <<EMAIL>> // // Copyright 2009 Spielberg Family Center for Applied Proteomics // Cedars Sinai Medical Center, Los Angeles, California 90048 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. ...
/** * Keypad.cpp * * Created on: Oct 14, 2016 * Author: nem * Some of this code was originally written by <NAME> 2008 * Modified on: February 6, 2019 * Author: <NAME>, <NAME> */ #include <predef.h> #include <stdio.h> #include <ctype.h> #include <basictypes.h> #include <constants.h> #include <pin_irq...
/* * disc.c * * Copyright (C) 1989, 1991, <NAME> * All rights reserved. * * This software may be freely copied, modified, and redistributed * provided that this copyright notice is preserved on all copies. * * You may not distribute this software, in whole or in part, as part of * any commercial product witho...
#include <ctime> #include <time.h> #include "Master.h" #include <getopt.h> #include <algorithm> #include <csignal> #include "tclap/CmdLine.h" #include "tclap/ValuesConstraint.h" void signal_handler(int signal){ if(signal == 15){ cout << "the computation was interupted due to a timeout" << endl; } exi...
/** * Mandlebort implementation over MPI and OpenMP * * Copyright (c) 2012, <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: * * Redistributions of source code must retain the a...
/* HackerLand National Bank has a simple policy for warning clients about possible fraudulent account activity. If the amount spent by a client on a particular day is greater than or equal to 2 x the client's median spending for a trailing number of days, they send the client a notification about potential fraud. The ...
/** * MIT License * * Copyright (c) 2020 <NAME> {@literal <<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, c...
#include <vector> #include <cstdlib> #include <cstdio> #include <cstring> #include <cassert> #include "nvparse_errors.h" // RC1.0 -- register combiners 1.0 configuration bool rc10_init(char *); int rc10_parse(); bool is_rc10(const char *); // TS1.0 -- texture shader 1.0 configuration bool ts10_init(char *); in...
/*******************************************************************************\ LightSample.cpp This tool inserts night lights into the multi-resolution terrain tiles for Falcon 4.0 <NAME> MicroProse June 1, 1998 \*******************************************************************************/ #include <stdio...
#include "cDAT.hpp" cDAT::cDAT (void) { m_buffer = NULL; }; cDAT::~cDAT (void) { if (m_buffer!=NULL) delete (m_buffer); }; bool cDAT::Create (std::vector<std::string> files, std::string destination) { //An file entry in order to push it in the object's std::vector sFileEntry entry; //An i...
#include "pch.h" #include "globals.h" #include "json_check.h" #include "Location.h" #include "Area.h" #include "OffsetGeometry.h" using namespace json; using namespace std; #pragma region ctor and dtor offset_geometry::offset_geometry() : area(0, 0, 0, 0) { opacity_ = 0.0F; use_as_switch_ = false; center_ = false...
/* Given an integer array instructions, you are asked to create a sorted array from the elements in instructions. You start with an empty container nums. For each element from left to right in instructions, insert it into nums. The cost of each insertion is the minimum of the following: The number of elements current...
/* * Copywrite 2014-2015 <NAME>. All rights reserved. */ #include "base/core/crash.h" #include "base/memory/memory.h" #include "base/process/process.h" #include "base/threading/thread.h" #include "base/core/macro.h" #include "base/core/assert.h" #include <signal.h> #include <fcntl.h> #include <execinfo.h> #include <s...
#include <stdlib.h> /* Standard Lib ISOC */ #include <stdio.h> /* I/O lib ISOC */ #include <FL/Fl.H> /* FLTK main FLTK */ #include <FL/Fl_Window.H> /* FLTK window FLTK */ #include <FL/Fl_Box.H> /* FLTK box FLTK */ #include <FL/Fl_But...
#include "gtest/gtest.h" #include "../include/spica.h" using namespace spica; #include "test_macros.h" // ----------------------------------------------------------------------------- // DoF Camera class test // ----------------------------------------------------------------------------- class DoFCameraTest : publ...
//Code Contributions by: // Code Contibution by: //<NAME> <<EMAIL>> //<NAME> <<EMAIL> > //<NAME> <<EMAIL> > //Modified version of originial implementation by <NAME> (for distance based kernel) #include "shared.h" #include <stdio.h> #include <stdlib.h> #include <cstdlib> #include <string.h> #include <fstream> #include ...
#include <iostream> #include <vector> #include <unordered_map> #include <queue> #include "../../utilities/print-success.cpp" #include "../../utilities/print-vector.cpp" #include "../../utilities/print-matrix.cpp" // int findZeroDegree(std::vector<int>& inDegrees) { // for (int i = 0; i < inDegrees.size(); ++i) { // ...
/* * arViewer_openvrml-0.14.3.cpp * ARToolKit5 * * This file is part of ARToolKit. * * ARToolKit is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at...
#include "randf.h" #include <cstdint> #include <ctime> #include <cstdio> struct pcg_state_setseq_64 { // Internals are *Private*. uint64_t state; // RNG state. All values are possible. uint64_t inc; // Controls which RNG sequence (stream) is // sel...
#include <iostream> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> using namespace std; using namespace cv; #define HIGH 255 #define LOW 0 // x4 x3 x2 y4 // x5 x x1 y5 // x6 x7 x8 y6 // y1 y2 y3 void PetThinSub1(Mat& tempimg, Mat& outimg, int& changecount) { for (int r = 2; r < ...
/* Fake86: A portable, open-source 8086 PC emulator. Copyright (C)2010-2012 <NAME> 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...
/* Copyright (c) 2018 Princeton University All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and th...
/* Copyright 2015-2018 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * THE SOFTWARE IS PROVIDED "AS IS", WITH...
/* * ARC++ * * Copyright (c) 2007-2008 <NAME>. * * Licensed under the New BSD License. * */ #include "universal_include.h" #include "App/app.h" #include "App/string_utils.h" #include "Graphics/graphics.h" #include "Interface/interface.h" #include "Interface/text.h" TextUI::TextUI ( const char *_text, bool ...
#include <stdio.h> #include <vector> using std::vector; #include <string.h> #include <stdlib.h> #include "assert.h" #include <math.h> #include <ctype.h> // toupper //std::vector<char*> my_str_tok(char* line, const char* sep) void my_str_tok(char* line, const char* sep, vector<char*>* ret) { // std::vector<char*> re...
#include "Compressor.h" #include "Consensus.h" #include "Contig.h" #include "DirectoryUtils.h" #include "ReadData.h" #include "ReadFilter.h" #include "bsc_helper.h" #include "lzma2_helper.h" #include <boost/filesystem.hpp> #include <chrono> #include <fstream> #include <iostream> #include <ios> #include <unistd.h> #incl...
#include <ctime> #include <iostream> #include <fstream> #include <sstream> #include <iomanip> #include <string> #include <cmath> #include <cassert> #include <gsl/gsl_roots.h> #include <gsl/gsl_math.h> #include <gsl/gsl_eigen.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_sf_erf.h> #include <gsl/gsl_matrix.h> #include ...
#include "gtest/gtest.h" #include "s3d/image/image.h" using s3d::Image; using s3d::RgbColor; using s3d::Size; TEST(image_container, default_construction_size_0) { Image<uint8_t> i; EXPECT_EQ(i.width(), 0); EXPECT_EQ(i.height(), 0); } TEST(image_container, copy_construction_from_eigen_image_row_major) { // E...
/* * * GAMS - General Algebraic Modeling System C++ API * * Copyright (c) 2017-2021 GAMS Software GmbH <<EMAIL>> * Copyright (c) 2017-2021 GAMS Development Corp. <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the ...
/****************************************************************************/ /// @file TraCI.cpp /// @author <NAME> /// @author <NAME> /// @author <NAME> /// @author <NAME> /// @author <NAME> /// @date 30.05.2012 /// @version $Id$ /// // C++ TraCI client API implementation /********************************...
// // Created by anna on 06.07.18. // #include <sstream> #include "LTL.h" #include "../../optimizePPA/OptimizeMaster.h" #include "../../optimizePPA/OptimizeSlave.h" #include "../../optimizePPA/OptimizeOperations.h" #include "PrintStmt.h" #include "PrintStmtLTL.h" #include "RHS_LTL.h" SCAM::LTL::LTL(SCAM::Module *modu...
#include <string> #include <vector> #include <map> #include "raylib.h" #include "raylib-tileson.h" #include "tileson.hpp" class RaylibTilesonData { public: std::map<std::string, Texture> textures; tson::Map* map; }; Color ColorFromTiledColor(tson::Colori color) { Color output; output.r = ...
#include "../StartUtil.cpp" using namespace std; #define LSIZE 4 cl_kernel matmulKernel[NUMDEVS]; cl_mem dev_ptrA[NUMDEVS]; cl_mem dev_ptrB[NUMDEVS]; cl_mem dev_ptrC[NUMDEVS]; float* hst_ptrA; float* hst_ptrB; float* hst_ptrC; size_t hst_ptrA_mem_size = 0; size_t hst_ptrB_mem_size = 0; size_t hst_ptrC_mem_size = 0...
// // Created by Amrik on 01/03/2018. // #include "Light.h" #include "../Util/Utils.h" Light::Light(glm::vec3 light_position, glm::vec3 light_colour) : super("Light", 0, std::vector<glm::vec3>(), std::vector<glm::vec2>(), std::vector<glm::vec3>(), std::vector<unsigned int>(), false, light_position) { // TODO: Re...
#include "CommonHeader.h" const Vector4 Colours::Ivory = Vector4(1.0f , 1.0f , 0.941176f , 1.0f); const Vector4 Colours::Beige = Vector4(0.960784f , 0.960784f , 0.862745f , 1.0f); const Vector4 Colours::Wheat = Vector4(0.960784f , 0.870588f , 0.701961f , 1.0f); const Vector4 Colours::Tan...
#include "Level.h" Level::Level(int floor, Space* space, Actor* player, Game* game) : space(space), player(player), game(game) { cout << "Floor: " << floor << endl; background = new Background(game); generateRooms(); currentRoom = startingRoom; safetyPointer = startingRoom; currentRoom->openDoors(); //curre...
/** X4ScintillationTest ============================= 1. loads /tmp/G4OpticksAnaMgr/FASTCOMPONENT.npy 2. performs the numerical integration just like DsG4Scintillation with X4Scintillation 3. converts to X4Array to allow persisting 4. persists to /tmp/G4OpticksAnaMgr/X4ScintillationTest.npy :: diff Scintillatio...
#include "mainframe.hpp" #include "events.hpp" #include <cstring> #include <string> #include <sstream> #include <vector> #include <filesystem> static std::vector<std::string> splitBySemicolon(std::string& str) noexcept { std::vector<std::string> out; auto str_cstr = const_cast<char*>(str.data()); char* pch = str...
#include "Emoconfig.h" #include <File.h> #include <stdio.h> #include <stdlib.h> #include <Bitmap.h> #include <String.h> #include <Path.h> #include <TranslationUtils.h> #include "SVGView.h" #include "SmileTextRender.h" //tmp BMessage* faces=NULL; bool valid=false; bool fname=false; bool svg=false; bool size=tru...
/** \file channel.cpp \author <EMAIL> \copyright ABY - A Framework for Efficient Mixed-protocol Secure Two-party Computation Copyright (C) 2019 Engineering Cryptographic Protocols Group, TU Darmstadt This program is free software: you can redistribute it and/or modify it under the terms of the G...
#include "recovery/log_recovery.hpp" #include "page/slotted_table_page.hpp" void LogRecovery::apply_log_record(LogRecord& log) { logger->debug("[LogRecovery] Updating LSN mapping & active TXNs"); // TODO: This should be found BEFORE reading the record. lsn_mapping_[log.lsn()] = log_cursor_.last_file_offset(); ...
/* Copyrighted(c) 2020, <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 : * Redistributions of source code must retain the above copyright notice, this list of conditions and the following di...
/** * Author: <NAME> (<NAME> | DH51902283) * Created: Fri 24 Apr 2020 11:40:16 AM +07 **/ // README: // # See the latest update at: // https://github.com/thuanpham2311/lazyscript/blob/master/nhapMonLapTrinh/phamTanThuanDH51902283_nhapMonLapTrinh_week2.cpp // // // NOTE: // 1. Nhập vào 2 số nguyên a, b. Tính ...
#include <sirius.h> using namespace sirius; void test_diag(BLACS_grid const& blacs_grid__, double cutoff__, int num_bands__, int use_gpu__, int bs__, bool test_gen__) { device_t pu = static_cast<device_t>(use_gpu__); matrix3d<double> ...
#include <iostream> #include <sstream> #include <string> #include <algorithm> #include <functional> #include <vector> #include <deque> #include <queue> #include <map> #include <set> #include <stack> #include <list> #include <unordered_map> #include <unordered_set> #include <iterator> #include <bitset> #include <limits>...
/* * * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. * * 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 opti...
// BEGIN CUT HERE // END CUT HERE #line 5 "MergeStrings.cpp" #include <vector> #include <list> #include <map> #include <set> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #i...
/* * Copyright (c) 2019, <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: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and t...
// Copyright (c) 2015, helo2804. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions a...
#include "ValveController.hpp" ValveController::ValveController(Valve* Valve1, Valve* Valve2, Valve* Valve3, Valve* Valve4, RTC_DS3231* RTC){ valves[0] = Valve1; valves[1] = Valve2; valves[2] = Valve3; valves[3] = Valve4; rtc = RTC; } Valve** ValveController::getValves(){ return valves; } in...
/* * 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...
//*************************************************************************** // This file is property of and copyright by the ALICE HLT Project * // ALICE Experiment at CERN, All rights reserved. * // * // Prima...
/** * @file Arch.i686.cpp * @author <NAME> (<EMAIL>) * @brief i686 architecture implementation of Arch.hpp * @version 0.1 * @date 2021-08-24 * * @copyright Copyright the Xyris Contributors (c) 2021 * */ // Architecture (i686) specific header #include <Arch/i686/Arch.i686.hpp> #include <Arch/i686/regs.hpp> #inc...
#define _USE_MATH_DEFINES #include "Camera.h" #include <entry/entry.h> #include <bx/timer.h> #include <bx/fpumath.h> #include <entry/entry.h> #include <bgfx_utils.h> #include <bgfx.h> #include <bx/timer.h> #include <bx/fpumath.h> Camera::Camera() { Reset(); entry::MouseState mouseState; Update(mouseState, false...
/**** *********************************************************************************** * BSD 3-Clause License * * Copyright (c) 2019, Marius * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions...
/* -*- c++ -*- */ /* * Copyright 2002 Free Software Foundation, Inc. * * This file is part of GNU Radio * * GNU Radio 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 3, or (at your option...
#include "onnxruntime/core/session/experimental_onnxruntime_cxx_api.h" #include "onnxruntime/core/session/onnxruntime_cxx_api.h" #include <algorithm> #include <assert.h> #include <cstddef> #include <cstring> #include <functional> #include <iostream> #include <numeric> #include <sstream> #include <vector> #include <cu...
#include <iostream> #include <iomanip> #include <vector> #include <queue> #include <random> #include <conio.h> #include <time.h> #include <mingw.thread.h> #include <mingw.mutex.h> #include <SingleBarrierStrategy.h> using namespace std; const int populationSize = 10; const int simulationSteps = 80; const int genera...
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* 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/. */ #include "nsHebrewProber.h" #include...
/** * <NAME> * Jan 10, 2016 * <EMAIL> * * @brief * Program CL parsing and scoring structs. * * @copyright * Distributed under the MIT Software License. * See accompanying LICENSE or https://opensource.org/licenses/MIT * * @file */ #include "scoring.h" std::string vargas::ScoreProfile::to_string() const {...
/* * Breadth-first search of all reachable pawn positions * (c) 2013 <NAME> * * tally * Counts the number of positions represented in a data/WPAWNS-BPAWNS-WPROGRESS-BPROGRESS.sorted file */ #include <stdlib.h> #include <stdio.h> #include <gmp.h> #include <assert.h> extern "C" { #include "common.h" } #define MA...
// Copyright 2021 <NAME> #include <tbb/tbb.h> #include <random> #include <algorithm> #include <cstring> #include <vector> #include <ctime> #include <cmath> #include "../../modules/task_3/kuznetsov_n_mult_sparse_mat_tbb/sparse_matrix.h" CcsMatrix::CcsMatrix(int _M, int _N, int nz) { if (_M <= 0 || _N <= 0) throw "w...
#include "ThirdScene.h" #include "model/GameProp.h" #include "item/TextBoxItem.h" #include "model/special/AthleteMeow.h" #include "model/special/OrangeMeow.h" #include "model/special/DoctorMeow.h" #include "model/HUD.h" ThirdScene::ThirdScene(QObject *parent) : GameScene(parent) { } void ThirdScene::initLevel() { ...
#include "settingsconfigimpl_p.h" #include <QtCore/QFileInfo> #include <QtCore/QDir> #include <QtCore/QDebug> namespace { using SourceType = SettingsConfigBase::variant<SettingsConfigBase::SettingsConfigType, SettingsConfigBase::CategoryType, SettingsConfigBase::SectionType, SettingsConfigBase::GroupType, SettingsCo...
#include "rubymotion.h" #include "motion-game.h" #include <AudioEngine.h> /// @class Audio < Object VALUE rb_cAudio = Qnil; struct mc_Audio { int audio_id; }; #define AUDIO_ENGINE cocos2d::experimental::AudioEngine #define AUDIO_ID(obj) \ ((_COCOS_WRAP_GET(obj, struct mc_Audio))->audio_id) /// @group Cons...
//Copyright 2020 KonstantIMP // //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // //Unless required by applicable law or agreed to in writing,...
/*************************************************************************** * * Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved * **************************************************************************/ #include <stdio.h> #include <stdlib.h> #include "curl/include/curl/curl.h" #include "curl/include/...
/* This project 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 3 of the License, or (at your option) any later version. Deviation is distributed in the hope that it will be use...
#include <pcl/point_cloud.h> #include <pcl/point_types.h> #include <pcl/io/pcd_io.h> #include <pcl/visualization/pcl_visualizer.h> #include <pcl/surface/on_nurbs/fitting_surface_tdm.h> #include <pcl/surface/on_nurbs/fitting_curve_2d_sdm.h> #include <pcl/surface/on_nurbs/triangulation.h> typedef pcl::PointXYZ...