text
stringlengths
54
60.6k
<commit_before>#pragma once #include <vpp/core/image2d.hh> #include <vpp/draw/draw.hh> #include <vpp/core/keypoint_trajectory.hh> #include <iod/sio_utils.hh> #include <vpp/algorithms/Line_tracker_4_sfm/miscellanous/operations.hh> #include <opencv2/highgui.hpp> #include "draw_line_hough.hh" #include "track.hh" using n...
<commit_before>/* =============================================================================== FILE: integercompressor.hpp CONTENTS: This compressor provides three different contexts for encoding integer numbers whose range may lie anywhere between 1 and 31 bits, which is specified with the Se...
<commit_before>/** * @file main.cpp * * @author <a href="mailto:xu@informatik.hu-berlin.de">Xu, Yuan</a> * @author <a href="mailto:mellmann@informatik.hu-berlin.de">Mellmann, Heinrich</a> */ #include "NaoController.h" #include <glib.h> #include <glib-object.h> #include <signal.h> //#include <rttools/rtthread.h> ...
<commit_before>// Copyright 2019 DeepMind Technologies Ltd. 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 // //...
<commit_before>#/** \ingroup kernel * \{ * * \file kernel/memory_map.hpp * \brief This file defines the memory map used by the * kernel as well as some auxilliary types. */ #ifndef H_kernel_memory #define H_kernel_memory #include <common/types.hpp> #include "dynarray.hpp" #include "debug.hpp" #include "consta...
<commit_before>/* * Copyright (C) 2009, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ #include <libport/...
<commit_before>/* Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include <string> #include "util/sstream.h" #include "kernel/environment.h" #include "kernel/type_checker.h" #include "library/kernel_seriali...
<commit_before>/* В программе ввести и инициализировать массив структур, каждая из которых описывает материальную точку. Элементы структурного типа: координаты и массы частиц, а также расстояния от центра масс до всех точек набора. Окончание ввода - ннулевое значение массы точки. Общая масса систем...
<commit_before>/* * This file is part of meego-keyboard * * * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * Contact: Nokia Corporation (directui@nokia.com) * * If you have questions regarding the use of this file, please contact * Nokia at directui@nokia.com. * * Th...
<commit_before>// // Shell // Sifer Aseph // Because I can. Doing this to stem my boredom in class or whatevs. // #include <iostream> int main(int argc, const char * argv[]) { return 0; } <commit_msg>shelly<commit_after>// // Shell // Sifer Aseph // Because I can. Doing this to stem my boredom i...
<commit_before> #include "pmlc/util/math/bignum.h" #include <boost/math/common_factor_rt.hpp> namespace pmlc::util::math { Integer Floor(const Rational &x) { if (x < 0) { return (numerator(x) - denominator(x) + 1) / denominator(x); } else { return numerator(x) / denominator(x); } } Integer Ceil(const ...
<commit_before>/* Copyright 2017 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>/*========================================================================= Library: CTK Copyright (c) 2010 Kitware 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>#include "Analysis.hh" #include "G4UnitsTable.hh" #include "globals.hh" #include "G4RunManager.hh" #include "G4Material.hh" #include "G4HCofThisEvent.hh" #include "G4Event.hh" #include "G4ThreeVector.hh" #ifdef USE_MPI #include "G4MPImanager.hh" #include <stdio.h> #endif #include "HistoManager.hh" An...
<commit_before>/* Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition (HOOMD-blue) Open Source Software License Copyright 2008, 2009 Ames Laboratory Iowa State University and The Regents of the University of Michigan All rights reserved. HOOMD-blue may contain modifications ("Contributions") provid...
<commit_before>/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | https://www.mrpt.org/ | | ...
<commit_before>/******************************************************************************** LibVideoGfx - video processing library Copyright (C) 2002 Dirk Farin This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as ...
<commit_before>/* * CompoundAgent.cpp * openc2e * * Created by Alyssa Milburn on Tue May 25 2004. * Copyright (c) 2004 Alyssa Milburn. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as publishe...
<commit_before>#include <typeinfo> #include <iostream> #include <fstream> #include <sstream> #include <cassert> #include <vector> using namespace std; std::vector<std::string> Tokenize(const std::string& str, const std::string& delimiters = " \t"); template<typename T> inline T Scan(const std::string &input) { ...
<commit_before>/** * @file file_location_benchmark.cc * @author Rafal Grzeszczuk * @copyright (C) 2018 ACK CYFRONET AGH * @copyright This software is released under the MIT license cited in * 'LICENSE.txt' */ #include "messages/fuse/fileBlock.h" #include "messages/fuse/fileLocation.h" #include <boost/random.hpp...
<commit_before>#pragma once #include "pin.hpp" enum SpiMode { SpiMode0 = 0x00, SpiMode1 = 0x04, SpiMode2 = 0x08, SpiMode3 = 0x0C }; enum SpiBitOrder { SpiLsbFirst, SpiMsbFirst }; template <unsigned P_SS> class Spi { public: Spi() : ss(Output), sclk(Output), mosi(Output), miso(Input) ...
<commit_before>/* * ASTFactory.cpp * * This file is part of the XShaderCompiler project (Copyright (c) 2014-2017 by Lukas Hermanns) * See "LICENSE.txt" for license information. */ #include "ASTFactory.h" #include "Helper.h" #include "Exception.h" #include "Variant.h" namespace Xsc { namespace ASTFactory { t...
<commit_before>#include "ViewportWidget.h" #include <QOpenGLFunctions> #include <QOpenGLShaderProgram> #include <QCoreApplication> #include <QMouseEvent> #include <QPainter> static const char *vertexShaderSourceCore = "#version 150\n" "in vec4 vertex;\n" "in vec3 normal;\n" "out vec3 vert;\n" "out vec3 vertNormal;\n" ...
<commit_before>#ifndef MJOLNIR_READ_SPATIAL_PARTITION #define MJOLNIR_READ_SPATIAL_PARTITION #include <mjolnir/core/UnlimitedGridCellList.hpp> #include <mjolnir/core/PeriodicGridCellList.hpp> #include <mjolnir/core/NaivePairCalculation.hpp> #include <mjolnir/core/VerletList.hpp> #include <mjolnir/util/make_unique.hpp> ...
<commit_before>/* ########## Copyright (C) 2015 Vincenzo Pacella ## ## Distributed under MIT license, see file LICENSE ## ## or <http://opensource.org/licenses/MIT> ## ## ########## ############################################################# shaduzlabs.com ...
<commit_before>#include "Script.hpp" using namespace Component; Script::Script(Entity* entity) : SuperComponent(entity) { } Json::Value Script::Save() const { Json::Value component; return component; } void Script::Load(const Json::Value& node) { } <commit_msg>Add placeholder value to script compo...
<commit_before>#include "opt_avcall.h" //#include "../avcall/avcall.h" //#include "../avcall/mediadevicewatcher.h" #include "../psimedia/psimedia.h" //#include "common.h" //#include "iconwidget.h" //#include "psioptions.h" #include "gstprovider.h" #include "optionaccessinghost.h" #include "ui_opt_avcall.h" #include <...
<commit_before><commit_msg>Entry wall and entry wall sensor position and size adjustments<commit_after><|endoftext|>
<commit_before>/* Copyright (c) 2021 Intel Corporation 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>#include "tensor.h" #include "device.h" #include "op_algo.h" #include "attribute.h" #include "graph.h" #include "gradient_helper.h" #include "../operators/initializer.h" #include "../operators/basic_arithmetics.h" #include "../utils/assert.h" #include <algorithm> #include <sstream> namespace mlfe{ //TO...
<commit_before> // A game fragment adapted from Andre La Mothe's book // Ported to GNU/Linux by Antonello Dettori // The Black Art of 3D Games Programming // Modified by CJM 24/9/'08 to run without error or warnings: // Note: this is very old-fashioned code originally written for 16-bit PCs // INCL...
<commit_before>/* * Copyright (c) 2017 Devin Smith <devin@devinsmith.net> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROV...
<commit_before>// Copyright 2014 Vladimir Alyamkin. All Rights Reserved. #include "Krieger.h" AKriegerExplosionEffect::AKriegerExplosionEffect(const class FPostConstructInitializeProperties& PCIP) : Super(PCIP) { ExplosionLightComponentName = TEXT("ExplosionLight"); PrimaryActorTick.bCanEverTick = true; Explosio...
<commit_before> #include "UEPyFSlateIcon.h" #include "Engine/Texture2D.h" #include "Engine/Engine.h" static PyObject *py_ue_fslate_icon_get_icon(ue_PyFSlateIcon *self, PyObject * args) { return py_ue_new_uscriptstruct(FSlateBrush::StaticStruct(), (uint8*)self->icon.GetIcon()); } static PyMethodDef ue_PyFSlateIcon_me...
<commit_before>#include "ReconVarIC.h" #include "MooseMesh.h" template<> InputParameters validParams<ReconVarIC>() { InputParameters params = validParams<InitialCondition>(); params.addRequiredParam<UserObjectName>("ebsd_reader", "The EBSDReader GeneralUserObject"); params.addRequiredParam<unsigned int>("crys_n...
<commit_before>/****************************************************************************** * Copyright 2017 The Apollo 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 ...
<commit_before>#include <Game/cPlayerManager.h> #include <Utility/cInput.h> #include <CameraManager/cCameraManager.h> #include <Game/cStrategyManager.h> #include <Game/Strategy/cDrill.h> #include <Game/cFieldManager.h> #include <Game/cClientAdapter.h> void Game::cPlayerManager::playerInstance(std::vector<ci::vec3> po...
<commit_before>/* Copyright 2021 Stanford University, NVIDIA Corporation * * 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>// kate: indent-mode cstyle; indent-width 4; tab-width 4; space-indent false; // vim:ai ts=4 et #include <stdio.h> #include <stdlib.h> #include <string.h> #include <pthread.h> #include <assert.h> #include <map> #include <Network/Network.hpp> #include <Network/PacketReceiver.hpp> #include <Network/Send...
<commit_before>#include "MarcUtil.h" #include "Compiler.h" #include <algorithm> #include <iterator> #include <memory> #include <stdexcept> #include "Subfields.h" #include "util.h" namespace MarcUtil { bool ReadFields(const std::string &raw_fields, const std::vector<DirectoryEntry> &dir_entries, std::vector<std::st...
<commit_before>/* Copyright 2014 Aaron Boxer This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program...
<commit_before>/** @author Tom Bisson, Pascal Weiß @date 16.07.2015 */ #include "SwarmGLFacade.h" #include <time.h> #include <iostream> /** The initial parameters for the swarm. Some of them can be changed on runtime in 'Globals.json' */ /** Initial value for the number of particles. Can't be chan...
<commit_before>/* * main.cpp * sample codes for algorithm.hpp * * written by janus_wel<janus.wel.3@gmail.com> * This source code is in public domain, and has NO WARRANTY. * */ #include "../../header/algorithm.hpp" #include <algorithm> #include <cstring> #include <functional> #include <iostream> #include <lis...
<commit_before>/* Copyright (C) 2009-2011 qiuu Copyright (C) 2016 Clownacy 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 you...
<commit_before>#include <csignal> #include <pthread.h> #include <string> #include <unistd.h> #include <utility> #include <vector> #include "Program.hpp" //============================================================================== // Parses program arguments and stores in arguments //==============================...
<commit_before>#include "FitsObject.h" #include <stdexcept> using namespace std; Fits::Fits(const string &filename) : m_status(0), m_filename(filename) { fits_open_file(&this->m_fptr, this->m_filename.c_str(), READWRITE, &this->m_status); this->check(); } Fits::Fits() {} Fits::~Fits() { fits_close_f...
<commit_before>#ifndef TOMB4FX_H #define TOMB4FX_H #include "SPECTYPES.H" extern char flare_table[121]; // offset 0x92A6C extern char LaserSightActive; // offset 0xA09FC extern char LaserSightCol; // offset 0xA09FD extern long next_fire_spark; // offset 0xA0A0C extern long next_smoke_spark; // offset 0xA0A10 extern l...
<commit_before>#include "HMDWrapper.h" #include "interface\DeviceMgrInterface.h" using namespace MathLib; class CLocalHMDWrapper : public CHMDWrapper { public: CLocalHMDWrapper(); virtual ~CLocalHMDWrapper(); virtual void Init(); virtual void Update(); virtual void S...
<commit_before>#include "Isosurface.h" Vector3D Isosurface::gradientAt(float x, float y, float z) const { const float epsilon = 0.0001; float dx = valueAt(x + epsilon, y, z) - valueAt(x - epsilon, y, z); float dy = valueAt(x, y + epsilon, z) - valueAt(x, y - epsilon, z); float dz = valueAt(x, y, z + e...
<commit_before>class Solution { public: int lengthOfLongestSubstring(string s) { map<char,unsigned int> postion; unsigned int front,rear; unsigned max_len = 0; front = rear = 0; while(rear < s.size()) { auto index = postion.find(s.at(rear)); if...
<commit_before>#include "Simplex.h" #include <iostream> #include <cmath> /* Simplex problem constructor This takes the one dimensional arrays: A - the LHS variable coefficient matrix of the constraints, c - the row vector for the coeffients of the variables, b - the column vector for the RHS It gen...
<commit_before>/* SbHalfPong, sort of like Pong but for one author: Ulrike Hager */ #include <iostream> #include <string> #include <sstream> #include <stdexcept> #include <climits> #include <cmath> #include <random> #include <algorithm> #include <functional> #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #include <S...
<commit_before>#pragma once #include <unordered_map> #include <string> namespace slea { class INI { public: /** * \brief The internal map used to store categories and entries. */ std::unordered_map<std::string, std::unordered_map<std::string, std::string>> map; INI(); /** * \param path The path to...
<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-2012 Torus Knot Software Ltd Permission is hereby granted, free of charge, ...
<commit_before>/* * Copyright 2013 Puck Meerburg, puck@puckipedia.nl * All rights reserved. Distributed under the terms of the MIT License. */ #include "BlogPositivePostEditorView.h" #include <Catalog.h> #include <GroupLayout.h> #include <Menu.h> #include <MenuBar.h> #include <MenuItem.h> #include <Message.h> #in...
<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: // // * Redistributions of source code must retain the above copyright // notice, this list ...
<commit_before>// // ImplicitSectors.cpp // Clock Signal // // Created by Thomas Harte on 29/09/2017. // Copyright 2017 Thomas Harte. All rights reserved. // #include "ImplicitSectors.hpp" #include <cstring> #include "../../../Encodings/MFM/Sector.hpp" #include "../../../Encodings/MFM/Encoder.hpp" #include "../....
<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>/* * Copyright (C) 2012 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 l...
<commit_before>// Source : https://leetcode.com/problems/restore-ip-addresses/ // Author : Yijing Bai // Date : 2016-01-09 /********************************************************************************** * * Given a string containing only digits, restore it by returning all possible valid IP * address combi...
<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 distribu...
<commit_before>#include <SpecificLogFile.hpp> #include <Utility/Utilities/Include/Logging/LogTag.hpp> #include <Utility/Utilities/Include/Logging/LogLevel.hpp> #include <Utility/Utilities/Include/Logging/LogTagConverter.hpp> #include <Utility/Utilities/Include/Logging/LogTextData.hpp> #include <Utility/Utilities/Inclu...
<commit_before>#include "Keyboard.h" #include "Login.h" #include "ServicesHandler.h" #include "MainCharacter.h" #include "EnemyCharacter.h" #include "Door.h" #include "Graphics.h" extern Status *status; extern Model *model; extern MainCharacter *character; extern EnemyCharacter *enemy; extern Door *door1; ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: diagram.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2008-01-17 08:05:57 $ * * The Contents of this file are made a...
<commit_before>/* sma - simple moving average Written in 2015 by <Ahmet Inan> <xdsopl@googlemail.com> To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. You sh...
<commit_before>class Solution { public: int findMaxConsecutiveOnes(vector<int>& nums) { int maxr=0,ins=0; for(int i=0;i<nums.size();i++){ if(nums[i]){ ins++; }else{ if(ins>maxr) maxr=ins; ins=0; } } i...
<commit_before>#include <iostream> #include <stdlib.h> #include <stack> using namespace std; struct node{ int data; node *left, *right, *root; }; node *createNode(int n){ node *newnode = new node; newnode->right = NULL; newnode->left = NULL; newnode->data = n; ret...
<commit_before>#include <gtksourceview/gtksourceview.h> namespace Jazz { namespace Gtk { // Widget assumes ownership of the pointer you give it // use release to get its ownership class Widget { public: // Interface void Show() const { gtk_widget_show(widget); } void ShowAll() const {...
<commit_before>/* * Map.cpp * * Created on: Apr 22, 2014 * Author: user */ #include "Map.h" Map::Map(int rows, int columns, double resolution) { // TODO: input checks _resolution = resolution; float fixed_resolution = 1 / resolution; _rows = ceil(rows * fixed_resolution); _columns = ceil(columns * ...
<commit_before>//NIM dabs oktber 1997 #include <iostream> #include <conio.h> #include <stdlib.h> using namespace std; //etta fall a birta stu allra eldsptnahrgna (hrgur fleirtlu eignarfalli) void birta( int* hruga ); //etta fall a reikna t hversu margar eldsptur eru eftir hrgunum: int samtals( int* hruga ); //e...
<commit_before>#pragma once #include <array> #include <memory> #include <cstring> #include <type_traits> namespace detail { template <typename _DeleterT, typename _AnyT> struct deleter { ~deleter() { _DeleterT()(reinterpret_cast<_AnyT&>(*this)); } }; template <typename _AnyT> struct deleter<void, _Any...
<commit_before>#include <unistd.h> #include <cstdlib> #include <cstring> #include <string> #include <map> #include <algorithm> #include <cstdio> #include <sys/types.h> #include <cctype> enum asmmode_t { ERROR = 0, DATA, CODE } mode = ERROR; FILE* fin = NULL,* fout = NULL; size_t data_pos, code_pos; size_t...
<commit_before>#include "stdafx.h" #include "CppUnitTest.h" #include "..\ProjectEuler\Problem2.h" using namespace Microsoft::VisualStudio::CppUnitTestFramework; namespace ProjectEulerTests { TEST_CLASS(Problem2Tests) { public: TEST_METHOD(FibonacciSumEven_Input1_Returns0) { au...
<commit_before>#include "Runtime/AutoMapper/CMapUniverse.hpp" #include "Runtime/CSimplePool.hpp" #include "Runtime/CGameState.hpp" #include "Runtime/GameGlobalObjects.hpp" namespace urde { CMapUniverse::CMapUniverse(CInputStream& in, u32 version) : x0_hexagonId(in.readUint32Big()) { x4_hexagonToken = g_SimplePool-...
<commit_before>#include "souistd.h" #include "core/SwndLayoutBuilder.h" namespace SOUI { ////////////////////////////////////////////////////////////////////////// SWindowRepos::SWindowRepos(SWindow *pWnd):m_pWnd(pWnd) { SASSERT(m_pWnd); m_rcWnd = m_pWnd->m_rcWindow; Swn...
<commit_before>/* * * Copyright (c) 2020 Project CHIP 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 * * ...
<commit_before>/* * * Copyright (c) 2020 Project CHIP 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 * * ...
<commit_before>/* * Copyright (c) 2007-2008 Intel Corporation. All Rights Reserved. * * 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...
<commit_before>#include <dune/stuff/test/test_common.hh> #include <utility> #include <memory> #include <dune/grid/sgrid.hh> #include <dune/grid/part/leaf.hh> #include <dune/stuff/grid/provider.hh> #include <dune/stuff/grid/boundaryinfo.hh> #include <dune/stuff/common/logging.hh> #include <dune/detailed-solvers/lin...
<commit_before>#include "util.cpp" struct Row { int num, area, capacity; }; bool sort_servers(const Server &a, const Server &b) { if (a.capacity*b.size != b.capacity*a.size) return a.capacity*b.size > b.capacity*a.size; else return a.size < b.size; } bool sort_rows(const Row &a, const Row &b) { if (a.capaci...
<commit_before>//---------------------------- sparse_ilu.cc --------------------------- // Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer // to the file deal.II...
<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>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: property.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: vg $ $Date: 2007-01-15 14:44:49 $ * * The Contents of this file are made ...
<commit_before><commit_msg>Fix hang as a result of host not answering or hanging up<commit_after><|endoftext|>
<commit_before>#include <stack> #include "acmacs-base/read-file.hh" #include "acmacs-whocc/csv-parser.hh" enum class state { cell, quoted, escaped }; constexpr const char separator{','}; constexpr const char quote{'"'}; constexpr const char escape{'\\'}; // ----------------------------------------------...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: breakiterator_cjk.cxx,v $ * * $Revision: 1.14 $ * * last change: $Author: hr $ $Date: 2006-10-24 13:53:13 $ * * The Contents of this file...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: breakiterator_ctl.cxx,v $ * $Rev...
<commit_before>// Copyright (c) 2020 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // ...
<commit_before>// Copyright (c) 2019 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // ...
<commit_before>#include "astutil.h" #include "expr.h" #include "passes.h" #include "stmt.h" #include "stringutil.h" #include "optimizations.h" // // inlines the function called by 'call' at that call site // static void inlineCall(CallExpr* call) { currentFilename = call->filename; currentLineno = call->lineno; ...
<commit_before>#include <LineBuffer.hpp> #include "catch.hpp" using namespace yb; TEST_CASE( "can create empty LineBuffer", "[LineBuffer.empty]") { LineBuffer buf; REQUIRE(buf.empty()); REQUIRE(buf.getPosition() == 0); } TEST_CASE( "can insert a char to the empty LineBuffer", "[LineBuffer.insert]" ) { ...
<commit_before>/**************************************************************************** * * Copyright (c) 2015 Estimation and Control Library (ECL). All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
<commit_before>/*************************************************************************/ /* canvas_group.cpp */ /*************************************************************************/ /* This file is part of: */ /...
<commit_before>#include <stingray/toolkit/ThreadPool.h> #include <stingray/toolkit/bind.h> namespace stingray { ThreadPool::WorkerWrapper::WorkerWrapper(const std::string& name) : _busy(false), _worker(ITaskExecutor::Create(name)) { } bool ThreadPool::WorkerWrapper::TryAddTask(const function<void()>& task) ...
<commit_before>#if defined(_CARTO_GEOCODING_SUPPORT) #include "MapBoxOnlineReverseGeocodingService.h" #include "core/BinaryData.h" #include "components/Exceptions.h" #include "geocoding/MapBoxGeocodingProxy.h" #include "projections/Projection.h" #include "utils/GeneralUtils.h" #include "utils/NetworkUtils.h" #include ...
<commit_before>/* * Ultrasonic.cpp - Library for HC-SR04 Ultrasonic Ranging Module.library * * Created by ITead studio. Apr 20, 2010. * iteadstudio.com * * SVN Keywords * ---------------------------------- * $Author$ * $Date$ * $Revision$ * ---------------------------------- */ #include <stdlib.h> #include...
<commit_before>#include UserPlayer.h #include <stdexcept> #include <iostream> #include <string> #include <algorithm>//For equal method to compare characters/strings. #include <cctype>//For toupper method. #include <stdlib.h>//For strtol /* namespace Blackjack { class UserPlayer: public Player {//A Blackjack player t...
<commit_before>//************************************************************** //* OpenGLide - Glide->OpenGL Wrapper //* OpenGL Extensions //* Made by Glorfindel //************************************************************** #include "GlOgl.h" #include "Glextensions.h" #include <string.h> //Functions PF...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2019. All rights reserved */ #include "../../StroikaPreComp.h" #include <cstdio> #if qPlatform_POSIX #include <netdb.h> #include <sys/socket.h> #include <unistd.h> #elif qPlatform_Windows #include <WinSock2.h> #include <WS2tcpip.h> #endif #include ".....
<commit_before>/* * Copyright (C) 2014 Cloudius Systems, Ltd. */ #ifndef STACK_HH_ #define STACK_HH_ #include "core/reactor.hh" #include <boost/program_options.hpp> namespace net { boost::program_options::options_description native_network_stack_program_options(); std::unique_ptr<network_stack> create_native_net...