text
stringlengths
54
60.6k
<commit_before>#include <coffee/android/android_main.h> #include <coffee/core/coffee.h> #include <coffee/core/CDebug> #include <coffee/core/plat/graphics/eglinit.h> #include <android_native_app_glue.h> #include <android/sensor.h> #include <coffee/core/private/plat/graphics/egltypes.h> using namespace Coffee; struct...
<commit_before>/* * upb - a minimalist implementation of protocol buffers. * * Copyright (c) 2011 Google Inc. See LICENSE for details. * Author: Josh Haberman <[email protected]> * * Note! This file is a proof-of-concept for C++ wrappers and does not * yet build. * * upb::Handlers is a generic visitor-like...
<commit_before>/* Copyright (c) 2015 - present Advanced Micro Devices, Inc. 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 t...
<commit_before>#include <new> #include "types.h" #include "kernel.hh" #include "cpputil.hh" #include "spinlock.h" #include "amd64.h" #include "condvar.h" #include "proc.hh" #include "cpu.hh" #include "elf.hh" const std::nothrow_t std::nothrow; void* operator new(std::size_t nbytes) { panic("global operator new"); ...
<commit_before>// The local APIC manages internal (non-I/O) interrupts. // See Chapter 8 & Appendix C of Intel processor manual volume 3. #include "types.h" #include "amd64.h" #include "kernel.hh" #include "traps.h" #include "bits.hh" #include "cpu.hh" #include "apic.hh" // Local APIC registers, divided by 4 for use ...
<commit_before>/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>/*************************************************************************** htmllayout.cpp - HTMLLayout ------------------- begin : dim mai 18 2003 copyright : (C) 2003 by Michael CATANZARITI email ...
<commit_before>#define BOOST_LOG_DYN_LINK #include <boost/archive/iterators/binary_from_base64.hpp> #include <boost/archive/iterators/base64_from_binary.hpp> #include <boost/archive/iterators/transform_width.hpp> #include <boost/log/trivial.hpp> #include <openssl/evp.h> #include "chunky.hpp" class WebSocket { public...
<commit_before>#include "common.h" #include "trainer.h" #include "alias_table.h" #include "data_stream.h" #include "data_block.h" #include "document.h" #include "meta.h" #include "util.h" #include <vector> #include <iostream> #include <multiverso/barrier.h> #include <multiverso/log.h> #include <multiverso/row.h> name...
<commit_before>#include "MacauPrior.h" #include <SmurffCpp/IO/MatrixIO.h> #include <SmurffCpp/IO/GenericIO.h> #include <SmurffCpp/Utils/Distribution.h> #include <SmurffCpp/Utils/Error.h> #include <SmurffCpp/Utils/counters.h> #include <SmurffCpp/Utils/linop.h> #include <ios> using namespace smurff; MacauPrior::Mac...
<commit_before>//individual.cpp #include <vector> #include <cstdlib> #include <iostream> #include "individual.hpp" #include "utils.hpp" Individual::Individual(bool grow, int maxDepth, int numberOfXs){ expression = new Node(false, grow, maxDepth, numberOfXs); } Individual::~Individual(){ delete expression; }...
<commit_before>#include "queue.h" #include "listener.h" #include "log.h" #include "buffers.h" #include "lights.h" #define DROPPED_MESSAGE_LOGGING_THRESHOLD 100 typedef enum { USB = 0, UART = 1, ETHERNET = 2 } MessageType; const char messageTypeNames[][9] = { "USB", "UART", "Ethernet", }; int...
<commit_before> #include "conditions.hpp" #include "curl_data.h" using namespace std; namespace wunderground { Conditions::Conditions(string key):Weather(key) { } void Conditions::loadData(string city,string state) { MyCurl::get_file(city,state,APIkey,(char *)"conditions",(char *) "conditions.xml"); TiXmlDoc...
<commit_before>#include <mtp/ptp/Device.h> #include <mtp/ptp/Response.h> #include <mtp/ptp/Container.h> #include <mtp/ptp/Messages.h> #include <mtp/usb/Context.h> #include <mtp/ptp/OperationRequest.h> namespace mtp { msg::DeviceInfo Device::GetDeviceInfo() { OperationRequest req(OperationCode::GetDeviceInfo, 0);...
<commit_before>// Copyright (c) 2015 Giorgio Marcias // // This file is part of distance_transform, a C++11 implementation of the // algorithm in "Distance Transforms of Sampled Functions" // Pedro F. Felzenszwalb, Daniel P. Huttenlocher // Theory of Computing, Vol. 8, No. 19, September 2012 // // This source code is s...
<commit_before>/* * A wrapper that turns a growing_buffer into an istream. * * author: Max Kellermann <[email protected]> */ #include "istream_gb.hxx" #include "istream_internal.hxx" #include "growing_buffer.hxx" #include "pool.hxx" #include "util/ConstBuffer.hxx" #include <assert.h> #include <string.h> struct istre...
<commit_before>#include <cassert> #include "gravity.h" #include "nbodysimulator.h" const double NBodySimulator::kDefaultTimeInterval = 0.01; const double NBodySimulator::kDefaultGravity = 10.0; NBodySimulator::NBodySimulator(const double time_interval, const double gravity) : time_interval_(time_interval), gravit...
<commit_before>// Copyright (c) 2006-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/common/chrome_paths.h" #include "base/command_line.h" #include "base/file_util.h" #include "base/logging.h" #inc...
<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/common/plugin_group.h" #include "base/linked_ptr.h" #include "base/string_util.h" #include "base/utf_string_conversio...
<commit_before>/* * Copyright (C) 2020 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>#include <iostream> #include <map> #include <vector> #include <deque> #include <list> #include <array> #include <string> #include <sstream> #include <algorithm> const int field_size = 32; const int stone_size = 8; const int empty_val = 256; const int filled_val = 257; const int normal = 0, rot90 =...
<commit_before>/* Copyright 2016 Ivan Limar and CyberTech Labs Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
<commit_before>// Copyright (c) 2015 // Author: Chrono Law #ifndef _NGX_EVENT_HPP #define _NGX_EVENT_HPP //#include "Nginx.hpp" class NgxEvent final : public NgxWrapper<ngx_event_t> { public: typedef NgxWrapper<ngx_event_t> super_type; typedef NgxEvent this_type; public: NgxEvent(ngx_event_t* ev) : super_...
<commit_before>#include <iostream> #include <iomanip> #include <sstream> #include <stdexcept> #include <ctime> #include "kapi.hpp" #include "libjson/libjson.h" using namespace std; using namespace Kraken; //------------------------------------------------------------------------------ // deals with Trades: struct Tr...
<commit_before>/******************************************************************* KNotes -- Notes for the KDE project Copyright (c) 1997-2007, The KNotes Developers 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...
<commit_before>#pragma once #include <limits> #include <type_traits> #include "numerics/log_b.hpp" #include "numerics/scale_b.hpp" namespace principia { namespace numerics { // A constexpr implementation of the IEEE 754:2008 nextUp and nextDown // functions. template<typename SourceFormat, typename = std::...
<commit_before>/* Kopete , The KDE Instant Messenger Copyright (c) 2001-2002 by Duncan Mac-Vicar Prett <[email protected]> Viva Chile Mierda! Started at Wed Dec 26 03:12:10 CLST 2001, Santiago de Chile Kopete (c) 2002-2005 by the Kopete developers <[email protected]> *********************...
<commit_before>#ifndef STAN_MATH_PRIM_PROB_NEG_BINOMIAL_2_LPMF_HPP #define STAN_MATH_PRIM_PROB_NEG_BINOMIAL_2_LPMF_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/prim/err.hpp> #include <stan/math/prim/scal/fun/size_zero.hpp> #include <stan/math/prim/scal/fun/multiply_log.hpp> #include <stan/math/prim/scal/...
<commit_before>// Copyright 2013 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 "webcontentdecryptionmodule_impl.h" #include "base/basictypes.h" #include "base/bind.h" #include "base/logging.h" #include "base/...
<commit_before>#ifndef SLIC3RXS #include "Config.hpp" #include "Log.hpp" #include <string> namespace Slic3r { extern const PrintConfigDef print_config_def; std::shared_ptr<Config> Config::new_from_defaults() { return std::make_shared<Config>(); } std::shared_ptr<Config> Config::new_from_defaults(std::initia...
<commit_before>#ifndef SLIC3RXS #ifndef CONFIG_HPP #define CONFIG_HPP #include <initializer_list> #include <memory> #include <regex> #include "PrintConfig.hpp" #include "ConfigBase.hpp" namespace Slic3r { /// Exception class for invalid (but correct type) option values. /// Thrown by validate() class InvalidOpti...
<commit_before>#ifndef CONFIG_HPP #define CONFIG_HPP #include <initializer_list> #include <memory> #include "PrintConfig.hpp" namespace Slic3r { class Config : DynamicPrintConfig { public: static std::shared_ptr<Config> new_from_defaults(); static std::shared_ptr<Config> new_from_defaults(std::initializer_l...
<commit_before>/* * neons.cpp * * Created on: Nov 20, 2012 * Author: partio */ #include "neons.h" #include "logger_factory.h" #include "plugin_factory.h" #include <thread> #include <sstream> #include "util.h" using namespace std; using namespace himan::plugin; const int MAX_WORKERS = 16; once_flag oflag; ...
<commit_before> #include <DuiLocale> #include <QTimer> #include <QHash> #include <QObject> #include <QDebug> #include <QDBusInterface> #include <QAbstractEventDispatcher> #include <DuiInfoBanner> #include "notifier.h" #include "sysuid.h" #include "notifierdbusadaptor.h" NotifTimer::NotifTimer(int expireTimeout, QObj...
<commit_before>/* * Copyright (c) 2012 Aldebaran Robotics. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the COPYING file. */ #include <boost/filesystem.hpp> #include <locale> #include <cstdio> #include <cstdlib> #include <algorithm> #include <fcntl.h> #in...
<commit_before>// Copyright 2014 The Crashpad 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 // // Unle...
<commit_before>#include <iostream> #include <signal.h> #include <sys/stat.h> #include <thread> #include "bar.hpp" #include "config.hpp" #include "eventloop.hpp" #include "lemonbuddy.hpp" #include "registry.hpp" #include "modules/base.hpp" #include "services/builder.hpp" #include "utils/cli.hpp" #include "utils/config...
<commit_before>#ifndef GNR_INVOKE_HPP # define GNR_INVOKE_HPP # pragma once #include <functional> #include <tuple> namespace gnr { namespace detail::invoke { template <typename F, typename T> constexpr bool is_noexcept_invocable() noexcept { auto const f(static_cast<std::remove_reference_t<F>*>(nullptr)); auto...
<commit_before>/* Rapicorn * Copyright (C) 2006 Tim Janik * * 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 your option) any later versio...
<commit_before>// Copyright 2006-2008 The RE2 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 "util/test.h" #include "util/thread.h" #include "re2/prog.h" #include "re2/re2.h" #include "re2/regexp.h" #include "re2/testing/r...
<commit_before>#include <cmath> #include <functional> #include <set> #include <vector> #define NANOSVG_IMPLEMENTATION #include "nanosvg.h" #include "png.h" void IterateCubicBeziers(NSVGshape* shape, const std::function<void(const float*)>& f) { for (auto path = shape->paths; path; path = path->next) { fo...
<commit_before><commit_msg>coverity#1209001 Unchecked return value<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: pagepar.cxx,v $ * * $Revision: 1.1.1.1 $ * * last change: $Author: hr $ $Date: 2000-09-19 00:16:15 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>/************************************************************************* * * $RCSfile: xiview.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: vg $ $Date: 2005-02-21 13:46:08 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>/************************************************************************* * * $RCSfile: dapidata.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: nn $ $Date: 2000-10-20 09:15:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: dapitype.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: vg $ $Date: 2007-02-27 13:01:52 $ * * The Contents of this file are made ...
<commit_before><commit_msg>resolved #i119960# paste single line with quotes<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: solver.hxx,v $ * * $Revision: 1.1 $ * * last change: $Author: nn $ $Date: 2008-02-15 15:19:59 $ * * The Contents of this file are made av...
<commit_before>/* ptmatlab.cc - Java Native Interface to the matlab engine API Copyright (c) 1998-2005 The Regents of the University of California and Research in Motion Limited. All rights reserved. Permission is hereby granted, without written agreement and without license or royalty fees, to use, copy, modify,...
<commit_before>/* =========================== * * Copyright (c) 2013 Philippe Tillet - National Chiao Tung University * * CLICA - Hybrid ICA using ViennaCL + Eigen * * License : MIT X11 - See the LICENSE file in the root folder * ===========================*/ #include "Eigen/Dense" #include "tests/b...
<commit_before>// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "xwalk/runtime/common/xwalk_paths.h" #include "base/file_util.h" #include "base/files/file_path.h" #include "base/logging.h" #in...
<commit_before>// Copyright © 2012, Université catholique de Louvain // 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 not...
<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>/** * \file * \brief rawFifoQueueTestCases object definition * * \author Copyright (C) 2014 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * 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 *...
<commit_before>// RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s struct non_trivial { non_trivial(); non_trivial(const non_trivial&); non_trivial& operator = (const non_trivial&); ~non_trivial(); }; union bad_union { // expected-note {{marked deleted here}} non_trivial nt; }; bad_union u; // expected-e...
<commit_before>// RUN: %clangxx_asan -fsanitize-coverage=func,trace-pc-guard -DSHARED %s -shared -o %dynamiclib -fPIC %ld_flags_rpath_so // RUN: %clangxx_asan -fsanitize-coverage=func,trace-pc-guard %s %ld_flags_rpath_exe -o %t // RUN: rm -rf %T/coverage-reset && mkdir -p %T/coverage-reset && cd %T/coverage-reset // RU...
<commit_before>// The libMesh Finite Element Library. // Copyright (C) 2002-2019 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner // 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; eit...
<commit_before>/** * SFCGAL * * Copyright (C) 2012-2013 Oslandia <[email protected]> * Copyright (C) 2012-2013 IGN (http://www.ign.fr) * * 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 ...
<commit_before> /* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SampleCode.h" #include "SkView.h" #include "SkCanvas.h" #include "SkGradientShader.h" #include "SkGraphics.h" #include "SkImageDecoder.h" #include "Sk...
<commit_before>// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #include "PerspectiveSample.h" #include "MainMenu.h" using namespace std; using namespace ouzel; PerspectiveSample::PerspectiveSample(Samples& aSamples): samples(aSamples), backButton("button.png", "button_selecte...
<commit_before>/*++ Copyright (c) 2013 Microsoft Corporation Module Name: maxsmt.cpp Abstract: MaxSMT optimization context. Author: Nikolaj Bjorner (nbjorner) 2013-11-7 Notes: --*/ #include <typeinfo> #include "maxsmt.h" #include "fu_malik.h" #include "maxres.h" #include "maxhs.h" #include "bcd2...
<commit_before>/* Segments are organized into a list (vector) such that any object that serves as a center (reference) for a body appears earlier a 'center' appears earlier in the list than any object tha (such as barycenters) are placed before any bodies that are computed with reference to them. ...
<commit_before>/* * W.J. van der Laan 2011-2012 */ #include <QApplication> #include <QTimer> #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #include "guiutil.h" #include "util.h" #include "guiconstants.h" #include "init.h" #include "ui_interface.h" #include "qti...
<commit_before>/* * W.J. van der Laan 2011-2012 */ #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #include "guiutil.h" #include "guiconstants.h" #include "init.h" #include "ui_interface.h" #include "qtipcserver.h" #include <QApplication> #include <QMessageBox> #i...
<commit_before>/* * W.J. van der Laan 2011-2012 * The PPCoin Developers 2013 */ #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #include "guiutil.h" #include "init.h" #include "ui_interface.h" #include "qtipcserver.h" #include <QApplication> #include <QMessageBox...
<commit_before>/* * Copyright 2014, Nicolas Mansard, LAAS-CNRS * * This file is part of eigenpy. * eigenpy 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 3 of * the License, or (a...
<commit_before>/************************************************************************* * * Copyright 2016 Realm 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....
<commit_before>/************************************************************************* * * REALM CONFIDENTIAL * __________________ * * [2011] - [2015] Realm Inc * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Realm Incorporated and its suppliers, * i...
<commit_before>// Copyright (c) 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. #include <rpc/client.h> #include <rpc/protocol.h> #include <util.h> #i...
<commit_before>// Copyright (C) 2015 sails Authors. // All rights reserved. // // Official git repository and contact information can be found at // https://github.com/sails/sails and http://www.sailsxu.com/. // // Filename: client_rpc_channel.cc // // Author: sailsxu <[email protected]> // Created: 2015-04-23 16:03:07...
<commit_before>// This file is part of MorphoDiTa. // // Copyright 2013 by Institute of Formal and Applied Linguistics, Faculty of // Mathematics and Physics, Charles University in Prague, Czech Republic. // // MorphoDiTa is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser Ge...
<commit_before>// Copyright 2013, Kay Hayen, mailto:[email protected] // // Part of "Nuitka", an optimizing Python compiler that is compatible and // integrates with CPython, but also works on its own. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this fi...
<commit_before>#ifndef ITER_COMPRESS_H_ #define ITER_COMPRESS_H_ #include "iterbase.hpp" #include <utility> #include <iterator> #include <initializer_list> namespace iter { //Forward declarations of Compressed and compress template <typename Container, typename Selector> class Compressed; template ...
<commit_before>//Author: Julian Yi //Date Created: 18 July 2017 //File Description: .cpp file for the Knight class #include <iostream> #include <string> #include "pieces.h" #include "knight.h" void move(int newXCoordinate, int newYCoordinate) { setxCoordinate(newXCoordinate); setyCoordinate(newYCoordinate); //TODO:...
<commit_before>#include "shuttle.h" #include <iterator> #include <algorithm> #include "proto/app_master.pb.h" #include "common/rpc_client.h" namespace baidu { namespace shuttle { const static int sDefaultRpcTimeout = 5; class ShuttleImpl : public Shuttle { public: ShuttleImpl(const std::string& master_addr); ...
<commit_before>/* * Copyright (C) 2015 Luke San Antonio * All rights reserved. */ #include "sdl_helper.h" #include "common/log.h" namespace redc { SDL_Init_Lock::SDL_Init_Lock(SDL_Init_Lock&& l) : window(l.window), gl_context(l.gl_context) { l.window = null...
<commit_before>/* * Copyright 2009 by Chani Armitage <[email protected]> * Copyright 2013 by Thorsten Staerk <[email protected]> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation;...
<commit_before>/* * Copyright 2010, 2011 Esrille 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 applic...
<commit_before>#include "networkmanager.h" #include "serverbase.h" #include <QRegularExpression> #include <QRegularExpressionMatch> #include <QRegularExpressionMatchIterator> #include <QNetworkReply> #include <QNetworkRequest> #include <QUrl> #include <QUrlQuery> #include <QDebug> ServerBase::ServerBase(QObject *pa...
<commit_before>#include <ESP8266mDNS.h> #include <ESP8266WebServer.h> #include <ArduinoOTA.h> #include <FS.h> #include "Pcd8544.h" #include "config.h" #define WIFI_AP_SSID "ESPdust" #define WIFI_AP_PASS "dustdust" extern pcd8544::Pcd8544 display; extern struct Configuration config; ESP8266WebServer server(80); stat...
<commit_before>#include <ESP8266mDNS.h> #include <ESP8266WebServer.h> #include <ArduinoOTA.h> #include "Pcd8544.h" #include "wifi_sta_pass.h" #define WIFI_AP_SSID "ESPdust" #define WIFI_AP_PASS "dustdust" extern pcd8544::Pcd8544 display; ESP8266WebServer server(80); void setup_setup(void) { display.clear(); ...
<commit_before>#include <assert.h> #include <swnt/Water.h> #include <swnt/HeightField.h> Water::Water(HeightField& hf) :height_field(hf) ,win_w(0) ,win_h(0) ,prog(0) ,vert(0) ,frag(0) ,flow_tex(0) ,normals_tex(0) ,noise_tex(0) ,diffuse_tex(0) ,foam_tex(0) ,force_tex0(0) ,color_tex(0) ,max_d...
<commit_before>#include "otc/write_dot.h" #include <algorithm> #include "otc/embedded_tree.h" #include "otc/embedding.h" #include "otc/tree.h" #include "otc/tree_data.h" #include "otc/tree_iter.h" #include "otc/tree_operations.h" namespace otc { typedef std::pair<const NodeWithSplits *, std::string> ToDotKey; typedef ...
<commit_before>/*! * \author David * \date 18-May-16. */ #include <cstring> #include <utility> #include "utils.hpp" #include "logger.hpp" namespace nova { // taken from https://www.fluentcpp.com/2017/04/21/how-to-split-a-string-in-c/ std::vector<std::string> split(const std::string &s, char delim) { ...
<commit_before>// Copyright 2015-2019 Elviss Strazdins. All rights reserved. #include <system_error> #include "CursorWin.hpp" namespace ouzel { namespace input { CursorWin::CursorWin(SystemCursor systemCursor) { switch (systemCursor) { case SystemCursor:...
<commit_before>#include "Players/Alan_Turing_AI.h" #include <vector> #include <cmath> #include "Game/Board.h" #include "Moves/Move.h" #include "Game/Piece.h" #include "Game/Game_Result.h" #include "Game/Color.h" #include "Moves/Threat_Generator.h" const Move& Alan_Turing_AI::choose_move(const Board& board, const Clo...
<commit_before>#include "video.h" #include "../cpu/cpu.h" #include "../util/bitwise.h" #include "../util/log.h" using bitwise::check_bit; Video::Video(std::shared_ptr<Screen> inScreen, CPU& inCPU, MMU& inMMU) : screen(inScreen), cpu(inCPU), mmu(inMMU), buffer(FRAMEBUFFER_SIZE, FRAMEBUFFER_SIZE) { } ...
<commit_before>/* * Widget reference functions. * * author: Max Kellermann <[email protected]> */ #include "widget_ref.hxx" #include "pool.hxx" #include "util/IterableSplitString.hxx" #include <string.h> const struct widget_ref * widget_ref_parse(struct pool *pool, const char *_p) { const struct widget_ref *root...
<commit_before>// Copyright 2004-present Facebook. All Rights Reserved. #include <gtest/gtest.h> #include <glog/logging.h> #include "osquery/core/darwin/test_util.h" #include "osquery/database.h" #include "osquery/filesystem.h" using namespace osquery::core; namespace pt = boost::property_tree; namespace osquery { ...
<commit_before>/************************************************************************* * * $RCSfile: onefuncstarter.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: lla $ $Date: 2003-01-09 11:46:16 $ * * The Contents of this file are made available subject to the terms of * either of the followin...
<commit_before>/************************************************************************* * * $RCSfile: condfrmt.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: dr $ $Date: 2002-03-13 11:43:13 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before><commit_msg>sc tiled editing: Show the cell cursor as a rect, not as a frame.<commit_after><|endoftext|>
<commit_before><commit_msg>no default LTR mode does not mean RTL, fdo#68097<commit_after><|endoftext|>
<commit_before>/*************************************************************************/ /* split_container.cpp */ /*************************************************************************/ /* This file is part of: */ /...
<commit_before>#include <execinfo.h> // backtrace, backtrace_symbols #include <cxxabi.h> // __cxa_demangle #include <stdio.h> #include <stdlib.h> #include <vector> #include <iostream> #include "system_functions.hpp" std::string aff3ct::tools::get_back_trace(int first_call) { std::string bt_str; #if (defined(__GN...
<commit_before>// -*-mode: c++; indent-tabs-mode: nil; -*- #include <iostream> #include <fstream> #include <sys/types.h> // opendir #include <dirent.h> // opendir #include <sys/types.h> // stat #include <sys/stat.h> // stat #include <unistd.h> // stat #include <limits.h> // realpath #include <stdlib.h> ...
<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>#if !defined(WIN32) #pragma implementation "HashTable.h" #pragma implementation "Set.h" #endif #include <math.h> #include "condor_accountant.h" #include "condor_debug.h" #include "condor_config.h" #include "condor_state.h" #include "condor_common.h" #include "condor_attributes.h" //-------------------...
<commit_before>// XAST Packer by yosh778 #include <string> #include <iostream> #include <algorithm> #include <fstream> #include <cinttypes> #include <boost/filesystem.hpp> #define ALIGN_16(n) ((n / 0x10 + (n % 0x10 ? 1 : 0)) * 0x10) #define RBUF_SIZE 0x1000000 using namespace boost::filesystem; void write32(std::f...
<commit_before>////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007-2016 musikcube team // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: //...