text
stringlengths
3.08k
12.5k
/******************************************************************************************************************************************** * Saras * * Copyright (C) 2019, <NAME> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted pro...
#include <iostream> using namespace std; class Point { public: int x, y; bool isNeutralElement; Point() : x(0), y(0), isNeutralElement(false) {} void askCoordinates() { do { cin.clear(); // clear failbit if input is faulty cin.ignore(numeric_limits<streamsize>::max(), '\n'); // discard...
/* * Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights t...
// REQUIRES: xocc // RUN: %clangxx -std=c++20 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: env SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING=1 %ACC_RUN_PLACEHOLDER %t.out #include <CL/sycl.hpp> #include <algorithm> #include <cstdio> #include <random> using cl::sycl::detail::aligned_allocator; using std::defa...
#include "u_luascript.h" #include <fmt/format.h> #include <d_logger.h> #include <d_filesystem.h> #include "s_configs.h" #include "u_fileutils.h" #include "x_mainloop.h" using namespace fmt::literals; // Dependencies namespace { dal::Mainloop* g_mainloop = nullptr; dal::RenderMaster* g_renderMas = nullp...
#include <iostream> #include <ctime> #include <cstdlib> #include <unordered_map> #include <algorithm> #include <string> using namespace std; #include "hashmap.h" using namespace kirby; /* Copyright 2017 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software...
//////////////////////////////////////////////////////////////////////////////// // // Copyright 2006 - 2021, <NAME>, <NAME>, <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 wit...
#include "directx_common.h" using namespace tvm::runtime; using namespace tvm::runtime::dx; DirectXWrappedFunc::DirectXWrappedFunc(DirectXModuleNode* m, ObjectPtr<Object> sptr, const std::string& func_name, const FunctionInfo& info) { m_ = m; sptr_ = sptr; func_name_ = fun...
/* * serialport.cpp * * Created on: 2012. 12. 27. * Author: zerom */ #include <stdio.h> #include <string.h> #include <termios.h> #include <fcntl.h> #include <unistd.h> #include <sys/time.h> #include <sys/ioctl.h> #include <linux/serial.h> #include "serialport.h" using namespace Thor; Se...
#include <ros/ros.h> #include <geometry_msgs/TwistStamped.h> #include <geometry_msgs/PoseStamped.h> #include <kinova_msgs/PoseVelocity.h> #include <kinova_msgs/ArmPoseAction.h> #include <kinova_msgs/ArmPoseGoal.h> #include <kinova_msgs/ArmJointAnglesAction.h> #include <kinova_msgs/ArmJointAnglesGoal.h> #include <mutex>...
/*****************************************************************************/ // TIFFView // Written by <NAME>, OBOS Translation Kit Team // Picking the compression method added by <NAME>, <<EMAIL>> // Use of Layout API added by <NAME>, <EMAIL>, 2009. // // TIFFView.cpp // // This BView based object displays informat...
/* * Copyright (c) 2013, <NAME>, <NAME>, <NAME>, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice...
// Source : https://leetcode.com/problems/accounts-merge/ // Author : <NAME> // Date : 2019-03-29 /***************************************************************************************************** * * Given a list accounts, each element accounts[i] is a list of strings, where the first element * accounts[i]...
/* * Copyright (c) 2017-2018 <NAME> <<EMAIL>> * * 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, merg...
#include<bits/stdc++.h> // g++ -std=c++17 -Wl,-stack_size -Wl,0x10000000 main.cpp #define mt make_tuple #define mp make_pair #define pu push_back #define INF 1000000001 #define MOD 1000000007 #define EPS 1e-6 #define ll long long int #define ld long double #define fi first #define se second #define all(v) v.begin(),v.e...
#include <raisim/OgreVis.hpp> #include "raisimBasicImguiPanel.hpp" #include "raisimKeyboardCallback.hpp" #include "helper.hpp" #include "leg.cpp" #include "iostream" #include <string> using Vector3d = Eigen::Matrix<double,3,1>; float magnitude(Vector3d &vec) { return sqrt(vec[0]*vec[0]+vec[1]*vec[1]+vec[2]*vec[2]); ...
#include "graphic.hpp" using std::to_string; const Uint32 min_frame_time = 1000 / 30; const double speed = 10; const double tilt_speed = 5; namespace background { const Uint8 r = 255; const Uint8 g = 255; const Uint8 b = 255; const Uint8 a = 255; } namespace objects { const Uint8 r = 0; cons...
// 2017年 03月 21日 星期二 15:49:57 CST // author: 李小丹(<NAME>) 字 殊恒(shuheng) // K.I.S.S // S.P.O.T // credit: Opencv Manual: tutorial_face_main.html // create csv: j=0;while [ $j -le 39 ]; do i=1;while [ $i -le 10 ]; do echo "/home/shuheng/文档/att_faces/s$((j+1))/$i.pgm;$j"; i=$((i+1)); done; j=$((j+1)); done > a.txt #incl...
/******************************************************************************* * * Copyright (C) 2017 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softw...
// URL : https://leetcode-cn.com/problems/zigzag-conversion/ // Author : Modnar // Date : 2020/02/22 // Thanks : Official(@leetcode.cn) #include <cmath> #include <string> #include <vector> #include <iostream> /* ************************* */ /** * 通过拼接、反转字符串来获得最终结果 * 对于样例: * L C I R * E T O E S...
#include <bits/stdc++.h> namespace IO { inline char read() { static const int IN_LEN = 1000000; static char buf[IN_LEN], *s, *t; s == t ? t = (s = buf) + fread(buf, 1, IN_LEN, stdin) : 0; return s == t ? -1 : *s++; } template <typename T> inline void read(T &x) { static char c; static bool io...
/* * Copyright (c) 2020 Samsung Electronics 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...
#include <cassert> #include <climits> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; #define NMAX 500000 typedef long long int64; struct Segment { Segment(int l, int r) : left(l), right(r), value(0), leftchild(nullptr), rightchild(...
/* * Copyright (c) 2020 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 agr...
#include "statement.h" #include "escaping/escape_sequences.h" #include <string> #include <Poco/Base64Encoder.h> #include <Poco/Exception.h> #include <Poco/Net/HTTPRequest.h> Statement::Statement(Connection & conn_) : connection(conn_), metadata_id(conn_.environment.metadata_id) { ard.reset(new DescriptorClass); ...
#include "Lighting.h" #include "PipelineState.h" #include "CommandContext.h" #include "Camera.h" #include "BufferManager.h" #include "Math/Vector.h" using namespace Math; using namespace Graphics; namespace Lighting { LightData m_LightData[MaxLights]; StructuredBuffer m_LightBuffer; ByteAddressBuffer m_Li...
#include "ros/ros.h" #include "visualization_msgs/Marker.h" #include <tf/tf.h> #include "sim_manipulator.h" class SimObjectListener { protected: SimManipulator sim_manipulator; gazebo_msgs::ModelState pr2_transform; tf::Transform pr2_gz_tf; std::map<std::string, tf::Pose> spawned_models; public: ...
/* Copyright (C) 2010-2019, The Regents of The University of Michigan. All rights reserved. This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab under the direction of <NAME>, <EMAIL>. Use of this code is governed by an MIT-style License that can be found at "https://github...
#include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <vector> #include <list> #include <algorithm> #include <iostream> #include <queue> using namespace std; #define pb push_back #define mp make_pair #define x first #define y second const double eps=1e-5; const int oo=(~0u)>>1...
#include <pybind11/pybind11.h> #include <pybind11/stl_bind.h> #include <iostream> #include "morph_dict/LemmatizerBaseLib/MorphanHolder.h" #include "morph_dict/MorphWizardLib/wizard.h" #include <stdio.h> #include <exception> #define STRINGIFY(x) #x #define MACRO_STRINGIFY(x) STRINGIFY(x) namespace py = pybind11; CM...
#include <iostream> using namespace std; class Point { public: //Constructor //These definitions are called prototypes Point(float f_x = 1,float f_y = 1,float f_z = 1); //setXYZ void setXYZ(float X,float Y,float Z); //Individual set functions ...
#include <iostream> #include <string> #include <vector> using namespace std; string add(string a, string b) { string c = ""; //cout << "a is " << a << ", b is " << b << endl; int i = a.length() - 1, j = b.length() - 1; int car = 0; while(i >= 0 && j >= 0) { int temp = a[i] - '0' + b[j] - '0' + car; car = tem...
/* *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= * * Copyright 2018 Intel Corporation All Rights Reserved. * *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in com...
// // testcontrollers.cpp // PSMoveOSX // // Created by localadmin on 07/06/2018. // #include "BtBase.h" #include "testControllers.hpp" #include "BaArchive.h" #include "BtTime.h" #include "SdSound.h" #include "ShIMU.h" void TestControllers::setup() { numControllers = psmove_count_connected(); ShIMU::S...
#pragma once #include "../Math/Math.hpp" #include "../Graphics/Buffers/VertexArray.hpp" #include "../Graphics/Buffers/Buffers.h" #include "../Graphics/Renderers/Base/VertexData.hpp" #include "../Graphics/Textures/Texture2D.hpp" #include "Base/RenderableComponent.hpp" #include <sstream> #define EXP 0 #define BUFFER_OF...
#include "parsepython.h" #include <QRegularExpression> #include <QFile> #include <QTextCodec> #include <QDebug> ParsePython::ParsePython() { } QList<LineContextItem> ParsePython::parse(const QString& path) { QFile file(path); if (!file.open(QIODevice::ReadOnly)) { qDebug() << "cannot open" << path; ...
/**************************************************************************** ** CUBE http://www.scalasca.org/ ** ***************************************************************************** ** Copyright (c) 1998-2016 ** ** Fors...
#include <iostream> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/stat.h> #include <arpa/inet.h> #include <fcntl.h> #include <string.h> #include <unistd.h> #include <sys/time.h> #include <regex.h> #include <netinet/in.h> #include <signal.h> #include ...
#include <stdlib.h> #include <string.h> #include <stdio.h> #include <errno.h> #if !defined(_WIN32) && !defined(NDEBUG) #include <execinfo.h> #include <signal.h> #endif #include "gason.h" const int SHIFT_WIDTH = 4; void dumpString(const char *s) { fputc('"', stdout); while (*s) { int c = *s++; switch (c) { cas...
/* Copyright 2011 <NAME> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in...
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #define PY_ARRAY_UNIQUE_SYMBOL DAWN_ARRAY_API #include <numpy/arrayobject.h> //now, everything is setup, just include the numpy-arrays: #include <numpy/arrayobject.h> #include <Python.h> #include <structmember.h> #include <objimpl.h> #include <pythread.h> //#include <...
/***************************************************************************//** * @file Package.cpp * @brief HW#5 (Package Inheritance Hierarchy) * @author <NAME> * @date April 2016 * @details Package member-function definitions *******************************************************************************/ ...
// // Created by <NAME>. // Grupo de Optimizacion Combinatoria (GOC). // Departamento de Computacion - Universidad de Buenos Aires. // #include <iostream> #include <vector> #include <climits> #include <goc/goc.h> #include "vrp_instance.h" #include "preprocess/preprocess_travel_times.h" #include "preprocess/preproces...
#include "Player.h" #include "Gun.h" #include "Level.h" #include <Engine/Pixels2D/ResourceManager.h> #include <SDL/SDL.h> #include <algorithm> Player::Player() : m_currentGunIndex(-1) {} Player::~Player() { // Empty } void Player::init(const glm::vec2 &position, const float &speed, const float &health, Pixels2D:...
#include "perfectlink.hpp" #include "broadcast.hpp" #include <string> #include <optional> #include <thread> #include <algorithm> #include <list> #define MAX_LENGTH 512 Perfectlink::Perfectlink(Receiver* receiver, Sender* sender, Broadcast* broadcast) : receiver(receiver), sender(sender), broadcast(broadcast), li...
#include "EmbeddedResource.h" #include <algorithm> #include <cctype> #include <filesystem> #include <fstream> #include <iostream> #include <string> #include <string_view> #include <vector> static std::string FilePathToSym(std::filesystem::path filepath) { auto sym = filepath.filename().string(); replace(sym.b...
#include "utils.h" #include <iostream> #include <cstdio> #include <string> #include <vector> #include <chrono> #include <thread> #include <cerrno> #include <sys/socket.h> #include <unistd.h> #include <netinet/in.h> #include <netdb.h> #include <arpa/inet.h> bool parseCommandLineArgs(const int argc, ...
//----------------------------------------------------------------------------- // Murmur Hash Library, by <NAME> and <NAME> // Original Portions (c) 2008 <NAME> and <NAME> // Released under The MIT License // http://www.opensource.org/licenses/mit-license.php // // Portions of this code was based off of MurmurHa...
// // BspRenderer.cpp // walls3duino // // Created by <NAME> on 5/15/20. // Copyright © 2020 <NAME>. All rights reserved. // #include <string.h> #include "BspRenderer.hpp" #include "GeomUtils.hpp" BspRenderer::BspRenderer(uint8_t* pPixelBuf, uint8_t screenWidth, u...
#include "M5Atom.h" #include <WiFi.h> #include "EL.h" #define WIFI_SSID "YOUR_SSID" #define WIFI_PASS "<PASSWORD>" WiFiClient client; WiFiUDP elUDP; EL echo(elUDP, 0x01, 0x33, 0x01 ); uint8_t state = 0; void printNetData(); void toggleSwicth(); void changeMode(int mode); void setup() { Serial.begin(115200); ...
#include <freefloating_gazebo/freefloating_pids_joint.h> using std::cout; using std::endl; using std::string; void FreeFloatingJointPids::Init(const ros::NodeHandle&_node, ros::Duration&_dt, std::string default_mode) { // init dt from rate dt_...
#include "game.h" #include <iostream> #include <random> #include <termio.h> #include <time.h> using namespace std; Card initDeck[CARDCOUNT] = { Card('@', 1), Card('@', 1), Card('@', 1), Card('@', 1), Card('@', 1), Card('@', 2), Card('@', 2), Card('@', 2), Card('@', 3), Card('@', 3), Card('@', 3...
#include "Apollonian.h" #include "Construction.h" #include "GeoObject.h" #include "BaseCanvas.h" #include <stack> unsigned int Apollonius::maxRecursionDepth{1}; double Apollonius::maximumCurvature{10000}; Apollonius::Apollonius (double k1, double k2, double k3) { // checking for bad values (less than zero radii or...
//functions.cpp //For use with Large Assignmebt #2, CSC 2100 //by <NAME> #include "definitions.h" /* This function will read the input from the user and create the linked list. */ Student *readInfo(){ //Variables for reading input. char nameBuffer[NAMESIZE], semBuffer[SEMSIZE]; short ageB...
/* zvm.cpp - ZeronSix's stack-based virtual machine. Copyright 2017 Vyacheslav "ZeronSix" Zhdanovskiy <<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/licen...
//========================================================================= // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE...
// O(d log log d + log n) #include <assert.h> #include <stdio.h> #include <algorithm> #include <iostream> #include <vector> using std::vector; template<int M_> struct ModInt { static constexpr int M = M_; int x; constexpr ModInt() : x(0) {} constexpr ModInt(long long x_) : x(x_ % M) { if (x < 0) x += M; } ...
/********************************************************************* Copyright (c) 2018 Audi Autonomous Driving Cup. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code ...
// Display how the compiler resolved lookup and overload of specific function // // Usage: // show-call <cmake-output-dir> <file1> <file2> ... // // Where <cmake-output-dir> is a CMake build directory in which a file named // compile_commands.json exists (enable -DCMAKE_EXPORT_COMPILE_COMMANDS in // CMake to get t...
#include "pch.h" #include "Sample3DSceneRenderer.h" #include "..\Common\DirectXHelper.h" #include "DolphinRender.h" #include "Resource.h" #include <assert.h> using namespace DolphinUniversal; using namespace DirectX; using namespace Windows::Foundation; // Loads vertex and pixel shaders from files and instantiate...
// // Created by <NAME> on 2021-03-16. // #include "../../include/nn/neuron.h" #include <assert.h> #include <iostream> #include <utility> #include <random> #include <algorithm> #include <vector> #include "../../include/utils.h" Neuron::Neuron(bool is_input, bool is_output) { value = 0; frozen = false; value_bef...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <utility> #include <math.h> #include "tokenizer.h" #include "dynamic_array.h" #include "str.h" #include "file.h" #include "vbyte.h" #include "posting.h" #include "hash_table.h" #include "search.h" static dynamic_array<std::pair<size_t, double>> *inter...
// Nes_Snd_Emu 0.1.7. http://www.slack.net/~ant/libs/ #include "Nes_Namco.h" /* Copyright (C) 2003-2005 <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 Foundation; either version 2.1 of the Licen...
#include <iostream> #include <stdexcept> #include <string> #include <systemd/sd-daemon.h> #include "argparse.hpp" #include "cmd/shell.hpp" #include "db/repositories/sqlite_stream_repo.hpp" #include "grpc_service.hpp" #include "log.hpp" #include "server.hpp" #include "version.h" using namespace yess; using namespace d...
// $Id$ // ============================================================================ // Include files // ============================================================================ // STD& STL // ============================================================================ #include <cmath> #include <vector> #inclu...
/******************************************************************************* * Copyright (c) 2000, 2019 IBM Corp. and others * * This program and the accompanying materials are made available under * the terms of the Eclipse Public License 2.0 which accompanies this * distribution and is available at http://ec...
#include <QCommandLineParser> #include <QCommandLineOption> #include <QCoreApplication> #include <QDateTime> #include <QDebug> #include <QDir> #include <QFileInfo> #include <QList> #include <QListIterator> #include <QSettings> #include <QtSql> #include <QString> #include <QTextStream> #include <QSysInfo> #include "Dat...
// -*- mode: c++; indent-tabs-mode: nil; -*- // // Copyright (c) 2009-2012 Illumina, Inc. // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limit...
#include "Matrix.h" #include "Random.h" #include "MersenneTwister.h" #include "Distribution.h" #include <vector> class MarkovRandomField { public: Matrix K; ///< kernel real beta; ///< beta int H; ///< height int W; ///< width int n_classes; ///< classes Matrix S; ///< states Matrix V; ///< potentials Mersenne...
// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
#include "boids.hpp" #include <cppitertools/itertools.hpp> #include <glm/gtx/rotate_vector.hpp> Boids::Boid Boids::createBoid() { Boid new_boid; glm::vec3 newDirection{glm::vec3(m_randomDist(m_randomEngine), m_randomDist(m_randomEngine), ...
/* Copyright 2017 - BSD-3-Clause * * Copyright Holder (alphabetical): * * Beikirch, Maximilian * Cramer, Simon * Frank, Martin * Otte, Philipp * Pabich, Emma * Trimborn, Torsten * * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * followin...
// // Created by matteolus on 04/11/18. // #include <bitset> //to use quickly bit representation #include <fstream> #include <sys/stat.h> #include "SvgCreator.h" #include "ConfigParser.h" #include "utils/Utils.hpp" #include "logger/Logger.h" std::string OUTPUT_DEFAULT_PATH = "/Output"; /** * This command print the ...
#include "../include/branchUI.h" #include "../../../AppClass/branch/include/branch.h" #include "../../../Validation/Include/Validation.h" #include "../../../Utility/Include/Utility.h" #include<iostream> #include<string.h> #include<cstdlib> #include<iomanip> using namespace std; void BranchUI::display(string p_str) { ...
#include <utils.hpp> #include <board.h> // Compute rising edge timings (0.0 - 1.0) as a function of alpha-beta // as per the magnitude invariant clarke transform // The magnitude of the alpha-beta vector may not be larger than sqrt(3)/2 // Returns true on success, and false if the input was out of range std::tuple<f...
#include <iostream> #include <fstream> #include <string> #include <vector> #include <regex> #include <map> #include "Reader.hpp" #include "lmpDumpReader.hpp" #include "debug.hpp" using namespace std; lmpDumpReader::lmpDumpReader(string fileName) : Reader("lmpdump", Reader::POSITION | \ Reader:...
/* cacheid, offset, dataptr 0 1 2 sort save() { for (i = list) write(fd, data + (list[i].offset*4096), 4096); } load() { data = alloc 2MB buffer for (i in list) read(fd, data + (list[i].offset*4096), 4096); } */ // lis...
// Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file // except in compliance with the License. You may obtain a copy of the License at // // https://opensource.org/licenses/BSD-3-Clause // // U...
#include "opencv2/objdetect/objdetect.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/face.hpp" #include <iostream> #include <stdio.h> #include <fstream> #include <sstream> using namespace std; using namespace cv; int detectAndDisplay(Mat frame); void detectemo(); ...
#include <iostream> #include <capnp/ez-rpc.h> #include <kj/async-io.h> #include <vector> #include <chrono> #include "automata-safa-capnp/Afa/Rpc/ModelChecker.capnp.h" #include "automata-safa-capnp/Afa/Rpc/ModelCheckers.capnp.h" namespace mc = automata_safa_capnp::rpc::model_checker; namespace mcs = automata_safa_capn...
#include <qwt_scale_map.h> #include <qwt_plot_curve.h> #include <qwt_symbol.h> #include <qwt_math.h> #include <qcolor.h> #include <qpainter.h> #include <qapplication.h> #include <qframe.h> //------------------------------------------------------------ // curvdemo1 // // This example program features some of the...
#include<bits/stdc++.h> using namespace std; #define fi first #define se second #define SZ(x) ((int)x.size()) #define lowbit(x) x&-x #define pb push_back #define ALL(x) (x).begin(),(x).end() #define UNI(x) sort(ALL(x)),x.resize(unique(ALL(x))-x.begin()) #define GETPOS(c,x) (lower_bound(ALL(c),x)-c.begin()) #define LEN(...
/** * Copyright (C) 2022 AMD, Inc * * Licensed under the Apache License, Version * 2.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is located * at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
/* Copyright (c) 2016 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License Version 2.0. You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICE...
// Suffix array algorithms (nlognlog and nlogn) are from my coach <NAME>, aka Fegla #include <bits/stdc++.h> #include <algorithm> using namespace std; #define all(v) ((v).begin()), ((v).end()) #define sz(v) ((int)((v).size())) #define clr(v, d) memset(v, d, sizeof(v)) #define rep(i, v) for(int i=0;i<sz(v...
#include <glog/logging.h> #include <unordered_set> #include <atomic> #include <util/util.h> #include <iostream> #include <transport/ws_connection.h> #include <websocket/websocket_pool.h> #include <driver.h> #include <expression.h> namespace { std::function<bool(const Event&)> filter_query(const std::string uri) { ...
#include <string.h> #include "PCE.h" #include "NodeID.h" #include "EventID.h" #include "Event.h" #include "LinkControl.h" #include "OpenLcbCanBuffer.h" #include "logging.h" // Mark as waiting to have Identify sent #define IDENT_FLAG 0x01 // Mark produced event for send #define PRODUCE_FLAG 0x02 // Mark entry as rea...
#include <qpiekey.h> #include <QSizePolicy> #include <QPainter> #include <QPaintEvent> #include <math.h> #include <stdio.h> #include <unistd.h> #include "qpiekeyboard.h" #include "term_logging.h" using namespace std; QPieKey::QPieKey(QWidget *parent) : QWidget(parent) { sections = 0; size = 0; hide(); } ...
/*************************************************************************************************************************** * collision_avoidance_streo.cpp * * Author: Qyp * * Update Time: 2019.4.25 * * 说明: 避障程序 for streo * ***************************************************************************************...
#include <nvs_flash.h> #include "Preferences.h" #include "debug.h" #include "globals.h" #include "controls.h" #include "player.h" #include "prefs.h" //todo: prefs.freeEntries(); //############################################################### // Preferences //#####################################################...
/* ScriptView.cpp Copyright 1997 Be Incorporated, All Rights Reserved. */ /* Copyright 1999, Be Incorporated. All Rights Reserved. This file may be used under the terms of the Be Sample Code License. */ #ifndef SCRIPT_VIEW_H #include "ScriptView.h" #endif #ifndef _ROSTER_H #include <Roster.h> #endif #include ...
/* AM - amplitude modulation of input p0 = output start time p1 = input start time p2 = duration p3 = amplitude multiplier * p4 = modulation oscillator frequency (Hz) ** p5 = input channel [optional, default is 0] p6 = pan (in percent-to-left form: 0-1) [optional; default is 0] p7 = reference t...
#include "message.h" #include <algorithm> #include <ranges> #include <regex> #include <stdexcept> Input parse_input(std::istream &input) { std::string line{}; Language language{}; std::getline(input, line); while (not line.empty()) { auto rule = parse_rule(line); language.insert(rule); std::get...
// // Copyright (c) 2016 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // DeferGlobalInitializers is an AST traverser that moves global initializers into a function, and // adds a function call to that function ...
/* * REVORB - Recomputes page granule positions in Ogg Vorbis files. * version 0.2 (2008/06/29) * * Copyright (c) 2008, <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 ...
#include "stdafx.h" #include "BarycentricCoords.h" // Top level function that uses Barycentric coordinates on a face. XVecf FindNearestPointOnFace(XVecf O, XVecf A, XVecf B, XVecf C, bool& OnFace, bool& Normal_reversed) { XVecf Coords3D[4]; XVecf Coords2D[4]; XVecf ptOnFace; XVecf temp(0,0,0); Coords3D[0] = O...
/* * File: DataStructure.h * Author: <NAME> * */ #include <json.hpp> #include <util/util.h> #include <dataStructures/DataStructure.h> #include <Chart.h> #include <NeuralNetwork.h> #include <exprtk.hpp> DataStructure::DataStructure() : ApiRouteJson(), dataChart() { setSubRoutes({{"networks", &networks}, ...
/* * Legal Notice * * This document and associated source code (the "Work") is a part of a * benchmark specification maintained by the TPC. * * The TPC reserves all right, title, and interest to the Work as provided * under U.S. and international laws, including without limitation all patent * and trademark rig...
// Copyright (c) 2009 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 "app/gfx/canvas.h" #include <cairo/cairo.h> #include <pango/pango.h> #include <pango/pangocairo.h> #include "app/gfx/font.h" #include "base...
/* Copyright (c) 2007 <NAME>. 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 require...