text
stringlengths
54
60.6k
<commit_before>/* Copyright 2022 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 <jni.h> #include <android/log.h> #include <stdio.h> #include <string> #include <vector> #include "AndroidCommon.h" #undef LOGV #undef LOGE #define LOGV(msg,args...) __android_log_print(ANDROID_LOG_ERROR, "NME::System", msg, ## args) #define LOGE(msg,args...) __android_log_print(ANDROID_LOG_ER...
<commit_before>/******************************************************************************\ * File: support.cpp * Purpose: Implementation of DecoratedFrame class * Author: Anton van Wezenbeek * RCS-ID: $Id$ * * Copyright (c) 1998-2009 Anton van Wezenbeek * All rights are reserved. Repro...
<commit_before>#include "stdafx.h" #include "Tests.h" #include "Util/Util.h" #include "Core/Common.h" #include "Core/Assembler.h" #ifndef _WIN32 #include <dirent.h> #endif StringList TestRunner::listSubfolders(const std::wstring& dir) { StringList result; #ifdef _WIN32 WIN32_FIND_DATAW findFileData; HANDLE hFind...
<commit_before>//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
<commit_before> #include "Pickle.h" #include <algorithm> #include <cassert> #include <cstdlib> #include <cstring> namespace KBase{ // static const int Pickle::kPayloadUnit = 64; static const size_t kCapacityReadOnly = static_cast<size_t>(-1); PickleIterator::PickleIterator(const Pickle& pickle) : read_ptr_(p...
<commit_before>/* * NicoW * 31.05.12 */ #include <iostream> // REMOVE #include <algorithm> #include <sstream> #include <vector> #include "Match.hpp" #include "GameResult.hpp" #include "GameManager.hpp" GameResult::GameResult(GameManager & game, Match & match) : AMenu("menu/background/backgroundResult.jpg", "men...
<commit_before>#include "positiontracker.h" #include <cmath> #include <common/config/configmanager.h> PositionTracker::PositionTracker() : LOnGPSData(this), LOnMotionCommand(this), LOnIMUData(this) { } Position PositionTracker::GetPosition() { return _current_estimate; } Position PositionTracker:...
<commit_before>#include "Genes/Gene.h" #include <cmath> #include <iostream> #include <algorithm> #include <utility> #include <map> #include <fstream> #include <numeric> #include <iterator> #include <limits> #include "Game/Board.h" #include "Game/Color.h" #include "Utility/Random.h" #include "Utility/String.h" #inclu...
<commit_before>/* * * Copyright 2014 Telefonica Investigacion y Desarrollo, S.A.U * * This file is part of Orion Context Broker. * * Orion Context Broker is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, ...
<commit_before>/************************************************************************* * * $RCSfile: AccessibleComponentBase.cxx,v $ * * $Revision: 1.11 $ * * last change: $Author: vg $ $Date: 2003-04-24 16:52:40 $ * * The Contents of this file are made available subject to the terms of * either of the...
<commit_before>/*************************************************************************** copyright : (C) 2002, 2003 by Scott Wheeler email : wheeler@kde.org ***************************************************************************/ /**********************************************...
<commit_before>// Copyright (c) 2018 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) 2012 BMW Car IT GmbH * * 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 <sys/types.h> #include <sys/errno.h> #include <sys/event.h> #include <sys/time.h> #include <unistd.h> #include <common/buffer.h> #include <event/action.h> #include <event/callback.h> #include <event/event_system.h> EventPoll::EventPoll(void) : log_("/event/poll"), read_poll_(), write_poll...
<commit_before>/* -------------------------------------------------------------------------- * * Simbody(tm) * * -------------------------------------------------------------------------- * * This is part of the SimTK biosimulation toolkit originating...
<commit_before>template <> PetscErrorCode NavierStokesSolver<2>::writeGrid() { PetscErrorCode ierr; PetscInt rank; ierr = MPI_Comm_rank(PETSC_COMM_WORLD, &rank); CHKERRQ(ierr); if(rank==0) { std::ofstream f(caseFolder+"/grid.txt"); for(std::vector<PetscReal>::const_iterator i=mesh->x.begin(); i!=mesh...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtLocation module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2013-2016. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //=================================...
<commit_before>// Copyright (c) 2010 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/autofill/autofill_download.h" #include <algorithm> #include "base/logging.h" #include "base/rand_util.h" #in...
<commit_before>// Copyright (c) 2011-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "config/bitcoin-config.h" #endif #include "optionsmodel.h" #include "bitc...
<commit_before>/* * Copyright (C) 2017 ScyllaDB */ /* * This file is part of Scylla. * * Scylla is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your op...
<commit_before><commit_msg>allow user to specify max beam for aligning retries<commit_after><|endoftext|>
<commit_before>// -*- Mode: c++-mode; c-basic-offset: 2; indent-tabs-mode: t; tab-width: 2; -*- // // Copyright (C) 2003 Grzegorz Jaskiewicz <gj at pointblue.com.pl> // Copyright (C) 2002-2003 Zack Rusin <zack@kde.org> // // gaducontact.cpp // // This program is free software; you can redistribute it and/or // modi...
<commit_before>/*----------------------------------------------------------------------------------------------- The MIT License (MIT) Copyright (c) 2014-2016 Kim Kulling Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), ...
<commit_before>//===----------------------------------------------------------------------===// // // PelotonDB // // aggregate_test.cpp // // Identification: tests/executor/aggregate_test.cpp // // Copyright (c) 2015, Carnegie Mellon University Database Group // //===---------------------------...
<commit_before>#include "overviewpage.h" #include "ui_overviewpage.h" #include "walletmodel.h" #include "bitcoinunits.h" #include "optionsmodel.h" #include "transactiontablemodel.h" #include "transactionfilterproxy.h" #include "guiutil.h" #include "guiconstants.h" #include "askpassphrasedialog.h" #include "updatecheck...
<commit_before>/* * RWLock * Author: Mahmoud Al-Qudsi <mqudsi@neosmart.net> * Copyright (C) 2011 by NeoSmart Technologies * This code is released under the terms of the MIT License */ #include "stdafx.h" #include "RWLock.h" #define MAX_SPIN 50000 #include <tchar.h> #include <assert.h> #include <stdlib.h> __force...
<commit_before>#include "remote_executor_impl.h" using namespace Wuild; RemoteExecutor::RemoteExecutor(ConfiguredApplication &app) : m_app(app) { bool silent = !Syslogger::IsLogLevelEnabled(LOG_DEBUG); IInvocationRewriter::Config compilerConfig; if (!m_app.GetInvocationRewriterConfig(compilerConfig, silent)) re...
<commit_before>// // sync_client.cpp // ~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <iostream> #i...
<commit_before>/* * JailCGI integration. * * author: Max Kellermann <mk@cm4all.com> */ #include "JailParams.hxx" #include "exec.hxx" #include "pool.hxx" #include "util/CharUtil.hxx" #include <glib.h> #include <string.h> gcc_const static GQuark jail_quark(void) { return g_quark_from_static_string("jail"); } ...
<commit_before>#include <NfcAdapter.h> NfcAdapter::NfcAdapter(void) { shield = new Adafruit_NFCShield_I2C(IRQ, RESET); } NfcAdapter::~NfcAdapter(void) { delete shield; } void NfcAdapter::begin() { shield->begin(); uint32_t versiondata = shield->getFirmwareVersion(); if (! versiondata) { Serial.print(F("...
<commit_before>/* * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: Tiffany Huang */ #include <random> #include <algorithm> #include <iostream> #include <numeric> #include <math.h> #include <iostream> #include <sstream> #include <string> #include <iterator> #include <cfloat> #include "particle_...
<commit_before>#ifndef STAN__MATH__PRIM__SCAL__FUN__DIVIDE_HPP #define STAN__MATH__PRIM__SCAL__FUN__DIVIDE_HPP #include <vector> #include <cstddef> #include <cstdlib> namespace stan { namespace math { inline int divide(const int x, const int y) { return std::div(x, y).quot; } } } #endif <commit_m...
<commit_before>/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "ua_server_internal.h" #include "ua_config_default.h" #include "ua_log_stdout.h" #include ...
<commit_before>/* Copyright (c) 2007 Volker Krause <vkrause@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later...
<commit_before>#include "Alpha.h" #include <QKeyEvent> #include <cmath> // Config const float TURN_SPEED = 1; const float PLAYER_FWD = 50; const float PLAYER_BWD = 30; // end Config Alpha::Alpha(QWidget* const parent) : QGLWidget(QGLFormat(QGL::SampleBuffers), parent), timer(this) { setFocusPolicy(Qt::ClickFocu...
<commit_before>#include "qrcodedialog.h" #include "ui_qrcodedialog.h" #include "bitcoinunits.h" #include "guiconstants.h" #include "guiutil.h" #include "optionsmodel.h" #include <QPixmap> #if QT_VERSION < 0x050000 #include <QUrl> #endif #include <qrencode.h> QRCodeDialog::QRCodeDialog(const QString &addr, const QSt...
<commit_before>#include <QGuiApplication> #include <QQmlApplicationEngine> #include <QtQml/qqml.h> #include <QColor> #include <QPalette> #include "models/DialogsModel.hpp" #include "models/MessagesModel.hpp" #ifdef QT_WIDGETS_LIB #include <QApplication> #endif #include <QDebug> class Theme : public QObject { Q_...
<commit_before>#include <list> #include <iostream> #include <algorithm> using namespace std; const char * ones[] = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "...
<commit_before>/* Copyright (c) 2014, Dilyan Rusev 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 condition...
<commit_before>#include <appbase/application.hpp> #include <eosio/chain_plugin/chain_plugin.hpp> #include <eosio/http_plugin/http_plugin.hpp> #include <eosio/net_plugin/net_plugin.hpp> #include <eosio/producer_plugin/producer_plugin.hpp> #include <fc/log/logger_config.hpp> #include <fc/log/appender.hpp> #include <fc/...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>///////////////////////////////////////////////////////////////// /* * Routines to write data in Nrrd format * Currently handles: raw, gzip and ascii encodings */ ///////////////////////////////////////////////////////////////// #include <hxNrrdIO/hxNrrdIOAPI.h> #include <hxcore/HxData.h> #include ...
<commit_before>/*! * This file is part of CameraPlus. * * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org> * * 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 * versio...
<commit_before>/******************************************************************************\ * File: appl.cpp * Purpose: Implementation of classes for syncodbcquery * Author: Anton van Wezenbeek * RCS-ID: $Id$ * * Copyright (c) 2008, Anton van Wezenbeek * All rights are reserved. Reprodu...
<commit_before>// Copyright (c) 2011-2014 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 "splashscreen.h" #include "clientversion.h" #include "init.h" #include "networkstyle.h" #include "ui...
<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.hpp> #include...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkFEMLoadLandmark.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See ITKCo...
<commit_before>/************************************ * file enc : ASCII * author : wuyanyi09@gmail.com ************************************/ #include "KeyWordExt.h" namespace CppJieba { KeyWordExt::KeyWordExt() { } KeyWordExt::~KeyWordExt() { } bool KeyWordExt::init() { return _segment.init(); } ...
<commit_before>/* Sirikata * CSVObjectFactory.cpp * * Copyright (c) 2010, Ewen Cheslack-Postava * 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 cod...
<commit_before> #include "Math/Cartesian3D.h" #include "Math/Types.h" #include "benchmark/benchmark.h" template class ROOT::Math::Cartesian3D<double>; static void BM_Cartesian3D_CreateEmpty(benchmark::State &state) { while (state.KeepRunning()) ROOT::Math::Cartesian3D<double> c; } BENCHMARK(BM_Cartesian3D_Creat...
<commit_before>// This file is part of the dune-pymor project: // https://github.com/pyMor/dune-pymor // Copyright Holders: Felix Albrecht, Stephan Rave // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifdef HAVE_CMAKE_CONFIG #include "cmake_config.h" #elif defined (HAVE_CONFIG_H) ...
<commit_before>// Copyright (c) 2011-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "splashscreen.h" #include "clientversion.h" #include "init.h" #include "ui_interface.h" #include "uti...
<commit_before>//____________________________________________________________________ // // To make an event sample (of size 100) do // // shell> root // root [0] .L pythiaExample.C // root [1] makeEventSample(1000) // // To start the tree view on the generated tree, do // // shell> root // root [0] .L p...
<commit_before>// Copyright (c) 2011 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/input_window_dialog.h" #include "base/compiler_specific.h" #include "base/message_loop.h" #include "base/t...
<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 ...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2011 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>// Copyright 2011 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 require...
<commit_before>#define WIN32_NO_STATUS #include <Windows.h> #undef WIN32_NO_STATUS #include <ntstatus.h> #define WIN32_NO_STATUS #include <winscard.h> #include <string> #include <vector> #include <stdio.h> #include <io.h> #include <fcntl.h> #include <wincred.h> #include <Ole2.h> #include "SmartCardHelper.hpp" #include...
<commit_before>// Copyright (c) 2010 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/views/options/cookies_view.h" #include <algorithm> #include "app/gfx/canvas.h" #include "app/gfx/color_utils...
<commit_before>/* * Copyright (C) 2016-2017, Egor Pugin * * 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 applicab...
<commit_before>/* * cgeUtilFunctions.cpp * * Created on: 2015-12-15 * Author: Wang Yang * Mail: admin@wysaid.org */ #ifdef _CGE_USE_FFMPEG_ #include "cgeVideoUtils.h" #include "cgeFFmpegHeaders.h" #include "cgeVideoPlayer.h" #include "cgeVideoEncoder.h" #include "cgeSharedGLContext.h" #include "cge...
<commit_before>/** * Title: CoreMIDI4J * Description: Core MIDI Device Provider for Java on OS X * Copyright: Copyright (c) 2015-2016 * Company: x.factory Librarians * * @author Derek Cook * * CoreMIDI4J is an open source Service Provider Interface for supporting external MIDI devices on MAC OS ...
<commit_before>#include <ros/ros.h> #include <vector> #include <iostream> #include <fstream> #include <algorithm> #include "rosplan_knowledge_msgs/Notification.h" #include "rosplan_knowledge_msgs/Filter.h" #include "rosplan_knowledge_msgs/KnowledgeItem.h" #include "rosplan_knowledge_base/KnowledgeBase.h" namespace KCL...
<commit_before>#include "DrawService.hpp" #include <SFML/Graphics/RenderWindow.hpp> DrawService::Layer::Layer(Layer&& rhs): group(std::move(rhs.group)), view(std::move(rhs.view)) { } DrawService::Layer& DrawService::Layer::operator= (Layer&& rhs) { group = std::move(rhs.group); view = std::move(rhs...
<commit_before>#ifndef SRC_RANGE_ALGORITHM_HPP_ #define SRC_RANGE_ALGORITHM_HPP_ #include <boost/range.hpp> #include <boost/range/adaptors.hpp> #include <functional> namespace fc { template<class predicate> struct filter_view { template<class in_range> auto operator()(const in_range& input) { return boost::ada...
<commit_before>/* The MIT License (MIT) Copyright (c) 2016 Vasil Kalchev 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,...
<commit_before>// Copyright (c) 2009 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 <atlbase.h> #include <atlcom.h> #include "base/string_util.h" #include "chrome_frame/http_negotiate.h" #include "chrome_frame...
<commit_before>/** @file Contains the LiquidMenu class definition. */ /* The MIT License (MIT) Copyright (c) 2016 Vasil Kalchev 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 restrictio...
<commit_before>// // LogManager.cpp // PDP-Experiment // // Created by 于京平 on 2017/6/19. // Copyright © 2017年 于京平. All rights reserved. // #include "LogManager.hpp" const std::string LogManager :: logPath = "Debug/PDPLOG.log"; std::ofstream LogManager :: logStream; LogManager LogManager :: singleton; double LogMa...
<commit_before>//===-- BrainF.cpp - BrainF compiler example ----------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------...
<commit_before>/** * Copyright (c) 2017 by Botorabi. All rights reserved. * https://github.com/botorabi/Meet4Eat * * License: MIT License (MIT), read the LICENSE text in * main directory for more details. */ #include "systemtray.h" #include "mainwindow.h" #include <core/log.h> #include <settings/appsett...
<commit_before>/*********************************************************************** created: 12/2/2012 author: Paul D Turner *************************************************************************/ /*************************************************************************** * Copyright (C) 2004 - 2012 Pa...
<commit_before>#include "MainWindow.h" MainWindow::MainWindow(void) : BWindow(BRect(100,100,900,700),"MasterPiece",B_TITLED_WINDOW, B_ASYNCHRONOUS_CONTROLS, B_CURRENT_WORKSPACE) { BRect r(Bounds()); r.bottom = 20; mpMenuBar = new MenuBar(r); AddChild(mpMenuBar); rgb_color myColor = {215, 215, 215, 255}; fullV...
<commit_before>// Copyright (c) 2011 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/extensions/extension_apitest.h" #include "net/base/mock_host_resolver.h" IN_PROC_BROWSER_TEST_F(ExtensionApiT...
<commit_before>// Copyright (c) 2011 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/net/ssl_config_service_manager.h" #include <algorithm> #include <string> #include <vector> #include "base/bas...
<commit_before>#include "EntityManager.hpp" #include <imgui/imgui.h> #include <Components/EntityRepresentation.hpp> #include <glm/gtc/type_ptr.hpp> #include <Components/ComponentRegistrationManager.hpp> #include <Components/MeshRenderer.hh> #include <AssetManagement/AssetManager.hh> #include <EditorConfiguration.hpp> #...
<commit_before>// SqlBak.cpp : Defines the entry point for the console application. // #include "stdafx.h" // The following come from "SQL Server 2005 Virtual Backup Device Interface (VDI) Specification" // http://www.microsoft.com/downloads/en/details.aspx?familyid=416f8a51-65a3-4e8e-a4c8-adfe15e850fc #include "vdi...
<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>/************************************************************************* * * $RCSfile: AccessiblePageHeaderArea.hxx,v $ * * $Revision: 1.1 $ * * last change: $Author: sab $ $Date: 2002-05-24 15:11:15 $ * * The Contents of this file are made available subject to the terms of * either of th...
<commit_before>#include <QtNetwork/QTcpSocket> #include <QFileInfo> #include <QFile> #include <QStringList> #include <QDir> #include "httpthread.h" HTTPThread::HTTPThread(const int socketDescriptor, const QString &docRoot, QObject *parent) : QThread(parent), socketDescriptor(socketDescripto...
<commit_before>/* bzflag * Copyright (c) 1993 - 2005 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named LICENSE that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>/******************************************************************************* Licensed to the OpenCOR team under one or more contributor license agreements. See the NOTICE.txt file distributed with this work for additional information regarding copyright ownership. The OpenCOR team licenses this file...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: http://www.qt-project.org/ ** ** ** GNU Lesser General Public License Usage ** ** This file may be used ...
<commit_before>#ifndef HTTP_SERVER3_REQUEST_HANDLER_HPP #define HTTP_SERVER3_REQUEST_HANDLER_HPP #include <string> #include <fstream> #include "request.hpp" #include "response.hpp" #include "status_code.hpp" namespace webserver { #define DEFAULT_WEB_PAGE "index.html" #define RESPONSE_CHUNK_SIZE 512 class RequestH...
<commit_before><?hh //strict /** * This file is part of hhpack\package. * * (c) Noritaka Horio <holy.shared.design@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace hhpack\package; final class NameMatcher implements Matcher<...
<commit_before>/** * @file server.cpp * @author Shae Bolt, CS3800 Section A * @author Jordan Giacone, CS3800 Section B * @date Apr 25, 2016 * @brief Description: The server file to handle multiple * clients sending messages to one another * @details Details: */ #include <string.h> #include <iostream> #i...
<commit_before>#include "halley_editor.h" #include "editor_root_stage.h" #include "halley/tools/project/project.h" #include "preferences.h" #include "halley/core/game/environment.h" #include "halley/tools/file/filesystem.h" #include "halley/tools/project/project_loader.h" using namespace Halley; void initOpenGLPlugin...
<commit_before>#include <stingray/toolkit/SystemException.h> #include <errno.h> #include <string.h> #include <stingray/toolkit/StringUtils.h> namespace stingray { SystemException::SystemException(const std::string &message) throw(): std::runtime_error(message + ": errno = " + GetErrorMessage(errno)), _error(errno...
<commit_before>#include "unit_tests/suite/lumix_unit_tests.h" #include "engine/log.h" #ifdef _WIN32 #include "engine/win/simple_win.h" #endif #include <cstdio> namespace Lumix { namespace UnitTest { void outputToVS(const char* system, const char* message) { char tmp[2048]; copyString(tmp, system); ca...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/isteps/istep07/call_mss_freq.C $ ...
<commit_before>#include "csv-reader.h" #include <fstream> #include <sstream> CSVReader::CSVReader(std::string file_loc) { file_loc_ = file_loc; } CSVReader::~CSVReader() { } bool CSVReader::LoadFile() { if (file_loc_ == "") { return false; } else { std::ifstream mainFile; mainFil...
<commit_before>#include "PrimeTower.h" #include <limits> #include "ExtruderTrain.h" #include "sliceDataStorage.h" #include "gcodeExport.h" #include "gcodePlanner.h" #include "infill.h" #include "PrintFeature.h" namespace cura { PrimeTower::PrimeTower() : is_hollow(false) , current_pre_wipe_location_idx(0) { fo...
<commit_before><commit_msg>Coverity: Remove the check for index < 0 because index is a size_t and can never be < 0.<commit_after><|endoftext|>
<commit_before>/* * Ubitrack - Library for Ubiquitous Tracking * Copyright 2006, Technische Universitaet Muenchen, and individual * contributors as indicated by the @authors tag. See the * copyright.txt in the distribution for a full listing of individual * contributors. * * This is free software; you can redis...
<commit_before> #include "Fluid.h" #include "HalfEdge.h" #include "Quaternion.h" #include "Vector.h" #include <Math.h> /* pi */ #define EPSILON 1e-6 namespace DDG { Fluid :: Fluid( Mesh*& surface_ptr, const ProjectionComponent& projectType ) :fluid_ptr( surface_ptr ) { // Initiate anything else? buildOp...
<commit_before>/******************************************************************************* * ALMA - Atacama Large Millimiter Array * (c) European Southern Observatory, 2011 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as pu...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2020. All rights reserved */ #include "../StroikaPreComp.h" #include <cstdio> #if qPlatform_MacOS #include <libproc.h> #include <mach-o/dyld.h> #endif #if qPlatform_POSIX && qSupport_Proc_Filesystem #include <unistd.h> #endif #if qPlatform_Windows #incl...
<commit_before>// Copyright 2009 Minor Gordon. // This source comes from the XtreemFS project. It is licensed under the GPLv2 (see COPYING for terms and conditions). #include "org/xtreemfs/client/proxy.h" #include "policy_container.h" #include "platform_exception_event.h" using namespace org::xtreemfs::client; ...