text
stringlengths
3.08k
12.5k
/*************************************************************************** qgsalgorithmnetworkanalysisbase.cpp --------------------- begin : July 2018 copyright : (C) 2018 by <NAME> email : <EMAIL> ****************...
#include "Frustum.h" Frustum::Frustum(float FarPlane, const XMFLOAT4X4& View, const XMFLOAT4X4& Projection) : Planes() { Create(FarPlane, View, Projection); } void Frustum::Create(float FarPlane, const XMFLOAT4X4& View, const XMFLOAT4X4& Projection) { XMFLOAT4X4 TempProjection = Projection; // Calcula...
#include "LCDMiniMenu.h" #include <Wire.h> typedef uint8_t byte; #define CREATE_ADDITIONAL_CHARS #ifdef CREATE_ADDITIONAL_CHARS // Bitmap for a small arrow pointing down byte ARROW_DOWN_CHAR_BM[8] = { B00000, B00100, B00100, B00100, B11111, B01110, B00100, }; // Bitmap for a small arrow pointing up ...
/* **‎22 ‎April ‎2021 ‎Thursday, ‏‎20:57:39 **Author: CodX07 **Simple Leg Library */ #include <Leg.h> #include <Servo.h> #include <math.h> /* float array which contains angles for distance from ground. I tried "Cosine theorem" first, but some unstable angles occurred so i decided to record angles ...
#include <QCoreApplication> #include <stdio.h> #include <iostream> #include "opencv2/core/core.hpp" #include "opencv2/features2d/features2d.hpp" #include "opencv2/nonfree/features2d.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/nonfree/nonfree.hpp" #include "opencv2/legacy/legacy.hpp" #include "vector"...
#include "base-audio-context.hpp" bool compareMagic(const uint8_t *data, const int16_t *magic) { for (int i = 0; magic[i] != -2; i++) { if (magic[i] >= 0 && data[i] != magic[i]) { return false; } } return true; } std::string getExtension(const uint8_t *data) { static const int16_t wv[] = { 'w', 'v', 'p'...
#include "fusionpair.h" #include <stdlib.h> /* atoi */ #include <iostream> // for cout #include <fstream> // for ifstream #include <math.h> FusionPair::FusionPair() { this->bShortRun = false; //true; } FusionPair::FusionPair(int argc, char *argv[]) { this->_argc = argc; this->_argv = argv; this->...
#include <iostream> #include <cmath> #include "StudentWithGrades.h" #include "Constants.h" using namespace std; StudentWithGrades::StudentWithGrades() { // constructor implementation // the superclass constructor will be called first and then this one when creating the StudentWithGrades object // call the method t...
#include <oauth/authorize.hpp> #include <algorithm> #include <cctype> #include <ctime> #include <iterator> #include <sstream> #include <string> #include <string_view> #include <utility> #include <vector> #include <openssl/hmac.h> #include <openssl/rand.h> #include <boost/algorithm/string.hpp> #include <networklib/d...
#include <iostream> #include <Windows.h> #include <ddk/ntifs.h> #include <tlhelp32.h> #include <process.h> #include <string.h> using namespace std; #define InitOA(ptr, root, attrib, name, desc, qos) { (ptr)->Length = sizeof(OBJECT_ATTRIBUTES); (ptr)->RootDirectory = root; (ptr)->Attributes = attrib; (ptr)->Ob...
#include "gurka.h" #include <boost/format.hpp> #include <gtest/gtest.h> #if !defined(VALHALLA_SOURCE_DIR) #define VALHALLA_SOURCE_DIR #endif using namespace valhalla; const std::unordered_map<std::string, std::string> build_config{ {"mjolnir.admin", {VALHALLA_SOURCE_DIR "test/data/netherlands_admin.sqlite"}}}; c...
#include "PANDecoder.h" ConvBnReluImpl::ConvBnReluImpl(int in_channels, int out_channels, int kernel_size, int stride, int padding, int dilation, int groups, bool bias, bool _add_relu, bool _interpolate) { add_relu = _add_relu; interpolate = _interpolate; conv = torch::nn::Conv2d(conv_options(in_channels, out_chan...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> #include <utility> using namespace std; long long num(const string &s) { long long x = 0; for (int i=0; i<(int)s.size(); ++i) { x = 10*x + (s[i]-'0...
#include <algorithm> #include <cassert> #include <cstdio> #include <cstring> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; int n, m; int dp[50][50][51][3]; /* dp[i][j][k][l] is minimum possible number of wrong colors for the first j chars of row i using ...
// // Author: <NAME> // Copyright 2016 // #include <cmath> #include <cstdio> #include <cstdlib> #include <vector> #include "LinAlg.h" using std::abs; using std::vector; void LinAlg::matmat(vector<vector<double> > &a, vector<vector<double> > &b, vector<vector<double> > &c) { for (int i=0; i<3; i++ ) { c[i]...
/* This example shows various features of the logging system in CX. One feature is of the logging system is filtering of log messages, which is done based on the severity of the messages, the module that created the message, and the output targets to which messages are logged. All messages that are logged are assigne...
#include <gflags/gflags.h> #include <ncode/file.h> #include <ncode/logging.h> #include <ncode/lp/demand_matrix.h> #include <ncode/net/net_common.h> #include <ncode/strutil.h> #include <ncode/viz/web_page.h> #include <memory> #include <string> #include <tuple> #include <utility> #include <vector> #include "common.h" #i...
#include "asx.h" #include <X11/Xlib.h> #include <X11/Xos.h> #include <X11/Xutil.h> #include <cassert> #include <cstdio> #include <cstdlib> #include <cstring> #include <logger.h> #include "keypad.h" #include "ssd1306.h" #include <rtos.hpp> const char *const DOM = "X"; uint8_t fb[ 16 ][ 128 ...
// // QPtomographer.figofmerit -- Python module for calculating figures of merit // like the diamond norm and the entanglement fidelity. // #include <tomographerpy/common.h> #include <tomographer/tools/loggers.h> #include <tomographer/densedm/dmtypes.h> #include <tomographer/valuecalculator.h> #include <tomographer/...
#include "Editor.hpp" Editor::Editor(sf::RenderWindow&w) : levels("res/levelsfile.txt"), background(w) { window = &w; tCurrentLvl.setFont(Resources::font); sSave.setRadius(20); sSave.setFillColor(sf::Color::Red); sSave.setOrigin(10,10); sSave.setPosition(50,50); currentLvl = 0; setLevel(curr...
////////////////////////////////////////////////////////////////////////////////////////////////// // // file: shared_models_newton.cpp // // Author <NAME> (Neill3d) // // GitHub page - https://github.com/Neill3d/MoPlugs // Licensed under BSD 3-Clause - https://github.com/Neill3d/MoPlugs/blob/master/LICENSE // ///////...
// Copyright 2014 The Kyua Authors. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditio...
/*"While there is nothing special about the order of the nodes within each strongly connected component, * one useful property of the algorithm is that no strongly connected component will be identified before * any of its successors. * Therefore, the order in which the strongly connected components are identified c...
// // Created <NAME> on 02.05.2021. // #include "../include/Snake.hpp" #include <random> using namespace std; using namespace cv; void Snake::clear_snake() { snakeBody.clear(); } void Snake::grow(const Point &chunk) { snakeBody.push_back(chunk); } int Snake::length() { return snakeBody.size(); } void ...
#include "Button.h" // <NAME> // https://rorywebdev.com // 2016 // Button Class used for UI elements // Allows custom colouring, text and has built in transitions // Validation for actual clicks can differ from holding down to a simple return when actually activated Button::Button(SDL_Renderer* _render, std::string ...
/* * Copyright (c) 2020 <NAME> * All rights reserved. * @author <NAME> <<EMAIL>> * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* Compile/Run with: * ```g++ -std=c++11 -I/$JAVA_HOME/include -I/$JAVA_HOME/include/linux -I/$JAVA_HO...
// util.cpp // Copyright (c) 2021, zhiayang // Licensed under the Apache License Version 2.0. #include <time.h> #include <chrono> #include <string> #include <random> #include "defs.h" #include "utf8proc/utf8proc.h" namespace lg { constexpr bool ENABLE_DEBUG = false; #if defined(__EMSCRIPTEN__) constexpr bool USE_...
/*! \file img_segmentation.cpp * \brief An application examining the potential of the `Random Ball Cover` * data structure for image segmentation. * \details This application was developed for testing the eligibility of `RBC` for * image segmentation. Try changing the `step` variable for confi...
#include "FWCore/Sources/interface/ProducerSourceBase.h" #include "CondCore/CondDB/interface/Time.h" #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h" #include "FWCore/ParameterSet/interface/ParameterSetDescription.h" #include <string> #include <fstream> #include <unistd.h> namespace cond { class F...
#include <complex> #include <vector> #include <mpi.h> #include <iostream> #include "gpu.h" #include "util.h" using namespace std; complex<double> *recv_buffer, *send_buffer; vector<int> shape; int r, c; MPI_Comm row_comm, col_comm; void init_2d_comms(int rr, int cc, int M, int N, int K) { r = rr; c= cc; size_t m...
// SPDX-License-Identifier: MIT /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. ...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; class TaxiBusiness { public: vector <int> place(vector <string> town) { int m = town.size(); int n = town[0].size(); ve...
#include "treeheuristic.h" #include "operator_factory.h" Treeheuristic::Treeheuristic(instance_abstract* inst) : tr(std::make_unique<Tree>(inst,inst->size)), prune(OperatorFactory::createPruning(arguments::findAll)), branch(OperatorFactory::createBranching(arguments::branchingMode,inst->size,99999)), ...
#include "bench.h" #include <cstdio> #include <cassert> #include <set> #include <sys/time.h> #include "../faiss/AutoTune.h" #include "../src/common.h" double elapsed () { struct timeval tv; gettimeofday (&tv, nullptr); return tv.tv_sec + tv.tv_usec * 1e-6; } #if 1 std::string filenames[4] = { "da...
/*#define YYDEBUG 1*/ /*------------------------------------------------------------------------- * * gram.y * POSTGRESQL BISON rules/actions * * Portions Copyright (c) 1996-2017, PostgreSQL Global Development PGGroup * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION...
#include "Log.h" #include "Provinces.h" #include "ParserHelpers.h" #include <fstream> EU4::Provinces::Provinces(std::istream& theStream) { registerRegex("-[0-9]+", [this](const std::string& numberString, std::istream& theStream) { auto newProvince = std::make_shared<Province>(numberString, theStream); provinces....
/* * \L1TStage2OMTF.cc * \author <NAME> * \November 2015 */ #include "DQM/L1TMonitor/interface/L1TStage2OMTF.h" L1TStage2OMTF::L1TStage2OMTF(const edm::ParameterSet& ps) : monitorDir(ps.getUntrackedParameter<std::string>("monitorDir", "")), omtfSource(ps.getParameter<edm::InputTag>("omtfSource")), ...
#include <iostream> #include <cstdlib> #include <vector> #include <bitset> #include <cstring> #include <string> #include "rand.h" using namespace std; vector<unsigned long long int> clause; vector<unsigned long long int> nMask; int n , k , c; unsigned long long int tourn( unsigned long long int a, unsigned long lon...
#include <assert.h> #include <iostream.h> #include "CoComp.Hxx" bool CompareBuffer( char* pBuff1, char* pBuff2, unsigned long nLen); void WriteLine(HANDLE file, char* pBuff, int nLen); extern unsigned long g_ulAppRetVal; CCompareCoClass::CCompareCoClass(char* pCurBuf, char* pRefBuf, HANDLE fileDiff, char* psz...
/***************************************************************************** Copyright (c) 2008, 2014, Oracle and/or its affiliates. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Founda...
#include "EncoderButton.h" EncoderButton::EncoderButton(byte encoderPin1, byte encoderPin2, byte switchPin ) : encoder(new Encoder(encoderPin1, encoderPin2)), bounce(new Bounce()) { haveEncoder = true; haveButton = true; // Top tip From PJRC's Encoder - without this delay the // long-press doesn't fire ...
#include <evpp/exp.h> #include <evpp/event_loop.h> #include <evpp/fd_channel.h> #include <evpp/libevent_headers.h> #include <evpp/libevent_watcher.h> #include <getopt.h> #ifndef _WIN32 #include <stdio.h> #include <sys/resource.h> #include <sys/socket.h> #endif #include "../../../examples/echo/tcpecho/winmain-inl.h...
////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2004-2019 musikcube team // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redist...
/* The MIT License (MIT) Copyright (c) [2016] [BTC.COM] 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, me...
#include <math.h> #include <stdlib.h> #include <time.h> #include <fstream> #include <iostream> #include <sstream> #include <string> #include "metodoPotencia.cpp" /* Funciones PLSDA */ void normalizar(std::vector<double>& x) { double norma2 = 0; long length = x.size(); for (int i=0; i<length; ++i) { norma2 = no...
#include "class.ObjectTracer.hpp" #include "util.h" bool ObjectTracer::m_sendingPoint; Point ObjectTracer::m_point; void ObjectTracer::onMouse( int event, int x, int y, int, void*) { if( event == EVENT_LBUTTONDOWN ) { m_point = Point(x, y); m_sendingPoint = true; } } void ObjectTracer::init()...
/* RobotArm_publisher.cxx A publication of data of type RobotArmCommand This file is derived from code automatically generated by the rtiddsgen command: rtiddsgen -language C++ -example <arch> RobotArm.idl Example publication of type RobotArmCommand automatically generated by 'rtiddsgen'. To test them follow the...
#include "sage3basic.h" #include "LCS.h" #include <boost/algorithm/string.hpp> using namespace std; using namespace boost; using namespace LCS; std::string LCS::unparseInstrFast(SgAsmInstruction* iA) { std::string value; // Unparse the normalized forms of the instructions value += iA->get_mnemonic(); ...
#define GLM_ENABLE_EXPERIMENTAL #include <glm/glm.hpp> #include <glm/gtx/string_cast.hpp> #include <limits> int test_string_cast_vector() { int Error = 0; { glm::vec2 A1(1, 2); std::string A2 = glm::to_string(A1); Error += A2 != std::string("vec2(1.000000, 2.000000)") ? 1 : 0; glm::vec3 B1(1, 2, 3); std...
// Copyright 2018 <NAME> #include <mpi.h> #include <vector> #include <string> #include <random> #include <ctime> #include <algorithm> #include<iostream> #include "../../../modules/task_3/chernyh_d_global_search_algorithm/agp.h" std::vector<int> coef(5); void CoefIn(std::vector<int> _coef) { coef = _coef; } void Fu...
// All content Copyright (C) 2018 Genomics plc #define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #include <string> #include <bits/shared_ptr.h> #include "variant/genotype.hpp" #include "variant/haplotype.hpp" #include "variant/type/variant.hpp" #include "caller/diploid/diploidAnnotate.hpp" using wecall:...
// From scratch: initial https://github.com/RedGuff/PseudoRandomPPM can NOT ask the size of the image. #include <iostream> #include <time.h> #include <fstream> #include <string> #include <vector> #include <bits/stdc++.h> // ? #include <math.h> using namespace std; int errorfile = 0; // no error now. bool errBadVAlue (...
////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2004-2019 musikcube team // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redist...
#include "PointImageObject.h" #include "Config.h" #include "Utility.h" #include "main.h" #include "Window.h" #include <algorithm> #include <iostream> #include <fstream> using namespace std; static UINT32 count_lines(const char *f_name); PointImageObject::PointImageObject() { reset(); } PointImageObject::PointI...
/* $Id: learn_static.cpp 1418 2010-11-02 17:08:31Z davidpiegdon $ * vim: fdm=marker * * This file is part of libalf. * * libalf 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 3 of...
/*********************************************************************************************************************** MMBasic for Windows Operators.cpp <COPYRIGHT HOLDERS> <NAME>, <NAME> Copyright (c) 2021, <COPYRIGHT HOLDERS> All rights reserved. Redistribution and use in source and binary forms, with or ...
/* Copyright 2013-present Barefoot Networks, 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 la...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. /* Module Name: - ITermDispatch.hpp Abstract: - This is the interface for all output state machine callbacks. When actions occur, they will be dispatched to the methods on this interface which must be implemented by a child c...
/******************************************************************************* * Copyright (c) 1991, 2016 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 https://w...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/> * * Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/> * * This program is free software;...
/** * @brief trajectory_generator_with_turning_node * @file trajectory_generator_with_turning_node.cpp * @author <NAME> <<EMAIL>> */ /* * Copyright (c) 2017, muralivnv * * This file is part of the asl_gremlin_package and subject to the license terms * in the top-level LICENSE file of the asl_gremlin_pkg reposit...
#include "symbols.hpp" #define FDP_MODULE "pdb" #include "endian.hpp" #include "indexer.hpp" #include "log.hpp" #include "memory.hpp" #include "utils/hex.hpp" #include "utils/pe.hpp" #include <algorithm> #include <cctype> #include <functional> #include "pdbparser.hpp" namespace pdb = retdec::pdbparser; namespace { ...
#include "stdafx.h" #include "extension.h" #include "iarchive.h" #include "icompoundproperty.h" #include "iobject.h" #include "iproperty.h" #include "ixformproperty.h" #include "oarchive.h" #include "ocompoundproperty.h" #include "oobject.h" #include "oproperty.h" #include "oxformproperty.h" #include "tim...
#define BOOST_TEST_MODULE WayOut2Section5Tests #include <boost/test/unit_test.hpp> #include "test_common.h" BOOST_AUTO_TEST_CASE(Section5Level01) { const char * indata = 1 + R"( __.._ _Y..y X_y_. .X.Y_ _Y.__ )"; const char * outdata = 1 + R"( __.1_ _.2.3 ._4_5 6.7._ _8.__ )"; test(indata, {outdata}); } B...
#include <iostream> #include <fstream> #include <random> #include <Eigen/Dense> #include <functional> using std::cout; using std::endl; using std::ofstream; using std::default_random_engine; using std::normal_distribution; using std::bind; // start random number engine with fixed seed default_random_...
#define SASS_PARSER #include <vector> #include <map> #ifndef SASS_PRELEXER #include "prelexer.hpp" #endif #ifndef SASS_TOKEN #include "token.hpp" #endif #ifndef SASS_CONTEXT #include "context.hpp" #endif #ifndef SASS_AST #include "ast.hpp" #endif #ifndef SASS_POSITION #include "position.hpp" #endif #include <ios...
// // This source file is part of appleseed. // Visit https://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2015-2018 <NAME>, The appleseedhq Organization // // Permission is hereby granted, free of charge, to any person obtaining ...
// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 <NAME> // Copyright (C) 2008 <NAME> // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boo...
 #include "stdafx.h" #include "LogWriter.h" #include <fstream> #include <chrono> #include <ctime> #include "util/json/json.h" LogWriter LogWriter::logWriter; Json::Value logObject(Json::objectValue); Json::Value currentConversionJob(Json::objectValue); bool isConversionJobGoing = false; LogWriter::LogWriter() { ...
/* ** Copyright (c) 2015, <NAME> ** Permission to use, copy, modify, and/or distribute this software for ** any purpose with or without fee is hereby granted, provided that the ** above copyright notice and this permission notice appear in all copies. ** ** THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL ...
/* ================================================================================ * Copyright: (C) 2021, SIRRL Social and Intelligent Robotics Research Laboratory, * University of Waterloo, All rights reserved. * * Authors: * <NAME> <<EMAIL>> * * CopyPolicy: Released under the terms of the BSD 3-Cl...
/* For more information on multithreading, see the PDF titled "POSIX Threading Programming Resource" in this folder. */ #include <iostream> #include "ViconThread.h" using namespace std; // Mutex Declarations pthread_mutex_t vicon_mutex; // Constructor ViconThread::ViconThread(string vicon_name) {...
// Copyright 2020 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 ...
/* * Copyright (c) 2007 <NAME> http://www.gphysics.com * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long long unsigned llu; typedef double dl; typedef pair<int,int> pii; typedef pair<ll,ll> pll; typedef vector<int> vi; typedef vector<ll> vl; typedef map<int,int> mii; typedef map<ll,ll> ...
// Copyright 2017 The Fuchsia Authors // // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT #include <lib/cbuf.h> #include <reg.h> #include <stdio.h> #include <string.h> #include <trace.h> #include <zircon/boot/driver-conf...
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkPictureStateTree.h" #include "SkCanvas.h" SkPictureStateTree::SkPictureStateTree() : fAlloc(2048) , fLastRestoredNode(NULL) , fStateStack(sizeof(Draw...
/* __ ___ ____ _____ ______ _______ ________ _______ ______ _____ ____ ___ __ // // Copyright (C) 1993-2012, ART+COM AG Berlin, Germany <www.artcom.de> // // This file is part of the ART+COM Standard Library (asl). // // It is distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_...
/* * File: main.cpp * Author: ags056 * Copyright (c) <2014> <<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 ...
/** * **************************************************************************** * Copyright (c) 2015, <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 sou...
//#include "../core/core_headers.h" #include "../core/gui_core_headers.h" extern MyVolumeAssetPanel* volume_asset_panel; extern MyMainFrame* main_frame; MyVolumeImportDialog::MyVolumeImportDialog(wxWindow* parent) : VolumeImportDialog(parent) { int list_height; int list_width; PathListCtrl->Ge...
/** * <NAME> - Scanner Tester * 9-mar-2016 * This program is used to test the scanner. It reads in the given source file and outputs the tokens. */ #include <iostream> #include <fstream> #include <string> #include <ctime> #include <dirent.h> using namespace std; #include "mscan.h" ifstream sourceFile; ofstream l...
/* * customized version of Time library, originally Copyright (c) <NAME> 2009-2014 * modified by <NAME> https://github.com/PaulStoffregen/Time */ #include "TimeLib.h" static tmElements_t tm; // a cache of time elements static time_t cacheTime; // the time the cache was updated static...
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty ...
#include <iostream> #include <vector> #include <string> #include <time.h> // Linux不用引入可以使用clock()? #include "SequenceST.h" #include "FileOps.h" using namespace std; // 二分搜索树 template <typename Key, typename Value> class BST{ private: // 树中的节点为私有的结构体, 外界不需要了解二分搜索树节点的具体实现 struct Node{ Key key; ...
#include "sset.hpp" #include "smap.hpp" #include "shashset.hpp" #include "shashmap.hpp" #include <set> #include <map> #include <unordered_set> #include <unordered_map> #include <gtest/gtest.h> #include "test_header.h" namespace levin { class HeapMemoryTest : public ::testing::Test { protected: virtual void SetUp(...
/* * @CopyRight: * FISCO-BCOS 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. * * FISCO-BCOS is distributed in the hope that it ...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "windowscommons.h" #include "logger.h" #include <QDir> #include <QtEndian> #include <QHostAddress> #incl...
/******************************************************************************* Copyright (c) 1995-96 Microsoft Corporation Abstract: Event Queue management *******************************************************************************/ #include "headers.h" #include "context.h" #include "eventq.h...
/* <editor-fold desc="MIT License"> Copyright(c) 2018 <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, mer...
/* * Copyright (c) 2011, <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 ...
#include "core.h" #include "wbactioneldcheckcone.h" #include "configmanager.h" #include "Components/wbcompeldtransform.h" #include "Components/wbcompeldcollision.h" #include "Components/wbcompeldcamera.h" #include "Components/wbcompeldheadtracker.h" #include "Components/wbcompowner.h" #include "wbactionstack.h" #includ...
#include "ros/ros.h" #include "ball_chaser/DriveToTarget.h" #include <sensor_msgs/Image.h> // Define a global client that can request services ros::ServiceClient client; // This function calls the command_robot service to drive the robot in the specified direction void drive_robot(float lin_x, float ang_z) { ball_ch...
/* * * Copyright 2015 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
//===----------------------------------------------------------------------===// // // Author: <NAME> <<EMAIL>> // <NAME> // Copyright (c) 2018 Secure Systems Group, Aalto University <ssg.aalto.fi> // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for detail...
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd 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 ...
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/private/SkArenaAlloc.h" #include <algorithm> #include <new> static char* end_chain(char*) { return nullptr; } static uint32_t first_allocated_block(uint32_...
#include <AMReX_ParmParse.H> #include <SMC.H> #include <SMC_F.H> using namespace amrex; bool SMC::initialized = false; int SMC::ncons = 0; int SMC::nprim = 0; int SMC::nspec = 0; int SMC::nplot = 0; int SMC::ngrow ...
// pyLauncher // by LittleBytesOfPi.com /* Modified BSD-2 Clause License for pyLauncher Copyright (c) 2013, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, including for commerical purposes, are permitted provided that the following conditions are met...
/* Copyright (c) Facebook, Inc. and its affiliates. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. */ #include <optional> // Enable including numpy via numpy_stub.h. #define USE_NUMPY 1 #include <torch/all.h> #include <torch/python.h> #includ...