text
stringlengths
8.71k
38.4k
// // Disclaimer: // ---------- // // This code will work only if you selected window, graphics and audio. // // Note that the "Run Script" build phase will copy the required frameworks // or dylibs to your application bundle so you can execute it on any OS X // computer. // // Your resource files (images, sounds, fon...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <iostream> #include <vector> #include <random> #include <chrono> #include <unordered_map> #include <climits> #include <algorithm> #include <deque> #include <cmath> #include <limits> #include <numeric> #include "basic_function.h" #include "graph.h" #inclu...
#include <algorithm> #define __STDC_FORMAT_MACROS #include <inttypes.h> #include <pthread.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <atomic> #include <map> #include "magnachain.h" #include "db.h" extern "C" { #include "dns.h" } #include "mcdnsseedopts.h" #include "co...
/** * Copyright (c) 2017-present, Facebook, 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 ...
#pragma once #include "../pch.hpp" // https://github.com/EpicGames/UnrealEngine/blob/release/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h static constexpr float PI = 3.1415926535897932f; // Extra digits if needed: 3.1415926535897932384626433832795f static constexpr float SMALL_NUMBER = 1...
#include "cassembler.h" #include <stdio.h> #define NO_LINE_NR 0xFFFFFFFF const char *instructions[] = { "ADD", "ADDCY", "AND", "CALL", "COMPARE", "DISABLE", "ENABLE", "FETCH", "INPUT", "JUMP", "LOAD", "OR", "OUTPUT", "RETURN", "RETURNI", "ROTATE", "RL", "RR", "SL0", "SL1", "SLA", "SLX", "SR0", "SR1", "SRA", "SR...
#include "FSTWindow.h" #include <algorithm> #include <list> #include <iostream> #include "imgui.h" #include <bitset> #include <fstream> #include <sstream> #include <nlohmann/json.hpp> using json = nlohmann::json; //------------------------------------------------------- inline void FSTWindow::showSignalsMenu(Scope &...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <limits.h> #include <assert.h> #include "pe.h" #include "zk.h" #define MAX_FILENAME 256 #define FIXUP_ARRAY_SIZE 6000 #define FALSE 0 #define TRUE 1 #ifndef _MSC_VER #ifndef __cdecl #define __cdecl #endif #endif #ifndef min #define min(a, b) ((a) ...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/nacl/browser/pnacl_host.h" #include <utility> #include "base/bind.h" #include "base/bind_helpers.h" #include "base/callback_helpers...
/* * Copyright (C) 2011, British Broadcasting Corporation * All Rights Reserved. * * Author: <NAME> * * 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...
/*- * nslu2_image.cc * Return the bytes of an NSLU2 image, constructed on the fly if * necessary. */ #include <stdexcept> #include <cstring> #include <iostream> #include <fstream> #include <cerrno> #include "nslu2_image.h" namespace NSLU2Image { /* This code requires a complete read of the given buffer each ...
/* * Copyright (c) 2008 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public License * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WI...
/* -------------------------------------------------------------------------- * * Simbody(tm): SimTKcommon * * -------------------------------------------------------------------------- * * This is part of the SimTK biosimulation toolkit originating from * ...
// Copyright (c) 2009-2019 <NAME> // Copyright (c) 2009-2019 The Bitcoin Developers // Copyright (c) 2014-2019 The Dash Core Developers // Copyright (c) 2016-2019 Duality Blockchain Solutions Developers // Copyright (c) 2017-2021 Bitcreds Developers // Distributed under the MIT/X11 software license, see the accompanyin...
//===- BarrierRemovalContinuation.cpp - Remove barriers in parallel loops -===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
// Copyright (C) 2000, International Business Machines // Corporation and others. All Rights Reserved. #include <numeric> #include "CoinHelperFunctions.hpp" #include "CoinSort.hpp" #include "BCP_matrix.hpp" #include "BCP_lp_node.hpp" #include "BCP_lp_pool.hpp" #include "BCP_lp.hpp" #include "BCP_lp_user.hpp" #includ...
/********************************************************************************/ /* */ /* Copyright (c) Microsoft Corporation. All rights reserved. */ /* Portions Copyright(c) 2020 Analog Devices Inc. */ /* Licensed under the MIT ...
/*******************************************************************/ /* */ /* ADOBE CONFIDENTIAL */ /* _ _ _ _ _ _ _ _ _ _ _ _ _ */ /* ...
/* EGYPT Toolkit for Statistical Machine Translation Written by <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, and <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; ei...
/* * $Id$ * * Copyright 2015 <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 agre...
/* * This source code is public domain. * * Authors: <NAME> <<EMAIL>> */ /////////////////////////////////////////////////////// // DMF DELUSION DIGITAL MUSIC FILEFORMAT (X-Tracker) // /////////////////////////////////////////////////////// #include "stdafx.h" #include "sndfile.h" //#define DMFLOG //#pragma warni...
/* # # UFFBAPS - Unified Force Field for Binding And Protein Stability # Copyright (C) 2010 <NAME> & <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 Licen...
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
/*********************************************************************************************************************** * WEX, Copyright (c) 2008-2017, Alliance for Sustainable Energy, LLC. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provide...
#include <graphics.h> #include <stdio.h> #include "VeHinh.h" #include "windows.h" #include "mmsystem.h" int thu_tu_mau_sac[] = { 1, 2, 3 }; int so_hat_soi = 0; int hangsoi[100]; const int STATE_BEGIN = 0; const int STATE_ADD = 1; const int STATE_ORDER = 2; int state = STATE_ADD; int mat_nuoc = -1; // mat n...
// =============================================================================== // NVIDIA PHYSX SDK TRAINING PROGRAMS // LESSON 702: SUSPENSION AND TORQUE // // Written by <NAME>, 5-1-06 // =============================================================================== #include "Less...
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
/** \file constraintAttachment.cxx Sergei <Neill3d> Solokhin 2018 GitHub page - https://github.com/Neill3d/OpenMoBu Licensed under The "New" BSD License - https://github.com/Neill3d/OpenMoBu/blob/master/LICENSE */ //--- Class declarations #include "constraintAttachment.h" #include <vector> #include "pointTriangl...
#include <iostream> #include <time.h> #include <cstdlib> #include <stdlib.h> #include <sstream> #include <string> #include <ros/ros.h> #include <ros/package.h> #include <std_msgs/Bool.h> #include <std_msgs/Header.h> #include <geometry_msgs/Pose2D.h> #include <sensor_msgs/Image.h> #include <sensor_msgs/ima...
/* * Carbon/Network MultiMedia Streaming Module * RTCP protocol client * * Copyright (c) 2016 Softland. All rights reserved. * Licensed under the Apache License, Version 2.0 */ /* * Revision history: * * Revision 1.0, 08.11.2016 13:10:03 * Initial revision. */ #include "shell/utils.h" #include "carbon/ra...
#include <vector> #include <deque> #include <string> #include <algorithm> #include <iostream> #include <fstream> #include <chrono> #include <unistd.h> #include <sys/wait.h> #include <boost/program_options.hpp> #include <boost/archive/binary_oarchive.hpp> #include <boost/archive/binary_iarchive.hpp> namespace po = boo...
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2019 RDK Management * * 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 ...
#include <glm-0.9.5.3/glm/gtx/transform.hpp> #include "renderer.hpp" #include <thread> #include <chrono> Renderer::Renderer(unsigned w, unsigned h, std::string const &file) : width_(w), height_(h), color_buffer_(w * h, Color(0.0, 0.0, 0.0)), filename_(file), ppm_(width_, height_) {} void Renderer::render(Sce...
// Copyright (c) 2012 The Chromium OS 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 "power_manager/powerd/policy/suspender.h" #include <algorithm> #include <string> #include <base/files/file_util.h> #include <base/loggin...
/* * Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list of condition...
/* * SimulatorTCPCommon.cc : part of the Mace toolkit for building distributed systems * * Copyright (c) 2011, <NAME>, <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: * * * ...
/* Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration */ #include "FastCaloSimAnalyzer/TFCSInputValidationPlots.h" #include "atlasstyle/AtlasStyle.h" #include "atlasstyle/AtlasLabels.h" #include "atlasstyle/AtlasUtils.h" #include "TROOT.h" #include "TString.h" #include "TMath.h" #include "TFi...
/*void handle_udp_data(...) { //if suppose no_of_hops are limited to 10 if(data[0] == 204) { uint8 ans[16]; ans[0] = data[0]; uint8 no_of_hops = data[1]+1; uint8 j = 4; //uint8 last_hop = 2*data[1]; //ans[4] = last_hop; for(uint8 i = 2*data[1];i>=2;i=i-2) { ans[j] = data[i]; j++; } //uint8 ...
#include "../../util/memDbg.h" #include "gbMem.h" #include "../../util/log.h" #include <iostream> #include <fstream> /* Memory Map: __________________________________________________________________________________ 0000-3FFF 16KB ROM Bank 00 (in cartridge, fixed at bank 00) 4000-7FFF 16KB ROM Bank 01....
/**************************************************************************** * * Copyright (C) 2016 <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: * * 1. Redistributions of sou...
#include <cstdint> #include "stdio.h" enum class Kind : uint8_t { Arith=1, BoolUnary=9, Node=0, KW=2, Lit=12, BoolBinary=13, Op=14, Right=33, Left=4, Redir=5, VSub=6, VOp1=32, VTest=34, Assign=129, VOp2=37, Eof=36, Ignored=38, Undefined=128, Unknown=130, WS=132, Word=134, }; enum class Id : uint8_t { Arith_Am...
// Copyright (C) 2000, International Business Machines // Corporation and others. All Rights Reserved. #include <cfloat> #include <cstdio> #include <numeric> #include <utility> // for pair<> #include "CoinWarmStart.hpp" #include "BCP_timeout.hpp" #include "BCP_enum.hpp" #include "BCP_matrix.hpp" #include "BCP_warmst...
/** * \file parRep_FV_multiExits.cpp * \copyright The 3-clause BSD license is applied to this software. * \author <NAME> * \author <NAME> * \author <NAME> - ParisTech * \date 2016-2019 */ #include <cstdlib> #include <algorithm> #include "rand.hpp" #include "parRep_FV_multiExits.hpp" using namespace std; Pa...
//============================================================================================= // Szamitogepes grafika hazi feladat keret. Ervenyes 2012-tol. // A //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // sorokon beluli reszben celszeru garazdalkodni, mert a tobbit ugyis toroljuk. // A beadott progra...
// created by <NAME> #include "stdafx.h" #include "ParameterSystem.h" #include "Scripts/Script.h" #include "DigitalOutput/DoSystem.h" #include <PrimaryWindows/QtScriptWindow.h> #include "GeneralObjects/multiDimensionalKey.h" #include "GeneralUtilityFunctions/cleanString.h" #include <ConfigurationSystems/ConfigSystem.h>...
// Copyright 2012-2021 <NAME> <<EMAIL>> // For conditions of distribution and use, see copyright notice in LICENSE.txt #include "../jngl.hpp" #include "../jngl/init.hpp" #include <algorithm> #include <boost/math/constants/constants.hpp> #include <cmath> #include <fstream> #include <iostream> #include <map> #include <...
/** \file bludiste2014-cli.cpp * \author <NAME>, xhutak01 * \author <NAME>, xkozub03 */ #include <boost/asio.hpp> #include <ncurses.h> #include <menu.h> #include <iostream> #include <vector> #include "Client.h" /** * \enum * \brief Typ operace */ enum { CREATE_GAME = 0, JOIN_GAME, EXIT_APP }; /** * \enu...
#include "Quadtree.h" #include <algorithm> #include <cmath> #include <fstream> #include <limits> // ------- constructors ------- Quadtree::Quadtree(double xMin, double xMax, double yMin, double yMax, bool _splitAllNAs, bool _splitAnyNAs) : splitAllNAs{_splitAllNAs}, splitAnyNAs{_splitAnyNAs}{ root = std::make...
int b4U ,Q1,obx ,hY4 ,qMj , ODR /*B*//*V*/ , wRA84 , hBL96, O ,zZ , JKSB ,/*wJr*/uvb, B,dZB, myq7 ,Nr, xsw , iOe, gbE/*pJ*/,GTJmD , coBh ,vzphx , q5,WpiaK , JFhV6q ,bvrXYS , fI ,P, F4//MS ,vA /*Dz*/ , NFs3,Jom ,LA, VYne , BVj,DQY,/*8A3*/ c6Lt,IlCR ,aO4, XAVN , vC1Is; void f_f0() {int s9a, a6dX ; vo...
#include <Rcpp.h> #include "starspace.h" using namespace std; // [[Rcpp::export]] void textspace_help(std::string type = "help") { shared_ptr<starspace::Args> args = make_shared<starspace::Args>(); if(type == "help"){ args->printHelp(); }else{ args->printArgs(); } } // [[Rcpp::export]] Rcpp::List te...
/* * Copyright (c) 2005, <NAME> and IFS Institute for Software at HSR Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can redistribute and/or modify it under the terms of * the license that is included with this library/application in the file license.txt. */ //#...
/* MIT License Copyright (c) 2021 <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, distrib...
#include "updater.h" #include <iomanip> #include <algorithm> void Updater::emptyFiles() { FILE* file = NULL; if(sim->write_cluster){ // Empty file file = fopen(files->clusterstatfile, "w"); fclose(file); // Empty file file = fopen(files->clusterfile, "w");...
/* USB EHCI Host for Teensy 3.6 * Copyright 2017 <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...
/** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <cstdlib> #include <ctime> #include <map> #include <string> #include <unordere...
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <learnopengl/filesystem.h> #include <learnopengl/shader.h> #include <learnopengl/camera.h> #include <learnopengl/model.h> #include <iostream> void framebuffer_size_c...
/*************************************************************************/ /* arcore_interface.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/**************************************************************************** * Copyright (c) 2015 - 2016, CEA * 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 mus...
//===--- TypeCheckCaptures.cpp - Capture Analysis -------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
//===--- SILBuilder.cpp - Class for creating SIL Constructs ---------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
#include "Grubbs.h" void GrubbsTest::_delete_item(vector<double>& data, uint32_t index) { if(data.size() && index < data.size()){ auto it = data.begin(); it += index; data.erase(it); } } uint32_t findIndexAtOrAfter(vector<double>& data, double value, uint32_t start) { for(uint32_...
#include "VideoPalette.h" #include <fstream> #include <algorithm> #include <omp.h> #include "nlopt.h" using namespace std; void VideoPalette::ReadVideoAndFrameRgbConvexhulls(string base_dir) { string img_path = base_dir + "%05d.png"; string cvx_path = base_dir + "rgb_cvx_%05d.obj"; //1.sampling step int frame_s...
/* * Adapted from OpenColorIO with this license: * * Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. * 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...
/* SoLoud audio engine Copyright (c) 2013-2018 <NAME> vizsn speech synthesizer (c) by <NAME>�, released under WTFPL, http://www.wtfpl.net/txt/copying/ (in short, "do whatever you want to") Integration and changes to work with SoLoud by <NAME>, released under same license. */ #include <stdlib.h> #include <stdio.h> #i...
// 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 "src/virtualization/bin/guest/vshc.h" #include <fcntl.h> #include <fidl/fuchsia.hardware.pty/cpp/wire.h> #include <fuchsia/virtualization/cpp/fid...
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2007 <NAME> * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file * included with this dis...
#include <stdlib.h> #include <ctype.h> #include <stdio.h> #include<unistd.h> //extern "C" { #include <minigui/common.h> #include <minigui/minigui.h> #include <minigui/gdi.h> #include <minigui/window.h> #include <minigui/control.h> //} #include <stdlib.h> #include <ctype.h> #include <stdio.h> #include "agg_rendering_...
/************************************************************************* * Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are m...
//===-- irclass.cpp -------------------------------------------------------===// // // LDC – the LLVM D compiler // // This file is distributed under the BSD-style LDC license. See the LICENSE // file for details. // //===----------------------------------------------------------------------===/...
//#include "em_syetem.h" #include "em_cmu.h" #include "em_timer.h" #include "em_gpio.h" #include "em_int.h" #include "em_device.h" #include "em_chip.h" #include "em_usart.h" #include "em_i2c.h" #include "Hardware.h" #include "Value.h" void HW_HFXO_Init(void); void HW_CMU_Init(void); void HW_PORTIO_Init(void); void HW...
/** @file A brief file description @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 to you und...
int CI9 //Xp8 , SkhX,nm,s , CO4 , /*HN8*/m , d4 , x, qd,X4l9, I39, /*doG*/i62, eXh ,Z7Y, a , u0nCV, u8gg ,HYqY ,ri,Nf, Pc9 ,/*5*/p4yy, r1d, pD, oS//X , Hmu1, jAWJ,pOO ,vq3, nPF, unX ,//tt dij/**/,//XJ7 mi,NCJ ,wc, OO, WtG ,a5F ,C4RHp ; void f_f0(){ int hKeXHBV ;//m9Qi volatile int eaXZ , d...
#include "pbr.h" #include <sstream> #include <algorithm> GLuint compile_shader(GLenum type, std::initializer_list<std::string_view> sources) { constexpr size_t max_sources = 16; const GLchar * strings[max_sources] {}; GLint lengths[max_sources] {}; GLsizei count = 0; for(auto source : sources) ...
#include <iostream> #include <fstream> #include <string> #include <vector> #include <cassert> #include "Eigen/Dense" #include "utils.cpp" #define uint unsigned int #define layers 3 #define MAXEPOCH 200 #define MINIBATCH 20 #define NORMALIZE true // relevant only with momentum #define ADAGRAD true // adagrad or moment...
/* * This file is part of the DUDS project. It is subject to the BSD-style * license terms in the LICENSE file found in the top-level directory of this * distribution and at http://www.somewhere.org/somepath/license.html. * No part of DUDS, including this file, may be copied, modified, propagated, * or distributed...
/* OpenLieroX reader for IpToCountry database code under LGPL by <NAME> and <NAME> */ #include "GeoIPDatabase.h" #include "FindFile.h" // // Defines // typedef enum { GEOIP_COUNTRY_EDITION = 1, GEOIP_REGION_EDITION_REV0 = 7, GEOIP_CITY_EDITION_REV0 = 6, GEOIP_ORG_EDITION = 5, GEOIP_ISP_EDIT...
/* * Abuse - dark 2D side-scrolling platform game * Copyright (c) 1995 Crack dot Com * Copyright (c) 2005-2011 <NAME> <<EMAIL>> * * This software was released into the Public Domain. As with most public * domain software, no warranty is made or implied by Crack dot Com, by * <NAME>, or by <NAME>. */ #if ...
/////////////////////////////////////////////////////////////////// // // dBiz revisited version of // // Cartesian Sequencer Module for VCV // many thx to // Strum 2017 // <EMAIL> // /////////////////////////////////////////////////////////////////// #include "dBiz.hpp" #include "dsp/digital.hpp" using namesp...
#include <ContentForgeTool.h> #include <SceneTools.h> #include <Render/ShaderMetaCommon.h> #include <BTFile.h> #include <Utils.h> #include <ParamsUtils.h> #include <CLI11.hpp> #include <pugixml.hpp> namespace fs = std::filesystem; // Set working directory to $(TargetDir) // Example args: // -s src/terrain -c --path D...
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/** * \file CSCSegAlgoDF.cc * * \author <NAME> - UCR * * Last update: 17.02.2015 - <NAME> - use CSCSegFit for least-squares fit * @@ Seems to find very few segments so many candidates must be being rejected. * */ #include "CSCSegAlgoDF.h" #include "CSCSegFit.h" #include "Geometry/CSCGeometry/interface/CSCLa...
#include <ql/quantlib.hpp> #include <boost/make_shared.hpp> using namespace QuantLib; int example01() { try { Date refDate(13, November, 2013); Date settlDate = TARGET().advance(refDate, 2 * Days); Settings::instance().evaluationDate() = refDate; Handle<Quote> rateLevel(new Sim...
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2015 - ROLI Ltd. Permission is granted to use this software under the terms of either: a) the GPL v2 (or any later version) b) the Affero GPL v3 Details of these ...
/***************************************************************************** YASK: Yet Another Stencil Kit Copyright (c) 2014-2019, 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 Soft...
//===--- Sema.cpp - AST Builder and Semantic Analysis Implementation ------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/*! * \file main.cpp * \brief Code entry. * \author <NAME> * \date 2014 * * \section LICENSE * This file is under MIT license (https://opensource.org/licenses/MIT). * * \section DESCRIPTION * This is the traditional entry file for the code execution. */ #ifdef NBODY_DOUBLE using floatType = double; ...
#include "CLexerTest.h" #include "../Samples/CLexer/CLexer.h" #include <cassert> using namespace std; using namespace byx; using TokenType = CLexer::TokenType; using Token = CLexer::Token; #define assert_exception(expr) \ do \ { \ bool flag = false; \ try \ { \ expr; ...
#include "httpServer.hpp" /*! Returns the standard HTTP reason phrase for a HTTP status code. * \param code An HTTP status code. * \return The standard HTTP reason phrase for the given \p code or \c NULL if no standard * phrase for the given \p code is known. */ const char* HttpStatus_reasonPhrase(int code){ swit...
#include <iostream> #include <ctime> #include <boost/foreach.hpp> #include <boost/thread.hpp> #include <boost/regex.hpp> #include <log4cxx/basicconfigurator.h> #include <log4cxx/propertyconfigurator.h> #include <log4cxx/helpers/exception.h> #include <log4cxx/xml/domconfigurator.h> #include "gtest/gtest.h" #include "...
#include <assert.h> #include <sys/time.h> #include <sys/wait.h> #include <errno.h> #include <iostream> #include <sstream> //#include <papi.h> #include "omp.h" #include "mkl.h" #include "mkl_cblas.h" #include "knn.h" using namespace std; #define NUM_THREAD omp_get_num_procs() //native order #define NATIVE_ORDER getNat...
/* Copyright (c) 2006-2009 Advanced Micro Devices, Inc. All Rights Reserved. This software is subject to the Apache v2.0 License. */ #include<stdio.h> #include<stdlib.h> #include<string.h> #include<time.h> #include"globals.h" #include"process_API.h" /*! ********************************************...
/* ***************************************************************************** Copyright (c) 2016-2017, The Regents of the University of California (Regents). All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions ar...
// Test of the new Fl_MultiImage class for labelling a widget #include <fltk/Fl.h> #include <fltk/Fl_Window.h> #include <fltk/Fl_Button.h> #include <fltk/Fl_Check_Button.h> #include <fltk/Fl_Multi_Image.h> extern Fl_Multi_Image multiimage; // defined below void inactive_cb(Fl_Widget* w, void*) { if (w->value()) { ...
/*** Multivariate Stochastic Volatility Model using Particle Learning Methods Model: y_{jt} exp(x_{jt}/2) \epsilon^y_{jt} x_{jt} = \alpha_{j} + \beta_{j} x_{j,t-1} + \epsilon^x_{jt} where, \epsilon^y ~ MVN(0,I) \epsilon^x ~ MVN(0, \Sigma) Inputs: y: J X T matrix of first differences of EEG signals at J channels over...
//////////////////////////////////////////////////////////////////////////////// // MuMumuration.cpp // Includes #include "RsVertex.h" #include "RsTexture.h" #include "BaArchive.h" #include "RsMaterial.h" #include "SgNode.h" #include "UiKeyboard.h" #include "Ui360.h" #include "RsShader.h" #include "MuMurmuration.h" #i...
/* stepper.c - stepper motor driver: executes motion plans using stepper motors Part of Grbl Copyright (c) 2009-2011 <NAME> Copyright (c) 2011-2012 <NAME> Grbl 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...
#include "ShaderScene.h" using namespace std; ShaderScene::ShaderScene() { init(); } ShaderScene::ShaderScene( GLuint numModels ) { m_models.resize( numModels ); init(); } GLvoid ShaderScene::init() { COLOR_CHANGE = 0.05f; globalAmbientLoc = -1; lightAmbientLoc = -1; lightDiffuseLoc = -1; lightSpec...
/* * Copyright (c) 2014 empirer <<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...
#include "ofApp.h" using namespace ofxCv; const int ofApp::lines [] = {22,27,27,21,21,22,22,23,23,21,21,20,20,23,23,24,24,25,25,26,26,16,16,15,15,14,14,13,13,12,12,11,11,10,10,9,9,8,8,7,7,6,6,5,5,4,4,3,3,2,2,1,1,0,0,17,17,18,18,19,19,20,27,28,28,29,29,30,30,31,30,32,30,33,30,34,30,35,35,34,34,33,33,32,32,31,31,48,31,...
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QApplication> #include <QDesktopWidget> #include <QMessageBox> #include "user.h" #include "ui_user.h" #include "admin.h" #include "ui_admin.h" #include <iostream> #include <chrono> #include <thread> #include <sys/types.h> #include <sys/socket.h> #include <ne...