text
stringlengths
54
60.6k
<commit_before><commit_msg>Remove commented out code<commit_after><|endoftext|>
<commit_before><commit_msg>SwPagePreView: fix some scrollbar bugs (still not perfect, just a quick fix)<commit_after><|endoftext|>
<commit_before>#include <queue> #include <vector> #include <string> #include <cstring> #include <iostream> #include <fstream> #include <time.h> //#include <malloc.h> using namespace std; #define DEBUG 0 #define MAX_T 100 #define MAX_2 801 #define MAX_S 100001 int count[MAX_T]; int len_two[M...
<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>/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2012 Clifford Wolf <[email protected]> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission no...
<commit_before>#ifndef TEST_POLYGON_HPP #define TEST_POLYGON_HPP #include <gtest/gtest.h> #include <DO/Core/EigenExtension.hpp> using namespace DO; class TestPolygon : public testing::Test { protected: int w; int h; double a; double b; Point2d p1; Point2d p2; Point2d center; TestPolygon() { ...
<commit_before>/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: property.cxx,v $ * * $Revision: 1.16 $ * * last change: $Author: obo $ $Date: 2006-09-16 23:58:19 $ * * The Contents of this file are mad...
<commit_before>/** * 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 agreed to in writing, software...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ChangeRequestQueueProcessor.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2007-04-03 15:44:28 $ * * The Contents of ...
<commit_before>// @(#)root/gpad:$Id$ // Author: Rene Brun 01/07/96 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>/****************************************************************************** * This file is part of the Gluon Development Platform * Copyright (C) 2010 Laszlo Papp <[email protected]> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesse...
<commit_before>/* * * Copyright 2015 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
<commit_before>/* Autogenerated with kurento-module-creator */ #include "TelmateFrameGrabberOpenCVImpl.hpp" #include <gst/gst.h> #include <KurentoException.hpp> #include <vector> #include <string> #define GST_CAT_DEFAULT kurento_telmate_frame_grabber_opencv_impl GST_DEBUG_CATEGORY_STATIC(GST_CAT_DEFAULT); #define GS...
<commit_before> // Copyright (c) 2010 libmv authors. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify...
<commit_before>/* Copyright (C) 2001 by Norman Krmer This library 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. T...
<commit_before>/****************************************************************************** * This file is part of the Mula project * Copyright (c) 2011 Laszlo Papp <[email protected]> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * L...
<commit_before>#ifdef PARTICLES #include<stdio.h> #include<stdlib.h> #include"math.h" #include <iostream> #include"../global.h" #include"../grid3D.h" #include"particles_3D.h" #ifdef PARALLEL_OMP #include"../parallel_omp.h" #endif Real Grid3D::Calc_Particles_dt( ){ Real dt_particles; #ifndef PARALLEL_OMP d...
<commit_before>/* * File: SensorSymbols.cpp * Author: thomas * * Created on 9. April 2009, 18:10 */ #include "SensorSymbols.h" void SensorSymbols::registerSymbols(xabsl::Engine& engine) { engine.registerDecimalInputSymbol("sensor.gyro.x", &getGyrometerData().data.x); engine.registerDecimalInputSymbol("se...
<commit_before>#include "ROOT/TDataFrame.hxx" #include "Compression.h" #include "TFile.h" #include "TInterpreter.h" #include "TRandom.h" #include "gtest/gtest.h" using namespace ROOT::Experimental; namespace TEST_CATEGORY { int DefineFunction() { return 1; } struct DefineStruct { int operator()() { return 1;...
<commit_before>//============================================================================= // ■ audio.cpp //----------------------------------------------------------------------------- // 提供声音支持。 //============================================================================= #include "global.hpp" namespace Aud...
<commit_before>/* * Samplebuffer.cpp * * Created on: Dec 4, 2013 * Author: gwue */ #include "Soundbuffer.hpp" Soundbuffer::Soundbuffer(unsigned int samplerate) { int err; // Always offer chunks of the same size to ALSA this->alsaSamples = ALSACHARS / this->getFrameSize(); this->sane = true; this->run...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org Copyright (c) 2000-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge, to an...
<commit_before> #include "ioFrogs.h" #include <SPI.h> #include <Ethernet.h> #include <EthernetClient.h> #include <IPStack.h> #include <Countdown.h> #include <MQTTClient.h> #include <MQTTSender.h> #include <DHT.h> #include <Adafruit_TSL2591.h> #include <TemperatureSensor.h> #include <HumiditySensor.h> #include <Lumin...
<commit_before>// Day18.cpp : Defines the entry point for the console application. // #include "stdafx.h" constexpr size_t Rows = 40; typedef std::vector<bool> Row; typedef std::array <Row, Rows> Board; Board PopulateBoard(const std::string & Input, size_t & SafeTiles); int main() { std::string Line = GetFileLine...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: XMLTextFrameContext.hxx,v $ * * $Revision: 1.24 $ * * last change: $Author: hr $ $Date: 2007-06-27 16:08:25 $ * * The Contents of this fi...
<commit_before> #include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; #if !defined(CLI_BUILD) #include "HackerRank.h" #endif typedef vector< vector<bool> > AdjacencyMatrix; // for each leaf node return 1 as the weight of the edge that leads to it // for no...
<commit_before>/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
<commit_before>// Copyright (c) 2014-2016 The Dash Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "activemasternode.h" #include "governance.h" #include "main.h" #include "masternode.h" #include "mas...
<commit_before>/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of mcompositor. ** ** If you have questions regarding the...
<commit_before>#include "Template.h" #include <string> #include <iostream> #include <TestFixture.h> #include <TestAssert.h> #include <TestSuite.h> #include <TestCaller.h> #include <ui/text/TestRunner.h> using namespace std; /* ************************************************************************* */ /* *********...
<commit_before>/* -*- Mode: C++; c-basic-offset: 2; tab-width: 2; indent-tabs-mode: nil -*- * * Quadra, an action puzzle game * Copyright (C) 1998-2000 Ludus Design * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as publi...
<commit_before>#include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <unistd.h> #include <string.h> #include <errno.h> #include <string> #include <iomanip> #include <cstring> #include <sstream> #include <iostream> #include <cstdio> #include <tr1/memory> ...
<commit_before>#include <cstdio> #include <cstring> #include "logvisor/logvisor.hpp" #include "nod/nod.hpp" static void printHelp() { fprintf(stderr, "Usage:\n" " nodtool extract [-f] <image-in> [<dir-out>]\n" " nodtool makegcn <fsroot-in> [<image-out>]\n" ...
<commit_before>#include <Flight_controller.h> #include <Logger.h> #include <unistd.h> //Initialization of the static variable mutex Flight_controller::flight_controller_lock; Flight_controller::Flight_controller(Logger &logger):logger(logger), orientation_manager(logger){ desired_pitch = 0.0; desired_yaw = 0....
<commit_before>// $Id: vertex1.C,v 1.5 2000/03/15 08:44:38 oliver Exp $ #include <BALL/VIEW/KERNEL/vertex1.h> using namespace std; namespace BALL { namespace VIEW { Vertex::Vertex() : vertex1_(), vertex1_ptr_(&vertex1_) { } Vertex::Vertex(const Vertex& v, bool deep) : vertex1_(v.vertex1_), ...
<commit_before>// @(#) $Id$ // Author: Fons Rademakers 26/11/99 /************************************************************************** * Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-l...
<commit_before>#include <windows.h> #include <OvRender.h> #include <sloverlay.h> #include <overlay.h> SlOverlayMenu* Menu; MenuVars MenuOsd[20]; MenuVars MenuGpu[10]; WCHAR* GroupOpt[] = {L"", L""}; WCHAR* ItemOpt[] = {L"Off", L"On"}; BOOLEAN MnuInitialized; HANDLE MenuProcessHeap; //Add menu items to menu VOID ...
<commit_before>#include <net/VRNetServer.h> #include <main/VRLog.h> #include <main/VRError.h> using namespace std; namespace MinVR { #define PORT "3490" // the port users will be connecting to #define BACKLOG 100 // how many pending connections queue will hold #ifndef WIN32 void sigchld_handler(int s) { whil...
<commit_before>/** This is a TcpServer's performance test. * It could be run in N different modes: * 1) Local throughput test: * Clients and server created on the same machine and communicates through the loopback. * This mode is designated to test server performance locally, on a single machine. And ...
<commit_before>#include "workerCL.hpp" #define __CL_DEFINE_EXCEPTIONS #include <CL/cl.hpp> #include <vector> #include <string> #include <iostream> #include "log.hpp" #include "reads.hpp" using namespace std; WorkerCL::WorkerCL(size_t platform_id, size_t device_id){ /* GPU environment preparation */ //Get plat...
<commit_before>// // SubFunctions.hpp // // // Created by Myoung-Jong Noh on 3/30/20. // #ifndef SubFunctions_hpp #define SubFunctions_hpp #include <string.h> #include <stdio.h> #include <libgen.h> #include <sys/stat.h> #include <sys/types.h> #include <dirent.h> #include <iostream> #include "Typedefine.hpp" #i...
<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(DGR); unit...
<commit_before>// Copyright 2016 Strength in Numbers Foundation #include "giftcardpage.h" #include "ui_giftcardpage.h" #include "giftcardtablemodel.h" #include "optionsmodel.h" #include "bitcoingui.h" #include "creategiftdialog.h" #include "csvmodelwriter.h" #include "guiutil.h" #include "paperwallet.h" #include <Q...
<commit_before>#include "overviewpage.h" #include "ui_overviewpage.h" #include "walletmodel.h" #include "bitcoinunits.h" #include "optionsmodel.h" #include "transactiontablemodel.h" #include "transactionfilterproxy.h" #include "guiutil.h" #include "guiconstants.h" #include <QAbstractItemDelegate> #include <QPainter> ...
<commit_before>// Copyright (c) 2011-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <qt/splashscreen.h> #include <...
<commit_before>// Copyright (c) 2011-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "splashscreen.h" #include "clientversion.h" #include "ui_interface.h" #include "util.h" #include <QA...
<commit_before>#include "centsa/request_process.h" #include "centsa/ui.h" #include "centsa/ping.h" #include "rapidjson/document.h" #include <iostream> #include <vector> std::string mainPage(int &code, const char *data) { code = 200; return ui_html(); } std::string pingServer(int &code, const char *data) { code =...
<commit_before>/* # Copyright (c) 2011, Georgia Tech Research Corporation # 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 copyrig...
<commit_before>/* # Copyright (c) 2011, Georgia Tech Research Corporation # 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 copyrig...
<commit_before>// Copyright 2016 Tom Barthel-Steer // http://www.tomsteer.net // // 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...
<commit_before>#pragma once #include <CoreFoundation/CoreFoundation.h> #include <chrono> #include <cstdlib> #include <filesystem> #include <pqrs/osx/launchctl.hpp> #include <spdlog/fmt/fmt.h> #include <string> #include <string_view> #include <thread> namespace krbn { class constants final { public: static const cha...
<commit_before><commit_msg>modified shession_client to use request_type strings instead of hardcoded strings<commit_after><|endoftext|>
<commit_before> #include <ugdk/system/engine.h> #include <ugdk/action/3D/camera.h> #include <ugdk/action/3D/scene3d.h> #include <ugdk/action/3D/component/body.h> #include <shipsbattle/objects/ship.h> #include <shipsbattle/components/spacedust.h> #include <shipsbattle/components/playercontroller.h> #include <shipsbatt...
<commit_before>/* Flexisip, a flexible SIP proxy server with media capabilities. Copyright (C) 2012 Belledonne Communications SARL. This program 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>/* * Copyright 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 applicable l...
<commit_before>#ifndef AMGCL_COARSENING_AS_SCALAR_HPP #define AMGCL_COARSENING_AS_SCALAR_HPP /* The MIT License Copyright (c) 2012-2022 Denis Demidov <[email protected]> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softw...
<commit_before>#ifndef AMGCL_PRECONDITIONER_DUMMY_HPP #define AMGCL_PRECONDITIONER_DUMMY_HPP /* The MIT License Copyright (c) 2012-2017 Denis Demidov <[email protected]> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softw...
<commit_before>#include "installercontroller.h" #include <QProcess> #include <QtTest> static const QString configFile = SRCDIR + QStringLiteral("../../../installer/config/config.xml"); static const QString configScript = SRCDIR + QStringLiteral("../../../installer/config/controller.qs"); static const QString pkgFile ...
<commit_before>#include <ros/ros.h> #include <opencv/cv.h> #include <opencv/highgui.h> #include <opencv/cxcore.h> #include <std_msgs/Float64.h> #include <std_msgs/String.h> #include <scan2image/ScanImage.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <sys/time.h> #include <sys/re...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: GenericConfigurationChangeRequest.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2007-04-03 15:47:04 $ * * The Conten...
<commit_before>#include <string> #include <fstream> #include <sstream> #include <vector> size_t letterI(const char letter, const bool is_capital) { int first_letter_code = static_cast<int>(is_capital ? L'А' : L'а'); if (letter > (is_capital ? L'Е' : L'е')) { return static_cast<int>(letter) - first_letter_code + 2; ...
<commit_before>//////////////////////////////////////////////////////////// // // SFML - Simple and Fast Multimedia Library // Copyright (C) 2007-2014 Laurent Gomila ([email protected]) // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors be held liable f...
<commit_before>// // File: GeneratedBlock.cpp // Class GeneratedBlock // Author Jonatan Rapp & Alexander Hederstaf // All code is my own except where credited to others. // // Copyright © 2012 Catch22. All Rights Reserved. // // Date: Oct 10, 2012 // // Description: // // #include "GeneratedBlock.hpp" Generate...
<commit_before># ifndef SPL_1D_SIGNAL_HH # define SPL_1D_SIGNAL_HH # include "NDSignal.hh" # include "Point.hh" # include <vector> namespace spl{ template<typename V> struct Signal1D; namespace global{ template<> template<typename V> struct traits<Signal1D<V> > { typedef V value...
<commit_before>/* Copyright (c) 2015, Benjamin YanXiang Huang All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of con...
<commit_before>/* nobleNote, a note taking application * Copyright (C) 2012 Christian Metscher <[email protected]>, Fabian Deuchler <[email protected]> * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
<commit_before>#include "textformattingtoolbar.h" #include <QAction> #include <QApplication> #include <QColorDialog> #include <QInputDialog> TextFormattingToolbar::TextFormattingToolbar(QTextEdit * textEdit, QWidget *parent) : QToolBar(parent), textEdit_(textEdit) { setWindowTitle(tr("Format actions")); se...
<commit_before>#include "davix_tool_util.hpp" #include <config.h> #include <string> #include <sstream> #include <algorithm> #include <fcntl.h> #include <ctime> #include <simple_getpass/simple_get_pass.h> namespace Davix{ namespace Tool{ std::string string_from_ptime(const time_t & t){ char b[255]; b[sizeof(b...
<commit_before>#include "mitkOpenGLRenderer.h" #include "Mapper.h" #include "ImageMapper2D.h" #include "BaseVtkMapper2D.h" #include "BaseVtkMapper3D.h" #include "LevelWindow.h" #include "mitkVtkInteractorCameraController.h" #include "mitkVtkRenderWindow.h" #include <vtkRenderer.h> #include <vtkLight.h> #include <vtkLi...
<commit_before>/** * @file ellis/core/flow.hpp * * @brief Ellis Flow public C++ header. * * This is the C++ header for Ellis Flow, which implements Ellis encoders and * decoders. */ #pragma once #ifndef ELLIS_CORE_FLOW_HPP_ #define ELLIS_CORE_FLOW_HPP_ namespace ellis { namespace flow { } /* namespace flow ...
<commit_before>/* * Copyright (c) 2014 Eran Pe'er. * * This program is made available under the terms of the MIT License. * * Created on Mar 10, 2014 */ #ifndef MockImpl_h__ #define MockImpl_h__ #include <type_traits> #include <unordered_set> #include <memory> #include "mockutils/DynamicProxy.hpp" #include "fakeit/...
<commit_before>#include "KBShortcutsDialog.hpp" #include "I18N.hpp" #include "libslic3r/Utils.hpp" #include "GUI.hpp" #include <wx/scrolwin.h> #include <wx/display.h> #include "GUI_App.hpp" #include "wxExtensions.hpp" #define NOTEBOOK_TOP 1 #define NOTEBOOK_LEFT 2 #define LISTBOOK_TOP 3 #define LISTBOOK_LEFT 4 #define...
<commit_before>#include <QApplication> #include <QQmlApplicationEngine> #include <QDebug> #include <QFuture> #include <QtConcurrent/QtConcurrentRun> #include <QtQml> #include <QMetaType> #include <QtTest/qtestcase.h> #include <kdb.hpp> #include "treeviewmodel.hpp" #include "confignode.hpp" #include "undomanager.hpp" #...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile: mitkPropertyManager.cpp,v $ Language: C++ Date: $Date$ Version: $Revision: 1.12 $ Copyright (c) German Cancer Research Center, Division of Medical ...
<commit_before>/**********************************************************************/ /* Copyright 2014 RCF */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may no...
<commit_before>/* Copyright (c) 2007-2012, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of ...
<commit_before>#pragma once #include "seq.hpp" #include "util.hpp" #include "value.hpp" #include <memory> #include <vector> namespace imu { namespace ty { template<typename mixin = no_mixin> struct base_node : public mixin { typedef std::shared_ptr<base_node> p; mixin _mixin; virtual...
<commit_before>//======================================================================= // Copyright (c) 2014-2016 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>/* PICCANTE The hottest HDR imaging library! http://vcg.isti.cnr.it/piccante Copyright (C) 2014 Visual Computing Laboratory - ISTI CNR http://vcg.isti.cnr.it First author: Francesco Banterle This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was n...
<commit_before>// Copyright *********************************************************** // // File ecmdMain.C // // IBM Confidential ...
<commit_before>// DDCPP/standard/bits/DD_partial_sum.hpp #ifndef DD_PARTIAL_SUM_INCLUDED_ # define DD_PARTIAL_SUM_INCLUDED_ 1 # include "DD_Iterator.hpp" # include "DD_Range.hpp" # include "DD_next.hpp" DD_DETAIL_BEGIN_ template <typename UndirectionalIteratorT1_, typename UndirectionalIteratorT2_> UndirectionalI...
<commit_before>#include "vast/util/command_line.h" namespace vast { namespace util { bool command_line::mode_add(std::string name, std::string desc, std::string prompt, std::string history_file) { if (modes_.count(name)) return ...
<commit_before>#pragma once #include <unordered_map> #include <memory> #include <type_traits> #include <tuple> #if defined(__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wc++98-compat" #pragma clang diagnostic ignored "-Wc++98-compat-pedantic" #endif // CLANG namespace kgr { template<t...
<commit_before>/* * Copyright 2018 Google, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above copyright * notice, this list of conditions and the following ...
<commit_before>#pragma once #include <utility> namespace gcl::functional { template <class... Ts> struct overload : Ts... { using Ts::operator()...; using bases_types = std::tuple<Ts...>; // allow operator() function_traits }; template <class... Ts> overload(Ts...) -> overload<Ts.....
<commit_before>/// /// @file min_max.hpp /// @brief In order to make the code more readable primecount allows /// to use the min and max functions with different types /// if both types are integral and type A >= type B. /// /// int64_t a = 100; /// int32_t b = 999; /// /// primecoun...
<commit_before>/* The MIT License (MIT) Copyright (c) 2016 Xu Cheng See licensing at: https://opensource.org/licenses/MIT */ #pragma once #include <exception> #include <string> #include "pbc-streamopen.hpp" namespace pbc { namespace backend { #include <pbc/pbc.h> }; class NotInitializedErr...
<commit_before>#ifndef __VECTOR_2D__ #define __VECTOR_2D__ // Copyright (C) Kevin Suffern 2000-2007. // This C++ code is for non-commercial purposes only. // This C++ code is licensed under the GNU General Public License Version 2. // See the file COPYING.txt for the full license. #include "Matrix.h" class Normal...
<commit_before>/************************************************************************** * * Copyright 2011 Jose Fonseca * 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 t...
<commit_before>/* Empath - Mailer for KDE Copyright 1999, 2000 Rik Hemsley <[email protected]> Wilco Greven <[email protected]> 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 th...
<commit_before>#include <string> #include <memory> #include <cppunit/TestFixture.h> #include <cppunit/extensions/HelperMacros.h> #include "model/feature_cache.h" using namespace std; namespace redgiant { class FeatureCacheTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(FeatureCacheTest); CPPUNIT_TEST(tes...
<commit_before>/* This file is part of cpp-ethereum. cpp-ethereum 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 3 of the License, or (at your option) any later version. cpp-ethereum is dis...
<commit_before>/* * Copyright 2004-present Facebook, 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 appl...
<commit_before>/* * FogLAMP process class * * Copyright (c) 2018 Dianomic Systems * * Released under the Apache 2.0 Licence * * Author: Massimiliano Pinto */ /** * FogLAMP process base class */ #include <iostream> #include <logger.h> #include <process.h> #include <service_record.h> #define LOG_SERVICE_NAME ...
<commit_before> #ifdef WIN32 #pragma warning(disable:4786) #pragma warning(disable:4503) //#include "ctwin.h" #endif #include "global.h" #include "ctexceptions.h" #include "stringUtils.h" #include "units.h" #ifndef WIN32 #include "ctdir.h" #endif #include <fstream> using namespace std; //int writeToMatlab(const ch...
<commit_before>/* This file is part of the Util library. Copyright (C) 2007-2012 Benjamin Eikel <[email protected]> Copyright (C) 2007-2012 Claudius Jähn <[email protected]> Copyright (C) 2007-2012 Ralf Petring <[email protected]> This library is subject to the terms of the Mozilla Public License, v. 2.0...
<commit_before>#include "ctreestateaddstatement.h" /* Constructor */ CTreeStateAddStatement::CTreeStateAddStatement(TreeState* prev, QString s) { previous = prev; desired = previous; // TODO: copy constructor desired->addChildStatement(s); } /* Update the state to the one with the add */ void CTreeStateA...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2018. All rights reserved */ #ifndef _Stroika_Foundation_Common_KeyValuePair_inl_ #define _Stroika_Foundation_Common_KeyValuePair_inl_ 1 /* ******************************************************************************** ***************************** I...
<commit_before>//============================================================================================================= /** * @file pervertexphongalphamaterial.cpp * @author Lorenz Esch <[email protected]>; * Matti Hamalainen <[email protected]> * @version 1.0 * @date January, ...