text
stringlengths
54
60.6k
<commit_before>#include "aerial_autonomy/controllers/constant_heading_depth_controller.h" #include "aerial_autonomy/common/math.h" #include "aerial_autonomy/log/log.h" #include <glog/logging.h> bool ConstantHeadingDepthController::runImplementation( PositionYaw sensor_data, Position goal, VelocityYawRate &control)...
<commit_before>#pragma once #include "event_queue.hpp" namespace krbn { namespace manipulator { namespace detail { class base { public: virtual ~base(void) { } virtual manipulate(event_queue& event_queue) = 0; }; } // namespace detail } // namespace manipulator } // namespace krbn <commit_msg>detail -> details...
<commit_before>// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // // // Code that is used by both the Unix corerun and coreconsole. // #include <assert.h> #include <dirent.h> #include <dlfcn.h> #include <limits....
<commit_before>/* * opencog/atoms/base/Link.cc * * Copyright (C) 2008-2010 OpenCog Foundation * Copyright (C) 2002-2007 Novamente LLC * 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...
<commit_before>/** * Touhou Community Reliant Automatic Patcher * Main DLL * * ---- * * Persistent string storage, and translation of hardcoded strings. */ #include "thcrap.h" #include <unordered_map> /// Detour chains /// ------------- W32U8_DETOUR_CHAIN_DEF(MessageBox); /// ------------- // Length-pr...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkExtractSelectedGraph.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for detail...
<commit_before>#include "predicator.h" #include "planning_tool.h" #include <boost/bind/bind.hpp> namespace predicator_planning { Planner::Planner(PredicateContext *_context, unsigned int _max_iter, unsigned int _children, double _step) : context(_context), max_iter(_max_iter), children(_children), step(_step) ...
<commit_before>// demo.cpp : ̨Ӧóڵ㡣 // #include <stdio.h> #include <assert.h> #include <map> #include <vector> #include "CodeAddress.h" #include "ThreadPool.h" #ifdef WIN32 #ifdef _DEBUG #pragma comment(lib, "../lib/ThreadLib_d.lib") #else #pragma comment(lib, "../lib/ThreadLib.lib") #endif #else #include <unistd.h>...
<commit_before>/* * Copyright (c) 2016-2017 dresden elektronik ingenieurtechnik gmbh. * All rights reserved. * * The software in this package is published under the terms of the BSD * style license a copy of which has been included with this distribution in * the LICENSE.txt file. * */ #include <QFil...
<commit_before>// Copyright 2017 Sebastien Ronsse #include "ImGuiHUD.h" #include "MyImGuiHUD.h" const struct FKey *KeyMap[] = { &EKeys::Tab, &EKeys::Left, &EKeys::Right, &EKeys::Up, &EKeys::Down, &EKeys::PageUp, &EKeys::PageDown, &EKeys::Home, &EKeys::End, &EKeys::Delete, &EKeys::BackSpace, &EKeys::Enter,...
<commit_before>#include <ODLib/ODLib.hpp> #include <ODLib/Logger/Logger.hpp> ODLib::Logger::Logger::Logger(ODLib::Logger::Settings Settings) : m_settings(Settings) , m_nextRotation(GetNextRotation()) { CreateFileIfNeeded(); } ODLib::Logger::Logger::~Logger() { m_file.close(); } void ODLib::Logger::Lo...
<commit_before>#ifndef ITER_FILTER_H_ #define ITER_FILTER_H_ #include "iterbase.hpp" #include <utility> #include <iterator> #include <initializer_list> namespace iter { //Forward declarations of Filter and filter template <typename FilterFunc, typename Container> class Filter; template <typename Fi...
<commit_before>// // __ParseBridge-Android.cpp // roll-eat // // Created by Zinge on 5/16/16. // // #include "ee/internal/MessageBridge.hpp" #include "ee/JniUtils.hpp" #include "ee/internal/JniMethodInfo.hpp" #include "ee/internal/JniString.hpp" #include "ee/Logger.hpp" namespace ee { std::string MessageBridge::ca...
<commit_before>/*ckwg +5 * Copyright 2012 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #include "read_video_gravl_process.h" #include <processes/helpers/image/forma...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: collelem.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: hr $ $Date: 2007-06-27 14:27:08 $ * * The Contents of this file are made ...
<commit_before>//===- BugDriver.cpp - Top-Level BugPoint class implementation ------------===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // ...
<commit_before>#include <iostream> #include <fstream> #include <string> #include <queue> #include <vector> #include <bitset> using namespace std; string inFileName; int frequencyList[256]; struct huffNode { int frequency; char character; huffNode* left; huffNode* right; }; struct node_comparison { bool operato...
<commit_before>/**********************************************************\ Auto-generated KSenseJSAPI.cpp \**********************************************************/ #include "JSObject.h" #include "variant_list.h" #include "DOM/Document.h" #include "global/config.h" #include <cmath> #include "KSenseJSAPI.h" //...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2018. All rights reserved */ #ifndef _Stroika_Foundation_Containers_SortedCollection_inl_ #define _Stroika_Foundation_Containers_SortedCollection_inl_ #include "../Debug/Assertions.h" #include "Factory/SortedCollection_Factory.h" namespace Stroika { ...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2013. All rights reserved */ #ifndef _Stroika_Foundation_Traversal_DelegatedIterator_inl_ #define _Stroika_Foundation_Traversal_DelegatedIterator_inl_ #include "../Debug/Assertions.h" namespace Stroika { namespace Foundation { names...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) CS Systemes d'information. All rights reserved. See CSCopyright.txt for details. This software is distributed WITHOUT ANY WA...
<commit_before>/*========================================================================= * * Copyright Insight Software Consortium * * 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>#include <iostream> #include <vector> #include <string> #include <fstream> #include <sstream> using namespace std; vector<string> split(string str, char delimiter) { vector<string> internal; stringstream ss(str); string tok; while (getline(ss, tok, delimiter)) { internal.push_back(tok); } ret...
<commit_before>/* This file is part of the KDE project Copyright (C) 2005-2006 Matthias Kretz <kretz@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. T...
<commit_before>#ifndef LUA_FUNCTION_H #include "LuaFunction.hpp" #endif LuaFunction::LuaFunction(LuaAdapter &lua) : Lua{lua.GetLuaState()} {} LuaFunction::LuaFunction(lua_State *const lua) : Lua{lua} {} LuaFunction::~LuaFunction() {} bool LuaFunction::Call(const char *functionName, const unsigned short int argc, ...
<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>/* * RenderItemDistanceMetric.h * * Created on: Feb 16, 2009 * Author: struktured */ #ifndef RenderItemDISTANCEMETRIC_H_ #define RenderItemDISTANCEMETRIC_H_ #include "Common.hpp" #include "Renderable.hpp" #include <limits> #include <functional> #include <map> struct TypeIdPair { TypeIdPair...
<commit_before>#include "Logger.h" #include <sstream> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> Logger* Logger::logger_instance = NULL; Logger::Logger(): nivelDeLog(LOG_DEBUG) { string timeStamp = "output.html"; struct stat buffer; if (stat(timeStamp.c_str(), &buffer)) { archivoLog.open( ...
<commit_before>#include <test/utility.hpp> #include <gtest/gtest.h> #include <fstream> #include <string> #include <stdexcept> using cmdstan::test::convert_model_path; using cmdstan::test::multiple_command_separator; using cmdstan::test::run_command; using cmdstan::test::run_command_output; class CmdStan : public test...
<commit_before>/************************************************************************** ** ** This file is part of Doxygen plugin for Qt Creator ** ** Copyright (c) 2009 Kevin Tanguy (kofee@kofee.org). ** Copyright (c) 2015 Fabien Poussin (fabien.poussin@gmail.com). ** ** This plugin is free software: you can redist...
<commit_before>#include "GliderManipulator.h" #include <osg/Notify> using namespace osg; using namespace osgGA; GliderManipulator::GliderManipulator() { _modelScale = 0.01f; _velocity = 0.0f; _yawMode = YAW_AUTOMATICALLY_WHEN_BANKED; _distance = 1.0f; } GliderManipulator::~GliderManipulator() { } ...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2000 The Apache Software Foundation. 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. Redistr...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_PRODUCTS_BASE_HH #define DUNE_GDT_PRODUCTS_BASE_HH #include <dune/stuf...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_PRODUCTS_BASE_HH #define DUNE_GDT_PRODUCTS_BASE_HH #include <dune/stuf...
<commit_before>//============================================================================== // SingleCellSimulation plugin //============================================================================== #include "singlecellsimulationplugin.h" #include "cellmlmodel.h" #include "cellmlsupportplugin.h" //==========...
<commit_before>#include "gen_exported.h" namespace gen_exported { /******************************************************************************************************************* Copyright (c) 2012 Cycling '74 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and asso...
<commit_before>// HoldTheFlag.cpp : bzfs plugin for Hold-The-flag game mode // // $Id$ #include "bzfsAPI.h" #include <map> #include <stdarg.h> BZ_GET_PLUGIN_VERSION #define HOLDTHEFLAG_VER "1.00.02" #define DO_FLAG_RESET 1 #define DEFAULT_TEAM eGreenTeam #define MAX_PLAYERID 255 #ifdef _WIN32 #ifndef strcasecmp...
<commit_before>/* * Copyright 2015 Georgia Institute of Technology * * 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 requi...
<commit_before>// The "Square Detector" program. // It loads several images sequentially and tries to find squares in // each image #include "opencv2/core/core.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include <iostream> #include <math.h> #include <string.h> #include <stdio.h...
<commit_before>/* Author: Nicholas Nell email: nicholas.nell@colorado.edu Sampling thread for the NI PCI-DIO-32HS and PCI-6601 that act as NSROC telemtery. */ #include <QDebug> #include <regex.h> #include "nidaqplugin.h" NIDAQPlugin::NIDAQPlugin() : SamplingThreadPlugin() { FILE *fp; char line_b...
<commit_before>#include <gst/gst.h> #include "MediaPipelineImpl.hpp" #include "MediaObjectImpl.hpp" #include <jsonrpc/JsonSerializer.hpp> #include <KurentoException.hpp> #include <gst/gst.h> #include <UUIDGenerator.hpp> #include <MediaSet.hpp> #define GST_CAT_DEFAULT kurento_media_object_impl GST_DEBUG_CATEGORY_STATIC...
<commit_before><commit_msg>iahndl: do lazy replacement<commit_after><|endoftext|>
<commit_before>#include <config.h> #ifdef SYSTEM_UNIX #include <sys/prctl.h> #include <sys/wait.h> #endif #include <boost/lexical_cast.hpp> #include "typename.h" #include "Logger.h" #include "demangle.h" #include "exceptions.h" logger::LogChannel tracelog("tracelog", "[trace] "); stack_trace_::stack_trace_() { #if...
<commit_before>//DEFINITION OF A FEW CONSTANTS AliPWG4HighPtQAMC* AddTaskPWG4HighPtQAMC() { // Creates HighPtQAMC analysis task and adds it to the analysis manager. // A. Get the pointer to the existing analysis manager via the static access method. //==========================================================...
<commit_before>// -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2; -*- /* Copyright (C) 2009, Anders Ronnbrant - andro@lysator.liu.se All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are...
<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 rig...
<commit_before>#include "pch.h" #include "Servo.h" namespace winrt::servo { void on_load_started() { sServo->Delegate().OnServoLoadStarted(); } void on_load_ended() { sServo->Delegate().OnServoLoadEnded(); } void on_history_changed(bool back, bool forward) { sServo->Delegate().OnServoHistoryChanged(back, forward)...
<commit_before>/************************************************************************* * * $RCSfile: addxmltostorageoptions.cxx,v $ * * $Revision: 1.1 $ * * last change: $Author: jp $ $Date: 2000-11-29 12:15:02 $ * * The Contents of this file are made available subject to the terms of * either of the f...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: customizeaddresslistdialog.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: hr $ $Date: 2007-09-27 11:30:34 $ * * The Contents of t...
<commit_before>/* Copyright 2018 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>/* nsjail - logging ----------------------------------------- Copyright 2014 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 ...
<commit_before>// Implementation of a linear time algorithm that find the longest palindromic // substring of a given string. // // Author: Mikhail Andrenkov // Date: October 22, 2017 // // Credit: This code is a modification of a Manacher's Algorithm implementation // from https://algs4.cs.princeton.edu/53subs...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lice...
<commit_before>//===- AsmMatcherEmitter.cpp - Generate an assembly matcher ---------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. Some parts of this code ar...
<commit_before>/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2010-2011, Willow Garage, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fo...
<commit_before>#include "inputevent.h" #include <cassert> #include <iostream> #include <string> #include <sstream> extern "C" { #include <unistd.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/select.h> #include <fcntl.h> #include <sys/socket.h> #include <netdb.h> #include <err.h> } ...
<commit_before>/*! \author Chase Hutchens \brief This will attempt to locate 2 prime factors of a larger number. The discrepancy with this method is the prime factors must be in the range of the 2 <= factor <= ceil(goldenRatio * sqrt(largePrime)). The reason I chose to scale by the goldenRat...
<commit_before>/*************************************************************************** * io/iostats.cpp * * Part of the STXXL. See http://stxxl.sourceforge.net * * Copyright (C) 2002-2004 Roman Dementiev <dementiev@mpi-sb.mpg.de> * Copyright (C) 2008 Andreas Beckmann <beckmann@mpi-inf.mpg.de> * * Dist...
<commit_before> #include "DuktapeScriptBackend.h" #include <iostream> #include <cppassist/logging/logging.h> #include <cppexpose/reflection/Object.h> #include <cppexpose/variant/Variant.h> #include <cppexpose/scripting/ScriptContext.h> #include "DuktapeScriptFunction.h" #include "DuktapeObjectWrapper.h" using nam...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2014. All rights reserved */ #include "../../StroikaPreComp.h" #include "../../Characters/Format.h" #include "../../Characters/String_Constant.h" #include "../../Characters/String2Float.h" #include "../../Characters/String2Int.h" #include ...
<commit_before>/// /// \file AliFemtoModelCorrFctnTrueQ3D.cxx /// #include "AliFemtoModelCorrFctnTrueQ3D.h" #include "AliFemtoPair.h" #include "AliFemtoModelManager.h" #include "AliFemtoModelHiddenInfo.h" #include <TH3F.h> #include <TList.h> #include <TString.h> #include <TRandom.h> #include <tuple> #include <iostre...
<commit_before>#pragma once #include "boost_defs.hpp" #include "dispatcher.hpp" #include "iokit_utility.hpp" #include "logger.hpp" #include "services.hpp" #include <boost/signals2.hpp> namespace krbn { namespace monitor { namespace service_monitor { class service_monitor final : pqrs::dispatcher::extra::dispatcher_c...
<commit_before>#pragma once #if ENABLE_S3 #include "ref.hh" #include <optional> namespace Aws { namespace Client { class ClientConfiguration; } } namespace Aws { namespace S3 { class S3Client; } } namespace nix { struct S3Helper { ref<Aws::Client::ClientConfiguration> config; ref<Aws::S3::S3Client> client...
<commit_before>#ifndef __STAN__PROB__DISTRIBUTIONS__UNIVARIATE__CONTINUOUS_HPP__ #define __STAN__PROB__DISTRIBUTIONS__UNIVARIATE__CONTINUOUS_HPP__ #include <stan/prob/distributions/univariate/continuous/beta.hpp> #include <stan/prob/distributions/univariate/continuous/cauchy.hpp> #include <stan/prob/distributions/univ...
<commit_before>// -*- C++ -*- // Implementation of: ???? // // Copyright (C) 2010 by John Weiss // This program is free software; you can redistribute it and/or modify // it under the terms of the Artistic License, included as the file // "LICENSE" in the source code archive. // // This program is distributed in the ho...
<commit_before>/* Copyright 2020 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 <iostream> #include <algorithm> #include <vector> #include <cmath> #include <ctime> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include "gaussian.h" #define BLUR_RADIUS 3 #define PATH_COUNT 16 #define MAX_SHORT 65535 #define SMALL_PENALTY 3 #define LARGE_PENALTY 2...
<commit_before>/* * Copyright (c) 2014 David Chisnall * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modi...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 2001 The Apache Software Foundation. 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. Redistributi...
<commit_before>// Copyright 2019 TF.Text 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
<commit_before>//===- ProfileInfoLoad.cpp - Load profile information from disk -----------===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. /...
<commit_before>/* * This is part of the FL library, a C++ Bayesian filtering library * (https://github.com/filtering-library) * * Copyright (c) 2014 Jan Issac (jan.issac@gmail.com) * Copyright (c) 2014 Manuel Wuthrich (manuel.wuthrich@gmail.com) * * Max-Planck Institute for Intelligent Systems, AMD Lab * Univer...
<commit_before>// RUN: %clangxx -std=c++11 -frtti -fsanitize=vptr -g %s -O3 -o %t // RUN: %run %t &> %t.log // RUN: cat %t.log | not count 0 && FileCheck --input-file %t.log %s || cat %t.log | count 0 // REQUIRES: cxxabi #include <sys/mman.h> #include <unistd.h> class Base { public: int i; virtual void print() {...
<commit_before>#include <iostream> #include <Windows.h> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/opencv.hpp> #include <opencv2/imgproc.hpp> #include <algorithm> /* mineBot.cpp T.Lloyd An attempt at an openCV minesweeper bot... */ using namespace cv; usin...
<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-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge, to an...
<commit_before>#include <iostream> #include <iomanip> using namespace std; int main(int argc, char *argv[]) { cout << "|"; for (int x = 1; x<=12; ++x) { cout <<x <<"|"; } cout << endl; for( int x = 0; x<=12; ++x) { cout << "+"; } cout << endl; for( int...
<commit_before>/***************************************************************************** * Copyright (C) 2012 * * 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....
<commit_before>// ascii plain text // Licence: Lesser GNU Public License 2.1 (LGPL) // $Id$ #define BUILDING_XYLIB #include "text.h" #include <cerrno> #include <cstdlib> #include "util.h" using namespace std; using namespace xylib::util; namespace xylib { const FormatInfo TextDataSet::fmt_info( "text", "a...
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #ifndef DISPATCHER_HH #define DISPATCHER_HH #include <stdexcept> #include <queue> #include "common.hh" #include "locks.hh" class Dispatcher; enum task_state { task_dead, task_running, task_sleeping }; enum di...
<commit_before>#include <errno.h> #include <QMessageBox> #include <QCloseEvent> #include "mainwindow.h" #include "ui_mainwindow.h" const char MainWindow::pol_pm[] = "<span style='font-weight:600;'><span style='color:#ff0000;'>+</span> <span style='color:#0000ff;'>-</span></span>"; const char MainWindow...
<commit_before>/************************************************************************* * * $RCSfile: geometrycontrolmodel.cxx,v $ * * $Revision: 1.1 $ * * last change: $Author: mt $ $Date: 2001-01-24 14:55:12 $ * * The Contents of this file are made available subject to the terms of * either of the fol...
<commit_before>// Copyright (C) 2017 Jérôme Leclercq // This file is part of the "Nazara Development Kit" // For conditions of distribution and use, see copyright notice in Prerequisites.hpp #include <NDK/Systems/DebugSystem.hpp> #include <Nazara/Core/Primitive.hpp> #include <Nazara/Graphics/Model.hpp> #include <Nazar...
<commit_before>/* This file is part of Zanshin Todo. Copyright 2008-2010 Kevin Ottens <ervin@kde.org> Copyright 2008,2009 Mario Bensi <nef@ipsquad.net> 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 Soft...
<commit_before>#include <string> #include <fstream> #include <iostream> #include "map.h" using namespace std; Map::Map() {} Map::~Map() {} void Map::LoadMap(string MapFileName){ string Temp; fstream MapFile; int X = 0; int Y = 0; int F = 0; int C = 0; MapFile.open (MapFileName, fstream::in); while ( MapFi...
<commit_before>/* This file is part of Zanshin Todo. Copyright 2008-2010 Kevin Ottens <ervin@kde.org> Copyright 2008,2009 Mario Bensi <nef@ipsquad.net> 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 Soft...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Albrecht // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_OPERATOR_ELLIPTIC_HH #define DUNE_GDT_OPERATOR_ELLIPTIC_HH #include <ty...
<commit_before>#ifndef SOLUTION_HPP #define SOLUTION_HPP #include <algorithm> #include <iostream> #include <tuple> #include <vector> using namespace std; class Solution { public: vector<int> maxSumOfThreeSubarrays(vector<int>& nums, int k) { auto arrsum = [&nums](int a, int b) { int s = 0; for (in...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distr...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU L...
<commit_before> #include <util/util.h> #include "grammar-builder.h" #include "../declaration.h" #include "../type.h" #include "../grammar.h" #include "../production.h" #include "../attribute.h" #include "../expression.h" #include "../constant.h" using namespace binpac; using namespace binpac::passes; GrammarBuilder:...
<commit_before>/* Copyright 2016 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 required by applicable law o...
<commit_before>#include "PagerWidget.h" #include <blackbox/BlackBox.h> #include <blackbox/gfx/utils_imgui.h> #include <bblib/codecvt.h> #include <imgui/imgui_internal.h> #include <blackbox/utils_window.h> namespace bb { PagerWidget::PagerWidget (WidgetConfig & cfg) : GuiWidget(cfg) { m_tasks.reserve(64); } v...
<commit_before>/*========================================================================= * * Copyright David Doria 2012 daviddoria@gmail.com * * 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 L...
<commit_before>#include <isl/set.h> #include <isl/union_map.h> #include <isl/union_set.h> #include <isl/ast_build.h> #include <isl/schedule.h> #include <isl/schedule_node.h> #include <tiramisu/debug.h> #include <tiramisu/core.h> #include <string.h> #include <Halide.h> /** The goal of this tutorial is to implement ...
<commit_before>#include "ride/runner.h" #include <wx/utils.h> #include <wx/process.h> #include <wx/txtstrm.h> #include "ride/mainwindow.h" class PipedProcess; class Process; const int RUNNER_CONSOLE_OPTION = wxEXEC_HIDE_CONSOLE; // const int RUNNER_CONSOLE_OPTION = wxEXEC_SHOW_CONSOLE; /////////////////////////////...
<commit_before>/* * program to mimik university site. * source available at (Github repo - MIT licence): * http://dstjrd.ir/s/cppx * https://github.com/mohsend/cpp-examples */ #include <iostream> #include "Csite.hpp" #include "Cstudent.hpp" #include "Clesson.hpp" using namespace std; int main() { Clesson lesso...
<commit_before>/* * This file is part of TelepathyQt4 * * Copyright (C) 2010 Collabora Ltd. <http://www.collabora.co.uk/> * Copyright (C) 2010 Nokia Corporation * * 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 b...
<commit_before>// Copyright (c) 2012 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 "chrome/browser/ui/ash/launcher/browser_launcher_item_controller.h" #include "ash/launcher/launcher.h" #include "ash/launcher...