text
stringlengths
54
60.6k
<commit_before>// Copyright (c) 2014 Andrew Toulouse. // Distributed under the MIT License. #include <iostream> #include <fstream> #include <libOL/Chunks.h> #include <libOL/Rofl.h> #include <libOL/Keyframe.h> void test_keyframe() { std::ifstream ifs("../../lol-spec/analysis2/keyframes/EUW1.1617523548.1.keyframe...
<commit_before>#ifndef slic3r_Utils_hpp_ #define slic3r_Utils_hpp_ #include <locale> #include "libslic3r.h" namespace Slic3r { extern void set_logging_level(unsigned int level); extern void trace(unsigned int level, const char *message); extern void disable_multi_threading(); // Set a path with GUI resource files....
<commit_before>#include "globals.hh" #include "util.hh" #include "archive.hh" #include "args.hh" #include <algorithm> #include <map> #include <thread> #include <dlfcn.h> namespace nix { /* The default location of the daemon socket, relative to nixStateDir. The socket is in a directory to allow you to control ac...
<commit_before>#include "globals.hh" #include "util.hh" #include "archive.hh" #include "args.hh" #include <algorithm> #include <map> #include <thread> #include <dlfcn.h> #include <sys/utsname.h> namespace nix { /* The default location of the daemon socket, relative to nixStateDir. The socket is in a directory t...
<commit_before>/* * grass.cpp * * Created on: 2017年1月6日 * Author: zhuqian */ #include <materials/glass.h> #include "paramset.h" GlassMaterial* CreateGlassMaterial(const TextureParams&mp) { std::shared_ptr<Texture<Float>>eta = mp.GetFloatTexture("eta", (1.0f)); std::shared_ptr<Texture<Spectrum>> r = mp.GetS...
<commit_before>/* * Copyright (c) 2015, Christian Menard * Copyright (c) 2015, Nils Asmussen * All rights reserved. * * Redistribution and use in source and binary forms, with or without * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following ...
<commit_before>/** MiracleGrue - Model Generator for toolpathing. <http://www.grue.makerbot.com> Copyright (C) 2011 Far McKon <Far@makerbot.com>, Hugo Boyer (hugo@makerbot.com) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License a...
<commit_before>#include <iostream> #include <string> #include <memory> #include <map> #include <Lexer.hpp> #include <Parser.hpp> #include <Visitors.hpp> #include <Checker.hpp> #include <ExprStmt.hpp> #include <RefExpr.hpp> #include <IdRef.hpp> /* * WHERE I LEFT OFF: vars can be referenced on their own. * * WHAT ...
<commit_before> // pcsc #include <winscard.h> // libc #include <cstdio> #include <cstdlib> #include <cstring> // std #include <memory> #include <vector> #include <iostream> #include <iomanip> #include <sstream> namespace{ // move functions in separate module // not defined in winscard... using scard_res = declt...
<commit_before>/* Copyright (C) 2005-2007, Thorvald Natvig <thorvald@natvig.com> 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 co...
<commit_before>/********************************************************************************************************* * Phoenix.cpp * Note: Phoenix Main * Date: @2014.08 * E-mail:<forcemz@outlook.com> * Copyright (C) 2015 The ForceStudio All Rights Reserved. *********************************************************...
<commit_before>#include "yaml-cpp/ostream_wrapper.h" #include <cstring> #include <iostream> namespace YAML { ostream_wrapper::ostream_wrapper(): m_buffer(1), m_pStream(0), m_pos(0), m_row(0), m_col(0), m_comment(false) { } ostream_wrapper::ostream_wrapper(std::ostream& stream): m_pStream(&stream), m_pos(0), m_ro...
<commit_before>/* * Copyright 2016 WebAssembly Community Group participants * * 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 * * Unl...
<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 "ui/views/controls/menu/menu_config.h" #include "grit/ui_resources.h" #include "ui/base/layout.h" #include "ui/base/resource/...
<commit_before>/****************************************************************************** * AutonomousMode2.cpp - Autonomous sub-routine * * Copyright (c) 2013 FIRST Team 316, LuNaTeCs. All rights reserved. * * Code for our 2013 Robot, Sure Shot SAM * for the FRC game Ultimate Ascent * * Shoot 3, pickup & ...
<commit_before>/*************************************************************************\ ** ** tOutput.cpp: Functions for output classes tOutput and tLOutput ** ** (see tOutput.h for a description of these classes) ** ** $Id: tOutput.cpp,v 1.42 2000-06-24 20:19:21 daniel Exp $ \************************************...
<commit_before>/* * author: Max Kellermann <mk@cm4all.com> */ #ifndef PG_PARAM_WRAPPER_HXX #define PG_PARAM_WRAPPER_HXX #include "BinaryValue.hxx" #include <iterator> #include <cstdio> #include <cstddef> template<typename T> struct PgParamWrapper { PgParamWrapper(const T &t); const char *GetValue() const;...
<commit_before>/****************************************************************************** * Copyright (c) 2011, Michael P. Gerlek (mpg@flaxen.com) * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following * conditions a...
<commit_before>//***************************************************************************** // // Application.cpp // // Core class that contains the high level application logic. // // Copyright (c) 2015 Brandon To, Minh Mai, and Yuzhou Liu // This code is licensed under BSD license (see LICENSE.txt for details) // ...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * 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 ...
<commit_before>/************************************************************************* * * $RCSfile: imp_share.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: ab $ $Date: 2001-08-09 15:40:22 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>#include "bitcoinunits.h" #include <QStringList> BitcoinUnits::BitcoinUnits(QObject *parent): QAbstractListModel(parent), unitlist(availableUnits()) { } QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits() { QList<BitcoinUnits::Unit> unitlist; unitlist.append(MBTC); uni...
<commit_before>/********************************************************************* * * Software License Agreement (BSD License) * * Copyright (c) 2013, Robert Bosch LLC. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
<commit_before>#include <roerei/cpp14_fix.hpp> #include <roerei/cli.hpp> #include <boost/program_options.hpp> #include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string/classification.hpp> #include <iostream> namespace roerei { int cli::read_options(cli_options& opt, int argc, char** argv) { std:...
<commit_before>#pragma once #include <memory> #include <iterator> #include <cppconn/prepared_statement.h> namespace rusql { /*! A prepared statement, which encapsulates the result as well. While this class aims to be stateless, it does have some state, so... stay a while, and listen! You can create a statement wit...
<commit_before><commit_msg>GTK: fix DCHECK triggered when multiple ExtensionPopupGtks existed concurrently.<commit_after><|endoftext|>
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2010 Interactive Visualization and Data Analysis Group. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
<commit_before>/** @file @brief Implementation @date 2014 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2014 Sensics, 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 ...
<commit_before>#include "draw.h" void drawPixel(const int& i, const int& j, const float& red, const float& green, const float& blue); void drawLine(const int& i0, const int& j0, const int& i1, const int& j1, const float& red, const float& green, const float& blue); void drawOnPixelBuffer(); void drawCircle(const int x...
<commit_before>// // Speaker.hpp // Clock Signal // // Created by Thomas Harte on 12/01/2016. // Copyright © 2016 Thomas Harte. All rights reserved. // #ifndef Speaker_hpp #define Speaker_hpp #include <stdint.h> #include <stdio.h> #include <time.h> #include "../SignalProcessing/Stepper.hpp" #include "../SignalPro...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2006-2010 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published...
<commit_before>#include <cassert> #include <iostream> #include <pqxx/connection> #include <pqxx/subtransaction> #include <pqxx/transaction> using namespace PGSTD; using namespace pqxx; namespace { void test(connection_base &C, const string &desc) { cout << "Testing " << desc << ":" << endl; // Trivial test: cre...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // Copyright (c) Lewis Baker // Licenced under MIT license. See LICENSE.txt for details. /////////////////////////////////////////////////////////////////////////////// #include <cppcoro/when_all.hpp> #include <cppcoro/task...
<commit_before>#include <iostream> #include <fstream> #include <string> // Loriano: let's try Armadillo quick code #include <armadillo> #define ENTDIM 8 #define COORDIM (ENTDIM-2) #define PARAMDIM 5 namespace { int numofline (const char * fname) { int number_of_lines = 0; std::string line; std::i...
<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: postit.hxx,v $ * * $Revision: 1...
<commit_before>#include <string> #include <iostream> #include <fstream> #include "Matrix.hpp" <commit_msg>Update Matrix.cpp<commit_after>#include <iostream> #include "stack.hpp" <|endoftext|>
<commit_before>#include <stingray/toolkit/Factory.h> #include <stingray/toolkit/any.h> #include <stingray/app/application_context/AppChannel.h> #include <stingray/app/application_context/ChannelList.h> #include <stingray/app/scheduler/ScheduledEvents.h> #include <stingray/app/tests/AutoFilter.h> #include <stingray/ap...
<commit_before>#include <stingray/toolkit/Factory.h> #include <stingray/toolkit/any.h> #include <stingray/app/RecordErrors.h> #include <stingray/app/activation_manager/ActivationIntent.h> #include <stingray/app/application_context/AppChannel.h> #include <stingray/app/application_context/ChannelList.h> #include <sting...
<commit_before>#include <stingray/toolkit/Factory.h> #include <stingray/toolkit/any.h> #include <stingray/app/RecordErrors.h> #include <stingray/app/activation_manager/ActivationIntent.h> #include <stingray/app/application_context/AppChannel.h> #include <stingray/app/application_context/ChannelList.h> #include <sting...
<commit_before>#include <stingray/toolkit/Factory.h> #include <stingray/toolkit/any.h> #include <stingray/app/PushVideoOnDemand.h> #include <stingray/app/application_context/AppChannel.h> #include <stingray/app/application_context/ChannelList.h> #include <stingray/app/scheduler/ScheduledEvents.h> #include <stingray/a...
<commit_before>#include <stingray/toolkit/Factory.h> #include <stingray/toolkit/any.h> #include <stingray/app/PushVideoOnDemand.h> #include <stingray/app/application_context/AppChannel.h> #include <stingray/app/application_context/ChannelList.h> #include <stingray/app/scheduler/ScheduledEvents.h> #include <stingray/a...
<commit_before>// Copyright (C) 2015 National ICT Australia (NICTA) // // 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/. // -------------------------------------------...
<commit_before>#define FUTURE_TRACE 0 #include <cps/future.h> #define CATCH_CONFIG_MAIN #include "catch.hpp" using namespace cps; using namespace std; #define ok CHECK SCENARIO("future as a shared pointer", "[shared]") { GIVEN("an empty future") { auto f = future<int>::create_shared("some future"); ok(!f->is_r...
<commit_before><commit_msg>add Event debug msg<commit_after><|endoftext|>
<commit_before>/******************************************************************************* * tests/api/operations_test.cpp * * Part of Project c7a. * * Copyright (C) 2015 Alexander Noe <aleexnoe@gmail.com> * Copyright (C) 2015 Timo Bingmann <tb@panthema.net> * * This file has no license. Only Chuck Norris ...
<commit_before>// // Author: Michael Cameron // Email: chronokun@hotmail.com // // Libraries Include #include "libraries.h" // Local Includes #include "constants.h" #include "mathtypes.h" #include "vector.h" #include "geometry.h" #include "brush.h" #include "q3mapparser.h" const std::string& GetBrushString(std::strin...
<commit_before>/*************************************************************** QGVCore Copyright (c) 2014, Bergont Nicolas, 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 published by the Free Software Foundation...
<commit_before>#ifndef VEXCL_GATHER_HPP #define VEXCL_GATHER_HPP /* The MIT License Copyright (c) 2012-2018 Denis Demidov <dennis.demidov@gmail.com> 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 Softwa...
<commit_before>/* * VapourSynth D2V Plugin * * Copyright (c) 2012 Derek Buitenhuis * * This file is part of d2vsource. * * d2vsource 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 * ve...
<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 "TestFile.hpp" #in...
<commit_before>/* * GameKeeper Framework * * Copyright (C) 2013 Karol Herbst <gamekeeper@karolherbst.de> * * 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 ...
<commit_before>#include "packetcapturer.h" #include <pcap.h> #include <qdebug.h> #include <QApplication> #define ETHERTYPE_EAP (0x888e) /* eap authentication */ #define ETHER_ADDR_LEN 6 #define ETHERTYPE_IP (0x0800) namespace packetprocess { u_short recentFreq = 100; QObject* parent; #define TYPE_TCP (6) /* Eth...
<commit_before>//=====================================================================// /*! @file @brief SD カードの読み書き、サンプル @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2016 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RL78/blob/master/LICENSE */ //====...
<commit_before>#include <stdlib.h> #include <string.h> #include <stdio.h> #include <assert.h> #include <stdbool.h> #include <assert.h> #include <setjmp.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdint.h> #include "CuTest.h" #include "linked_list_queue.h" #include "raft.h" #include "raft...
<commit_before>// Copyright 2015 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>#include <stdio.h> #include <string.h> #include <unistd.h> #include <glib.h> #include <sys/stat.h> #include <boost/test/unit_test.hpp> #include "ds3.h" #include "ds3_net.h" #include "test.h" #define BUFF_SIZE 16 typedef struct { uint8_t num_threads; uint8_t ...
<commit_before>// KMail Account Manager #ifdef HAVE_CONFIG_H #include <config.h> #endif #include "kmacctmgr.h" #include "kmacctmaildir.h" #include "kmacctlocal.h" #include "kmacctexppop.h" #include "kmacctimap.h" #include "kmacctcachedimap.h" #include "kmkernel.h" #include "kmbroadcaststatus.h" #include "kmfiltermgr...
<commit_before>#include "../element.h" #include "gtest/gtest.h" #include <sstream> #include <string> #include <iostream> #include <array> #include <vector> TEST(ExceptionText, FromNum) { try { bson::Element e(4, bson::STRING); FAIL(); } catch (bson::type_error & e) { ASSERT_EQ(std::string ("Inval...
<commit_before>#include "Point.hpp" #include <math.h> namespace Slic3r { void Point::scale(double factor) { this->x *= factor; this->y *= factor; } void Point::translate(double x, double y) { this->x += x; this->y += y; } void Point::rotate(double angle, Point* center) { double cur_x = (double)t...
<commit_before>#include "sorter.h" #include <QtQml> namespace qqsfpm { Sorter::Sorter(QObject *parent) : QObject(parent) { connect(this, &Sorter::sorterChanged, this, &Sorter::onSorterChanged); } Sorter::~Sorter() = default; bool Sorter::enabled() const { return m_enabled; } void Sorter::setEnabled(bool en...
<commit_before>#pragma once /* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ #ifndef _QITYPE_TYPE_HPP_ #define _QITYPE_TYPE_HPP_ #include <typeinfo> #include <string> #include <boost/preprocessor.hpp> #include <boost/type_traits/is_function.hpp> #include <boost/mpl/if.hpp> #include <q...
<commit_before>#include "cpu.h" namespace dramsim3 { CPU::CPU(BaseDRAMSystem& memory_system) : memory_system_(memory_system), clk_(0) {} RandomCPU::RandomCPU(BaseDRAMSystem& memory_system) : CPU(memory_system) {} StreamCPU::StreamCPU(BaseDRAMSystem& memory_system) : CPU(memory_system) {} void RandomCPU::ClockT...
<commit_before>#include <cstdlib> #include <cmath> #include <fstream> #include <sstream> #include <iostream> #include <iomanip> #include <string> #include <vector> #include <algorithm> #include <exception> #include <sys/time.h> #include "modules/htmTree.h" #include "modules/kdTree.h" #include "misc.h" #include ...
<commit_before>//======================================================================= // Copyright (c) 2013-2014 Baptiste Wicht. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //==================================================...
<commit_before>/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ /* * * Created by alex devkral@web.de * * Copyright (c) 2012 * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditio...
<commit_before><commit_msg>Updated ls.cpp with -la functionality<commit_after>#include <iostream> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <dirent.h> #include <errno.h> #include <stdio.h> #include <vector> #include <string> #include <algorithm> #include <pwd.h> #include <grp.h> #include...
<commit_before>// // mc.cpp // // manage c++ code // // Created by Daniel Kozitza // #include <csignal> #include <cstdlib> #include <dirent.h> #include <fstream> #include <iomanip> #include <iostream> #include <sys/ioctl.h> #include <omp.h> #include "commands.hpp" #include "tools.hpp" #include "sorters.hpp" using nam...
<commit_before>#include "mmu.h" #include "boot.h" #include "util/log.h" #include "video/video.h" #include <cstdlib> MMU::MMU(Cartridge& inCartridge, Video& inVideo) : cartridge(inCartridge), video(inVideo) { memory = std::vector<u8>(0xFFFF); } u8 MMU::read(const Address address) const { if (address....
<commit_before>/* Copyright (c) 2009, Regents of the University of Alaska All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, th...
<commit_before>/** * pty.js * Copyright (c) 2012, Christopher Jeffrey (MIT License) * * pty.cc: * This file is responsible for starting processes * with pseudo-terminal file descriptors. * * See: * man pty * man tty_ioctl * man termios * man forkpty */ #include <v8.h> #include <node.h> #includ...
<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 "base/i18n/number_formatting.h" #include "base/format_macros.h" #include "base/logging.h" #include "base/lazy_instance.h" #in...
<commit_before><commit_msg>moved main comment block to top<commit_after><|endoftext|>
<commit_before>/******************************************************************************* * thrill/common/stat_logger.hpp * * Logger for Stat-Lines, which creates basic JSON lines * * Part of Project Thrill - http://project-thrill.org * * Copyright (C) 2015 Alexander Noe <aleexnoe@gmail.com> * * All righ...
<commit_before> int main() { }<commit_msg>started filling in movies<commit_after>// File: Source.cpp // Purpose: Main driver file for this project. // Project: ANN_MovieRatings // Author: Ryan Amaral // Created On: March 26, 2016 #include "Movie.h" using namespace std; int trainingMoviesLength = 16; // amount o...
<commit_before>#define NONIUS_RUNNER #include <nonius/main.h++> #include "../include/dict/dict.hpp" #include <unordered_map> #include <random> #include <functional> #ifdef WITH_GOOGLE_BENCH #include <sparsehash/dense_hash_map> #endif template <typename Map> void insert_test(Map& map) { for (int i = 0; i != 1000...
<commit_before>#include "NotifyIcon.h" #include <gdiplus.h> #pragma comment(lib, "gdiplus.lib") #include "Logger.h" int NotifyIcon::ids = 0; NotifyIcon::NotifyIcon(HWND hWnd, std::wstring caption, std::list<std::wstring> icons) : _level(-1), _caption(caption) { using Gdiplus::Bitmap; _id = Not...
<commit_before>#include "fpga.hpp" #include <algorithm> #include <rtos.h> #include "logger.hpp" #include "rj-macros.hpp" #include "software-spi.hpp" template <size_t SIGN_INDEX> uint16_t toSignMag(int16_t val) { return static_cast<uint16_t>((val < 0) ? ((-val) | 1 << SIGN_INDEX) : val); } template <size_t SIGN...
<commit_before>// Copyright 2016-2020 Chris Conway (Koderz). All Rights Reserved. #include "RuntimeMeshModifierAdjacency.h" #include "MessageLog.h" const uint32 EdgesPerTriangle = 3; const uint32 IndicesPerTriangle = 3; const uint32 VerticesPerTriangle = 3; const uint32 DuplicateIndexCount = 3; const uint32 PnAenDo...
<commit_before>// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "Lic...
<commit_before> #ifndef __CLIENT_HPP__ #define __CLIENT_HPP__ #include <pthread.h> #include "protocol.hpp" #include "sqlite_protocol.hpp" #include <stdint.h> #include "assert.h" #define update_salt 6830 using namespace std; /* Information shared between clients */ struct shared_t { public: shared_t(config_t *_c...
<commit_before>/* -*- mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ // vim:sts=8:sw=8:ts=8:noet:sr:cino=>s,f0,{0,g0,(0,\:0,t0,+0,=s /* * Copyright (C) FFLAS-FFPACK * Written by Pascal Giorgi <pascal.giorgi@lirmm.fr> * * This file is Free Software and part of FFLAS-FFPACK. * * ========LI...
<commit_before> // -*- mode: c++; c-basic-offset:4 -*- // This file is part of libdap, A C++ implementation of the OPeNDAP Data // Access Protocol. // Copyright (c) 2003 OPeNDAP, Inc. // Author: James Gallagher <jgallagher@opendap.org> // // This library is free software; you can redistribute it and/or // modify it u...
<commit_before>#include <iostream> #include <assert.h> #include <cppdom/predicates.h> int main() { cppdom::ContextPtr ctx( new cppdom::Context ); cppdom::Document doc( ctx ); std::string filename = "game.xml"; // load a xml document from a file try { doc.loadFile( filename ); } catch ...
<commit_before><commit_msg>worldserver: fix a bug with Protocol71::canSee<commit_after><|endoftext|>
<commit_before>#include "Settings.h" #include <Shlwapi.h> #include <algorithm> #include "Error.h" #include "HotkeyActions.h" #include "HotkeyInfo.h" #include "Logger.h" #include "Monitor.h" #include "Skin.h" #include "StringUtils.h" #define XML_AUDIODEV "audioDeviceID" #define XML_HIDE_WHENFULL "hideFullscreen" #def...
<commit_before>// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #define LOG_TAG "ArmnnDriver" #include "ArmnnDriverImpl.hpp" #include "ArmnnPreparedModel.hpp" #ifdef ARMNN_ANDROID_NN_V1_2 // Using ::android::hardware::neuralnetworks::V1_2 #include "ArmnnPreparedModel_1_2.hpp" #...
<commit_before>/************************************************************************* * * $RCSfile: PagePropertySetContext.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2004-07-13 08:21:13 $ * * 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: EventOASISTContext.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: rt $ $Date: 2008-03-12 11:14:00 $ * * The Contents of this file...
<commit_before>/** @file @brief Implementation @date 2016 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2016 Razer 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 c...
<commit_before>#include "compiler.h" #include <iostream> #include <fstream> #include <iomanip> #include <assert.h> int main() { std::ifstream input; input.open("C:\\Users\\Lonnie\\Source\\Repos\\Compiler\\Compiler\\test.txt"); std::string token; std::string lexeme; std::cout << "Token\t\tLexeme" << std::endl; ...
<commit_before> /* An example of the minimal Win32 & OpenGL program. It only works in 16 bit color modes or higher (since it doesn't create a palette). */ // clang-format off #include <stdio.h> #include <windows.h> /* must include this before GL/gl.h */ #include <GL/gl.h> /* OpenGL header file */ #include <GL/glu.h> ...
<commit_before>#include "LIBETC.H" #include <stdio.h> #include <GL/glew.h> #include <SDL.h> #include <SDL_opengl.h> #include "EMULATOR.H" #include "EMULATOR_GLOBALS.H" void(*vsync_callback)(void) = NULL; int ResetCallback(void) { return 0; } int VSync(int mode) { if (mode == 0) { if (vsync_callback != NULL) ...
<commit_before>#pragma once #include <vector> #include "SystemManager.hpp" #include "Component.hpp" #include "Entity.hpp" namespace kengine { class EntityManager : public SystemManager { public: EntityManager(size_t threads = 0) : SystemManager(threads) { detail::components = &_components; } ~EntityM...
<commit_before><commit_msg>Don't read childPointers for leafNode<commit_after><|endoftext|>
<commit_before>/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkBitmapRegionCodec.h" #include "SkAndroidCodec.h" #include "SkCodecPriv.h" #include "SkCodecTools.h" SkBitmapRegionCodec::SkBitmapRegionCodec(SkAndr...
<commit_before>#include "cps/CPS_API.hpp" #include "TestSuite.hpp" #include "Utils.hpp" #include <boost/program_options.hpp> #include <iostream> #include <cstdlib> #include <memory> #include <vector> int main(int argc, char* argv[]) { int result = EXIT_FAILURE; try { namespace po = boost::program_options;...
<commit_before>/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "BenchTimer.h" #include "PictureBenchmark.h" #include "SkBenchLogger.h" #include "SkCanvas.h" #include "SkGraphics.h" #include "SkMath.h" #include "SkO...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ChartModelHelper.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: ihi $ $Date: 2007-11-23 11:55:41 $ * * The Contents of this file ...
<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/chromeos/login/utils.h" #include "base/command_line.h" #include "base/file_path.h" #include "base/path_servic...