text
stringlengths
3.08k
12.5k
// -*- coding: utf-8 -*- #define _USE_MATH_DEFINES #include <iostream> #include <fstream> #include <Eigen/Dense> #include <Eigen/LU> #include <chrono> #include <assert.h> double slp_laplace(const Eigen::Vector2d &xm, const Eigen::Vector2d &ym, const Eigen::Vector2d &y1, const Eigen::Vector2d &y2, const double &h...
#include "FileSystemWatcher.h" #include <errno.h> #include <sys/inotify.h> #include <sys/ioctl.h> #include "EventLoop.h" #include "Log.h" #include "rct/rct-config.h" #include "Rct.h" #include "StackBuffer.h" void FileSystemWatcher::init() { mFd = inotify_init1(IN_CLOEXEC); assert(mFd != -1); EventLoop::...
// // ycsbc.cc // YCSB-C // // Created by <NAME> on 12/19/14. // Copyright (c) 2014 <NAME> <<EMAIL>>. // Ju: Tailored the code for LevelDB <<EMAIL>> #include <cstring> #include <string> #include <iostream> #include <vector> #include <future> #include <atomic> #include <sstream> #include <unordered_map> #include "...
/* * Copyright 2019-2021 Diligent Graphics LLC * Copyright 2015-2019 <NAME> * * 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 *...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
#include "game.h" #include <Windows.h> #include <stdio.h> void setupMap ( SGame* gameObject ) { // initialize game map gameObject->Map.Width = 32; // Set a proper width for our map, which has to be less than MAX_MAP_WIDTH gameObject->Map.Depth = 15; // Same for ma...
/* Copyright 2016 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
/** * Copyright 2020-2021 Huawei Technologies Co., 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 ...
/* $Id: CalcFeatureSignificance.cpp,v 1.9 2016/06/20 06:35:15 severin Exp $ */ /*** NAME - EEDB::SPStreams::CalcFeatureSignificance SYNOPSIS DESCRIPTION A simple signal procesor which is configured with a minimum expression value and which will only pass expressions which are greater than that value CONTACT <N...
/* * Copyright 2019 Xilinx Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * * Copyright 2016 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...
/* * Copyright (c) 2013-2021 <NAME> <<EMAIL>> * * 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. * */ #include <string.h> #include "json_fastcgi_web_api...
/* * Copyright (c) [2020] Huawei Technologies Co., Ltd. All rights reserved. * * OpenArkCompiler is licensed under the Mulan Permissive Software License v2. * You can use this software according to the terms and conditions of the MulanPSL - 2.0. * You may obtain a copy of MulanPSL - 2.0 at: * * https://opensou...
// Copyright (c) 2013, <NAME> <<EMAIL>> // // 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 AUTHOR DISCLAI...
#include "RobotController.h" #include <opencv2/calib3d/calib3d.hpp> #include "../aruco/src/aruco.h" #include "libplayerc++/playerc++.h" #include <chrono> #include <unistd.h> /*------------------------------ Construction --------------------------------*/ RobotController:: RobotController(const std::string& _ip) ...
#include <cassert> #include <iostream> #include <boost/timer.hpp> template <typename T> class vector { void check_size(int that_size) const { assert(my_size == that_size); } void check_index(int i) const { assert(i >= 0 && i < my_size); } public: explicit vector(int size) : my_size(size), data( ne...
#include <cmath> #include <vector> #include <iomanip> #include <stdexcept> std::vector<stan::math::var> get_vvar(std::vector<double> vd) { size_t size = vd.size(); std::vector<stan::math::var> vv; vv.reserve(size); for (size_t i = 0; i < size; i++) vv.push_back(vd[i]); return vv; } std::vector<double> v...
#include "global.h" #include "LyricDisplay.h" #include "GameState.h" #include "ThemeManager.h" #define IN_COMMAND THEME->GetMetric("LyricDisplay","InCommand") #define OUT_COMMAND THEME->GetMetric("LyricDisplay","OutCommand") #define WIPE_DIM_FACTOR THEME->GetMetricC("LyricDisplay","WipeDimFactor") float g_TweenInT...
// Copyright (c) UT2UH. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "utility/Config.h" #include "MaixAmigo.h" MaixAmigo::MaixAmigo() : isInited(0) { } void MaixAmigo::begin(bool LCDEnable, bool SDEnable, bool SerialEnable, bool ...
#include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <time.h> typedef uint32_t u32; typedef uint64_t u64; typedef float f32; typedef double f64; struct samples { u32 Count; u32 *Buckets; u32 MinValue; u32 Ma...
/* * ============================================================= * cdist.c * input: x,a,b * x: DxN matrix * a: 1xN vector of indices * b: 1xN vector of indices * * output: sum((x(:,a)-x(:,b)).^2) * * ============================================================= */ /* $Revision: 1.2 $ */ #include "m...
#include <nekrs.hpp> #include <nekInterfaceAdapter.hpp> #include "RANSktau.hpp" // private members namespace { static ins_t* ins; int kFieldIndex; dfloat rho; dfloat mueLam; static occa::memory o_mut; static occa::memory o_k; static occa::memory o_tau; static occa::kernel computeKernel; static occa::kernel SijOij...
// <NAME> #include <cmath> #include <vector> #include <numeric> #include "matrix.hpp" using namespace std; CMatrixOperations::CMatrixOperations(void) { } CMatrixOperations::~CMatrixOperations(void) { } // LU decomposition; LUstruct CMatrixOperations::LU(vector<vector<double> > A) { int N = A.size();...
// ContainerWindow.cpp // Generated by Interface Elements (Window v2.3) on Feb 14 2004 // This is a user written class and will not be overwritten. #include "ContainerWindow.h" #include <TranslationKit.h> #include <iostream.h> extern const char *PREFS_BACKSTORE_PATH; ContainerWindow :: ContainerWindow(BPositionIO *s...
#include "IRremote.h" #include "IRremoteInt.h" //+============================================================================= // Decodes the received IR message // Returns 0 if no data ready, 1 if data ready. // Results of decoding are stored in results // int IRrecv::decode (decode_results *results) { r...
/* * Copyright 2014. Los Alamos National Security, LLC. This material was produced * under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National * Laboratory (LANL), which is operated by Los Alamos National Security, LLC * for the U.S. Department of Energy. The U.S. Government has rights to use, ...
#include "canvas/Utilities/FriendlyName.h" // vim: set sw=2 expandtab : #include "canvas/Utilities/Exception.h" #include <map> #include <mutex> #include <regex> #include <string> // NOTE: This should probably be rewritten so that we break the class // name into a tree where the template arguments are the node. On t...
/** \file makedata.cpp *small app to create t-sne data files compiles with g++ -g -Wall makedata.cpp -o makedata -O3 -I./CBLAS/include -L./ -lblas *idea make few random points no_pointinball in random unit ball placed in in cube[0,1]dim 20. *generate random data in each of these balls. *run bh_tsne *plot the reults i...
/*Copyright(c) 2018, slugdev 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 and the following dis...
#include <iostream> #include <lv2/lv2plug.in/ns/ext/atom/atom.h> #include <lv2/lv2plug.in/ns/ext/atom/forge.h> #include <lv2/midi/midi.h> #include "maolan/config.hpp" #include "maolan/io.hpp" #include "maolan/plugin/lv2/port.hpp" using namespace maolan::plugin::lv2; static std::uint32_t uid = 0; struct Message { ...
/* Copyright (c) 2008, 2015, 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 Foundation; version 2 of the License. This program is distributed in the h...
/* Copyright (c) 2005-2019, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and binary forms...
// csaaq_includeinexternc.cpp -*-C++-*- #include <clang/Frontend/CompilerInstance.h> #include <clang/Lex/HeaderSearch.h> #include <clang/Lex/Preprocessor.h> #include <clang/Lex/Token.h> #include <csabase_analyser.h> #include <csabase_clang.h> #include <csabase_config.h> #inclu...
// // Created by seeta on 2018/7/19. // #include <kernels/cpu/math_cpu.h> #include <utils/random.h> #include <cstring> #include <iostream> #include <chrono> #include <runtime/inside/thread_pool.h> #include <utils/ctxmgr.h> #ifdef TS_USE_CBLAS #include <kernels/cblas/math_cblas.h> #endif void test_blas(ts::Random &r...
// // Created by <NAME> on 21/12/2019. // #include "Information.h" #include "Log.h" #include "jni.h" #include <cstring> Information * Information::ms_instance = nullptr; void Information::__SetValueFromString(char * &ref_value, const char * cstr, const size_t & size) { ref_value = new char[size + 1]; ...
// // Copyright 2017 Animal Logic // // 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...
/* * This file is part of the statismo library. * * Author: <NAME> (<EMAIL>) * * Copyright (c) 2011 University of Basel * All rights reserved. * * Statismo is licensed under the BSD licence (3 clause) license */ #include <iostream> #include <memory> #include <vtkPolyDataReader.h> #include "Kernels.h" #inclu...
/* * Copyright (c) 2008-2016, Integrity Project 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 ...
#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...
/*! @file DIS/PausePointList.cpp @ingroup DIS @brief Represents an HLA Synchronization Point in Trick. @copyright Copyright 2019 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. No copyright is claimed in the United States under Title 17, U.S. Code. All...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/> * * Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/> * * Copyright (C) 2011 - 201...
//#include "stdafx.h" # include "shp_polygon.h" shp_polygon::shp_polygon() { shapetype = API_SHP_POLYGON; } shp_polygon::shp_polygon( const shp_polygon & p ) :shape(p) { } int shp_polygon::recordbyteLength() { int numberbytes = shape::recordbyteLength(); numberbytes += sizeof(int); numberbytes += sizeof(double...
/* transform.{cc,hh} -- planar affine transformations * * Copyright (c) 2000-2006 <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 2 of the License, or (at your opti...
#include "allrefs.h" #include "search.h" #include <algorithm> #include <functional> #include <fstream> #include <locale> #include <optional> #include <regex> #include <unordered_set> #include <vector> #include "lb_string.h" #include <signal.h> void RefRecords::saveToFile(const lb::filesystem::path & dataref_filena...
#include "stratum.h" bool socket_connected(YAAMP_SOCKET *s) { return s->sock > 0; } void socket_real_ip(YAAMP_SOCKET *s) { // get real ip if we are using haproxy or similar that use PROXY protocol // https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt int size, ret; const char v2sig[] = "\x0D\x0A\x0D\x0...
#include "Bowser.h" #include "Core.h" #include "stdlib.h" #include "time.h" /* ******************************************** */ Bowser::Bowser(float fXPos, float fYPos, bool spawnHammer) { this->fXPos = fXPos; this->fYPos = fYPos; this->iHitBoxX = this->iHitBoxY = 64; this->iBlockID = 20; this->moveDirection =...
#include <iostream> #include <string> #include <fstream> #include <iomanip> using namespace std; const int TAM = 8; const int MAX_JUGADORES = 4; const int incF[] = { -1, 0, 1, 0 }; const int incC[] = { 0, 1, 0, -1 }; typedef enum { VACIA, HIELO, MURO, CAJA, JOYA, TORTUGA } tEstadoCasilla; typedef enum { NORTE, ESTE, ...
#include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <cstdio> #include <cstring> #include <csignal> #include <iostream> #include <algorithm> #include <thread> #include <dasynq.h> // Extremely simple chat server example for Dasynq : multi-threaded event loop version // // See chatserver.cc ...
// See the file "COPYING" in the main distribution directory for copyright. #include "SSH.h" #include "analyzer/protocol/tcp/TCP_Reassembler.h" #include "Reporter.h" #include "types.bif.h" #include "events.bif.h" using namespace analyzer::SSH; SSH_Analyzer::SSH_Analyzer(Connection* c) : tcp::TCP_ApplicationAnaly...
#include "inc.h" // ref: 0x10006F7C LRESULT __stdcall EntName_WndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) { int v4; // edx HWND v5; // eax HWND v6; // eax HWND v7; // eax HWND v9; // eax v4 = 2; if (Msg == 2) { EntName_DelEntNameMsgs(hWnd); return (LRESU...
/* * Copyright(C) 2021. Huawei Technologies Co.,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...
/**************************************** * Written by <NAME> * 15th May 2014 * * Copyright (c) 2014 <NAME> **************************************** */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <samplerate.h> #include "sample.h" /* * This method converts from any ...
#include <stdio.h> #include <math.h> #include <iostream> //------------------------------------------------------------------------------ /// Convert given 3 bytes of characters to 4 chars in base64 /// /// @args[out] output An array for storing the output /// @args[in] input An array of chars (3 bytes) /// @args[i...
/* * Name: main.cpp * * Copyright (c) <NAME> and contributors. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project root for details. */ // this #include "syscalls.hpp" // std #include <cstdio> // cml #include <cml/hal/Systick.hpp> #include <cml/hal/interna...
#include <filesystem> #include <Scenes/Component.hpp> #include <Scenes/Entity.inl> #include <Scenes/System.hpp> #include <Scenes/Scene.hpp> using namespace acid; class Transform : public Component::Registrar<Transform> { public: float x = 0.0f, y = 0.0f, z = 0.0f; float pitch = 0.0f, yaw = 0.0f, roll = 0.0f; floa...
// I2S Passthrough example for PICO_DSP development board with 4MB Flash and 8MB PSRAM #include <Arduino.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include <stdio.h> #include <stdlib.h> #include "driver/i2s.h" #include "driver/gpio.h" #include "esp_system.h" #include "esp_sleep.h" #include "driver/p...
#include "mp3Codec.h" const uint16_t ff_mpa_bitrate_tab[2][3][15] = {{{0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448}, {0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384}, {0, 32, 40,...
#ifdef testModel #include "../../../headers/restrictedOptimization/activeset.h" #else #include "SistemasdeControle/headers/restrictedOptimization/activeset.h" #endif template <typename Type> void restrictedOptimizationHandler::activeSet<Type>::optimize() { this->initializeMethod(this->P.A,this->P.b,this->N...
/* This file is part of csgo-fake-opening by B3akers, licensed under the MIT license: * * MIT License * * Copyright (c) b3akers 2020 * * 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 ...
#include "TCPClientServer.hpp" TCP_Server::TCP_Server() { // create a socket listeningSocket = socket(AF_INET, SOCK_STREAM, 0); if(listeningSocket == -1) { std::cout << "Unable to aquire socket. Quitting and dumping any locks."; std::abort(); } // fill sockaddr_in address.sin_f...
#include <pcl/ModelCoefficients.h> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include <pcl/filters/passthrough.h> #include <pcl/filters/voxel_grid.h> #include <pcl/filters/project_inliers.h> #include <pcl/sample_consensus/method_types.h> #include <pcl/sample_consensus/model_types.h> #include <pcl/segmenta...
/* * File: ddb.cpp * Copyright (C) 2004 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS) */ #include "common/sedna.h" #include <iostream> #include "common/base.h" #include "common/errdbg/d_printf.h" #include "common/argtable.h" #include "common/version.h" #include "common/pping.h" ...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2013, 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: // // ...
/* * Copyright 2003-2007, <NAME> <<EMAIL>> * Distributed under the terms of the MIT License. */ /*! \class KPPPProtocol. \brief Represents a PPP protocol object. This class is the base for all protocols, encapsulators, and authenticators. */ #include <KPPPInterface.h> #include <KPPPUtils.h> #include <PPPContro...
/* nymph_listener.cpp - Implements the NymphRPC Listener class. Revision 0 Notes: - History: 2017/06/24, <NAME> : Initial version. (c) Nyanko.ws */ #include "nymph_listener.h" #include "nymph_logger.h" #include <iostream> #include <cstdlib> using namespace std; #include <Poco/Thread.h> #include...
/** * Copyright (c) 2017, xehoth * All rights reserved. * 「BZOJ 1176」09-01-2017 * * @author xehoth */ #include <bits/stdc++.h> const int IN_LEN = 10000000, OUT_LEN = 10000000; inline int nextChar() { static char buf[IN_LEN], *h, *t; if (h == t) { t = (h = buf) + fread(buf, 1, IN_LEN, stdin); ...
#include <csignal> #include <string> #include "game.h" #include "armor.h" #include "daemons.h" #include "food.h" #include "io.h" #include "level.h" #include "misc.h" #include "move.h" #include "options.h" #include "player.h" #include "potions.h" #include "rings.h" #include "rogue.h" #include "score.h" #include "scroll...
/* * * 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...
/// @file chase.cpp /// @brief Contais the implementation of the chase class. /// @author <NAME> /// @date Nov 11 2016 /// @copyright /// Copyright (c) 2016 <NAME> <<EMAIL>> /// Permission is hereby granted, free of charge, to any person obtaining a /// copy of this software and associated documentation files (the...
/* MGEAR is under the terms of the MIT License Copyright (c) 2016 <NAME>, <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
#include "cfaes.hpp" #include "../registry.hpp" //#include <thread> #if defined(__AES__) //SSE optimized #include <emmintrin.h> #include <wmmintrin.h> #else #include "aes.hpp" #endif using namespace Catena_Variants; //Register the registrable with the Registry so it can be used by CatenaFactory Registry<Cfaes> regcf...
// Copyright (c) 2017, The CryptoMY 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 the above copyright notice, this list of // ...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
/* Copyright (c) 2017-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, merge, publish, ...
// Modify Listing 16.9 (vect3.cpp) as follows: // a. Add a price member to the Review structure. // b. Instead of using a vector of Review objects to hold the input, use a // vector of shared_ptr<Review> objects. Remember that a shared_ptr has // to be initialized with a pointer returned by new. // c. Follow the ...
/* SAWD Small ASCII Walk-around Demo (C) Copyright 2008, CCPS Solutions 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. ...
// Copyright (c) 2022 PaddlePaddle 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...
#include <stdint.h> #include <iostream> #include <fstream> #include <boost/program_options.hpp> #include <boost/assert.hpp> #include <boost/fusion/algorithm.hpp> #include <boost/spirit/include/karma.hpp> #include <boost/foreach.hpp> #include <jaguar/jaguar_bridge.h> #include <jaguar/jaguar_helper.h> static uint32_t u...
#include <iostream> #include <cstdio> #include <cstring> #include <cassert> #include <cctype> #include <algorithm> #include <vector> #include <fstream> using namespace std; typedef long long lint; #define cout cerr #define ni (next_num<int>()) template<class T>inline T next_num(){ T i=0;char c; while(!isdigit(c=getch...
#include "stdafx.h" #include "luanode.h" #include "luanode_timer.h" #include "blogger.h" #include <boost/asio/placeholders.hpp> #include <boost/bind.hpp> #include <boost/make_shared.hpp> using namespace LuaNode; static unsigned long s_nextTimerId = 0; static unsigned long s_timerCount = 0; static int ...
/* * arptable.{cc,hh} -- ARP resolver element * <NAME> * * Copyright (c) 1999-2000 Massachusetts Institute of Technology * Copyright (c) 2005 Regents of the University of California * Copyright (c) 2008 Meraki, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this soft...
/* Copyright (c) 2017-2018 SKKU ESLAB, and contributors. All rights reserved. * * Contributor: <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.o...
// <NAME>, copyright Sep 2001 #include "gb-include.h" #include "Mem.h" #include "Conf.h" #include "Hostdb.h" #include "UdpServer.h" #include "Loop.h" #include "ip.h" #include <ctype.h> #include "Spider.h" // the default protocol UdpProtocol g_dp; // the request handler static void handleRequest ( UdpSlot *slot , i...
#include "Geometry/CSCGeometry/interface/CSCGeometry.h" #include "Geometry/CSCGeometry/interface/CSCChamber.h" #include "Geometry/CSCGeometry/interface/CSCChamberSpecs.h" #include "Geometry/CommonDetUnit/interface/GeomDet.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "DataFormats/GeometrySurface...
/** * OpenColorIO conversion Iop. */ #include "OCIOCDLTransform.h" namespace OCIO = OCIO_NAMESPACE; #include <string> #include <sstream> #include <stdexcept> #include <DDImage/Channel.h> #include <DDImage/PixelIop.h> #include <DDImage/NukeWrapper.h> #include <DDImage/Row.h> #include <DDImage/Knobs.h> const char...
// Copyright(C) 1999-2021 National Technology & Engineering Solutions // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with // NTESS, the U.S. Government retains certain rights in this software. // // See packages/seacas/LICENSE for details #include "include/vtkCGNSMultiBlockDataSet.h" #include "vt...
#include "Variant.h" #include <getopt.h> #include <utility> using namespace std; using namespace vcf; void printSummary(char** argv) { cerr << "usage: " << argv[0] << " [vcf file] [vcf file] ..." << endl << endl << "Combines VCF files positionally, combining samples when sites and alleles are i...
#include "Renderer.hpp" #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" void Renderer::render(const Scene& scene) { const auto scene_size = scene.width() * scene.height(); std::vector<Vector3f> framebuffer(scene_size); float scale = std::tan(degree_to_rad(scene.fov() * 0.5f)); flo...
#include "toolboxes/sphericalharmonics.h" #include "toolboxes/errormessages.h" #include <math.h> SphericalHarmonics::SphericalHarmonics( unsigned L_degree ) { _LMaxDegree = L_degree; unsigned associatedLegendrePolySize = GlobalIdxAssLegendreP( _LMaxDegree, _LMaxDegree ) + 1; _aParam = std::vector<d...
#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 vi vector<int> #define vll vector<long long int> #define fi first #define se second #define sc(n) scanf("%d",&n); #define scll(n) ...
/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file pnmPainter.cxx * @auth...
/* * LeetCode 97 Interleaving String * Medium * <NAME> * 2021 6.2 */ /* Revision * $1: 2021 8.26 <NAME> * */ #include <iostream> #include <string> #include <vector> #include <queue> using namespace::std; // #1 BFS Search /* s1 = aab s2 = abc s3 = aaabcb o -- a -- o -- b -- o -- c -- o | |...
#include "StitchJoin.h" #include <pthread.h> #include "barrier.h" #include "prj_params.h" #include "util.h" #include <algorithm> #include <vector> #ifdef NATIVE_COMPILATION #include "native_ocalls.h" #include "pcm_commons.h" #include "Logger.h" #else #include "Enclave.h" #include "Enclave_t.h" #endif #define HASH_BIT...
#include "m3Matrix.h" void m3Matrix::jacobiRotate(m3Matrix& A, m3Matrix& R, int p, int q) { // rotates A through phi in pq-plane to set A(p,q) = 0 // rotation stored in R whose columns are eigenvectors of A float d = (A(p, p) - A(q, q)) / (2.0f*A(p, q)); float t = 1.0f / (fabs(d) + sqrt(d*d + 1.0f)); if (...
// // Created by aoool on 15.11.18. // #include "trajectory_layer.hpp" #include <typeinfo> #include <Eigen/Dense> using Eigen::MatrixXd; using Eigen::VectorXd; std::vector<double> TrajectoryLayer::GetJerkMinimizingTrajectory(std::vector<double> start, std::vector<double> end, double t) const { /* Calculate the...
/* ############################################################################### # # Temboo CoAP Edge Device library # # Copyright (C) 2015, Temboo 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 co...
#include "core.h" #include "gl2texture.h" #include "idatastream.h" #include "configmanager.h" #include "mathcore.h" GL2Texture::GL2Texture() : m_Texture( 0 ) { } GL2Texture::GL2Texture( GLuint Texture ) : m_Texture( Texture ) { } GL2Texture::~GL2Texture() { if( m_Texture != 0 ) { glDeleteTextures( 1, &m_Texture ...
#include "includes.h" #include "externs.h" BOOL MoveBot(char *MTP, char *Bname) { char CurrentPath[MAX_PATH],CurrentPathF[MAX_PATH],MoveToPathF[MAX_PATH]; GetModuleFileName(GetModuleHandle(NULL),CurrentPathF,sizeof(CurrentPathF)); _snprintf(MoveToPathF,sizeof(MoveToPathF),"%s\\%s",MTP,Bname); strcpy(CurrentPath,Cu...
#include <vector> #include <iostream> #include <smpp/MppPoint.h> #include <smpp/MppSilhouette2D.h> bool assert_point_list_equals(std::vector<MppPoint2D*>* l1, std::vector<MppPoint2D*>* l2){ if (l1->size() != l2->size()){ return false; } for (int i = 0 ; i < l1->size() ; i++){ if ((*l1)[i...
#include "waifu2x.h" #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> #define STB_IMAGE_WRITE_IMPLEMENTATION #include <stb_image_write.h> Waifu2xMat::Waifu2xMat(ncnn::Mat* mat, bool nodatarelease) { source = mat; pixelData = (byte*)mat->data; element_size = mat->elemsize; width = mat->w; height = mat->h; ...