text
stringlengths
3.08k
12.5k
/* <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...
// calcAndWrite_Jaccards.cpp // <NAME> // Last Modified: 2008-12-30 /* Copyright 2008,2009,2010 <NAME> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your o...
#include <iostream> #include <vector> #include <string> #include <algorithm> #include <numeric> #include <cmath> #include "Point.hpp" class Slope { public: Slope() = delete; Slope(int rise, int run); int rise() const { return ri; } int run() const { return ru; } private: int ri; int ru; }; ...
#include <graphene/singularity/ncd_aware_rank.hpp> #include <boost/numeric/ublas/io.hpp> using namespace boost; using namespace boost::numeric::ublas; using namespace singularity; std::shared_ptr<vector_t> ncd_aware_rank::process( const matrix_t& outlink_matrix ) { sparce_vector_t v = matrix_tools::calcul...
/* written by <NAME> * Dec 2017 */ #include<stdlib.h> #include<stdio.h> #include<random> #include<math.h> #include "particle.hpp" #include "constants.hpp" /* memory operation */ // free memory void freeParticles(particles_t * particles) { delete[] particles->xyzs; particles->xyzs = NULL; delete[] particles->r...
/* * Copyright (c) 2020, <NAME> * SPDX-License-Identifier: Apache-2.0 * * 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 r...
#include "car.h" #include <iostream> #define SCALE 100 Car::Car(b2World* m_world) { m_hz = 11.0f; m_zeta = 2.7f; m_speed = 50.0f; b2Body* ground = NULL; // Car { b2PolygonShape chassis; b2Vec2 vertices[8]; vertices[0].Set(-1.05f, -0.0375f); vertices[1].Set(-0.5...
/** * CubeGS * An online Ground Segment for Cubesats and Small Sats * (c) 2016 Incomplete Worlds * */ #include <iostream> #include <sstream> #include <fstream> using namespace std; #include "data_model/Mission.h" #include "data_model/Satellite.h" #include "data_model/GroundStation.h" #include "PassPredictio...
#include "World.h" #include "SFML/Graphics/RenderWindow.hpp" #include <iostream> const float World::MIN_GAME_SPEED = 1.0; const float World::MAX_GAME_SPEED = 2.0; const float World::MIN_PILE_SPEED = 0; const float World::MAX_PILE_SPEED = 200; World::World(sf::RenderWindow &window, CommandQueue &commandQueue, ...
/* * File: auxi.cpp * Copyright (C) 2004 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS) */ #include "common/sedna.h" #include "tr/vmm/vmm.h" #include "tr/btree/btintern.h" #include "tr/btree/btstruct.h" #include "tr/btree/btpage.h" void bt_page_markup(char* pg, xmlscm_type t) ...
// // Terrain.cpp // opengl-series // // Created by <NAME> on 15-06-15. // // #include "Terrain.h" Terrain::Terrain(){ } float Terrain::rand_FloatRange(float a, float b, bool between){ float randomValue = ((b-a)*((float)rand()/RAND_MAX))+a; if (between) { if(randomValue > 10 || randomValue < ...
/** * Copyright (c) 2017 <NAME> * File Name: Gallahad.cpp * Header File Name: Gallahad.h * Class Name: Gallahad * Objective: it defines the behavior and actions of the character Gallahad. */ #include <iostream> #include "Gallahad.h" #include <assert.h> #include "Camera.h" #include "StageState.h" #include "Vec2.h...
#include "panels.h" #include "colors.h" #include <ncurses.h> #include <signal.h> #include <stdlib.h> /** * Constructor initializes the screen to be ready for ncurses * And draws the panels */ Panels::Panels() { initscr(); // Ncurses initialization keypad(stdscr, true); ...
#include <math.h> #include "lister.h" #include "viewer.h" #include "screen.h" #include "dialog.h" #include "textReader.h" #include "../utils/dirent.h" #include "../specKeyboard.h" #define getword(ptr,x) (ptr[x] + 256 * ptr[x + 1]) static const char *INVALID_MSG = "~ invalid block length or corrupted file ~"; //------...
#include "ofApp.h" using namespace ofxCv; using namespace cv; void ofApp::setup() { #ifdef MAC ofSetWindowPosition(-1080, 0); ofSetFullscreen(true); #endif ofEnableBlendMode(OF_BLENDMODE_ALPHA); ofSetVerticalSync(true); ofSetFrameRate(60); finder.setup("haarcascade_frontalface_default.xml"); ...
#include <cerrno> #include <cstdint> #include <cstdio> #include <cstdlib> #include <cstring> #include <string> #include "test/test_util.h" #include <brickred/command_line_option.h> #include <brickred/dynamic_buffer.h> #include <brickred/io_service.h> #include <brickred/socket_address.h> #include <brickred/string_util....
/******************************************************************************* * tests/lat_test.cpp * * basic insert and find test (with different key generation) * for more information see below * * Part of Project growt - https://github.com/TooBiased/growt.git * * Copyright (C) 2015-2016 <NAME> <<EMAIL>> *...
#include <StdInc.h> #include <Hooking.h> #include <ScriptEngine.h> #include <Resource.h> #include <fxScripting.h> #include <ICoreGameInit.h> static int WeaponDamageModifierOffset; static uint16_t* g_weaponCount; static uint64_t** g_weaponList; enum flashlightFlags_t : uint8_t { FLASHLIGHT_ON = (1 << 0), FLASH...
#include <stdio.h> #include <stdlib.h> #include <cstring.h> #include <errno.h> #include <pthread.h> #include <unistd.h> #include <fcntl.h> #include <unistd.h> #include "task_client.h" #include "task_comm.h" #include "task_debug.h" #include "ev_api_comm.h" static pthread_t s_pthread_id; static ev_inst_st s_inst = NUL...
// Copyright 2019 The Fuchsia 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 <lib/ddk/binding.h> #include <lib/ddk/debug.h> #include <lib/ddk/metadata.h> #include <lib/ddk/platform-defs.h> #include <lib/mmio/mmio.h> #includ...
/* SPDX-License-Identifier: BSD-2-Clause-Patent * * Copyright (c) 2016-2019 Intel Corporation * * This code is subject to the terms of the BSD+Patent license. * See LICENSE file for more details. */ #include <beerocks/tlvf/beerocks_message.h> #include <beerocks/bcl/beerocks_utils.h> #include <beerocks/bcl/netwo...
#include "ofMain.h" #include "ofAppNoWindow.h" #include "ofxUnitTests.h" namespace { int lastIntFromCFunc = 0; int lastIntFromCFuncWithToken = 0; int selfUnregisterValue = 0; bool toggleVoidFunc = false; ofEvent<const int> selfUnregisterEvent; void intFunctListener(const int & i){ lastIntFromCFunc = i; } v...
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/*============================================================================= Copyright (c) 2001-2015 <NAME> Copyright (c) 2001-2011 <NAME> Copyright (c) 2011 <NAME> Use, modification and distribution is subject to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.t...
/***************************************************************************************[System.cc] Copyright (c) 2003-2006, <NAME>, <NAME> Copyright (c) 2007-2010, <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), ...
/* Copyright 2007 Computer Vision Lab, Ecole Polytechnique Federale de Lausanne (EPFL), Switzerland. All rights reserved. Author: <NAME> (http://cvlab.epfl.ch/~lepetit) This file is part of the ferns_demo software. ferns_demo is free software; you can redistribute it and/or modify it under the terms of...
/* Copyright (c) 2020, Electrux All rights reserved. Using the BSD 3-Clause license for the project, main LICENSE file resides in project's root directory. Please read that file and understand the license terms before using or altering the project. */ #include "../VM.hpp" #include "Base.hpp" //////////////////...
PluginTempoSync::PluginTempoSync() { } PluginTempoSync::~PluginTempoSync() { } String PluginTempoSync::getTempoSyncLabel(float normalizedValue0to1) { jassert(normalizedValue0to1 >= 0.0f && normalizedValue0to1 <= 1.0f); int selector = (int)(normalizedValue0to1 * PluginTempoSync::TempoSyncSteps); ...
#pragma once #include "engine/enum.hpp" #include "engine/utility/connect_guard.hpp" #include "engine/internal_libs.hpp" #include <unordered_set> #ifdef ENABLE_NULL_SPRITE_CHECK #define NULL_SPRITE_CHECK(x) if (!x) { spdlog::warn("No sprite for {}", typeid(*this).name()); return; } #else #define NULL_SPRIT...
// Copyright surrealwaffle 2018 - 2020. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // https://www.boost.org/LICENSE_1_0.txt) #include "graph.hpp" #include "utility.hpp" #include <cmath> #include <algorithm> #inc...
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> */ #include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> #include <string> #include <vector> #include "helper_functions.h" #define DBL_MAX (1e10) #d...
#include "Snake.h" Snake::Snake(int blockSize, Textbox* log) { m_log = log; m_size = blockSize; m_bodyRect.setSize(sf::Vector2f(static_cast<float>(m_size - 1), static_cast<float>(m_size - 1))); Reset(); } Snake::~Snake() = default; void Snake::SetDirection(Direction dir) { m_dir = dir; } Direction Snake::GetDir...
#include "fixed.hpp" #include "../ansi.hpp" #include "../checked_io.hpp" #include "../oqtopus/environment.hpp" #include <cassert> #include <fcntl.h> #include <unistd.h> using namespace odbc; namespace value = oqtopus::value; Fixed::Fixed(std::filesystem::path base_filename, std::vector<Def> dfs, ...
/* * Copyright (c) 2012-2016 <NAME> (<EMAIL>) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU * General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) ...
#include <iostream> #include "atkui/framework.h" #include "atk/toolkit.h" using namespace glm; using namespace atk; class Butterfly : public atkui::Framework { public: Butterfly(bool display) : atkui::Framework(atkui::Perspective) { axes = display; } void setup() { Joint *body = new Joint(...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2008-2010, Image Engine Design 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: // // ...
/*************************************************************************** Bonus Points Code. This is the code that displays your bonus points on completing the game. Copyright <NAME>. See license.txt for more details. *************************************************************************...
/******************************************************************************/ /* */ /* Unit Name : trim.cpp */ /* ...
//! \file sedimentation.cpp // \brief Problem generator for testing sedimentation // Athena++ headers #include "../athena.hpp" #include "../athena_arrays.hpp" #include "../parameter_input.hpp" #include "../bvals/bvals.hpp" #include "../coordinates/coordinates.hpp" #include "../eos/eos.hpp" #include "../field/field.hp...
#include "dplyr.h" namespace dplyr { void stop_summarise_unsupported_type(SEXP result) { DPLYR_ERROR_INIT(1); DPLYR_ERROR_SET(0, "result", result); DPLYR_ERROR_MESG_INIT(0); DPLYR_ERROR_THROW("dplyr:::summarise_unsupported_type"); } void stop_summarise_mixed_null() { DPLYR_ERROR_INIT(0); DPLYR_ERROR_ME...
// Copyright (C) Intel Corp. 2015. All Rights Reserved. // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, mod...
/** vpr_relocalization: a library for visual place recognition in changing ** environments with efficient relocalization step. ** Copyright (c) 2017 <NAME>, <NAME>, University of Bonn ** ** Permission is hereby granted, free of charge, to any person obtaining a copy ** of this software and associated documentation fil...
#include "trans.h" #include <cassert> transposition_table transposition; const int max_age = 16; const int cluster_size = 4; const int invalid_depth = -64; inline void store_ages(uint8_t& ages, uint8_t age1, uint8_t age2) { ages = age1 + (age2 << 4); assert(GET_FIRST_AGE(ages) == age1); assert(GET_SECOND_AGE...
/* PSXLIB Controller Decoder Simple & Compact Library (PsxLib.cpp) To Use with PS1 and PS2 GamePad controllers with Arduino & c., Esp8266, Esp32 etc. Original written by: <NAME> June 22nd, 2008 Modified by <NAME> November 5ft, 2018 to be used with Espressif ESP micro series Following also libs of Bill Porter and...
#if PLATFORM_GL #include <GL/gl.h> #else #include <GLES2/gl2.h> #endif #include <assert.h> #include <stdlib.h> #include <cstring> #include <string> #include "util_file.hpp" #include "util_misc.hpp" #include "scoped.hpp" #include "stream.hpp" #include "pure_macro.hpp" using util::scoped_ptr; namespace { // anonymo...
// Compile this with // // g++ -o findsupport.exe findsupport.cpp // // or, to get debugging output, // // g++ -o findsupport.exe -DDEBUG findsupport.cpp // // To run it, see the call in $REGULUS/Prolog/regulus_expand.pl. // // Note: the -DDEBUG version won't work with regulus_expand because // it writes a whole lo...
/** @file Common functions for HPACK and QPACK @section license License 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 ...
// https://nanti.jisuanke.com/t/31721 #include<stdio.h> #include<string.h> #include<map> #define mod 1000000007 typedef long long ll; const ll def[]={ 0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0, 0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0, 1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0, 1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,...
/** * @author <NAME>. * @version 2020/12/01 */ /* Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. If target is not found in the array, return [-1, -1]. Follow up: Could you write an algorithm with O(log n) runtime comple...
/* -------------------------------------------------------------------------- */ // Copyright (c) 2021. <NAME> /* -------------------------------------------------------------------------- */ #include<iostream> #include<math.h> using namespace std; int sekundeUMinutu = 60; int sekundeUSatu = sekundeUMinu...
#include <stdlib.h> #include "PcapPlusPlusVersion.h" #include "PcapLiveDevice.h" #include "PcapLiveDeviceList.h" #include "NetworkUtils.h" #include "SystemUtils.h" #include <getopt.h> #define EXIT_WITH_ERROR(reason, ...) do { \ printf("\nError: " reason "\n\n", ## __VA_ARGS__); \ printUsage(); \ exit(1);...
////////////////////////////////////////////////////////////////////// // // Kingsoft Blaze Game Studio. Copyright (C) 2006 // // Created_datetime : 2006-08-16 17:00 // File_base : proc // File_ext : .cpp // Author : zolazuo(zuolizhi) // Description : ...
//-------------------------------------------------------------------------------------- // Player.cpp // PIX Workshop GDC2007 // Copyright (c) Microsoft Corporation. All rights reserved. //-------------------------------------------------------------------------------------- #include "DXUT.h" #include "Player.h" #incl...
#include "../callback.hpp" #include <algorithm> #include <set> #include <cassert> #include <cstdio> #include <string> ///\file This is basically a bunch of random tests for the callback library. ///It's a bit of a mess and probably not something one should use as learning material. ///When running this, a tool should...
#include "template2.hpp" // AWS::Camera camera; AWS::Time gTime; Window window; int lastX = 400, lastY = 300; float yaw, pitch; int wid = 800, hei = 600; float mouseX, mouseY; glm::vec3 pos; glm::vec3 right; glm::mat4 proj; // const float gravity = 1.0f; float deltaTime; float velocity = 0.0f; AWS::Object obje...
#include <gamebase/Gamebase.h> using namespace gamebase; using namespace std; enum Type { None, Wall, Pacman, Ghost, Coin }; class MyApp : public App { void load() { map<Color, int> colorToType; colorToType[Color(0, 0, 0)] = None; colorToType[Color(255, 255, 255)] = Wall; colorToType[Color(0, 0,...
#include "llvm/Pass.h" #include "llvm/IR/Function.h" #include "llvm/Support/raw_ostream.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/InstrTypes.h" #include "llvm/Transforms/IPO/PassManagerBuilder.h" #include "llvm/IR/IRBuilder.h" using namespace llvm; struct p32 { int val1; int val2; }; namespace {...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "protocol.h" #include "netbase.h" #include "util.h" #include <boost/filesystem.hpp>...
/********************************************************************** * MTreeView class - QTreeView with usability improvements. ********************************************************************** * Copyright (C) 2021 by AK-47 * Licensed under the Apache License, Version 2.0 (the "License"); * you may n...
/* ***** BEGIN LICENSE BLOCK ***** Version: MPL 1.1/LGPL 2.1/GPL 2.0 The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with ... for the specific language governing rights and limitations under the License. The Original Code...
// Copyright (C) 2016-2020 European Spallation Source, ERIC. See LICENSE file //===----------------------------------------------------------------------===// /// /// \file /// /// \brief Command server implementation /// //===----------------------------------------------------------------------===// //#include <algo...
#include <Alert.h> #include <Button.h> #include <String.h> #include <View.h> #include "ColumnListView.h" #include "globals.h" #include "dialimport.h" #include "befaktab.h" // tab2list #include "fakdata.h" #include <stdio.h> const uint32 LIST_INV = 'DILI'; const uint32 BUT_IMPORT = 'DIIM'; dialImport::dialImport(sql...
#include "treetesthelper.hh" #include <iomanip> #include <iostream> #include <vector> void printTestHeader() { std::cout << std::setw(5) << std::left << "tree" << std::setw(7) << std::left << " n" << std::setw(5) << std::left << "test" << std::setw(7) << std::right << "h1...
// // Notice Regarding Standards. AMD does not provide a license or sublicense to // any Intellectual Property Rights relating to any standards, including but not // limited to any audio and/or video codec technologies such as MPEG-2, MPEG-4; // AVC/H.264; HEVC/H.265; AAC decode/FFMPEG; AAC encode/FFMPEG; VC-1; and M...
#include<iostream> #include<algorithm> #include<string> #include<vector> #include<map> using namespace std; const char NULLC = '\0'; const int INF = 100000000; vector<char> s; struct Node; struct Edge { int start, length; Node *source, *target; Edge(int pstart, int plength, Node *psource, Node *ptarget) { ...
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: <NAME>, et al. (see THANKS for the full author list) * See LICENSE for the license information * ------------...
//+------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1997 - 1997. // // File: shlink.cxx // // Contents: Utility stuff for shell links // // History: 10-Sep-97 dlee Created mostly from IIS setup code //...
// Copyright 2018 The Fuchsia 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 <lib/device-protocol/pdev.h> #include <lib/device-protocol/platform-device.h> #include <stdint.h> #include <stdlib.h> #include <threads.h> #include...
/* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/> * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version....
// __BEGIN_LICENSE__ // Copyright (c) 2009-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NGT platform is licensed under the Apache License, Version 2.0 (the // "License"); you may not use this file excep...
// Copyright 2008 Isis Innovation Limited #include "KeyFrame.h" #include "ShiTomasi.h" #include "SmallBlurryImage.h" #include <cvd/vision.h> #include <cvd/fast_corner.h> #include "settingsCustom.h" using namespace CVD; using namespace std; using namespace GVars3; void KeyFrame::MakeKeyFrame_Lite(BasicImage<byte> &im...
/* * Copyright (c) 2004-2010 <NAME> (<EMAIL>) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU * General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) ...
/* * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * * 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 * ri...
// Copyright (c) 2001 Microsoft Corporation // // File: FileServerPage.cpp // // Synopsis: Defines the File server page of the CYS wizard // // History: 02/08/2001 <NAME> #include "pch.h" #include "resource.h" #include "InstallationUnitProvider.h" #include "FileServerPage.h" #include "xbytes.h...
/* * ButtonSourceSPI.cpp * * Created on: 11.02.2020 * Author: Yannick */ #include "constants.h" #include <SPIButtons.h> #include "eeprom_addresses.h" #include "math.h" ClassIdentifier SPI_Buttons::info = { .name = "SPI" , .id=1 }; const ClassIdentifier SPI_Buttons::getInfo(){ return info; } SPI_Bu...
#include <pdx/service_dispatcher.h> #include <errno.h> #include <log/log.h> #include <sys/epoll.h> #include <sys/eventfd.h> #include <pdx/service.h> #include <pdx/service_endpoint.h> static const int kMaxEventsPerLoop = 128; namespace android { namespace pdx { std::unique_ptr<ServiceDispatcher> ServiceDispatcher::...
#include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/PluginManager/interface/ModuleDef.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FW...
#include "DiodeLadder.hpp" using namespace lrt; DiodeLadderStage::DiodeLadderStage(float sr) : DSPEffect(sr) { } void DiodeLadderStage::init() { alpha = 1.f; beta = -1.f; gamma = 1.f; delta = 0.f; epsilon = 1.f; feedback = 0.f; gain = 1.f; resetZ1(); } void DiodeLadderStage::in...
/** =========================================================================== * @file CmdAutoTurnAngle.cpp * @brief This file defines the CmdAutoTurnAngle class. * * The CmdAutoTurnAngle class is used to turn the robot autonomously using a * differential drive in tank mode. * * COPYRIGHT NOTICES: * * Som...
/************************************************************** * * 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 y...
/** \file plot2d_waypts_path.cpp \brief plot path between waypoint for 2 joints * * this node subsscribe to the topic contains the states of the joints "topic_name",and to the cmd_pos/cmd_vel topic, * then it plots the trajectories that are received through the cmd_topic and and topic_name * run this node by ...
#include "hello_imgui.h" #include <fplus/fplus.hpp> #include "utilities/ImGuiExt.h" #include "WindowWithEditor.h" std::vector<TextEditor *> gAllEditors; WindowWithEditor::WindowWithEditor() { mEditor.SetPalette(TextEditor::GetLightPalette()); mEditor.SetLanguageDefinition(TextEditor::LanguageDefinition::CPlus...
#include "gtest/gtest.h" #include "servant/Application.h" #include "TarsTest/TestcaseServer/RPCTest.h" #include "servant/AdminF.h" #include "TarsServantName.h" #include "util/tc_shm.h" #include "util/tc_bitmap.h" #include "util/tc_option.h" #include "util/tc_common.h" #include <iterator> #include <iostream> #include ...
#include <iostream> #include <map> #include "../Common/Graphics.h" #include "../Common/CellGrid2D.h" #include "../Common/SelectionSet.h" #include "../Common/Random.h" #include "../Common/Input.h" #include "../Common/Png.h" #include "../Common/Xml.h" using std::string; using std::map; const char VOID = ...
/** * Copyright 2021 <NAME> <<EMAIL>> * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
// Copyright 2016, National University of Defense Technology // Authors: <NAME> <<EMAIL>> #include "bc.h" #include "common.h" #include "timer.h" #include <vector> #include <algorithm> /* static ValueType DEFAULT_RELATIVE_TOL = 1e-4; static ValueType DEFAULT_ABSOLUTE_TOL = 1e-4; template<typename T> bool almost_equal(c...
/* * Copyright 2013-2014 BlackBerry Limited. * * 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...
#include "calculus/server.h" #include <iostream> #include <sstream> #include <string> #include <thread> #include <vector> #include <complex> #include "seasocks/Server.h" #include "aos/linux_code/init.h" #include "aos/common/logging/logging.h" #include "aos/common/time.h" #include "aos/common/util/phased_loop.h" #inc...
// This source file is part of the polarphp.org open source project // // Copyright (c) 2017 - 2019 polarphp software foundation // Copyright (c) 2017 - 2019 zzu_softboy <<EMAIL>> // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://polarphp.org/LICENSE.txt for license information // S...
//////////////////////////////////////////////////////////////////////////////// // // CoinQ_test1.cpp // // Copyright (c) 2013 <NAME> // // All Rights Reserved. #include "CoinQ_peer.h" #include "CoinQ_filter.h" #include "CoinQ_blocks.h" #include "CoinQ_keys.h" #include <iostream> #include <string> using namespace C...
/* * Fast Positive Tuples (libfptu), aka Позитивные Кортежи * Copyright 2016-2020 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/...
#pragma comment(linker, "/stack:200000000") #pragma GCC optimize("Ofast") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #pragma GCC optimize("unroll-loops") #include<bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long #define ld long...
// [WriteFile Name=AddGraphicsWithRenderer, Category=DisplayInformation] // [Legal] // Copyright 2016 Esri. // 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...
/* BRL00_plugin.cpp * BRL test plugin 00 * 2013-12-20 : by BRL */ #include "v3d_message.h" #include <vector> #include "BRL00_plugin.h" #include <QtGui> #include <fstream> #include <iostream> #include <math.h> #define WANT_STREAM // include iostream and iomanipulators using namespace std; Q_EXPORT_PLUGIN2(...
#include <stdio.h> #include <iostream> #include <chrono> #include <vector> #include <unistd.h> #include <fcntl.h> #include <signal.h> #include <X11/Xutil.h> #include <sys/ipc.h> #include <sys/shm.h> #include <X11/extensions/XShm.h> #include <linux/input.h> using namespace std; // position and dimension (should only o...
#include <QDateTime> #include "imclient.h" #include "protocol.h" #include "imdal.h" IMClient::IMClient(QObject *parent) : QObject(parent), m_socket(new QTcpSocket) { connect(m_socket, &QTcpSocket::connected, this, &IMClient::connected); connect(m_socket, &QTcpSocket::readyRead, this, &IMCli...
// Magic Software, Inc. // http://www.magic-software.com // http://www.wild-magic.com // Copyright (c) 2004. All Rights Reserved // // The Wild Magic Library (WML) source code is supplied under the terms of // the license agreement http://www.magic-software.com/License/WildMagic.pdf // and may not be copied or ...
/* * Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later ve...
/* UNISTDX — C++ library for Linux system calls. © 2017, 2018, 2020, 2021 <NAME> This file is part of UNISTDX. This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled ...
/*===================== begin_copyright_notice ================================== Copyright (c) 2021, Intel Corporation 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, i...