text
stringlengths
3.08k
12.5k
/* * Copyright 2017-2019 Metrological * * 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 agre...
#include "http/parser.hpp" #include <charconv> HttpRequestState HttpRequestParser::parse(std::string_view message) { message.remove_prefix(parsed_total_); if (state_ == HttpRequestState::READING_REQUEST_LINE) { if (size_t req_line_idx = message.find("\r\n"); req_line_idx != std::string::npos) { ...
/* Copyright 2018 <NAME> <<EMAIL>> <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/licenses/LICENSE-2.0 Unless requir...
#include <gtest/gtest.h> #include "messaging/ThreadSafeMessageManager.h" #include "storage/TamperProofLog.h" #include "AsyncContext.h" #include "storage/StorageServer.h" #include "posix/pthread_stubs.h" #include "Logging.h" #include "storage/StorageManager.h" #include "Seal.h" #include "threading/ThreadPool.h" #include...
/**************************************************************************** MIT License 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 restri...
// // Created by cschuwerk on 11/13/17. // #include <ros/ros.h> #include "std_msgs/Float64.h" #include "sensor_msgs/JointState.h" #include "faulhaber_mc5004_can/motor_driver_mc5004.h" #include <signal.h> #include <iostream> //rovi_motor_drivers::motor_driver_mc5004 driver(1,std::string("slcan0"),1000000,"/data/home/n...
/**************************************************************************** * Copyright (c) 2018-2019 by the Cabana authors * * All rights reserved. * * * * This ...
/** * \file ReadBuffData.cpp * * \brief retrieve data from raw buffer array ibuf */ /*---------------------------------------------------------------------- * Copyright (c) 2005, XIA LLC * All rights reserved. * * Redistribution and use in source and binary forms, * with or without modification, are permitte...
#include "common.hpp" #include "utils.hpp" #include <iostream> #include <unordered_map> #include <SDL.h> #if !defined(_WIN32) && !defined(WIN32) namespace unistd { #include <unistd.h> // isatty() } #endif #define ANSI_RESET "\033[0m" #define ANSI_BLACK "\033[22;30m" #define ANSI_RED ...
/* * This file is part of the Dronecode Camera Manager * * Copyright (C) 2017 Intel Corporation. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://...
/* * Copyright 2018- The Pixie 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 ag...
/** * ============================================================================ * Name : TheApp.cpp * Part of : Simple OpenGL graphics engine framework * Description : LAB3 * Version : 1.00 * Author : <NAME>, <<EMAIL>> * =====================================================================...
#include "search_view.h" #include "render.h" #include "app.h" #include "util.h" #include "editor.h" #include "search.h" #include "indexer.h" #include "popup_view.h" #include "editor_view.h" #include <algorithm> search_view_t::search_view_t() : view_t("search") , searchDirection(0) , _findNext(false) { viewLay...
/* PSYCHO GAMES(C) STUDIOS - 2007 www.psychogames.net * Project: Vulture(c) * Author : <NAME> * eMail : <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...
/* ============================================================================================ This class accesses the mesh data and the bisection class. Copyright (c) 09-12-2011, <NAME> ============================================================================================ */ /* C++ Triangle Mesh class ...
#include "Game.h" #include "ThreadSettings.h" #include <optional> #include <memory> #include "GDIPlusManager.h" #include "imgui/imgui.h" #include <math.h> #include <algorithm> #include "BillBoard.h" #include "FastNoise.h" #include "TreeGenerator.h" #include <algorithm> #include <ctime> #include "EventManager.h" #includ...
#include <iostream> #include <time.h> #include <SDL.h> #include "rectangle.hpp" #include "vector.hpp" //>---<>---<>---<// double random(double min, double max) { double x = (double) rand() / RAND_MAX; return min + (x * (max - min)); } //>---<>---<>---<// //> Globals: const int WIDTH = 1500; const int HEIGH...
#include "functionManager.h" #include "test.h" #include <iostream> #include <typeinfo> FuncManager::FuncManager(void (*f_) (int,int,void*), void *args_, ZoneTree *zoneTree_, LevelPool* pool_, std::vector<int> serialPart_):rev(false),func(f_),args(args_),zoneTree(zoneTree_), pool(pool_), serialPart(serialPart_) { /...
/* * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include "backend.h" const int NUM_FOODS = 113; wchar_t* FOODS[113] = { L"🍇", L"🍈", L"🍉", L"🍊", L"🍋", L"🍌", L"🍍", L"🥭", L"🍎", L"🍏", L"🍐", L"🍑", L"🍒", L"🍓", L"🥝", L"🍅", L"🥥", ...
/* Copyright (C) 2016-2018 Alibaba Group Holding Limited 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 ...
/* * Copyright 2019 Carnegie Technologies * * 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 l...
/* Small attempt to write an A* implementation in C++ This implementation is going to TRY and use a procedural approach (avoid classes and use structs + functions). We'll be trying to use arrays for the most part and may try to remove all dependencies on STL types such as Vectors. Why? Because wh...
/* * A subsequence of arr[] is called Bitonic if it is first increasing, then decreasing where arr[] is an array arr[0 ... n-1] containing n positive integers. * If a sequence is sorted in increasing order it is considered Bitonic with the decreasing part as empty. Similarly, decreasing order sequence is consi...
// -*- C++ -*- // Copyright 2006-2007 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz // or its licensors, as applicable. // Copyright 1995-2005 by <NAME> // // You may not use this file except under the terms of the accompanying license. // // Licensed under the Apache License, Version 2.0 (the "License"); y...
// Copyright (c) 2018-2019, University of Bremen, <NAME> // Copyrights licensed under the 2-Clause BSD License. // See the accompanying LICENSE.txt file for terms. #pragma once #include <armadillo> #include "arma_io.hpp" #include <fftw3.h> #include "general_io.hpp" #include "spline.hpp" #define PI datum::p...
#include <cstdlib> #include <ctime> #include <memory> #include "plansys2_problem_expert/ProblemExpertClient.hpp" #include "rclcpp/rclcpp.hpp" using std::string; using std::shared_ptr; using std::chrono::seconds; using std::thread; using std::bind; using plansys2::ProblemExpertClient; using plansys2::Instance; using...
// Copyright 2014 Samsung Electronics. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "utc_blink_ewk_base.h" class utc_blink_ewk_context_local_file_system_delete : public utc_blink_ewk_base { protected: utc_blink_ewk_context_loca...
#include "FindIrisCircle.h" #include <Masek.h> #include "../common/mylog.h" #include <opencv2/highgui/highgui.hpp> #include "../common/easyeye_imaging.h" using namespace easyeye; using cv::Mat; using mylog::Logs; FindIrisCircle::FindIrisCircle(IrisFinderConfig config) :config_(config) { } ...
#include "SceneProjectionAreaDetection.h" #define CVUI_IMPLEMENTATION #include "modules/cvui.h" #define GUI_NAME "GUI" #define GUI_WIDGET_COL_1_POS_X 20 // x-position of column 1 of gui #define GUI_WIDGET_COL_2_POS_X 150 // x-position of column 2 of gui #define GUI_OFFSET_POS_Y 50 // y-position offset between wid...
#include "common.h" #include <Arduino.h> #include <SPI.h> #include <map> extern objStoreStruct objStore; int modeCharge = HIGH; int modeDischarge = LOW; int on = LOW; int off = HIGH; double dcVoltage; double usbVoltage; int dcR = 0; int usbR = 0; enum status { source, sink }; struc...
/***************************************************************************************** NAME : QSILog DESCRIPTION : Provides registry controlled USB event logging COPYRIGHT (C) : QSI (Quantum Scientific Imaging) 2006-2007 ********************************************************************************...
#include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <iostream> #include <set> #include <vector> #include <future> #include <thread> #include <Eigen/Dense> #include <gmpxx.h> #include "Expression.h" //int THREADS_NUM = std::thread::hardware_concurrency(); constexpr int THREADS_NUM = ...
//******************************************************************* // TinyCircuits - HP7240 OLED Display Library // Written by: <NAME> and <NAME> for TinyCircuits // // 08/02/2019 // // Revision 0 - Original Release // //******************************************************************* #include <stdlib.h> #includ...
#include <iostream> #include <cstdio> #include <cstring> #include <cassert> #include <cctype> #include <fstream> using namespace std; typedef long long lint; #define cout cerr #define ni (next_num<int>()) template<class T>inline T next_num(){ T i=0;char c; while(!isdigit(c=getchar())&&c!='-'); bool flag=c=='-'; fla...
/* Copyright 2016 The Science and Technology Facilities Council (STFC) * * Authors: <NAME> (STFC) * * IMPORTANT: This file is NOT licenced under the BSD licence. If you wish to * licence this code, please contact STFC via <EMAIL> * (We are currently deciding what licence to release this code under if it * proves...
//-------------------------------------------------- // // File: compare_aml_results.cpp // // Author: <NAME> // e-mail: <EMAIL> // // cvs: $Id: compare_aml_results.cpp,v 1.2 2006/...
/* By: facug91 From: https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2880 Name: <NAME> Date: 27/06/2016 */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define endl "\n" #define EPS 1e-9 #define MP make...
#include <unordered_map> #include <queue> #include "llvm/IR/ConstantRange.h" #include "llvm/IR/Instruction.h" #include "llvm/IR/Instructions.h" #include "llvm/IR/Function.h" #include "llvm/Pass.h" #include "llvm/Support/Casting.h" #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" using namespace l...
#include <ros/ros.h> #include <ros/console.h> #include <gazebo_msgs/GetModelState.h> #include "std_msgs/Int8.h" #include <tf2_geometry_msgs/tf2_geometry_msgs.h> #include "pick_and_place/GraspSrv.h" enum class Approaches { FORWARD, LEFT, RIGHT, DOWN }; /* This class defines a grasp generator that wor...
#include "joystick.h" joystick::joystick(int _x_enable_pin, int _y_enable_pin, int _adc_pin, int _button_pin) { x_enable_pin = _x_enable_pin; y_enable_pin = _y_enable_pin; adc_pin = _adc_pin; button_pin = _button_pin; pinMode(x_enable_pin, OUTPUT); pinMode(y_enable_pin, OUTPUT); jButton = new button(b...
// RUN: %clangxx_unit -esan-instrument-loads-and-stores=0 -O0 %s -o %t 2>&1 // RUN: %env_esan_opts="record_snapshots=0" %run %t 2>&1 | FileCheck %s #include "esan/esan_hashtable.h" #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> class MyData { public: MyData(const char *Str) : RefCou...
/*- * Copyright (C) 2008-2009 by <NAME> * <EMAIL> * * All rights reserved. * * * * Redistribution and use in source and binary forms, with or without * * modification, are permit...
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <iostream> #include <assert.h> #include <vector> #include "Mesh.h" #include "Texture.h" #include "Shader.h" #include "Model.h" void framebuffer_size_callback(GLFWwindow* window, int width, int height); void processInput(GLFWwindow *window); std::vector<Model*> L...
/*B 2016/2017, Zadaća 1, Zadatak 4 NAPOMENA: ulaz/izlaz za zadatke je specificiran javnim autotestovima. Zalbe za ne analiziranje testova se ne uvazavaju! NAPOMENA: nece svi (javni) testovi sa zamgera biti dostupni na c9. */ #include<iostream> #include<string> #include<vector> #include<stdexc...
/*************************************************************************** * tests/mng/test_bmlayer.cpp * * Part of the STXXL. See http://stxxl.sourceforge.net * * Copyright (C) 2007 <NAME> <<EMAIL>> * Copyright (C) 2009 <NAME> <<EMAIL>> * Copyright (C) 2013 <NAME> <<EMAIL>> * * Distributed under the B...
/** * Implementation of the nu_parallel collisional energy diffusion term in the kinetic equation. */ #include "FVM/Equation/DiffusionTerm.hpp" #include "FVM/Grid/Grid.hpp" #include "DREAM/Settings/OptionConstants.hpp" #include "DREAM/Equations/Kinetic/EnergyDiffusionTerm.hpp" using namespace DREAM; /** * Constr...
#include <iostream> #include <ros/ros.h> #include <std_msgs/Int8.h> #include <geometry_msgs/Quaternion.h> #include <geometry_msgs/Vector3.h> #include <signal.h> #include <termios.h> #include <stdio.h> #include <pthread.h> #define KEYCODE_A 97 #define KEYCODE_D 100 #define KEYCODE_W 119 #define KEYCOD...
/* Author: <NAME> Standard Geometry Library This handles basic geometric objects like Points, Lines, Segments, and Circles. */ #include <iostream> #include <cstdio> #include <vector> #include <cmath> using namespace std; const double EPS = 1e-9; double inline deg2rad(double deg) { return (deg * M_PI / 180.0); } d...
// Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include <assert.h> #include <stdexcept> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> using namespace std; const string g_input("0123456789"); void test_replace( cons...
#include "textline.h" #include "unicode.h" #include "textview.h" TextLine::TextLine(PGTextBuffer* buffer, lng line) { assert(line >= buffer->start_line); lng current_line = buffer->start_line; lng maximum_line = current_line + buffer->GetLineCount(); lng start_position, end_position; if (line == buffer->start_li...
#include "Framework/D3DUtil.h" #include "Framework/D3DVertexFormat.h" #include <codecvt> void GenTriGrid(int numVertRows, int numVertCols, float dx, float dz, const D3DXVECTOR3 &center, std::vector<D3DXVECTOR3> &verts, std::vector<DWORD> &indices) { int numVertices = numVertRows * numVertCols; int numCellRows = num...
#include "MyGLWidget.h" #include <QDebug> #include "Vertex.h" // Front Verticies #define VERTEX_FTR Vertex(QVector3D(0.5f, 0.5f, 0.5f), QVector3D(1.0f, 0.0f, 0.0f)) #define VERTEX_FTL Vertex(QVector3D(-0.5f, 0.5f, 0.5f), QVector3D(0.0f, 1.0f, 0.0f)) #define VERTEX_FBL Vertex(QVector3D(-0.5f, -0.5f, 0.5f), QVector3D(0....
// Boost.Geometry // Unit Test // Copyright (c) 2020 <NAME>, Amsterdam, the Netherlands. // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <geometry_test_common.hpp> #inc...
/* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certain ...
// Copyright 2018 Slightech Co., Ltd. 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 ap...
#include "alloutil/al_FileWatcher.hpp" #include <vector> #include <map> #include <limits> using namespace al; typedef std::vector<FileWatcher *> WatcherList; struct WatchedFile { WatchedFile() : mModified(-std::numeric_limits<double>::max()) {} WatchedFile(const WatchedFile& cpy) : mModified(cpy.mModified) {} v...
// // ClientTraitsHandler.cpp // libraries/avatars/src // // Created by <NAME> on 7/30/18. // Copyright 2018 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "ClientTraitsHandler.h" #i...
// Copyright 2019 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 <algorithm> #include <fstream> #include <iostream> #include <string> #include <vector> static constexpr const size_t kDataAlignment = 16; static ...
//===--- Option.cpp - Abstract Driver Options -----------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// 让 fopen 不会报错,或者向 C/C++, 预处理器,预处理器定义中 添加 _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS #define GLEW_STATIC #include "GL/glew.h" #include "game.h" #include "screenshot.h" //time time_t rawtime; struct tm* ptminfo; // The Width of the screen const GLuint SCREEN_WIDTH = 1024; // The height of the screen co...
/* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is distributed i...
/* * Copyright (C) 2010, British Broadcasting Corporation * All Rights Reserved. * * Author: <NAME> * * 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...
// // Created by elnsa on 2020-01-19. // #include "ESParser.h" #include "../../PictureDecoder/Slice/Macroblock.h" #include "MacroblockParser.h" #include "MotionVectorsParser.cpp" #include "CodedBlockPatternParser.h" #include "BlockParser.h" #include "../../VideoDecoder/VideoInformation.h" #define read(n) (ESParser::g...
/* SlimeVR Code is placed under the MIT license Copyright (c) 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 ...
/* * Copyright (c) 2019, The Bifrost Authors. 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 con...
/* * Copyright 2019-2021 Diligent Graphics 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 applica...
//-*- c++ -*------------------------------------------------------------------- // Module: Minimization of Rosenbrock banana function // Author: <NAME>, Oxford RRG // Created: 31 Aug 96 // Converted to vxl by <NAME>, February 2000 //----------------------------------------------------------------------------- #include...
//================================================================================= // SampleTailExtension // // Written by <NAME> // Copyright © 2017 <NAME>. All rights reserved. //================================================================================= #include "HarmonicAnalyser.h" #include "FFT.h" #incl...
//***************************************************************** // Copyright 2015 MIT Lincoln Laboratory // Project: SPAR // Authors: OMD // Description: Implemenation of Schema class. // // Modifications: // Date Name Modification // ---- ---- -...
/*========================================================================= * * Copyright NumFOCUS * * 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...
/* * Channel.cpp * * Created on: Jun 13, 2012 * Author: cryan */ #include "Channel.h" Channel::Channel() : number{-1}, enabled_{true}, waveform_(0), trigDelay_{0} {} Channel::Channel(int number) : number{number}, enabled_{true}, waveform_(0), trigDelay_{0} {} Channel::~Channel() { // TODO Auto-generate...
/*========================================================================= Program: Visualization Toolkit Module: TestGL2PSAddPolyPrimitive.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software ...
//===--- AvailabilityMixin.cpp - Symbol Graph Symbol Availability ---------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
// Input the data from joysticks and send it to seial. // This has two threads. Thread-1 reads joystick commands // Thread-2 sends data to serial. #include <iostream> #include "joystick.h" #include <unistd.h> #include "serialstream.h" #include <thread> using namespace std; using namespace boost::posix_time; atomic<b...
#include <iostream> #include <vector> #include <Eigen/Dense> #include <comma/application/command_line_options.h> #include <comma/application/signal_flag.h> #include <comma/csv/stream.h> #include <comma/csv/binary.h> #include <boost/tokenizer.hpp> struct point { point(): x(0), y(0), z(0), block(0), id(0){} boos...
#include "TEveCompound.h" #include "Fireworks/Calo/interface/FWBoxRecHit.h" #include "Fireworks/Core/interface/Context.h" #include "Fireworks/Core/interface/FWViewEnergyScale.h" #include "Fireworks/Core/interface/CmsShowCommon.h" //______________________________________________________________________________ FWBoxR...
/* //////////////////////////////////////////////////////////// File Name: test.cpp Copyright (c) 2017 <NAME>. All rights reserved. http://www.ysflight.com Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributio...
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/pathops/SkPathOpsBounds.h" #include "src/pathops/SkPathOpsCurve.h" #include "src/pathops/SkPathOpsRect.h" // this cheats and assumes that the perpendicular to t...
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
#include "osrm/exception.hpp" #include "osrm/extractor.hpp" #include "osrm/extractor_config.hpp" #include "util/log.hpp" #include "util/version.hpp" #include <boost/filesystem.hpp> #include <boost/program_options.hpp> #include <cstdlib> #include <exception> #include <new> #include <thread> #include "util/meminfo.hpp...
/*******************************************************************\ Module: CEGIS Command Line Option Processing Author: <NAME>, <EMAIL> \*******************************************************************/ #include <iostream> #include <cbmc/version.h> #include <util/mp_arith.h> #include <util/options.h> #inclu...
#pragma once #include <iostream> #include <ostream> #include <fstream> #include <sstream> #include <iterator> #include <vector> #include <string> #include <cstring> #include <cstdlib> #include <algorithm> #include <iomanip> #include <cmath> #include <math.h> #include <set> #include <cassert> #include...
/* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */ /* * Copyright (c) 1996-1997 The Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * ...
// $Header$ #include "flux/EventSource.h" #include "flux/SpectrumFactoryTable.h" #include "flux/FluxMgr.h" #include "astro/GPS.h" #include "facilities/commonUtilities.h" #include <iostream> #include <fstream> #include <algorithm> #include "TTree.h" #include "TFile.h" #ifdef WIN32 #include "facilities/AssertDialogO...
/** \author: Trasier \date: 2017.04.02 */ #include <bits/stdc++.h> using namespace std; //#pragma comment(linker,"/STACK:102400000,1024000") #include "monitor.h" #include "input.h" enum rule_t { worker, task }; union W_un { double cost; double pay; double rate; }; struct node_t { rule_t type; // 0: task, 1:...
/**************************************************************************** Copyright (c) 2013 cocos2d-x.org http://www.cocos2d-x.org 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 withou...
//===-- WebAssemblyStoreResults.cpp - Optimize using store result values --===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// Copyright (C) 2018 ETH Zurich // Copyright (C) 2018 UT-Battelle, LLC // All rights reserved. // // See LICENSE.txt for terms of usage. // See CITATION.md for citation guidelines, if DCA++ is used for scientific publications. // // Author: <NAME> (<EMAIL>) // // Performance test for CT-INT. // Bilayer lattice with t...
// Copyright (c) 2018-2020 LG Electronics, 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...
/* This test case is meant to create large designs by creating a chain of convolutions. The number of convolutions and size of each convolution is controlled by NUM_CONV and WIN_SIZE respectively using #define statments. In the app directory, running "make clean all" will create from scratch a CoreIR design called...
/* Copyright 2001, 2019 IBM Corporation * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the * following d...
// // Base3DOverlay.cpp // interface/src/ui/overlays // // Copyright 2014 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // // include this before QGLWidget, which includes an earlier version of O...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "precomp.h" #include "InteractDispatch.hpp" #include "conGetSet.hpp" #include "../../interactivity/inc/EventSynthesis.hpp" #include "../../types/inc/Viewport.hpp" #include "../../inc/unicode.hpp" using namespace Microsoft:...
#include <cstring> #include <iostream> #include <vector> #include <wx/filefn.h> // ::wxFileExists, ::wxCopyFile, etc. #include <wx/log.h> #include <wx/string.h> #include <wx/textfile.h> // wxTextFile #include <wx/txtstrm.h> // wxTextInputStream #include <wx/wfstream.h> // wxFileInputStream using namespace std; // cout...
// // DrawPrimitives.cpp // ARClassProject // // Created by 森敦史 on 2019/06/02. // Copyright © 2019 森敦史. All rights reserved. // #include "DrawPrimitives.h" #define GLFW_INCLUDE_GLU #define GL_SILENCE_DEPRECATION #include <GLFW/glfw3.h> #include <math.h> void drawSphere(double r, int lats, int longs) { int ...
/* MIT License Copyright (c) 2019 Lucas "LAK132" Kleiss 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, p...
// Copyright 2021 <NAME> #include "../../../modules/task_3/tkachev_a_graham_pass/graham_pass.h" std::vector<Point> getRandomizedVector(double from, double up_to, uint32_t count) { assert(from < up_to); assert(count > 0); std::mt19937 random_generator(time(NULL)); std::uniform_r...
/* * Copyright (c) 2015 - 2021, Intel Corporation * * 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 condition...
// Copyright (c) 2018-2019 VMware, Inc. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // This module provides an ability for offline DB modifications for a specific // replica. #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fstream> #include <sstream> #include <string> #include "com...