text
stringlengths
3.08k
12.5k
#include "tle.hpp" #include "ellipsoid.hpp" #include <fstream> #include <cmath> #include <ctime> TLE::TLE() {} TLE::~TLE() {} void TLE::readTLE(const char* filename) { std::ifstream file(filename); char title[130]; char line1[130]; char line2[130]; // Read TLE entries until EOF while (!file.eof()) ...
/** * @file * @brief Implementation of the * [N-bonacci](http://oeis.org/wiki/N-bonacci_numbers) series * * @details * In general, in N-bonacci sequence, * we generate sum of preceding N numbers from the next term. * * For example, a 3-bonacci sequence is the following: * 0, 0, 1, 1, 2, 4, 7, 13, 24, 44, 81 ...
/* ---------------------------------------------------------------------- SPPARKS - Stochastic Parallel PARticle Kinetic Simulator http://www.cs.sandia.gov/~sjplimp/spparks.html <NAME>, <EMAIL>, Sandia National Laboratories Copyright (2008) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85...
/* * Copyright (c) 2016, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at w...
/* * Copyright 2017 The Polycube 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 agree...
/* * MIT License * * Copyright (c) 2021 CSCS, ETH Zurich * 2021 University of Basel * * 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 with...
// Game_Music_Emu 0.3.0. http://www.slack.net/~ant/ #include "Track_Emu.h" #include <string.h> #include <math.h> /* Copyright (C) 2005-2006 <NAME>. This module 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 Founda...
// // begin license header // // This file is part of Pixy CMUcam5 or "Pixy" for short // // All Pixy source code is provided under the terms of the // GNU General Public License v2 (http://www.gnu.org/licenses/gpl-2.0.html). // Those wishing to use Pixy source code, software and/or // technologies under different lice...
#include <bits/stdc++.h> #ifdef LOCAL #include "code/formatting.hpp" #else #define debug(...) (void)0 #endif using namespace std; template <typename T, int NDIMS> struct tensor { static_assert(NDIMS >= 0, "NDIMS must be nonnegative"); protected: std::array<int, NDIMS> shape; std::array<int, NDIMS> stri...
/* Copyright 2001 The University of Texas at Austin 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...
/* * Abuse - dark 2D side-scrolling platform game * Copyright (c) 1995 Crack dot Com * Copyright (c) 2005-2011 <NAME> <<EMAIL>> * * This software was released into the Public Domain. As with most public * domain software, no warranty is made or implied by Crack dot Com, by * <NAME>, or by <NAME>. */ #if ...
#include <PresetManager_UI.h> void PresetManager_UI::printHelp(void) { Serial.println(" " + name_for_UI + ": Prefix = " + getPrefix()); //getPrefix() is in SerialManager_UI.h, unless it is over-ridden in this class somewhere Serial.println(" : 1-" + String(n_presets) + ": Switch to Preset 1-" + String(n_preset...
/* Copyright (c) 2018, <NAME> <<EMAIL>> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ...
#include "Engine/Profiling/StackTrace.hpp" #include "Engine/Core/BuildConfig.hpp" #include "Engine/Core/ErrorWarningAssert.hpp" #include "Engine/Core/StringUtils.hpp" #include "Engine/Platform/Win.hpp" #include <algorithm> #include <cstdint> #include <functional> #include <iostream> #include <ostream> #include <sstre...
// -*- C++ -*- // // ---------------------------------------------------------------------- // // <NAME>, U.S. Geological Survey // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://geodynamics.org). // // Copyright (c) 2010-2017 University of California, Davis // // See ...
/* * Copyright (c) 2017, Bosch Software Innovations GmbH. * 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 * n...
//@ { //@ "targets":[{"name":"file_structs.o","type":"object"}] //@ } #include "./file_structs.hpp" #include "./archive_error.hpp" #include <algorithm> #include <span> namespace { template<class T> constexpr int64_t size() { return static_cast<int64_t>(sizeof(T)); } } Wad64::WadInfo::ValidationResult Wad64::...
#include <csignal> #include <opencv2/opencv.hpp> #include <unistd.h> #include"Aimbot/General.h" #include"Aimbot/Armor.h" #include"Aimbot/AngleSolver.h" #include "GxCamera/GxCamera.hpp" using GxCamera::Camera; using GxCamera::CameraParam; namespace{ Color kEnemyColor = BLUE; int kTargetNum = 2; bool st...
/* * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * * 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 * ri...
/******************************************************************************** Copyright (c) 2017 <NAME> / asw204k_AT_yahoo.com All rights reserved. Please see license in the project root directory fro more details */ #include <math.h> #include "oxapp.h" #include "devices/GPS.h" #include "trivial_log.h" #includ...
#include <iostream> #include <vector> #include <utility> #include <set> #include <fstream> #include <string> #include <ctime> #include <chrono> #include <assert.h> #include "thread_pool/thread_pool.cpp" #include "utils.h" using namespace std; struct BinaryEdge { uint32_t src; uint32_t dst; }; /* * Reads an ...
#include "rate_meter.h" using namespace std; // constructor template<class T> rate_meter<T>::rate_meter(uint32_t max_samples_) { sample_history = nullptr; history_time = nullptr; cumulative = 0; samples = 0; max_samples = 0; sample_ptr = 0; set_history(max_samples_); } // copy constructor template<class T> ra...
#include <arpa/inet.h> #include <netinet/in.h> #include <boost/any.hpp> #include <boost/scoped_array.hpp> #include <boost/bind.hpp> #include <muduo/net/InetAddress.h> #include <muduo/base/Logging.h> #include <muduo/net/EventLoop.h> #include <muduo/base/StringPiece.h> #include "ConnectTunnel.h" #include "BindTunnel.h"...
// -*- C++ -*- // // ---------------------------------------------------------------------- // // <NAME>, U.S. Geological Survey // <NAME>, GNS Science // <NAME>, University at Buffalo // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://geodynamics.org). // // Copyright ...
/* the vast starry sky, bright for those who chase the light. */ #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pii; #define mk make_pair const int inf=(int)1e9; const ll INF=(ll)5e18; const int MOD=998244353; int _abs(int x){return x<0 ? -x : x;} int add(int x,int y){x+=y; ret...
#include <Windows.h> #include <iostream> #include <fstream> #include <sstream> #include <bitset> #include <string> #include <vector> #include "CommunicationPort.h" typedef unsigned int uint; using namespace std; int main (); void SetupInstructionMemory (); void SetupCommunicationPort (); bool Pre...
#include <math.h> //#include <iostream> //using namespace std; //Trigonometric constants const float sqrt3 = sqrt(3.0); const float sin120 = sqrt3/2.0; const float cos120 = -0.5; const float tan60 = sqrt3; const float sin30 = 0.5; const float tan30 = 1/sqrt3; //Robot dimensions float effector_side; float ...
#include "TrapManipulator.hpp" #include "ActionTextKeys.hpp" #include "AnimationTranslator.hpp" #include "CombatManager.hpp" #include "Conversion.hpp" #include "CreatureUtils.hpp" #include "CurrentCreatureAbilities.hpp" #include "DamageCalculatorFactory.hpp" #include "EffectFactory.hpp" #include "Game.hpp" #include "Ga...
/* Syn's AyyWare Framework 2015 */ #include "MathFunctions.h" #include "CommonIncludes.h" void AngleVectors(const Vector &angles, Vector *forward) { Assert(s_bMathlibInitialized); Assert(forward); float sp, sy, cp, cy; sy = sin(DEG2RAD(angles[1])); cy = cos(DEG2RAD(angles[1])); sp = sin(DEG2...
/* * Copyright 2007-2021 CM4all GmbH * All rights reserved. * * author: <NAME> <<EMAIL>> * * 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 ...
#include "stdafxRendering.h" #include <ElkTools/Debug/Log.h> #include <ElkTools/Utils/Profiler.h> #include "ElkRendering/Managers/RenderingManager.h" #include "ElkRendering/Debug/GLDebug.h" ElkRendering::Managers::RenderingManager::RenderingManager() : RenderingManager(800, 600) { } ElkRendering::Managers::Renderi...
/* -------------------------------------------------------------------------- CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-17 <NAME> CppAD is distributed under the terms of the Eclipse Public License Version 2.0. This Source Code may also be made available under the following Secondary Lice...
#include <glib-object.h> #include <json-glib/json-glib.h> #include "GraniteManager.h" #include "NetClient.h" #include "Helpers.h" #include "Error.h" #include "RequestInfo.h" using namespace std; using namespace Tizen::ArtikCloud; GraniteManager::GraniteManager() { } GraniteManager::~GraniteManager() { } static ...
/** * @file Bilinear.cxx * @brief Implementation for Bilinear * * $Header: /nfs/slac/g/glast/ground/cvs/ScienceTools-scons/irfs/latResponse/src/Bilinear.cxx,v 1.10 2010/08/12 05:43:11 jchiang Exp $ */ #include <cmath> #include <algorithm> #include <iostream> #include <stdexcept> #include <vector> #include "st_...
#include "beachline.h" #include <cstring> #include <algorithm> #include <iostream> // SkipNode Implementation // SkipNode::SkipNode(SiteEvent* s) { memset(skips, 0, sizeof(SkipNode*) * 8); memset(p_skips, 0, sizeof(SkipNode*) * 8); prev = next = NULL; site = s; sweepline_pos = 0.0; range_end...
#include "cryptoview.h" #include "ui_cryptoview.h" #include "coin.h" #include <QJsonDocument> #include <QJsonArray> #include <QJsonObject> #include <QList> // Databse Path static const QString path = "coins.db"; CryptoView::CryptoView(QWidget *parent) : QMainWindow(parent), ui(new Ui::CryptoView) { ui->s...
//===-- MICmdCmdSymbol.cpp --------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
#include <ESP8266WiFi.h> #include <ESP8266mDNS.h> #include <ArduinoOTA.h> #include <FS.h> #include <Hash.h> #include <ESPAsyncTCP.h> #include <ESPAsyncWebServer.h> #include "AqvaServer.h" #include <functional> #include "SPIFFSEditor.cpp" #include "AqvaServerApiHandler.cpp" #include <ArduinoJson.h> #include "Constants....
//------------------------------------ // symtab.cpp // (c) <NAME>, 1994 //------------------------------------ #include "symtab.h" #include <cassert> #include <cstring> #include <cmath> #include <iostream> #include <new> // for placement new using std::cout; using std::endl; double CoTan (double x)...
#include "Particle.h" #include "App.h" #include "Render.h" #include "ParticleSystem.h" #include "Defs.h" #include "Log.h" Particle::Particle(fPoint pos, float initialSpeed, float finalSpeed, float angle, double rotSpeed, fPoint initialSize, fPoint finalSize, uint life, SDL_Rect texRect, SDL_Color initialColor, SDL_Co...
/*======================================================================== == AltimitGS.cpp handles GSlib init, font and texture == == (c) 2004 t0mb0la (<EMAIL>) == == Refer to the file LICENSE in the main folder for license information == ======================================================================...
/* * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
// Copyright 2020 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 "chrome/browser/web_applications/chrome_pwa_launcher/launcher_update.h" #include <windows.h> #include "base/bind.h" #include "base/check.h" #in...
#include <Arduino.h> #include <BasicLinearAlgebra.h> #include <CommandInterpreter.h> #include <Streaming.h> #include "DataLogger.h" #include "DriveSystem.h" #include "Utils.h" ////////////////////// CONFIG /////////////////////// const int PRINT_DELAY = 10000; // micros, 100hz const int HEADER_DELAY = 5000; /...
#include <cstdio> #include <cstdlib> #include <vector> #include <string> #include <cstring> #include <queue> #include <stack> #include <algorithm> #include <iostream> #include <map> #include <cmath> #include <set> #include <cassert> #include <ctime> using namespace std; typedef long long ll; int vis[205][205]; int ...
// 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 "fxt_spinel_vk_svg.h" #include "spinel/ext/svg2spinel/svg2spinel.h" #include "spinel/ext/transform_stack/transform_stack.h" #include "svg/svg.h" ...
#include "PPU.h" #include "Logger.h" #include "string_formatting.h" #include <iostream> // Ignore Background Palette Register //#define PPU_IGNORE_BPR PPU::PPU(SDL_Renderer *renderer, Memory *memory) : m_rendererPtr{renderer}, m_memoryPtr{memory}, m_texture{SDL_CreateTexture( m_rendererP...
/* * talk.cc for Legend of Saladir * * (C)1997/1998 <NAME> * */ #include "saladir.h" #include "output.h" #include "types.h" #include "creature.h" #include "monster.h" #include "quest.h" #include "talk.h" #include "NPCtalk.h" typedef struct _Swordfilt { char *orig; char *replace; } Twordfilter; c...
// Copyright (c) 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 agre...
/**************************************************** Date: September 21, 2019 Successful submissions : 2 Time expiration : 0 Not Solved : 2 ****************************************************/ /* Q: How Many Apples Can You Put into the Basket You have some apples, where arr[i] is the weight of the i-th a...
// Copyright (c) 2021 Mathema GmbH // SPDX-License-Identifier: BSD-3-Clause // Author: <NAME> (Kio!) // Copyright (c) 2021 <EMAIL> // BSD 2-clause license #include <stdio.h> #include <math.h> #include "pico/stdlib.h" #include "hardware/adc.h" #include "hardware/irq.h" #include "hardware/regs/intctrl.h" // Scheiß Such...
//======================================================================== // // StructTreeRoot.cc // // This file is licensed under the GPLv2 or later // // Copyright 2013, 2014 Igalia S.L. // Copyright 2014 <NAME> <<EMAIL>> // //======================================================================== #ifdef USE_GCC_...
#include "PhysicsEngineApp.h" #include "Texture.h" #include "Font.h" #include "Input.h" #include "glm\glm.hpp" #include "glm\ext.hpp" #include <Gizmos.h> #include <glm\vec2.hpp> #include "Sphere.h" #include "Plane.h" #include <random> PhysicsEngineApp::PhysicsEngineApp() { } PhysicsEngineApp::~PhysicsEngineApp() { ...
#include "ga.h" #include "config.h" #include "file.h" GA::GA(Problem &pr, int population_size, std::string file_name): pr{pr}, file_name{file_name} { initialize_population(population_size); } void GA::initialize_population(int population_size){ for (int i=0; i<population_size; ++i) { population.push_...
// // Copyright (c) 2017 The Khronos Group 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...
/** * Implements XDocIdType, which handles conversion between int and string representations of cross-doc IDs. * * @file XDocIdType.cpp * @author <EMAIL> * @date 2011.06.13 **/ #include "Generic/common/leak_detection.h" #include "Generic/common/SessionLogger.h" #include "boost/lexical_cast.hpp" #include...
/* microsoft-oms-auditd-plugin Copyright (c) Microsoft Corporation All rights reserved. MIT License 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, in...
#include <cmath> #include <memory> #include <iostream> #include "ImageAnalyzer.h" ImageAnalyzer::ImageAnalyzer(GreyScaleImage::Ptr img) { _img = img; } BYTE ImageAnalyzer::applyOperator(COORD x, COORD y, const Operator& op) { if(x<1 || x>_img->size().x-2 || y<1 || y>_img->size().y-2) { std::cerr <...
/* <orly/csv_to_bin/time_pnt_parser.cc> Implements <orly/csv_to_bin/time_pnt_parser.h>. Copyright 2010-2014 OrlyAtomics, 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 h...
/* * Copyright (c) 2016-2018 ARM Limited. * * SPDX-License-Identifier: MIT * * 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 * ri...
#include "style_editor.hpp" #include "line_edit.hpp" #include "group_box.hpp" StyleEditor::StyleEditor() : ScrolledBox(Align::Vertical) { Style &s = Application::get()->dc->default_style; Box *h_box = new Box(Align::Horizontal); Button *light = new Button("Light"); light->onMouseClick.ad...
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- // // Unit tests for the AP_Math polygon code // #include <AP_HAL/AP_HAL.h> #include <AP_Math/AP_Math.h> const AP_HAL::HAL& hal = AP_HAL::get_HAL(); /* * this is the boundary of the 2010 outback challenge * Note that the last point mus...
/* https://practice.geeksforgeeks.org/problems/boundary-traversal-of-binary-tree/1 Boundary Traversal of binary tree Medium Accuracy: 26.78% Submissions: 100k+ Points: 4 Given a Binary Tree, find its Boundary Traversal. The traversal should be in the following order: Left boundary nodes: defined as the path from the...
// Copyright 2020 Samsung Electronics Co., Ltd. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "tizen_vsync_waiter.h" #include <eina_thread_queue.h> #include "flutter/shell/platform/tizen/flutter_tizen_engine.h" #include "flutter/...
/*! \file vulkan_clspv_test1.cpp \author <NAME> Copyright (c) 2015-2019 <NAME> This software is released under the MIT License. http://opensource.org/licenses/mit-license.php */ // Standard C++ library #include <array> #include <fstream> #include <iostream> #include <stdexcept> #include <string> #include ...
// The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt /* This example shows how to do semantic segmentation on an image using net pretrained on the PASCAL VOC2012 dataset. For an introduction to what segmentation is, see the accompanying header file dnn_semantic_segmen...
#include <map> #include <algorithm> #include <utility> #include <ui.h> #include <machine.h> #include <GameState.h> using namespace GameState; std::vector <int> Machine::check(int px, int py, int icon_) { const int _x = px, _y = py; int ss[8] = {0}; int l = 0, r = 0, i, j; //row for (i = _x - 1; ...
#include <Rcpp.h> using namespace Rcpp; // Defining the current local bin of points to test // [[Rcpp::export]] NumericMatrix getArea3(NumericMatrix mat, int xi, int yi, int xbin_col, int ybin_col){ LogicalVector condition1 = (mat(_,xbin_col)==xi)*(mat(_,ybin_col)==yi); int m1=mat.ncol(); int n1=mat.nr...
#include <algorithm> #include <cassert> #include <iostream> #include <numeric> #include <optional> #include <sstream> #include <vector> const std::vector<std::string> original_reference{"abcefg", "cf", "acdeg", "acdfg", "bcdf", "abdfg", "abdefg", "acf", "abcdefg", "abcdfg"}; void adjust_patterns(std::vector<std::stri...
// Copyright 2020 <NAME> <EMAIL> #include "handler_json.hpp" #include "student.hpp" #include <iostream> #include <iomanip> #include <sstream> handler_json::handler_json(const std::string &jsonPath) { json data; if (jsonPath[0] != '{') { if (jsonPath.empty()) { throw std::invalid_argument(...
#include <iostream> #include <vector> #include <algorithm> #include <cmath> using namespace std; double INF = 1e100; double EPS = 1e-12; struct PT { double x, y; PT() {} PT(double x, double y) : x(x), y(y) {} PT(const PT &p) : x(p.x), y(p.y) {} PT operator-(const PT &p) const { return ...
#include "measurement.h" #include "../sf2drivers/drivers/mss_gpio/mss_gpio.h" #include "../sf2drivers/drivers/mss_timer/mss_timer.h" #include "../tools/msghandler.h" #include "../tools/tools.h" #include "dapi.h" Measurement &Measurement::getInstance () { static Measurement instance; return instance; } Meas...
#include <moon_simulator.hpp> #include <algorithm> #include <cassert> #include <iterator> #include <numeric> #include <ostream> #include <regex> #include <tuple> Vector3::Vector3() :x(0), y(0), z(0) { } Vector3::Vector3(int xx, int yy, int zz) :x(xx), y(yy), z(zz) { } Vector3 operator+(Vector3 const& lhs, V...
#include <iostream> #include "CLSeamCarver.hpp" #include "clProgram.hpp" using namespace std; void assert_throw(bool condition, string message) { if(!condition) { throw runtime_error(message); } } template<typename T> void setKernelArgsInternal(int index, cl::Kernel& kernel, T const& arg) { assert_throw(kernel....
// // Copyright (c) 2017, Intel Corporation // 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 conditi...
#include <tpf_output.hpp> namespace types = tpf::types; template<typename... Types> using type_list_t = types::type_list_t<Types...>; tpf::sstream stream; auto endl = tpf::endl; template<size_t LastN, typename LeftList, typename RightList> struct last_n_types_list_st; template<> struct last_n_types_list_st<0, type...
#include <iostream> #include <algorithm> #include <fstream> #include <chrono> #include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/calib3d/calib3d.hpp> #include <opencv2/highgui/highgui.hpp> #include "ygz/Frame.h" #include "ygz/Feature.h" #include "ygz/Settings.h" #include "ygz/OR...
#include <fstream> #include <iostream> #include <stdio.h> #include "protocell.h" #include "mytypes.h" #include "random.h" Protocell::Protocell(long myid, long idparent) { protocellid = myid; parentid = idparent; Reset(); } Protocell::~Protocell(void) { protocellcontents.clear(); } void Protocell::Reset(void...
/****************************************************************************** This source file is part of the Avogadro project. Copyright 2018 Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software distri...
/* // Copyright (c) 2018 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
#include <algorithm> #include <iostream> #include <cmath> #include <map> #include <string> #include <iterator> #include "cost.h" #include "helpers.h" using namespace std; Vehicle::Vehicle(){} Vehicle::Vehicle(double id, int lane, CarState car_state, string FSM_state) { this->id = id; this->lane = lane; this->c...
/* * Copyright (C) 2006-2021 Intel Corporation. * SPDX-License-Identifier: MIT */ #include <cstdio> #include <cstring> #include <iostream> #include <sstream> #include <iomanip> #include <fstream> #include <cstdlib> #include <map> #include "pin.H" #include "instlib.H" using std::iostream; using std::ostringstream; ...
/* * Copyright 2016 Hewlett Packard Enterprise Development LP * * 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 a...
/* * Copyright (c) 2014 * Canonical, Ltd. (All rights reserved) * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License published by the Free Software Foundation. * * This program is distributed in the hope that i...
#include <iostream> #include "opencv2/highgui/highgui.hpp" #include "CVMain.h" using namespace cv; CVMain::CVMain() { // grin detection tweak // - use 2 for mouth detector // - use big number like 70-140 for smile detector // TODO -- tune during start - up ? // magic = 140; } CVMain::~CVMain() { ...
#include "netcom_base.hpp" #include <scoped.hpp> #include <iostream> namespace netcom_exception { base::base(const std::string& s) : std::runtime_error(s) {} base::base(const char* s) : std::runtime_error(s) {} base::~base() noexcept {} } netcom_base::netcom_base() : out_(cout) {} netcom_base::netcom_bas...
// // Created by Gen2 on 2020-02-03. // #include "DataItem.h" #include <nlohmann/json.hpp> #include "../utils/JSON.h" #include "../models/CollectionData.h" using namespace gs; using namespace gc; using namespace std; gc::Ref<DataItem> DataItem::fromData(const gc::Ref<BookData> &data) { Ref<DataItem> item(new_t(D...
#ifdef _WIN32 # define WINDOWS_LEAN_AND_MEAN # define NOMINMAX # include <windows.h> #endif #define DPCT_USM_LEVEL_NONE #include <CL/sycl.hpp> #include <dpct/dpct.hpp> #include <float.h> #include "bucketsort.h" #include "mergesort.h" #define TIMER ///////////////////////////////////////////////////////////////////...
/*========================== begin_copyright_notice ============================ Copyright (c) 2021 Intel Corporation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includin...
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: <NAME>, et al. (see THANKS for the full author list) * See LICENSE for the license information * ------------...
/******************************Module*Header*******************************\ * Module Name: rotate.hxx * * This defines the structures and flags used by EngPlgBlt * * Created: 06-Aug-1992 11:30:45 * Author: <NAME> [donalds] * * Copyright (c) 1992-1999 Microsoft Corporation \************************************...
#include <Arduino.h> #include <time.h> #include "UplinkModule.h" #include <config.h> /******************************************** CONSTRUCTORS ********************************************/ /** * @brief Construct a new GPRSHelper object * * @param stream The HardwareSerial used communicate with the GPRS module *...
/** @cond IGNORE ====================================================== SFSEXP: Small, Fast S-Expression Library version 1.2 Written by <NAME> (<EMAIL>) ====================================================== Copyright (2003-2006). The Regents of the University of California. This material was produced under U.S. Go...
/******************************************************************************* * Copyright (c) 2009-2016, MAV'RIC Development Team * 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. R...
// Copyright (c) 2014-2021 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...
// // download_update.cpp - download web update implementation // // leccore library, part of the liblec library // Copyright (c) 2019 <NAME> (alecmus at live dot com) // // Released under the MIT license. For full details see the // file LICENSE.txt // #include "../web_update.h" #include "../leccore_common.h" #includ...
#pragma once /* * This file declares and implements a class representing a cubic spline. * After instantiating a Spline points (x, y) can be added; call calculate() * to compute coefficients of the cubic polynomial for each interval. * Spline::operator()(double x) computes the corresponding value of y * according...
#include "echo_server.h" #include <iostream> #include <3rdparty/msgpack/msgpack.hpp> #include <3rdparty/msgpack/rpc/server.h> #include <3rdparty/msgpack/rpc/client.h> #include <3rdparty/msgpack/cclog/cclog.h> #include <3rdparty/msgpack/cclog/cclog_tty.h> #include <signal.h> #include <util/ustring/UString.h> #include <...
#include "httpreqdata.h" #include <library/cpp/case_insensitive_string/case_insensitive_string.h> #include <util/stream/mem.h> #include <util/string/join.h> #include <array> #ifdef _sse4_2_ #include <smmintrin.h> #endif TBaseServerRequestData::TBaseServerRequestData(SOCKET s) : Socket_(s) , BeginTime_(Micr...
/* This tutorial is the very first step to learn how to build meta data. All the libraries, cpgf reflection, cpgf serialization, cpgf script binding, are heavily depending on meta data. This tutorial demonstrates: 1, Reflect global method. 2, Reflect class, object method, and object field. 3, Add meta data t...