text
stringlengths
5.71k
33.7k
/* SoLoud audio engine Copyright (c) 2013-2021 <NAME> 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 "OOC_PCA.h" #ifdef PI #undef PI #undef HALF_PI #endif #include "Magic/MgcEigen.h" #define CONVERT_Vector3_VECTOR3(s,d) {d.e [0] = s.x;d.e [1] = s.y; d.e[2] = s.z;} #define CONVERT_VECTOR3_Vector3(s,d) {d.x = s.e [0];;d.y = s.e [1];d.z = s.e [2];} #define DEGREE_89 0.01745 #ifndef PI #define PI 3.141592f...
#include "Stats.h" #include "core/statistics.h" #include <iostream> #include <algorithm> #define PI 3.14 #include <cmath> const double Stats::SQRTH = 7.07106781186547524401E-1; const double Stats::MAXLOG = 7.09782712893383996732E2; /// <summary> ///*********************************************** /// COE...
/* * Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. */ extern "C" { #include <ovsdb_wrapper.h> }; #include <ovs_tor_agent/tor_agent_init.h> #include <ovsdb_client.h> #include <ovsdb_route_peer.h> #include <ovsdb_client_connection_state.h> #include <ha_stale_dev_vn.h> #include <ha_stale_vn.h> #include...
// Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar #pragma once #include <fwd-POI.hpp> #include <java/io/fwd-POI.hpp> #include <java/lang/fwd-POI.hpp> #include <java/text/fwd-POI.hpp> #include <java/time/fwd-POI.hpp> #include <java/util/fwd-POI.hpp> #include <java/util/c...
// __BEGIN_LICENSE__ // Copyright (c) 2009-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NGT platform is licensed under the Apache License, Version 2.0 (the // "License"); you may not use this file excep...
/* * The MIT License (MIT) * Copyright (c) 2015 <NAME>. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * t...
#pragma once #include <vector> #include <tuple> #include <exception> #include <iostream> #include <string> #include <sstream> #include <algorithm> #include <iterator> #include <locale> #include "pole.h" #include "../common.hpp" #include "OleCommon.hpp" #include <math.h> #define __max(a,b) (((a) > (b)) ? (a) : (b)) #...
#include <solidarity/dialler/listener.h> #include <solidarity/mesh_connection.h> #include <solidarity/node.h> #include <solidarity/protocol_version.h> #include <solidarity/queries.h> #include <solidarity/raft.h> #include <solidarity/utils/utils.h> #include <boost/asio.hpp> #include <future> #include <list> using nam...
/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | https://www.mrpt.org/ | | | | Thi...
/******************************************************************************* * * Copyright (c) 2010-2015 <NAME> * * This file is part of MASA-Core. * * MASA-Core 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 Softw...
/* * SketchSort.cpp * Copyright (c) 2011 <NAME> All Rights Reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to...
/* Copyright (c) 2019, 2020, Oracle and/or its affiliates. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certain software (including ...
// Copyright (C) 2021-2022 <NAME> and <NAME> // // This file is part of DOLFINx_CONTACT // // SPDX-License-Identifier: MIT #include "kernelwrapper.h" #include <array.h> #include <caster_petsc.h> #include <dolfinx/la/petsc.h> #include <dolfinx/mesh/MeshTags.h> #include <dolfinx_contact/Contact.h> #include <dolfinx_c...
/**************************************************************************** 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 re...
/* _______________________________________________________________________ DAKOTA: Design Analysis Kit for Optimization and Terascale Applications Copyright 2014 Sandia Corporation. This software is distributed under the GNU Lesser General Public License. For more information, see the README file in t...
/* Extracted from anet.c to work properly with Hiredis error reporting. * * Copyright (c) 2009-2011, <NAME> <antirez at gmail dot com> * Copyright (c) 2010-2014, <NAME> <pcnoordhuis at gmail dot com> * Copyright (c) 2015, <NAME> <matt at genges dot com>, * <NAME> <janerik at fnordig dot com> *...
/* SDU CAR library created by <NAME> ver 1.1 */ #include "Arduino.h" #include "SDU_CAR.h" #include <Wire.h> #include <SPI.h> #include <SD.h> volatile unsigned char left_count = 255; volatile unsigned char left_ovf = 0; volatile unsigned char right_count = 255; volatile unsigned char right_ovf = 0; v...
#include <iostream> #include <string> #include <thread> #include <mutex> #include <vector> #include <ros/ros.h> #include <ros/timer.h> #include <tf/transform_broadcaster.h> #include <tf/transform_listener.h> #include <tf2_geometry_msgs/tf2_geometry_msgs.h> #include "boost/date_time/posix_time/posix_time.hpp" //#inclu...
#include <iostream> #include "../annoy/src/kissrandom.h" #include "../annoy/src/annoylib.h" #include "octree.h" #include <cstdio> #include <cstdlib> #include <cmath> #include <map> #include <tuple> #define N 5555555 using namespace std; struct Point { double x, y, z; Point() {}; Point (double _x, double _y, doub...
#include <unistd.h> #include <sys/stat.h> #include <chrono> #include <mpi.h> #include <random> #include <iostream> // #include <labios.h> #include "sonar.h" /* * main - driver for Sonar benchmark */ int main(int argc, char** argv) { // benchmark parameters (w/ defaults) int opt, t; int num_iterations = DEFAUL...
/*- * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2020 NKI/AVL, Netherlands Cancer Institute * * 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 a...
/* Copyright (C) * 2019 - <NAME> * * MIT License * * 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, modi...
/* * options.cpp * lpg * * Created by <NAME> on 3/13/11. * Copyright 2011 IBM. All rights reserved. */ #include "options.h" #include "option.h" #include <limits.h> OptionProcessor::OptionProcessor(Option *option) : options(option) { } std::string trimQuotes(std::string& s) { std::string result; in...
#include "DS1820.h" /* * NOTICE: this was modified by <NAME> (BenTheElder) * to use the accompanying LinkedList implementation, and to fix a bug * in the deconstructor. * License is as Follows: * * mbed DS1820 Library, for the Dallas (Maxim) 1-Wire Digital Thermometer * Copyright (c) 2010, <NAME> <EMAIL> * Modi...
#include "Camera.hpp" #include "image.hpp" #include <tuple> Camera::Camera() : post_processor_(this) { } Camera::~Camera() { std::cout << "Closing Libcamera application..." << std::endl; CameraStoppen(); Teardown(); CameraClose(); } void Camera::CameraClose() { if (camera_acquired_) m_Camera->release(); ca...
// // main.cpp // jpcnn // // Created by <NAME> on 1/9/14. // Copyright (c) 2014 Jetpac, Inc. All rights reserved. // #include <stdio.h> #include <sys/time.h> #include <string.h> #include <getopt.h> #include <assert.h> #include <math.h> #include <stdlib.h> #include <dirent.h> #include <errno.h> #include <unistd.h>...
// Copyright (c) 2017, Lawrence Livermore National Security, LLC and // UT-Battelle, LLC. // Produced at the Lawrence Livermore National Laboratory and the Oak Ridge // National Laboratory. // LLNL-CODE-743438 // All rights reserved. // This file is part of MGmol. For details, see https://github.com/llnl/mgmol. // Plea...
#define G_LOG_DOMAIN "apimodule-sgx" #include "internal.h" #include "QuoteGeneration.h" extern "C" { #include "safe_lib.h" } typedef CK_RSA_PUBLIC_KEY_PARAMS * CK_RSA_PUBLIC_KEY_PARAMS_PTR; static gboolean sgx_get_challenge(keyagent_apimodule_get_challenge_details *, void *, GError **err); static gboolean sgx_set_wra...
/* * Copyright (c) 2016 <NAME> * * This file is part of the Realms Of Steel. * For conditions of distribution and use, see copyright details in the LICENSE file. */ #include <math/Vector3D.h> #include <math/Matrix2D.h> #include <math/Matrix4D.h> #include <math/EulerAngles.h> #include <math/Quaternion.h> #include <...
/* * Cream Library * Copyright (C) 2013 <NAME>, CICM - Université Paris 8 * All rights reserved. * Website : https://github.com/CICM/CreamLibrary * Contacts : <EMAIL> * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ ...
#include "ragebot-autowall.h" #include "../../../helpers/math.hpp" #include "../../../valve_sdk/math/Vector.hpp" #include "../../../options.hpp" #include "../../../Protected/enginer.h" // Supreamcy autowall + skeet.idn & otv2 code // Credit's : @Snake #define CHAR_TEX_ANTLION 'A' #define CHAR_TEX_BLOODYFLESH 'B' #...
/*************************************************************************/ /* ik_direction_limit.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/* dhcpclient.cpp - dhcp client request handling * * (c) 2011-2016 <NAME> <<EMAIL>> * 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 abo...
// // Created by <NAME> on 2021-03-14. // #include "../../include/experiment/Experiment.h" #include <iostream> #include <fstream> #include <string> #include <vector> #include <assert.h> #include "../../include/experiment/Database.h" #include "../../include/json.hpp" #include <fstream> #include "../../include/utils.h" ...
#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 <assimp/Importer.hpp> #include <assimp/scene.h> #include <assimp/postprocess.h> #include <learnopengl/filesystem.h> #include <learnopengl/shader_m.h> #in...
/* * Copyright (C) 2005 - 2013 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2013 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/> * * Copyright (C) 2010 - 2013 ProjectSkyfire <http://www.projectskyfire.org/> * * Copyright (C) 2011 - 2013...
/* * Copyright (C) 2018-2019 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "binary_encoder.h" #include "core/helpers/aligned_memory.h" #include "elf/writer.h" #include "offline_compiler/offline_compiler.h" #include "runtime/helpers/file_io.h" #include "runtime/helpers/hash.h" #include "CL/cl....
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
#include <stdio.h> #include <stdlib.h> #include <iostream> #include <string> #include <regex> #include <fstream> #include <vector> #include <map> #include <curl/curl.h> #include <jsoncpp/json/json.h> #include <iomanip> using namespace std; #define bufSize 1024 map<string,string> readConfig(); std:...
/* Copyright (c) 2014-2015, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the fol...
/** @author <NAME> */ #include "KinematicFaultChecker.h" #include "BodyItem.h" #include "BodyMotionItem.h" #include "WorldItem.h" #include "LinkSelectionView.h" #include <cnoid/BodyState> #include <cnoid/Archive> #include <cnoid/MainWindow> #include <cnoid/MenuManager> #include <cnoid/TimeBar> #include <cnoid/ItemT...
// stl include #include <iostream> #include <string> #include <chrono> #include <fstream> // GLEW include #include <GL/glew.h> // GLM include files #define GLM_FORCE_INLINE #define GLM_ENABLE_EXPERIMENTAL #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/transform.hpp> // transformatio...
// ----------------------------------------------------------------------------------------------------- // Copyright (c) 2006-2019, <NAME> & Freie Universität Berlin // Copyright (c) 2016-2019, <NAME> & MPI für molekulare Genetik // This file may be used, modified and/or redistributed under the terms of the 3-clause B...
/* * Copyright (c) 2010-2017 OTClient <https://github.com/edubart/otclient> * * 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...
/** @author <NAME> */ #include "GSMediaView.h" #include "MediaItem.h" #include <cnoid/TimeBar> #include <cnoid/ConnectionSet> #include <cnoid/MenuManager> #include <cnoid/MainMenu> #include <cnoid/ViewManager> #include <cnoid/Archive> #include <cnoid/RootItem> #include <cnoid/ItemList> #include <cnoid/MessageView> ...
/********************************************************************** Audacity: A Digital Audio Editor BlockFile.cpp <NAME> <NAME> *******************************************************************//*! \class BlockFile \brief A BlockFile is a chunk of immutable audio data. A BlockFile represents a chun...
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
/****************************************************************************** * _ _____ __________ * * | | / / _ | / __/_ __/ Visibility * * | |/ / __ |_\ \ / / Across * ...
/* * Copyright 2014 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ // Running create_test_font generates ./tools/fonts/test_font_index.inc // and ./tools/fonts/test_font_<generic name>.inc which are read by // ./tools/fonts/TestFontMgr.cpp #...
#include <deque> #include <vector> #include <string> #include <unordered_set> #include "constraint_solver/constraint_solver.h" #include "constraint_solver/constraint_solveri.h" #include "util/string_array.h" const std::vector<std::vector<int>> small = { { 3, 2, -1, 3 }, { -1, -1, -1, 2 }, { 3, -1, -1, -1 }, {...
#include "lbf.h" #include <iostream> #include <Windows.h> #include "align.h" #include "filter.h" #include "timer.h" namespace lbf { #pragma region Assert #undef assert #ifdef ENABLE_ASSERT static void _pwassert(const wchar_t* expression, const wchar_t* file, unsigned line) { printf("PW Assertion fai...
/////////////////////////////////////////////////////////////////////////// // <copyright file="Actuator.cpp" company="Intel Corporation"> // // Copyright (c) 2019 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Li...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2016-Present Couchbase, Inc. * * Use of this software is governed by the Business Source License included * in the file licenses/BSL-Couchbase.txt. As of the Change Date specified * in that file, in accordance...
#include "pxt.h" #include "SoundOutput.h" #include "melody.h" //#define LOG DMESG #define LOG NOLOG namespace music { SINGLETON(WSynthesizer); static const int16_t sinQ[256] = { 0, 201, 403, 605, 807, 1009, 1210, 1412, 1614, 1815, 2017, 2218, 2419, 2621, 2822, 3023, 3224, 3425, 3625,...
/****************************************************************************** * * * Copyright (C) 2020 Fondazione Istituto Italiano di Tecnologia (IIT) * * All Rights Reserved. * ...
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * enums.cpp: various enumerated types + enum -> str helpers * * Copyright 2008 Novell, Inc. (http://www.novell.com) * * See the LICENSE file included with the distribution for details. * */ #include <config.h> #include <glib.h> ...
#include "stretch_shear_forces.h" #include <igl/sparse_cached.h> using namespace std; using namespace Eigen; namespace { typedef Triplet<double> Tri; typedef Eigen::Matrix<double, 9, 9> Matrix9d; bool isPSD(const MatrixXd& A) { assert( (A - A.transpose()).norm() < 1e-8 ); return A.selfadjointView<Eigen::...
// // @author <NAME> // // Copyright (c) 2014 CSIRO // #include "Colour.h" #include <algorithm> #include <array> #include <cmath> #include <limits> namespace { const float kSectorSizeDegrees = 60.0f; const float kCircleDegrees = 360.0f; } // namespace namespace ohm { void colour::hsvToRgb(float &r, float &g, float ...
/* Provide SSL/TLS functions to ESP32 with Arduino IDE * * Adapted from the ssl_client example of mbedtls. * * Original Copyright (C) 2006-2015, ARM Limited, All Rights Reserved, Apache 2.0 License. * Additions Copyright (C) 2017 <NAME>, Apache 2.0 License. * Additions Copyright (C) 2019 <NAME>. */ #include "Arduino.h...
// Copyright © 1996-2018, Valve Corporation, All rights reserved. #include "tmessage.h" #include "base/include/base_types.h" #include "cdll_int.h" #include "common.h" #include "draw.h" #include "mem_fgets.h" #include "quakedef.h" #include "tier0/include/icommandline.h" #include "tier1/characterset.h" #include "tier0...
#include <assert.h> #include <fstream> #include <sstream> #include <iostream> #include <cmath> #include <sys/stat.h> #include <cmath> #include <time.h> #include <cuda_runtime_api.h> #include <cudnn.h> #include <cublas_v2.h> #include <memory> #include <string.h> #include <cstdint> #include "NvInfer.h" #include "NvCaffe...
// jhcAliaSpeech.cpp : speech and loop timing interface for ALIA reasoner // // Written by <NAME>, <EMAIL> // /////////////////////////////////////////////////////////////////////////// // // Copyright 2019-2020 IBM Corporation // Copyright 2020-2021 Etaoin Systems // // Licensed under the Apache License, Version 2.0 (...
#include "core/engine/geometry/MeshData.h" #include <fstream> #include <filesystem> #if _DEBUG #define VALIDATE_MAX_INDEX(i) \ if (i > std::numeric_limits<Index>::max()) { \ printf("Index %llu is larger than the maximum supported index %llu\n", (uint64_t)i, (uint64_t)std::numeric_limits<Index>::max()); \ a...
#include <deal.II/base/conditional_ostream.h> #include <deal.II/base/graph_coloring.h> #include <deal.II/base/parameter_handler.h> #include <deal.II/base/timer.h> #include <deal.II/base/types.h> #include <deal.II/lac/trilinos_precondition.h> #include <deal.II/lac/trilinos_solver.h> #include <deal.II/lac/trilinos_vector...
// Copyright(c) 2020-2021, Intel Corporation // // 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...
#include <qtav.h> N::CameraView:: CameraView ( QWidget * parent , Plan * p ) : GLWidget ( QGLFormat(QGL::DoubleBuffer | QGL::DepthBuffer | QGL::Rgba | QGL::AlphaChan...
#include <algorithm> #include <fstream> #include <vector> #include <math.h> #include <map> // #pragma GCC optimize ("O0") using std::vector; using std::pair; #include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string.hpp> #include <boost/log/trivial.hpp> #include "rinexObsWrite.hpp" #include "ri...
#include <base/cgal_typedefs.h> #include <ceres/ceres.h> #include <ceres/rotation.h> #include <IO/fileIO.h> #include <util/helper.h> #include <util/vectorArithmetic.h> #include <processing/pointSetProcessing.h> #include <rPLY/ply.h> // colmap util #include <util/misc.h> #include <util/endian.h> //#include <util/ply....
#include "eulerTransport.hpp" #include "finiteVolume/compressibleFlowFields.hpp" #include "finiteVolume/fluxCalculator/ausm.hpp" #include "utilities/mathUtilities.hpp" #include "utilities/petscError.hpp" ablate::finiteVolume::processes::EulerTransport::EulerTransport(const std::shared_ptr<parameters::Parameters>& para...
#include <cstdint> #include <stdexcept> #include "ksight/tools.h" #include "PairHMMFpga.h" #include "PairHMMFpgaInterface.h" OpenCLEnv *env = NULL; float *ret_buf = NULL; FpgaInputBundle* bundle = NULL; double peak_kernel_gcups = 0; double curr_kernel_gcups = 0; static Context<float> g_ctxf; static Context<double>...
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/**********************/ /*** igrf.c ***/ /****************************************************************************/ /* Usage from FORTRAN : ( All variables are in single precision ) */ /* First specify the Generation Number with the Year of Calc. */ /* by CALL gigrf(NGEN, ...
//convention followed is row column not graph wise #include<iostream> #include<cv.h> #include<C:\Program Files\OpenCV\otherlibs\highgui\highgui.h> #include<stdlib.h> #include<iomanip> #include<fstream> #include<math.h> using namespace std; int p=0,x_1,y_1,x_2,y_2,x_3,y_3,x_4,y_4; //boundary points int k=10; ...
/** * PcapSplitter application * ======================== * An application that splits a pcap file into smaller pcap files by a user-defined criteria: * * 1) File-size - splits the pcap file to smaller pcap files, each file with a certain size defined by the user * 2) Packet-count - splits the pcap file to ...
#include "dialogmenu.h" #include <Tempest/Painter> #include <Tempest/Log> #include <algorithm> #include "utils/gthfont.h" #include "world/objects/npc.h" #include "gothic.h" #include "inventorymenu.h" #include "resources.h" using namespace Tempest; bool DialogMenu::Pipe::output(Npc &npc, const Daedalus::ZString& tex...
/* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 <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 ...
////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2017 EMC Corporation /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except in compliance with the License. /// You may obtain a copy of the License at //...
// Last Modified: Dec 1 2011 /////////////////////////////////////////////////////////// // // TEMPORARY INPUT // This cpp file contains the definitions for the input /////////////////////////////////////////////////////////// // // // namespace Inputdata:: // The data in the input deck are collected ...
#include<list> #include<unordered_map> #include"../base/base.h" #include<sys/cdefs.h> #define access(ptr,type,off) (*((type*)(((uintptr_t)ptr)+off))) using std::swap; using std::list; using std::unordered_map; #define max(a,b) (((a)>(b))?(a):(b)) #define min(a,b) (((a)<(b))?(a):(b)) static LDBImpl db("data_v2/land"); ...
//////////////////////////////////////////////////////////////////////////////// // // // PaperBack -- high density backups on the plain paper // // ...
// Copyright (c) 2012 Cloudera, Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
#include "iostack.h" // Updated to use https://github.com/FrankBoesing/FastCRC #include <FastCRC.h> FastCRC16 CRC16; // Updated to use https://github.com/cmaglie/FlashStorage #include <FlashAsEEPROM.h> // Handlers enum iostack_error_code iostack_handle_register_read(struct iostack_request *request); enum iostack_err...
/**\class EcalSimpleTBAnalyzer Description: <one line class summary> Implementation: <Notes on implementation> */ // // // #include "RecoTBCalo/EcalSimpleTBAnalysis/interface/EcalSimpleTBAnalyzer.h" #include "DataFormats/EcalRecHit/interface/EcalUncalibratedRecHit.h" #include "DataFormats/EcalRecHit/interface...
#include "global.h" #include "trisetinformation.h" #include <QMessageBox> #include <QDir> TrisetInformation::TrisetInformation() { clear(); } void TrisetInformation::clear() { show = true; clip = true; filename.clear(); position = Vec(0,0,0); scale = Vec(1,1,1); q = Quaternion(); color = Vec(0,0,0); c...
// // ppdvertex.cxx // // Copyright (c) 1997-1999 <NAME> // // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php // #include "StdAfx.h" #if defined(_DEBUG) && defined(_WINDOWS) #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif #include ...
#include "EllipticalHaarFeatures.h" #include <iostream> #include <fstream> #include <algorithm> #include <stdio.h> #include <string.h> #include <cstring> #include "external/Nathan/tictoc.h" #include "external/xmlParser/xmlParser.h" #include "gentleBoost/gentleBoost.h" #include "AnnotationEllipsoid.h" namespace mylib ...
#include "ResourceFont.h" #include "imgui/imgui.h" #include "Application.h" #include "glew/include/GL/glew.h" #include "ModuleScene.h" #include "ModuleFileSystem.h" #include "ModuleResourceManager.h" #include "ModuleUi.h" #include <assert.h> #pragma comment(lib, "Freetype/libx86/freetype.lib") ResourceFont::ResourceF...
/** \brief Msy class The Msy class provides computational support for age-structured models in which MSY-based (Maximum Sustainable Yield) reference points are required. It is specifically designed to deal with cases in which there are multiple fishing fleets that differ in selectivity and is capable of deter...
#include <iostream> #include "bboard.hpp" #include "step_utility.hpp" using namespace bboard; inline int _invert(const int boardPos) { return BOARD_SIZE - 1 - boardPos; } /** * Selects a random element arr[i] with i in range [0, count - 1] * and swaps arr[i] with arr[0]. This means arr[1:count-1] will * cont...
// imageproc.cpp // OpenGL SuperBible, Chapter 17 // Demonstrates convolution via fragment shaders // Program by <NAME> #include "../../shared/gltools.h" // OpenGL toolkit #include "../../shared/glframe.h" // OpenGL toolkit #include <stdio.h> #define PASS_THROUGH 0 #define BLUR 1 #define SHARPEN ...
/* * This software is copyrighted as noted below. It may be freely copied, * modified, and redistributed, provided that the copyright notice is * preserved on all copies. * * There is no warranty or other guarantee of fitness for this software, * it is provided solely "as is". Bug reports or fixes may be sent ...
// Pekka Kana 2 by <NAME> from <NAME> (2003-2007) // https://pistegamez.net/game_pk2.html // // This file is part of Pekka Kana 2, the original license of the author can be // found in the file 'license.txt'. // /* INCLUDES -----------------------------------------------------------------*/ #include <cstdio>...
/********************************************************************************* * MIT License * * Copyright (c) 2020-2021 <NAME> * * https://github.com/HomeSpan/HomeSpan * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation...
#include "octree.h" //Compacts an array of integers, the values in srcValid indicate if a //value is valid (1 == valid anything else is UNvalid) returns the //compacted values in the output array and the total //number of valid items is stored in 'count' void octree::gpuCompact(my_dev::context &devContext, ...
#include "dart/dart.hpp" #include "dart/gui/gui.hpp" #include "dart/collision/bullet/bullet.hpp" #include "dart/collision/ode/ode.hpp" #include <dart/utils/utils.hpp> #include <iostream> #include <fstream> #include "tiny_dnn/tiny_dnn.h" #include <string> #include <typeinfo> using namespace dart::dynamics; using namesp...
//===-- MCJIT.cpp - MC-based Just-in-Time Compiler ------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1999 - 1999 // // File: _deltemp.cpp // //-------------------------------------------------------------------------- /////////////////////////////////////...
#include <map> #include <string> #include <cstdint> #include <sstream> #include <vector> #include <tuple> #include "glog/logging.h" #include "capstone/capstone.h" #include "Block.hpp" #include "TraceDefs.hpp" #include "LiftingAnalyzer.hpp" #include "CapstoneHelper.hpp" Lifter::Lifter() : m_arch(cs_arch::CS_ARCH_X8...
#include <iostream> #include <cmath> #include <vector> #include <glad.h> #include <glfw3.h> #include "includes/stb_image.h" #include "includes/glm/glm.hpp" #include "includes/glm/gtc/matrix_transform.hpp" #include "includes/glm/gtc/type_ptr.hpp" #include "includes/shader_s.h" using namespace std; const int SCR_WIDT...