text
stringlengths
54
60.6k
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the QtOpenGL module of the Qt Toolkit. ** ** $QT_BEGIN...
<commit_before>#ifndef __ENVIRE_MAPS_GRIDINTERPOLATION_HPP__ #define __ENVIRE_MAPS_GRIDINTERPOLATION_HPP__ #include "../GridMap.hpp" #include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Triangulation_euclidean_traits_xy_3.h> #include <CGAL/Delaunay_triangulation_2.h> namespace envire { ...
<commit_before>#ifndef GRAPH_HPP #define GRAPH_HPP #include <iostream> #include <unordered_map> #include <utility> #include <vector> #include "utility.h" template<class T> class graph_t { private: int num_nodes; public: std::unordered_map<int, std::vector<int>* > edges; std::unordered_...
<commit_before>#include "buildin.h" #include "memory.h" #include "vm.h" BUILD_FUNC_SIGN(print) { if(argc)fputs(GET_ARGV(0).toString().c_str(),stdout); for(int i=1;i<argc;i++)fprintf(stdout," %s",GET_ARGV(i).toString().c_str()); } BUILD_FUNC_SIGN(println) { GET_BUILDIN_FUNC_NAME(print)(argc,vm); putcha...
<commit_before>/** * Implementation of Chan's algorithm for convex hull * computation of a set of points in the 2d space. */ #ifndef chan_algorithm_h #define chan_algorithm_h #include "angle.hpp" #include "graham_scan.hpp" #include "jarvis_march.hpp" #include "point_concept.hpp" #include "static_assert.hpp" #incl...
<commit_before>// // Copyright 2015 Jeff Bush // // 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 ...
<commit_before>#include "twn_config.h" #include "FS.h" #include "logger.h" #include "vector.h" #include "utils.h" char config_file[] = "/config.txt"; Config::Config() : m_root(0){} Config::~Config(){} void Config::addKey(const char* key) { keys.push_back(key); } twnstd::vector<const char*> Config::getKeys() { ...
<commit_before>#include <QsLog.h> #include "dbus_fronius.h" #include "dbus_gateway_bridge.h" #include "dbus_inverter_bridge.h" #include "dbus_inverter_settings_bridge.h" #include "dbus_settings_bridge.h" #include "inverter.h" #include "inverter_gateway.h" #include "inverter_settings.h" #include "inverter_updater.h" #in...
<commit_before>/* This file is part of cpp-ethereum. cpp-ethereum 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 License, or (at your option) any later version. cpp-ethereum is dis...
<commit_before>#include "get_new_points.hxx" #include "eval_weighted.hxx" #include "poles_prefactor.hxx" #include "power_prefactor.hxx" #include "../sdp_solve.hxx" #include "../ostream_set.hxx" std::vector<El::BigFloat> compute_optimal(const std::vector<Positive_Matrix_With_Prefactor> &matrices, cons...
<commit_before>#ifdef _CARTO_ROUTING_SUPPORT #include "CartoOnlineRoutingService.h" #include "components/Exceptions.h" #include "projections/Projection.h" #include "routing/RoutingProxy.h" #include "network/HTTPClient.h" #include "utils/Log.h" #include "utils/PlatformUtils.h" #include "utils/NetworkUtils.h" #include ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: CustomAnimationPreset.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2006-11-27 09:39:18 $ * * The Contents of this f...
<commit_before>#include "Utility/Random.h" #include <random> #include <string> double Random::random_laplace(double width) noexcept { thread_local static std::mt19937_64 generator(std::random_device{}()); using ed = std::exponential_distribution<double>; thread_local static auto dist = ed{}; return (c...
<commit_before>// Copyright (c) 2022 The Orbit 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 "CaptureServiceBase/CaptureServiceBase.h" #include <absl/time/time.h> #include "CaptureServiceBase/CommonProducerCaptureEventBu...
<commit_before>#include "addressbookdialog.h" #include "ui_addressbookdialog.h" #include "addresstablemodel.h" #include "editaddressdialog.h" #include <QSortFilterProxyModel> #include <QClipboard> #include <QDebug> AddressBookDialog::AddressBookDialog(Mode mode, QWidget *parent) : QDialog(parent), ui(new Ui:...
<commit_before>/* This file is part of VoltDB. * Copyright (C) 2008-2012 VoltDB Inc. * * 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 limitatio...
<commit_before>#ifndef _MSP_UART_HPP #define _MSP_UART_HPP #include "mcu_uart.hpp" #include "msp_periph.hpp" #include "utilities/utilities.hpp" #include <stdint.h> #include <msp430.h> #include "msp_sys.hpp" #include "msp_gpio.hpp" #include "utilities/circfifo.hpp" #include <math.h> #include "msp430/msp_periph.hpp" nam...
<commit_before>// Copyright (c) 2014-2018 The Dash Core developers // Copyright (c) 2014-2018 The Machinecoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <activemasternode.h> #include <masternode.h>...
<commit_before>/// /// @file FactorTable.hpp /// @brief The FactorTable class is used to save memory. It combines /// the lpf[n] (least prime factor) and mu[n] (Möbius function) /// lookup tables into a single factors_[n] table which /// furthermore only contains entries for numbers which are /// ...
<commit_before>/* This file is part of VROOM. Copyright (c) 2015-2018, Julien Coupey. All rights reserved (see LICENSE). */ #include "./input_parser.h" // Helper to get optional array of coordinates. inline coords_t parse_coordinates(const rapidjson::Value& object, const char* key...
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2015 Couchbase, 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 a...
<commit_before>/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *******************************...
<commit_before>#include "rust_box.h" #include "rust_gc.h" #include "rust_internal.h" #include "rust_unwind.h" #include "rust_upcall.h" #include <stdint.h> // Upcalls. #ifdef __i386__ void check_stack(rust_task *task) { void *esp; asm volatile("movl %%esp,%0" : "=r" (esp)); if (esp < task->stk->data) ...
<commit_before>#ifndef JSON_INTERNAL_HH #define JSON_INTERNAL_HH #include "nlohmann/json.hpp" #include "package.hh" namespace aur { // NB: We only really need the Package overload of from_json here. All known // overloads of from_json are listed anyways for consistency. void from_json(const nlohmann::json& j, Packa...
<commit_before>// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2015 Intel Corporation. All Rights Reserved. #include <functional> #include "source.h" #include "sync.h" #include "proc/synthetic-stream.h" #include "proc/syncer-processing-block.h" namespace librealsense { syncer_process_unit...
<commit_before>#include <iostream> #include <cstdlib> #include <cstdio> #define MAX 10000 using namespace std; int W, N, X, Y, counter, temp, V[MAX][MAX], wt[MAX], val[MAX], arr[MAX]; bool keep[MAX][MAX]; int main() { //cout << "Enter The Number Of Items And Max Weight Of Knapsack cin >> N >> W; ...
<commit_before>/********************************************************************* * * Software License Agreement (BSD License) * * Copyright (c) 2012, Worcester Polytechnic Institute * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitt...
<commit_before>/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by ap...
<commit_before>/* * Copyright (C) 2015 Dan Leinir Turthra Jensen <admin@leinir.dk> * * 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 the License, or (at your...
<commit_before>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <atomic> #include <mutex> #include <condition_variable> #include <thread> #include <vespa/vespalib/util/time.h> #ifdef __linux__ #include <linux/futex.h> #include <sys/syscall.h> #endif //l...
<commit_before>/*************************************************************************/ /* Copyright (c) 2012 Linas Vepstas <linasvepstas@gmail.com> */ /* All rights reserved */ /* */ /...
<commit_before>#include <memory> #include <algorithm> #include <stdexcept> #include <system_error> #include <random> #include <realm/util/features.h> #include <realm/util/assert.hpp> #include <realm/util/basic_system_errors.hpp> #include <realm/impl/simulated_failure.hpp> #if REALM_PLATFORM_APPLE # define USE_PTHREA...
<commit_before>#pragma once #include <memory> #include <vector> #include <boost/thread/tss.hpp> #include "blackhole/attribute.hpp" #include "blackhole/detail/config/atomic.hpp" #include "blackhole/detail/config/noncopyable.hpp" #include "blackhole/detail/config/nullptr.hpp" #include "blackhole/detail/util/unique.hpp...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// Reaper /// /// Copyright (c) 2015-2020 Thibault Schueller /// This file is distributed under the MIT License //////////////////////////////////////////////////////////////////////////////// #include "RenderDoc.h" #if d...
<commit_before>/* Copyright (c) 2014, Project OSRM contributors 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 condi...
<commit_before>/*++ Copyright (c) 2011 Microsoft Corporation Module Name: sat_clause.cpp Abstract: Clauses Author: Leonardo de Moura (leonardo) 2011-05-21. Revision History: --*/ #include<memory.h> #include"sat_clause.h" #include"z3_exception.h" #include"trace.h" namespace sat { clause::clause...
<commit_before>#pragma once #include <pthread.h> class zl_mutex_impl { public: zl_mutex_impl(); ~zl_mutex_impl(); bool try_lock(); void lock(); void unlock(); private: pthread_mutex_t mx_; }; <commit_msg>* z_platform 实现linux平台下的mutex(安卓环境测试通过)<commit_after>#pragma once #include <pthread.h> c...
<commit_before>// Copyright 2010-2013 RethinkDB, all rights reserved. #include "serializer/log/extent_manager.hpp" #include "arch/arch.hpp" #include "logger.hpp" #include "perfmon/perfmon.hpp" #include "serializer/log/log_serializer.hpp" struct extent_info_t { public: enum state_t { state_unreserved, ...
<commit_before>#include <fcntl.h> #include <unistd.h> #include "teefd.h" struct teefd_obj { struct pz pzh; int fd; void *coonext; }; static writerfunc write_teefd; static closefunc free_teefd; void *make_teefd(const char *fn, void *coo) { teefd_obj *r = new teefd_obj; r->pzh.wf = write_teefd; ...
<commit_before>/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkData.h" #include "SkEndian.h" #include "SkSFNTHeader.h" #include "SkStream.h" #include "SkOTTable_head.h" #include "SkOTTable_name.h" #include "SkOT...
<commit_before>#define OVERRIDE_MATRIX_MULT true #include <thread> #include <future> #include "../lib/matrix.hpp" #include "../lib/pool.hpp" #include "../lib/image.hpp" #include "../lib/promise-polyfill.hpp" #include "../lib/queue.hpp" /* 1a */ matrix operator*(const matrix &x, const matrix &y) { if (x.cols != y.ro...
<commit_before>#ifndef ECL_COMMAND_HPP #define ECL_COMMAND_HPP #include <cstddef> #include <cstdint> #include <cstring> #include <array> #include "singleton.hpp" #ifndef RECEIVER_CAPACITY #define RECEIVER_CAPACITY 32 #endif #ifndef DEFAULT_INDENT_INCREMENT #define DEFAULT_INDENT_INCREMENT 4 #endif namespace ecl {...
<commit_before>// Copyright 2010-2013 RethinkDB, all rights reserved. #include "serializer/log/extent_manager.hpp" #include "arch/arch.hpp" #include "logger.hpp" #include "perfmon/perfmon.hpp" #include "serializer/log/log_serializer.hpp" struct extent_info_t { public: enum state_t { state_unreserved, ...
<commit_before>// Sh: A GPU metaprogramming language. // // Copyright 2003-2006 Serious Hack Inc. // // 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 the Licen...
<commit_before>#define OVERRIDE_MATRIX_MULT true #include "../lib/matrix.hpp" #include "../lib/pool.hpp" /* 1a */ matrix operator*(const matrix &x, const matrix &y) { if (x.cols != y.rows) { throw std::invalid_argument("Invalid arguments"); } matrix z; z.create(x.rows, y.cols); parallel_for(0u, x.rows...
<commit_before>/* * eos - A 3D Morphable Model fitting library written in modern C++11/14. * * File: include/eos/pca/pca.hpp * * Copyright 2017 Patrik Huber * * 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 ...
<commit_before>/* * * Author: Jeffrey Leung * Last edited: 2016-03-24 * * This C++ header file contains the definition of the exception logger * class Exceptional and its methods, as well as functions which can be * used to log exceptions with. * */ #pragma once #include <execinfo.h> #include <cstring> #inc...
<commit_before>#pragma once #include <gfx/shape2d.hpp> #include <gfx/shape3d.hpp> namespace gfx { template<typename D> struct shape_properties { draw_mode mode; D dimensions; }; class shape_factory { public: template<typename ...Args> auto make_triangle(triangle_properties const& properties, Args &&... args)...
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __ * / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\ * / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / / * / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / / * / /_// /\ / /_// / ...
<commit_before>#include "readOFF.h" #include "list_to_matrix.h" #include <cstdio> template <typename Scalar, typename Index> IGL_INLINE bool igl::readOFF( const std::string off_file_name, std::vector<std::vector<Scalar > > & V, std::vector<std::vector<Index > > & F, std::vector<std::vector<Scalar > > & N) { ...
<commit_before>// Copyright (c) 2013, German Neuroinformatics Node (G-Node) // Copyright (c) 2013, Christian Kellner <kellner@bio.lmu.de> // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE ...
<commit_before>// safe_switch.hpp: Put the brakes on "break;" breakage. // Copyright 2015 by David Krauss. // This source is released under the MIT license, http://opensource.org/licenses/MIT #ifndef INCLUDED_SSTAR_SAFE_SWITCH_HPP #define INCLUDED_SSTAR_SAFE_SWITCH_HPP #include <initializer_list> #include <utility> ...
<commit_before>#include "include/vortex.hpp" #include "include/app.hpp" #include "common_def_priv.hpp" #include <memory> namespace vtx { struct PRIVATE_STRUCT_NAME(Vortex) { std::unique_ptr<Application> m_application; }; void Vortex::setApplication(Application &&app) { m_private->m_application.reset(&app);...
<commit_before>#include <libmemcached/memcached.h> #include <string> #include <vector> class Memcached { public: Memcached() : memc(), result() { memcached_create(&memc); } Memcached(memcached_st *clone) : memc(), result() { memcached_clone(&memc, clone); } ...
<commit_before>/* * Summary: C++ interface for memcached server * * Copy: See Copyright for the status of this software. * * Authors: Padraig O'Sullivan, Patrick Galbraith */ #ifndef LIBMEMCACHEDPP_H #define LIBMEMCACHEDPP_H #include <libmemcached/memcached.h> #include <string.h> #include <string> #include <v...
<commit_before>/* * GameDelta.h * * Created on: 30 May 2014 * Author: Marco */ #ifndef GAMEDELTA_H_ #define GAMEDELTA_H_ #include "RenderObject.hpp" #include "Position.hpp" #include "Entity.hpp" #include "Health.hpp" class Behaviour; #include <map> #include <vector> #include <memory> using std::shared_p...
<commit_before>#include <bits/stdc++.h> using namespace std; #define x first #define y second #define SZ(x) ((int)((x).size())) #define PB(x) push_back(x); typedef long long LL; typedef pair<int, int> PII; typedef pair<PII, int> PII2; typedef vector<int> VI; typedef vector<VI> VVI; int main() { return...
<commit_before>/*------------------------------------------------------------------------ * (The MIT License) * * Copyright (c) 2008-2011 Rhomobile, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * i...
<commit_before>/* * JPetWriter.cpp * * * Created by Karol Stola on 13-09-02. * Copyright 2013 __MyCompanyName__. All rights reserved. * */ #include "JPetWriter.h" //TFile* JPetWriter::fFile = NULL; JPetWriter::JPetWriter(const char* file_name) : fFileName(file_name, "UPDATE") // string z nazwą pliku ...
<commit_before>/****************************************************************/ /* DO NOT MODIFY THIS HEADER */ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* (c) 2010 Battelle Energy...
<commit_before>/* OpenLieroX INI reader 18-01-2008, by Albert Zeyer code under LGPL */ #include "IniReader.h" #include "FindFile.h" #include "Debug.h" IniReader::KeywordList IniReader::DefaultKeywords; IniReader::IniReader(const std::string& filename, KeywordList& keywords) : m_filename(filename), m_keywo...
<commit_before>// This file is distributed under the MIT license. // See the LICENSE file for details. #include <cstdint> #include <cstring> // for memset #include <fstream> #include <iostream> #include <ostream> #include <visionaray/swizzle.h> #include "tga_image.h" namespace visionaray { //----------------------...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2009 Torus Knot Software Ltd Permission is hereby granted, free of charge, to ...
<commit_before>#define CATCH_CONFIG_MAIN #include "catch.hpp" #include <mapnik/font_engine_freetype.hpp> #include <mapnik/util/fs.hpp> #include <mapnik/map.hpp> #include <mapnik/load_map.hpp> #include <mapnik/debug.hpp> #include <iostream> #include <vector> #include <algorithm> TEST_CASE("font") { SECTION("registra...
<commit_before>#include "SLAImportJob.hpp" #include "libslic3r/Format/SL1.hpp" #include "slic3r/GUI/GUI.hpp" #include "slic3r/GUI/GUI_App.hpp" #include "slic3r/GUI/Plater.hpp" #include "slic3r/GUI/GUI_ObjectList.hpp" #include "libslic3r/Model.hpp" #include "libslic3r/PresetBundle.hpp" #include <wx/dialog.h> #includ...
<commit_before>/** * Copyright (C) 2012 by INdT * * 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 2 * of the License, or (at your option) any later version. * * Thi...
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved. #ifndef CONCURRENCY_PMAP_HPP_ #define CONCURRENCY_PMAP_HPP_ #include "arch/runtime/coroutines.hpp" #include "concurrency/cond_var.hpp" #include "concurrency/semaphore.hpp" template <class callable_t, class value_t> struct pmap_runner_one_arg_t { ...
<commit_before>/** * Copyright (c) 2011-2015 libbitcoin developers (see AUTHORS) * * This file is part of libbitcoin. * * libbitcoin is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License with * additional permissions to the one published by the Free...
<commit_before>#include <iostream> #include <fstream> //#include <codecvt> //#include <cstddef> #include <locale> #include <string> #include <iomanip> #include <ctime> #include "cp-neural.h" using std::wcout; using std::wstring; using std::cerr; using std::vector; class Text { private: bool isinit=false; boo...
<commit_before>/* * DynamicHyperbolicGenerator.cpp * * Created on: 29.07.2014 * Author: moritzl */ #include <cmath> #include "DynamicHyperbolicGenerator.h" #include "HyperbolicGenerator.h" #include "../geometric/HyperbolicSpace.h" using std::vector; namespace NetworKit { DynamicHyperbolicGenerator::Dynam...
<commit_before>#include <iostream> #include <fstream> #include <codecvt> //#include <cstddef> #include <locale> #include <clocale> #include <string> #include <iomanip> #include <ctime> #include "cp-neural.h" using std::wcout; using std::wstring; using std::cerr; using std::vector; class Text { private: bool isin...
<commit_before> #include "animatedSprite.hpp" AnimatedSprite::AnimatedSprite() : sprite(), textureLoaded(false), currentState(0), currentFrame(0), reversed(false), rectDirty(true), type(CYCLE) { } AnimatedSprite::AnimatedSprite(const sf::Texture& texture) : sprite(texture), textureLoaded(true), currentState(0), curre...
<commit_before>#ifndef PLATFORM_IRQ_MANAGER_HPP #define PLATFORM_IRQ_MANAGER_HPP #include <stm32f4xx.h> #include <core_cm4.h> #include <functional> using IRQn_t = IRQn_Type; // Manages irqs // TODO: singleton obviously class IRQ_manager { public: // TODO: setup VTOR? IRQ_manager() = delete; ~IRQ_manager...
<commit_before>#include <boost/assign/list_of.hpp> #include <libport/lexical-cast.hh> #include <boost/preprocessor.hpp> #include <libport/containers.hh> #include <libport/foreach.hh> #include <libport/program-name.hh> #include <libport/safe-container.hh> #include <libport/time.hh> #include <libport/unit-test.hh> usin...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the QtDeclarative module of the Qt Toolkit. ** ** $QT_...
<commit_before>// // NSolver::refine_grid.cpp // // Created by Lei Qiao on 15/8/9. // A work based on deal.II tutorial step-33. // #include <NSolver/solver/NSolver.h> namespace NSFEMSolver { using namespace dealii; // @sect4{NSolver::refine_grid} // Here, we use the refinement indicators computed before a...
<commit_before>/* * Using Erasthostenes' sieve, print the first 2,000,000 numbers * darkturo 2014 */ #include <iostream> #include <fstream> #include <bitset> #include <ctime> #include <limits> #include <boost/spirit/include/karma.hpp> #define TIMEDIFF(start, stop) 1000.0 * (stop - start)/CLOCKS_PER_SEC #define BUFF...
<commit_before>/* Implementation of the Compiler class. */ #include <cctype> //character comparison functions #include <stdexcept> #include "compiler.hh" namespace ds_compiler { const size_t Compiler::NUM_REGISTERS = 8; const char Compiler::ERR_CHAR = '\0'; const std::unordered_set<char> ADD_OPS({'+'...
<commit_before>/*! \file stack_trace.cpp \brief Stack trace snapshot provider implementation \author Ivan Shynkarenka \date 09.02.2016 \copyright MIT License */ #include "system/stack_trace.h" #include "threads/critical_section.h" #include "utility/countof.h" #include <cstring> #include <iomanip>...
<commit_before>/// /// @file cmdoptions.hpp /// /// Copyright (C) 2015 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #ifndef PRIMECOUNT_CMDOPTIONS_HPP #define PRIMECOUNT_CMDOPTIONS_HPP #include <primecount.hpp> #i...
<commit_before>#include <vector> #include <opencv2/opencv.hpp> #include <fstream> #include <string> #include <regex> #include <stdio.h> /* printf, scanf, puts, NULL */ #include <stdlib.h> /* srand, rand */ #include <time.h> /* time */ #include "img_hash/AverageHash.h" #include "img_hash/Bloc...
<commit_before>#include "gum/Statistics.h" #include "gum/StatFPS.h" #include "gum/StatTag.h" #include "gum/GUM_GTxt.h" #include <logger.h> #include <glp_loop.h> #include <ps_3d.h> #include <sprite2/pre_defined.h> #include S2_MAT_HEADER #include <sprite2/StatDrawCall.h> #include <sprite2/StatPingPong.h> #include <sprit...
<commit_before>#include <ros/console.h> #include <string> #include <teraranger_array/RangeArray.h> #include <teraranger_array/teraranger_evo.h> #include <teraranger_array/helper_lib.h> namespace teraranger_array { TerarangerHubEvo::TerarangerHubEvo() { // Get parameters and namespace ros::NodeHandle private_nod...
<commit_before>// Copyright (c) 2013-2019 The Syscoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <validation.h> #include <services/asset.h> #include <services/assetconsensus.h> #include <consensus/...
<commit_before>#include <ros/console.h> #include <string> #include <teraranger_hub/RangeArray.h> #include <teraranger_hub/teraranger_evo.h> #include <teraranger_hub/helper_lib.h> namespace teraranger_hub { TerarangerHubEvo::TerarangerHubEvo() { // Get parameters and namespace ros::NodeHandle private_node_han...
<commit_before>#ifndef THIS_HASH_MAP #define THIS_HASH_MAP parallel_flat_hash_map #define THIS_TEST_NAME ParallelFlatHashMap #endif #include "flat_hash_map_test.cc" namespace phmap { namespace priv { namespace { TEST(THIS_TEST_NAME, ThreadSafeContains) { // We can't test mutable keys, or non-copyable ke...
<commit_before>// Copyright (c) 2014 Miguel Freitas // TODO: write description for the soft checkpoint // More info: // https://groups.google.com/forum/#!topic/twister-dev/tH3HlVQ_wmo #include <boost/assign/list_of.hpp> // for 'map_list_of()' #include <boost/assign.hpp> #include <boost/foreach.hpp> #include "softchec...
<commit_before>#include <QDir> #include <QImage> #include <QQueue> #include <QHash> #include <QTimer> #include "seafile-applet.h" #include "configurator.h" #include "account-mgr.h" #include "api/requests.h" #include "utils/paint-utils.h" #include "utils/utils.h" #include "avatar-service.h" namespace { const int kCh...
<commit_before>/* * Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license: http://github.com/azerothcore/azerothcore-wotlk/LICENSE-GPL2 * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/> */ /* * Ordere...
<commit_before>#include "kernel.h" #include "raster.h" #include "linerasterizer.h" #include "pixeliterator.h" using namespace Ilwis; bool PixelIterator::isValid() const { return _isValid; } PixelIterator::PixelIterator() : _localOffset(0), _currentBlock(0), _step(0), _flow(fXYZ),_isValid(false),_positionid(0) {...
<commit_before>/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2014 Ben Vanik. All rights reserved. ...
<commit_before>// // renderer.cpp // emptyExample // // Created by Mark van de Korput on 16-04-19. // // #include "ofMain.h" #include "renderer.hpp" #include "xml_configs.hpp" using namespace of2030; using namespace of2030::effects; SINGLETON_CLASS_IMPLEMENTATION_CODE(Renderer) Renderer::Renderer() : fbo(NULL), ...
<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>#include <ros/console.h> #include <string> #include <teraranger_array/RangeArray.h> #include <teraranger_array/teraranger_evo.h> #include <teraranger_array/helper_lib.h> namespace teraranger_array { TerarangerHubEvo::TerarangerHubEvo() { // Get parameters and namespace ros::NodeHandle private_nod...
<commit_before>#include <boost/test/unit_test.hpp> #include <boost/foreach.hpp> #include "base58.h" #include "util.h" #include "bitcoinrpc.h" using namespace std; using namespace json_spirit; BOOST_AUTO_TEST_SUITE(rpc_tests) static Array createArgs(int nRequired, const char* address1=NULL, const char* address2=NULL...
<commit_before>#include <boost/test/unit_test.hpp> #include <boost/foreach.hpp> #include "base58.h" #include "util.h" #include "json/json_spirit_reader_template.h" #include "json/json_spirit_writer_template.h" #include "json/json_spirit_utils.h" using namespace std; using namespace json_spirit; typedef Value(*rpcfn_...
<commit_before>#include <yuni/yuni.h> #include <yuni/string.h> #include <yuni/core/system/main.h> #include <yuni/io/file.h> #include <nany/nany.h> #include <memory> #include <iostream> #include <cassert> #include <limits.h> using namespace Yuni; static const char* argv0 = ""; struct Options { //! Verbose mode bo...
<commit_before>// Copyright (c) 2012-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "key.h" #include "base58.h" #include "script/script.h" #include "uint256.h" #include "util.h" #inclu...
<commit_before>/* * Copyright (C) 2008-2013 Communi authors * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This p...
<commit_before>/* * Copyright 2006-2008 The FLWOR Foundation. * * 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...