text
stringlengths
54
60.6k
<commit_before>#include <libport/lexical-cast.hh> #include <ast/exps-type.hh> #include <ast/parametric-ast.hh> #include <parser/ast-factory.hh> #include <rewrite/pattern-binder.hh> namespace rewrite { using parser::ast_string; ast::rExp PatternBinder::to_binding(ast::rConstExp original) { PARAMETRIC_AST(...
<commit_before>// Copyright (c) 2008 The Chromium 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 "base/test_file_util.h" #include <windows.h> #include <vector> #include "base/file_util.h" namespace file_util { bool Evi...
<commit_before>/*************************************************************************** * rubyinterpreter.cpp * This file is part of the KDE project * copyright (C)2005 by Cyrille Berger ([email protected]) * * This program is free software; you can redistribute it and/or * modify it under the terms of the ...
<commit_before>// Copyright (c) 2008 The Chromium 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 "base/test_file_util.h" #include <windows.h> #include <vector> #include "base/file_util.h" #include "base/scoped_handle.h" ...
<commit_before>#include <QRegExp> #include <QSqlQuery> #include <QSqlRecord> #include <QSqlError> #include <QSettings> #include <QSqlField> #include "identity.h" #include "kernel.h" #include "oshelper.h" #include "connectorinterface.h" #include "mastercatalog.h" #include "ilwisobjectconnector.h" #include "catalogexplor...
<commit_before>#include <nek/utility/addressof.hpp> #include <gtest/gtest.h> TEST(addressof_test, enable_apply_address_operator_type) { int val = 0; int* val_ptr = nek::addressof(val); EXPECT_EQ(&val, val_ptr); } struct address_operator_overrided_class { public: void* operator&() const { return nullptr;...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xrmmerge.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: kz $ $Date: 2006-12-12 15:52:07 $ * * The Contents of this file are made ...
<commit_before>#ifndef UTILS_MAPCSSUTILS_HPP_DEFINED #define UTILS_MAPCSSUTILS_HPP_DEFINED #include "Exceptions.hpp" #include "entities/Element.hpp" #include "index/StringTable.hpp" #include "mapcss/Style.hpp" #include "utils/GeoUtils.hpp" #include <string> namespace utymap { namespace utils { // Checks whether...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fragmenthandler.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2008-01-17 08:05:44 $ * * The Contents of this file ar...
<commit_before>// @(#)root/textinput:$Id$ // Author: Axel Naumann <[email protected]>, 2011-05-21 /************************************************************************* * Copyright (C) 1995-2011, Rene Brun and Fons Rademakers. * * All rights reserved. * ...
<commit_before>// Copyright (c) 2019 ASMlover. 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 o...
<commit_before>// Copyright (C) 2018 Elviss Strazdins // This file is part of the Ouzel engine. #include "core/Setup.h" #if OUZEL_COMPILE_OPENAL #if OUZEL_PLATFORM_IOS || OUZEL_PLATFORM_TVOS #include <objc/message.h> extern "C" id const AVAudioSessionCategoryAmbient; #endif #include "AudioDeviceAL.hpp" #include "co...
<commit_before>#include "controller/rocket_angular_acceleration_controller.hpp" #include <algorithm> #include "unit_config.hpp" RocketAngularAccelerationController::RocketAngularAccelerationController() : rollAccPid(unit_config::ANGACC_X_KP, unit_config::ANGACC_X_KI, unit_config::ANGACC_X_KD), pitchAccPid(unit...
<commit_before>/** \brief Utility for creating ngram language models. * \author Dr. Johannes Ruscheinski ([email protected]) * * \copyright 2019 Universitätsbibliothek Tübingen. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the te...
<commit_before>/** \brief MARC grep the Next Generation. * \author Dr. Johannes Ruscheinski ([email protected]) * * \copyright 2019 Universitätsbibliothek Tübingen. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GN...
<commit_before>#include <iostream> class Hi { public: Hi() { std::cout << "Hi constructed" << std::endl; } ~Hi() { std::cout << "Hi destructed" << std::endl; } }; int main() { Hi *my = new Hi(); return 0; } <commit_msg>[trash] refs/new/constructor/destructor<commit_after>#inc...
<commit_before>// The MIT License (MIT) // // Copyright (c) 2016 Northeastern University // // 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>#include"MatasanoConverter.h" // styled according to the Google C++ Style guide // https://google.github.io/styleguide/cppguide.html uint8_t NumberFromHexChar(char hex_character) { if (48 <= hex_character && hex_character <= 57) { //0-9 return (uint8_t) hex_character - 48; } else if (65 <= hex_char...
<commit_before>/** * @file DartLoader.cpp */ #include "DartLoader.h" #include <map> #include <urdf_parser/urdf_parser.h> #include <urdf_world/world.h> #include "urdf_world_parser.h" #include <iostream> #include <fstream> #include "dart/dynamics/Skeleton.h" #include "dart/dynamics/BodyNode.h" #include "dart/dynamic...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/pm/p9_pm_ppm_firinit.C $ ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/pm/p9_scan_ring_util.H $ ...
<commit_before>/* * Molch, an implementation of the axolotl ratchet based on libsodium * * ISC License * * Copyright (C) 2015-2016 Max Bruckner (FSMaxB) <max at maxbruckner dot de> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provi...
<commit_before>#include "stdafx.h" #include "d3d.h" #include <SADXModLoader.h> #include "Trampoline.h" #include "globals.h" #include "../include/lanternapi.h" #include "Obj_SkyDeck.h" DataPointer(int, SkyDeck_AltitudeMode, 0x03C80608); DataPointer(float, SkyDeck_SkyAltitude, 0x03C80610); static Trampoline* SkyDec...
<commit_before>/* Copyright 2019 The TensorFlow 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 appl...
<commit_before>#include "dict.h" #include <string> #include <vector> #include <boost/regex.hpp> #include <boost/algorithm/string/regex.hpp> void Dict::AsVector(const WordID& id, std::vector<std::string>* results) const { boost::algorithm::split_regex(*results, Convert(id), boost::regex(" \\|\\|\\| ")); } <commit_m...
<commit_before>#include "plugin.h" #include "plugininterface.h" #include "pluginmanager.h" #include <QApplication> #include <QDir> #include <QPluginLoader> namespace OpenCOR { PluginManager::PluginManager(QSettings *pSettings, const PluginInfo::PluginType &pGuiOrConsoleType) : mSetti...
<commit_before>/** * @file * * @brief Write key sets using yaml-cpp * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include "write.hpp" #include "yaml.h" #include <kdbease.h> #include <kdblogger.h> #include <kdbplugin.h> #include <fstream> using namespace std; using namespace kdb...
<commit_before>/* Copyright 2016 fixstars 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 writing, sof...
<commit_before>/******************************************************************************* The MIT License (MIT) Copyright (c) 2014 Alexander Zolotarev <[email protected]> from Minsk, Belarus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
<commit_before>/*************************************************************************** copyright : (C) 2002, 2003 by Scott Wheeler email : [email protected] ***************************************************************************/ /**********************************************...
<commit_before>#ifdef _DEBUG #include "testdatapath.h" #endif #include <opencv2/opencv.hpp> #include <iostream> #include <string> #include "ImageScrap.h" using namespace std; //画像表示用関数 int showImage(const cv::Mat& image, int wait = 0){ static const string wname("EBookChecker"); cv::imshow(wname, image); retur...
<commit_before>#include <iostream> int main() { cout << "Hello World" << endl; return 0; } <commit_msg>delete CPP dir<commit_after><|endoftext|>
<commit_before>#include "bochs.h" #include "cpu/extdb.h" #ifdef WIN32 # include <windows.h> #else # error "extdb.cc only supported in win32 environment" #endif TRegs regs; char debug_loaded = 0; void (*call_debugger)(TRegs *,Bit8u *, Bit32u); #if BX_SUPPORT_X86_64 void bx_external_debugger(BX_CPU_C *cpu) { ...
<commit_before>/* Copyright DaiMysha (c) 2015, All rights reserved. [email protected] https://github.com/DaiMysha 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 copyrig...
<commit_before>#include "wled.h" /* * Handles playlists, timed sequences of presets */ typedef struct PlaylistEntry { uint8_t preset; //ID of the preset to apply uint16_t dur; //Duration of the entry (in tenths of seconds) uint16_t tr; //Duration of the transition TO this entry (in tenths of seconds) } p...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All right...
<commit_before>/************************************************************************* * * $RCSfile: logfile.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: cd $ $Date: 2001-07-06 10:41:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>#include "ingameelements/heroes/mccree.h" #include "datastructures.h" #include "spriteloader.h" #include "animation.h" #include "gamestate.h" #include "engine.h" #include "ingameelements/projectiles/flashbang.h" #include <memory> #include <cmath> #include <allegro5/allegro_primitives.h> Mccree::Mccree(...
<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>/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
<commit_before><commit_msg>Typo: s -> e<commit_after><|endoftext|>
<commit_before>#include "ostree_repo.h" #include "logging/logging.h" OSTreeObject::ptr OSTreeRepo::GetObject(const uint8_t sha256[32], const OstreeObjectType type) const { return GetObject(OSTreeHash(sha256), type); } OSTreeObject::ptr OSTreeRepo::GetObject(const OSTreeHash hash, const OstreeObjectType type) const...
<commit_before>/* Bacula® - The Network Backup Solution Copyright (C) 2007-2009 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. This program is Free Software; you can redistribute it a...
<commit_before>/* Copyright (c) 2006, Arvid Norberg & Daniel Wallin 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, th...
<commit_before><commit_msg>remove unnecessary calls to copy c'tor<commit_after><|endoftext|>
<commit_before>/* Copyright (c) 2018, Johnathan Corkery. ([email protected]) All rights reserved. This file is part of the Dynacoe project (https://github.com/jcorks/Dynacoe) Dynacoe was released under the MIT License, as detailed below. Permission is hereby granted, free of charge, to any person obtain...
<commit_before><commit_msg>another memory leak based on release().release()<commit_after><|endoftext|>
<commit_before><commit_msg>CID#703984 Unchecked return value (CHECKED_RETURN)<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: indexmap.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: kz $ $Date: 2006-07-21 11:29:56 $ * * The Contents of this file are made ...
<commit_before><commit_msg>fix assert with invalid sting length<commit_after><|endoftext|>
<commit_before><commit_msg>fdo#43534: Reset tab index for SingleRefToVars() call.<commit_after><|endoftext|>
<commit_before>/* ** Author: Abhilash ** Date: 18.04.2015 */ // Bottom up computation // #include <bits/stdc++.h> #define sf scanf #define pf printf typedef long long ll; using namespace std; const ll N = 1e6+3; const ll inf = 1e18; ll DP[N][3]; ll cost[N][3]; ll n; ll move[4][2] = {{1, -1}, {0, 1}, {1,...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: excel.cxx,v $ * * $Revision: 1.24 $ * * last change: $Author: kz $ $Date: 2006-07-21 11:47:43 $ * * The Contents of this file are made av...
<commit_before>/* Copyright 2017 Thomas Krause <[email protected]> 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>#include "RidgeEdgeModel.hpp" #include "FAST/Data/Image.hpp" #include "FAST/Algorithms/ModelBasedSegmentation/Shape.hpp" #include <boost/shared_array.hpp> namespace fast { RidgeEdgeModel::RidgeEdgeModel() { mMinimumDepth = 0; mLineLength = 0; mLineSampleSpacing = 0; mIntensityDifferenceThreshold = ...
<commit_before>#include <iostream> #include "chain.h" using namespace std; int main (int argc, char *argv[]){ if(argc < 2) { cout << "Enter the file name as input" <<endl; return 0; } //Creates new chain chain *mychain = new chain(100); int multOf = 5; // Read the file with filename stored in argv[1]...
<commit_before>#ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #define __STDC_FORMAT_MACROS 1 #include <inttypes.h> #include <cstdint> #include <iostream> #include <algorithm> #include <vector> #include <list> #include <queue> #ifdef __cplusplus extern "C" { #endif #include "benchmark.h" #include "numbersfromtextfiles....
<commit_before>/************************************************************************* * * $RCSfile: defltuno.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: sab $ $Date: 2001-03-29 15:38:36 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>/**************************************************************************** * * Copyright (c) 2015 Mark Charlebois. All rights reserved. * Copyright (c) 2018 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permi...
<commit_before>#include "scanner/engine/python_kernel.h" #include "scanner/util/tinyformat.h" #include "scanner/util/util.h" #include <pybind11/eval.h> #include <pybind11/numpy.h> #include <pybind11/pybind11.h> #include <pybind11/stl.h> namespace scanner { namespace py = pybind11; using namespace pybind11::literals;...
<commit_before>// @(#)root/graf:$Name: $:$Id: TArrow.cxx,v 1.11 2004/02/07 08:54:03 brun Exp $ // Author: Rene Brun 17/10/95 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before>/* * Discrete Logarithm Parameters * (C) 1999-2008,2015,2018 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/dl_group.h> #include <botan/numthry.h> #include <botan/reducer.h> #include <botan/der_enc.h> #include <botan/ber_dec.h> #include <botan/pem....
<commit_before>/* * Copyright 2016 Cask Data, 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>/* * Ultrasonic.cpp - Library for HC-SR04 Ultrasonic Sensing Module. * * With ideas from: * Created by ITead studio. Apr 20, 2010. * iteadstudio.com * * SVN Keywords * ---------------------------------- * $Author$ * $Date$ * $Revision$ * ---------------------------------- */ #include <s...
<commit_before>#include "manageescrowdialog.h" #include "ui_manageescrowdialog.h" #include "guiutil.h" #include "syscoingui.h" #include "ui_interface.h" #include <QDataWidgetMapper> #include <QMessageBox> #include "rpcserver.h" using namespace std; extern const CRPCTable tableRPC; ManageEscrowDialog::ManageEscrowDial...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: inputhdl.hxx,v $ * * $Revision: 1.13 $ * * last change: $Author: rt $ $Date: 2005-09-08 21:33:37 $ * * The Contents of this file are made...
<commit_before>/************************************************************************* * * $RCSfile: navcitem.hxx,v $ * * $Revision: 1.1.1.1 $ * * last change: $Author: hr $ $Date: 2000-09-18 16:44:59 $ * * The Contents of this file are made available subject to the terms of * either of the following l...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: irendermodule.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: kz $ $Date: 2006-12-13 14:37:00 $ * * The Contents of this file are ...
<commit_before>#include <iostream> #include <string> #include <ctime> #include <cstdio> #include <boost/filesystem.hpp> #include "gflags/gflags.h" #include "jsoncons/json.hpp" #include "utils/protocol.h" #include "utils/connection.h" #include "bots/bot_interface.h" #include "bots/raw_bot.h" #include "bots/basic/bot.h"...
<commit_before>#include "xchainer/op_node.h" #include <algorithm> #include <cassert> #include <functional> #include <memory> #include <tuple> #include <utility> #include <vector> #include "xchainer/array_node.h" #include "xchainer/backward.h" #include "xchainer/graph.h" namespace xchainer { namespace internal { OpN...
<commit_before>// Copyright (c) 2012, Steinwurf ApS // 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 // notic...
<commit_before><commit_msg>Very confused...<commit_after><|endoftext|>
<commit_before>#include "defines.h" #include "DcxDWMModule.h" PFNDWMISCOMPOSITIONENABLED DcxDWMModule::DwmIsCompositionEnabledUx = nullptr; PFNDWMGETWINDOWATTRIBUTE DcxDWMModule::DwmGetWindowAttributeUx = nullptr; PFNDWMSETWINDOWATTRIBUTE DcxDWMModule::DwmSetWindowAttributeUx = nullptr; PFNDWMEXTENDFRAMEINTOCLIE...
<commit_before>#include "FSRespSource.h" #include <type_traits> #include <stdexcept> #include <boost/locale.hpp> #include "CommonErrorRespSource.h" #include "detail/MimeDB.h" using namespace HTTP; using namespace HTTP::RespSource; FS::Response::Response(const boost::filesystem::path &FileName, const char *MimeType...
<commit_before>#include "condor_common.h" #include <iostream.h> #include "condor_config.h" #include "condor_classad.h" #include "condor_debug.h" #include "condor_query.h" #include "condor_q.h" #include "condor_attributes.h" #include "match_prefix.h" #include "my_hostname.h" #include "files.h" extern "C" int SetSyscal...
<commit_before>/*************************************************************************** * Copyright (C) 2003 by Unai Garro * * [email protected] * * ...
<commit_before>/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>#include "GUI.hpp" #include <string> #include <vector> #include <QMessageBox> #include <QAction> #include <QCloseEvent> #include <QFontDatabase> #include "Game.hpp" #include "NewGameDialog.hpp" #include "VirtualView.hpp" #include "AugmentedView.hpp" namespace Go_GUI { /** * @brief Checks for g...
<commit_before>// Copyright 2013-2015 Stanford University // // 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>// Copyright (c) 2016 Jack Grigg // Copyright (c) 2016 The Zcash developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // Implementation of the Equihash Proof-of-Work algorithm. // // Reference // ========= /...
<commit_before>#include <cstdlib> #include <iostream> #include <vector> #include <sstream> #include <string> #include <hdf5.h> #include <hdf5_hl.h> #include "tppmatrix.h" #include "omxmatrix.h" #include "stdutil.h" #include "define.h" int convertMat2h5(char *); int convertH5toMat(char *); string ge...
<commit_before>// -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*- // Small example how write text. // // This code is public domain // (but note, that the led-matrix library this depends on is GPL v2) #include "led-matrix.h" #include "graphics.h" #include <getopt.h> #include <stdio.h> #include <stdlib.h>...
<commit_before>#ifndef ITER_CYCLE_H_ #define ITER_CYCLE_H_ #include "iterbase.hpp" #include <utility> #include <iterator> #include <initializer_list> namespace iter { //Forward declarations of Cycle and cycle template <typename Container> class Cycle; template <typename Container> Cycle<Contain...
<commit_before>#pragma once /** * Central place to store Solver config options */ #include <cstdio> #include <vector> #include <cmath> struct SolverOptions { double residual; int max_iters, restart; unsigned max_p, p_min; bool variable_p; enum relaxation_type { SIMONCINI, BOURAS }; relaxation_type re...
<commit_before>// Copyright (c) 2012-2017 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 "util.h" #include "utiltime.h" #include "validation.h" #include "test/test_bitcoin.h" #include "chec...
<commit_before>/// \file ROOT/RCluster.hxx /// \ingroup NTuple ROOT7 /// \author Jakob Blomer <[email protected]> /// \date 2020-03-11 /// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback /// is welcome! /************************************************...
<commit_before>/* * opencog/atoms/execution/DLScheme.cc * * Copyright (C) 2019 Linas Vepstas * All Rights Reserved * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as * published by the Free Software Foundation and includin...
<commit_before>#include <string> #include <vector> #include <sys/types.h> #include <sys/ipc.h> #include <sys/shm.h> #include "mailbox.h" Mailbox::Mailbox (){ //Attempt to create a new memory segment. controlID = shmget(controlKey, controlSize, S_IRUSR | S_IWUSR | IPC_CREAT); if (controlID == -1) { //Fatal error...
<commit_before>// Example macro describing how to use te mathmore integration // it calculates the numerically cumulative integral of a distribution (like in this case the BreitWigner) // to execute the macro type it (you need to compile with AClic) // // root[0]: .x mathmoreIntegration.C+ // // This tutorials requir...
<commit_before>#include <iostream> #include <iomanip> #include "kangaru.hpp" struct CarsContainer; struct Fuel { virtual ~Fuel(); virtual auto getPrice() const noexcept -> double = 0; }; Fuel::~Fuel() = default; struct Car { auto refuel(size_t litres) const noexcept -> double { return litres * fuel_->getPrice(...
<commit_before>// Copyright (c) 2009-2020 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 <addrdb.h> #include <addrman.h> #include <blockencodings.h> #include <blockfilter.h> #include <chain....
<commit_before>// This file is part of the dune-stuff project: // https://github.com/wwu-numerik/dune-stuff/ // Copyright holders: Rene Milk, Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_STUFF_FUNCTIONS_SPE10_HH #define DUNE_STUFF_FUNCTIONS_SPE10_HH #in...
<commit_before>#include <ESPWebConfig.h> #include <ESP8266WiFi.h> char* ESPWebConfig::_helpText = NULL; ParamStore ESPWebConfig::_paramStore; const String* ESPWebConfig::_paramNames = NULL; int ESPWebConfig::_paramNamesLength = 0; boolean ESPWebConfig::_configurationDone = false; // TODO: Only create server when web ...
<commit_before>// Copyright (c) 2021 by Apex.AI Inc. All rights reserved. // Copyright (c) 2021 by Robert Bosch GmbH. 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 ...
<commit_before>// This file is part of the dune-stuff project: // https://github.com/wwu-numerik/dune-stuff/ // Copyright holders: Rene Milk, Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_STUFF_FUNCTIONS_SPE10_HH #define DUNE_STUFF_FUNCTIONS_SPE10_HH #in...
<commit_before>#include <QtGui> #include "MainWindow.h" MainWindow::MainWindow() { QScrollArea *scrollArea = new QScrollArea; renderWidget = new Renderer; renderWidget->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored); scrollArea->setAlignment(Qt::AlignCenter); QWidget *widget = new QWidget; setCentr...
<commit_before>#include <QtGui> #include <iostream> #include "GLCamera.h" #include "MainWindow.h" #include "GLModelWidget.h" #include <QFileDialog> #include <QColorDialog> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { // Windows m_glModelWidget = new GLModelWidget; setCentralWidget(m_g...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before>// Copyright 2008, 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 list o...
<commit_before>// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2010 Dennis Nienhüser <[email protected]> // #include "OpenRout...