text
stringlengths
54
60.6k
<commit_before>//===- PrettyStackTrace.cpp - Pretty Crash Handling -----------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//===-- ARMAsmBackend.cpp - ARM Assembler Backend -------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//===-- ARMAsmPrinter.cpp - ARM LLVM assembly writer ----------------------===// // // The LLVM Compiler Infrastructure // // This file was developed by the "Instituto Nokia de Tecnologia" and // is distributed under the University of Illinois Open Source // License. See LICENSE.TXT f...
<commit_before>//===-- X86AsmPrinter.cpp - Convert X86 LLVM IR to X86 assembly -----------===// // // 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>//===-- GlobalDCE.cpp - DCE unreachable internal functions ----------------===// // // This transform is designed to eliminate unreachable internal globals // FIXME: GlobalDCE should update the callgraph, not destroy it! // //===----------------------------------------------------------------------===// ...
<commit_before>// Copyright 2015 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 "sky/shell/shell.h" #include "base/bind.h" #include "base/i18n/icu_util.h" #include "base/single_thread_task_runner.h" #include "...
<commit_before>// Copyright 2014-2015 Project Vogue. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "elang/base/bit_set.h" #include "base/logging.h" #include "elang/base/zone.h" namespace elang { namespace { const BitSet::Pack k...
<commit_before>/* Cigarras https://www.urionlinejudge.com.br/judge/pt/problems/view/2660 */ #include <bits/stdc++.h> using namespace std; typedef unsigned long long int uint64; uint64 mdc(uint64 a, uint64 b) { if (a == 0) return b; else return mdc(b % a, a); } uint64 mmc(uint64 a, uint64 b) { return a ...
<commit_before>// This file is part of SWGANH which is released under the MIT license. // See file LICENSE or go to http://swganh.com/LICENSE #ifndef WIN32 #include <Python.h> #endif #include "swganh/app/swganh_app.h" #include <algorithm> #include <exception> #include <fstream> #include <iostream> #ifdef WIN32 #inc...
<commit_before>/***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Acc...
<commit_before>/************************************************************************* * * $RCSfile: salvd.cxx,v $ * * $Revision: 1.13 $ * * last change: $Author: bmahbod $ $Date: 2001-03-12 23:15:32 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: tabpage.cxx,v $ * * $Revision: 1.13 $ * * last change: $Author: obo $ $Date: 2006-09-17 12:22:35 $ * * The Contents of this file are made...
<commit_before>/************************************************************************* * * $RCSfile: salogl.cxx,v $ * * $Revision: 1.11 $ * * last change: $Author: hr $ $Date: 2004-05-10 15:59:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>// // Copyright 2011-2015 Jeff Bush // // 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 applic...
<commit_before>//||||||||||||||||||||||||||||||||||||||||||||||| #include "OgreChess.h" #include <OgreLight.h> #include <OgreWindowEventUtilities.h> #include "OgreText.h" Chess::Chess() { boardNode = 0; boardEntity = 0; whiteQueenNode = 0; whiteQueenEntity = 0; whiteKingNode = 0; whiteKingEnt...
<commit_before>#include <string> #include <sstream> #include <iomanip> #include <teraranger_array/teraranger_multiflex.h> #include <teraranger_array/helper_lib.h> #include <ros/console.h> namespace teraranger_array { TerarangerHubMultiflex::TerarangerHubMultiflex() { // Get parameters ros::NodeHandle private_node_h...
<commit_before>#include "../test.h" #if ((defined(_MSC_VER) && _MSC_VER >= 1700) || (__cplusplus >= 201103L && HAS_BOOST)) && !defined(__CYGWIN__) #define CPPREST_EXCLUDE_WEBSOCKETS #include "casablanca/Release/src/pch/stdafx.h" #include "casablanca/Release/src/json/json.cpp" #include "casablanca/Release/src/json/j...
<commit_before>// Copyright (c) 2007-2010 Paul Hodge. All rights reserved. #include "circa.h" namespace circa { namespace if_block_tests { void test_if_joining() { Branch branch; // Test that a name defined in one branch is not rebound in outer scope branch.eval("if true\napple = 5\nend"); test_asse...
<commit_before>/* indivudal.cpp - CS 472 Project #2: Genetic Programming * Copyright 2014 Andrew Schwartzmeyer * * Source file for Individual */ #include <cmath> #include <iostream> #include <memory> #include <tuple> #include <vector> #include "individual.hpp" #include "../problem/problem.hpp" #include "../random...
<commit_before>/* * Copyright 2007-2020 CM4all GmbH * All rights reserved. * * author: Max Kellermann <mk@cm4all.com> * * 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...
<commit_before>#include "smartplayer.h" #include "board.h" #include "move.h" #include <list> #include <iostream> static Move negamax_move; SmartPlayer::SmartPlayer(void) : Player() { } SmartPlayer::SmartPlayer(Player::Who who) : Player(who) { } Move SmartPlayer::move(Board *b, struct timeval *time_remain) { int...
<commit_before><commit_msg>vc/audio triggers: stop sending DMX values on deactivation<commit_after><|endoftext|>
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: textconversion_zh.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: obo $ $Date: 2006-09-17 09:24:29 $ * * The Contents of this file...
<commit_before>/* * Copyright 2008-2009 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 require...
<commit_before>// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "vm/heap/freelist.h" #include "platform/assert.h" #include "vm/unit_test.h" na...
<commit_before>// Copyright (c) 2009-2019 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 <core_io.h> #include <consensus/consensus.h> #include <consensus/validation.h> #include <key_io.h> #...
<commit_before><commit_msg>Gui: add warning to DlgExpressionInput<commit_after><|endoftext|>
<commit_before>/* Copyright (c) 2012-2014 The SSDB 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 <stdio.h> #include <stdlib.h> #include <time.h> #include <vector> #include "log.h" #include "sorted_set.h" int main(int argc, ch...
<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 "base/sys_info.h" #include <sys/system_properties.h> #include "base/logging.h" #include "base/strings/string_number_conversi...
<commit_before>#ifndef INCLUDED_AQUAVCLEVENTS_HXX #define INCLUDED_AQUAVCLEVENTS_HXX #include <premac.h> #include <Carbon/Carbon.h> #include <postmac.h> /* Definition of custom OpenOffice.org events. Avoid conflict with Apple defined event class and type definitions by using uppercase letters. Lowercase let...
<commit_before>// Copyright 2012 Cloudera 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 law or ...
<commit_before>/* * Copyright (c) 2012-2020 Daniele Bartolini and individual contributors. * License: https://github.com/dbartolini/crown/blob/master/LICENSE */ #include "core/memory/temp_allocator.inl" #include "core/os.h" #include "core/platform.h" #include "core/strings/string.inl" #include "core/strings/string_...
<commit_before>// // Copyright 2014 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 "config.h" #include "core/inspector/InspectorTracingAgent.h" #include "core/inspector/IdentifiersFactory.h" #include "core...
<commit_before>#include <fstream> #include <iostream> #include <string> #include <unordered_map> #include <cctype> #include <cstdlib> #include <cstring> #include "BibleReferenceParser.h" #include "MapIO.h" #include "StringUtil.h" #include "util.h" void SplitIntoBookAndChaptersAndVerses(const std::string &bib_ref_cand...
<commit_before> #include <gameplay/GameplayModule.hpp> #include <stdio.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <malloc.h> #include <assert.h> #include <QApplication> #include <QFile> #include <QDir> #include <QDateTime> #include <QString> #include <QMessageBox> #include <boost/foreach....
<commit_before>/* * (C) 2010,2014,2015 Jack Lloyd * (C) 2015 René Korthaus * * Botan is released under the Simplified BSD License (see license.txt) */ #include "cli.h" #if defined(BOTAN_HAS_PUBLIC_KEY_CRYPTO) #include <botan/base64.h> #include <botan/pk_keys.h> #include <botan/pkcs8.h> #include <botan/pubkey.h> #i...
<commit_before>#include "JSONParser.h" #include "DiskFile.h" #include "OS.h" #include "StringUtils.h" #include "Assert.h" #include "Log.h" namespace crown { //-------------------------------------------------------------------------- JSONParser::JSONParser(Allocator& allocator, const char* s) : m_buffer(s), m_nodes...
<commit_before>#define WIN32_LEAN_AND_MEAN #define STRICT #define UNICODE #include <winsock2.h> #include <shellapi.h> #include <stdio.h> #include <time.h> // int(md5.md5('ibb').hexdigest()[-4:], 16) const int IBB_PORT = 26830; int error(const char* msg) { fprintf(stderr, "ibb *** error: %s\n", msg); return 1;...
<commit_before>#include "partners_api/rutaxi_api.hpp" #include "platform/http_client.hpp" #include "platform/platform.hpp" #include "geometry/latlon.hpp" #include "geometry/mercator.hpp" #include "coding/url_encode.hpp" #include "base/logging.hpp" #include "base/string_utils.hpp" #include "std/target_os.hpp" #inc...
<commit_before> // Copyright ********************************************************** // // IBM Confidential // OCO Source Materials // 9400 Licen...
<commit_before>/* * Copyright (c) 2015, Mario Flach. 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 the rights ...
<commit_before>/* * Copyright 2015 - 2017 gtalent2@gmail.com * * 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/. */ #pragma once #include "types.hpp" namespace ox...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2012 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 (c) 2014-2016, imec * All rights reserved. */ #include "error.h" #include "bpmf.h" #include <random> #include <memory> #include <cstdio> #include <iostream> #include <climits> #include <stdexcept> #include "io.h" static const bool measure_perf = false; std::ostream *Sys::os; int Sy...
<commit_before>#include "FileReaderMPACK.hpp" #include "InputResource.hpp" namespace MVFS { FileReaderMPACK::FileReaderMPACK(const char *pPath) { m_pInputResource = MPACK::Core::GetInputResource(pPath); m_pInputResource->Open(); } FileReaderMPACK::~FileReaderMPACK() { delete m_pInputResource; } int Fil...
<commit_before>/***************************************************************************** YASK: Yet Another Stencil Kernel Copyright (c) 2014-2019, Intel Corporation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), t...
<commit_before>/* This file is part of the Pangolin Project. * http://github.com/stevenlovegrove/Pangolin * * Copyright (c) 2014 Steven Lovegrove * * 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 t...
<commit_before>#if _WIN32 #pragma warning(disable : 4267 4996) #endif #include "./labelling_coordinator.h" #include <QtOpenGLExtensions> #include <QLoggingCategory> #include <map> #include <vector> #include <memory> #include "./labelling/clustering.h" #include "./labelling/labels.h" #include "./placement/occlusion_cal...
<commit_before>/* * Copyright (c) 2014-2016, imec * All rights reserved. */ #include <random> #include <memory> #include <cstdio> #include <iostream> #include <climits> #include <stdexcept> #include "error.h" #include "bpmf.h" #include "io.h" static const bool measure_perf = false; std::ostream *Sys::os; int Sy...
<commit_before>/* * Copyright (c) 2013 - 2015, Roland Bock * 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 ...
<commit_before>/* * This file is part of Poedit (http://www.poedit.net) * * Copyright (C) 1999-2007 Vaclav Slavik * Copyright (C) 2005 Olivier Sannier * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * ...
<commit_before>// Copyright (C) 2005-2009 by Jukka Korpela // Copyright (C) 2009-2013 by David Hoerl // Copyright (C) 2013 by Martin Moene // // 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 Softwar...
<commit_before>#pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunused-parameter" #ifndef CALLBACK # if defined(_ARM_) # define CALLBACK # else # define CALLBACK __stdcall # endif #endif #include <cstdint> #include <cstdlib> #include "SDL_gpu/SDL_gpu.h" #include "misc/consts.h" #include "mi...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // // File contains modifications by: The Gulden developers // All ...
<commit_before>/* Copyright 2009 SPARTA, Inc., dba Cobham Analytic Solutions * * This file is part of WATCHER. * * WATCHER 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 vers...
<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>#pragma once /* * Author(s): * - Chris Kilner <ckilner@aldebaran-robotics.com> * - Cedric Gestes <gestes@aldebaran-robotics.com> * * Copyright (C) 2010 Aldebaran Robotics */ #ifndef _QI_SERIALIZATION_SERIALIZE_HXX_ #define _QI_SERIALIZATION_SERIALIZE_HXX_ #if 0 #define __QI_DEBUG_SERIALIZATION_W(...
<commit_before>#include <set> #include <Common.h> #include <Logging/Logger.h> #include <Util/Util.h> #include <Util/UtilMath.h> #include <Exd/ExdDataGenerated.h> #include <Database/DatabaseDef.h> #include <MySqlBase.h> #include <Connection.h> #include <Network/GamePacketNew.h> #include <Network/PacketDef/Zone/Server...
<commit_before>#ifndef STAN_MATH_OPENCL_REV_ADD_HPP #define STAN_MATH_OPENCL_REV_ADD_HPP #ifdef STAN_OPENCL #include <stan/math/opencl/rev/adjoint_results.hpp> #include <stan/math/opencl/matrix_cl.hpp> #include <stan/math/opencl/kernel_generator.hpp> #include <stan/math/opencl/prim/sum.hpp> #include <stan/math/rev/cor...
<commit_before>#ifndef STAN_MATH_PRIM_FUN_LBETA_HPP #define STAN_MATH_PRIM_FUN_LBETA_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/prim/err.hpp> #include <stan/math/prim/fun/constants.hpp> #include <stan/math/prim/fun/inv.hpp> #include <stan/math/prim/fun/is_any_nan.hpp> #include <stan/math/prim/fun/lgamm...
<commit_before>#include <QDebug> #include "tangramwidget.h" #include <tangram.h> #include <curl/curl.h> #include <cstdlib> #include <QOpenGLContext> #include <QOpenGLFunctions> #include "platform_qt.h" #include <GL/gl.h> #include <GL/glx.h> #include <QRunnable> PFNGLBINDVERTEXARRAYPROC glBindVertexArrayOESEXT = 0; PF...
<commit_before>#include "fluidsystem.h" #include "camera.h" #include "vertexrecorder.h" #include <iostream> #include <math.h> #include "particle.h" #include "wall.h" using namespace std; // your system should at least contain 8x8 particles. const int N = 5; <<<<<<< HEAD const float PARTICLE_RADIUS = ....
<commit_before>/*! * Copyright by Denys Khanzhiyev aka xdenser * * See license text in LICENSE file */ /** * Include headers * * @ignore */ #include "./fb-bindings-connection.h" #include "./fb-bindings-fbresult.h" #include "./fb-bindings-fbeventemitter.h" #include "./fb-bindings-eventblock.h" #include "./fb-...
<commit_before>namespace mant { namespace bbob2009 { class WeierstrassFunction : public BlackBoxOptimisationBenchmark2009 { public: inline explicit WeierstrassFunction( const unsigned int& numberOfDimensions) noexcept; inline void setParameterRotationR( const arma::M...
<commit_before>#ifndef _WHERE_CLAUSES_HPP #define _WHERE_CLAUSES_HPP #include "int_sequence.hpp" #include "lexical_cast.hpp" #include "nth_type_of.hpp" #include "record.hpp" #include "type_sequence.hpp" #include <string> #include <sstream> namespace fp { template<typename, int> struct field; namespace where...
<commit_before>/* * Copyright 2015 - 2018 gtalent2@gmail.com * * 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/. */ #pragma once #include "defines.hpp" #include "e...
<commit_before>//===-- sanitizer_symbolizer_itanium.cc -----------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include <iostream> #include <iterator> #include <memory> #include <sstream> #include <string> #include "view.h" namespace derecho { using std::string; using std::shared_ptr; SubView::SubView(int32_t num_members) : mode(Mode::ORDERED), members(num_members), is_sender(num_m...
<commit_before>/* * Copyright (C) 2016 Rhys Ulerich * * 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/. */ #ifndef DESCENDU_HEX_H #define DESCENDU_HEX_H #include <...
<commit_before>/**************************************************************************************/ /* */ /* Visualization Library */ /* http://www.visualizationlibrary.or...
<commit_before>#include "config.h" #include "libs/mpq_libmpq04.h" int main() { MPQArchive locale(WOW_INSTALL_DIR"Data/"WOW_LOCALE"/locale-"WOW_LOCALE".MPQ"); MPQFile wmc("DBFilesClient\\WorldMapContinent.dbc"); printf("size: %i\n", wmc.getSize()); return 0; } <commit_msg>Extract data from WorldMapContinent.dbc.<c...
<commit_before>/*! * File: guiManager.cpp * * Description: Implements gui manager */ #include <guiManager.hpp> #include <gui.hpp> #include <inputManager.hpp> #include <assert.h> /*! * @fn GUIManager::GUIManager() * @brief Constructor method for general user interface * @return A GUIManager object */ GUI...
<commit_before>#pragma once #include <cstdint> #include <string> #include <boost/asio.hpp> #include "blackhole/utils/unique.hpp" #include "backend.hpp" #include "connect.hpp" namespace blackhole { namespace sink { namespace socket { template<> class boost_backend_t<boost::asio::ip::tcp> { typedef boost::asi...
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __ * / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\ * / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / / * / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / / * / /_// /\ / /_// / ...
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __ * / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\ * / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / / * / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / / * / /_// /\ / /_// / ...
<commit_before>// Copyright (C) 2012, Chris J. Foster and the other authors and contributors // 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 ...
<commit_before>/* bzflag * Copyright (c) 1993 - 2004 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>/* bzflag * Copyright (c) 1993-2013 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 COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR *...
<commit_before>#include <algorithm> #include <cstring> #include <vector> #include "gtest/gtest.h" #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/filler.hpp" #include "caffe/vision_layers.hpp" #include "caffe/test/test_caffe_main.hpp" #include "caffe/test/test_gradient_check_util.hpp" using st...
<commit_before>#include "dds_stream.hpp" #include "gl_util.hpp" #include "thirdparty/shaun/sweeper.hpp" #include "thirdparty/shaun/parser.hpp" #include <iostream> #include <fstream> #include <algorithm> #include <cmath> using namespace std; GLenum DDSFormatToGL(DDSLoader::Format format) { switch (format) { cas...
<commit_before>#include <string.h> #include <stdio.h> #include "httpServer.h" #include "logging.h" HttpServer::HttpServer(int portNr) { listenSocket.listen(portNr); selector.add(listenSocket); } HttpServer::~HttpServer() { listenSocket.close(); for(unsigned int n=0; n<connections.size(...
<commit_before>#include <kaction.h> #include <klocale.h> #include "kopete.h" #include "kopetestdaction.h" #include "kopetestdaction.moc" #include "contactlist.h" /** KopeteGroupList **/ KopeteGroupList::KopeteGroupList(const QString& text, const QString& pix, const KShortcut& cut, const QObject* receiver, const char*...
<commit_before>#include <phypp.hpp> void print_help(); int main(int argc, char* argv[]) { uint_t id = npos; std::string component, sed, out; read_args(argc, argv, arg_list(seds, out, id, component)); if (seds.empty() || id == npos || component.empty()) { print_help(); return 0; } ...
<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 <ncurses.h> #include "concat_c.hh" #include "configuration.hh" #include "contents.hh" #in...
<commit_before>#include <stdlib.h> #include <unistd.h> #include <sys/time.h> #include <thread> using std::thread; #include <instruments.h> #include <instruments_private.h> #include "strategy.h" #include "estimator.h" #include "external_estimator.h" #include "estimator_registry.h" #include "strategy_evaluator.h" #inclu...
<commit_before>/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | http://www.mrpt.org/ | | ...
<commit_before>// BaseDisplay.hh for Fluxbox Window Manager // Copyright (c) 2001 - 2002 Henrik Kinnunen (fluxgen@linuxmail.org) // // BaseDisplay.hh for Blackbox - an X11 Window manager // Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net) // // Permission is hereby granted, free of charge, to any person obtaini...
<commit_before>#include "depthai-bootloader-shared/Bootloader.hpp" namespace dai { namespace bootloader { // Bootloader.hpp definitions // Requests decltype(request::UsbRomBoot::VERSION) constexpr request::UsbRomBoot::VERSION; decltype(request::UsbRomBoot::NAME) constexpr request::UsbRomBoot::NAME; decltype(request:...
<commit_before>#pragma once // TODO only include iostream/write errors in debug #include <csignal> #include <dlfcn.h> #include <functional> #include <iostream> #include <map> #include <memory> #include <string> constexpr int LOAD_MODE = RTLD_NOW; // This class should be unreachable from outside namespace { template<...
<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>// 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 "sandbox/src/interceptors_64.h" #include "sandbox/src/interceptors.h" #include "sandbox/src/filesystem_interception.h" #inclu...
<commit_before><commit_msg>sc tiled editing: Fix the conversion so that it works with zoom too.<commit_after><|endoftext|>
<commit_before><?hh //strict /** * This file is part of hhpack\codegen. * * (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\Codegen\Cli; use HHPack\Codegen\{LibraryFileGenerato...
<commit_before>#pragma once #include <domains/messaging/dispatcher.hpp> #include <domains/utils/function_traits.hpp> namespace domains { #if 0 namespace details_ { template <class Switch, class... Translators> class decoder_impl { using decoded_types = std::tuple<argument_of_t<Translators, 1>...>; static_asser...
<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 "Enemy.hpp" #include "Weapon.hpp" #include "Dialog.hpp" #include "Bullet.hpp" #include "../Resources.hpp" #include "../Math.hpp" #include <tuple> #include <random> #include <SFML/Graphics/Sprite.hpp> #include <Kunlaboro/EntitySystem.hpp> Enemy::Enemy() : Kunlaboro::Component("Game.Enemy"), mShe...
<commit_before>#include "clang/Frontend/FrontendActions.h" #include "clang/Tooling/CommonOptionsParser.h" #include "clang/Tooling/Tooling.h" #include "llvm/Support/CommandLine.h" #include "DotGenerator.h" #include "HsmAstMatcher.h" #include "HsmTypes.h" using namespace clang; using namespace clang::ast_matchers; usin...
<commit_before>#include "InputModel.hpp" #include <glm/glm.hpp> InputModel::InputModel() : m_firstMousePoll(true) {} // TODO: Handle multiple keys in a binding // TODO: Handle multiple functions in a binding void InputModel::bindKey(int key, std::function<void()> callback) { assert(m_keyBindings.count(key) == 0); ...
<commit_before>#include "../text_lib/std_lib_facilities.h" int main() { double input; double smallest = 0; double largest = 0; while (cin >> input) { if (smallest == 0 && largest == 0) { smallest = input; largest = input; } if (input < smallest) { ...