text
stringlengths
54
60.6k
<commit_before>// // Copyright 2012 Francisco Jerez // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify,...
<commit_before>#include <v8.h> #include <node.h> #include <node_buffer.h> #include <openssl/rand.h> #include <openssl/err.h> using namespace v8; using namespace node; static const char *hexencode = "0123456789abcdef"; static const int hexdecode[] = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-2,-2,-1,-1,-2,-1,-1 ,-1,-1,-1,-1,-1,...
<commit_before>#include "bitmap.h" #include "except.h" Bitmap::Bitmap(std::string filepath) : _filepath(filepath) , _data(nullptr) , _width(0) , _height(0) { FILE * fptr = fopen(_filepath.c_str(), "rb"); if (fptr == nullptr) throw FileError(); uint8_t bmp_header[54]; fre...
<commit_before>#include "ioHandler.h" #include <exception> void writer_helper(ReadBase *r, std::shared_ptr<OutputWriter> pe, std::shared_ptr<OutputWriter> se, bool stranded, Counter &c) { PairedEndRead *per = dynamic_cast<PairedEndRead*>(r); if (per) { if (!(per->non_const_read_one()).getDiscard() && !...
<commit_before>/******************************************************************************* * * MIT License * * Copyright (c) 2017 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/include/usr/secureboot/secure_reasoncodes.H $ ...
<commit_before>#pragma XOD evaluate_on_pin disable #pragma XOD evaluate_on_pin enable input_UPD node { bool received = false; TimeMs startTime = 0; void evaluate(Context ctx) { auto inet = getValue<input_INET>(ctx); emitValue<output_INETU0027>(ctx, inet); auto t = getValue<input_T...
<commit_before>/******************************************************************************* * Copyright 2009-2015 Juan Francisco Crespo Galán * * 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 ...
<commit_before>#ifndef GARBAGECOLLECTOR_HPP_ #define GARBAGECOLLECTOR_HPP_ #include "CL/OpenCL.hpp" #include <set> namespace oul { class GarbageCollector { public: void addMemoryObject(cl::Memory *); void deleteMemoryObject(cl::Memory *); void deleteAllMemoryObjects(); private: ...
<commit_before>#include <sstream> #include <istream> #include <iostream> #include <algorithm> #include <cstring> #include "builtin.hh" #include "zs_error.hh" #include "number.hh" #include "procedure.hh" #include "lisp_ptr.hh" #include "eval.hh" #include "builtin_util.hh" #include "reader.hh" #include "printer.hh" #inc...
<commit_before>#include "./camera.h" #include <Eigen/Geometry> #include <math.h> Camera::Camera() : position(0, 0, -1.0f), direction(0, 0, 1), up(0, 1, 0), radius(4.0f), azimuth(-M_PI / 2.0f), declination(0) { projection = createProjection(M_PI / 2.0f, 16.0f / 9.0f, 0.1f, 100.0f); } Camera::~Camera() { } Eig...
<commit_before>// Authors: see AUTHORS.md at project root. // CopyPolicy: released under the terms of the LGPLv2.1, see LICENSE at project root. // URL: https://github.com/asrob-uc3m/robotDevastation #include "YarpNetworkManager.hpp" #include <sstream> #include <cstring> // strcmp() #include <yarp/os/Network.h> #in...
<commit_before>/* * Copyright © 2010 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, mod...
<commit_before>// The MIT License (MIT) // Copyright (c) 2012-2014 Danny Y., Rapptz // 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>/* * This file is part of the CitizenFX project - http://citizen.re/ * * See LICENSE and MENTIONS in the root of the source tree for information * regarding licensing. */ #include "Hooking.Patterns.h" #define WIN32_LEAN_AND_MEAN #define NOMINMAX #include <windows.h> #include <algorithm> #include "...
<commit_before>#include "analyser_hls.h" #include <cstdio> #include <cstdlib> #include <iostream> #include <mist/config.h> #include <mist/defines.h> #include <mist/http_parser.h> #include <mist/timing.h> #include <string.h> #include <sys/sysinfo.h> void AnalyserHLS::init(Util::Config &conf){ Analyser::init(conf); ...
<commit_before>#pragma once // Project specific #include <Doremi/Core/Include/EntityComponent/Constants.hpp> using namespace std; // where we store the actual components/data template <class T> class StorageShelf { public: static StorageShelf<T>* GetInstance(); T* mItems; T* GetPointerToArray() { return ...
<commit_before>#include <occa/core/device.hpp> #include <occa/io/output.hpp> #include <occa/modes.hpp> namespace occa { strToModeMap& modeMap() { static strToModeMap modeMap_; return modeMap_; } void registerMode(mode_v* mode) { modeMap()[mode->name()] = mode; } bool modeIsEnabled(const std::st...
<commit_before>/*----------------------------------------------------------------------------- This source file is part of Hopsan NG Copyright (c) 2011 Mikael Axin, Robert Braun, Alessandro Dell'Amico, Björn Eriksson, Peter Nordin, Karl Pettersson, Petter Krus, Ingo Staack This file is provided "as is", w...
<commit_before>/* * Copyright (c) 2011 Google * 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 conditi...
<commit_before>/* * Copyright 2017 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 * * Unless required by applicable l...
<commit_before>#include <iostream> #include <complex> #include <cmath> #include "../sequence.h" #include "../parallel.h" #include "../run.h" #include <thread> #include <vector> #include <gtest/gtest.h> class SequenceTest : testing::Test { }; TEST(SequenceTest, Test1) { struct control_flow { bool code; operator...
<commit_before>#include "core/filesystem.h" #include "catch.hpp" #define GTEST(X) TEST(filesystem, X) class AlwaysExist : public FileSystemReadRoot { public: std::shared_ptr<MemoryChunk> ReadFile(const std::string& path) override { // alloc some garbage return MemoryChunk::Alloc(32); } std::string...
<commit_before>/* The MIT License (MIT) Copyright (c) [2016] [BTC.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 limitation the rights to use, c...
<commit_before>#include "timing/timing.hpp" #include "graphics/displayimage.hpp" #include "tree.hpp" #include <sys/stat.h> #include <queue> #include <string.h> int main(int argc, char **argv) { cairo_surface_t *surface; cairo_t *context; int x, y, i, width, height, depth, screen, pressed_key, p...
<commit_before>#include <iostream> #include <math.h> using namespace std; int main(int argc, char* argv[]) { if (argc != 2) { cout << "This program requires 1 integer input!" << endl; exit(0); } long totalSum = 0; int inputtedNum = atoi(argv[1]); for (int i = 1; i <= inputtedNum; i++) { long val = (long...
<commit_before>// This file is a part of the OpenSurgSim project. // Copyright 2013, SimQuest Solutions 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.or...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkRawImageIOTest3.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See ITKCo...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkRawImageIOTest5.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. See I...
<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-2013 Torus Knot Software Ltd Permission is hereby granted, free of charge, to ...
<commit_before>#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <asio.hpp> #include <ctime> #include <cstring> #include <vector> #include <functional> #include "common.hxx" #include "auth.hxx" #include "service.hxx" #include "realm.hxx" #include "clientelle.hxx" #include "client.hxx" #include "packets.hxx" ...
<commit_before>void AliAnalysisTaskSEVertexingHFTest() { // // Test macro for the AliAnalysisTaskSE for heavy-flavour vertexing // A.Dainese, andrea.dainese@lnl.infn.it // Bool_t inputAOD=kTRUE; // otherwise, ESD Bool_t createAOD=kFALSE; // kTRUE: create AOD and use it as input to vertexing ...
<commit_before>/* * File: pping.cpp * Copyright (C) 2004 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS) */ #include "sedna.h" #include "pping.h" #include "d_printf.h" #ifdef _WIN32 #define PPING_STACK_SIZE 10240 #else #define PPING_STACK_SIZE 102400 #endif #define PPING_KE...
<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>#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ bbox.maxX = std::numeric_limits<float>::min(); bbox.maxY = std::numeric_limits<float>::min(); bbox.minX = std::numeric_limits<float>::max(); bbox.minY = std::numeric_limits<float...
<commit_before>#include "order.h" void Order::init(vector<Task> tasks, vector<Maitenance> maitenance_v){ int machine1_ready_time = 10000, first_job_rt_pos = 0, iter; if (tasks[0].get_ready_t() == 0) {machine1_ready_time = 0;} else{ //finding smallest ready_time for (unsigned int i = 0; i < tasks.size(); i++...
<commit_before>/* Calf DSP Library utility application. * DSSI GUI application. * Copyright (C) 2007 Krzysztof Foltman * * 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 * ve...
<commit_before>/* Calf DSP Library utility application. * DSSI GUI application. * Copyright (C) 2007 Krzysztof Foltman * * 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 * ve...
<commit_before>// -*- coding: us-ascii-unix -*- // Copyright 2012 Lukas Kemmer // // 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 // // Unles...
<commit_before>#include "console.h" #include "engine.h" #include "pathos/render/render_overlay.h" #include "pathos/overlay/display_object.h" #include "pathos/overlay/rectangle.h" #include "pathos/overlay/label.h" #include "pathos/overlay/brush.h" #include "pathos/util/string_conversion.h" #include "pathos/util/math_lib...
<commit_before>//===-- interception_linux.cc -----------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "include/http_server.h" #include <vector> #include <string> #include <iostream> #include <fstream> #include <cstdlib> #include <stdlib.h> #include <unistd.h> #include <exception> #include <signal.h> #include <evhttp.h> void process_get_request(struct evhttp_request *req, void *arg) { struct ev...
<commit_before>#include "banklistsqlmodel.h" #include "townlistsqlmodel.h" #include "cashpointsqlmodel.h" #include "serverapi.h" #include "icoimageprovider.h" #include "locationservice.h" #include <QApplication> #include <QQmlApplicationEngine> #include <QQmlContext> #include <QSqlDatabase> #include <QSqlQuery> #inclu...
<commit_before>//=-- lsan_thread.cc ------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2015. // Distributed under the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //======================================================================= ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the QtGui module of the Qt Toolkit. ** ** $QT_BEGIN_LI...
<commit_before>#include <cassert> #include <stdexcept> #include "pn/net.hh" #include "pn/place.hh" #include "pn/transition.hh" namespace pnmc { namespace pn { /*------------------------------------------------------------------------------------------------*/ /// @brief Used by Boost.MultiIndex. struct add_post_pla...
<commit_before>#include "pn/net.hh" #include "pn/place.hh" #include "pn/transition.hh" namespace pnmc { namespace pn { /*------------------------------------------------------------------------------------------------*/ /// @brief Used by Boost.MultiIndex. struct add_post_place_to_transition { const unsigned int n...
<commit_before>#include <iostream> #include "prefs.h" #include "logging.h" #include "viewer_window.h" #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> #include <boost/foreach.hpp> bool auto_reload_plugins; bool impersonate_dre = false; bool logging_enabled = true; bool getAut...
<commit_before>/* Copyright (c) 2014 Noel R. Cower Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
<commit_before>/* * Copyright (c) 2016, The Bifrost Authors. All rights reserved. * Copyright (c) 2016, 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: * * Redistributi...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: TestAxisActor3D.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>/* * Copyright (C) 2011 Google Inc. 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...
<commit_before>// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the...
<commit_before>// Copyright (c) 2013, German Neuroinformatics Node (G-Node) // // 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 file in the root of the Project. #include <nix/util/util.hpp...
<commit_before>/************************************************* * Karatsuba Multiplication Source File * * (C) 1999-2007 The Botan Project * *************************************************/ #include <botan/mp_core.h> #include <botan/mem_ops.h> namespace Botan { namespace { /************...
<commit_before>// STL #include <iostream> #include <string> // CppUnit #include <extracppunit/CppUnitCore.hpp> // StdAir #include <stdair/STDAIR_Types.hpp> #include <stdair/bom/BomRootKey.hpp> #include <stdair/bom/InventoryKey.hpp> #include <stdair/bom/FlightDateKey.hpp> #include <stdair/bom/SegmentDateKey.hpp> #includ...
<commit_before>// Source : https://leetcode.com/problems/substring-with-concatenation-of-all-words/ // Author : Siyuan Xu // Date : 2015-08-05 /********************************************************************************** * * You are given a string, S, and a list of words, L, that are all of the same length. ...
<commit_before>#include <cpp-pcp-client/connector/client_metadata.hpp> #include <cpp-pcp-client/connector/errors.hpp> #include <leatherman/util/scope_exit.hpp> #define LEATHERMAN_LOGGING_NAMESPACE CPP_PCP_CLIENT_LOGGING_PREFIX".client_metadata" #include <leatherman/logging/logging.hpp> #include <openssl/x509v3.h> #...
<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 examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENS...
<commit_before>/* * ------------- * Dark Oberon * ------------- * * An advanced strategy game. * * Copyright (C) 2002 - 2005 Valeria Sventova, Jiri Krejsa, Peter Knut, * Martin Kosalko, Marian Cerny, Michal Kral * * This program is free software; you can redistribute it and/or modi...
<commit_before>#include <glib.h> #include <qpid/messaging/Message.h> #include <qpid/messaging/Receiver.h> #include <qpid/messaging/Sender.h> #include <qpid/messaging/Session.h> #include <qpid/messaging/Connection.h> #include <gqpidmessage.h> #include <iostream> using namespace qpid::messaging; struct _GQpidMessage { ...
<commit_before>#include "kwm.h" CFMachPortRef EventTap; kwm_code KWMCode; std::string KwmFilePath; std::string HotkeySOFullFilePath; uint32_t MaxDisplayCount = 5; uint32_t ActiveDisplaysCount; CGDirectDisplayID ActiveDisplays[5]; screen_info *Screen; int CurrentSpace = 0; int PrevSpace = -1; std::vector<screen_inf...
<commit_before>/* * Copyright (C) 2018-2019 Nagisa Sekiguchi * * 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...
<commit_before>/* This file is part of Kontact. Copyright (c) 2003 Tobias Koenig <tokoe@kde.org> Copyright (c) 2005-2006,2008 Allen Winter <winter@kde.org> Copyright (c) 2008 Thomas McGuire <mcguire@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU...
<commit_before>#include <iostream> #include "porting.hpp" #include "config.hpp" #include "endian.hpp" #include "engine.hpp" #include "parser.hpp" #include "hamsterdb.hpp" #include "berkeleydb.hpp" #include "misc.hpp" engine::engine(config *c) : m_config(c), m_parser(0), m_opcount(0) { m_db[0]=new hamsterdb(m_c...
<commit_before>/* * Copyright (c) 2011, Dylan Sarber <dwsarber@gmail.com> * * See LICENSE for licensing information. */ #include "engine.h" #include "inputmanager.h" #include "renderer.h" #include "scriptmanager.h" #include "logog/logog.hpp" /* Constructors & Destructor -------------------------------------------...
<commit_before>/** * @mainpage COSSB(Component-based Open & Simple Service Broker) * @details COSSB�뒗 �궗臾쇱씤�꽣�꽬(IoT) �쑀臾댁꽑 �꽕�듃�썙�겕 �솚寃쎌뿉�꽌 留먮떒 �옣移섍컙 �꽌鍮꾩뒪 �긽�샇�슫�슜�꽦(Inter-operability)怨� �솗�옣�꽦�쓣 吏��썝 �븯湲곗쐞�븳 �냼�봽�듃�썾�뼱 �봽�젅�엫�썙�겕�엯�땲�떎. */ /** * @file engine.cpp * @brief COSSB Engine * @author Byu...
<commit_before>/* Copyright (c) 2011 Neevarp Yhtroom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, me...
<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 // "Lic...
<commit_before>//===-- MipsInstPrinter.cpp - Convert Mips MCInst to assembly syntax ------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//===--------------------- R600MergeVectorRegisters.cpp -------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>////////////////////////////////////////////////////////////////////////// // // SneezyMUD - All rights reserved, SneezyMUD Coding Team // ////////////////////////////////////////////////////////////////////////// #include "stdsneezy.h" #include "combat.h" #include "obj_base_clothing.h" static int gra...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>/* * Copyright (C) 2008, 2009 Nokia Corporation. * * Contact: Marius Vollmer <marius.vollmer@nokia.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation....
<commit_before>// ------------------------------------------------------------------------ // audioio-jack.cpp: Interface to JACK audio framework // Copyright (C) 2001-2003,2008,2009 Kai Vehmanen // // Attributes: // eca-style-version: 3 (see Ecasound Programmer's Guide) // // This program is free software; you can...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: wrap_itkImageToImageFilter.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved....
<commit_before>#include "output.hxx" #include "thread.hxx" using namespace std; ResourceMutex<ostream> coutMutex(cout); ResourceMutex<ostream> cerrMutex(cerr); void out(ResourceMutex<ostream>& outRes, const string& msg) { ResourceLocker<ostream> locker(outRes); locker.get() << msg; } void out(const string& ...
<commit_before>#include <cstdlib> #include <string> #include "tokenize.hpp" #include "parser.hpp" #include "context.hpp" using namespace std; namespace Vole { Parser::Parser(const char* s, Context& c) : src(s), ctx(c), tokens(std::vector<Lexeme>()), index(0) { } Value Parser::parse() { tokenize(src, to...
<commit_before>#include "parser.h" #include "controls.h" #include "containers.h" #include "adaptors.h" using namespace std; using namespace rapidxml; std::unique_ptr<INotifyPropertyChanged> Serializer::deserialize() { AttrBag bag; BindingBag bindings; auto res = deserialize(nullptr, _doc.first_node(), ba...
<commit_before>// parser.cpp #include <iostream> #include <fstream> #include "parser.h" #include "utility.h" namespace parser { using std::ifstream; using std::cout; using utility::string_to_int_vector; using utility::string_to_double_vector; using utility::string_to_string_vector; InputPa...
<commit_before>// Copyright (c) 2018-2019 The Dash Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <llmq/quorums.h> #include <llmq/quorums_utils.h> #include <chainparams.h> #include <random.h> #include ...
<commit_before>// type_promotion.hpp // // Copyright (c) 2016 Piotr K. Semenov (piotr.k.semenov at gmail dot com) // Distributed under the New BSD License. (See accompanying file LICENSE) /*! \file type_promotion.hpp Provides the run-time overflow/underflow safety checks for basic arithmetics operations. *...
<commit_before>//=========================================== // Lumina-DE source code // Copyright (c) 2017-2018, Ken Moore // Available under the 3-clause BSD license // See the LICENSE file for full details //=========================================== #include "NativeWindowObject.h" #include <QQmlEngine> #includ...
<commit_before>/* * RandomConn.cpp * * Created on: Apr 27, 2009 * Author: rasmussn */ #include "RandomConn.hpp" #include <assert.h> #include <string.h> namespace PV { RandomConn::RandomConn(const char * name, HyPerCol * hc, HyPerLayer * pre, HyPerLayer * post, int channel) { this->connId = hc->nu...
<commit_before>#include "helper_methods.h" #include <iostream> #include <opencv/cv.h> #include <opencv/highgui.h> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #define MAX_THRESHOLD 255 #define MIN_THRESHOLD 0 using namespace std; using namespace cv; typedef struct { int canny_low; ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: unoviewcontainer.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: obo $ $Date: 2006-09-17 08:29:46 $ * * The Contents of this file ...
<commit_before>/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | https://www.mrpt.org/ | | ...
<commit_before>#pragma once #include <map> #include <vector> #include <unordered_set> #include "tatum/util/tatum_linear_map.hpp" #include "tatum/util/tatum_range.hpp" #include "tatum/base/ArrivalType.hpp" #include "tatum/base/DelayType.hpp" #include "tatum/TimingConstraintsFwd.hpp" #include "tatum/TimingGraphFwd.hpp...
<commit_before>//===--- CGClass.cpp - Emit LLVM Code for C++ classes ---------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include <string.h> #include "frogboy.h" #include "game.h" #include "entity.h" #include "bullet.h" #include "critter.h" #include "player.h" #include "particle.h" #include "sprite.h" #include "sprites_bitmap.h" #include "map.h" #include "camera.h" #include "door.h" #include "spawn.h" #include "text.h" #in...
<commit_before>#ifndef RPT_XMLHELPER_HXX #define RPT_XMLHELPER_HXX /************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xmlHelper.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2008-01-29 ...
<commit_before>/** * @file * @brief Implementation of detector * * @copyright MIT License */ #include <memory> #include <stdexcept> #include <string> #include <utility> #include <Math/Rotation3D.h> #include <Math/Translation3D.h> #include "Detector.hpp" #include "core/module/exceptions.h" using namespace allpi...
<commit_before>#include "LaserRecommend.h" #include "LaserModel.h" #include "LaserModelFactory.h" #include "LaserManager.h" #include <glog/logging.h> #include <boost/date_time/posix_time/posix_time.hpp> namespace sf1r { namespace laser { LaserRecommend::LaserRecommend(const LaserManager* laserManager) : laserMan...
<commit_before>#include "defs.h" #include "search.h" #include "eval.h" #include "movegen.h" #include "transptable.h" #include <string> #include <algorithm> #include <time.h> #include <iostream> Search::Search(const Board& board, int depth, int maxTime, bool logUci) { _logUci = logUci; _iterDeep(board, depth, maxTi...
<commit_before>/************************************************************************** * moon.cxx * Written by Durk Talsma. Originally started October 1997, for distribution * with the FlightGear project. Version 2 was written in August and * September 1998. This code is based upon algorithms and data kindly...
<commit_before>#include "displaywidget.h" #include "dcpdisplay.h" #include <duitheme.h> #include <duibutton.h> #include <duilinearlayout.h> #include <duilabel.h> #include <duislider.h> const QString cssDir = "/usr/share/themes/dui/duicontrolpanel/"; const int widgetWidth = 100; DisplayWidget::DisplayWidget(QGraphicsW...
<commit_before>/* * Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com> */ #pragma once #include <uavcan_stm32/build_config.hpp> #if UAVCAN_STM32_CHIBIOS # include <hal.h> #elif UAVCAN_STM32_NUTTX # include <nuttx/arch.h> # include <arch/board/board.h> # include <chip/stm32_tim.h> # include <syslog.h> #el...
<commit_before>#ifdef COSMOLOGY #include <iostream> #include <fstream> #include "cosmology.h" #include "../io.h" using namespace std; void Cosmology::Load_Scale_Outputs( struct parameters *P ) { char filename_1[100]; // create the filename to read from strcpy(filename_1, P->scale_outputs_file); chprintf( "...
<commit_before>#ifdef COSMOLOGY #include <iostream> #include <fstream> #include "cosmology.h" #include "../io.h" using namespace std; void Cosmology::Load_Scale_Outputs( struct parameters *P ) { char filename_1[100]; // create the filename to read from strcpy(filename_1, P->scale_outputs_file); chprintf( "...