text
stringlengths
54
60.6k
<commit_before>// -*- Mode: C++; tab-width: 2; -*- // vi: set ts=2: // // $Id: SmilesParser_test.C,v 1.5 2003/05/27 14:04:32 oliver Exp $ // #include <BALL/CONCEPT/classTest.h> /////////////////////////// #include <BALL/STRUCTURE/smilesParser.h> #include <BALL/KERNEL/PTE.h> #include <fstream> #include <iostream> #i...
<commit_before>#include <catch.hpp> #include <luwra.hpp> #include <cstring> #include <string> #include <utility> #include <type_traits> #if LUA_VERSION_NUM >= 503 template <typename I> struct NumericTest { static void test(lua_State* state) { const I max_value = std::numeric_limits<I>::max(); const I min_value...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use t...
<commit_before>// // Created by 乔磊 on 15/4/24. // Copyright (c) 2015年 乔磊. All rights reserved. // #include <NSolver/Postprocessor.h> namespace NSFEMSolver { using namespace dealii; template <int dim> Postprocessor<dim>:: Postprocessor (Parameters::AllParameters<dim>const *const para_ptr_in, ...
<commit_before>#include <SFML/Graphics.hpp> #include <iostream> #include <fstream> #include <string> #include <stdio.h> #include "renderer.h" #include "player.h" #include "coord.h" GLuint Texture = 0; GLdouble norm = 1 / sqrt( 3 ); GLdouble x = 0; GLdouble y = 0; GLdouble z = 0; GLdouble radius = 1; GLdouble vert...
<commit_before>#include "gum/RenderContext.h" #include "gum/RenderTargetMgr.h" #include <unirender/gl/RenderContext.h> #include <shaderlab/ShaderMgr.h> #include <shaderlab/SubjectMVP2.h> #include <sprite2/Blackboard.h> #include <stddef.h> namespace gum { CU_SINGLETON_DEFINITION(RenderContext) static void flush_sha...
<commit_before>#include "DBAppMenu.h" #include <stdio.h> #include <stdlib.h> #include <string> #include <vector> using namespace std; int main(int argc, char const *argv[]) { while(cin) { switch (menu) { case 0: //main menu //link: 1,2,3,4,5, 9(back) cout << "<<<<< Main Menu >>>>> /n/n/n"; cout...
<commit_before><commit_msg>Planning: minor fix on tensorRT inference<commit_after><|endoftext|>
<commit_before>#include "schedule.hpp" #include <stdexcept> #include <cassert> #include <cmath> #include <numeric> #include <algorithm> #include <iterator> #include <vector> void to_difficulty(std::vector<double>& perstage_avg) { auto min = *std::min_element(perstage_avg.begin(), perstage_avg.end()); for_each(per...
<commit_before><commit_msg>Fixed deadlock on failed tunnel creation<commit_after><|endoftext|>
<commit_before>/* * Copyright (c) 2002-2005 The Regents of The University of Michigan * Copyright (c) 2011 Advanced Micro Devices * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistrib...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: security.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-09-08 14:31:47 $ * * The Contents of this file are made ...
<commit_before>//===-- ARMSubtarget.cpp - ARM Subtarget Information ----------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/** This library is under the 3-Clause BSD License Copyright (c) 2017, Johannes Heinecke 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 no...
<commit_before><commit_msg>洛谷 4886<commit_after><|endoftext|>
<commit_before>/** 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 under the Apache License, Version 2.0 (the "Licen...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 noet: */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "gui/httpd.h" #include <cstdio> #include <cstring> #include <thread> #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wcast-q...
<commit_before>#if !defined(_MSC_VER) && !defined(__MINGW32__) #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #else #include <io.h> #endif #include <assert.h> #include <iostream> #include <fstream> #include <vector> #include <sstream> #include <string> #include <cstdio> #include ...
<commit_before><commit_msg>fix x86 build<commit_after><|endoftext|>
<commit_before>// Copyright (C) 2015 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 are // met: // // * Redistributions of source code must r...
<commit_before>#include <SofaPython/PythonScriptEvent.h> #include "Python_test.h" #include <sofa/helper/system/PluginManager.h> #include <sofa/simulation/Simulation.h> #include <SofaSimulationGraph/DAGSimulation.h> #include <sofa/helper/logging/Messaging.h> #include <sofa/helper/system/FileSystem.h> #include <Sofa...
<commit_before>/** * @file ct2ctml.cpp * Driver for the system call to the python executable that converts * cti files to ctml files (see \ref inputfiles). */ // Copyright 2001-2005 California Institute of Technology #include "cantera/base/ct_defs.h" #include "cantera/base/ctexceptions.h" #include "cantera/base/c...
<commit_before>/* * Copyright (c) 2022 Arm Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementati...
<commit_before>#include "problemes.h" #include "utilitaires.h" #include "mp_nombre.h" #include "premiers.h" #include "puissance.h" #include "arithmetiques.h" #include "multidimension.h" #include <cmath> typedef long double nombre; typedef std::vector<nombre> vecteur; typedef std::pair<nombre, nombre> paire; typedef s...
<commit_before>/* * The MIT License (MIT) * * Copyright (c) 2017 Nathan Osman * * 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 *...
<commit_before>#include <algorithm> #include <iostream> #include <string> #include <vector> #include "logging/logger.h" #include "parser/io/ptb_reader.h" #include "parser/trees/visitors/annotation_remover.h" #include "parser/trees/visitors/empty_remover.h" #include "parser/trees/visitors/unary_chain_remover.h" #includ...
<commit_before>/// /// @file popcount.cpp /// @brief Fast algorithm to count the number of 1 bits in an /// array using only integer operations. /// /// Copyright (C) 2017 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level di...
<commit_before>/* fskit: a library for creating multi-threaded in-RAM filesystems Copyright (C) 2014 Jude Nelson This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version ...
<commit_before>#ifndef G2_FIELD_CORE_INCLUDE_FIELD_STRUCTS_HH_ #define G2_FIELD_CORE_INCLUDE_FIELD_STRUCTS_HH_ /*===========================================================================*\ author: Matthias W. Smith email: mwsmith2@uw.edu file: field_constants.hh about: A header file for constant parameters use...
<commit_before>#include "systems.h" #include "compiler.h" #include "mswin.h" #include "resources.h" #include "vector.h" #include "make_system.h" #include "cramer.h" #include "graphics.h" #include "memory.h" #include <cstdint> struct triangle_t { float xyz [3] [4]; // Co-ordinates for a single triangle XYZ of the Moe...
<commit_before>#include "endpoint.h" #include <stdexcept> #include <set> #include <mysql.h> #include "database_client.h" #include "row_printer.h" #define MYSQL_5_6_5 50605 class MySQLRes { public: MySQLRes(MYSQL &mysql, bool buffer); ~MySQLRes(); inline MYSQL_RES *res() { return _res; } inline int n_tuples() c...
<commit_before>#include <log4cxx/logger.h> #include <KrisLibrary/Logger.h> #include "Path.h" #include <math/random.h> #include <Timer.h> #include <errors.h> MilestonePath::MilestonePath() {} MilestonePath::~MilestonePath() {} void MilestonePath::Concat(const MilestonePath& path) { edges.reserve(edges.size()+path.e...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkGenericDataSet.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
<commit_before>#include "TrackingWorker.hpp" #include <boost/chrono/duration.hpp> #include <ros/console.h> #include <opencv2/core/core.hpp> #include <map> #include "../matlab/profiling.hpp" TrackingWorker::TrackingWorker(IPositionReceiver *receiver) : tracker(true), errorGraph(200, "Difference"), positions(50) { as...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // jump_diffusion.cpp // ------------------ // // Computes the price of a European call with jump-diffusion driven by a Poisson // process. The jump amplitude is assumed to be lognormally distributed. // // Author: Parsiad A...
<commit_before>#include "wrapper_py_optical_flow.h" #include "../benchmarks.h" #include "Halide.h" #include "halide_image_io.h" #include "tiramisu/utils.h" #include <cstdlib> #include <iostream> #include <stdlib.h> int main(int, char**) { std::vector<std::chrono::duration<double,std::milli>> duration_vector_1; ...
<commit_before>// $Id$ /** * @file streamerinfo-from-raw.C * @brief Extract the streamer info for a raw file and AliRoot version * * This macro generates the streamer info for all objects in the HLTOUT * payload of the specified raw file. The AliRoot version of the when * running this macro needs to be the same a...
<commit_before>/** * projectM -- Milkdrop-esque visualisation SDK * Copyright (C)2003-2004 projectM Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of t...
<commit_before>/** * The Seeks proxy and plugin framework are part of the SEEKS project. * Copyright (C) 2011 Emmanuel Benazera, ebenazer@seeks-project.info * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the ...
<commit_before>//============================================================================= // ■ terminal.cpp //----------------------------------------------------------------------------- // 字符模式显卡驱动。 //============================================================================= namespace Terminal { //-------...
<commit_before>// // causticdata.cpp // SLsimLib // // Created by bmetcalf on 5/6/13. // // #include "causticdata.h" CausticData::CausticData(std::string filename){ ncolumns = 13; readfile(filename); } CausticData::CausticData(size_t size){ ncolumns = 13; data.resize(size); /* redshifts.resize(size); ...
<commit_before>// Copyright (c) 2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "timedata.h" #include "netbase.h" #include "sync.h" #include "ui_interface.h" #include "util.h" #include "util...
<commit_before>// unittree.cpp #include "unittree.h" #include <exception> UnitTree::UnitTree() { // } UnitTree::~UnitTree() { vUnitList.clear(); } void UnitTree::addUnit(string name, int mineralCost, int gasCost, int buildTime, int supplyCost, int supplyProvided, string prereq, string buildsFrom) { Unit *newUnit ...
<commit_before>#include <QtCore/QCoreApplication> #include <QFile> #include <QTextStream> #include <vld.h> #include "lexer.hpp" #include "parser.hpp" #include "stringfuncs.h" #include "treefuncs.h" #include "semanticerrors.h" #include "output.h" extern Package package; extern QList<Import> imports; extern QList<Enum> ...
<commit_before> #include <random> #include "builtin_bit.hpp" #ifdef ENABLE_GLFW3 #include "builtin_glfw3.hpp" #endif #include "builtin_libc.hpp" #include "builtin_memory.hpp" #include "builtin_overflow.hpp" #include "builtin_posix.hpp" #include "builtin_va_arg.hpp" #include "builtin_warp.hpp" #include "convert.hpp" #...
<commit_before>/* Copyright 2016 Kristofer Björnson * * 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 applicabl...
<commit_before>// Copyright (c) 2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <string> #include "version.h" // Name of client reported in the 'version' message. Report the same name //...
<commit_before>/* * Copyright 2013 Google 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 requ...
<commit_before>// Copyright (c) 2012 The paccoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <string> #include "version.h" // Name of client reported in the 'version' message. Report the same ...
<commit_before>#include <nan.h> #include <zstd.h> static NAN_METHOD(Compress) { if (info.Length() < 1 || !node::Buffer::HasInstance(info[0])) { return Nan::ThrowError("First argument should be a buffer"); } v8::Local<v8::Object> buf = info[0]->ToObject(); char *src = node::Buffer::Data(buf); size_t src...
<commit_before>/* Copyright libCellML Contributors 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 ...
<commit_before>/* Copyright 2007-2015 QReal Research Group * * 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 ap...
<commit_before>/** * 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 under the Apache License, Version 2.0 (the * ...
<commit_before>/** * This file is part of Slideshow. * Copyright (C) 2008-2010 David Sveningsson <ext@sidvind.com> * * Slideshow is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of...
<commit_before>#include <zmq.hpp> #include <sys/socket.h> #include <sys/socket.h> #include <netinet/in.h> #include <vector> #include <iostream> #include <unistd.h> #include <fcntl.h> #include <map> #include "rapidxml.hpp" typedef enum { C2S, S2S, COMP } SESSION_TYPE; class NetSession { std::string m_buf; int m_f...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //======================================...
<commit_before>#define GUILITE_ON //Do not define this macro once more!!! #include "GuiLite.h" #define UI_WIDTH 240 #define UI_HEIGHT 320 #define LAYER_1_X 70 #define LAYER_1_Y 110 #define SHADES_CNT 10 #define SHADE_HEIGHT 10 #define LAYER_1_WIDTH 80 #define LAYER_1_HEIGHT SHADES_CNT * SHADE_HEIGHT static c_sur...
<commit_before>#include <node_version.h> #if NODE_VERSION_AT_LEAST(0, 11, 1) && !defined(_MSC_VER) #include <sys/types.h> #endif #include <errno.h> #include <napi.h> #if defined(_MSC_VER) #include <time.h> #include <windows.h> // Pick GetSystemTimePreciseAsFileTime or GetSystemTimeAsFileTime depending // on which ...
<commit_before>/************************************************************************************ This source file is part of the Theora Video Playback Library For latest info, see http://libtheoraplayer.sourceforge.net/ ************************************************************************************* Copyright ...
<commit_before>// Copyright (c) 2012, Zeex // 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 // lis...
<commit_before>#include <yuni/yuni.h> #include <yuni/thread/utility.h> #include <yuni/job/taskgroup.h> #include <yuni/io/file.h> #include "source.h" #include "build-info.h" #include "target.h" #include "details/errors/errors.h" #include <memory> #include "details/context/build.h" using namespace Yuni; namespace ny {...
<commit_before>// Copyright (c) 2012, Zeex // 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 // lis...
<commit_before>/************************************************************************* * * $RCSfile: dbfld.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: rt $ $Date: 2004-08-23 08:29:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses...
<commit_before><commit_msg>Little Speed boost for rotation Matrix<commit_after><|endoftext|>
<commit_before>#include "enemy.h" #include <string> #include <cstdlib> #include "player.h" using namespace std; Enemy::Enemy(Player* player) { maxHP = player->getMAX_HP(); minDamage = player->minDamage(); maxDamage = player->maxDamage(); this->player = player; weight = 0; setPrefix(); setN...
<commit_before>/******************************************************************************* * libproxy - A library for proxy configuration * Copyright (C) 2006 Nathaniel McCallum <nathaniel@natemccallum.com> * Copyright (C) 2016 Fabian Vogt <fvogt@suse.com> * * This library is free software; you can redistribu...
<commit_before>/* * Copyright (c) 2003 The Regents of The University of Michigan * 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 copyri...
<commit_before>/* Copyright (C) 2003 by Jorrit Tyberghein (C) 2003 by Frank Richter This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the L...
<commit_before>#include "momentum.h" #include <boost/unordered_map.hpp> #include <iostream> #include <semiOrderedMap.cpp> namespace bts { #define MAX_MOMENTUM_NONCE (1<<26) #define SEARCH_SPACE_BITS 50 #define BIRTHDAYS_PER_HASH 8 std::vector< std::pair<uint32_t,uint32_t> > momentum_search( uint256 midHash ) ...
<commit_before>// LICENSE/*{{{*/ /* sxc - Simple Xmpp Client Copyright (C) 2008 Dennis Felsing, Andreas Waidler 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...
<commit_before>/****************************************************************/ /* */ /* */ /****************************************************************/ #include "NewmarkMaterial.h" templa...
<commit_before>#include <iostream> #include <string> #include <tinyxml2.h> #include "args.h" #include "load_scene.h" #include "render/render_target.h" #include "render/camera.h" #include "geometry/sphere.h" #include "geometry/geometry_cache.h" /* * Run intersection tests on all the children of the node * returns tru...
<commit_before>// This file is part of the dune-pymor project: // https://github.com/pyMor/dune-pymor // Copyright Holders: Felix Albrecht, Stephan Rave // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifdef HAVE_CMAKE_CONFIG #include "cmake_config.h" #elif defined (HAVE_CONFIG_H) ...
<commit_before>#include "node_map.hpp" #include "node_file_source.hpp" #include <mbgl/platform/default/headless_display.hpp> #include <mbgl/map/still_image.hpp> #include <mbgl/util/exception.hpp> #include <unistd.h> namespace node_mbgl { struct NodeMap::RenderOptions { double zoom = 0; double bearing = 0; ...
<commit_before>/** * @file LogXmlNode.hpp * @brief LogXmlNode class prototype. * @author zer0 * @date 2017-04-25 */ #ifndef __INCLUDE_LIBTBAG__LIBTBAG_LOG_NODE_LOGXMLNODE_HPP__ #define __INCLUDE_LIBTBAG__LIBTBAG_LOG_NODE_LOGXMLNODE_HPP__ // MS compatible compilers support #pragma once #if defined(_MSC_VER) ...
<commit_before>// The MIT License (MIT) // Copyright (c) 2013 lailongwei<lailongwei@126.com> // // 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 l...
<commit_before>#include "sift.hpp" #include <iostream> #include <string> #include <cassert> #include <vigra/impex.hxx> #include <vigra/multi_math.hxx> #include <vigra/linear_algebra.hxx> #include "point.hpp" #include "algorithms.hpp" using namespace vigra::multi_math; using namespace vigra::linalg; namespace sift ...
<commit_before>#define _CRT_SECURE_NO_WARNINGS #include <unordered_map> #include <string> #include <sstream> #include <iomanip> #include "imgui.h" #define STB_LOG_IMPLEMENTATION #include "stb_log.h" #include "util.h" #include "shellcmd.h" class CImLog : public CCustomLog { public: CImLog() : m_cur_buf(nullptr) { } ...
<commit_before> #include <cstdlib> #include <iostream> #include "SupervisedLDA.hpp" #include "ProgressVisitor.hpp" int main(int argc, char **argv) { if (argc < 3) { std::cerr << "Usage:\n\t" << argv[0] << " TOPICS ITER" << std::endl; return 1; } SupervisedLDA<double> lda(std::atoi(argv[...
<commit_before>// Copyright 2019 The TCMalloc 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
<commit_before>/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Lorica source file. * Copyright (C) 2007-2008 OMC Denmark ApS. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published ...
<commit_before>/* * File: complet.cpp * Copyright (C) 2008 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS) * * This file implements some kind of tab-completion using readline facilities. It can be used either with libedit * or readline libraries or, in fact, any other library tha...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published...
<commit_before>#include <engpar_support.h> #include <engpar.h> #include <engpar_input.h> #include <binGraph.h> #include <cstring> #include "buildGraphs.h" bool cmpebin(char* str) { return strlen(str)>4&&strcmp(str+strlen(str)-5,".ebin")==0; } int main(int argc, char* argv[]) { MPI_Init(&argc,&argv); ...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // // Copyright 2013 - 2014, Göteborg Bit Factory. // // 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...
<commit_before>#include <gmi_mesh.h> #include <gmi_sim.h> #include <apfMDS.h> #include <apfMesh2.h> #include <apfConvert.h> #include <apf.h> #include <PCU.h> #include <SimUtil.h> #include <cassert> #include <cstdlib> #define INTERIORTAG 0 #define BOTTOMTAG 1 #define TOPTAG 2 #define PERIMETERTAG 3 #define BOTTOM_PERIM...
<commit_before>#include "laplace.hpp" #include <gtest/gtest.h> #include <boost/random/mersenne_twister.hpp> using namespace MultidimensionalArray; using namespace ProbabilityDistributions; TEST(LaplacelTest, Likelihood) { boost::random::mt19937 rng; const unsigned int n_samples = 100; Laplace<double> dist(0, ...
<commit_before>#include <cassert> #include <csetjmp> #include <cstdlib> #include <cstdio> #include <cstring> #include "CuTest.h" #include "posit.h" static POSIT_STYPE add_table[4][4] = { // 0 1 inf -1 { 0b00, 0b01, 0b10, 0b11 }, // 0 { 0b01, 0b01, 0b10, 0b00 }, // 1 { 0b10, 0b10, -1, 0b10...
<commit_before>#include <rapidxml\rapidxml.hpp> #include "Log4JEvent.h" const char TagEvent_[] = "log4j:event"; const size_t TagEventSize_ = sizeof (TagEvent_) - 1U; const char AttrLevel_[] = "level"; const size_t AttrLevelSize_ = sizeof (AttrLevel_) - 1U; const char AttrLogger_[] = "logger"; const size_t AttrLogger...
<commit_before>/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Guido Tack <guido.tack@monash.edu> */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one ...
<commit_before>#include <iostream> inline double speed(double distance, double time) { return distance * time; } int main (int argc, char* argv[]) { double distance; double time; double average_speed; std::cout << "Enter the distance in meters: "; std::cin >> distance; std::cout <...
<commit_before>#include "Actor.hpp" std::map<std::string, std::shared_ptr<RenderModel>> Actor::s_modelDictionary; Actor::Actor(const std::string& actorName) : m_desc(actorName) { assert(actorName.compare("") != 0); try { // Construct model if it has not been constructed yet if(s_modelDictionary.count(m_desc.ren...
<commit_before>#include "Enemy.h" #include "EStateIdle.h" #include "EStatePatrolling.h" #include "EStateAerial.h" #include "EStateCurious.h" #include "EStateAlert.h" double Enemy::px = 0.0; double Enemy::py = 0.0; double Enemy::alertRange = 300.0; double Enemy::curiousRange = 600.0; Enemy::Enemy(const double x_, con...
<commit_before>#ifndef BEDGE #define BEDGE #include <utility> #include "BVect.hpp" #include "DominanceStatus.hpp" class BEdge { private: BVect _a; BVect _b; bool _aClosed; bool _bClosed; bool _point; public: BEdge() : _aClosed(false), _bClosed(false), _point(false) {} BEdge (BVect a, B...
<commit_before>// // Common abstract class for Visualization Library. Maintains debug // flag, reference counting, modified time, and other common // functions/parameters. // #ifndef __vlObject_h #define __vlObject_h #include <iostream.h> #include "TimeSt.hh" // // Common #defines / parameters // // // Class defini...
<commit_before>/*========================================================================= Program: Visualization Library Module: ProbeF.hh Language: C++ Date: $Date$ Version: $Revision$ This file is part of the Visualization Library. No part of this file or its contents may be copied, reproduc...
<commit_before>// Scintilla source code edit control /** @file LexVB.cxx ** Lexer for Visual Basic and VBScript. **/ // Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #include <stdlib.h> #include <string.h> #inc...
<commit_before>#include "StateMachine.h" #include <regex> #include <algorithm> #include <iostream> #include <map> struct Nil {}; typedef corvid::Machine< char, Nil > LexerMachine; struct Start; struct Integer; struct Identifier; template <char A> struct Literal; const char* keyword_if = "if"; struct...
<commit_before>/** * @file cossb.hpp * @brief COSSB Header * @author Byunghun Hwang<bhhwang@nsynapse.com> * @date 2015. 6. 9 * @details */ #ifndef _COSSB_HEADER_HPP_ #define _COSSB_HEADER_HPP_ #if defined(__unix__) || defined(__gnu_linux__) || defined(linux) || defined(__linux__) #include "version.hpp" #...
<commit_before>#include <iostream> #include <sqlite3.h> #include <string> #include <cstring> #include <map> #include <sstream> #include "ReadGzip.h" using namespace std; #include "MBTileReader.h" #include "vector_tile20/vector_tile.pb.h" #include <string> #include <sstream> #include <vector> using namespace std; // ...