text
stringlengths
5.71k
33.7k
#include "SimulationConstraint.hpp" using namespace glm; void SimulationCon::setSimulationData(const Vector<Point3>& positions, const Vector<Tetrahedron>& tetrahedra, const float density) { ASSERT(positions.size() > 0); ASSERT(tetrahe...
#include <iostream> #include <cstring> #include <vector> #include <algorithm> #include <functional> //used so that std:: does not have to be used every time using namespace std; /* Author: <NAME> Assignment Number: 2 Due: 11/3/2016 Description: Program to simulate stocking and selling multiple types of seafood. When...
/* Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation 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....
/*========================================================================= Program: Visualization Toolkit Module: vtkPBRPrefilterTexture.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distribut...
/** * Author: <NAME> * Date: 18-01-2017 */ #include <iostream> #include <cmath> #include "common/fmigo_storage.h" #include "common/common.h" using namespace std; /// Global data for FMUs as well as maps to fetch and read from the FMI/X /// support. /// /// Keep two state vectors so we can backup. /// wo...
#include <omp.h> #include <stdio.h> #include <iostream> #include <algorithm> #include <numeric> #include <functional> #include <fstream> #include <iterator> #include <ctime> #include <cmath> #include <string> #include <sstream> #include <random> #include <iomanip> //#include "overridenew.h" #include "../utility.h" #i...
/* $Id: ntFlushVirtualMemory.cpp 69111 2017-10-17 14:26:02Z vboxsync $ */ /** @file * Memory mapped files testcase - NT. */ /* * Copyright (C) 2007-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * ...
/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include "ring.h" #include "FawnKVFrontend.h" #include <protocol/TBinaryProtocol.h> #include <server/TSimpleServer.h> #include <transport/TServerSocket.h> #include <transport/TBufferTransports.h> using namespace ::apache::thrift; using namespace ::apach...
//*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, insta...
/** * Copyright (c) 2017, Arm Limited and affiliates. * SPDX-License-Identifier: Apache-2.0 * * 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/licen...
#include "ros/ros.h" #include "sensor_msgs/LaserScan.h" #include "std_msgs/Bool.h" #include "std_msgs/String.h" #include "std_msgs/Float32.h" #include "geometry_msgs/Twist.h" #include "sensor_msgs/Imu.h" #include "visualization_msgs/Marker.h" #include "visualization_msgs/MarkerArray.h" #include "intersection_recognitio...
// 2toku.cpp /** * Copyright (C) 2013 Tokutek Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will ...
#define SKEW_GC_MARK_AND_SWEEP #define SKEW_GC_PARALLEL #define _XOPEN_SOURCE_EXTENDED #include <skew.h> namespace Log { void info(const Skew::string &text) {} void warning(const Skew::string &text) {} void error(const Skew::string &text) {} } #include "compiled.cpp" #include <skew.cpp> #include <locale.h> // ...
#include <iostream> #include <sstream> #include "GraphVizHandler.h" #include "line.h" #include <math.h> Agnode_t* GraphvizHandler::addNode(std::string name) { std::string shape = std::string("shape"); std::string shape_value = std::string("box"); Agnode_t* n = agnode(graph_, &name[0u], 1); agsafeset(n, &shap...
#include "front-parse.h" #include "front-ast.h" using namespace bjit; // precedence classes, order from high to low // // NOTE: parens are logically in the highest precedence class // but we treat them as the lowest internally, so that we can // reduce everything up to the opening paren before checking match enum Pr...
/* * The MIT License (MIT) * MIT License * * Copyright (c) 2019 Leaning Technologies Ltd * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without lim...
#include <random> #include <stdexcept> #include <fstream> #include <boost/mpi.hpp> #include <boost/algorithm/string.hpp> #include <boost/algorithm/string/split.hpp> #include <ezl.hpp> #include <fromFilePawn.hpp> #include <helper.hpp> #include <mast.hpp> #include <last.hpp> #include <lcast.hpp> #include <pawn_ast.hpp...
#include <vectormath/cpp/vectormath_aos.h> #include <EGL/egl.h> #define GL3_PROTOTYPES //#define _GNU_SOURCE #include <GL3/gl3.h> #include <GL3/gl3ext.h> #include <GL3/rsxgl.h> #include <GL3/rsxgl3ext.h> #include <sysutil/sysutil.h> #include <io/pad.h> #include <stdio.h> #include <unistd.h> #include <malloc.h> #inclu...
//- // ========================================================================== // BACON-STRIP.com RIG // // MIT License // Copyright (c) 2017 Bacon-Strip // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal...
#include "RenderTricks.h" #include "RendererState.h" #include "Texture.h" #include "Model.h" #include "GameState.h" #include "utils/dll_patcher.h" #include "utils/helpers.h" #include "GL/glew.h" #include <stdint.h> #include <algorithm> #include <cmath> #include <cassert> #include <vector> extern "C" { struct HashTa...
/* * B A S E 6 4 . C P P * * Sources Base64 encoding * * Copyright 1986-1997 Microsoft Corporation, All Rights Reserved */ #include "_xmllib.h" /* From RFC 1521: 5.2. Base64 Content-Transfer-Encoding The Base64 Content-Transfer-Encoding is designed to represent arbitrary sequences of oct...
/* ens210.cpp - Library for the ENS210 relative humidity and temperature sensor with I2C interface from ams 2018 Oct 23 v2 <NAME> Improved begin() 2017 Aug 2 v1 <NAME> Created */ #include <assert.h> #include <Arduino.h> #include <Wire.h> #include "ens210.h" // begin() prints errors to help...
/* * Copyright 2019 Xilinx, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
/** * Copyright (C) 2013 10gen Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be...
// -*- C++ -*- // // Package: HigPhotonJetHLTOfflineSource // Class: HigPhotonJetHLTOfflineSource // // // Author: <NAME> <<EMAIL>> // Created: 2014.07.22 // // system include files #include <memory> #include <iostream> // user include files #include "DQMServices/Core/interface/DQMStore.h" #include "DQM...
#include "stdafx.h" #include "r3.h" #include "../xrRender/ResourceManager.h" #include "../xrRender/fbasicvisual.h" #include "../../xrEngine/fmesh.h" #include "../../xrEngine/xrLevel.h" #include "../../xrEngine/x_ray.h" #include "../../xrEngine/IGame_Persistent.h" #include "../../xrCore/stream_reader.h" #incl...
/* * summit_xl_joystick * Copyright (c) 2011, Robotnik Automation, SLL * 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 copyri...
// #include "config.h" #include "rs485ServiceModule.h" //#include "ExponentialBackoffTimer.h" #include <ConfigurableSoftwareSerial.h> #include <HardwareSerial.h> #include <utils/dbgutils.h> #ifdef ESP8266 #define RS485_RO_RX D1 //receive out #define RS485_DI_TX D2 //data in #define RS485_...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2014 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 (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. // // The following ...
//A Graphics Illustration Program #include<stdio.h> #include<iostream> #include<dos.h> #include<process.h> #include<conio.h> //#include<graphics> #include<math.h> using namespace std; //void render(float,float,float, float,float,float, float,float,float,float,float,float); void initialize(void); void firstpage(void); ...
// // Created by cao on 19-10-26. // #include "utils.h" #include "ctdetConfig.h" #include <sstream> #define PI acos(-1) // calibration matrix float P[3][4] = {707.0493, 0., 604.0814, 45.75831, 0., 707.0493, 180.5066, -0.3454157, 0., 0., 1., 0.004981016}; float get_alpha(Rotation rot) { int idx = rot.ang2 > rot.ang6...
#include <libpmemobj++/make_persistent.hpp> #include <libpmemobj++/p.hpp> #include <libpmemobj++/persistent_ptr.hpp> #include <libpmemobj++/pool.hpp> #include <iterator> #include <thread> #include <vector> #include <sstream> #include <cstdio> #include <cassert> #include <time.h> #include "../../examples/libpmemobj_cp...
// Copyright 2017 The Ray 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.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
/*============================================================================= Copyright (c) 2011-2019 <NAME> https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) =====...
#include "crpigpio.h" #include <QDebug> Crpigpio::Crpigpio(QObject *parent) : QObject(parent) { if(gpioInitialise()<0) { qDebug()<< "No fue posible iniciar "; } } Crpigpio::~Crpigpio() { gpioTerminate(); } int Crpigpio::OpenSPI(unsigned chanel, unsigned baudios, unsigned Flags) //Habilitar...
// Copyright 2015 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
/************************************************************** * * 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...
// // file RDKitMolToQPainter.cc // // Contributed by: // <NAME> // AstraZeneca // 28th June 2012 // // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // // Draw an RDKit Drawin...
/*This file is part of the FEBio Studio source code and is licensed under the MIT license listed below. See Copyright-FEBio-Studio.txt for details. Copyright (c) 2020 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any per...
/**************************************************************************** * * Copyright (c) 2012-2015 PX4 Development Team. 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. Red...
//===- RISCVMatInt.cpp - Immediate materialisation -------------*- C++ -*--===// // // 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 2013 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 "cloud_print/gcp20/prototype/privet_http_server.h" #include "base/command_line.h" #include "base/json/json_writer.h" #include "base/strings/stri...
/* * If not stated otherwise in this file or this component's license file the * following copyright and licenses apply: * * Copyright 2018 RDK Management * * 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...
//============================================================================== /* Software License Agreement (BSD License) Copyright (c) 2003-2016, CHAI3D. (www.chai3d.org) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted pro...
#ifndef HAVE_LLVM #error "This code needs LLVM enabled" #endif #include <set> #include <iostream> #include <sstream> #include <fstream> #include <string> // ignore unused parameters in LLVM libraries #if (__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunused-parameter" #else #pragma GCC ...
// Injector.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> #include <iomanip> #include <string> #include <map> #include <unordered_set> #include <algorithm> #include <Windows.h> #include <TlHelp32.h> #include <AclAPI.h> using std::cout; usin...
/****************************************************************************** * $Id$ * * Project: OpenGIS Simple Features Reference Implementation * Purpose: Simple client for translating between formats. * Author: <NAME>, <EMAIL> * **************************************************************************...
// // Copyright (c) 2017 The Khronos Group 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 la...
#include <iostream> #include <sstream> #include <sys/resource.h> #include <sys/stat.h> #include <mutex> #include <thread> #include <algorithm> #include <fstream> #include <stdexcept> #include "kmercounter.hpp" #include "jellyfishreader.hpp" #include "jellyfishcounter.hpp" #include "emissionprobabilitycomputer.hpp" #inc...
/** * Copyright (c) 2010, <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 retain the above copyright * notice, this list o...
#include <algorithm> #include <chrono> #include <execution> #include <filesystem> #include <fstream> #include <iomanip> #include <iostream> #include <regex> #include <tuple> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> #include <time.h> #include <sys/types.h> #...
/****************************************************************************** * * Project: Generic common data format * Purpose: Generic Data model to read netcdf and hdf5 * Author: <NAME>, plieger "at" knmi.nl * Date: 2013-06-01 * ***********************************************************************...
#include "mbed.h" #include "rtos.h" #include "RawSerial.h" #include "stdio.h" #include "stdlib.h" #include "string.h" #include <math.h> //Photointerrupter input pins #define I1pin D2 #define I2pin D11 #define I3pin D12 //Incremental encoder input pins #define CHApin D7 #define CHBpin D8 //M...
#include <Arduino.h> #include <WiFi.h> #include <HTTPClient.h> #include <ArduinoJson.h> //Credentials to connect to the internet const char* ssid = "ASUS_2.4G"; const char* password = "<PASSWORD>"; //PIN assignment #define PIN_SCE 17 #define PIN_RESET 16 #define PIN_DC 4 #define PIN_SDIN 2 #define PIN_SCLK 15 #defin...
/* <NAME> 09/19/13 morseDecoder (The code could still use some cleaning up, reorganzing and commenting...) This international morse code decoder makes a few assumptions: That the biggest intensity pixel change on your webcam will be the LED That the LED is stationary That the dot timing is some multiple of...
// license:BSD-3-Clause // copyright-holders:<NAME> #include "pin64.h" #include "block.h" #include "writer.h" #include "verifier.h" #define CAP_NAME "pin64_%d.cap" // pin64_t members const uint8_t pin64_t::CAP_ID[8] = { 'P', 'I', 'N', '6', '4', 'C', 'A', 'P' }; const uint8_t pin64_t::BDR_ID[8] = { 'P', 'I', 'N', '6...
#include "stdafx.h" #include "UIInventoryUtilities.h" #include "uicharacterinfo.h" #include "../actor.h" #include "../level.h" #include "../../xrServerEntities/character_info.h" #include "../string_table.h" #include "../relation_registry.h" #include "xrUIXmlParser.h" #include "UIXmlInit.h" #include "u...
/*========================================================================= Library: TubeTK Copyright 2010 Kitware Inc. 28 Corporate Drive, Clifton Park, NY, 12065, USA. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Lic...
/* * MIT License * * Copyright (c) 2021 Imperial College London * * 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 us...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2017 ArangoDB GmbH, Cologne, Germany /// /// 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...
// Copyright (c) 2017, Lawrence Livermore National Security, LLC and // UT-Battelle, LLC. // Produced at the Lawrence Livermore National Laboratory and the Oak Ridge // National Laboratory. // LLNL-CODE-743438 // All rights reserved. // This file is part of MGmol. For details, see https://github.com/llnl/mgmol. // Plea...
/*Authors: <NAME> / <NAME>*/ #include <algorithm> #include <cassert> #include <fstream> #include <iostream> #include <limits> #include <map> #include <mutex> #include <numeric> #include <regex> #include <sstream> #include <sys/time.h> #include <utility> #include <vector> #include <extensions/allocator/allocator.hpp> ...
/* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */ /* * Copyright (c) 1997 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: ...
#include <SDL.h> #include <glad/glad.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <glm/gtx/quaternion.hpp> #include <spdlog/spdlog.h> #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> #include <algorithm> #include <array> #include <cmath> #include <c...
/* * Copyright (c) 2015, <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 retain the above copyright * notice, this list of...
#include <iostream> #include <vector> #include <algorithm> #include <cstdlib> #include <string> #include <fstream> #include <map> #include <climits> #include <cstring> #include <iterator> #include <sstream> #include <mpi.h> using namespace std; void writeResults(const map<string, int> & FinalAnswer, ofstream & OutputF...
/** * @brief Read a JSON fixture file and simulate the fixture in Box2D. * @author <NAME> */ #include <Box2D/Box2D.h> #include <CLI/CLI.hpp> #include <Eigen/Core> #include <Eigen/Geometry> #include <fmt/format.h> #include <nlohmann/json.hpp> #include <spdlog/spdlog.h> typedef std::array<double, 2> array2d; typedef...
//=========================================== // PC-BSD source code // Copyright (c) 2016, PC-BSD Software/iXsystems // Available under the 3-clause BSD license // See the LICENSE file for full details //=========================================== #include "page_pkg.h" #include "ui_page_pkg.h" #define LCATS (QStri...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkBitmapProcShader.h" #include "SkBitmapProcState.h" #include "SkBitmapProvider.h" #include "SkColorPriv.h" #include "SkErrorInternals.h" #include "SkPixelRef.h" #in...
/* * api.cpp * * Created on: 8. 6. 2019 * Author: ondra */ #include <fstream> #include "api.h" #include <sys/stat.h> #include <unordered_map> #include <imtjson/string.h> #include <imtjson/array.h> #include <imtjson/object.h> #include <shared/linear_map.h> #include <imtjson/binjson.tcc> #include <imtjson/bi...
#include <opencv2/core/core.hpp> #include <opencv2/video/video.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <iostream> #include <cstdlib> #include <thread> #include <chrono> extern "C" { #include "rs232.h" } #define CONE_HEIGHT 0.4953 #define CAM_CONSTANT 1583.5 #defi...
#include "Global_ex.h" void _object_init() { _sysbutton_register(); _page_register(); _static_register(); _button_regsiter(); _item_regsiter(); _scrollbar_register(); _edit_register(); _listview_regsiter(); _combobox_regsiter(); _groupbox_regsiter(); _reportlistview_regsiter...
#include <cxxopts.hpp> #include "logconsole.h" #include <string> #include "packetfactory.h" #include "crosesocket.h" #include "cnetwork_asio.h" #include "network_thread_pool.h" #include "srv_char_list_reply.h" #include "cli_accept_req.h" #include "cli_login_req.h" #include "srv_login_reply.h" #include "cli_channel_lis...
#include "gamboge/nnet.h" #include <string> #include <vector> #include <functional> #include <cmath> #include <algorithm> #include <numeric> #include "cppunit/TestCase.h" #include "cppunit/TestSuite.h" #include "cppunit/TestResult.h" #include <cppunit/ui/text/TestRunner.h> template< typename FP > struct absdiff : pub...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2018 NIT<NAME> * * 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 distrib...
#include <stdio.h> #include <string> #include <math.h> #include <sys/time.h> #include <sys/dir.h> #include <rapidxml.hpp> //rapidxml must be include before boost #include <rapidxml_print.hpp> //rapidxml must be include before boost #include <boost/uuid/uuid.hpp> #include <boost/uuid/uuid_generators.hpp> #include <boo...
// // Created by wangrl on 19-4-14. // #include <vector> #include <unordered_map> #include <climits> #include <algorithm> #include <stack> using namespace std; struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; ListNode *mergeTwoLists(ListNode *l1, ListNode *l2...
#include "Tests.h" #include <stdbool.h> #include <iostream> Tests::Tests() { // TODO Auto-generated constructor stub } Tests::~Tests() { // TODO Auto-generated destructor stub } bool Tests::tests() { bool answer = true; bool ok1 = testGetRoomNumber(); bool ok2 = testGetTreasure(); bool ok3 = testGetSearch...
#include "collision_prevention.h" collision_prevention::collision_prevention() { this->correct_theta_rad = 0.0; this->ang_z = 0.0; this->dodge_ang_z = 0.0; this->forward_speed_mps = 0.5; this->decision = STOP; this->previous_decision = F; this->makingDecision = false; this->movingForwar...
// Copyright (c) <NAME> // Licensed under the MIT License // ============================================================== // ORBITER MODULE: ShuttleA // Part of the ORBITER SDK // // auxpodctrl.h // User interface for auxiliary thruster pod control // ================================...
/** \file rna_main.cpp * * Defines the "vg rna" subcommand. */ #include <unistd.h> #include <getopt.h> #include <chrono> #include "subcommand.hpp" #include "../transcriptome.hpp" #include <vg/io/vpkg.hpp> #include <vg/io/stream.hpp> #include "../gbwt_helper.hpp" using namespace std; using namespace vg; using nam...
// // Copyright (C) 2014 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
/* * search-tool.c * Copyright 2011-2012 <NAME> * * 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...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
/* * This file is adapted from PolarSSL 1.3.19 (GPL) */ /* * FIPS-180-1 compliant SHA-1 implementation * * Copyright (C) 2006-2014, ARM Limited, All Rights Reserved * * This file is part of mbed TLS (https://tls.mbed.org) * * This program is free software; you can redistribute it and/or modify * it unde...
// 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/command_line.h" #include "base/file_util.h" #include "base/gfx/gdi_util.h" #include "base/gfx/platform_device_win.h" #include "bas...
#include <stdio.h> #include <string.h> #include <assert.h> #include <stdlib.h> #include "gl_util.h" #include "math_util.h" #include "lexer.h" GLuint gl_shader_create(const char* file_path, GLenum type, const char* defines) { char* src = file_read(file_path); if (!src) { printf("gl_shader_create: Fa...
//--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop /* ================================================================= multiple-lin-reg.cpp multiple variable linear regression Based on an idea in "Programming Classic, Implementing the World's B...
#include "kids/sweep/fitter.h" #include "kids/sweep/model.h" #include <tula/algorithm/ei_ceresfitter.h> #include <tula/algorithm/ei_stats.h> #include <tula/datatable.h> #include <tula/filename.h> // #include <tula/matplotlibcpp.h> #include <tula/nc.h> #include <yaml-cpp/yaml.h> void kids::SweepFitResult::save(const st...
#include <algorithm> #include <chrono> #include <memory> #include <rang.hpp> #include "EventBus.hpp" #include "lss/game/enemy.hpp" #include "lss/game/item.hpp" #include "lss/game/location.hpp" #include "lss/game/player.hpp" #include "lss/game/terrain.hpp" #include <lss/game/aiManager.hpp> #include "lss/utils.hpp" #inc...
#define _USE_MATH_DEFINES #include "Render/Mesh.h" #include "Application.h" #include "KeplerOrbits/CoordinateSystems.h" #include "Render/RenderContext.h" #include "Render/RenderableTrajectory.h" #include "Render/Icon.h" #include "Render/VertexDeclarations.h" #include "Render/TransformUtils.h" #include <bx/timer.h> #...
/**************************************************************** Copyright (C) Lucent Technologies 1997 All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copi...
// // ImageSegmentation.m // see_project // // Created by <NAME> on 11/30/10. // Copyright 2010 Carnegie Mellon University // // This work was developed under the Rehabilitation Engineering Research // Center on Accessible Public Transportation (www.rercapt.org) and is funded // by grant number H133E080019 from the...
#include "solvers/pl_eca_2.hpp" // #include "gurobi_c.h" namespace Solvers::PL_ECA_2_Vars { class XVar : public OSI_Builder::VarType { private: const MutableLandscape::Graph & _graph; const int _m; public: XVar(const MutableLandscape::Graph & graph, int n, int m) : VarType(n * m, 0, OSI_Builder::...
/*------------------------------------------------------------------------- * * toasting.c * This file contains routines to support creation of toast tables * * * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * I...
// CLASSIFICATION: UNCLASSIFIED /***************************************************************************/ /* RSC IDENTIFIER: GARS * * ABSTRACT * * This component provides conversions from Geodetic coordinates (latitude * and longitude in radians) to a GARS coordinate string. * * ERROR HANDLING * * ...
#include <iostream> #include <iomanip> #include <vector> #include <cstdio> #include <cstdlib> #include <cstring> #include <cstdint> #include <unistd.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <FreeImage.h> #include "sampling.hpp" #include "scene.hpp" #include "ray.hpp" #include "tracer...
#include "byakugan.h" #include "heapStructs.h" // Get offset into the hash map ULONG hash(PVOID addr, struct HPool *heap) { ULONG offset; // assume 8 bit alignment, and use the golden ratio of 2^32 offset = (((ULONG) addr >> 3) * (2654435761)) % (0x007fffff/8); //dprintf("[XXX] Hashed to b...
// WARNING: code is little endian only! #include "BAM2blocks.h" // using namespace std; //const char cigarChar[] = {'M','I','D','N','S','H','P','=','X'}; BAM2blocks::BAM2blocks() : instream(std::cin.rdbuf()) { oBlocks = FragmentBlocks(); //Right syntax to call the default constructor on an object variable, declar...