text
stringlengths
3.08k
12.5k
#include <iostream> #include <util/std_expr.h> #include <util/std_code.h> #include <util/arith_tools.h> #include <util/simplify_expr.h> #include <goto-programs/goto_program.h> #include "overflow_instrumenter.h" #include "util.h" //#define DEBUG /* * This code is copied wholesale from analyses/goto_check.cpp. */ ...
#include "vertexStream.h" #include "arrayFunc.h" #include <cassert> namespace vertexStreamSys { void streamBase :: setNormal ( const vec3& norm ) { vertNext.norm = norm; } void streamBase :: setTexCoord( const vec2& tc ) { vertNext.tex = tc; } void streamBase :: setColour ( const col...
#include "GstPipelineImpl.h" #include <string> #include <thread> extern "C" { #include <gst/gst.h> } class FGstPipelineTick : public IGstPipeline { public: FGstPipelineTick() {} ~FGstPipelineTick() { Shutdown(); } virtual void Destroy(); virtual bool Init(const char* Name, const char* Config); ...
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. 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...
/************************************************************************* * * * Vega FEM Simulation Library Version 2.2 * * * * "StVK" library , ...
/* UniqueNumber.cpp (c)2005 Palestar, <NAME> */ #include "UniqueNumber.h" #include "String.h" #include "Time.h" #include "Atomic.h" #include "Settings.h" #include "Debug/Log.h" #include <time.h> #include <stdio.h> #pragma warning(disable:4996) // This function or variable may be unsafe. Consider using sscanf_s ins...
// Copyright 2017 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...
/* Write and read long data string to I2C EEPROM maximum is 65536 bit. i.e. address stops at 65535. Extra data will wrap over to address 0 <NAME> August 2018 Copyright (c) 2018 Petoi LLC. The MIT license Permission is hereby granted, free of charge, to any person obtaining a copy of this soft...
#include "cvdrawingutils.h" #include <fstream> #include <iostream> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <sstream> #include <string> #include <stdexcept> using namespace std; using namespace cv; using namespace aruco; // default capture width and height const int FRAME...
#include <stdio.h> #include <iostream> #include <iomanip> #include <cstdlib> #include <cmath> #include <sys/time.h> #include <thread> #include <vector> #include <omp.h> #include <poc_types.h> using namespace std; void torus32PolynomialMultNaive_mod_XNplus1(Torus32* __restrict result, const int* __restrict poly1, con...
/* * This file is part of the Simutrans project under the Artistic License. * (see LICENSE.txt) */ #include "gui_frame.h" #include "components/gui_button.h" #include "components/gui_divider.h" #include "components/action_listener.h" #include "../world/simworld.h" #include "../tool/simmenu.h" #include "simwin.h" #i...
#include "index.hpp" #include <iterator> #include "svd.hpp" #include "gl-gizmo.hpp" #include "octree.hpp" constexpr const char basic_wireframe_vert[] = R"(#version 330 layout(location = 0) in vec3 vertex; layout(location = 2) in vec3 inColor; uniform mat4 u_mvp; out vec3 color; void main() { ...
/* *Author:GeneralSandman *Code:https://github.com/GeneralSandman/TinyWeb *E-mail:<EMAIL> *Web:www.dissigil.cn */ /*---XXX--- * **************************************** * */ #include <tiny_base/api.h> #include <tiny_base/log.h> #include <tiny_core/connector.h> #include <tiny_core/eventloop.h> #include <tiny_...
/* * pca.cpp * * Author: * <NAME> <kevinhughes27[at]gmail[dot]com> * * Special Thanks to: * <NAME> <bytefish[at]gmx[dot]de> * * This program demonstrates how to use OpenCV PCA with a * specified amount of variance to retain. The effect * is illustrated further by using a trackbar to * change the value for retained ...
#include "hooks.h" #include "utils.h" void* g_mBase = nullptr; namespace hooks { // globals RaceManager** g_race_manager = nullptr; InputManager** input_manager = nullptr; PlayerManager** m_player_manager = nullptr; StateManager** state_manager_singleton = nullptr; MainLoop** main_loop = nullptr; STKConfi...
#include "swap.hpp" void swap::init(const name token_contract, const symbol_code token_symbol, uint32_t tx_max_age, uint64_t min_tx_value, uint64_t max_tx_value, uint64_t global_swap_limit, uint32_t limit_reset_time_sec) { require_auth(get_self()); eosio::check(is_account(token_con...
//class String //{ //public: // void PrintLn() { // for (int i=0; i<len; i++) // printf("%c",m_Str[i]); // printf("\n"); // } // // String(const char* str) { // printf("Created\n"); // len = strlen(str); // m_Str = new char[len]; // strcpy(m_Str,str); // ...
////////////////////////////////////////////////////////////////////// // CPathSplit.cpp - Kochise 2002-2004 // #include "stdafx.h" #include "CPathSplit.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif //////////////////////////////////////////////////////...
// // Created by <NAME> (EI) on 07/04/2020. // #include "PathFinder.hpp" #include <sdglib/views/NodeView.hpp> PFScoredPath::PFScoredPath(const PathFinder &_pf, sgNodeID_t _from, sgNodeID_t _to):pf(_pf),path(_pf.ws.sdg),from(_from),to(_to){ } void PFScoredPath::find_hits() { //this imposes a delta change of 63 ...
/************************************************************************ * Copyright 2008, Strathclyde Planning Group, * Department of Computer and Information Sciences, * University of Strathclyde, Glasgow, UK * http://planning.cis.strath.ac.uk/ * * <NAME>, <NAME> and <NAME> - VAL * <NAME> - PDDL Parser * * ...
// Copyright 2019 The Bazel 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 appl...
// BEGIN CUT HERE // END CUT HERE #line 5 "TaroFriends.cpp" #include <cstdlib> #include <cctype> #include <cstring> #include <cstdio> #include <cmath> #include <algorithm> #include <vector> #include <string> #include <iostream> #include <sstream> #include <map> #include <set> #include <queue> #include <stack> #include...
#include <examples/wordfreq/partition.h> #include <examples/wordfreq/wordfreq.pb.h> #include <muduo/base/CountDownLatch.h> #include <muduo/base/Exception.h> #include <muduo/base/Logging.h> #include <muduo/net/EventLoop.h> #include <muduo/net/EventLoopThread.h> #include <muduo/net/InetAddress.h> #include <muduo/net/Tcp...
#include "Audio.h" #include <map> #include "Client.h" uint16_t audioLevel = 0; float gain = 1.0f; void AudioManager::voice(const char * name, Vector3 pos, std::vector<uint32_t> args) { if (gain == 0.0f || mSource.size() + mVoice.size() >= mSize || mVoice.size()>=4 || mVoiceFormat.find(name) == mVoiceFormat...
#include "utility.h" #include <SFML/Graphics/Sprite.hpp> #include <SFML/Graphics/Text.hpp> #include <cmath> #include <SFML/Window/VideoMode.hpp> #include <iostream> #include <SFML/System/Clock.hpp> void centerOrigin(sf::Sprite &sprite) { sf::FloatRect bounds = sprite.getLocalBounds(); sprite.setOrigin(std::flo...
#include "nlpPriDec_ex9_sparse_raja.hpp" #include "hiopAlgPrimalDecomp.hpp" #ifdef HIOP_USE_GPU #include "magma_v2.h" #endif #include <umpire/Allocator.hpp> #include <umpire/ResourceManager.hpp> #include <RAJA/RAJA.hpp> #include <cstdlib> #include <string> #ifdef HIOP_USE_MPI #include "mpi.h" #else #ifndef MPI_Com...
/* * Copyright (c) 2021, [Ribose Inc](https://www.ribose.com). * 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,...
/* Copyright 2016 Silent Circle, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1997, 2016 Oracle and/or its affiliates. All rights reserved. * * $Id$ */ #include <sys/types.h> #include <errno.h> #include <iostream> #include <iomanip> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> ...
#include "texture.h" #include "stb/stb_image.h" #include "glutils.h" #include <iostream> /*static*/ GLuint Texture::loadTexture(const std::string& fName) { int width, height; unsigned char* data = Texture::loadPixels(fName, width, height); GLuint tex = 0; if (data != nullptr) { glGenTextures(1, &tex); glBindT...
#include "Instance.h" #include "OutputDirectory.h" #include "http/HttpClient.h" #include "pkcs/Pkcs12.h" #include "pkcs/Pkcs7Signed.h" #include "utils/StackOf.h" #include "x509/X509Certificate.h" #include "x509/X509Store.h" #include "x509/extensions/AuthorityInformationAccess.h" #include "x509/extensions/CrlDistributio...
/* // Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a // component of the Texas A&M University System. // All rights reserved. // The information and source code contained herein is the exclusive // property of TEES and may not be disclosed, examined or reproduced // in whole or in part ...
//===- ARCISelDAGToDAG.cpp - ARC dag to dag inst selector -------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* * Copyright (c) 2008 <NAME>, <NAME>, <NAME> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR...
/* ; Project: Open Vehicle Monitor System ; Date: 9th March 2020 ; ; Changes: ; 1.0 Initial release ; ; (C) 2011 <NAME> / Stegen Electronics ; (C) 2011-2017 <NAME> ; (C) 2011 <NAME> @ EPRO/DX ; ; Permission is hereby granted, free of charge, to any person obtaining a c...
// Copyright (c) Microsoft Corporation // SPDX-License-Identifier: MIT #include <cassert> #include <stdexcept> #include "api_internal.h" #include "api_common.hpp" #pragma warning(push) #pragma warning(disable : 4100) // 'identifier' : unreferenced formal parameter #pragma warning(disable : 4244) // 'conversion' conver...
#include "WifiModes.h" WifiModes::WifiModes(Config* conf){ config = conf; seted_mode = digitalRead(PIN_BUTTON); config->setWifiMode(seted_mode); } void WifiModes::begin(){ ConsolePrintMarkLine(); wifiScan(); pinMode(PIN_LED_GREEN, OUTPUT); pinMode(PIN_LED_YELLOW, OUTPUT); pinMode(PIN_RELE, OUTPUT); WiFi....
#include "solver_utils.h" void solver_getrows(SolverAbstract::Ptr const solver_p, std::vector<int> & mstart_p, std::vector<int> & mclind_p, std::vector<double> & dmatval_p, int first_p, int last_p) { int nelems_returned = 0; solve...
/* * @Author: Beal.MS * @Date: 2021-05-23 22:25:22 * @Last Modified by: Beal.MS * @Last Modified time: 2021-05-23 22:25:22 * @Description: */ #include <memory> #include <fstream> #include <string> #include <iostream> #include <streambuf> #include "rclcpp/rclcpp.hpp" #include "std_msgs/msg/float64_multi_a...
// Begin CVS Header // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/MIRIAMUI/CQRDFTreeView.cpp,v $ // $Revision: 1.5 $ // $Name: $ // $Author: shoops $ // $Date: 2011/05/17 13:10:27 $ // End CVS Header // Copyright (C) 2011 - 2010 by <NAME>, Virginia Tech Intellectual // Properties, Inc., Unive...
#include "DataFormats/ParticleFlowReco/interface/PFDisplacedVertexCandidate.h" #include "DataFormats/TrackReco/interface/Track.h" #include "DataFormats/Math/interface/Point3D.h" using namespace std; using namespace reco; PFDisplacedVertexCandidate::PFDisplacedVertexCandidate(){} void PFDisplacedVertexCandidate::ad...
/* * 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 disclaimer. * * 2. Redistribu...
/* Copyright (c) 2003-2013 uim Project http://code.google.com/p/uim/ All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list...
#include "Globals.h" #include "Application.h" #include "ModuleEditor.h" #include "ModuleWindow.h" #include "ModuleRenderer3D.h" #include "ModuleCamera3D.h" #include "ModuleInput.h" #include "ModuleScene.h" #include <string> #include "ImGui/imgui.h" #include "ImGui/imgui_impl_opengl3.h" #include "ImGui/imgui_impl_sdl.h...
#include <iostream> #include <stdlib.h> #include <fstream> #include "benchmark_runner.hpp" using namespace std; using namespace caf; class config : public actor_system_config { public: int num_chameneos = 100; int num_meetings = 200000; config() { opt_group{custom_options_, "global"} .add(num_chameneo...
//----------------------------------------------------------------------------- // File : DataDpmEmu.cpp // Author : <NAME> <<EMAIL>> // Created : 11/05/2015 // Project : //----------------------------------------------------------------------------- // Description : Container for Wavefor...
#include "barycentric-fn.hpp" Barycentric_transformation::Barycentric_transformation(const array_t &coord, const conn_t &connectivity, const double_vec &volume) : coeff_(connectivity.size()) { #pragm...
#include <prism/logging.h> #include "app_context.h" #include "socket.h" #include "packet.h" #include "meter.h" #include "epoll_helper.h" #include "thread_proto.h" const int kMaxPrio = 16; const int kBasePort = 5555; class ClientApp { public: ClientApp(AppContext& ctx) : ctx_{ctx} {} int Run(int base_tos); A...
#include <bits/stdc++.h> #ifdef LOCAL #include "code/formatting.hpp" #else #define debug(...) (void)0 #endif using namespace std; #define long int64_t static_assert(sizeof(int) == 4 && sizeof(long) == 8); template <uint32_t mod> struct modnum { // change these if you need another size of integers using u32 = ...
// Copyright 2015-2019 Parity Technologies (UK) Ltd. // This file is part of Parity Ethereum. // Parity Ethereum 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 yo...
#include "gtest/gtest.h" #include "../src/ProcessParser.h" const string DIGIT_PATTERN = "0123456789"; const string DIGIT_FLOAT_PATTERN = "0123456789."; static float get_sys_active_cpu_time_test(string corenumber) { vector<string> values = ProcessParser::getSysCpuPercent(corenumber); if (values.size() == 0) r...
/// Source : https://leetcode.com/problems/my-calendar-ii/description/ /// Author : liuyubobobo /// Time : 2017-11-18 #include <iostream> #include <vector> using namespace std; /// Dynamic Segment Tree /// Time Complexity: O(nlogn) /// Space Complexity: O(n) class MyCalendarTwo { private: struct Node{ ...
/* Copyright 2019-2020 Canaan 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 t...
#include "Processor.h" #include <fstream> #include <string> #include <iomanip> #include <sstream> #include <unordered_set> #include <math.h> using namespace std; /*************************************************************** Either using a supplied filename, this function formatss a string containing system info. ...
#include "Statistics.h" #include "StableMarriage.h" #include "Vertex.h" #include "PartnerList.h" #include "Utils.h" #include <map> #include <iostream> Statistics::Statistics() { //initially set all statistics to zero S = 0; BPC = 0; BR = 0; R1 = 0; def = 0; } Statistics::~Statistics() {} //du...
/// /// @file pi_deleglise_rivat.cpp /// @brief 64-bit and 128-bit parallel implementations of the /// Deleglise-Rivat prime counting algorithm. /// /// Deleglise-Rivat formula: /// pi(x) = pi(y) + S1(x, a) + S2(x, a) - 1 - P2(x, a) /// S2(x, a) = S2_trivial(x, a) + S2_easy(x, a) + S2_hard(...
#include <QRectF> #include <geom/box.h> #include "manager/model.h" Model::Model() = default; Model::~Model() { delAllCurves(); } void Model::delAllCurves() { } RectUtils::RectF Model::boundingBox() { if (mCurves.empty()) return {0, 10, 0, 10}; RectUtils::RectF box = mCurves[0]->boundingBox(); for (const ...
/* * fs/bucket_volume_key.cc * ------------------------------------------------------------------------- * In-bucket volume key management functions. * ------------------------------------------------------------------------- * * Copyright (c) 2013, <NAME>. * * Licensed under the Apache License, Version 2.0 (t...
// NOSE DETECTOR #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include "opencv2/objdetect/objdetect.hpp" #include <iostream> #include <QDebug> using namespace cv; using namespace std; Mat main_overlayNose(string faceCascadeName, string noseCascadeName, string sAbsFNPicWithFace, stri...
// QP.cpp // // Classes for doing quoted-printable encoding and decoding // // Copyright (c) 1994-2000 by QUALCOMM, Incorporated /* Copyright (c) 2016, Computer History Museum All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitatio...
// 569C_primes.cc - Codeforces.com/problemset/problem/569/C Primes program by Sergey 2015 #include <bits/stdc++.h> using namespace std; /////////////////////////////////////////////////////////////////////////////// // Unit tests base Class /////////////////////////////////////////////////////////////////////////////...
/** * battle.cpp * Student Name : <NAME> * Student ID : 150180033 * */ #include <iostream> #include <chrono> #include <fstream> #include <sstream> #include <string> #include "game.h" #define ARG_COUNT 3 using namespace std; Game readFromFile(vector<string>); int main(int argc, char** argv) { if (argc...
#include <iostream> // allows program to perform input and output #include <Windows.h> using std::cout; // program uses cout using std::cin; // program uses cin using std::endl; // program uses endl long double factorial(long double, long double); long double exponent(long double, int); long double taylorSeriesAeX(lo...
#include "Html5Exporter.h" #include "Converter.h" #include "FileReader.h" #include "Files.h" #include "Haxe.h" #include "ImageTool.h" #include "Options.h" #include "StringHelper.h" #include <sstream> using namespace kmd; using namespace hake; using namespace kake; namespace { std::string readFile(std::string filenam...
#include <bits/stdc++.h> #define MAXN 105 using namespace std; const double PI=acos(-1.0); const double EPS=1e-7; inline int DB(double x) { if(x<-EPS) return -1; if(x>EPS) return 1; return 0; } struct point { double x,y; point() {} point(double _x,double _y):x(_x),y(_y) {} point operator-(point a) { ret...
// -*-C++-*- /* (c) Copyright 2003-2005, Hewlett-Packard Development Company, LP See the file named COPYING for license details */ /** @file DataSeriesFile implementation */ #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <sys/resource.h> #inclu...
/** * \file rsa_key.cpp * \author <NAME> <<EMAIL>> * \brief A RSA sample file. */ #include <cryptoplus/cryptoplus.hpp> #include <cryptoplus/buffer.hpp> #include <cryptoplus/bio/bio_chain.hpp> #include <cryptoplus/pkey/rsa_key.hpp> #include <cryptoplus/hash/message_digest_context.hpp> #include <cryptoplus/error/err...
/* * Vulkan Model loader using ASSIMP * * Copyright(C) 2016-2017 by <NAME> - www.saschawillems.de * * This code is licensed under the MIT license(MIT) (http://opensource.org/licenses/MIT) */ #include "model.hpp" #include "filesystem.hpp" #include <assimp/Importer.hpp> #include <assimp/scene.h> #include <assimp/postpr...
#include "programmer.h" #include <Arduino.h> // These timings are all given in micro seconds #define PROGRAMMING_MODE_RESET_DELAY 20000 // Treset #define PROGRAMMING_MODE_VPP_LEAD_TIME 10 // Tppdp #define PROGRAMMING_MODE_INPUT_LINE_SET_TIME 1 // Tset0 #define PROGRAMMING_MODE_HOLD_ACTIVATI...
#include "standard-release/standard-release.h" #include "standard-release/changelog/changelog.h" #include "standard-release/commits/conventional.h" #include "standard-release/config/yaml.h" #include "standard-release/errors/error.h" #include "standard-release/git/hooks.h" #include "standard-release/git/repository.h" #i...
/*-----------------------------------------------------------------------------+ Interval Container Library Author: <NAME> Copyright (c) 2007-2009: <NAME> Copyright (c) 1999-2006: Cortex Software GmbH, Kantstrasse 57, Berlin +------------------------------------------------------------------------------+ Distributed...
/* * Copyright (C) 2021 Huawei Device Co., Ltd. * 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 ...
// Copyright 2021, Autonomous Space Robotics Lab (ASRL) // // 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 appli...
/*Copyright (c) 2014 The Paradox Game Converters Project Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, mer...
/****************************************************************************** This source file is part of the Avogadro project. Copyright 2014 <NAME> University of Pittsburgh This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing,...
#include <utility> #include <SFML/System/Time.hpp> #include <SFML/Graphics/Shader.hpp> #include <SFML/Graphics/RenderTarget.hpp> #include <SFML/Graphics/ConvexShape.hpp> #include <systems/LightSystem.hpp> #include <Scene.hpp> #include <components/Body.hpp> #include <components/components.hpp> LightSystem::LightSystem(...
/* Copyright (c) 2013, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and ...
/* * Copyright (c) 2020, <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: * * 1. Redistributions of source code must retain the above copyright notice, this * list of c...
#pragma once #include "mcnvt.hpp" #include "part.hpp" double LJPotential(double r, double cut, double e_cut) { if (r > cut*cut) { return 0.0; } else { double r6 = 1.0 / (r * r * r); return 4.0 * (r6 * (r6 - 1.0) - e_cut); } } double LJVirial(double r, double cut) { if (r > cut*cut) { return 0....
#include "../GUI/GUI.h" #include <iostream> using namespace Graph_lib; struct Lines_window : Graph_lib::Window { Lines_window(Point xy, int w, int h, const string& title); private: // data: Open_polyline lines; // widgets: Button next_button; // add (next_x, next_y) to lines Button quit_...
#include<iostream> #include<cmath> #include<string> #include<regex> using namespace std; const double R = 6371; const double PI = 3.1415926535; const double val = PI/180; struct city{ string name; double latitude; double longitude; }; double findDistance(city city1, city city2); string remove_space(str...
#include <Arduino.h> #include <Wire.h> #include "BMI088.h" //BMI088_ACC uint8_t BMI088_ACC::writeToAcc(uint8_t reg, uint8_t data){ Wire.beginTransmission(acc_address); Wire.write(reg); Wire.write(data); return Wire.endTransmission(); } uint8_t BMI088_ACC::requestFromAcc(uint8_t reg, uint8_t count){ ...
#include "jdk_world.h" #include "jdk_lz.h" /******************************************************************************/ #define FLAG_BYTES 4 /* Number of bytes used by copy flag. */ #define FLAG_COMPRESS 0 /* Signals that compression occurred. */ #define FLAG_COPY 1 /* Signals that a copyover ...
#include "CheckersGameState.h" using namespace AtlasCheckers; /// /// // void CheckersGameState::NewGame() { _turnsCount = 0; _whiteCaptures = 0; _redCaptures = 0; _currentTurnColour = PlayerColours::White; _whiteCursor._x = 0; _whiteCursor._y = 0; _redCursor._x = 0; _redCursor._y = 0; ...
/* Q Light Controller Plus audiorenderer_portaudio.cpp Copyright (c) <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.txt Unle...
#include "patchextractor.h" #include <iomanip> const size_t PatchExtractor::MAX_ITERATIONS = 500000; //const size_t PatchExtractor::MAX_ITERATIONS = 2000000; /** * Operate on a single image. * 1) Extract observation from image, set it as the obs. of the evaluator * 2) Initialize detection * 3) Iterate until conve...
#include "vehicle.h" Vehicle::Vehicle( World* world, V2D position, double rotation, V2D velocity, double mass, double max_force, double max_speed, double max_turn_rate, doub...
// juliaShader.cpp // OpenGL SuperBible // Demonstrates the effect of the 'noperspective' interpolation qualifier // Program by <NAME> #include <GLTools.h> // OpenGL toolkit #include <GLMatrixStack.h> #include <GLFrame.h> #include <GLFrustum.h> #include <GLGeometryTransform.h> #include <Stopwatch.h> #include <math...
#include <memory> #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/EDProducer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "DataFormats/HepMCCandidate/int...
/* * Copyright 2016 <NAME> * * This file is part of Squirrel. * * Licensed under the Academic Free License 3.0 (the "License"). * You may not use this file except in compliance with the License. * You should have received a copy of the License along with Squirrel. * If not, see <https://opensource.org/licenses/...
// // Created by matteolus on 04/11/18. // #include <iostream> #include <fstream> #include <sys/stat.h> #include <pwd.h> #include "TreeParser.h" //#include "ConfigParser.h" #include "utils/Utils.hpp" #include "logger/Logger.h" #include "nodeMap/NodesMap.h" #include "ConfigParser.h" #include <filesystem> /** * This is...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
// Copyright (c) 2016 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...
// 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 "base/bind.h" #include "base/command_line.h" #include "base/logging.h" #include "base/strings/stringprintf.h" #include "base/test/launcher/unit_t...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <chrono> #include <CL/sycl.hpp> #include "reference.h" void vanGenuchten( const double *__restrict__ Ksat, const double *__restrict__ psi, double *__restrict__ C, double *__restrict__ theta, double *__restrict__ K, const in...
#include "FindNearCombatCover.h" #include <algorithm> #include <sstream> #include "../../Team.h" #include "../../DecisionTree.h" #include "../../AICharacter.h" #include "../../PathFinding.h" #include "../../Actions/TacticalMove.h" #include "../../../Containers/DataContainers.h" #include "../../../Characters and Weapo...
#include "simulator.h" Simulator::Simulator(toml::value &arguments) : arguments_(std::move(arguments)), codec_(XORSegCodec(arguments_)), codec_data_(codec_.uu_len() + codec_.ebits_len(), codec_.cc_len()), modem_linear_system_(lab::ModemLinearSystem(arguments_, codec_.cc_len())) { const auto range = t...
// WriteAnalogData.cpp : Defines the exported functions for the DLL application. // #include "stdafx.h" #include "mex.h" #include "NIDAQmx.h" //% General method for writing analog data to a Task containing one or more anlog output Channels //%% function sampsPerChanWritten = writeAnalogData(task, writeData, timeout, ...
#include "removebom.h" using namespace std; /** Path to process. */ string path; /** Files with extension. */ string extension; /** Test files only. */ bool test; /** Make backup. */ bool backup; /** List all files and directories. */ bool listAll; /** * Main function, setup. * @param argc number of command li...
/* * demooutstation.cpp * * Created: 8/27/2014 7:55:11 AM * Author: jadamcrain */ #include "sam.h" #include "sam3x8e.h" #include "ExecutorImpl.h" #include "LinkParserImpl.h" #include "CommandHandlerImpl.h" #include "Macros.h" #include <opendnp3/transport/TransportStack.h> #include <opendnp3/outstation/Outsta...