text
stringlengths
3.08k
12.5k
#include "CRMui3.h" void CRMui3::wifiEvent() { static bool firstConnection = false; #ifdef ESP32 WiFi.onEvent([this](WiFiEvent_t event, WiFiEventInfo_t info) { //Serial.println("[WiFi] Event: " + String(event) + ", Reason: " + String(r)); // Core 1.0.6 v3.3.5-1-g85c43024c const int r ...
// DRUNKWATER TEMPLATE(add description and prototypes) // Question Title and Description on leetcode.com // Function Declaration and Function Prototypes on leetcode.com //778. Swim in Rising Water //On an N x N grid, each square grid[i][j] represents the elevation at that point (i,j). //Now rain starts to fall. At time...
#include <iostream> #include "imatrix.h" #include "ilayer.h" #include "neuralnet.h" #include "neuralnetanalyzer.h" #define TRAINING true #define BATCH_SIZE 100 #define BATCH_FUNCTIONS true //use to compare using batch functions vs automatic batch learning //Note that using the automatic b...
/* * Copyright (C) 2019 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "ocl_utils/ocl_utils.hpp" #include "ocl_utils/unified_shared_memory.hpp" #include "gtest/gtest.h" #include "utils/utils.hpp" namespace cs = compute_samples; namespace compute = boost::compute; template <typename T> class Siz...
#define __USE_MINGW_ANSI_STDIO 0 #include <iostream> #include <iomanip> #include <stdio.h> #include <stdlib.h> #include <vector> #include <algorithm> #include <queue> #include <map> #include <unordered_map> #include <set> #include <unordered_set> #include <stack> #include <deque> #include <string.h> #include <cstring> ...
#include "port.hpp" #define THREADS 8 #define DEBUG_EXCEPTION // #define PASSTHROUGH_EXCEPTION // #define HANDLE_SEGFAULT // #define SINGLET lq_decomp // TODO: need a method to conduct a single test typedef pair <string, bool (*)(ostringstream &, int)> singlet; // Testing rig vector <singlet> rig { RIG(gamma_an...
#include "cuboid_opencl_fixture.h" #include <boost/format.hpp> #include <random> namespace { const char* kProgramCode = R"( T Cuboid_Volume(__global T* dimensions) { return dimensions[0] * dimensions[1] * dimensions[2]; } T Cuboid_Surface(__global T* dimensions) { return 2 * (dimensions[0] * dimensions[1] + ...
#include <memory> #include <random> #include <vector> #include <arbor/recipe.hpp> #include <arbor/mc_cell.hpp> #include <arbor/util/any.hpp> using namespace arb; // Parameters used to generate the random cell morphologies. struct branch_cell_parameters { branch_cell_parameters() = default; // Maximum numb...
#include "timelinerow.h" #include <QPainter> #include <QDebug> #include <animationclip.h> #include "../timelinescene.h" #include "ruler.h" #include "treerow.h" TimelineRow::TimelineRow(TreeRow *row) : RowItem(row), m_track(nullptr), m_ruler(nullptr), m_component(-1) { setMinimum...
/** * MIT License * * Copyright (c) 2020 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, ...
#include "snake.h" #include "../log/log.h" /** * Logical Positioning: * the point refers to the "cell" in the grassland */ Snake::Snake() { vertex_size = 1; body_vertex = new Point[vertex_size]; body_vertex[0] = Point(0, 0); sloughed_tail = body_vertex[0]; direction = buffered_direc...
/* MIT License Copyright (c) 2021 <NAME>, ASL, ETH Zurich, Switzerland 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, mod...
/** * \file avt_341_global_path_node.cpp * * ROS Node that publishes a user defined path as a global path. * * \author <NAME> * * \contact <EMAIL> * * \date 9/1/2020 */ // ros includes #include "ros/ros.h" #include <nav_msgs/Path.h> #include "nav_msgs/Odometry.h" // local includes #include "avt_341/avt_34...
// 1111_Online_Map.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include "pch.h" #include <iostream> #include <vector> #include <climits> #include <algorithm> using namespace std; int n, m; struct Street { int length; int time; Street operator+(Street s) { Street res; res.length = length + s.length; res.time =...
#include "ReplayDriver.hpp" #include "Memory/NativeMemory.hpp" #include "Util/Logger.hpp" #include <inc/natives.h> // FiveM PedExtraNatives class CPedHeadBlendData { public: void* vtable; // +0 DWORD unk_0; // +8 BYTE unk_1; // +12 BYTE unk_2; // +13 BYTE unk_3; // +14 BYTE unk_4; // +15 ...
/* SPDX-License-Identifier: MIT */ #include <mmu/host-mmu.h> #include <mmu/host-vma.h> #include <mmu/x86-mmu-structures.h> #include <mmu/strategy/strategy.h> #include <smc/core-smc.h> #include <printf.h> #include <assert.h> #include <x86/rdtsc-timer.h> #include "cpu.h" using namespace captive::arch::mmu; using names...
#include <wchar.h> #include <shlobj.h> #include <Windows.h> #include "file_system_utility.hpp" #include "string.hpp" #include "error.hpp" #include "defer.hpp" HRESULT File_System_Utility::get_folder_files( Sequence<File_Info>* output, const String& folder_path, Get_Folder_Files_Filter filter, void* ...
/* test_reducer_vector_simple.cpp -*- C++ -*- * * Copyright (C) 2013 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...
#include <iostream> #include "sre/Texture.hpp" #include "sre/Renderer.hpp" #include "sre/Material.hpp" #define GLM_ENABLE_EXPERIMENTAL #include <glm/gtx/euler_angles.hpp> #include <glm/gtx/transform.hpp> #include <glm/gtc/matrix_transform.hpp> #include <sre/SDLRenderer.hpp> #include <sre/impl/GL.hpp> #include <sre/In...
/* MIT License * * Copyright (c) 2019 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merg...
#include "pose2D.h" using namespace Eigen; // CONSTRUCTORS // constructor with non parameters CPose2D::CPose2D() { xytheta(0)=0.0; xytheta(1)=0.0; xytheta(2)=0.0; } // Construction with 3 double x,y,theta CPose2D::CPose2D(const double& x,const double& y,const double& th) { xytheta(0)=x; xytheta(1)=y; xyth...
// Copyright (c) 2012 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 "cloud_print/service/win/chrome_launcher.h" #include "base/command_line.h" #include "base/file_util.h" #include "base/path_service.h" #inclu...
#include "TetrominoTypeFactory.h" TetrominoTypeFactory* TetrominoTypeFactory::tetrominoTypeFactory = nullptr; TetrominoTypeFactory* TetrominoTypeFactory::getInstance() { if (tetrominoTypeFactory == nullptr) { tetrominoTypeFactory = new TetrominoTypeFactory(); } return tetrominoTypeFactory; } Tet...
/** * @file order_manager.cpp * @author <NAME>, <NAME> <NAME> * @copyright MIT License * @brief Source File for the Line Class * This is the Source file for the order_manager class. * Takes care of managing orders to be fulfilled by the robot */ /** *MIT License *Copyright (c) 2020 <NAME>, <NAME>, <NAME> *Pe...
#include "oscillo.h" Oscillo::Oscillo(uint8_t in_pin): in_pin_(in_pin) { } void Oscillo::init() { initADC(); initTimer(); } void Oscillo::start() { ADCSRA |= 1 << ADATE; } void Oscillo::stop() { ADCSRA &= ~(1 << ADATE); } void Oscillo::setSampleRate(uint16_t sample_rate) { switch(sample_rate) {...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; long long mod = 1000000003; string D; int lcp[2510][2510]; int next_nz[2510]; bool lt(int a, int b, int x, int y) { a = next_...
//===- quantum-simulator-wrappers.cpp - Quantum Dialect Simulation --------===// // // 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 // //===---------------------------...
// Copyright (c) 2017-2022, Mudit<NAME>. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #pragma once #include <BoxLayout.hpp> #include <PhoneModes/Common.hpp> #include <service-bluetooth/Constants.hpp> #include "status-bar/AlarmClock.hpp" #include <vector> #include <map> n...
#include <iostream> #include <string> #include <unordered_set> #include <vector> #include <fstream> #include <list> #include <unordered_map> #include <sstream> #include "utils.h" using namespace std; string chroms[] = { "chr1", "chr2", "chr3", "chr4", "chr5", "chr6", "chr7", "chr8", "chr9", "chr10", "chr11", "chr12",...
#include "InventoryViewer.h" #include "Inventory.h" #include "ItemCell.h" #include "Item.h" #include "ScrollWindow.h" using namespace qge; /// Creates a default InventoryViewer which visualizes the specified Inventory. InventoryViewer::InventoryViewer(Inventory *inventory): border_(15), paddingBWCells_(5), ...
// Copyright 2020 <NAME> #include "../../../modules/task_3/kurakin_m_multiply_matrix_fox/multiply_matrix_fox.h" #include <math.h> #include <tbb/tbb.h> #include <random> #include <vector> bool canMultiplicate(const matrix &a, const matrix &b) { if (a.empty() || b.empty()) return false; for (uint i = 0; i < a.si...
// // Created by <NAME> on 11/23/21. // #include <stdio.h> #include <stdlib.h> #include "rdtsc.h" #include <immintrin.h> // _mm256_set1_ps(float a) template<typename T> inline void add(const T* x, const T* y, T* z, int f) { for (int i = 0; i < f; i++) { (*z) = (*x) + (*y); x++; y++; ...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; vector<string> cutUp(const string &s, const string &delim=" ") { int lastPos = 0, pos = 0; vector<string> ret; while (pos+deli...
#include <string> #include <sstream> #include <iostream> #include <map> #include <regex> #include <fstream> #include <boost/algorithm/string.hpp> #include "../common.hpp" using namespace std; std::ostream nullout(nullptr); class IntcodeComputer { public: deque<int> inputs; int output = 0; ...
// Copyright (c) 2016 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 "tools/gn/json_project_writer.h" #include <iostream> #include <memory> #include "base/command_line.h" #include "base/json/json_writer.h" #i...
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // 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 re...
#include <iostream> #include <sys/types.h> #include <sys/socket.h> #include <sys/time.h> #include <netinet/in.h> #include <netdb.h> #include <unistd.h> #include <errno.h> #include <arpa/inet.h> #include <fcntl.h> #include <signal.h> #include <deque> #include "system/filedevice.hpp" #include "system/debug.hpp" #include...
//------------------------------------------------------------------------------ // Copyright (c) 2012-2013, <NAME>. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction,...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * License); you ma...
/* * Copyright (C) 2015 NuBot team of National University of Defense Technology * * 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 * *...
/* * GraphBLAS Template Library (GBTL), Version 3.0 * * Copyright 2020 Carnegie Mellon University, Battelle Memorial Institute, and * Authors. * * THIS MATERIAL WAS PREPARED AS AN ACCOUNT OF WORK SPONSORED BY AN AGENCY OF * THE UNITED STATES GOVERNMENT. NEITHER THE UNITED STATES GOVERNMENT NOR THE * UNITED STA...
#include "display_manager.hpp" DisplayManager::DisplayManager(sf::RenderTarget& target, sf::RenderWindow& window, World& world, Colony& colony) : m_target(target) , m_window(window) , m_world(world) , m_colony(colony) { m_windowOffsetX = m_window.getSize().x * 0.5f; m_windowOffsetY = m_window.getSize().y * 0...
#include "p2p/p2p.hpp" #include "p2p/util.hpp" #include "p2p/util_cuda.hpp" #include "p2p/logging.hpp" #include "test_util.hpp" #include <iostream> #include <cassert> // just connecting with neighbor procs int put_neighbor(int pid, int np, p2p::P2P &p2p, int count, bool wrap_around) { p2p::logging:...
/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Y...
// Author: liuwufang // Date: 2019/11/24 #include <vector> #include <string> #include <set> #include <algorithm> using namespace std; // https://leetcode-cn.com/problems/implement-trie-prefix-tree/ // https://leetcode.com/problems/implement-trie-prefix-tree/ // Question: // 208. 实现 Trie (前缀树) // 实现一个 Trie (前缀树),包含 i...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2017, Alliance for Sustainable Energy, LLC. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are perm...
// Copyright (c) 2020, NVIDIA 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 condi...
#include "HGSDCounter.hh" #include "G4UnitsTable.hh" #include "G4TrackStatus.hh" #include "G4VProcess.hh" #include "HGSDCounter.hh" #include <iostream> using namespace std; using namespace CLHEP; // // Constructor // HGSDCounter::HGSDCounter(G4String name, RunParams inData, TTree *tree) : G4VSensitiveDetector(nam...
/*======================================================================= Copyright (c) 2018-2019 <NAME>. This software is distributed under the Apache License, Version 2.0. All copies must contain the full copyright notice licence.txt located at the base folder of the distribution. =====================...
/************************************************************************* * OSU Flow Vector Field * * * * * * Created: <NAME>, <NAME> * * The Ohio State University * * Date: 06/2005 * * * * TimeVaryingFieldLines...
#include <chessc.h> #include <string> #include <iostream> #include <iterator> #include <sstream> #include <cstring> using namespace ChessC; using namespace Types; bool Chessboard::loadBoard(const char* FEN) { // Split FEN string up to a vector separated by ' ' std::string FEN_string = FEN; std::istringstr...
/*! * Copyright 2019-2020 XGBoost contributors */ #include <gtest/gtest.h> #include <xgboost/version_config.h> #include <xgboost/c_api.h> #include <xgboost/data.h> #include <xgboost/learner.h> #include "../helpers.h" #include "../../../src/common/io.h" TEST(CAPI, XGDMatrixCreateFromMatDT) { std::vector<int> col0...
/* * This file is part of Poedit (https://poedit.net) * * Copyright (C) 2000-2016 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without l...
/*! \file ReadBuffData.cpp \brief retrieve data from raw buffer array ibuf */ /*---------------------------------------------------------------------- * Copyright (c) 2005, XIA LLC * All rights reserved. * * Redistribution and use in source and binary forms, * with or without modification, are permitted pro...
#include <opencv2/opencv.hpp> #include <iostream> #include <math.h> #include <queue> #include <thread> #include <mutex> #include <chrono> using namespace std; using namespace cv; int width = 320; int height = 240; queue <Mat> frames; queue <Mat> oframes; Mat frame; bool end_prog = false; int fcount = 0, t_num = 4...
/* * Copyright (c) 2012 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
// see `mlogit-ex.cpp` for an example with more comments // we will use OpenMP to perform the computation in parallel // [[Rcpp::plugins(openmp, cpp11)]] // we use RcppArmadillo to simplify the code // [[Rcpp::depends(RcppArmadillo)]] #include <RcppArmadillo.h> // [[Rcpp::depends(psqn)]] #include "psqn.h" #include "...
 #include "tjsCommHead.h" #include "MouseCursor.h" #include "WindowFormUnit.h" const LPTSTR MouseCursor::CURSORS[CURSOR_EOT] = { IDC_APPSTARTING, IDC_ARROW, IDC_CROSS, IDC_HAND, IDC_IBEAM, IDC_HELP, IDC_NO, IDC_SIZEALL, IDC_SIZENESW, IDC_SIZENS, IDC_SIZENWSE, IDC_SIZEWE, IDC_UPARROW, IDC_WAIT, }; cons...
/* * Copyright 2019 Xilinx Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
#include "FWCore/MessageLogger/interface/MessageLogger.h" #include "Validation/MuonGEMDigis/plugins/MuonGEMDigisHarvestor.h" MuonGEMDigisHarvestor::MuonGEMDigisHarvestor(const edm::ParameterSet& pset) : MuonGEMBaseHarvestor(pset, "MuonGEMDigisHarvestor") { // to make it compatible to both full geometry and slice...
// Copyright 2017 The Ray 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 agreed to i...
#include "neal8_algorithm.h" #include <Eigen/Dense> #include <memory> #include <stan/math/prim/fun.hpp> #include "algorithm_id.pb.h" #include "algorithm_state.pb.h" #include "hierarchy_id.pb.h" #include "mixing_id.pb.h" #include "neal2_algorithm.h" #include "src/algorithms/marginal_algorithm.h" #include "src/hierarch...
/* Copyright © 2017-2021 ABBYY Production 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,...
// // structured - Tools for the Generation and Visualization of Large-scale // Three-dimensional Reconstructions from Image Data. This software includes // source code from other projects, which is subject to different licensing, // see COPYING for details. If this project is used for research see COPYING // for makin...
#include <algorithm> #include <cstdlib> #include <iostream> #include <map> #include <optional> #include <string> #include <unordered_set> #include <vector> #include <derecho/core/derecho.hpp> using derecho::RawObject; using std::cin; using std::cout; using std::endl; using std::map; using std::string; template <type...
#include <pcap.h> #include <time.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <thread> #include <sys/socket.h> #include <sys/un.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netinet/if_ether.h> #include <netinet/tcp.h> #include <netinet/ip.h> #include <string.h> #include "sniff.h...
#include <iostream> #include <cmath> #include <iomanip> #include <b15f/b15f.h> #include <b15f/plottyfile.h> /* * Erfasse die Kennlinien des ersten und zweiten Quadrants eines FETs. * Anschlüsse: * ADC0: U_out (über 100Ohm an Drain) * ADC1: U_drain (Drain) * DAC0: U_out (über 100Ohm an Drain) * DAC1: U_GS (über ...
/* * Bridges MAVLINK LCM messages for Helen's FPGA. * * Author: <NAME>, <<EMAIL>> 2014 * */ #include <iostream> using namespace std; #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <signal.h> #include <time.h> #include <sys/time.h> #include "../../LCM/mavlink_msg_container_t.h" #include "....
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using nam...
#include "gradient_boosting_learner.h" #include "data_set.h" #include "loss_function_factory.h" #include "tree_function.h" #include <iostream> #include <stdio.h> #include <tinyxml2.h> #include <common_utils.h> #include <algorithm> #include <math.h> using namespace lncc; using namespace std; using namespace tinyxml2; ...
#include "bits/stdc++.h" using namespace std; typedef long long ll; #define int ll typedef unsigned long long ull; typedef long double lld; #define all(x) (x).begin(), (x).end() #define MOD 1000000007 #define endl '\n' const double eps = 1e-8, pi = acos(-1); const int N1 = 1e5, inf = 1e18; #define ff ...
//Language: GNU C++ #include<cstdio> #include<iostream> #include<algorithm> #include<vector> using namespace std; const int MaxN=1<<18; const int MOD=1000000007; int n,m; vector<int> v[MaxN]; int Time; int DFN[MaxN],LOW[MaxN]; void tarjan(int x,int pre) { DFN[x]=LOW[x]=++Time; for (vector<in...
// // "$Id$" // // Valuator widget for the Fast Light Tool Kit (FLTK). // // Copyright 1998-2016 by <NAME> and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this // file is missing or damaged, see the li...
/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the ter...
#include "../include/be4dLoader.h" #include <cstring> char* readFileCPTR(const std::string& filename, uint32_t& length) { std::ifstream t; char* buffer; t.open(filename, std::ios::in | std::ios::binary); if (!t.is_open() || !t) { t.close(); length = 0; return nullptr; } ...
#include <cstdio> #include <cstdlib> #include <iostream> using namespace std; struct bexpr { char val; char op; char neg; bexpr *expr; bexpr * n_expr; }; void err() { printf("syntax error\n"); exit(1); } char* skip(char* s) { //while (*s == ' ' || *s == '\n' || *s == '\t') ++s; //printf("skip: @%c\n", *s); ...
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <iostream> const unsigned int SCR_WIDTH = 800; const unsigned int SCR_HEIGHT = 600; float vertices[] = { //位置属性 //颜色属性 0.5f, -0.5f, 0.0f, 0.0f, 1.0f, 0.0f, // 1 -0.5f, -0.5f, 0.0f, 1.0f, 0.53f, 0.65f, // 0 0.5f, 0.5f, 0.0f, 1.0f, 0....
/* --------------------------------------------------------------------------- Open Asset Import Library (assimp) --------------------------------------------------------------------------- Copyright (c) 2006-2018, assimp team All rights reserved. Redistribution and use of this software in source and binary forms,...
// For conditions of distribution and use, see copyright notice in LICENSE #include "StableHeaders.h" #include "DebugOperatorNew.h" #include "UiMainWindow.h" #include "Framework.h" #include "ConfigAPI.h" #include "LoggingFunctions.h" #include "Application.h" #include <QCloseEvent> #include <QDesktopWidget> #include ...
//***************************************************************** // Copyright 2013 MIT Lincoln Laboratory // Project: SPAR // Authors: OMD // Description: Unit tests for IntegerField // // Modifications: // Date Name Modification // ---- ---- ----...
#include "DocxFactory/DocxMerger/DocxMergerItemFile.h" #include "DocxFactory/DocxMerger/DocxMergerItem.h" #include "DocxFactory/DocxMerger/DocxMergerTextField.h" #include "DocxFactory/DocxMerger/DocxMergerPasteFieldGroup.h" #include "DocxFactory/DocxMerger/DocxMergerPasteField.h" #include "DocxFactory/DocxMerger/DocxM...
#include "tablero.h" using namespace std; Tablero::Tablero():matrixilla(){ fichas = 0; fich_turno = 0; fich_insertada = 0; turno = 0; finalizada = false; movimientos = 0; } Tablero::Tablero(int filas, int columnas, int fichillas, int num) :...
/**************************************************************************/ /*! @file FileIO_SIM.cpp @author <NAME> @section LICENSE Software License Agreement (BSD License) Copyright (c) 2016, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or ...
// Author(s): <NAME>, <NAME>, <NAME> // Copyright: see the accompanying file COPYING or copy at // https://github.com/mCRL2org/mCRL2/blob/master/COPYING // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // /// \...
/* 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...
// Copyright (C) Extensible Service Proxy Authors // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this lis...
/* * copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
#include <fstream> #include <iostream> #include <vector> #include <tuple> #include <cmath> // Finds k which maximizes sum_i (2u(i-k)-1)*(x_i-xbar) double find_cutoff(std::vector<std::array<double,4>>& data){ double avg = 0; for(auto& d : data) avg += d[1]; avg /= data.size(); std::size_t maxi = 0; double maxsu...
//***************************************************************************** // Copyright 2017-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://w...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/time.h> #include <fcntl.h> #include <string> #include <fstream> #include <cmath> #include <stdexcept> #include <iostream> #include <fstream> using namespace std; #include "baseline.h" #include "kmeans.h" #ifdef MCC_ACC #include "__merlinkmeans_ke...
/* * Copyright 2020 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <unordered_map> #include "include/core/SkFontMgr.h" #include "include/core/SkFontStyle.h" #include "modules/skottie/include/Skottie.h" #include "modules/skottie/incl...
#include "raytracer.h" #include <cmath> #include "util/util.h" #include "util/math.h" RayTracer::RayTracer(Level* level, EntityFilter* filter, const unsigned int maxHits, float maxDist) : _maxHits(maxHits), _maxDist(maxDist), _level(level), _filter(filter) { _hits.reserve(_maxHits); } RayTracer::~RayTracer() { } ...
#include <ros/ros.h> #include <std_msgs/Float64.h> #include <boost/thread/mutex.hpp> #include <dynamic_reconfigure/server.h> #include "hanse_srvs/GetOutput.h" #include "hanse_srvs/SetTarget.h" #include "hanse_srvs/Bool.h" #include "hanse_pidcontrol/PidcontrolConfig.h" const std::string input_topic_ = "input"; const ...
// ReadSubChannel.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "PrimoBurner.h" using namespace primo::burner; class CDeviceCallback : public DeviceCallback { void onRead(int32_t lBegin, int32_t lEnd, int32_t lCurrent, uint32_t dwBlocks) { // simple progress...
#pragma once // Obsolete, DO NOT USE! #include <stdexcept> #include <string> #include <vector> #include <initializer_list> #include <memory> #include <variant> #include <typeinfo> #include "acmacs-base/string.hh" // ---------------------------------------------------------------------- class argc_argv { public: ...
#include "qap_executor.h" #include <thread> #define BRUTE_START_LEVEL 8 base_executor::base_executor(utils::matrix_t* data, utils::matrix_t* cost, base_bound* lower, base_bound* upper) : lower_bound(lower), upper_bound(upper), data_volume(*data), transfer_cost(*cost) { my_calculator = new utils::calculator(data,...
// Copyright (c) Contributers to Project Verona. All rights reserved. // Licensed under the MIT License. #include <verona.h> using namespace snmalloc; using namespace verona::rt; template<RegionType region_type> struct C1 : public V<C1<region_type>, region_type> { C1<region_type>* f1 = nullptr; C1<region_type>* ...
#include <cstdlib> #include <unistd.h> #include <stdio.h> #include <math.h> #include <ros/ros.h> #include <sensor_msgs/LaserScan.h> #include <geometry_msgs/Twist.h> #include <geometry_msgs/Point.h> #include <nav_msgs/Odometry.h> #include <rail_object_detector/Detections.h> #include <rail_object_detector/Object.h> #incl...
/* STRUMFB - electric guitar model, based on original cmix strum Parameters marked with '*' can receive dynamic updates from a table or real-time control source. p0 = output start time p1 = duration * p2 = amplitude * p3 = frequency (Hz or oct.pc) * p4 = feedback frequency (Hz or oct.pc)...
/******************************************************************** * This file includes functions to build fabric dependent bitstream *******************************************************************/ #include <time.h> #include <string> #include <algorithm> #include "vtr_assert.h" #include "util.h" #include "fp...