text
stringlengths
5.71k
33.7k
#include "../include/libRR.h" #include "CDL.hpp" #include <fstream> #include <sstream> extern json game_json; #define USER_SECTOR_SIZE 2048 #define FULL_SECTOR_SIZE 2352 char* start_pointer; json parse_root_files(char*& data, json pvd, uint32_t lba, uint32_t directory_size); string readString(char*& data, int lengt...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <ctype.h> #include "LinkedList.h" #include "LinkedList_BP.h" #include <time.h> #include <getopt.h> int Parser(char *data, LinkedList_BP *ll_quality_info, LinkedList *ll_errors, bool to_reference, bool proper_alligment, int &read_1_le...
#include "panorama.h" #include "matrix.h" #include <unistd.h> #include <ctime> #include <cassert> using namespace std; Image computeTensor(const Image &im, float sigmaG, float factorSigma) { // // --------- HANDOUT PS07 ------------------------------ // Compute xx/xy/yy Tensor of an image. (stored in that or...
#include "fusion.hpp" #include "process.hpp" #include "revcomp.hpp" Fusion::Fusion( Contiglist *contigs, Readlist *reads ) : contigs(contigs), reads(reads){ fusions_completed = 0; } // creates id of fused contigs std::string Fusion::get_fused_id( std::string contig1_id, std::string contig2_id ){ if( contig1_id.l...
/*===================== begin_copyright_notice ================================== Copyright (c) 2017 Intel Corporation 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, includi...
//***********************************************************************// // // // - "Talk to me like I'm a 3 year old!" Programming Lessons - // // // // $Author:...
int p1AXu , ucZP/*9*/ //QGM ,cK, Yr3DDR/*bcp*/, id4, WO7P,NSBn , M2s , X , zC , ts , gep, LU3 , lEI,tYB , rZoT,hl8 ,/*Yh*/ y4hM, YnKNo ,sBS, xtPbU,// Xo , Y52b// , EM ,PZ9r ,/*cfa*/mw /*YjS7*/, wY,gT ,AXf ;void f_f0/*6*/ (){ int Kbg ; volatile int xsS , eGIRk,//y4 b8 , Yvy0 , NbySoz ; /*A8*/{{...
/* ------------------------------------------------------------------------------- This file is part of OgreKit. http://gamekit.googlecode.com/ Copyright (c) 2006-2010 zcube(JiSeop Moon). Contributor(s): harkon.kr. ------------------------------------------------------------------------------- This software is provid...
/******************************************************************************* * * MIT License * * Copyright (c) 2018 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
#include <uWS/uWS.h> #include <fstream> #include <iostream> #include <string> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "helpers.h" #include "json.hpp" // what we need to use spline.h for is smoothing out that // kind of disjointed path that the car was followin...
#include "sect.h" sect::sect() { tag = 0; z_fl = 0; z_ce = 0; } sect::sect(Uint32 tag, float z_fl, float z_ce, int tex_fl, int tex_ce) { this->tag = tag; this->z_fl = z_fl; this->z_ce = z_ce; this->tex_fl = tex_fl; this->tex_ce = tex_ce; } float sect::get_z_fl() { return z_fl; } float sect::get_z_ce...
//===- GNUArchiveReader.cpp -----------------------------------------------===// // // The MCLinker Project // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------------------...
#include "uld.h" #pragma hdrstop #include "obj.h" #define LTIMING(x) // RTIMING(x) #define LDUMP(x) // RDUMP(x) /* static inline unsigned MemHash(const char *b, const char *p) { unsigned out = p - b; while(p - b >= 4) { out ^= PeekIL(b); b += 4; } switch(p - b) { case 3: out ^= byte(b[2]) << 16; case 2...
#include "../src/blowfish.hh" #include <cstdlib> #include <iostream> bool schneier_ecb_test() { char keys[34][8] = {{(char) 0x00, (char) 0x00, (char) 0x00, (char) 0x00, (char) 0x00, (char) 0x00, (char) 0x00, (char) 0x00}, {(char) 0xFF, (char) 0xFF, (char) 0xFF, (char) 0xFF, (char) 0xFF, (char) 0xFF, (char)...
/* * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or * distribute this software, either in source code form or as a compiled * binary, for any purpose, commercial or non-commercial, and by any * means. * * In jur...
#include <iostream> #include "igl/slim.h" #include "igl/components.h" #include "igl/readOBJ.h" #include "igl/writeOBJ.h" #include "igl/Timer.h" #include "igl/boundary_loop.h" #include "igl/map_vertices_to_circle.h" #include "igl/harmonic.h" #include <igl/serialize.h> #include <igl/read_triangle_mesh.h> #include <igl...
/* Call mutations from BAM file */ #include "bamalignfunc.h" #include "parseargs.h" #include "mutmap.h" #include "givenrefmut.h" #include "refio.h" #include <fstream> #include <sstream> #include <climits> using namespace std; /* Get the reference annotation */ RefVector RVREF; int getReferenceInfo(BamReader & read...
//The MIT License (MIT) // //Copyright (c) 2016 ZHAOZhengyi-tgx // //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...
#include "application.h" #include "connection.h" #include "log.h" #include "reactor.h" #include "smp.h" #include "distributor.h" #include "http/http_parser.h" #include <chrono> #include <memory> #include <vector> #include <list> #include <random> using namespace infgen; namespace bpo = boost::program_options; class ...
/*========================================================================= Program: Visualization Toolkit Module: TestIOADIOS2VTX_VTU3D.cxx ------------------------------------------------------------------------- Copyright 2008 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sand...
/********************************************************************* * * Copyright (c) 2011, <NAME> - KTH Stockholm * (<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: *...
//======================================================================== // // XFAScanner.cc // // Copyright 2020 Glyph & Cog, LLC // //======================================================================== #include <aconf.h> #ifdef USE_GCC_PRAGMAS #pragma implementation #endif #include "GString.h" #include "GHa...
#include "../include/quienesquien.h" #include "../include/funciones.h" #include <cmath> #include <numeric> QuienEsQuien::QuienEsQuien() = default; QuienEsQuien::QuienEsQuien(const QuienEsQuien &quienEsQuien) { this->personajes = quienEsQuien.personajes; this->atributos = quienEsQuien.atributos; this->ta...
/* * mpu_driver.cpp * * Created on: Dec 7, 2021 * Author: sujiwo */ #include <cmath> #include "tf2/LinearMath/Quaternion.h" #include "yaml-cpp/yaml.h" #include "mpu_driver.h" extern "C" { #include <linux/i2c.h> #include <linux/i2c-dev.h> #include "smbus.h" } using namespace std; MpuDriver::MpuDriver(int ...
#include "LtpSessionReceiver.h" #include <iostream> #include <inttypes.h> #include <boost/bind/bind.hpp> #include <boost/make_shared.hpp> LtpSessionReceiver::LtpSessionReceiver(uint64_t randomNextReportSegmentReportSerialNumber, const uint64_t MAX_RECEPTION_CLAIMS, const uint64_t ESTIMATED_BYTES_TO_RECEIVE, const ...
#include "CrushTester.h" #include <algorithm> #include <stdlib.h> void CrushTester::set_device_weight(int dev, float f) { int w = (int)(f * 0x10000); if (w < 0) w = 0; if (w > 0x10000) w = 0x10000; device_weight[dev] = w; } int CrushTester::get_maximum_affected_by_rule(int ruleno) { // get the nu...
#include "GameMain.h" GameMain::GameMain() {} void GameMain::PostInitialize() { int32_t w = EngineData::Get().w; int32_t h = EngineData::Get().h; engine.Initialize(EngineData::Get().w, EngineData::Get().h, PI / 2.0f, 0.2f, 500.0f); engine.render_distance = 200.0f; int padding = 5, size = 100; Text...
#include "wifi80211.h" #include "qam.h" #include "util.h" #include "scrambler.h" #include "interleave.h" #include "fft.h" #include <limits> #include <cassert> #include <valgrind/memcheck.h> void OFDMFrame::wienerFilter(const it & begin, const it & end, v &G, float &snr, float &lsnr_estimate) const { v lts_freq(beg...
/* * hardware.c * * Created on: 2Sep.,2017 * Author: <NAME> */ // These are all the functions for interacting with the hardware #include "hardware.h" #include "history.hpp" volatile uint16_t PWMSafetyTimer = 0; volatile int16_t CalibrationTempOffset = 0; uint16_t tipGainCalValue = 0; void setTipType(enum Ti...
#include <string> #include "test.hpp" #include <cassert> #include <iostream> #include <EASTL/string.h> #include <EASTL/vector_map.h> using eastl::string; bool fncomp (char lhs, char rhs) {return lhs<rhs;} struct classcomp { bool operator() (const char& lhs, const char& rhs) const {return lhs<rhs;} }; stati...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { //initialized is_initialized_ = false; n_x_ = 5; n_aug_ = ...
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// File: VanHove_Labo26.cpp // Author: <NAME> // Date: 03.12.2021 // Description: Reads a text file and encrypt it with RSA // Compiler: g++ 11.2.0 // Options: -std=c++20 -Wall -Wextra -Wconversion -Wsign-conversion -Wvla -pedantic #include <iostream> #include <fstream> #include <string> #inc...
#include <bits/stdc++.h> #ifdef LOCAL #include "code/formatting.hpp" #else #define debug(...) (void)0 #endif using namespace std; struct linked_lists { int L, N; vector<int> next, prev; // L: lists are [0...L), N: integers are [0...N) explicit linked_lists(int L = 0, int N = 0) { assign(L, N); } ...
/** *********************************************************************************************** * @brief CObjectALEANCFCable2D implementation * * @author <NAME> * @date 2019-06-17 (generated) * * @copyright This file is part of Exudyn. Exudyn is free software: you can redistribute it and/or ...
#include "ukf.h" #include "tools.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; const double EPS = 0.0001; //threshold for div by zero detection /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ U...
// Changes 2020-07-22, by db: // // - This code was originally written in 2015, largely inspired by: https://github.com/JuliaStrings/utf8proc/blob/master/data/charwidths.jl // At the time, it used Unifont as one of the main sources of character widths: https://unifoundry.com/unifont.html // Relevant comment in ...
#include <id3.hpp> #include <picture.hpp> using namespace ID3; bool ID3::detectID3(Filehandler& t_handler) noexcept { std::string s; t_handler.readString(s, LOCATION_START, 3); bool result = s == "ID3"; log::debug(result ? "Found ID3 header!" : "No ID3 header present in file"); return result;...
/** Copyright (c) 2016, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the ...
//===-- BundleMemoryPools.cpp - Bundle Memory Pools for internal MemRefs -===// // // Copyright 2019-2020 The IBM Research Authors. // // ============================================================================= // // For certain cases the number of individual memory allocations required for // all internal tensor...
/* * * Copyright (c) 2008, 2011, 2012, 2013 * <NAME>, <NAME>, <NAME> * * This file is part of EDENA. * * EDENA 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, ...
// Copyright (c) 2011, <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...
#include "ext/simdjson.hh" #include "utils/file.hh" #include "utils/timeit.hh" #include "sequences/seqdb.hh" // ====================================================================== using namespace std::string_view_literals; #pragma GCC diagnostic push #ifdef __clang__ #pragma GCC diagnostic ignored "-Wglobal-const...
#include "MatrixTests.h" bool testMatrix(std::string &reportString) { std::string testName = "rsMatrix"; bool testResult = true; //rsMatrixDbl A(2, 3, true); //A = A + 2.0; testResult &= testMatrixArithmetic(reportString); //... appendTestResultToReport(reportString, testName, testResult); return t...
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> */ #include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> // Need this for sampling from distributions #include <string> #include <vector> #includ...
#include "Cylinder.h" #include "arrays.h" #include <math.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> Cylinder::Cylinder() : Mesh() { cyl_creux = 1; // 1 si creux, 0 si plein centre[0] = -100.1; // coor x du centre centre[1] = 0.0; // coor y du centre centre...
#define _CRT_SECURE_NO_WARNINGS #include "database.hpp" #include <cstring> #include <cstdio> #include <iomanip> //just like the clothes #define xlsize 63 #define lsize 43//large #define msize 23//middle #define ssize 13//small #define xssize 8 #define xxxsize 600 //id(2018) = administrator //last ok id == innerid, nex...
/**---------------------------------------------------------------------------- Copyright 2018-, UT-Battelle, LLC 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 m...
#include <stdio.h> #include <stdlib.h> #include "ionic.h" #define MICA_R_TYPE 1 #define MICA_W_TYPE 2 #define VALUE_SIZE_WORDS 64 #define KEY_SIZE_WORDS 2 #define SERVER_IP 0x0a000002 #define SERVER_CONTEXT 0 #define CLIENT_IP 0x0a000003 #define CLIENT_CONTEXT 1 #define PRINT_TIMING 0 #define NCORES 4 #define US...
// // Copyright 2020 <NAME> <<EMAIL>>. All rights reserved. // #include "MediaOut.h" #include <assert.h> #include <sys/time.h> #include <unistd.h> #include "Utils.h" #include "rtp/RtpHeader.h" static inline int64_t currentTimeMs() { timeval time; gettimeofday(&time, nullptr); return ((time.tv_sec * 1000...
#include "../include/cube.h" // Bitwise rotation m_Right template <class N> N ror(const N n, const uint8_t d) { return n >> d | n << (sizeof(n) * 8 - d); } // Bitwise rotation m_Left template <class N> N rol(const N n, const uint8_t d) { return n << d | n >> (sizeof(n) * 8 - d); } Cube::Cube(uint32_t up, uin...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ #define M_TO_KM 1000 #define H_TO_S 3600 #include <vector> #include <string> #include "LatLon.h" #include <math.h> #include "StreetsDa...
/* * CTU/EMBO - EMBedded Oscilloscope <github.com/parezj/EMBO> * Author: <NAME> <<EMAIL>> */ #include "core.h" #include "utils.h" #include "msg.h" #include <QObject> #include <QDebug> #include <QTimer> #include <QElapsedTimer> #include <QSettings> #include <QDesktopServices> #include <QtSerialPort> #include <QtSer...
/*******************************************************************\ Module: C++ Language Type Checking Author: <NAME>, <EMAIL> \*******************************************************************/ /// \file /// C++ Language Type Checking #include "padding.h" #include <algorithm> #include <util/arith_tools.h> #...
#include "PyMacro.h" #include <iostream> #include <algorithm> #include "Parser.h" #include "GrammarUtils.h" #include "format.h" using namespace std; enum MacroRule { QExpr = SynTypeLast + 1, QStarExpr, MacroArg, MacroArgExpand, MacroConstStr, MacroArgToken }; /** Заменяет листья с rule_id=QExpr, на соответств...
/* * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or * distribute this software, either in source code form or as a compiled * binary, for any purpose, commercial or non-commercial, and by any * means. * * In jurisdictio...
//===--- IndexSymbol.cpp - Types and functions for indexing symbols -------===// // // 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) 2015, <NAME>, Quintelligence d.o.o. and contributors * All rights reserved. * * This source code is licensed under the FreeBSD license found in the * LICENSE file in the root directory of this source tree. */ using namespace TClustering; using namespace TDist; ///////////////////////////////...
// Copyright 2017 the V8 project 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 "src/wasm/streaming-decoder.h" #include "src/handles/handles.h" #include "src/objects/descriptor-array.h" #include "src/objects/dictionary.h" ...
/***************************************************************************** genomeCoverage.cpp (c) 2009 - <NAME> Hall Laboratory Department of Biochemistry and Molecular Genetics University of Virginia <EMAIL> Licenced under the GNU General Public License 2.0 license. **********************************************...
#include "stdafx.h" #include "matroskaParser.h" #include "vodCoreException.h" #include "vod_common.h" #include "bitStream.h" #include "nalUnits.h" #include <fs/systemlog.h> #include "vod_common.h" #include "wave.h" #include "hevc.h" static const int LPCM_HEADER_LEN = 4; using namespace wave_format; ...
/* Copyright (c) 2007 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge...
// Copyright 2021 Google LLC // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #include <xnnpack/aarch32-assembler.h> #include <xnnpack/allocator.h> #include <xnnpack/gemm.h> namespace xnnpack { namespace aarch32 { namespace { class ...
#include "scenehdrbloom.h" #include <sstream> #include <iostream> using std::endl; using std::cerr; #include <glm/gtc/matrix_transform.hpp> using glm::vec3; using glm::vec4; using glm::mat4; using glm::mat3; SceneHdrBloom::SceneHdrBloom() : angle(0.0f), tPrev(0.0f), b...
#include <bitset> #include <string> #include <iostream> #include "../../include/kmer/Kmer.hpp" #ifdef __APPLE__ #include <machine/endian.h> #define H2BE htonll #define BE2H ntohll #else #include <endian.h> #define H2BE htobe64 #define BE2H be64toh #endif using namespace std; static const uint64_t twin_table[256] = ...
/* * Copyright 2020 The Chromium OS 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 <cstdlib> #include <set> #include <vector> #include <base/command_line.h> #include <base/files/file_util.h> #include <base/process/lau...
#include <iostream> #include <fstream> #include <Eigen/Eigen> //include the bie header files #include "material.hh" #include "precomputed_kernel.hh" #include "bimat_interface.hh" #include "infinite_boundary.hh" //include the fem header files #include "mesh_Generated_multi_faults.hpp" #include "bcdof.hpp" #include "bcdo...
// ---------------------------------------------------------------------------- // This confidential and proprietary software may be used only as authorised // by a licensing agreement from Arm Limited. // (C) COPYRIGHT 2011-2019 Arm Limited, ALL RIGHTS RESERVED // The entire notice above must be reproduced on ...
#include <HElib/FHE.h> #include <HElib/FHEContext.h> #include <HElib/EncryptedArray.h> #include <HElib/NumbTh.h> #include "SMP/Matrix.hpp" #include "SMP/Timer.hpp" #include "SMP/literal.hpp" #include "SMP/network/net_io.hpp" #include <boost/asio.hpp> #include <boost/asio/ip/tcp.hpp> #include <iostream> #include <nume...
#include "system_core.h" #include "performance.h" #include "platform.h" #include "VideoInterface3D.h" #include "InputInterface.h" #include "Game.h" #include "PhysicsManager.h" #include "GameObjectManager.h" #include "Interfaces.h" #include "Camera.h" #include "Player.h" #include "World.h" //temp #include...
#include "pch.h" #include <iostream> #include <cmath> #include <string> #include <sstream> #include "Graph.h" using namespace std; //Enable graphics card /*extern "C" { __declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001; }*/ #define WIDTH 1000 #define HEIGHT 750 sf::Time questionTime; enum state...
#include<stdio.h> #include<stdlib.h> #include <fstream> #define NULL_VALUE -999999 #define INFINITY 999999 #define WHITE 1 #define GREY 2 #define BLACK 3 #define MAX_HEAP_SIZE 100000 #define MAXREAL 999999.0 class HeapItem{ public: int data; //actual data that is stored float key; //key value of the data, heap is c...
#include <MeshFEM/MeshDataTraits.hh> #include "Handle.hh" #include "Circulator.hh" #undef interface namespace _TriMeshHandles { // We need to expliclty reference this enclosing scope to hack around an old // clang bug involving injected class names; make it less verbose namespace _hndl = ::_TriMeshHandles; template...
#include "VBriey.h" #include "VBriey_Briey.h" //#include "VBriey_Axi4VgaCtrl.h" //#include "VBriey_VgaCtrl.h" #ifdef REF #include "VBriey_RiscvCore.h" #endif #include "verilated.h" #include "verilated_vcd_c.h" #include <stdio.h> #include <iostream> #include <stdlib.h> #include <stdint.h> #include <cstring> #include <st...
#include <iostream> #include <fstream> #include <cstring> #include <string.h> #include <stdio.h> #include <ctime> #include "gbmem.h" #include "gbcart.h" GBCart::GBCart(char* filename, char* bootrom){ m_bBootRomEnabled = false; loadCartFile(filename); m_romFileName = filename; m_cartRomBank =...
// <NAME>|| /************************ NOTE TO THE DEVELOPER ************************ * SEE <proj_root>/src/include/symtab.h for description of various classes, members, methods, etc. * Search "TODO" for things to do. * Search "ASSUMPTIONS" for assumptions. * Execution using: g++ [-DSYMTEST] [-DSYMDEBUG] symtab.c...
/* * Copyright (c) 2015, 2018, Oracle and/or its affiliates. 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 General Public License version 2 only, as * published by the Free ...
#include "alfe/main.h" #include "alfe/cga.h" #include "alfe/config_file.h" // Quadrants: // 01 // 32 template<class T> class BlockT; typedef BlockT<void> Block; template<class T> class NodeT; typedef NodeT<void> Node; template<class T> class NodeT { public: NodeT() { for (int q = 0; q < 4; ++q) ...
// Copyright(c) 2013-2019, mCODE A/S // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditio...
/* Copyright 2016-2020 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
// // planner.cpp // CarND-Path-Planning-Project // // Created by Gleb on 9/24/19. // Copyright © 2019 Gleb. All rights reserved. // #include "planner.hpp" Planner::Planner() {} Planner::~Planner() {} #define MIN_DETECTED_DISTANCE 50.0f #define MIN_FOLLOWING_DISTANCE 40.0f // Calculate the lane speed for a plan...
// get-computer-modern-widths.cpp Copyright (C) 2015-2020 Codemist // This extracts just enough font information from a bunch of *.tfm // files that I can do the processing of the fonts that the DVI format // requires. // // The font metrics used here are for the BaKoMa free fonts, which // include the ones I...
/// Filename: MFH264RoundTrip.cpp /// /// Description: /// This file contains a C++ console application that captures the real-time video stream from a webcam to an H264 byte array /// using the H264 encoder Media Foundation Transform (MFT) and then uses the reverse H264 decoder MFT transform to get back /// the raw i...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 2021, by the GROMACS development team, led by * <NAME>, <NAME>, <NAME>, and <NAME>, * and including many others, as listed in the AUTHORS file in the * top-level source directory and at http://www.gromacs.org. * * GROMACS is f...
// // Created by smalls on 2021/8/18. // typedef unsigned int astcenc_operation; /** @brief Stage bit indicating we need to load an uncompressed image. */ static const unsigned int ASTCENC_STAGE_LD_NCOMP = 1 << 2; /** @brief Stage bit indicating we need compress an image. */ static const unsigned int ASTCENC_STAGE_C...
/* * ----------------------------------------------------------------- * Programmer(s): <NAME> @ LLNL * ----------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright (c) 2002-2020, Lawrence Livermore National Security * and Southern Methodist University. * All rights re...
/* * LEGAL NOTICE * This computer software was prepared by Battelle Memorial Institute, * hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830 * with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE * CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY * LIABILITY FOR THE ...
/* * Copyright (c) 2016 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: * * 1. Redistributions of source code must retain the above copyright * notice, ...
#include <stdlib.h> #include <GL/glut.h> #include <iostream> #include <stdio.h> #include <time.h> #include <math.h> #include <windows.h> //__________________________________________ //Turning of the scene with the right mouse button //_________________________________________ //width und height of the win...
#include <unordered_map> #include <memory> #include <iterator> #include <Eigen/Core> #include <Eigen/LU> #include "./parser.hpp" #include "./lattice.hpp" #include "./site.hpp" #include "./search_equiv_sites.hpp" #include "./myhash.hpp" #include "./myindex.hpp" #include "./input.hpp" #include "./metroconf.hpp" using al...
//=--ConstraintBuilder.cpp----------------------------------------*- 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 // //===---------------------------...
// vec_store.cc // Copyright 2019 <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 // // Unless required by applicable law or agr...
//********************************************************* // // Copyright (c) Microsoft. All rights reserved. // This code is licensed under the MIT License (MIT). // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PA...
#include "Isis.h" //ISIS libraries #include "BoxcarCachingAlgorithm.h" #include "Brick.h" #include "CubeAttribute.h" #include "FileName.h" #include "IException.h" #include "iTime.h" #include "OriginalLabel.h" #include "Message.h" #include "ProcessImportPds.h" #include "ProcessByLine.h" #include "Pvl.h" #include "PvlGr...
#include <Arduino.h> #include "motor_ctrl.h" //#define SmDecN18 //#define DEBUG // シリアルにデバックメッセージを出力するときは // を外す //#define ONBRAKEPWM // ONブレーキタイプのモータデコーダを使用するときは // を外す MP6513用 byte gDirection = 128; int gSpeed_calculated = 0; int gPWMRef = 0; MOTOR_PARAM gParam; //------------------------------...
#include "RotLib.h" #include "Exception.h" using namespace std; RotLib::RotLib(PRECISION p, STORAGE s, int b, bool ph) : lib_p(p), lib_s(s), basis(b), phase(ph) { int N = p -> base; if (N != 2 && N != 10) { cout << "non base-2 or base-10 target precision." << endl; exit(1); } } RotLib::RotLib(const char* file...
// vscpcmd.cpp // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version // 2 of the License, or (at your option) any later version. // // This file is part of the VSCP (https://www.v...
// Copyright (c) 2021, Haven Protocol // Portions copyright (c) 2014-2019, 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 re...
// -*- C++ -*- // // Package: HiJetBackground/HiFJGridEmptyAreaCalculator // Class: HiFJGridEmptyAreaCalculator // Based on: fastjet/tools/GridMedianBackgroundEstimator // // Original Author: <NAME> // Created: Wed Mar 16 14:00:04 CET 2016 // // #include "RecoHI/HiJetAlgos/plugins/HiFJGridEmptyAre...
// Copyright (c) 2012-2015 <NAME> // All Rights Reserved. // // This file is part of TurboParser 2.3. // // TurboParser 2.3 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 Lice...