text
stringlengths
3.08k
22k
/* This file is part of Akonadi EWS Resource Copyright (C) 2015-2017 <NAME> <<EMAIL>> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or ...
/* * LeveldbWriter.cpp * * Created on: 2015-04-02 * Author: <NAME> */ #include <iostream> #include "leveldb-writer.h" using std::cerr; using std::cout; #include "utilities.h" const int WRITING_LIMIT = 1000; namespace MostCV { LeveldbWriter::LeveldbWriter(string db_path_, int resize_height_, int resize_...
#include <algorithm> #include <array> #include <atomic> #include <boost/algorithm/hex.hpp> #include <boost/asio.hpp> #include <boost/bind.hpp> #include <boost/filesystem.hpp> #include <boost/range/iterator_range.hpp> #include <boost/uuid/detail/md5.hpp> #include <connection.hpp> #include <cstdio> #include <cxxopts.hpp>...
// Copyright 2017 The Fuchsia 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/virtualization/bin/vmm/arch/x64/acpi.h" #include <fcntl.h> #include <lib/syslog/cpp/macros.h> #include <limits.h> #include <stdint.h> #inclu...
// // rfnoc-hls-neuralnet: Vivado HLS code for neural-net building blocks // // Copyright (C) 2017 <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 3 of...
/* Copyright (c) <2003-2011> <<NAME>, Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, *...
#include "WebSocketsClient.h" #include "PN532Instance.h" #include "JSONRPC/JSONRPC.h" #include "Service.h" #include "Utils.h" #include "esp_log.h" #include <thread> #include "Arduino.h" #include "network.h" #include "driver/uart.h" #if CONFIG_USE_MDNS #include <ESPmDNS.h> #endif static const char* TAG = "main"; usin...
/* * omnis.xcomp.widget * =================== * * oDropDown.cpp * Source for our dropdown list object * * Omnis' drop down build in dropdown list now supports styled text but it seems lacking * I've also needed a proper multi select dropdown list control for awhile where we * can show which lines are se...
/* * EDDL Library - European Distributed Deep Learning Library. * Version: 1.0 * copyright (c) 2021, Universitat Politècnica de València (UPV), PRHLT Research Centre * Date: November 2021 * Author: PRHLT Research Centre, UPV, (<EMAIL>), (<EMAIL>) * All rights reserved */ #include <cstdio> #include <cstdlib> #include <...
#include "Telemetry.h" #include "../CaCommon/WixString.h" #include <Winhttp.h> #pragma comment (lib, "Winhttp.lib") #define TELEMETRY_QUERY L"SELECT `Id`, `Url`, `Page`, `Method`, `Data`, `Flags`, `Condition` FROM `PSW_Telemetry`" enum TelemetryQuery { Id=1, Url=2, Page = 3, Method=4, Data=5, Flags=6, Conditio...
/* * main.cpp * * Created on: 19.02.2022 * Author: Noyavy */ #include <ncurses.h> #include "main.h" #include "Player.h" #include "Room.h" #include "Interactable.h" #include "Text.h" #include "Item.h" #include "Portal.h" #include <iostream> using namespace std; int roomx; int roomy; Play...
/* Copyright (c) Citrix Systems Inc. * All rights reserved. * * Redistribution and use in source and binary forms, * with or without modification, are permitted provided * that the following conditions are met: * * * Redistributions of source code must retain the above * copyright notice, this list of ...
/* Copyright (c) 2007 <NAME>. 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 require...
#include <cstring> #include <stdexcept> #include "mapper.h" #include "events.h" #include "ppu.h" #include "apu.h" #include "pad.h" Mapper::Mapper() :mNo(0), mERAM(0), mPROM(0){ mPROM = new uint8_t[0x8000]; // 32k bytes } Mapper::~Mapper() { if (mPROM) { delete[] mPROM; } } void Mapper::setWRAM(uint8_t* base) { ...
/* m3pi Library * * Copyright (c) 2007-2010 cstyles * * 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, modif...
#include "base64.h" #include <cstdint> #include <iostream> #include <vector> #include "../leanify.h" namespace { int Base64Decode(const uint8_t* in, size_t in_len, uint8_t* out, size_t* out_len) { static const uint8_t d[] = { 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 64, 66, 66, 64, 66, 66, 66, 66, 66, 66, 66, ...
/* * * * * * * * * * * * * * * * * * * * * @author: <NAME> * @date: 2020-12-06 14:59:57 * @description: * /Users/jackbai/Desktop/CGR12/c.cpp * * @notes: * g++ -fsanitize=address -ftrapv c.cpp * * * * * * * * * * * * * * * * * */ #include <bits/stdc++.h> #define F first #define S ...
#include "RigidbodyVolume.h" #include "Compare.h" #include "FixedFunctionPrimitives.h" void RigidbodyVolume::ApplyForces() { forces = GRAVITY_CONST * mass; } #ifndef LINEAR_ONLY void RigidbodyVolume::AddRotationalImpulse(const vec3& point, const vec3& impulse) { vec3 centerOfMass = position; vec3 torque = Cross(p...
/* * UNIVERSIDADE ESTADUAL DE FEIRA DE SANTANA - UEFS * Engenharia da Computação * TEC431 - Computação Gráfica * * Trabalho Final - 2019.2E * * Alunos: * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * ------------------------------------------------------------------------------- * * ===================...
/**------------------------------------------------------------------------- @file mag_bmm150.cpp @brief Implementation of BOSCH BMM150 mag sensor @author <NAME> @date Aug. 23, 2019 @license MIT License Copyright (c) 2019 I-SYST inc. All rights reserved. Permission is hereby granted, free of charge, to any person...
/** * @file files.cpp * @brief File access wrappers * @author <NAME> * @note Copyright (c) 2005-2008 <NAME> - http://untidy.net/ * * Programmer's Notepad 2 : The license file (license.[txt|html]) describes * the conditions under which this source may be modified / distributed. */ #include "stdafx.h" #include ...
#include<stdio.h> #include<algorithm> #include<iostream> #include<string.h> #define ll long long #define mmset(a,b) memset(a,b,sizeof(a)) #define MAXN 9999 #define MAXSIZE 1000 using namespace std; const int N = 1005; class BigNum { private: int a[MAXSIZE]; //可以控制大数的位数 int len; public: BigNum() { ...
/* * main.c : main function of straight * * coded by H.Banno 1996/12/25 * coded by H.Banno 1996/12/25 * * modified by <NAME> 2001/2/12 * V30k18 (matlab) * * modified by <NAME> from 2007 to 2010 * * STRAIGHT Synthesis applied to HMM Speech Sy...
/* Copyright 2021 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, a...
#include <rawkit/rawkit.h> #include "glm/glm.hpp" #include "glm/gtx/compatibility.hpp" using namespace glm; #define TAU 6.2831853 const uint32_t grid_diameter = 16; #define occluder_list_len (2 * grid_diameter) #define volume_len (grid_diameter * grid_diameter) uint8_t volume[volume_len]; const vec2 grid_dims = {grid...
/** * 文字列操作関数. */ #include "StringUtil.h" #if _WINDOWS #include "windows.h" #endif #undef max #undef min #include <string> #include <sstream> #include <algorithm> #include <vector> /** * パスのセパレータを取得. */ const std::string StringUtil::getFileSeparator () { #if _WINDOWS return "\\"; #else return "/"; #endif } ...
/* * Name: XYZtoCorColorTemp.c * * Author: <NAME> * * Copyright (c) 2003 <NAME>. All rights reserved. * * Input: xyz = pointer to the input array of X, Y and Z color components (in that order). * temp = pointer to where the computed correlated color temperature should be plac...
/*********************************************************************** * Tutorial: Inference on the Sum-Prod-Semiring (marginalization) * Author: <NAME> * Date: 09.07.2014 * Dependencies: None * * Description: * ------------ * This Example construct a model and find the labeling with the low...
#include "join_verification.hpp" #include "resolve_type.hpp" #include "type_comparison.hpp" namespace { template <typename T> std::vector<T> concatenate(const std::vector<T>& l, const std::vector<T>& r) { auto result = l; result.insert(result.end(), r.begin(), r.end()); return result; } } // namespace names...
/* * Copyright (C) 2010 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...
/**************************************************************************** ** ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees hold...
#include "spatial_utils.h" #include "dali/utils/make_message.h" #include "dali/utils/assert2.h" #include "dali/utils/print_utils.h" namespace { int int_ceil(int numerator, int denominator) { return (numerator + denominator - 1) / denominator; } struct DataFormatDimMapping { int n_dim; ...
/************************************************************************ Frame-to-frame distance functions. Since the code for computing frame-to-frame distances is reasonably large, and not always necessary, I've placed it here in a separate file. Copyright (C) 1998 <NAME>. See "COPYING.txt" for details. ...
// $Id$ // // lasblock generates block output for las2oci to store lidar data in OPC tables // // // (C) Copyright <NAME> 2010, <EMAIL> // // Distributed under the BSD License // (See accompanying file LICENSE.txt or copy at // http://www.opensource.org/licenses/bsd-license.php) // #include <liblas/liblas.hpp> #include...
#include <cmath> #include <iostream> #include <sstream> #include <stdlib.h> #include <string> #include "ace/FILE_Connector.h" #include "IO/MessageManager.h" #include "IO/Writers.h" #include "Messages/RadarConfig.h" #include "Messages/Video.h" #include "Utils/CmdLineArgs.h" #include "Utils/Utils.h" using namespace Si...
#include <windows.h> #include <vector> #include <memory> #include <numeric> #include "../../common.h" #include "pack.h" #include "page.h" void Log(LPCWSTR format, ...); std::vector<uint64_t> address_chain(const char *str); void WaitAndThenCleanup(); extern "C" { extern uint8_t MeasurementChain_Start; extern uint8...
#include <iostream> #include <arpa/inet.h> #include <openssl/err.h> #include <cstring> #include <ctime> #include "server.h" #include "util.h" using namespace std; Server* server; /********************** helper functions *********************/ void handleWrapper(int clientFD, sockaddr_in* info) { server->handle...
/* Copyright (C) 2020 <NAME> Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. */ #include <pollster/socket.h> #include <pollster/pollster.h> #include <comm...
/* * Copyright (c) 2017 <NAME> * * This file is part of the Realms Of Steel. * For conditions of distribution and use, see copyright details in the LICENSE file. */ #include <application/Logger.h> #include "AssimpIOSystem.h" #include "AssimpSceneLoader.h" ros::AssimpSceneLoader::AssimpSceneLoader() : importer...
#include "fds132text.h" fdsScreen::fdsScreen(){ first = NULL; //make sure it's a null pointer } void fdsScreen::setPins(){ // using the defaults from the example setup setPins(10,13,11,7,6,5,9,2000); } void fdsScreen::setPins(int p_strobePin, int p_clockPin, int p_dataPin, int p_row_c, int p_row_b, int p...
/* Written by Dr <NAME> (<EMAIL>) for the OpenSSL * project 2006. */ /* ==================================================================== * Copyright (c) 2006 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted p...
#include "opencv2/objdetect.hpp" #include "opencv2/highgui.hpp" #include "opencv2/imgproc.hpp" #include "opencv2/videoio.hpp" #include <iostream> using namespace std; using namespace cv; static void help() { cout << "\nThis program demonstrates the use of cv::CascadeClassifier class to detect objects (Face + eyes...
/* * Copyright (C) 2020-2021 German Aerospace Center (DLR-SC) * * Authors: <NAME> * * Contact: <NAME> <<EMAIL>> * * 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/...
//D:\Temp2\Genome\ref48 D:\Temp2\Genome\ref48sorted D:\Temp2\Genome\48.log 48 1000000 6 #include <fstream> //#include <iostream> //#include <chrono> #include <omp.h> #define nCut 20 #define nFiles 256 int findPosition(char* text, int n, char sym); class C2S { public: C2S(); ~C2S(); char i...
#include "gpgpu/demos/ray_lut.hh" #include "gpgpu/import/load_kernel.hh" #include "gpgpu/interplatform/cl_liegroups.hh" #include "gpgpu/wrappers/create_context.hh" #include "gpgpu/wrappers/errors.hh" #include "gpgpu/wrappers/image_read_write.hh" #include "util/timing.hh" #include "viewer/interaction/ui2d.hh" #include...
// jhcListVSrc.cpp : makes a video from a file containing a list of names // // Written by <NAME>, <EMAIL> // /////////////////////////////////////////////////////////////////////////// // // Copyright 1999-2019 IBM Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use thi...
// // tree.cpp // Agile_RRT // // Created by <NAME>. // Copyright (c) 2015 <NAME>. Refer to license.txt // #include "tree.h" void Tree::PrintTree(const treenode_ & node, double dt, const string & name, ostream * stream) { node.vert->PrintEdgeTraj(dt, name, stream); for (vector< treenode_ *>::const_iterator i...
/* * Copyright 2010 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrGpu.h" #include "GrContext.h" #include "GrDrawTargetCaps.h" #include "GrGpuResourcePriv.h" #include "GrIndexBuffer.h" #include "GrResourceCache.h" #include "GrR...
/* SDL_Weather_80422.cpp - Library for SwitchDoc Labs WeatherRack. SparkFun Weather Station Meters Argent Data Systems Created by SwitchDoc Labs July 27, 2014. Released into the public domain. Version 1.1 - updated constants to suppport 3.3V Version 1.6 - Support for ADS1015 in WeatherPiArduino Board...
#include "dsdemo.h" #include <iomanip> #include <opencv2\opencv.hpp> #include <opencv2\viz.hpp> #include "DSMatcher.h" #include "DSFrame.h" void create_mask(cv::Mat hsv, cv::Mat &mask, int hue_min, int hue_max, int sat_min, int sat_max, int val_min, int val_max, int morph_size){ cv::inRange(hsv, cv::Scalar(hue_mi...
//------ pVarListAlarm.cpp ----------------------------------------------------- #include "precHeader.h" #include <stdlib.h> #include <stdio.h> //---------------------------------------------------------------------------- #include "pVarListAlarm.h" #include "p_basebody.h" #include "mainClient.h" #include "p_util.h" #i...
#include <signal.h> //#include <string.h> //#include <time.h> //#include "sensor.c" //#include "10DOF.h" //#include "bmp180.h" #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <unistd.h> #include <fcntl.h> #include <math.h> #include <linux/i2c-dev.h> #include "L3GD20_GYRO.h" #include "LSM303_U.h" ...
/** * 使用Dinic算法寻找s-t最小割 * 注意要卡常,由于n = 150, m有几千级别,图比较密 * 因此,注意if的短路,先判定是否是分层图的边 * 然后判定是否可走,因为边数很多的情况下 * 一般只有m / 2条边为0流量 * 而绝大部分边都不在分层图上。该优化加速33% * 在递归时去掉所有自环。该优化加速22% * 使用前向弧优化。该优化加速45% */ #define NDEBUG #include <cassert> #include <cstdio> #include <cstring> #include <climits> #include <queue> #include <ve...
/* This file is part of PyMesh. Copyright (c) 2015 by <NAME> */ #include "Assembler2D.h" #include "ZLazyPriorityQueue.h" #include <iostream> #include <map> Assembler2D::Assembler2D() : m_D(3,3), m_C(3,3) { m_C << 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 2.0; } void Assembler2D::precomputeIsot...
#include "StdAfx.h" #include "nttHoughGreen.h" #include "cv.h" #include "highgui.h" #include "nttUtil.h" // ----- for computation ----- #define DOUBLE_PRECISION (7) #define PI (3.1415927) // 3.1415926535897932384626433832795 #define HALF_PI (1.5707963) // 1.5707963267948966192313216916398 // ----------------...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright 1991- The GROMACS Authors * and the project initiators <NAME>, <NAME> and <NAME>. * Consult the AUTHORS/COPYING files and https://www.gromacs.org for details. * * GROMACS is free software; you can redistribute it and/or * modify i...
// -*- mode: cpp; indent-tabs-mode: nil; c-basic-offset: 2 -*- // // This file is part of Genie // // Copyright 2021 The Board of Trustees of the Leland Stanford Junior University // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. //...
/* * Copyright (C) 2014 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 <iostream> #include <vector> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <pthread.h> #include <map> #include <fstream> #include <experimental/algorithm> #include <torch/torch.h> #include "benchmark.h" #include "builder.h" #include "command_line.h" // #include "graph.h...
/* Copyright (c) 2011, Los Alamos National Security, LLC All rights reserved. Copyright 2011. Los Alamos National Security, LLC. This software was produced under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National Laboratory (LANL), which is operated by Los Alamos National Security, LLC for the U.S. Depa...
#include <stdio.h> #include <string.h> #include <string> // Linux headers #include <fcntl.h> // Contains file controls like O_RDWR #include <errno.h> // Error integer and strerror() function // https://gitlab.com/Teuniz/RS-232/-/tree/master #ifdef _WIN32 #include <Windows.h> #include <assert.h> #endif #define RS232...
// // Created by nick on 31/03/16. // #include "ga_utils.h" #include <cmath> #include <iostream> #include "dubins.h" double find_distance(Point2D a, Point2D b) { return sqrt(pow(a.first - b.first, 2) + pow(a.second - b.second, 2)); } std::vector<size_t> get_population_sample(size_t pop_size, int samples, std::mt19...
//FAMOS headers #include "FastSimulation/CaloGeometryTools/interface/BaseCrystal.h" // Data Formats #include "DataFormats/EcalDetId/interface/EcalSubdetector.h" typedef ROOT::Math::Plane3D::Point Point; BaseCrystal::BaseCrystal(const DetId &cell) : cellid_(cell) { subdetn_ = cellid_.subdetId(); } void BaseCrystal::...
#include"jumpnrun/mover/block/block.h" #include"jumpnrun/mover/effect/Effect.h" #include"jumpnrun/mover/effect/Circle.h" #include"jumpnrun/mover/Barrier.h" #include"jumpnrun/mover/bullet/Bullet.h" #include"jumpnrun/system/Parmanent.h" #include"jumpnrun/spell/Spell.h" #include"jumpnrun/GRAPHICS.h" using namespace jnr; u...
#include "kernlink.hpp" #include "acpi.hpp" #include "syscall.hpp" #include "interrupts.hpp" #include "process.hpp" #include "memop.hpp" #include "rand.hpp" static inline bool streq(const char* a, const char* b) { for (;; a++, b++) { if (*a != *b) return false; if (*a == 0) return true; } } void KernelL...
#include "cMesh.h" #include <glm/glm.hpp> // cross product (I hope) cMesh::cMesh() { this->numberOfVertices = 0; this->numberOfTriangles = 0; // this->maxExtent = 0.0f; this->scaleForUnitBBox = 1.0f; return; } cMesh::~cMesh() { return; } void cMesh::CalculateExtents(void) { // Assume 1st vertex is both m...
/* Nvm.cpp - Library for saving named strings in EEPROM (non-volatile memory) Created by <NAME> 2017 April 17, Updated comments 2017 Oct 29, Allows len==0 2020 March 07 */ #include <Arduino.h> #include <EEPROM.h> #include "Nvm.h" // The initial vector for the checksum (of the fields). #define NVM_SUMINIT 0xAA ...
/* * MIT License * * Copyright (c) 2019 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify,...
//+--------------------------------------------------------------------------- // // Microsoft Forms // Copyright (C) Microsoft Corporation, 1999 // // File: window2.cxx // // Contents: Further implementation of CWindow // //--------------------------------------------------------------------------...
/*(Modified) MIT License Copyright (c) 2020 <NAME> and other contributors Portions of this repo contains sourcecode either inspired by or copied from published code from Adafruit Industires, from thisisant.com and from Nordic Semiconductor ASA. The main inputs were: * Adafruit_nRF52_Arduino repo and various public ...
/* * 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 ...
////////////////////////////////////////////////////////////////////////////// // This file is part of the PharaohStroy MMORPG client // // Copyright ?2016-2017 <NAME> // // // /...
#define MAHI_GUI_NO_CONSOLE #include <Mahi/Gui.hpp> #include <Mahi/Util.hpp> #include <Mahi/Com.hpp> #include <thread> #include <mutex> #include <atomic> using namespace mahi::gui; using namespace mahi::util; using namespace mahi::com; struct ScrollingData { int MaxSize = 1000; int Offset = 0; ImVector<I...
/***************************************************************************** * * Copyright 2016 <NAME>. 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 * * ...
#include "FHE/FFT_Data.h" #include "FHE/FFT.h" #include "FHE/Subroutines.h" void FFT_Data::assign(const FFT_Data& FFTD) { prData=FFTD.prData; R=FFTD.R; root=FFTD.root; twop=FFTD.twop; two_root=FFTD.two_root; powers=FFTD.powers; powers_i=FFTD.powers_i; b=FFTD.b; iphi=FFTD.iphi; } void FFT_Dat...
#include "fmult.hpp" #include "half.hpp" #include <hls/streaming.hpp> #include <iostream> #include <limits> #include <math.h> #include <string> #define StrT const char * using hls::FIFO; using half_float::half; // Parse bits from float, double, or half. struct FloatBits { ap_uint<1> S; ap_uint<8> E; ap...
#include <iostream> #include <WS2tcpip.h> #include <string> #include <sstream> #include <fstream> #include <stdlib.h> #include <vector> #include <variant> #include <WinSock2.h> #include "Message.cpp" #include "Command.h" #pragma comment (lib, "ws2_32.lib") std::vector<std::string> splitAt(std::string content, char ...
#include "stdafx.h" #include "CudaHelper.h" #include "Utils.h" #include "VectorField.h" #include "Activity.h" #include "VectorFieldInfo.h" #include "SteamlinesLineActivity.h" #include "GlyphsActivity.h" namespace mf { // UI window stuff int screenWidth = 1024; int screenHeight = 768; bool wireframe = false; b...
// Copyright (c) 1995 - 1997 Microsoft Corporation. All Rights Reserved. // Disable some of the sillier level 4 warnings #pragma warning(disable: 4097 4511 4512 4514 4705) //#include <windows.h> already included in streams.h #include <streams.h> // Disable some of the sillier level 4 warnings AGAIN becau...
//////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2017 christmann informationstechnik + medien GmbH & Co. KG // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to ...
#include <torch/torch.h> #include <torch/script.h> #include <torch/autograd.h> #include <torch/utils.h> #include <iostream> #include <unistd.h> #include <iomanip> #include "../fashion.h" #include "../utils.h" #include "../matplotlibcpp.h" namespace plt = matplotlibcpp; using torch::indexing::Slice; using torch::ind...
#include <Adafruit_GFX.h> #include <Adafruit_SharpMem.h> #include "images.cpp" #include "Input.h" //#include "Board.h" // any pins can be used #define SHARP_SCK 13 #define SHARP_MOSI 11 // Pin 30 for breadboard, Pin 10 for DMG-1 version #define SHARP_SS 10 Adafruit_SharpMem display(SHARP_SCK, SHARP_MOSI, SHARP_S...
#include <stdio.h> #include <cstdlib> #include <signal.h> #include "sgx_urts.h" #include "enclave_u.h" #include "base64_utils.h" #define SAFE_FREE( ptr ) { if ( ( NULL != ptr ) && ( nullptr != ptr ) ) { free( ptr ); ( ptr ) = NULL; } } #define ENCLAVE_NAME "enclave.signed.so" #define AES_GCM_IV_SIZE 12 #define AES_C...
/* * test_vec_matr_3x3.cpp * * Author: flamingo * E-mail: <EMAIL> */ #include <gtest/gtest.h> #include "vec3.h" #include "m33.h" using namespace math; // Vectors TEST(Vector3, Constructors) { vec3 a, b(1, 5, 8); EXPECT_TRUE(a == vec3(0, 0, 0)); EXPECT_TRUE(b == vec3(1, 5, 8)); } TEST(Vec...
#pragma once #include <string_view> #include <cstring> #include <cinttypes> #include <sstream> #include <cstdio> #include <cassert> #include <vector> #include "../include/random.hh" template<typename Int> Int byteswap(Int in) { switch (sizeof(Int)) { case 1: return in; case 2: return __builtin_...
/* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT. * See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details. * Author(s): <NAME> * * Copyright (C) 2017 Inria * * Modification(s): * - YYYY/MM Author: Descriptio...
/* NOTE: - all algorithms are verified with helper functions: assert(), IsSorted(), validate_max_heap(). OBSERVATIONS: - both build heap methods run in linear time - in the average case, we can observe that the bottom up method has a lower multiplicative constant (4.76) than the top-down method (6.62) - a...
/* apps/sess_id.c */ /* Copyright (C) 1995-1998 <NAME> (<EMAIL>) * All rights reserved. * * This package is an SSL implementation written * by <NAME> (<EMAIL>). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as * the ...
/* Operators Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL. Amanzi is released under the three-clause BSD License. The terms of use and "as is" disclaimer for this license are provided in the top-level COPYRIGHT file. Author: <NAME> (<EMAIL>) */ #include <cstdlib> #include <cmath> #inc...
// ============================================================================= // === GPUQREngine/Source/Scheduler.cpp ======================================== // ============================================================================= // // This file contains code to construct, initialize, and destroy the Sched...
#include <_type/type.program.h> #include <_type/type.program.lua.h> #include <_type/type.program.c.h> #include <_type/type.tokenizer.h> #include <_controller/controller.execution.h> #include <_controller/controller.filesystem.h> #include <_controller/controller.registry.h> #include <_controller/controller.timer....
/* Source for x86 emulator IdaPro plugin Copyright (c) 2005, 2006 <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) ...
#include <iostream> #include <vector> #include <string> #include <sstream> #include <algorithm> #include <random> using std::vector; using std::string; using std::cout; namespace utils{ template <typename T> class BinTree { struct Node { T value; Node *left,*right; Node() : left(nullptr),ri...
// Copyright 2018 The Amber 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...
/******************************************************************** * File: linear_fasta.cc * Copyright (C) 2012, 2013 <NAME> * * Description: FISTA algorithm for sparse binary linear classifiers with L1-L2 regularization * ********************************************************************/ #include "line...
// 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 "app/resource_bundle.h" #include <gtk/gtk.h> #include "app/app_paths.h" #include "app/gfx/font.h" #include "app/l10n_util.h" #include ...
/* * Copyright (c) 2013-2017, <NAME> <<EMAIL>>, <NAME> for * Adafruit <<EMAIL>> * All rights reserved. * * This is mostly a re-mix of <NAME>s excellent Free-DAP code - we just * put both halves into one library and wrapped it up in Arduino compatibility * * Redistribution and use in source and binary forms, wit...
/* PROJECT: 3Dmov AUTHORS: <NAME> COPYRIGHT: 2009 Haiku Inc DESCRIPTION: Haiku version of the famous BeInc demo 3Dmov. TODO: There is a bug in Haiku which doesn't allow a 2nd BGLView to be created. Originally I tried AddChild(new BGLView), however nothing would be drawn in the view. On Zeta,...
#include "../include/libaqmd3/cstzs1context.h" #include "../include/libaqmd3/digitizer.h" #include <vector> #include <tuple> #include <exception> #include <fstream> #include <iostream> using std::cout; using std::cerr; #include <limits> #define variable_m_t_a void CstZs1Context::stop() { StreamingContext::stop(); ...
#include "ukf.h" #include "tools.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter */ UKF::UKF() { // if this is false, laser measurements will be ignored (except during init) use_lase...