text
stringlengths
3.08k
22k
/*************** <auto-copyright.pl BEGIN do not edit this line> ************** * * osgBullet is (C) Copyright 2009-2012 by <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1 as published by the Free Software ...
// Copyright (c) 2003 - 2009 <NAME> <<EMAIL>> // See LICENSE for license details. #include "menu.h" #include <sstream> #include "action.h" #include "clientbar.h" #include "cursors.h" #include "draw.h" #include "font.h" #include "kernel.h" #include "label.h" #include "logger.h" #include "monitor.h" #include "theme.h"...
#include "Wire.h" #include "Adafruit_NeoPixel.h" #define DS3231_I2C_ADDRESS 0x68 #define PIXEL_PIN 14 Adafruit_NeoPixel pixels = Adafruit_NeoPixel(60, PIXEL_PIN, NEO_GRB + NEO_KHZ800); // Convert normal decimal numbers to binary coded decimal byte decToBcd(byte val) { return( (val / 10 * 16) + (val % 10) ); } // ...
#include <iostream> #include <string> #include <cstdlib> #include <fstream> #include <vector> #include <sstream> #include <ctime> #include <unistd.h> #include <netinet/in.h> #include <sys/socket.h> #include <arpa/inet.h> #include <errno.h> #include <fcntl.h> using namespace std; #define INETADDR(a, b, c, d) (d + (c <...
#include <algorithm> #include "skinEventsAggregThread.h" #define MIN_NUMBER_OF_TAXELS_ACTIVATED 3 //default: 3; to filter out phantoms #define SKIN_ACTIVATION_MAX_ICUB_SIM 100 #define SKIN_ACTIVATION_MAX_ICUB 30 using namespace yarp; using namespace yarp::os; using namespace yarp::sig; using namespace iCub::skinDynL...
/* * Copyright (C) 2016 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...
// An example of face services based on OpenCV camera streams. // // Author: <NAME> (<EMAIL>) // // Copyright (c) 2021 Sensory, 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 with...
// misc.cpp // Copyright (c) 2017, <EMAIL> // Licensed under the Apache License Version 2.0. #include "pts.h" #include "ast.h" #include "ir/type.h" #include "typecheck.h" #include "errors.h" #include "polymorph.h" namespace sst { namespace poly { namespace internal { static int polySessionId = 0; int get...
/******************************************************************************************************* * Copyright 2017 Alliance for Sustainable Energy, LLC * * NOTICE: This software was developed at least in part by Alliance for Sustainable Energy, LLC * (“Alliance”) under Contract No. DE-AC36-08GO28308 with the ...
// Copyright 2015 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 "CheckTraceVisitor.h" #include <vector> #include "Config.h" using namespace clang; CheckTraceVisitor::CheckTraceVisitor(CXXMethodDecl* trace,...
/* Copyright 2017 - BSD-3-Clause * * Copyright Holder (alphabetical): * * Beikirch, Maximilian * Cramer, Simon * Frank, Martin * Otte, Philipp * Pabich, Emma * Trimborn, Torsten * * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * followin...
/** * @file llviewerdisplayname.cpp * @brief Wrapper for display name functionality * * $LicenseInfo:firstyear=2010&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of...
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. * Modifications copyright (c) 2020 Computing Systems Group * * 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:...
/********************************************************************* (c) <NAME> 2017 - 2021 http://trederia.blogspot.com xygineXT - Zlib license. 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 softw...
// Copyright 2021 Xilinx Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
// Copyright © 1996-2018, Valve Corporation, All rights reserved. #include "movieobjects/dmetimeselection.h" #include "datamodel/dmelementfactoryhelper.h" #include "interpolatortypes.h" // #include "dme_controls/RecordingState.h" IMPLEMENT_ELEMENT_FACTORY(DmeTimeSelection, CDmeTimeSelection); void CDmeTimeSelection...
/* * Copyright 1993-2012 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
/** * Copyright 2015 <NAME>, <NAME>, <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 ...
/* /home/yang/project/imagenet/lmdb/ilsvrc12/train.txt /mnt/dc_p3700/imagenet/train/ */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <inttypes.h> #include <sys/stat.h> #include <vector> #include <iostream> #include <string> #include <fstream> #include <set> #include <sys/time.h> using namespace ...
#include "pocketsphinx.h" #include <ad.h> #include <cont_ad.h> #include <MMDAgent.h> #include "Sphinx.h" #include "err.h" #include <sys/stat.h> #include <time.h> void Sphinx::initialize() { m_ps = NULL; /* Recognizer instance */ m_config = NULL; /* Configuration instance */ m_mmdagent = NULL; m_ad = NUL...
// // STREE2006.CPP - Suffix tree creation // // <NAME>, updated December, 2006 // // This code has been tested with Borland C++ and // Microsoft Visual C++. // // This program asks you for a line of input, then // creates the suffix tree corresponding to the given // text. Additional code is provided to vali...
#include <stdio.h> #include <boost/foreach.hpp> #include <boost/bind.hpp> #include <limits> #include "Vision.h" #include "BlobTracker.h" #include "Controller.h" #include "ImageMerging.h" // Controller associated window names const string Controller::BLOB_SIZE_WINDOW = "Blob Area Constraints"; const std::vector<int> ...
#define DEBUG 1 #include <iostream> #include <GL/glew.h> #include <GL/glut.h> #include "Player.hpp" #define WINDOW_X (500) #define WINDOW_Y (500) #define WINDOW_NAME "test" void init_GL(int, char**); void init(); int readShaderSource(GLuint shader, const char *file); void printShaderInfoLog(GLuint shader); void prin...
// -*- mode: c++; indent-tabs-mode: nil; -*- // // Copyright (c) 2010-2015 Illumina, 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: // 1. Redistributions of source code must retain the ab...
#include <stdlib.h> #include <time.h> #include <math.h> #include <stdio.h> #include <ghutils.h> typedef long double ld; #define QROW 4000000 #define QPAR 36 string kolumny[QPAR] = { // 1..4 "repos", "repos2", "followers", "followers2", // 5..6 "stars_obtained", "stars_obtained2", // 7..8 ...
/* Copyright 2019-2021 The MLPerf Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ...
#include <h5pp/h5pp.h> #include <iostream> /*! \brief Prints the content of a vector nicely */ template<typename T> std::ostream &operator<<(std::ostream &out, const std::vector<T> &v) { if(!v.empty()) { out << "[ "; std::copy(v.begin(), v.end(), std::ostream_iterator<T>(out, " ")); out <<...
#include <Arduino.h> #include <WiFi.h> #include <WiFiUdp.h> #include <SPI.h> #include <SD.h> /* * Chip-Select line for SD access. * I just noticed that I'm additionally using pin 33 for one of the * eponymous two buttons. As I only access the SD card during setup * this seems to work fine, but I should probably ch...
// Copyright (c) 2021 Graphcore Ltd. All rights reserved. #pragma once #include <cassert> #include <cmath> #include <iostream> #include <iterator> #include <limits> #include <ostream> #include <random> #include <string> #include <vector> template <typename T> std::string to_string(const T *data, size_t size) { std...
/* LICENSE ------- Copyright 2005-2013 Nullsoft, 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 l...
#include <iostream> #include <iomanip> // std::setprecision #include <sys/time.h> #include <random> #include <chrono> #include <CL/sycl.hpp> #include <dpc_common.hpp> #include <oneapi/dpl/random> #ifndef VARTYPE #define VARTYPE double #endif struct particle{ VARTYPE pos[3]; VARTYPE vel[3]; }; VARTYPE dis...
#include "PhysicsScene.h" #include <iostream> #include <list> #include <glm/glm.hpp> #include "Circle.h" #include "Line.h" #include "Rect.h" typedef bool(*fn)(PhysicsObject*, PhysicsObject*); static fn collisionsFunctionArray[] = { PhysicsScene::Line2Line, PhysicsScene::Line2Circle, PhysicsScene::Line2Rect, Physics...
// __BEGIN_LICENSE__ // Copyright (c) 2006-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NASA Vision Workbench is licensed under the Apache License, // Version 2.0 (the "License"); you may not use this f...
#include <iostream> #include <vector> #include <cassert> #include <cstring> #include <limits> #include <mpi.h> enum KernelType {CubicSpline = 0, WendlandC2 = 1, WendlandC4 = 2}; #include "particle_simulator.hpp" #include "hdr_time.hpp" #include "hdr_run.hpp" #include "vector_x86.hpp" #include "hdr_dimension.hpp" #inc...
#include <boost/system/error_code.hpp> #include <plog/Log.h> #include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/predicate.hpp> #include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string/trim.hpp> #include <boost/system/system_error.hpp> #include <thread> #include <bo...
/******************************************************************************* *(Blackjack) * Name: <NAME> * Email: <EMAIL> ******************************************************************************/ // Add other #includes if you need #include <iostream> #include <cstdlib> using namespace std; /* Prototype...
/* Copyright (C) 2003-2006 <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without ev...
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QFileDialog> #include <QBoxLayout> #include <QLabel> #include <QHeaderView> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); this->init_view(); this->xlsx_reader(); this->ve...
/*************************************************************************** * Copyright (C) 2009-2016 by * * <NAME> <<EMAIL>> * * * * ...
#include <iostream> #include <map> #include <string> #include <vector> #include <boost/algorithm/string.hpp> #include <boost/filesystem.hpp> #include <boost/program_options.hpp> #include <boost/signals2.hpp> #include "libaktualizr/aktualizr.h" #include "libaktualizr/config.h" #include "logging/logging.h" #include "u...
// Segment tree beats for chmax, chmin and add range updates // Problem link: https://judge.yosupo.jp/problem/range_chmin_chmax_add_range_sum #include <bits/stdc++.h> using namespace std; #define ar array #define ll long long const int MAX_N = 1e5 + 1; const int MOD = 1e9 + 7; const int INF = 1e9; const ll LINF = 1...
// Copyright 2019 The MediaPipe 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 a...
/******************************************************************************* * Copyright (c) 2015-2017 * School of Electrical, Computer and Energy Engineering, Arizona State University * PI: Prof. <NAME> * All rights reserved. * * This source code is part of NeuroSim - a device-circuit-algorithm framework to...
/*** Copyright (c) 2018-2019, NVIDIA CORPORATION. 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 restriction, including without limitation the rights to use, copy, ...
////////////////////////////////////////////////////////////////////// // This is a badly chopped-up version of plPing to test the pollProxy // code. ////////////////////////////////////////////////////////////////////// #include <iostream> #include <sstream> #include <iomanip> #include <string> #include <sys/time.h>...
/* * Copyright (c) 2016 Shanghai Jiao Tong University. * 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....
#include "loader.h" #include "pmfx.h" #include "pen.h" #include "memory.h" #include "os.h" #include "renderer.h" #include "threads.h" #include "timer.h" using namespace pen; using namespace put; namespace { void* user_setup(void* params); loop_t user_update(); void user_shutdown(); } namespace pen...
#include <algorithm> #include <iostream> #include <math.h> #include <vector> #include <map> #include <chrono> #include <thread> #include <execution> struct Point { double x; // meters double y; // meters double z; // meters double vx; // meters/second double vy; // meters/second double vz; // meters/second...
#include "FluxFitter.hxx" #include "SliceConfigTreeReader.hxx" #include "ROOTUtility.hxx" #include "StringParserUtility.hxx" #include "Fit/Fitter.h" #include "Math/Factory.h" #include "Math/Functor.h" #include <algorithm> #include <chrono> #include <functional> // #define DEBUG_LHOOD void FluxFitter::Initialize(F...
/* -------------------------------------------------------------------------- * * OpenMM * * -------------------------------------------------------------------------- * * This is part of the OpenMM molecular simulation toolkit originating from * ...
// Copyright (c) 2021 Lawnjelly // 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, distr...
// // Created by DefTruth on 2021/10/10. // #include "ncnn_rvm.h" using ncnncv::NCNNRobustVideoMatting; NCNNRobustVideoMatting::NCNNRobustVideoMatting( const std::string &_param_path, const std::string &_bin_path, unsigned int _num_threads, int _input_height, int _input_width, unsigned int _variant_type...
#include <math.h> #include <stdlib.h> #include "../class.vec.h" #include "../BaseMath.h" vec4::vec4( const float a ) { x = y = z = w = a; } vec4::vec4( const float a, const float b, const float c, const float d){ x = a; y = b; z = c; w = d;} vec4::vec4( const vec &in) { x = in.x; y = in.y; z = in.z; w = 1.f;} vec4::ve...
#include "include/hdf5_blockCrossprod.h" // Working directly with C-matrix in hdf5 file // If option paral·lel is enabled, this function loads hdf5 read blocks // of medium size into memory and calculates the multiplication of blocks // by applying the parallel algorithm Bblock_matrix_mul_parallel (in-memory process...
#include <SerialHMDWatchdog.h> #include <DriverLog.h> // ******************************************************* // Static Watchdog Thread Function - frequently checking if HMD has been connected // ******************************************************* bool g_watchdogExiting; void Watchdog() { #if defi...
// // vga.cpp // HWSensors // // Created by Kozlek on 13.08.12. // // /* * Copyright 2012 Red Hat 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, includin...
/*======================================================================================================== * DragonXBox.cpp *======================================================================================================== * * File Description: Wrapper for an XBOX controller used to control the robot ...
// copyright (c) 2007 <NAME>, see licence.txt for more info #include <base/system.h> #include <engine/shared/network.h> #include "mastersrv.h" enum { MTU = 1400, MAX_SERVERS_PER_PACKET=128, MAX_PACKETS=16, MAX_SERVERS=MAX_SERVERS_PER_PACKET*MAX_PACKETS, EXPIRE_TIME = 90 }; struct CCheckServer { NETADDR m_Addre...
// ============================================================================= // Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Permission is hereby grante...
// ***************************************************************** -*- C++ -*- // xmpsample.cpp, $Rev: 3090 $ // Sample/test for high level XMP classes. See also addmoddel.cpp #include <exiv2/exiv2.hpp> #include <string> #include <iostream> #include <iomanip> #include <cassert> #include <cmath> bool isEqual(float ...
/* Lightweight Automated Planning Toolkit Copyright (C) 2012 <NAME> <<EMAIL>> <NAME> <<EMAIL>> 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 the License, or (at your option) any...
/** * GameController.hpp * Modified: 2009-11-13 * Description: A thread to recieve game state information from the Game * Controller sever and implements the Button Interface. Adapted from 2009 code. */ #include "gamecontroller/GameController.hpp" #include <sys/types.h> #include <sys/socket.h> #include <sys/poll....
/******************************************************************************* * Copyright (c) 2012-2017, <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistribut...
#include <ros/ros.h> #include <iostream> #include <avatar_locomanipulation/BinaryClassifierQuery.h> #include <avatar_locomanipulation/models/robot_model.hpp> #include <chrono> typedef std::chrono::high_resolution_clock Clock; #define CONTACT_TRANSITION_DATA_LEFT_FOOT_STANCE 0 #define CONTACT_TRANSITION_DATA_RIGHT_FO...
/* * Copyright (c) 2010 Jice * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions a...
#include<iostream> #include <fstream> #include<cstring> #include <bits/stdc++.h> using namespace std; // The node for all applications struct Node { string name; int record_position; Node *left, *right; } *first; // Application format struct Node * createNode(string name, int pos){ struct Node * temp=new Node(); ...
#include <iostream> #include "dfg.h" using namespace std; using std::unordered_map; using std::chrono::high_resolution_clock; using std::chrono::duration; void sample_owg(DirectedG &g, Owg &owg) { // sample an one-way graph DirectedG::vertex_iterator node_iter, node_end; tie(node_iter, node_end) = verti...
#include "weed_detection.h" #include "wd_stage_1.h" #include "wd_stage_2.h" #include "wd_stage_3.h" #include "xf_resize_2.hpp" #include "xf_duplicate_2.hpp" // --------------- Procesamiento general de imagen --------------- void weed_detection(rgb_img_t& img_in, rgb_img_t& img_out) { #pragma HLS dataflow //pragma st...
#include "mesh_obj.h" #include <cassert> #include <iostream> #include <sstream> #include <unordered_map> void WavFrObj::ObjObject::addFace(std::vector<ObjVert> verts) { int sides = int(verts.size()); assert(sides >= 3); if(min_sides == 0 || sides < min_sides) min_sides = sides; if(max_sides == 0 || sides > ma...
/* StringDictionaryHASHHF.cpp * Copyright (C) 2014, <NAME> & <NAME> & <NAME> * all rights reserved. * * This class implements a Compressed String Dictionary based on double hashing. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * L...
/** * @file flatten~.cpp * @author <NAME> * @date 07/06/2018 * @brief sidechain with threshold driven by the amplitude of a control signal * * @copyright * Copyright (C) 2018 by <NAME>. * All rights reserved. * * License (BSD 3-clause) * * Redistribution and use in source and binary forms, with or without ...
/* * 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...
//////////////////////////////////////////////////////////////////////////////// #include <polyfem/Singularities.hpp> #include <polyfem/Navigation.hpp> #include <polyfem/MeshUtils.hpp> #include <algorithm> //////////////////////////////////////////////////////////////////////////////// void polyfem::singular_vertices(...
#include <string.h> #include "sqlite3.h" #include "utf8.h" #include "stop_words.h" #include <iostream> #include <string> // inline std::wstring utf8_to_wstring (const std::string& str) { // std::wstring_convert<std::codecvt_utf8<wchar_t>> conv; // return conv.from_bytes(str); // } // inline std::string wstring_...
// file : liblava/frame/window.cpp // copyright : Copyright (c) 2018-present, Lava Block OÜ // license : MIT; see accompanying LICENSE file #include <liblava/frame/window.hpp> #include <liblava/base/instance.hpp> #include <liblava/base/device.hpp> #define GLFW_INCLUDE_NONE #define GLFW_INCLUDE_VULKAN #include...
#include "ttrees.h" #include <iomanip> #include <set> #include <algorithm> #include <chrono> using namespace std::chrono; std::default_random_engine dre; Ttrees::Ttrees(const Ttrees_parameters p,const LOG logging,int seed): p(p),logging(logging),num_of_co(0),min_err(1e10),urd(0,1),xy(xy_default_initializer) ...
#ifdef __APPLE__ #include <GLUT/glut.h> #else #include <GL/glut.h> #endif // #define _USE_MATH_DEFINES #include <cmath> #define MOTION 0.2f /* Setting all global variables inside a structure as to understand where they are global or local variables */ class Global { public: float camera_radius; ...
#define BOOST_TEST_MAIN TestFeatureSubscriber #include <boost/test/unit_test.hpp> #include <stdexcept> #include <iostream> #include <thread> #include <chrono> #include <boost/lexical_cast.hpp> #include <boost/tokenizer.hpp> #include <boost/foreach.hpp> #include <sam/FeatureProducer.hpp> #include <sam/FeatureSubscriber....
#include <iostream> #include <algorithm> #include <cstdio> #include <cstring> #include <cmath> #include <cstdlib> #include <ctime> #include <queue> #include <stack> #include <vector> #include <map> #define MP make_pair #define F first #define S second using namespace std; typedef long long ll; typedef pair <int, int> p...
//------------------------------------------------------------------ // // @@@ START COPYRIGHT @@@ // // 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. ...
/*************************************************************************** * MProcess class - Installer-specific extensions to QProcess. *************************************************************************** * * Copyright (C) 2019 by AK-47 * Licensed under the Apache License, Version 2.0 (the "License")...
// Copyright (c) 2011-2012, <NAME> // Copyright (C) 2004-2006, <NAME> // // Permission to copy, use, modify, sell and distribute this software // is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied // warranty, and with no claim as to its suit...
// Copyright (c) 2019, Compiler Tree Technologies Pvt Ltd. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // th...
/* Copyright 2008 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. //#define PROFILE 1 #include "../core/apex.h" #include "../util/System.h" #include "../util/sosd_util.h" #include "operation.h" #include <sys/time.h> #include <iomanip> #include <string> #include <random> #include <vector> #include "flags.h" #i...
/***************************************************************************** * * DESCRIPTION: * File containing the base implementations of the classes that handle * loading the stimuli that drive the execution of the simulation. * * This file defines both: * * StimLoader - the class that manages ...
/****************************************************************** Copyright (C) 2017 - All Rights Reserved by 文 件 名 : camerawidget.cpp --- 作 者 : Niyh (QQ:393320854) 编写日期 : 2019 说 明 : 历史纪录 : <作者> <日期> <版本> <内容> 2019/9/15 ***********************************************...
#include <assert.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include "macros.h" #include "nestegg.h" #include "vpx.h" typedef struct { unsigned char signature[4]; //='DKIF'; unsigned short version; //= 0; unsigned short headerlength; //= 32; unsigned int FourCC; unsigned short ...
#include <iostream> #include <fstream> #include <queue> #include <stdio.h> #include <tuple> #include "omp.h" #include <algorithm> #include <time.h> using namespace std; clock_t start_time; clock_t end_time; struct Node { int x; int y; int f; bool operator<(const Node other) const { return ...
/* * Copyright (C) 2013 Team XBMC * http://xbmc.org * * 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, or (at your option) * any later version. * * This ...
#include <emp-tool/emp-tool.h> #include "emp-agmpc/emp-agmpc.h" #include "../json/json.hpp" #include "../Eigen/Dense" using namespace std; using namespace emp; using json = nlohmann::json; using namespace Eigen; const string circuit_file_location = macro_xstr(EMP_CIRCUIT_PATH); const static int nP = 3; int party, po...
#include <opencv2/opencv.hpp> #include <opencv2/tracking.hpp> #include <opencv2/core/ocl.hpp> using namespace cv; using namespace std; // Convert to string #define SSTR(x) static_cast<std::ostringstream &>( \ (std::ostringstream() << std::dec << x)) \ .str() // Point...
/* 测试 svr 连接断开,恢复。步骤: svr1 ,svr2 连接acc client认证,设置uin. svr2断开,重连。 svr2 会话,uin恢复。 */ #include <string> #include "libevent_cpp/include/include_all.h" #include "svr_util/include/su_mgr.h" #include "svr_util/include/single_progress.h" #include "svr_util/include/read_cfg.h" #include "unit_test.h" #include "../acc_dr...
#include "interface.h" #include "debug.h" Interface::Interface() : Controller() { // set up views _mainMenu = new MainMenu(this); showView(_mainMenu); } // MAIN MENU ****************************************************************** MainMenu::MainMenu(Controller *c) : VStack() { controller = c; // show an ...
/****************************************************************************** ** Copyright (c) 2017-2018, Intel Corporation ** ** All rights reserved. ** ** ** ...
#include "../../include/parser.h" #include "../../include/get_val_str.h" #include "../../include/gen_val.h" #include "../../include/input.h" #include "../../include/occur.h" map<string, string> mem; string int_operation_parser(string op, string left, string right) { string l , r; if(left.substr(0, 5...
/* -------------------------------------------------------------------------- * * File ContactListener.cpp * * Ported By <NAME> * Contact <EMAIL> * * -------------------------------------------------------------------------- * * Copyright (c) 2010-2013 X...
#include "planner.h" using std::vector; using std::map; void behaviour_planner( const vector<double> &previous_path_x, const vector<double> &previous_path_y, double &current_lane, double &target_lane, double &car_d, doub...
#include <thread> #include "gtest/gtest.h" #include "srtrs.h" #ifdef __linux__ #include <arpa/inet.h> #include <netinet/in.h> #endif class TestMuxer : public ::testing::Test { protected: TestMuxer() { // initialization code here } ~TestMuxer() { // cleanup any pending stuff, but no exceptions allowed...
#include <iostream> #include <vector> #include <limits> #include <cstdlib> #include <libconfig.h++> #include <histogram.hpp> #include <plot.hpp> #define VERSION "2.4.1" /* * Changelog: * 2.4.1 - 03.12.2020 - <EMAIL>: * - Minor bin detection improvement * - ...