text
stringlengths
3.08k
12.5k
/* * Copyright (c) 2014-2016 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 * * Unl...
#include "shared.h" using namespace render::low_level::opengl; using namespace render::low_level::opengl::windows; namespace { template <class Fn> inline void init_extension_entry (ILibrary& library, const char* name, Fn& fn) { fn = reinterpret_cast<Fn> (library.GetProcAddress (name, EntrySearch_Context...
/*** * Test Platform for Vernier Interface Shield ***/ #include <ShieldCommunication.h> #include <ShieldControl.h> #include <Streaming.h> #include <VernierDigitalSensor.h> #include <VernierAnalogSensor.h> #include <VernierBlinker.h> VernierBlinker theLED; VernierButton theBtn; ShieldCommunication comm; ShieldCont...
#include "ros/ros.h" #include <md49_messages/md49_encoders.h> //#include <sensor_msgs/JointState.h> #include <tf/transform_broadcaster.h> #include <nav_msgs/Odometry.h> #include <geometry_msgs/Quaternion.h> #include <geometry_msgs/Twist.h> int32_t ticks_per_meter; double base_width; int32_t encoder_min; int32_t encode...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> #include <set> using namespace std; class PairwiseSums { public: vector <int> reverse(vector <string> sums) { string S_; for (int i=0; i<(int)su...
#include "AH.hpp" #include "Core.hpp" #include "UI.hpp" #include <iostream> namespace rack_plugin_AmalgamatedHarmonics { struct ScaleQuantizer : AHModule { enum ParamIds { NUM_PARAMS }; enum InputIds { IN_INPUT, KEY_INPUT, SCALE_INPUT, NUM_INPUTS }; enum OutputIds { OUT_OUTPUT, TRIG_OUTPUT, GAT...
#include "curl_request.h" #include <iostream> #include <cctype> #include "tools.h" using namespace tools; curl_request::curl_request() :curl(nullptr), formpost(nullptr), lastptr(nullptr), headerlist(nullptr), connection_timeout{default_connection_timeout}, proxy_type(-1), follow_location(false), verbose(fals...
/* The MIT License (MIT) * * Copyright (c) 2016 <NAME>, KryptoLogik 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 limitati...
#include "amplitudfinal.h" AmplitudFinal::AmplitudFinal() { this->nodosCreados = 0; this->nodosExpandidos = 0; } AmplitudFinal::AmplitudFinal(NodoFinal * nodoRaiz, Entorno entorno) { this->colaNodos.push(*nodoRaiz); this->miEntorno = entorno; this->nodoRaiz = *nodoRaiz; this->nodosCreados = 0;...
#include <mlclient/logging.hpp> #include <cpprest/http_client.h> #include <array> #include <iostream> class ResultsHolder { public: ResultsHolder() : total(-1), lastFetched(0), results() { //TIMED_FUNC(ResultsHolder_ResultsHolder); ; }; void setResult(int idx,int value) { //TIMED_FUNC(ResultsHol...
#include "config_file.h" #include "aes256.h" #include <fstream> #include <exception> #include <cstdlib> static const uint8_t encryption_key[] = {0x19, 0x05, 0x14, 0x20, 0x11, 0x27, 0x27, 0x11, 0x06, 0x05, 0x13, 0x20, 0x20, 0x03, 0x84, 0x19, 0x09, 0x02, 0x89, 0x19, 0x27, 0x03, 0x12, 0x20, 0x16, 0x05,...
/* Copyright (c) 2014-2016, Stefan.Eile<EMAIL> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this * list of conditions and the foll...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2015 The DynamicCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "pow.h" #include <vector> #includ...
#include <algorithm> #include <cstdio> #include <queue> #include <vector> struct Dijkstra { typedef long long ll; static const ll INF = 1e18; static const ll LARGE = 1e12; struct Edge { int u, v; ll cap, cost, flow, raw_cap; }; struct Vertex { std::vector<i...
/* * Copyright (c) 2013, 2014, 2015 Jonas '<NAME>. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AU...
#include <gtest/gtest.h> #include <cmath> #include <future> #include <memory> #include <thread> #include <vector> #include "device/mlu_context.h" #include "device/version.h" #include "internal/mlu_task_queue.h" #include "test_base.h" bool err_occured = false; bool test_context(int dev_id, int channel_id, bool multi...
#include <stdio.h> #include <stdlib.h> #include <arpa/inet.h> #include <string.h> #include <fcntl.h> #include <errno.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <utility> #include <string> #include <iostream> #include <vector> #include <netinet/in.h> #include <...
#include <cassert> #include <iostream> #include <string> #include <sstream> #include <iomanip> #include "exception.hpp" #include "symbolic.hpp" #include "environment.hpp" using std::cout; using std::endl; using std::string; namespace test{ namespace environment{ unsigned int _assert(bool val, ...
#include<iostream> #include<fstream> #include<cstdio> #include<vector> #include<stack> #include<algorithm> #include<map> #include<queue> #include<string> #include<map> #include<set> #define Node char using namespace std; struct Edge { Node startNode; char character; Node endNode; ...
/* <NAME> IIIT Bangalore */ #include<bits/stdc++.h> #define mt make_tuple #define mp make_pair #define pu push_back #define INF 1000000001 #define MOD 1000000007 #define ll long long int #define ld long double #define fi first #define se second #define pr(v) { for(int i=0;i<v.size();i++) { v[i]==INF? cout<<"INF " : co...
// DISCLAIMER: These files are only for studying and teaching purposes! // They are not intendet to be a direct example of good coding practices // or C++ expert usage. // /* Copyright 2018 <NAME>: <EMAIL> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ...
#include <iostream> #include <utility> #include <tuple> #include <cmath> #include <assert.h> namespace detail { /// Conducts the division algorithm. /// @param num The numerator /// @param den The denominator /// @return The quotient /// @return The remainder std::pair<int, int> division_algo(int num, int den) { as...
#include "objective_functions/ObjectiveFunction.h" void ObjectiveFunction::init_mesh(const Eigen::MatrixXd& V, const Eigen::MatrixX3i& F) { Eigen::MatrixX3d V3d(V.rows(), 3); if (V.cols() == 2) { V3d.leftCols(2) = V; V3d.col(2).setZero(); } else if (V.cols() == 3) { V3d = V; } this->restShapeV = V3d; this...
// // meanie3D-satconv // #include <string> #include <iostream> #include <boost/program_options.hpp> #include <boost/program_options/parsers.hpp> using namespace std; using namespace boost; #pragma mark - #pragma mark Definitions typedef enum { RadicanceToTemperature, TemperatureToRadiance } ConversionType...
#include "RoomTemplates.h" #include <tinyxml.h> #include <sstream> void CRoomTemplates::PrintTemplates() { std::cout << "There are " << m_rooms.size() << " room templates!\n"; for (int i = 0; i < int(m_rooms.size()); i++) { std::vector<v2i> vertices = m_rooms[i].GetVertices(); std::cout << "Room " << i <<...
/* * Barcode * Copyright <NAME> and <NAME> * * Distributed under the terms of the MIT License. * The full license is in the file LICENSE, distributed with this software. */ #include <iostream> #include "define_opt.h" #include "struct_main.h" #include "fftw_array.h" #include <cmath> #include <sstream> #include "I...
#include <bits/stdc++.h> #define each(i, c) for (auto& i : c) #define unless(cond) if (!(cond)) using namespace std; typedef long long int lli; typedef unsigned long long ull; typedef complex<double> point; int gcd(int a, int b) { return b ? gcd(b, a % b) : a; } int lcm(int a, int b) { return a * b / gcd(max(...
/* * Copyright (C) 2017-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/command_stream/command_stream_receiver.h" #include "shared/source/helpers/ptr_math.h" #include "opencl/source/mem_obj/image.h" #include "opencl/source/memory_manager/os_agnostic_memory_manager.h" #include...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyri...
/****************************************************************************** ** Copyright (c) 2017-2019, Intel Corporation ** ** All rights reserved. ** ** ** ...
/* * Copyright 2021 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
// Copyright (c) 2020/21/22 <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, merge,...
/* 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 source code must retain the above copyright notice, this list of conditions and the following disclai...
#include "curve_editor.h" #include <string> #include <iostream> #include <algorithm> using glm::vec3; CurveEditor::CurveEditor() : atkui::Framework(atkui::Orthographic), mSpline(), mRadius(10.0), mSelected(-1), mButtonState(0), mMode(ADD), mShowControlPoints(false) { mSpline.addInterpolationType("L...
// Copyright (c) 2019-2019, Nejcraft // Copyright (c) 2014-2019, The Monero Project // // 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 t...
// // Created by wangxufei on 19-1-29. // # include "include/H.h" void get_s(double s_initial, double speed[N+1], double acceleration[N+1], double so_vf[N+1]){ so_vf[0] = s_initial + speed[0]*TS + 1/2*acceleration[0]*TS*TS; for (int i = 1;i<N+1;i++){ so_vf[i] = so_vf[i-1] + speed[i]*TS + 1/2*accelerati...
//===-- MSP430AsmPrinter.cpp - MSP430 LLVM assembly writer ----------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
#include "blender_cloudsTexture.h" #include <math.h> #include <maya/MPlug.h> #include <maya/MDataBlock.h> #include <maya/MDataHandle.h> #include <maya/MFnNumericAttribute.h> #include <maya/MFnEnumAttribute.h> #include <maya/MFnGenericAttribute.h> #include <maya/MFnMessageAttribute.h> #include <maya/MFnTypedAttribute.h>...
#pragma once #include "VariantVisitors.hpp" #include <boost/algorithm/string/predicate.hpp> #include <boost/container/flat_map.hpp> #include <sdbusplus/asio/connection.hpp> #include <sdbusplus/asio/object_server.hpp> #include <sdbusplus/message/types.hpp> #include <filesystem> #include <functional> #include <iostream...
#include "core.hpp" #include "string.hpp" #include "containers.hpp" #include "file_system.hpp" #include "variables.hpp" #include "allocators.hpp" enum variable_type_t { VT_INTEGER, VT_STRING }; struct variable_t { variable_type_t type; const char *start; void *data = nullptr; }; ...
/** * \class L1GtStableParameters * * * Description: L1 GT stable parameters. * * Implementation: * <TODO: enter implementation details> * * \author: <NAME> - HEPHY Vienna * * $Date$ * $Revision$ * */ // this class header #include "CondFormats/L1TObjects/interface/L1GtStableParameters.h" // s...
/* * * Copyright 2022 Apple Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// 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. // This class sets up the environment for running the native tests inside an // android application. It outputs (to a fifo) markers identifying the //...
// Copyright (C) 2017-2018 <NAME> <<EMAIL>> // This file is subject to the license terms in the LICENSE file // found in the top-level directory of this distribution. #include "parse_functions.hpp" #include <cppast/cpp_namespace.hpp> #include <type_safe/deferred_construction.hpp> #include "libclang_visitor.hpp" usi...
/* ** Copyright 2015 Centreon ** ** 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 <loco.h> std::string PHYSICS_BACKEND = loco::config::physics::NONE; std::string RENDERING_BACKEND = loco::config::rendering::GLVIZ_GLFW; int main( int argc, char* argv[] ) { loco::InitUtils(); if ( argc > 1 ) { std::string choice_backend = argv[1]; if ( choice_backend == "mujoco...
/*This file is part of the FEBio source code and is licensed under the MIT license listed below. See Copyright-FEBio.txt for details. Copyright (c) 2020 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any person obtaining ...
#include <mex.h> #include <matrix.h> #include <vector> #include <algorithm> using namespace std; // Min cost bipartite matching via shortest augmenting paths // // Code from https://github.com/jaehyunp/ // // This is an O(n^3) implementation of a shortest augmenting path // algorithm for finding min cost perfect matchi...
// Copyright 2017 Google Inc. // Copyright 2020 The Open GEE Contributors // // 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 // // Unles...
//===-- asan_stats.cc -----------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "skeleton.h" #include "splitstring.h" #include <cmath> #include <iostream> #include <fstream> #ifdef __APPLE__ #include <GLUT/glut.h> #else #ifdef _WIN32 #include "GL/glut.h" #else #include <GL/freeglut.h> #endif #endif /* * Load skeleton file */ void Skeleton::loadSkeleton(std::string skelFileName) { us...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
/* * Copyright 2015 Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <<EMAIL>> * <NAME> <<EMAIL>> */ #include <pwd.h> #include <Button.h> #include <Catalog.h> #include <LayoutBuilder.h> #include <NetworkSettings.h> #include <NetworkSettingsAddOn.h> #i...
// Copyright 2008, Google Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // this list of conditions an...
#include "../dep/laynii_lib.h" int show_help(void) { printf( "LN_RAGRUG: Generating a file where every voxel has a specific value \n" " that is indicates its position.\n" "\n" " This program is inspired by <NAME>'s way of visualizing \n" " which position at the surface comes f...
#include <iostream> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <cmath> const char *vertexShaderSource = "#version 330 core\n" "layout (location = 0) in vec3 aPos;\n" "\n" "void main() {\n" " gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);\n" "}\n"; const char *fragmentShaderSour...
#include "homography_estimator.h" HomographyEstimator::HomographyEstimator(float p, float distance_threshold, int max_iterations) : p_{p} , distance_threshold_{distance_threshold} , max_iterations_{max_iterations} , rd_{} , generator_{rd_()} { } HomographyEstimate HomographyEstimator::estimate(con...
/* * Copyright (c) 2018 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
/*============================================================================== Copyright (c) 2012-2014 Qualcomm Connected Experiences, Inc. All Rights Reserved. Confidential and Proprietary - Protected under copyright and other laws. ==============================================================================*/ #...
#include "chi_meshcontinuum.h" #include <fstream> #include <ChiPhysics/chi_physics.h> #include <ChiPhysics/PhysicsMaterial/chi_physicsmaterial.h> extern ChiPhysics& chi_physics_handler; #include <chi_mpi.h> #include <chi_log.h> extern ChiMPI& chi_mpi; extern ChiLog& chi_log; //####################################...
#include <gtest/gtest.h> #include <RIMACS/Functors/GraphCachingFunctor.hpp> #include <RIMACS/Utils/SortedVector.hpp> #include "InitializationUtils.hpp" #include "ResultVerification.hpp" class FunctorTester : public testing::TestWithParam<Dimacs::DimacsGraph> {}; TEST_P(FunctorTester, basicAdjacency) { Dimacs::...
/* Copyright (c) 2011-2014, Intel Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of co...
#include <WiFi.h> #include <WiFiUdp.h> #include "Packet.h" #include "Stuff.h" //#include <IPAddress.h> #define UDP_TX_PACKET_MAX_SIZE 200 //modify in packet.cpp //Functions declaration void printWiFiInfo(); void printBufferHex(char* buff, size_t length); void printBufferHex(String buff, size_t length); void printBu...
#include "Shader.h" #include <fstream> #include <iostream> #include <include/gl.h> using namespace std; Shader::Shader(const char * name) { program = 0; shaderName = string(name); shaderFiles.reserve(5); } Shader::~Shader() { glDeleteProgram(program); } const char * Shader::GetName() const { return shaderName...
// Functions needed for the <see cref="DateMoyr"/> class to handle date as // month and year. // $Id: datemoyr.cpp 1.40 2010/12/09 16:51:43ACT 044579 Development $ #include <vector> #include <string> #include "datemoyr.h" #include "age.h" #include "Resource.h" #include "PiaException.h" #include "StringPar...
/** * @file * @brief Implementation of Monte-Carlo particle object * @copyright Copyright (c) 2017-2020 CERN and the Allpix Squared authors. * This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md". * In applying this license, CERN does not waive the privileges an...
#include "ImageLoader.hpp" #define STB_IMAGE_IMPLEMENTATION #include "ThirdParty/stb_image.h" #define STB_IMAGE_RESIZE_IMPLEMENTATION #include "ThirdParty/stb_image_resize.h" using namespace h3; ImageLoaderPlugin ImageLoader; ImageLoaderPlugin& ImageLoaderPlugin::GetPlugin() { return ImageLoader; } //==========...
/* * Copyright 2017 MapD Technologies, 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 o...
#include <iostream> using namespace std; typedef struct Code* code; struct Code { int coefficient; int exponent; code next; }; class Polynomial { private: int coefficient; int exponent; Polynomial* next; public: Polynomial* Create_Polynomial(); Polynomial* MultPoly(Pol...
//Includes #include "smooth_diffdiff.c" //Declarations const valarray<size_t> oktypes = {1u,2u}; const size_t I = 0u, O = 1u; size_t dim, n, N; //Description string descr; descr += "Gets filter coefficients for the 2nd-order smooth differentiators of Holoborodko [2008].\n"; descr += "This is a generating function (no...
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer 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 // ...
#include "smas_shrink_sym.h" #include "sym_smas.h" #include "../option_parser.h" #include "../plugin.h" #include <cassert> #include <iostream> #include <limits> #include <ext/hash_map> using namespace std; using namespace __gnu_cxx; static const int infinity = numeric_limits<int>::max(); /* TODO: The following c...
#include <gtest/gtest.h> #include <vector> #include "utils/util.hpp" #include "lexer.hpp" #include "token.hpp" class LexerTest: public ::testing::Test { protected: std::unique_ptr<Lexer> lx; std::vector<Token> getTokens(std::string code) { lx = Lexer::tokenize(code, "<lexer-test>"); return lx->getTokens()...
/**************************************************************************\ * Copyright (c) <NAME> & Gas Technologies AS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistribu...
// // Copyright (c) 2016 - 2017 Mesh Consultants 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 limitation the rights // to use, copy, modify, ...
/* restinio */ #include <fstream> #include <restinio/all.hpp> #include <clara.hpp> #include <fmt/format.h> #ifndef RESTINIO_EXPRESS_ROUTER_BENCH_APP_TITLE #define RESTINIO_EXPRESS_ROUTER_BENCH_APP_TITLE "Express router benchmark" #endif #ifndef RESTINIO_EXPRESS_ROUTER_BENCH_REGEX_ENGINE #define RESTINIO_EXPRESS...
#include "DisplayLensletShow.h" #include "DisplayLenslet.h" #include "RayGenPinhole.h" #include "SampleAccumCV.h" #include "SampleGenUniform.h" #include "Image.h" DisplayLensletShow::DisplayLensletShow( const DisplayLenslet* displayModel ) :DisplayModel(displayModel) { } bool DisplayLensletShow::LoadScene( const ...
/* * File: Timestamp.cpp * Author: <NAME> * Date: March 2009 * Description: timestamping functions * * Note: in windows, this class has a 1ms resolution * * License: see the LICENSE.txt file * */ #include <cstdio> #include <cstdlib> #include <ctime> #include <cmath> #include <sstream> #include <iomanip> #i...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <gtest/gtest.h> #include "flashlight/lib/audio/feature/Ceplifter.h" #include "flashlight/lib/test/audio/feature/Tes...
#include <bits/stdc++.h> using namespace std; // Definition for a binary tree node. struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode() : val(0), left(nullptr), right(nullptr) {} TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} TreeNode(int x, TreeNode *lef...
// $Id: export_test.cpp 97186 2013-05-30 18:53:19Z johnnyw $ #include "tao/Utils/ORB_Manager.h" #include "Offer_Exporter.h" #include "Offer_Importer.h" #include "Service_Type_Exporter.h" #include "ace/Auto_Ptr.h" #include "orbsvcs/Trader/Trader.h" #include "orbsvcs/Trader/Service_Type_Repository.h" #include "ace/Get_O...
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
/* Copyright (C) 2007 <NAME> Copyright (C) 2007, 2011 <NAME> This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/or modify it under the terms of the QuantLib license. ...
/******************************************************************************* * Copyright (c) 2007, 2008, CerroKai Development * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistribu...
// ApplicationService.cpp: implementation of the CApplicationService class. // // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved // ////////////////////////////////////////////////////////////////////// #include "precomp.h" #include <tchar.h> #include "ApplicationService.h" #include ...
// // Created by alejandro on 3/11/16. // #include "headers/RecognizerDl.h" #include "headers/utils.h" #include <fstream> #include <iostream> #include <string> #include <limits> using namespace std; using namespace cv; RecognizerDl::RecognizerDl() { this->objects = vector<ObjectDl>(); } RecognizerDl::Recognizer...
// // main.cpp // // This file contains a unit test driver for a priority queue. The underlying // queue uses a linked list implementation while separate priority channels into // the overall queue are managed through a set which identifies existing // channels along with a map that relates the priority value to a que...
/** * A class which describes the properties and actions of a controller session. * * @date July 6, 2014 * @author <NAME> * @version 0.1 * * Copyright 2013 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this...
/* * Copyright information and license terms for this software can be * found in the file LICENSE that is included with the distribution */ /** * @author mrk */ /* Author: <NAME> */ #include <iostream> #include <epicsGetopt.h> #include <pv/pvaClientMultiChannel.h> #include <pv/convert.h> using std::tr1::static...
// Copyright 1996-2019 Cyberbotics Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
#include <algorithm> #include <random> #include "utils.h" #include "SLPA.h" //Slpa* Slpa::instance=nullptr; void Slpa::SLPA(){ //Init auto n=G.getVertexNum(); if(n==0) return; for(int i=0;i<n;++i) labelMem[i].push_back(i); //Evolution vector<int> order(n); fillContainer(order); f...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
/* * Copyright (c) 2008, Carnegie Mellon University * This software is distributed under the terms of the * Simplified BSD License (see tcm/LICENSE.TXT) */ /* Creates and executes the task tree : A / | \ B C D ...
#include "../include/Canva.h" Canva::Canva() {} Frame Canva::load(const std::string& filename) { sf::Image input; input.loadFromFile(filename); int width = input.getSize().x; int height = input.getSize().y; Frame frame(width, height); u_char* raw_data = (u_char*) input.getPixelsPtr(); for (int k = 0; k < ...
#include "Etterna/Globals/global.h" #include "RageUtil/Misc/RageLog.h" #include "RageUtil.h" #include "RageUtil_WorkerThread.h" RageWorkerThread::RageWorkerThread(const std::string& sName) : m_WorkerEvent("\"" + sName + "\" worker event") , m_HeartbeatEvent("\"" + sName + "\" heartbeat event") { m_sName = sName; ...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; int dp[1<<15]; vector<int> L; vector<int> S; double T; int sum[50][50]; double val[15][50][50]; int go(int used) { if (used...
// Author: <NAME> // This (very simple) node reads a laser scan, and // publishes the distance to the nearest point // // TODO: ensure nearest few points are somewhat close // TODO: what to return if no closest points? // TODO: enable angle range we care about // TODO: enable distance range we care about #include "ro...
/* * Copyright (C) 2012-2014 Open Source Robotics Foundation * * 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...
#include <armadillo> #include "psi4/libmints/basisset.h" #include "psi4/libmints/integral.h" #include "psi4/libmints/matrix.h" #include "psi4/libmints/mintshelper.h" #include "psi4/libmints/vector3.h" using namespace psi; void AO_dipole_length(arma::cube &M_AO, const arma::vec &origin, ...
#include "ModelOBJExt.h" namespace cs557_OBJModelExt { static const string vs_string_410 = "#version 410 core \n" " \n" "uniform mat4 projectionMatrix; \n" "u...