text
stringlengths
8.71k
38.4k
#include <CGnuPlotContour.h> #include <CGnuPlot.h> #include <CGnuPlotWindow.h> #include <CGnuPlotGroup.h> #include <CGnuPlotPlot.h> #include <CGnuPlotUtil.h> #include <CGnuPlotRenderer.h> #include <CGnuPlotPathObject.h> #include <CRGBName.h> static int contour_flags[] = { 0, 4, // bottom edge to diagonals 0, 5, ...
#include <cstring> #include <string> #include <cstdio> #include <stdexcept> #include <dirent.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include "uvc_cam/uvc_cam.h" using std::string; using namespace uvc_cam; Cam::Cam(const char *_de...
#include <pge/constructs/Matrix4x4f.h> #include <pge/constructs/Matrix3x3f.h> #include <assert.h> using namespace pge; const float Matrix4x4f::_directionMatrixNormalizationTolerance = 0.9999f; Matrix4x4f Matrix4x4f::operator*(const Matrix4x4f &other) const { Matrix4x4f product; for (int i = 0; i < 4; i++) for ...
#include <fstream> #include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "json.hpp" #include "spline.h" using namespace std; // for convenience using json = nlohmann::json; ...
/* Dreatica-FXP crew * * ---------------------------------------- * Target : Alt-N SecurityGateway v1.00-1.01 * ---------------------------------------- * Exploit : Alt-N SecurityGateway v1.00-1.01 Remote Stack Overflow Exploit * Exploit date : 11.06.2008-14.06.2008 * Exploit writer : Heretic2 (<EMAI...
/* Copyright 2005-2012 Intel Corporation. All Rights Reserved. This file is part of Threading Building Blocks. Threading Building Blocks is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundat...
#include "OffscreenMeshVisualizer.h" #include <GL/freeglut_std.h> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/euler_angles.hpp> void OffscreenMeshVisualizer::SetupViewing(const MVPMode& mvp_mode) const { switch(mvp_mode) { case OrthoNormalExtended: { glMatrixMode(GL_PROJECTION); glLoad...
int Zht, /**/ dnEmF// , s , vl1Ao , I9, y ,/*O6wk*/WOIy,H6Q8 ,ZC ,HNm ,FQ , tCgo , NQJ7Q ,c,JCG, dMm ,jpW , GJ, XPL, yqv , L7v,pH4Q,//vWCXV Ecq, XsK , /*H*/ qzFD // , m/*U*/ , rFeG , mnPW ,//v sh, I ,mi , B7nX7vY, NT//55 , FHB,S , dAk ,x9 ,DcEN /*WP*/ ,vjDEC, sp , t3F ,vq, vTr,GXsV...
#include "ExprTools.h" #include "BinaryExprSubclasses.h" #include "Evaluator.h" #include "NonaryExprSubclasses.h" #include "UnaryExprSubclasses.h" #include <Math/Random.h> #include <Util/Assert.h> #include <algorithm> #include <iostream> #include <string> #include <typeinfo> Expr* ReadExpr(const std::string Str, std...
/* Based on nmeshtool (C) 2003 RadonLabs GmbH */ #include "kernel/nkernelserver.h" #include <Data/DataServer.h> #include <Data/Streams/FileStream.h> #include <Data/TextReader.h> #include "ncmdlineargs.h" #include "nmeshbuilder.h" #include "util/ndictionary.h" //#include "scene/nshapenode.h" #undef Crea...
#include <iostream> #include <fstream> #include <set> #include <unistd.h> #include <string.h> #include <math.h> extern "C" { #include <tourtre.h> } #include "Mesh.h" #define XMLWIDTH 64 #define XMLHEIGHT 64 using std::cin; using std::cout; using std::clog; using std::cerr; using std::endl; double uc_lat,uc_lng; do...
/* Carrom board disgn , <NAME> :) */ #include <iostream> #include <cmath> #include <GL/glut.h> #include <stdio.h> #include "box.h" #include <sstream> #include <string.h> using namespace std; #define PI 3.141592653589 #define DEG2RAD(deg) (deg * PI / 180) void init(); void initRendering(); void handleResize(int w,int...
#include "ksocket.h" /*server var constructors*/ KSocket::KSocket(qintptr s, QString systemSignature , QObject *parent):QObject(parent) { qDebug() << "server var create success"; qDebug() << "server var structure args : socket fd : " << s << "this mach flag" << systemSignature; this->socket = NULL...
// Scintilla source code edit control /** @file ViewStyle.cxx ** Store information on how the document is to be viewed. **/ // Copyright 1998-2003 by <NAME> <<EMAIL>> // The License.txt file describes the conditions under which this software may be distributed. #include <cstddef> #include <cassert> #include...
/****************************************************************************** * Copyright (c) 2018, ACES Lab, Univesity of California San Diego, CA, US. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following cond...
/* * Copyright 2010-2016, Tarantool AUTHORS, please see AUTHORS file. * * 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 lis...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Request.cpp :+: :+: :+: ...
//===-- MachException.cpp -------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
#include "global.h" #include "ThemeManager.h" #include "RageLog.h" #include "PrefsManager.h" #include "RageException.h" #include "RageTimer.h" #include "RageUtil.h" #include "Game.h" #include "IniFile.h" #include "RageTimer.h" #include "Font.h" #include "FontCharAliases.h" #include "RageDisplay.h" #include "arch/Dialog...
#include <SxCLI.h> #include <SxMap.h> #include <SxRegex.h> #include <SxDir.h> #include <SxFileIO.h> #include <SxFSAction.h> #include <SxUniqueList.h> class SxMarker { public: typedef SxMap<SxString,SxString>::Iterator Iterator; typedef SxMap<SxString,SxString>::ConstIterator ConstIterator; S...
#include <ctype.h> #include <fcntl.h> #include <string.h> #include <sys/stat.h> #include "gcl/gcdb.h" #include "gcl/GBase.h" #include "gcl/GArgs.h" #include "gcl/GReadBuf.h" #include "gcl/GHash.hh" #include "gcdbz.h" #ifdef __WIN32__ #define VERSION "cdbfasta version 0.982w" #else #define VERSION "cdbfasta version 0.9...
/* * main.cpp * * Created on: 9. 1. 2021 * Author: ondra */ #include <chrono> #include <cmath> #include <csignal> #include <map> #include <imtjson/value.h> #include <imtjson/object.h> #include <imtjson/string.h> #include <imtjson/serializer.h> #include <imtjson/parser.h> #include "../docdb/src/docdblib/agg...
//待日后删除 #define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <stdio.h> //#include <sys/socket.h> #include <sys/types.h> //#include <netinet/in.h> //#include <arpa/inet.h> //#include <unistd.h> #include <ctype.h> //#include <strings.h> #include <string.h> #include <sys/stat.h> //#include <pthread.h> //#include...
/* path.cpp - path rendering demo. */ // Copyright (c) NVIDIA Corporation. All rights reserved. /* Requires the OpenGL Utility Toolkit (GLUT) and Cg runtime (version 2.0 or higher). */ #include "nvpr_svg_config.h" // configure path renderers to use #include <limits.h> #include <math.h> #include <float.h> #inc...
int TKem0, J1yeflt , hOAl,Fe ,mr7/*y4*/,p8a,N,SV,UyR,va , x,J9l, qOJUD,Xe0 , GoU,P6VB , U5wZ,W94, jWy ,bQq,sRVX, TcmZ , r ,vegR , c7OC,/*v*/vtR ,w1V , ji2 , PnM, O4yx,XWLZ2,wxkI , S0x, JIg,//y zrQRC , Qq ,/*t*/kS,c4e, w0me ; void f_f0 (){{ if ( true)return ; else return ; return ; if(true) for(...
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAM...
// This tests: // Behavior of EventSelector when some trigger bits may be Exception or Ready // 01 - Non-wildcard positives, exception accepted // 02 - Non-wildcard negatives, exception accepted // 03 - Non-wildcard positives and negatives mixed, exception accepted // 04 - Non-wildcard positives, exceptio...
/* * Copyright (c) 2013-2014 <NAME> * * This file is part of GamingAnywhere (GA). * * GA is free software; you can redistribute it and/or modify it * under the terms of the 3-clause BSD License as published by the * Free Software Foundation: http://directory.fsf.org/wiki/License:BSD_3Clause * * GA is distribut...
/* * AMQPQueue.cpp * librabbitmq++ * * Created by <NAME> on 12.03.10. * */ #include "AMQPcpp.h" using namespace std; AMQPQueue::AMQPQueue(amqp_connection_state_t * cnn, int channelNum) { this->cnn = cnn; this->channelNum = channelNum; delivery_tag =0; pmessage=NULL; openChannel(); } AMQPQueue::AMQPQu...
/**************************************************************************** * * Copyright (c) 2013-2015 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Red...
#include "WorldSelector.h" #include "TitleScreen.h" #include "gui/GameUI.h" #include "gui/MainWindow.h" #include "io/PrefsManager.h" #include "io/Format.h" #include "io/PathHelper.h" #include "util/Blur.h" #include "util/Thread.h" #include "world/FileWorldReader.h" #include "world/generators/Terrain.h" #include "worl...
/* Copyright [2011] [<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 writ...
/** * Copyright 2009-2013 10gen, 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 ag...
#include <assert.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <signal.h> #include <stdio.h> #include <stdbool.h> #include <sys/ioctl.h> #include <sys/time.h> #include <sys/stat.h> #include <termios.h> #include <unistd.h> #include <wchar.h> #include "termbox.h" #include "byt...
#include "shaderfactory.h" #include "cropshaderfactory.h" #include "tearshaderfactory.h" #include "shaderfactoryrgb.h" #include "pathshaderfactory.h" #include "global.h" QString ShaderFactoryRGB::getColorOpacity(bool lowres) { float lutStep = 1.0/Global::lutSize(); QString shader; shader = " vec4 colOp;\n"; ...
#include "Utils.hpp" #ifdef _WIN32 // windows const string Utils::FILE_SEPARATOR="\\"; #elif __APPLE__ // mac const string Utils::FILE_SEPARATOR="/"; #else // linux <3 const string Utils::FILE_SEPARATOR="/"; #endif string Utils::RESOURCES_FOLDER="../../res"; mt19937_64 Utils::RNG = Utils::getRandomGenerator();...
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com // Original code is licensed as follows: /* * Copyright 2013 ZXing auth...
#include <cstdio> #include <cstring> #include "game/overlord/srpc.h" #include "ssound.h" #include "common/util/Assert.h" #include "game/sound/sndshim.h" using namespace iop; Sound gSounds[64]; Curve gCurve[8]; // TODO verify count VolumePair gPanTable[361]; Vec3w gEarTrans; Vec3w gCamTrans; s32 gCamAngle; s32 gMus...
/*************************************************************************** SocNetV: Social Network Visualizer version: 1.9 Written in Qt graphicswidget.cpp description ------------------- copyright : (C) 2005-2015 by <NAME> email ...
/* Copyright (c) 2010, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclai...
/* * Copyright (c) 2009-2011, 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 * ...
#include "Geometry/RPCGeometry/interface/RPCGeometry.h" #include "Geometry/DTGeometry/interface/DTGeometry.h" #include "DataFormats/DTRecHit/interface/DTRecSegment4DCollection.h" #include "Geometry/CommonDetUnit/interface/GeomDet.h" #include "Geometry/Records/interface/MuonGeometryRecord.h" #include "Geometry/CommonTop...
//////////////////////////////////////////////////////////////////////////////// // // // UNCLASSIFIED UNCLASSIFIED UNCLASSIFIED UNCLASSIFIED // // ...
// Copyright 2018 U.C. Berkeley RISE Lab // // 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...
/* * $Source: /project/arl/arlcvs/cvsroot/wu_arl/openNetLab/proxy/testFwd.cc,v $ * $Author: fredk $ * $Date: 2007/03/23 21:21:54 $ * $Revision: 1.16 $ * $Name: $ * * File: try.c * Created: 12/29/2004 10:56:15 AM CST * Author: <NAME>, <<EMAIL>> * Organization: Applied Research Laboratory, ...
#include "ai.h" #include "game_tank.h" #include "metagame_config.h" #include <list> using namespace std; DEFINE_bool(allowAisQuit, false, "Allow AIs to randomly quit the game"); void GameAiStandard::updateGameWork(const vector<Tank> &players, int me) { if(rng->frand() < 0.01 || targetplayer == -1 || targetplaye...
/** * Copyright 2011 <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 ag...
#include <vector> #include "gsl/gsl_statistics.h" #include "image.hxx" #include "section.hxx" #include "utils.h" #include "kombinator.hxx" #include "roothistos.hxx" /*--- gsl routines ---*/ #include "gsl/gsl_fft_real.h" #include "gsl/gsl_fft_halfcomplex.h" /*--- ROOT includes ---*/ #include "TH1F.h" #include "TPro...
/* * NMPTUtils.cpp * OpenCV * * Created by <NAME> on 7/16/10. * Copyright 2010 __MyCompanyName__. All rights reserved. * */ #include "NMPTUtils.h" #include "DebugGlobals.h" #include <iostream> #include <sstream> #include <opencv2/imgproc/imgproc.hpp> //#include <zlib.h> //using namespace std; // clashes wit...
// libSNL - Simple Nurbs Library // Copyright 2003 <NAME>, Australia. // -------------------------------------------- // 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 L...
/* * BayesRRm.cpp * * Created on: 5 Sep 2018 * Author: admin */ #include "BayesRBase.hpp" #include "bayesrkernel.h" #include "samplewriter.h" #include "analysisgraph.hpp" #include "marker.h" #include "logwriter.h" #include <chrono> #include <mutex> BayesRBase::BayesRBase(const Data *data, const Options *o...
int Yy, G8t , La,ICM, H9Z, P5k , H3 , gLbng7 ,oRD ,/*o3*/JdwlRt , f6F ,eO,VS7 ,K , Oi ,xoJ , V8e , uV9 ,aPFYx ,BZ21v9 ,OMk9p ,/*98*///vnoqH dqK ,/*1lmGQ*/zZ,URv, AAk5 , I6 ,qv ,YCG ,cvR,SSt , fIGc ,VB9,//3o JOu , v51 , W1//ck , Jk ,LwZ0 /*W*/,/*Ny*/xcp3, vjcXfqK ,dZ , zax , kYJp ,//QtM /*x*/ Uu ,...
/***************************************************************************** * lumpy.cpp * (c) 2012 - <NAME> * Hall Laboratory * Quinlan Laboratory * Department of Computer Science * Department of Biochemistry and Molecular Genetics * Department of Public Health Sciences and Center for Public Health Genomics, ...
/* Copyright (C) 2003-2014 by <NAME> <<EMAIL>> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercia...
#include <iostream> #include <fstream> #include <vector> #include <math.h> #include <string> #include <BMP.h> #include <glm/glm.hpp> #define WIDTH 100 //framebuffer size. depreciated. #define HEIGHT 100 #define PI 3.14159265 using std::ios; using std::vector; using std::cout; using std::endl; using std::string; us...
#include <algorithm> #include <cassert> #include <cstdlib> #include <cstdio> #include <cmath> #include <filesystem> #include <fstream> #include "CrystalStructure3D.hpp" #include "Utilities/CheckFile.hpp" #include "Utilities/CompareNumbers.hpp" #include "Utilities/RandomNumberGenerator.hpp" CrystalStructure3D::Crystal...
/* ---- Hector the simulator ---- A fast simulator of particles through generic beamlines. <NAME>, <NAME> ~~~ <EMAIL> http://www.fynu.ucl.ac.be/hector.html Centre de Physique des Particules et de Phénoménologie (CP3) Université Catholique de Louvain (UCL) */ /// \file H_AbstractBeamLine.cc /// \...
#include "ofApp.h" #include "utils.h" using namespace cv; using namespace ofxCv; using namespace std; using namespace rs; //-------------------------------------------------------------- void ofApp::setup(){ try { // Realsense rs::log_to_console(rs::log_severity::warn); if (ctx.get_device_count() > 0){ ...
// // Created by roundedglint585 on 3/19/19. // #define STB_IMAGE_IMPLEMENTATION #define STB_IMAGE_WRITE_IMPLEMENTATION #include <filesystem> #include <gtest/gtest.h> #include <libutils/misc.h> #include <libutils/timer.h> #include <libutils/fast_random.h> #include <libgpu/context.h> #include <libgpu/shared_device_buff...
#include "Tutorial.h" #include "../GameObjects/GrupoClientes.h" #include "../GameObjects/Player.h" #include "../GameObjects/Paella.h" #include "../GameObjects/Ingrediente.h" #include "../GameObjects/Muebles/Pila.h" #include "../GameObjects/Muebles/MueblesInclude.h" #include "../sdlutils/SDLUtils.h" #include "../Contro...
// ----------------------------------------------------------------------------- // The MIT License // // Copyright(c) 2020 <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 wi...
//----------------------------------------------------------------------------- // Torque Game Engine // Copyright (C) <EMAIL>, Inc. //----------------------------------------------------------------------------- #include "platformWin32/platformGL.h" #include "platformWin32/platformWin32.h" #include "platform/platform...
/* Copyright (c) 2010-2013, <NAME> - All rights reserved. This code is intended for use with the Cinder C++ library: http://libcinder.org This file is part of Cinder-Warping. Cinder-Warping is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published b...
#include <thread> #include "Compress.h" using namespace std; #include <fcntl.h> #include <sys/time.h> #include <time.h> FileCompressor::FileCompressor (const string &outFile, const vector<string> &samFiles, const string &genomeFile, int bs): blockSize(bs) { initCache(); for (int f = 0; f < samFiles.size(); f++)...
/*============================================================================= UnEdObject.cpp: Unreal Editor object manipulation code. Copyright 2004 Epic Games, Inc. All Rights Reserved. Revision history: * Created by <NAME>. =============================================================================*/ #incl...
/* certdump.c - Dump a certificate for debugging * Copyright (C) 2001-2010, 2014-2015 g10 Code GmbH * * This file is part of GnuPG. * * GnuPG 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 vers...
/* MD5.cpp (c)2005 Palestar Inc, <NAME> */ #include "Standard/MD5.h" #include "Standard/CharString.h" #include <assert.h> //---------------------------------------------------------------------------- MD5::MD5() { initialize(); } MD5::MD5( const byte * Input, int nInputLen ) { initialize(); // hash the in...
/* * Copyright (C) 2010 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...
#include <fstream> #include "code-gen.hh" #include "utils.hh" extern std::unordered_map<std::string, std::list<std::string>> artificial_features; std::string code_generator::get_complex_feature_processing_text_from_addr(const struct member &m, std::unordered_set<std::string> &used_names, bool & need_arr) { // THIS ...
#include <stdio.h> #include <iostream> #include <fstream> #include <stdlib.h> #include <string> #include "file_utils.hpp" #include "log_utils.hpp" #include "stl_utils.hpp" #include <string> #include <fstream> #include <time.h> #include "SequenceTree.hpp" #include "Sequence.hpp" #include "SequenceParsimon...
// Copyright 2008 Isis Innovation Limited #include "Bundle.h" #include "MEstimator.h" #include <TooN/helpers.h> #include <TooN/Cholesky.h> #include <fstream> #include <iomanip> #include <gvars3/instances.h> using namespace GVars3; using namespace std; #ifdef WIN32 inline bool isnan(double d) {return !(d==d);} #endif ...
//__BEGIN_LICENSE__ // Copyright (c) 2017, United States Government, as represented by the // Administrator of the National Aeronautics and Space Administration. // All rights reserved. // // The GeoRef platform is licensed under the Apache License, Version 2.0 // (the "License"); you may not use this file except in co...
/* libs/graphics/images/SkImageDecoder_libpng.cpp ** ** Copyright 2006, Google 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...
// Microchip ENC28J60 Ethernet Interface Driver // Author: <NAME> // Copyright: GPL V2 // // Based on the enc28j60.c file from the AVRlib library by <NAME>. // For AVRlib See http://www.procyonengineering.com/ // Used with explicit permission of Pascal Stang. // // 2010-05-20 <<EMAIL>> #if ARDUINO >= 100 #include <Ard...
#include "harbieCurve.h" #include "shapesDefinitionCurve.h" //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // Node implementation with standard viewport draw //------------------------------------------...
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- // Toolbar.cpp for Blackbox - an X11 Window manager // Copyright (c) 2001 - 2005 Sean 'Shaleh' Perry <<EMAIL>> // Copyright (c) 1997 - 2000, 2002 - 2005 // <NAME> <bhughes at trolltech.com> // // Permission is hereby granted, free of charge, to any...
/* scrypt-jane by <NAME>, https://github.com/floodyberry/scrypt-jane Public Domain or MIT License, whichever is easier */ #include "cpuminer-config.h" #include "miner.h" #include "salsa_kernel.h" #include <string.h> /* Hard-coded scrypt parameteres r and p - mikaelh */ #define SCRYPT_R 1 #define SCRYPT_P 1 /* On...
#include <algorithm> #include <iostream> #include <vector> #include <sstream> #include <string> #include <fstream> #include <cstdlib> #include <unordered_set> #include <unordered_map> #include "lbann/utils/options.hpp" #include "lbann/utils/exception.hpp" #include "lbann/utils/timer.hpp" #include "lbann/utils/lbann_lib...
/** * @brief * fsa_util * * @copyright * Copyright (c) 2020 Mobvoi Inc. (authors: <NAME>) * Xiaomi Corporation (authors: <NAME>) * * @copyright * See LICENSE for clarification regarding multiple authors */ #include "k2/csrc/host/fsa_util.h" #include <algorithm> #include <cctype...
/** Copyright (C) 2018 <NAME> and <NAME> This software may be modified and distributed under the terms of the MIT license. See the LICENSE file for details. */ #include "JsonHandler.h" //! \param logName Optional parameter defining the logger's name. JsonHandler::JsonHandler(const char *logName): logName_(logName)...
#include "ContentManager.h" #include <cstdarg> using namespace std; ContentManager::ContentManager() { } ContentManager::~ContentManager() { for (auto i = m_meshStores.begin(); i != m_meshStores.end(); i++) { Mesh& m = i->second.m_m; m.vertexBuffer->Release(); m.indexBuffer->Release(); } for (auto i = m_sa...
#include "config.h" #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #include "htmlFormHandler.h" #include "resultStorageHandler.h" #include "positioner.h" #include "timeHelper.h" #include "getDistance.h" #include "sdCardWrite.h" int graph2DsvgSize = 800; ESP8266WebServer server(80)...
#include "assimpconverter.h" #include <QFileInfo> #include <QTime> #include <QVariantMap> #include <QUuid> #include <QDebug> #include <float.h> #include <assimp/cimport.h> #include <assimp/scene.h> #include <assimp/postprocess.h> #include "bson.h" #include "log.h" #include "components/actor.h" #include "components...
#include "sp_segmenter/utility/utility.h" #include "sp_segmenter/BBDataParser.h" #include "sp_segmenter/UWDataParser.h" #include <flann/io/hdf5.h> std::string path("/home/chi/BigBIRD/processed"); cv::Mat proj2D(const pcl::PointCloud<PointT>::Ptr cloud, double fx, double fy, double x0, double y0, cv::Mat &img) { /...
//==- CoreEngine.cpp - Path-Sensitive Dataflow Engine ------------*- C++ -*-// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===---------------------------------------------------------...
/* * Copyright (c) 2022 <NAME>. * * This file is part of Spark Cyclone. * See https://github.com/XpressAI/SparkCyclone for further info. * * 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 a...
#include "ComponentExporter.h" #include "base64.h" #include <Urho3D/Container/Sort.h> #include <Urho3D/Resource/ResourceCache.h> #include <Urho3D/Resource/JSONFile.h> #include <Urho3D/IO/File.h> #include <Urho3D/IO/FileSystem.h> #include <Urho3D/Graphics/Material.h> #include <Urho3D/Graphics/Technique.h> #include <Urh...
//////////////////////////////////////////////////////////////////////////////// // // // Name: DHCLScan.cxx // // ...
#include "StFmsTrgQaMaker.h" #include "StFmsTriggerMaker.h" #include "StTriggerData.h" static const char* BSname[68]={ "ST_A","ST_B","ST_BC","ST_C","ST_CD","ST_D", "SM_DD", "SB_D","SB_CD","SB_C","SB_BC","SB_B","SB_A", "NB_A","NB_B","NB_BC","NB_C","NB_CD","NB_D", "NM_DD", "NT_D","NT_CD","NT_C","NT_BC","NT_B...
// Appalachia.btd file format: // // 0x00000000-0x00000003: "BTDB" // 0x00000004-0x00000007: (int32) 6, format version // 0x00000008-0x0000000B: (float) -700.0, mimimum height // 0x0000000C-0x0000000F: (float) 38209.996, maximum height // 0x00000010-0x00000013: (int32) 25728 (201 * 128), total resolution X // 0x000000...
// Read a file and parse each line according to the format file. // Output integer matrices with lookup maps in either ascii text // or matlab binary form. #include <time.h> #include <limits.h> #include "utils.h" #define BUFSIZE 1048576 enum ftypes { ftype_int = 1, ftype_dint, ftype_qhex, fty...
// license:BSD-3-Clause // copyright-holders:<NAME> /* Konami Twin16 Hardware - Video TODO: - clean up sprite system - bad sprites in devilw, eg. odd colours for the mud/lava monster in the 1st level, or wrong sprite-sprite priority sometimes -- check real arcade first - unsure about some s...
#include "Engine.h" #include <glad/glad.h> #include <algorithm> #include <cmath> #include <map> #include <stdexcept> #include <sstream> #include <string> #include <vector> #include <future> bool firstMouse; bool canMovingMouse; double lastX; double lastY; constexpr double kPi = 3.1415926; constexpr double kSunAngula...
#include <stdio.h> #include <iostream> #include <fstream> #include <opencv2/opencv.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> using namespace cv; using namespace std; int WIDTH = 500; int HEIGHT = 500; int MIN_GAP = 120; ofstream myfile; Mat kernel = getStructuringElement(MORP...
/** * \file: gps_ublox6.cpp * * u-blox 6 protocol driver * * Copyright (C) 2012 - <NAME> - <EMAIL> * */ #include <errno.h> // errno #include <math.h> // sin() cos() #include <sys/types.h> // open() #include <sys/stat.h> // open() #include <fcntl.h> // open() #include <stdio.h> // printf() et. al. #include...
// Copyright (C) 2016-2018 <NAME>. // Copyright (C) 2018 <NAME>. // License specified in LICENSE file. #include "Miniboid.hpp" #include <algorithm> #include <iostream> // operator<< #include <list> #include <tuple> #include "Box.hpp" #include "Distance.hpp" #include "Stokes.hpp" #include "Superboid.hpp" #include "e...
#include "friclient.h" /** \file * \brief Robot controller and interface to FRILibrary * \author (c) <NAME>, TU München * License: See License.txt. If missing, contact n.alt -at- tum.de */ FRIClient::FRIClient() { } void FRIClient::start(std::string init_file, int status_frequency) { mInitFile = init_fil...
#include <iostream> #include <string> #include <vector> #include <map> #include <set> // #include <utility> #include <random> #include <cmath> // #include <ctime> #include <fstream> #include "cell.hpp" using namespace std; Mutation::Mutation(){ mut_ID = 0; time_occur = 0; vaf = 0; nu...
#include "Emulator.h" #include "GBUtil.h" void Emulator::InitState() { //Set initial register values m_ProgramCounter = 0x100; m_RegisterAF.reg = 0x01B0; m_RegisterBC.reg = 0x0013; m_RegisterDE.reg = 0x00D8; m_RegisterHL.reg = 0x014D; m_StackPointer.reg = 0xFFFE; //Zero out the rom dat...
/*---------------------------------------------------------------- Raven Library Source Code Copyright (c) 2008-2019 the Raven Development Team ----------------------------------------------------------------*/ #include "RavenInclude.h" #include "Model.h" #include "StateVariables.h" #include "HydroUnits.h" #inclu...