text
stringlengths
54
60.6k
<commit_before>/* * VTKExporter.cpp * * Created on: 9 sept. 2009 * Author: froy */ #include "VTKExporter.h" #include <sofa/core/ObjectFactory.h> #include <sofa/core/objectmodel/KeypressedEvent.h> #include <sofa/core/objectmodel/KeyreleasedEvent.h> namespace sofa { namespace component { namespace misc {...
<commit_before>#pragma once #include <vector> #include "geom.hpp" #include "global_config.hpp" #include "lattice.hpp" namespace mocc { class Plane { public: Plane(const std::vector<const Lattice*> &lattices, size_t nx, size_t ny); const Lattice& at(size_t ix, size_t iy) const...
<commit_before><commit_msg>Fix build breakage at r30320.<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2006-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 "base/thread.h" #include "base/lazy_instance.h" #include "base/string_util.h" #include "base/thread_local.h" #include "b...
<commit_before>/// /// @file D3.cpp /// @brief Simple demonstration implementation of the D(x, y) formula /// in Xavier Gourdon's prime counting algorithm. This /// implementation runs single threaded and does not use the /// highly optimized Sieve.cpp. /// /// This implementation uses the ...
<commit_before><commit_msg>Fix for slider labels<commit_after><|endoftext|>
<commit_before><commit_msg>replace ByteString::Fill<commit_after><|endoftext|>
<commit_before>#include "io/file_io.hpp" #include <stdexcept> #include <fstream> #include "core/pll/pllhead.hpp" #include "seq/MSA.hpp" #include "util/constants.hpp" #include "core/pll/pll_util.hpp" #include "util/logging.hpp" typedef struct fasta_record_s { pll_fasta_t* file; char * sequence = NULL; char * h...
<commit_before><commit_msg>[test...diffusion-ipdg] fix element_integral usage<commit_after><|endoftext|>
<commit_before>#pragma once #include "PinNames.h" // ** PIN DECLARATIONS ============================= ** // This defines the mbed pins used for the primary SPI data bus. const PinName RJ_SPI_MOSI = p5; const PinName RJ_SPI_MISO = p6; const PinName RJ_SPI_SCK = p7; // This defines the Accel/Gyro's interrupt pin. co...
<commit_before>#include <cstdlib> #include <iostream> #include <cmath> #include <ctime> #include <string> #include <vector> #include <fstream> #include <algorithm> #include <Eigen/Dense> using Eigen::MatrixXd; using Eigen::VectorXd; using namespace std; const int MATCH_MIN = 0; const int MATCH_MAX = 1; /* * readMat...
<commit_before>/************************************************************************* * * $RCSfile: LConnection.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2004-09-08 16:20:00 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>// ------------------------------------------------------------------------- // @FileName NFIClusterClientModule.hpp // @Author LvSheng.Huang // @Date 2015-01-4 // @Module NFIClusterClientModule // // ------------------------------------...
<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 "content/shell/browser/shell_browser_main_parts.h" #include "base/base_switches.h" #include "base/bind.h" #include "base/command_...
<commit_before>/* -*- mode: c++; c-basic-offset:4 -*- dialogs/lookupcertificatesdialog.cpp This file is part of Kleopatra, the KDE keymanager Copyright (c) 2008 Klarälvdalens Datakonsult AB Kleopatra is free software; you can redistribute it and/or modify it under the terms of the GNU General Publ...
<commit_before>/*! @file @author Albert Semenov @date 12/2008 @module */ #include "precompiled.h" #include "DemoKeeper.h" #include "MyGUI_LayerKeeper.h" namespace demo { MyGUI::VectorWidgetPtr all_widgets; void diagnosticRenderItem(MyGUI::WidgetPtr _widget) { //return; // , , 0, // ...
<commit_before>//===-- AsmPrinterInlineAsm.cpp - AsmPrinter Inline Asm Handling ----------===// // // 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) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the Qt Build Suite. ** ** Commercial License Usage ** Licensees holding valid commercial Qt ...
<commit_before>/*-------------------------------------------------------------------------- File : timer_hf_nrf5x.cpp Author : Hoang Nguyen Hoan Sep. 7, 2017 Desc : timer class implementation on Nordic nRF5x series using high frequency timer (TIMERx) Copyright (c) 2017, I-SYST inc., all rights res...
<commit_before>/* * A client for the logging protocol. * * author: Max Kellermann <mk@cm4all.com> */ #include "log_client.hxx" #include <daemon/log.h> #include <glib.h> #include <assert.h> #include <unistd.h> #include <sys/socket.h> #include <errno.h> #include <string.h> struct LogClient { int fd; size...
<commit_before><commit_msg>Ensure object host streams are closed on disconnect.<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2015-2016 Andrew Sutton // All rights reserved #include "parser.hpp" #include "ast.hpp" #include <iostream> namespace banjo { namespace { // Returns a spelling for the current token. If the token // stream is at the end of input, then the spelling will // reflect that state. String...
<commit_before>/* * Copyright (C) 2015-present ScyllaDB */ /* * SPDX-License-Identifier: AGPL-3.0-or-later */ #include "failure_detector.hh" #include "api/api-doc/failure_detector.json.hh" #include "gms/failure_detector.hh" #include "gms/application_state.hh" #include "gms/gossiper.hh" namespace api { namespace ...
<commit_before>// Copyright (C) 2010 - 2014 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and The University // of Manchester. // All rights reserved. // Copyright (C) 2008 - 2009 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., EML Research, gGmbH, Universi...
<commit_before>// // main_image.c // climso-auto // // Created by Maël Valais on 21/04/2014. // Copyright (c) 2014 Maël Valais. All rights reserved. // #define IMPULSION_PIXEL_H 25 //ms #define IMPULSION_PIXEL_V 25 //ms #define PIN_NORD 12 #define PIN_SUD 11 #define PIN_EST 10 #define PIN_OUEST 9 #defin...
<commit_before>//===- ScalarReplAggregates.cpp - Scalar Replacement of Aggregates --------===// // // This transformation implements the well known scalar replacement of // aggregates transformation. This xform breaks up alloca instructions of // aggregate type (structure or array) into individual alloca instructions ...
<commit_before>// Copyright (c) 2017 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>#include <errno.h> #include <math.h> #include <QCloseEvent> #include <QDateTime> #include <QMessageBox> #include "mainwindow.h" #include "ui_mainwindow.h" const char MainWindow::pol_pm[] = "<span style='font-weight:600;'><span style='color:#ff0000;'>+</span> <span style='color:#0000ff...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distributed WIT...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: DColumns.cxx,v $ * * $Revision: 1.15 $ * * last change: $Author: obo $ $Date: 2006-09-17 02:21:07 $ * * The Contents of this file are mad...
<commit_before>// @(#)root/thread:$Id$ // Author: Danilo Piparo August 2017 /************************************************************************* * Copyright (C) 1995-2017, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: irendermodule.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: kz $ $Date: 2005-11-02 12:45:24 $ * * The Contents of this file are ...
<commit_before>// Copyright (c) 2003 Daniel Wallin and Arvid Norberg // 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...
<commit_before>// Copyright 2012 the V8 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. // Platform-specific code for Linux goes here. For the POSIX-compatible // parts, the implementation is in platform-posix.cc. #include <...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: clipboardmanager.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: obo $ $Date: 2006-09-17 16:56:12 $ * * The Contents of this file ...
<commit_before>#include "mccdisplayfilter.h" #include <QRect> #include <QColor> #include <QBrush> #include <iostream> #include <QFont> using namespace std; MCCDisplayFilter::MCCDisplayFilter(QObject *parent) : QObject(parent) { setName("MCC Display Filter"); ///read file } bool MCCDisplayFilter::init(Filte...
<commit_before>#include "arithmetics.hpp" #include "gtest/gtest.h" TEST(AddTest, PerformsAdditionOnTwoIntegers) { EXPECT_EQ(2, arithmetics::add(1, 1)); EXPECT_EQ(2, arithmetics::add_buggy(1, 1)); } int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }<commit_msg>S...
<commit_before>/* 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 version. This program is distributed in the hope t...
<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>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2008 Daniel Gomez Ferro <dgomezferro@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser...
<commit_before>/* proxyImage.cpp Arsh Chauhan 05/02/2016 Source for class Proxyimage */ #include "proxyImage.hpp" Proxyimage::Proxyimage(string fileName): fileName_(fileName) { cout << "Proxy image created for file " << fileName << endl; } void Proxyimage::display() { realImage_ = Realimage(fileName_); realI...
<commit_before>#include "ppasskeeper.h" #include "tokenizer.h" #include <string> #include <iostream> #include <fstream> #include <string.h> #include "safelock.h" #define STR_STRING "str :" #define BLOB_STRING "blob:" //Parameters std::map<std::string, cvariant> parameters; std::map<std::string, ppk_settings_group*> ...
<commit_before>// Copyright (c) 2020 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>// // frame-io.cpp // // Created by Peter Gusev on 17 March 2016. // Copyright 2013-2016 Regents of the University of California // #include <stdexcept> #include <sstream> #include <fcntl.h> #include <errno.h> #include <string.h> #include <stdlib.h> #include <errno.h> #include <sys/types.h> #include <...
<commit_before>#pragma once #include <rai/lib/interface.h> #include <rai/secure/common.hpp> #include <boost/asio.hpp> #include <bitset> #include <xxhash/xxhash.h> namespace rai { using endpoint = boost::asio::ip::udp::endpoint; bool parse_port (std::string const &, uint16_t &); bool parse_address_port (std::string...
<commit_before>/** \file RegexMatcher.cc * \brief Implementation of the RegexMatcher class. * \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de) * * \copyright 2015,2017,2018 Universitätsbibliothek Tübingen. All rights reserved. * * This program is free software: you can redistribute...
<commit_before>// The libMesh Finite Element Library. // Copyright (C) 2002-2012 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>#include "FImage.h" #include <sys/time.h> using namespace FImage; int main(int argc, char **argv) { Var x; Func f, g; printf("Defining function...\n"); f(x) = 2.0f; g(x) = f(x+1) + f(x-1); Var xo, xi; g.split(x, xo, xi, 4); //f.chunk(xi); f.chunk(xi, Range(xo*4, ...
<commit_before>// // yas_operation.cpp // #include "yas_operation.h" #include <atomic> #include <deque> #include <mutex> #include <thread> #include <vector> #include "yas_stl_utils.h" using namespace yas; #pragma mark - operation class operation::impl : public base::impl, public controllable_operation::impl { p...
<commit_before>#include <string> #include <cstring> #include <cassert> #include <cmath> #include <unordered_map> #include <unordered_set> #include <algorithm> #include <iostream> #include <fstream> #include <sstream> #include <getopt.h> #include "rolling.h" #include "city.h" /* as per instructions at top of stb_image_...
<commit_before>#include <iostream> #include <gtest/gtest.h> #include <thread> #include <chrono> #include <msgrpc/thrift_struct/thrift_codec.h> using namespace std; using namespace std::chrono; #include "demo/demo_api_declare.h" #if 0 #define ___methods_of_interface___IBuzzMath(_, ...) \ _(1, R...
<commit_before>#include "merkle.h" #define NEWDB #ifdef NEWDB ptr<dbfe> db = NULL; #else database *db = NULL; #endif #ifdef NEWDB #define DBNAME "tmpdb" #endif ptr<dbrec> FAKE_DATA = New refcounted<dbrec> ("FAKE", strlen ("FAKE")); void dumpdb () { merkle_hash prevkey(0); warn << ">> dumpdb\n"; ptr<dbEnumerat...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file *...
<commit_before>#include "unit_morph.h" #include <hook_tools.h> #include <SCBW/api.h> #include <cassert> namespace { //-------- CMDRECV_UnitMorph --------// const u32 Func_AddUnitToBuildQueue = 0x00467250; bool addUnitToBuildQueue(const CUnit *unit, u16 unitId) { static u32 result; u32 unitId_ = unitI...
<commit_before> #include <signalzeug/ScopedConnection.h> namespace signalzeug { ScopedConnection::ScopedConnection() { } ScopedConnection::ScopedConnection(const Connection & connection) : m_connection(connection) { } ScopedConnection::ScopedConnection(ScopedConnection && other) : m_connection(other.m_connecti...
<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>/* * Copyright 2014 David Moreno Montero <dmoreno@coralbits.com> * * 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 * * U...
<commit_before>/** * test.cpp - Unit tests * @author Dmitry Ustyugov, Pavel Zaichenkov * Copyright 2009 MDSP team */ #include "memory.h" #include "operation.h" #include "register_file.h" #include "cout_wrapper.h" void testByte() { Byte a( 7); Byte b( 7); Byte c = a&b; b.setBinOut()...
<commit_before>#include "scene_editor_canvas.h" #include "halley/core/game/scene_editor_interface.h" #include "src/project/core_api_wrapper.h" using namespace Halley; SceneEditorCanvas::SceneEditorCanvas(String id, Resources& resources, const HalleyAPI& api) : UIWidget(std::move(id)) , api(api) , resources(resourc...
<commit_before>#include <dirent.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <string.h> #include <string> #include <boost/multiprecision/cpp_int.hpp> #include <map> #include <sys/mman.h> #include <openssl/evp.h> typedef off_t fsize_t; class File { public: __ino_t inode; std::string...
<commit_before>/* * IP address for the multicast group 224.0.0.224 * Port for multicast group 45454 * * * broadcasts are of the format * [type][channel][nick][contents] * type is a 4 byte string, currently "edct" for normal edicts, "mdct" for medicts. * channel is a 64 byte string which contains the destination...
<commit_before>#include "KVMainWindow.h" #include <QMenuBar> #include <QMenu> #include <QWebFrame> #include <QMessageBox> #include <QInputDialog> #include <QFile> #include <QUrl> #include <QUrlQuery> #include <QApplication> #include <QNetworkProxy> #include <QSettings> #include <QStandardPaths> #include <QDebug> KVMai...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: scanunx.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: obo $ $Date: 2006-09-16 13:28:01 $ * * The Contents of this file are made ...
<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 "base/native_library.h" #include "base/path_service.h" #include "base/strings/utf_string_conversions.h" #include "xwalk/extension...
<commit_before>/* <x0/plugins/ssl/ssl.cpp> * * This file is part of the x0 web server project and is released under LGPL-3. * http://www.xzero.ws/ * * (c) 2009-2010 Christian Parpart <trapni@gentoo.org> */ #include "SslContext.h" #include "SslDriver.h" #include "SslSocket.h" #include <x0/http/HttpPlugin.h> #incl...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU ...
<commit_before>#include "vm.hpp" #include "prelude.hpp" #include "environment.hpp" #include "internal_threads.hpp" #include "builtin/native_method.hpp" #include "dtrace/dtrace.h" #include "util/logger.hpp" namespace rubinius { using namespace utilities; #define AUXILIARY_THREAD_STACK_SIZE 0x100000 InternalTh...
<commit_before>#include <iostream> #include <cmath> #include <fstream> #include <cstdio> #include <sstream> #include <cassert> #include <vector> #include <string> #include <cstdlib> #include <iomanip> #include "bond_angle.h" using namespace std; extern unsigned int totalatoms; //referring to totalatoms in extraction...
<commit_before>#include "Platform.hpp" #include "genome.pb.h" #include "CellComponent.hpp" #include "ActivityStats.hpp" #include "Neuron.hpp" #include "Branch.hpp" #include "Synapse.hpp" #include "Base64.hpp" #include "Brain.hpp" #include "SimpleProteinEnvironment.hpp" #include <time.h> namespace Elysia { void testTwo...
<commit_before>// Copyright (c) 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 <chainparams.h> #include <consensus/merkle.h> #include <consensus/validation.h> #include <core_io.h> #incl...
<commit_before>// Copyright (c) 2013-2017 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 <hash.h> #include <utilstrencodings.h> #include <test/test_bitcoin.h> #include <vector> #include <b...
<commit_before> #include "common_headers.h" #include "all_tests.h" #include "common.h" #include "errors.h" namespace circa { void register_branch_tests(); void register_builtin_function_tests(); void register_list_tests(); void register_parser_tests(); void register_primitive_type_tests(); void register_subroutine_t...
<commit_before>#include <QtGlobal> #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)) #include <QtWidgets> #else #include <QtGui> #endif #include <QtNetwork> #include <QStringList> #include <QSettings> #include "settings-mgr.h" #include "account-mgr.h" #include "seafile-applet.h" #include "api/api-error.h" #include "api/r...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2019 The Syscoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <util/validation.h> #include <consensus/validation.h> #i...
<commit_before>/** \copyright * Copyright (c) 2013, Balazs Racz * 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,...
<commit_before>/* * This material contains unpublished, proprietary software of * Entropic Research Laboratory, Inc. Any reproduction, distribution, * or publication of this work must be authorized in writing by Entropic * Research Laboratory, Inc., and must bear the notice: * * "Copyright (c) 1990-1996 En...
<commit_before>// Copyright 2013 Tanel Lebedev #include "./websocket_client.h" #include <string> #include <sstream> #include "Poco/Exception.h" #include "Poco/InflatingStream.h" #include "Poco/DeflatingStream.h" #include "Poco/Logger.h" #include "Poco/URI.h" #include "Poco/NumberParser.h" #include "Poco/Net/Context....
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __ * / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\ * / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / / * / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / / * / /_// /\ / /_// / ...
<commit_before>#include "../World.h" // TODO: not needed? #include "qtopenc2e.h" #include "../Engine.h" #ifdef _WIN32 #include "../SDLBackend.h" #include <windows.h> #endif #include <QApplication> #ifdef _WIN32 #include <windows.h> #endif int main(int argc, char *argv[]) { try { QApplication app(argc, argv); i...
<commit_before>/* * This file is part of Maliit framework * * * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * * Contact: maliit-discuss@lists.maliit.org * * Copyright (C) 2012 One Laptop per Child Association * * This library is free software; you can redistribute i...
<commit_before>/* * This file is part of meego-im-framework * * * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * Contact: Nokia Corporation (directui@nokia.com) * * If you have questions regarding the use of this file, please contact * Nokia at directui@nokia.com. * ...
<commit_before>#include <boost/algorithm/string.hpp> #include <iostream> using namespace std; string encrypt(const string& plaintext, const string& keyword) { /* Returns the plaintext encrypted using the given keyword and the Vigenere * Cipher (http://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher). * * For no...
<commit_before> #include <xmppproxystream.h> #include <xmppproxy.h> #include <logs.h> #include <sys/socket.h> #include <arpa/inet.h> //#include <netinet/in.h> //#include <netdb.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <time.h> #include <string.h> using namespace std; /** * Конструктор */ ...
<commit_before>#include "master.hpp" namespace factor { /* Certain special objects in the image are known to the runtime */ void factor_vm::init_objects(image_header* h) { memcpy(special_objects, h->special_objects, sizeof(special_objects)); true_object = h->true_object; bignum_zero = h->bignum_zero; bignum_...
<commit_before>#include "rasterizer.h" #include <stdlib.h> #include <string.h> #include <assert.h> // Fine raster works on blocks of 2x2 pixels, since NEON can fine rasterize a block in parallel using SIMD-4. // Coarse raster works on 2x2 blocks of fine blocks, since 4 fine blocks are processed in parallel. Therefore...
<commit_before>/* * Copyright (c) [2004-2015] Novell, Inc. * Copyright (c) 2016 SUSE LLC * * All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as published * by the Free Software Foundation. * * Thi...
<commit_before>#include "graphs.h" int main() { int maxOrder = 20; vector< graph > linearGraphs; int currentIndex = 0; for( int currentOrder = 1; currentOrder <= maxOrder; currentOrder++) { currentIndex++; linearGraphs.resize(currentIndex); linearGraphs[currentIndex - 1].Nu...
<commit_before>#ifndef PORTS_H #define PORTS_H #include<vector> #include<boost/scoped_ptr.hpp> #include<boost/shared_ptr.hpp> #include<string> /*abstract class*/ class AsyncPort{ public: // returns true if input is available on the port virtual bool input_available(void) const =0; // size of vector denotes desired ...
<commit_before>#ifndef C3__FRAMEWORK__HH #define C3__FRAMEWORK__HH #include "C3_Exception.hh" #include "C3_Column.hh" #include "C3_Image.hh" #include "C3_Row.hh" #include "C3_Stack.hh" #include "C3_View.hh" #include "C3_Operator.hh" #include "C3_Reduce.hh" #endif <commit_msg>Added environment.<commit_after>#ifndef ...
<commit_before>#include "devicethread.h" #include "usb_commands.h" DeviceThread::DeviceThread() { exit = false; } void DeviceThread::finish() { exit = true; } void DeviceThread::run() { int ret; while(!exit) { if(!board.isConnected()) { ret = board.attachDevice(); if(ret < 0) { ...
<commit_before>/* * Copyright (C) 2015 Cloudius Systems, Ltd. */ #include "apps/seawreck/http_response_parser.hh" #include "core/print.hh" #include "core/reactor.hh" #include "core/app-template.hh" #include "core/future-util.hh" #include "core/distributed.hh" #include "core/semaphore.hh" #include "core/future-util.h...
<commit_before>// include headers{{{ #include <algorithm> #include <bitset> #include <complex> #include <deque> #include <exception> #include <fstream> #include <functional> #include <iomanip> #include <ios> #include <iosfwd> #include <iostream> #include <istream> #include <iterator> #include <limits> #include <list> #...
<commit_before>// // Macros // #define Clr(m) memset(m, 0, sizeof(m)) #define Inf(m) memset(m, 0x3f, sizeof(m)) #define Neg(m) memset(m, -1, sizeof(m)) #define InfRange(p,n,t) memset(p, 0x3f, sizeof(t)*(n)) #define For(t,i,c) for(t::iterator i=(c).begin(); i != (c).end(); ++i) #define RFor(t,v,c) for(t::reverse_iter...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_LOCALOPERATOR_CODIM1_HH #define DUNE_GDT_LOCALOPERATOR_CODIM1_HH #incl...
<commit_before>#ifndef DUNE_STUFF_GRID_PROVIDER_GMSH_HH #define DUNE_STUFF_GRID_PROVIDER_GMSH_HH // system #include <sstream> #include <type_traits> #include <boost/assign/list_of.hpp> // dune-common #include <dune/common/parametertree.hh> #include <dune/common/shared_ptr.hh> #include <dune/common/exceptions.hh> #inc...
<commit_before>#include "test_common.hh" #if HAVE_DUNE_GRID // system #include <iostream> #include <fstream> #include <utility> // boost #include <boost/filesystem.hpp> // dune-common #include <dune/common/mpihelper.hh> #include <dune/common/parametertreeparser.hh> #include <dune/common/timer.hh> #include <dune/st...
<commit_before>// Time: O(n) // Space: O(h) /** * Definition of TreeNode: * class TreeNode { * public: * int val; * TreeNode *left, *right; * TreeNode(int val) { * this->val = val; * this->left = this->right = NULL; * } * } */ class Solution { private: bool getNumber(con...
<commit_before>/* Copyright (c) 2020 PaddlePaddle 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 applicabl...
<commit_before>// Copyright (c) 2013, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. // #include "...
<commit_before>//-*- Mode: C++ -*- // $Id: AliHLTHOMERProxyHandler.cxx $ //************************************************************************** //* This file is property of and copyright by the ALICE HLT Project * //* ALICE Experiment at CERN, All rights reserved. * //* ...