text
stringlengths
54
60.6k
<commit_before>/* json_parsing.cc Jeremy Barnes, 1 February 2012 Copyright (c) 2012 Recoset. All rights reserved. Released under the MIT license. */ #include "json_parsing.h" #include "jml/arch/format.h" using namespace std; namespace ML { /**************************************************************...
<commit_before>/* * lookup-atomese.cc * * Implement the word-lookup callbacks * * Copyright (c) 2022 Linas Vepstas <linasvepstas@gmail.com> */ #ifdef HAVE_ATOMESE #include <cstdlib> #include <opencog/atoms/value/StringValue.h> #include <opencog/atomspace/AtomSpace.h> #include <opencog/persist/api/StorageNode.h> ...
<commit_before>/* memofile.cc KPilot ** ** Copyright (C) 2004-2004 by Jason 'vanRijn' Kasper ** */ /* ** This program 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 Licen...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: svdem.cxx,v $ * * $Revision: 1.17 $ * * last change: $Author: rt $ $Date: 2006-12-05 11:38:47 $ * * The Contents of this file are made av...
<commit_before>//===-- AVRTargetInfo.cpp - AVR Target Implementation ---------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//===-- PPCHazardRecognizers.cpp - PowerPC Hazard Recognizer Impls --------===// // // The LLVM Compiler Infrastructure // // This file was developed by Chris Lattner and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===-----...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SchXMLTools.hxx,v $ * * $Revision: 1.7 $ * * last change: $Author: kz $ $Date: 2008-03-06 16:00:19 $ * * The Contents of this file are ma...
<commit_before>//===-- SparcV9TargetMachine.cpp - SparcV9 Target Machine Implementation --===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. //...
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/basictypes.h" #if defined(OS_MACOSX) #include "base/mac/scoped_nsautorelease_pool.h" #endif #include "base/memory/scoped...
<commit_before>/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Benchmark.h" #include "SkBlurImageFilter.h" #include "SkCanvas.h" #include "SkPaint.h" #include "SkRandom.h" #include "SkShader.h" #include "SkString....
<commit_before> #ifndef __CLIENT_HPP__ #define __CLIENT_HPP__ #include <pthread.h> #include "protocol.hpp" using namespace std; /* Information shared between clients */ struct shared_t { public: typedef protocol_t*(*protocol_factory_t)(config_t*); public: shared_t(config_t *_config, protocol_factory_t _...
<commit_before>#include "RectCutCMPT.h" #include "RectCutOP.h" #include "StagePanel.h" #include <easycomplex.h> #include <easyimage.h> namespace eimage { static const std::string FILTER = "rectcut"; RectCutCMPT::RectCutCMPT(wxWindow* parent, const wxString& name, StagePanel* stage) : d2d::AbstractEditCMPT...
<commit_before>/* Copyright (c) 2008 Volker Krause <vkrause@kde.org> Inspired by kdelibs/kdecore/io/kdebug.h Copyright (C) 1997 Matthias Kalle Dalheimer (kalle@kde.org) 2002 Holger Freyther (freyther@kde.org) This library is free software; you can redistribute it and/or modify it ...
<commit_before>#include "sorteddatatable.h" #include <iomanip> // Set precision used by streams on double values #include <fstream> SortedDataTable::SortedDataTable() : SortedDataTable(false) { } SortedDataTable::SortedDataTable(bool allowDuplicates) : allowDuplicates(allowDuplicates), numDuplicates(0), xDim(...
<commit_before>/* The libMesh Finite Element Library. */ /* Copyright (C) 2003 Benjamin S. Kirk */ /* 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 t...
<commit_before>/* kwatchgnupgmainwin.cpp This file is part of Kleopatra, the KDE keymanager Copyright (c) 2001,2002,2004 Klarlvdalens Datakonsult AB Kleopatra 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 S...
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2012 Scientific Computing and Imaging Institute, University of Utah. License for the specific language governing rights and limitations under Permission is hereby granted, free of charge, ...
<commit_before>//===-- RTDyldMemoryManager.cpp - Memory manager for MC-JIT -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>// -*- mode: c++; coding: utf-8 -*- #pragma once #ifndef IOSTR_HPP_ #define IOSTR_HPP_ #include <cstring> #include <cerrno> #include <cassert> #include <cstdarg> #include <ctime> #include <stdexcept> #include <iostream> #include <sstream> #include <fstream> #include <string> #include <vector> #include...
<commit_before>#include "xUnixTime.hpp" #include "TimeSystem.hpp" #include <iostream> #include <fstream> CPPUNIT_TEST_SUITE_REGISTRATION (xUnixTime); using namespace Rinex3; void xUnixTime :: setUp (void) { } void xUnixTime :: setFromInfoTest (void) { UnixTime setFromInfo1; UnixTime setFromInfo2; UnixTime...
<commit_before>//===--- SILCombine -------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>/************************************************************************* * * $RCSfile: LineChartType.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: bm $ $Date: 2004-01-26 09:12:52 $ * * The Contents of this file are made available subject to the terms of * either of the following ...
<commit_before>#include <avr/interrupt.h> #include "IRremote.h" #include "IRremoteInt.h" //+============================================================================= // Interrupt Service Routine - Fires every 50uS // TIMER2 interrupt code to collect raw data. // Widths of alternating SPACE, MARK are recor...
<commit_before>//===-- Sparc.cpp - General implementation file for the Sparc Target ------===// // // This file contains the code for the Sparc Target that does not fit in any of // the other files in this directory. // //===----------------------------------------------------------------------===// #include "SparcInt...
<commit_before><commit_msg>Disabled BrowserEncodingTest.TestEncodingAutoDetect on Chrome OS.<commit_after><|endoftext|>
<commit_before>// Copyright (c) 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 "chrome/browser/browser.h" #include "chrome/browser/browser_window.h" #include "chrome/browser/gtk/view_id_util.h" #include "c...
<commit_before><commit_msg>INTEGRATION: CWS ooo19126 (1.9.194); FILE MERGED 2005/09/05 17:35:36 rt 1.9.194.1: #i54170# Change license header: remove SISSL<commit_after><|endoftext|>
<commit_before>#include <gtest/gtest.h> #include <fstream> #include <ydsh/ydsh.h> #include <misc/files.h> #include <directive.h> #include <config.h> #ifndef EXEC_TEST_DIR #define EXEC_TEST_DIR "." #endif #ifndef BIN_PATH #define BIN_PATH "./ydsh" #endif using namespace ydsh; using namespace ydsh::directive; // p...
<commit_before>#ifndef SLIDING_WINDOW_HPP_ #define SLIDING_WINDOW_HPP_ #include "iterator_range.hpp" #include "iterbase.hpp" #include <vector> #include <algorithm> #include <functional> #include <type_traits> #include <utility> #include <iterator> namespace iter { template <typename Container> class SlidingW...
<commit_before><commit_msg>Guard against directory traversal due to evil message from compromised renderer.<commit_after><|endoftext|>
<commit_before>// Copyright (c) 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, thi...
<commit_before>/* * pab.cpp * * Copyright (C) 1999 Don Sanders <dsanders@kde.org> */ #include "abbrowser.h" #include "browserentryeditor.h" #include <qkeycode.h> #include <kiconloader.h> #include <klocale.h> #include <kglobal.h> #include <kmenubar.h> #include <kconfig.h> #include <kaccel.h> #include <kdebug.h> #...
<commit_before>/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * 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...
<commit_before>#include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/calib3d/calib3d.hpp> #include <iostream> using namespace std; using namespace cv; int main(int argc, char** argv) { FileStorage fs("../calibrate/out_camera_data.xml", Fil...
<commit_before>// Copyright 2013 The Flutter 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 "flutter/shell/platform/windows/external_texture_gl.h" namespace flutter { struct ExternalTextureGLState { GLuint gl_texture = ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: basereader.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-07 19:43:08 $ * * The Contents of this file are mad...
<commit_before>#pragma once #include <mbed.h> #include <rtos.h> #include <algorithm> #include <vector> #include <functional> template <class T> class CommPort { public: // Constructor CommPort() : is_open(false), rx_packets(0), tx_packets(0), rx_callback(nullptr), ...
<commit_before>/* * * Copyright (C) 2000 Silicon Graphics, Inc. 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; either * version 2.1 of the License, o...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: viewcontainer.cxx,v $ * * $Revision: 1.27 $ * * last change: $Author: rt $ $Date: 2008-01-30 08:30:56 $ * * The Contents of this file are...
<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: dbtreemodel.cxx,v $ * $Revision:...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: dbtreemodel.hxx,v $ * * $Revision: 1.19 $ * * last change: $Author: rt $ $Date: 2007-07-24 12:06:54 $ * * The Contents of this file are m...
<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: dbtreemodel.hxx,v $ * $Revision:...
<commit_before> // // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2011 Francois Beaune // // Permission is hereby granted, free of charge, to any person obtaining a copy ...
<commit_before> #include "plane.h" #include "../stages/game.h" #include "bullet.h" #include "smokecloud.h" #include "explosion.h" #include "../framework/angle.h" Plane::Plane( ALLEGRO_JOYSTICK* Controller, Vector2* StartPosition, double StartVelocity, double StartAngle ) : GameObject( StartPosition ) { Velocity = Sta...
<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_LOCALFUNCTIONAL_INTEGRALS_HH #define DUNE_GDT_LOCALFUNCTIONAL_INTEGRALS...
<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>/****************************************************************************** nomlib - C++11 cross-platform game engine Copyright (c) 2013, Jeffrey Carpenter <jeffrey.carp@gmail.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted...
<commit_before>// $Id$ // // Copyright (C) 2003-2006 greg Landrum and Rational Discovery LLC // // @@ All Rights Reserved @@ // #include <DataStructs/BitVects.h> #include <DataStructs/BitVectUtils.h> #include <RDBoost/Wrap.h> namespace python = boost::python; ExplicitBitVect *createFromBitString(const std::string &b...
<commit_before>// ================================================================================ // == This file is a part of Turbo Badger. (C) 2011-2014, Emil Segerås == // == See tb_core.h for more information. == // ==================================================...
<commit_before> #include <Beard/utility.hpp> #include <Beard/ui/packing.hpp> #include <Beard/ui/ProtoSlotContainer.hpp> namespace Beard { namespace ui { // class ProtoSlotContainer implementation ProtoSlotContainer::~ProtoSlotContainer() noexcept = default; void ProtoSlotContainer::cache_geometry_impl() noexcept { ...
<commit_before>#ifndef OPENCL_UTILITIES_H #define OPENCL_UTILITIES_H //#define __NO_STD_VECTOR // Use cl::vector instead of STL version #define __CL_ENABLE_EXCEPTIONS #if defined(__APPLE__) || defined(__MACOSX) #include "OpenCL/cl.hpp" #else #include <CL/cl.hpp> #endif #include <string> #inc...
<commit_before>#include <Eigen/Dense> #include <Eigen/Sparse> #include <iomanip> #include "mvnormal.h" #include "session.h" #include "chol.h" #include "linop.h" #include "noisemodels.h" #include "latentprior.h" using namespace std; using namespace Eigen; namespace Macau { ILatentPrior::ILatentPrior(BaseSession &m...
<commit_before><commit_msg>Prediction: add extra check on point projection on lane<commit_after><|endoftext|>
<commit_before>//===-- sanitizer_libignore.cc --------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<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 cop...
<commit_before>/**The MIT License (MIT) Copyright (c) 2017 by Reaper7 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, mo...
<commit_before>#include <map> #include <vector> #include <sstream> #include <iostream> #include <boost/algorithm/string.hpp> #include <boost/date_time/posix_time/posix_time.hpp> #include <algorithm> #include <functional> #include <thread> #include "Core.hpp" #include "FileSystem.hpp" #include "Util.hpp" #include "Inde...
<commit_before>#include "bitmapimage.h" BitmapImage::BitmapImage() { m_Image = NULL; visible = true; m_ScaleFactor = 1.0; qDebug() << "Image drawn!" << endl; m_ScaleFactorInv = 1.0; m_inc = 0.01; } BitmapImage::BitmapImage(const BitmapImage &image) { m_pixmap = image.m_pixmap; boundari...
<commit_before>/*===================================================================== PIXHAWK Micro Air Vehicle Flying Robotics Toolkit (c) 2009, 2010 PIXHAWK PROJECT <http://pixhawk.ethz.ch> This file is part of the PIXHAWK project PIXHAWK is free software: you can redistribute it and/or modify it under ...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007-2008, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // ...
<commit_before>#include <SensorDatabase/SensorDatabase.h> #include <TempReader/TempReader.h> #include <pthread.h> #include <iostream> #include "Timer.h" #include "logger.h" #include <glib.h> #include <CommunicationService/SensorLoggerCommunicationServer.h> #ifdef DEBUG #define CONFPATH "../templog.conf" #else ...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All right...
<commit_before>/******************************************************************************* GPU OPTIMIZED MONTE CARLO (GOMC) 2.51 Copyright (C) 2018 GOMC Group A copy of the GNU General Public License can be found in the COPYRIGHT.txt along with this program, also can be found at <http://www.gnu.org/licenses/>...
<commit_before>/* * StringUtil.cpp * * Copyright 2002, Log4cpp Project. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #include "StringUtil.hh" #include <iterator> #include <stdio.h> #if defined(_MSC_VER) #define VSNPRINTF _vsnprintf #else #ifdef LOG4CPP_HAVE_SNPRIN...
<commit_before>/** * Copyright (c) 2016, 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. */ #in...
<commit_before>#include "Log.h" #include "Formatting.h" #define _XOPEN_SOURCE 600 #include <string.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <time.h> #ifdef _WIN32 #include <windows.h> #define snprintf _snprintf #define strdup _strdup #define strerror_r(errno, buf, buflen...
<commit_before>/* * libjingle * Copyright 2013, Google Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of condi...
<commit_before>#include "TGATexture.h" #include <fstream> #include <vector> // all possible image types // described in TGA format specification enum class tga_image_type : uint8_t { none = 0, // no image data colormap = 1, // uncompressed, colormap bgr = 2, // uncompressed, bgr ...
<commit_before>// Copyright 2012-2013 Samplecount S.L. // // 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 app...
<commit_before>//===--------- ProfileModule.cpp - The Profile Module -*- C++ -*----------===// // // The LLVM Time Cost Analyser Infrastructure // // This file is distributed under the MIT License. See LICENSE.txt for details. // //===--------------------------------------------------------...
<commit_before>/****************************************************************************** * This file is part of the Gluon Development Platform * Copyright (C) 2011 Michał Koźmiński <michal.kozminski@gmail.com> * Copyright (C) 2011 Laszlo Papp <lpapp@kde.org> * * This library is free software; you can redistr...
<commit_before>#include <ros/ros.h> #include <gl_wrapper/gl_wrapper.hpp> #include <gl_wrapper/object/x_hand.hpp> #include <gl_wrapper/exception/exceptions.hpp> using namespace gl_wrapper; void display() { try { Render::start(); Render::LIGHT->on(); static double t = 0.0; t += 0.03333; GLfloa...
<commit_before>//------------------------------------------------------------------------------ // VoxelTest Main.cc //------------------------------------------------------------------------------ #include "Pre.h" #include "Core/App.h" #include "Gfx/Gfx.h" #include "Time/Clock.h" #include "glm/gtc/matrix_transform.hp...
<commit_before>#include "TerrainTile.h" #include "JsonHelper.h" #include "QGCMapEngine.h" #include <QJsonDocument> #include <QJsonObject> #include <QJsonArray> #include <QDataStream> QGC_LOGGING_CATEGORY(TerrainTileLog, "TerrainTileLog") const char* TerrainTile::_jsonStatusKey = "status"; const char* Terrai...
<commit_before>#include "TerrainTile.h" #include "JsonHelper.h" #include "QGCMapEngine.h" #include <QJsonDocument> #include <QJsonObject> #include <QJsonArray> #include <QDataStream> QGC_LOGGING_CATEGORY(TerrainTileLog, "TerrainTileLog") const char* TerrainTile::_jsonStatusKey = "status"; const char* Terrai...
<commit_before>/**The MIT License (MIT) Copyright (c) 2018 by Daniel Eichhorn, ThingPulse 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 rig...
<commit_before>//Copyright (c) 2019 Ultimaker B.V. #include "VoronoiQuadrilateralization.h" #include "utils/VoronoiUtils.h" #include "utils/linearAlg2D.h" #include "utils/IntPoint.h" #include "utils/logoutput.h" #include "utils/macros.h" namespace boost { namespace polygon { template <> struct geometry_concept<a...
<commit_before>//! \file WikiWalker.cpp #include "WikiWalker.h" #include <cassert> #include <fstream> #include <iostream> #include "LUrlParser.h" #include "Article.h" #include "CacheJsonToArticleConverter.h" #include "CurlUrlCreator.h" #include "ToJsonWriter.h" #include "WalkerException.h" #include "WikimediaJsonTo...
<commit_before>/* * D-Bus AT-SPI, Qt Adaptor * * Copyright 2009-2011 Nokia Corporation and/or its subsidiary(-ies). * * 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 * vers...
<commit_before>/* * D-Bus AT-SPI, Qt Adaptor * * Copyright 2009 Nokia. * * This library 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; either * version 2 of the License, or (at your optio...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2011 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>/********************************************************************** * * GEOS - Geometry Engine Open Source * http://geos.osgeo.org * * Copyright (c) Olivier Devillers <Olivier.Devillers@sophia.inria.fr> * Copyright (C) 2006 Refractions Research Inc. * Copyright (C) 2001-2002 Vivid Solutions In...
<commit_before><commit_msg>Implicitly detect the use of --in-process-webgl by the absence of a display connection in x11_util, and open our own display instead. This makes --in-process-webgl work on Linux again.<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2012 Intel Corp // Copyright (c) 2012 The Chromium 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 limi...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: formsimp.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: rt $ $Date: 2008-03-12 10:40:11 $ * * The Contents of this file are made ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: adjushdl.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: rt $ $Date: 2007-04-18 07:49:24 $ * * The Contents of this file are made...
<commit_before>#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE compile_function #include <boost/test/unit_test.hpp> #include "../src/compile_function.hpp" #include "../src/core_unique_ids.hpp" #include "../src/error/compile_exception.hpp" #include "state_utils.hpp" #include <llvm/IR/Function.h> #include <llvm/...
<commit_before>/* * Software License Agreement (BSD License) * * Copyright (c) 2010, Willow Garage, 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...
<commit_before>#ifndef DATASET_H #define DATASET_H #include <sstream> #include <vector> #include <iterator> #include <functional> // function<> #include <assert.h> #include <initializer_list> using namespace std; using Input = vector<double>; using Output = vector<double>; using LabeledPairPredicate = function<bo...
<commit_before>/** * TEM.cpp * main program for running DVM-DOS-TEM * * It runs at 3 run-mods: * (1) site-specific * (2) regional - time series * (3) regional - spatially (not yet available) * * Authors: Shuhua Yi - the original codes * Fengming Yuan - re-designing and re-cod...
<commit_before>/* * Copyright 2004-2015 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is 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 L...
<commit_before>// Copyright 2016-2019 Francesco Biscani (bluescarni@gmail.com) // // This file is part of the mp++ library. // // 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/MP...
<commit_before>/* * Copyright (c) 2014 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementati...
<commit_before>#include <cgo/base/state.hpp> using namespace cgo::base; State::State() : State(Board()) {} State::State(const State::State& state) : State(state._board) {} State::State(const State::Board& board) : _board(board) {} State::~State() {} const Marker& State::getMarker(const Position& position...
<commit_before>#include "catch.hpp" #include "parser.hpp" #include "lexer.hpp" #include "logger.hpp" #include "environment.hpp" #include <sstream> #include <string> TEST_CASE("Interpret an empty expression", "[dice]") { std::stringstream input{ "" }; std::stringstream errors; dice::logger log{ &errors };...
<commit_before>/* $Id: alara.C,v 1.11 2000-04-28 17:13:40 wilson Exp $ */ #include "alara.h" #include "Input/Input.h" #include "Chains/Root.h" #include "Util/Statistics.h" #include "Output/Result.h" int chainCode = 0; const char *SYMBOLS=" h he li be b c n o f ne na mg al si p s cl ar \ k ca sc ti v cr mn ...
<commit_before> #include <iostream> #include <sstream> #include <random> #include <functional> #include <gui/application.h> #include <gui/cocoa_style.h> #include <gui/container.h> #include <gui/layouts.h> #include <gui/label.h> #include <gui/button.h> #include <gui/slider.h> #include <gui/color.h> #include <gui/scroll...
<commit_before>/** * Copyright 2008 Matthew Graham * 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>#include "btf.h" #include "bpftrace.h" #include "types.h" #include "utils.h" #include <cstring> #include <fcntl.h> #include <iostream> #include <linux/limits.h> #include <regex> #include <sys/stat.h> #include <sys/types.h> #include <sys/utsname.h> #include <unistd.h> #ifdef HAVE_LIBBPF_BTF_DUMP #include...
<commit_before>/* * server_test_base.cpp - Kurento Media Server * * Copyright (C) 2013 Kurento * Contact: Miguel París Díaz <mparisdiaz@gmail.com> * Contact: José Antonio Santos Cadenas <santoscadenas@kurento.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of t...