text
stringlengths
3.08k
12.5k
/// Source : https://leetcode.com/problems/sentence-similarity-ii/description/ /// Author : liuyubobobo /// Time : 2017-11-26 #include <iostream> #include <vector> #include <string> #include <unordered_map> #include <unordered_set> using namespace std; /// Using DFS /// Time Complexity: O(len(words)^2) /// Space C...
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif #include "RThetaPhiCS.H" #include "NamespaceHeader.H" // Constructor RTheta...
/* * BL22B_FFT_Integration.cpp * * Created on: 17 Apr 2014 * Author: qvr31998 */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include <epicsThread.h> #include <epicsString.h> #include <epicsTimer.h> #include <epicsMutex.h> #include <epicsEvent.h> #include <epicsMessageQueue.h> #include <cantP...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2014 University of Washington * * 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 pro...
/***************************************************************************************** * * * OpenSpace * * ...
#include <iostream> using namespace std; #include <stdio.h> #define OTL_ODBC #define OTL_STL // #define OTL_ODBC_UNIX // uncomment this line if UnixODBC is used #undef UNICODE #undef _UNICODE #include <ccxx/otlv4.h> // include the OTL 4 header file otl_connect db; // connect object void insert(void) // insert rows i...
#include "Directories.h" #include "Real_Time_Input.h" #include "Spread_Burst.h" #include "VObject.h" #include "Soldier_Control.h" #include "Weapons.h" #include "Cursor_Control.h" #include "Soldier_Find.h" #include "Isometric_Utils.h" #include "RenderWorld.h" #include "Render_Dirty.h" #include "VSurface.h" #include "UIL...
#define CL_HPP_CL_1_2_DEFAULT_BUILD #define CL_HPP_TARGET_OPENCL_VERSION 120 #define CL_HPP_MINIMUM_OPENCL_VERSION 120 #include "host_util.h" #include <cstdio> #include <cstdlib> #include <cstdint> #include <algorithm> #include <stdexcept> #include <torch/torch.h> #include <torch/script.h> #include <tests/util.h> ...
/* Copyright 2013 <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 agreed to in writing,...
#include "display_samples.h" #include "baro_sample.h" #include "print_utils.h" #include "rotating_samples.h" DisplaySamples::DisplaySamples(uint32_t p, uint32_t length) : period_(p) { if (length < kGraphPxLength) { size_ = length; } else { size_ = length; } first_ = 0; } int divRoundCl...
#include "solution_line.h" SolutionLine::SolutionLine(){} SolutionLine::SolutionLine(unsigned int IN_SampleSet_Start, unsigned int IN_SampleSet_End, unsigned int IN_SampleSize, bool IN_SolutionState, double IN_Mean, double IN_Delta_LowerBound, double IN_Delta_UpperBound, double IN_Delta_Re...
/************************************************************************* This file was copied and modified from the Spike ISA Simulator project: https://github.com/riscv/riscv-isa-sim Copyright (c) 2010-2017, The Regents of the University of California (Regents). All Rights Reserved. Redistribution and use ...
#include "L1Trigger/L1TMuonEndCap/interface/MicroGMTConverter.h" MicroGMTConverter::MicroGMTConverter() {} MicroGMTConverter::~MicroGMTConverter() {} void MicroGMTConverter::convert(const int global_event_BX, const EMTFTrack& in_track, l1t::RegionalMuon...
/* Copyright (c) 2010 - 2021 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 in the Software without restriction, including without limitation the rights to use, copy, modify, mer...
// http://lgecodejam.com // lge code jam June, 2014 // problem.3 // <EMAIL> #if defined _EXTERNAL_DEBUGGER && defined _DEBUG #include <trace/trace.h> #else #define trace printf #endif #ifdef WIN32 #include <intrin.h> #define popcount(x) __popcnt(x) #else #define popcount(x) __builtin_popcount(x) #...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * 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 "VolumetricClouds.h" VolumetricClouds::VolumetricClouds(int SW, int SH, Camera * cam): SCR_WIDTH(SW), SCR_HEIGHT(SH), camera(cam) { volumetricCloudsShader = new ScreenQuad("shaders/volumetric_clouds.frag"); ppShader = new ScreenQuad("shaders/clouds_post.frag"); copyShader = new ScreenQuad("shaders/copyFr...
/*Copyright 2018 <NAME>. All Rights Reserved. Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version...
#include<bits/stdc++.h> using namespace std; string to_string(string s) { return '"' + s + '"'; } string to_string(const char * s) { return to_string(string(s)); } template < typename A, typename B > string to_string(pair <A, B> p) { return "(" + to_string(p.first) + ", " + to_string(p.second) + ")"; } template...
#include <fstream> #include <iostream> #include <vector> #include <functional> #include <filesystem> #include <optional> #include <tclap/CmdLine.h> #include <hypergraph/hypergraph.hpp> #include <hypergraph/certificate.hpp> #include <hypergraph/order.hpp> #include "builder.hpp" /** * Parses command line arguments. ...
/** Copyright (c) Audi Autonomous Driving Cup. 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 conditions and th...
#include "MSLayersAtAngle.h" #include "RecoTracker/TkMSParametrization/interface/PixelRecoLineRZ.h" #include "DataFormats/Math/interface/approx_log.h" using namespace std; namespace { template <class T> inline T sqr( T t) {return t*t;} } void MSLayersAtAngle::init() { std::sort(theLayers.begin(), theLayers.en...
#include "core.h" #include "uart.h" #include "encoding.h" //#include "switches.h" volatile uint32_t crashhint = 0; uint32_t seconds = 1; void software_interrupt() { uint32_t at = read_csr(mtval); uint32_t cause = read_csr(mcause); // This is an illegal instruction exception // If cause&1==0 then it's an ...
/// /// @file GameObject.cpp /// @version 1.0 /// @brief This module handles vector and rotation maths /// and contains all basic game object properties #include <GameObject.h> #include <cmath> #include <glm/gtx/norm.hpp> void GameObject::moveObject(const float &_objSpeed) { anglesToAxes(); //recalcul...
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. /*============================================================================= WinRTOutputDevices.cpp: WinRT implementations of OutputDevices functions =============================================================================*/ #include "CorePrivatePC...
// Copyright 2008-2016 <NAME> (http://conradsanderson.id.au) // Copyright 2008-2016 National ICT Australia (NICTA) // // 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.or...
#include "glew/include/GL/glew.h" #include "Application.h" #include "ModuleInput.h" #include "ModuleGui.h" #include "ModuleWindow.h" #include "GuiConfig.h" #include "GuiAbout.h" #include "Gui3DObj.h" #include "GuiConsole.h" #include "GuiGameObjects.h" #include "GuiInspector.h" #include <stdio.h> //#include "json/json....
/* * Copyright 2021 The Decentralized Identity Foundation * Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://identity....
/* * Copyright (C) 2008-2010 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * * 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 ...
#include "uniform_bspline_ceres.hpp" #include <random> #include <ceres/ceres.h> #include <gtest/gtest.h> #include "test_helper.hpp" namespace { template <typename Spline_> class TestSplineEvaluator { public: explicit TestSplineEvaluator(ubs::UniformBSplineCeresEvaluator<Spline_>& spline) : spline_(spline) { ...
#pragma once #include "../../matrix_stack.hpp" namespace vcl { template <> struct matrix_stack<float,4,4> { /** Internal storage as a 1D buffer */ buffer_stack< buffer_stack<float, 4>, 4> data; /** Constructors */ matrix_stack(); matrix_stack(buffer_st...
/** * @file * @author <NAME> <<EMAIL>> * @version 1.0 * * @section LICENSE * * Copyright [2012] [<NAME>, <NAME>, <NAME> / Carnegie Mellon University] * * 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 co...
/* NAME: StripMaker_FindAdjacencies.cpp DESCRIPTION: Source for Quesa triangle strip maker. REMARKS: This triangle strip maker is based on an article by <NAME> at <http://www.codercorner.com/Strips.htm>, but is not based on his source code. COPYRIGHT: Cop...
#include "strenum.h" #include <fstream> #include <string> #include <iostream> namespace sae::cgen { void generate_strenum(std::istream& _istr, std::ostream& _ostr, const strenum_settings& _settings) { std::vector<std::string> _evals{}; std::string _str{}; while (!_istr.eof()) { std::getline(_istr, _st...
// ----------------------------------------------------------------------------------------------------- // Copyright (c) 2006-2020, <NAME> & Freie Universität Berlin // Copyright (c) 2016-2020, <NAME> & MPI für molekulare Genetik // This file may be used, modified and/or redistributed under the terms of the 3-clause B...
#include<bits/stdc++.h> // #include<unistd.h> using namespace std; #define ll long long #define ld long double #define mod 1000000007 double PI = acos(-1); #define fi first #define se second #define mp make_pair #define pb push_back #define ALL(v) v.begin(), v.end() #define ALLA(arr, sz) arr, arr + sz #define st(v) sor...
#include "CanopenTestFixture.hpp" /** * @brief Tests if actuator pdos have been published the correct amount of time and with the * Correct content * * @param msgs * @param value * @param count */ void checkActuatorPDOValues(std::vector<Message> &msgs, float value, int count); TEST_F(CanopenTest, integrationP...
/** * @file Stars.cpp * @brief NBody simulation * @author <NAME> * @copyright Copyright © 2021 <NAME> - MIT License */ //Please use fast math and o3 #include <Scene.hpp> #include <ModelLoader.hpp> #include <Data.hpp> #include <Logger.hpp> #include <glm/gtc/matrix_transform.hpp> #include <Camera/Flycam.hpp> #inclu...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/> * * Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/> * * Copyright (C) 2011 - 201...
#include "image.h" #include <stdlib.h> #include <iostream> #include <stdio.h> using namespace std; #define IT_COLOR_MAPPED 1 #define IT_RGB 2 #define IT_BW 3 #define IT_RLE_COLOR_MAPPED 9 #define IT_RLE_RGB 10 typedef unsigned char BYTE; typedef unsigned short HALFWORD; // HACK: GCC Darwin (Mac) doesn't lik...
//#undef NO_DEBUG #define DEBUG // Allow debug #define DEBUG2 #include <os> #include <virtio/virtio.hpp> #if !defined(__MACH__) #include <malloc.h> #else extern void *memalign(size_t, size_t); #endif #include <cstring> #include <cassert> /** Virtio Queue class, nested inside Virtio. */ #define ALIGN(x) (((x) + PA...
/* * Notification.cpp * * Created on: Apr 5, 2011 * Author: <NAME> <<EMAIL>> * * 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. ...
/* * unit_app.cc : part of the Mace toolkit for building distributed systems * * Copyright (c) 2012, <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: * * * Redistribu...
/* * Copyright (C) 2017 by Author: Aroudj, Samir, born in Suhl, Thueringen, Germany * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD 3-Clause license. See the License.txt file for details. */ #include "UDPSocket.h" #include "Platform/ApplicationTimer.h" #includ...
// // OpenCVHandler.cpp // OpenCVExtension // // Created by <NAME> on 24/02/12. // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // #include <iostream> #include "OpenCVHandler.h" OpenCVHandler::OpenCVHandler(FREContext freContext) { this->freContext = freContext; setDefaults(); } OpenCVHandl...
// // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in bin...
#include <glm/gtc/matrix_transform.hpp> #include "item/floor.hpp" #include "global.hpp" #include "stb_image.hpp" using namespace px; ItemInfo item::Floor::ITEM_INFO("Floor", "", 0, false, false, false); item::Floor::Floor(glm::vec3 const &pos, float width, float height, float u, float v) :...
/* * NMEASentenceZDA.cpp * * Created on: Sep 21, 2017 * Author: monte * Modifed on: Feb 22, 2020 * Author: <NAME> * Note: This is a modified version of monte's original NMEASentenceRMC.cpp */ /* * MIT License * * Copyright (c) 2018 VisualGPS, LLC * * Permission is hereby granted, fr...
/* * <EMAIL> * * Private Cloud Management Service Daemon */ #include <iostream> #include <string> #include <wordexp.h> #include <vector> #include <sstream> #include <cstring> #include "xclhal2.h" #include "common.h" #define MAX_TOKEN_LEN 32 std::string host_ip; std::string host_port; std::string mbx_switch; std:...
#include "add_non_symmetric_tree_doc_parallel.h" #include "add_bin_values.h" #include <catboost/cuda/cuda_lib/read_and_write_helpers.h> #include <catboost/cuda/models/kernel/add_model_value.cuh> namespace NKernelHost { class TComputeNonSymmetricTreeBinsKernel: public TStatelessKernel { private: TCudaBu...
// // bt_rnd_tree_node.cpp // RGBD_RF // // Created by jimmy on 2017-01-18. // Copyright (c) 2017 Nowhere Planet. All rights reserved. // #include "btrf_tree_node.hpp" BTRFTreeNode::BTRFTreeNode(int depth) { left_child_ = NULL; right_child_ = NULL; depth_ = depth; is_leaf_ = false; index_ = ...
/*============================================================================*/ #include <cstdlib> #include <nmmintrin.h> #include <sys/types.h> #include <stdexcept> #include "Image.hpp" /*============================================================================*/ using namespace Sh; /*===========================...
/* Copyright (c) 2007-2009 The Regents of the University of California. All rights reserved. Permission is hereby granted, without written agreement and without license or royalty fees, to use, copy, modify, and distribute this software and its documentation for any purpose, provided that the above copyrig...
/****************************************************************************** BSD 3-Clause License Copyright (c) 2021, <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 sou...
/*This file is part of the FEBio source code and is licensed under the MIT license listed below. See Copyright-FEBio.txt for details. Copyright (c) 2019 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 person obtaining ...
/* * Copyright © 2012, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed * under the Apache License, Version 2.0 (the "License"); * you may not use this file...
/* * sick_line_guidance_cloud_publisher implements a ros-node to convert sensor measurement data to PointCloud2 data. * Subscribes topics "/ols" and "/mls", converts the sensor data and publishes sensor positions on topic "/cloud". * * Copyright (C) 2019 Ing.-Buero Dr. <NAME>, Hildesheim * Copyright (C) 2019 SICK...
// Copyright (c) 2012 The Khronos Group Inc. // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, pub...
#include "indri/AnchorTextHarvester.hpp" #include <vector> #include <list> #include <map> #include <sstream> using namespace indri::parse; using namespace indri::api; AnchorTextHarvester::AnchorTextHarvester( const std::string &linkFilePath, const std::string& docOrderPath,...
/** * @file bc.cpp * * @copyright SPDX-FileCopyrightText: 2022 Battelle Memorial Institute * @copyright SPDX-FileCopyrightText: 2022 University of Washington * * SPDX-License-Identifier: BSD-3-Clause * * @authors * <NAME> * <NAME> * liux238 * */ static constexpr const char USAGE[] = R"(bc2.exe :...
#include <math.h> #include <uWS/uWS.h> #include <iostream> #include <string> #include "json.hpp" #include "PID.h" #include <boost/algorithm/clamp.hpp> // for convenience using nlohmann::json; using std::string; // For converting back and forth between radians and degrees. constexpr double pi() { return M_PI; } double...
/* Copyright 2016 Fixstars 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 writing, softwa...
// Copyright (c) 2021 CNES // // All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #pragma once #include <pybind11/numpy.h> #include <Eigen/Core> #include "pyinterp/detail/broadcast.hpp" #include "pyinterp/detail/geometry/box.hpp" #include "pyint...
//===- RAInstrumentation.cpp - Example code from "Writing an LLVM Pass" ---===// // // This file implements the LLVM "Range Analysis Instrumentation" pass // //===----------------------------------------------------------------------===// #include "RAInstrumentation.h" using namespace llvm; #define DEBUG_TYPE "range...
#include <iostream> #include <fstream> #include <iomanip> #include <assert.h> #include <common/term_tokenizer.hpp> #include <common/token_chars.hpp> #include <common/term_parser.hpp> #include <common/term_emitter.hpp> #include "test_home_dir.hpp" using namespace epilog::common; static void header( const std::string &...
#include "StableHeaders.h" #include "Framework.h" #include "DebugOperatorNew.h" #include "AudioPreviewEditor.h" #include "AudioSignalLabel.h" #include "OgreAssetEditorModule.h" #include "UiServiceInterface.h" #include "UiProxyWidget.h" #include "ModuleManager.h" #include "ISoundService.h" #include "AssetInterface.h" ...
/* * The MIT License (MIT) * * Copyright (c) 2020 <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,...
//$Id: ruvscomp.cpp 3127 2013-12-05 22:40:36Z jsibert $ #include "par_t_reg.h" //#include <strstream> void uvs_read(dmatrix& x, adstring& file_name, int m, ivector& jlb, ivector& jub); void rowcol_average(dmatrix& x, const int npoint); void rowcol_average(dvar_matrix& x, const int npoint); //template <ty...
/* * Author: C<NAME> * Copyright: Crownstone (https://crownstone.rocks) * Date: Dec 6, 2019 * License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed) */ #include <behaviour/cs_Behaviour.h> #include <util/cs_WireFormat.h> #include <logging/cs_Logger.h> #include <time/cs_SystemTime.h> Behaviour::Behavio...
#include <stdio.h> #include <string> #include <vector> #include <algorithm> #include <fstream> #include <sstream> #include <iostream> #include <map> #include <string> #ifdef _WIN32 #define INITGUID #include <Windows.h> #include <d3d11.h> #include <D3Dcompiler.h> #endif int compileHLSLToD3D11(const char* fromRelative, ...
/* EXAMPLE osmium_area_test Create multipolygons from OSM data and dump them to stdout in one of two formats: WKT or using the built-in Dump format. DEMONSTRATES USE OF: * file input * location indexes and the NodeLocationsForWays handler * the MultipolygonCollector and Assembler to assemble areas (mul...
// Raytracing application draws an image pixel by pixel onto // a small plane in front of the render camera. // // By <NAME> #include "ofApp.h" using namespace glm; //-------------------------------------------------------------- void ofApp::setup(){ ofSetBackgroundColor(ofColor::black); bHideGUI = true; _curren...
/********************************************************************** Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without...
#include <stdlib.h> #include "ros/ros.h" #include "CFrelement.h" #include <actionlib/server/simple_action_server.h> #include <fremenarray/FremenArrayAction.h> using namespace std; ros::NodeHandle *n; typedef actionlib::SimpleActionServer<fremenarray::FremenArrayAction> Server; Server* server; fremenarray::FremenArra...
/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License. * * You may ...
//oysterpac 0.2 - TI program variable packer //by utz 2014-2015 #include <iostream> #include <fstream> #include <string> #include <algorithm> using namespace std; ifstream INFILE; ofstream OUTFILE; string getExtension(string filename); int main(int argc, char *argv[]){ cout << "oysterpac 0.2 - TI program variabl...
/* Copyright (C) 2006 - 2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * 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 l...
#include <bits/c++config.h> #include <algorithm> #include <chrono> #include <cstddef> #include <functional> #include <iostream> #include <iterator> #include <numeric> #include <thread> #include <tuple> #include <vector> #include "conveyorpp.h" #include "gtest/gtest.h" using namespace std::chrono_literals; using ::te...
/* // Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a // component of the Texas A&M University System. // All rights reserved. // The information and source code contained herein is the exclusive // property of TEES and may not be disclosed, examined or reproduced // in whole or in part withou...
/* * Copyright (C) 2018 Libelium Comunicaciones Distribuidas S.L. * http://www.libelium.com * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 2.1 of the License,...
// Copyright (c) 2022 PaddlePaddle 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...
#include <marko/ssocket.hpp> #include <sys/types.h> // for type definitions #include <sys/socket.h> // for socket API calls #include <netinet/in.h> // for address structs #include <stdio.h> // for printf() and fprintf() #include <stdlib.h> // for atoi() #include <string.h> // for strlen() #include <unist...
/*************************** * Program Filename: chatserve.cpp * Author: <NAME> * Date: 11.1.15 * Notes: Refer to the README.txt for any notes. * ***********************/ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/s...
// 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 ...
#include <vector> #include <string> #include <iostream> #include <algorithm> #include <unordered_set> #include <map> #include <set> #include <fstream> #include <ios> #include "bwt.h" static bool DEBUG = false; static bool GENERAL = true; static bool TIME = true; static std::set<char> ALPHABET = {'\n', 'A', 'C', 'G', ...
#include <limits.h> #include <iostream> #include <vector> #include <string> #include <time.h> #include <gtest/gtest.h> #include "funset.hpp" // reference: googletest/samples ///////////////////////////////////////////////////////////// // To use a test fixture, derive a class from testing::Test. class QueueTest : pub...
/*************************************************************************** * * Copyright 2010, 2011 BMW Car IT GmbH * Copyright (C) 2011 DENSO CORPORATION and <NAME> Multimedia Gmbh * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
// ToglCache.cc cache togl frame buffer for fast redraws // created 10/27/98 magi #include <assert.h> #include <iostream> #include <unordered_map> #include "togl.h" #include "ToglCache.h" #include "plvGlobals.h" #include "plvDraw.h" #include "Trackball.h" DisplayCache::DisplayCache(struct Togl *...
/** Name: <NAME> (<EMAIL>) Description: This program reads an infix notation from a file & finds the result. Date: Oct-2013 **/ #include <iostream> #include <string> #include <fstream> #include <vector> #include <stack> using namespace std; double stringToDouble(string str); //converts a string to a...
/* Copyright 2005-2008 Intel Corporation. All Rights Reserved. This file is part of Threading Building Blocks. Threading Building Blocks 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 Foundat...
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
/* ==================================================================== * The Vovida Software License, Version 1.0 * * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
#include "PolyMesh/IOManager.h" #include<fstream> #include<queue> #include<sstream> #include<time.h> using namespace acamcad; using namespace polymesh; struct Tri { int id; int tag; double weight; Tri( int id, int tag, double weight) :tag(tag), id(id), weight(weight) {}; bool operator<(const Tri& a) const { ...
#include "FusionEKF.h" #include "Eigen/Dense" #include "tools.h" #include <iostream> #include <cmath> using Eigen::MatrixXd; using Eigen::VectorXd; using std::cout; using std::endl; using std::vector; /** * Constructor. */ FusionEKF::FusionEKF() { is_initialized_ = false; previous_timestamp_ = 0; // Laser me...
// // G3MPointCloudDemoScene.cpp // G3MApp // // Created by <NAME> on 11/18/13. // Copyright (c) 2013 Igo Software SL. All rights reserved. // #include "G3MPointCloudDemoScene.hpp" #include <G3MiOSSDK/G3MWidget.hpp> #include <G3MiOSSDK/MapBoxLayer.hpp> #include <G3MiOSSDK/LayerSet.hpp> #include <G3MiOSSDK/IDownlo...
#include <cassert> #include <cctype> #include <climits> #include <functional> #include <iostream> #include <map> #include <numeric> #include <random> #include <regex> #include <set> #include <string> #include <unordered_map> #include <unordered_set> #include <variant> template <typename Map> std::size_t dedup(Map cons...
/*********************************************************************************** ** exvr-designer ** ** MIT License ** ** Copyright (c) [2018] [<NAME>][EPFL-LNCO] ...
// // Created by karel on 25.12.17. // #include <iostream> #include "DynamicGraph.h" #include "commonutilstemplated.h" DynamicGraph::DynamicGraph(std::vector<Vertex> & vertices, std::vector<Edge> & edges, std::map<std::string, AttributeType> & vertex_schema, st...
#include <fastenvelope/FastEnvelope.h> #include <fastenvelope/MeshIO.hpp> #include <fastenvelope/Types.hpp> #include <fastenvelope/AABBWrapper.h> #include <igl/Timer.h> #include <geogram/basic/command_line.h> #include <geogram/basic/command_line_args.h> #ifdef USE_TBB #include <tbb/tbb.h> #endif #include <unor...
#include <autobahn/autobahn.hpp> #include <boost/asio.hpp> #include <boost/version.hpp> #include <boost/date_time/posix_time/posix_time.hpp> #include <chrono> #include <iostream> #include <memory> #include <string> #include <tuple> static const std::string this_service = "service2"; static const std::vector<std::strin...