text
stringlengths
54
60.6k
<commit_before>/* bzflag * Copyright (c) 1993 - 2005 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLI...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: Currency.cxx,v $ * * $Revision: 1.14 $ * * last change: $Author: hr $ $Date: 2006-06-19 12:46:41 $ * * The Contents of this file are made...
<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>#include <stingray/toolkit/Factory.h> #include <stingray/toolkit/any.h> #include <stingray/app/PushVideoOnDemand.h> #include <stingray/app/application_context/AppChannel.h> #include <stingray/app/application_context/ChannelList.h> #include <stingray/app/scheduler/ScheduledEvents.h> #include <stingray/a...
<commit_before>/*************************************************************************** knarticlewindow.cpp - description ------------------- copyright : (C) 2000 by Christian Thurner email : cthurner@freepage.de **********...
<commit_before>AliAnalysisTaskCFTree *AddTaskCFTree( Int_t analysisMode = 0, UInt_t selectionBit = AliVEvent::kMB, Double_t zVtxMax = 10, Double_t etaMax = 1, Double_t ptMin = 0.15, const char* outputFileName = 0, const char* folderName = "CorrelationTree") { AliAnalysisManager *mgr = AliA...
<commit_before>// $Id$ // // Jet model task to merge to existing branches // only implemented for track branches // // Author: M. Verweij #include "AliJetModelMergeBranches.h" #include <TClonesArray.h> #include <TFolder.h> #include <TLorentzVector.h> #include <TParticle.h> #include <TParticlePDG.h> #include <TRandom3...
<commit_before>/* * HyPerCol.h * * Created on: Jul 30, 2008 * Author: Craig Rasmussen */ #ifndef HYPERCOL_HPP_ #define HYPERCOL_HPP_ #include "HyPerColRunDelegate.hpp" #include "../layers/PVLayer.h" #include "../connections/HyPerConn.hpp" #include "../io/PVParams.hpp" #include "../include/pv_types.h" #incl...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // taskwarrior - a command line task list manager. // // Copyright 2006 - 2011, Paul Beckingham, Federico Hernandez. // All rights reserved. // // This program is free software; you can redistribute it and/or modify it under...
<commit_before>#ifdef WIN32 #pragma warning(4:4786) #endif #if (!defined(_WIN32) && !defined(WIN32)) #include <sys/types.h> #include <dirent.h> #else #include <windows.h> #endif #include <string> #include "BundleMgr.h" #include "Bundle.h" Bundle *BundleMgr::currentBundle = NULL; std::string BundleMgr::bundlePath...
<commit_before>// This file is distributed under the MIT license. // See the LICENSE file for details. #include <cstdint> #include <fstream> #include <iostream> #include <ostream> #include <boost/algorithm/string.hpp> #include <boost/lexical_cast.hpp> #include "hdr_image.h" namespace visionaray { bool hdr_image::l...
<commit_before> #include <gtest/gtest.h> #include <boost/any.hpp> #include "CoinModel.hpp" #include "cyclopts/cbc_solver.h" #include "cyclopts/function.h" #include "cyclopts/solver.h" #include "cyclopts/solver_interface.h" #include "cyclopts/variable.h" // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -...
<commit_before><commit_msg>in case someone gets the same spam mail as I did: bool partNode::isAttachment() const { + if (!dwPart()) + return false;<commit_after><|endoftext|>
<commit_before><<<<<<< HEAD:library/max-sdk/c74support/max-includes/common/commonsyms.cpp // This wraps commonsyms.c as a C++ file to avoid dumb warnings in Xcode ======= // This wrapps commonsyms.c as a C++ file to avoid dumb warnings in Xcode >>>>>>> active:library/max-sdk/c74support/max-includes/common/commonsyms.cp...
<commit_before>// UjoImro, 2013 // Experimental Research Code for the CARP Project #ifndef __CARP__MEMORY__HPP__ #define __CARP__MEMORY__HPP__ #include <bitset> #include <memory> #include <cstddef> #include <utility> namespace carp { template <class T0> class memory { private: int64_t m...
<commit_before>#pragma once namespace puro { /** A Wrapper around audio buffer data with helper functions for accessing and debug checks. Does not own the data. */ template <int NumChannels, typename T=float> struct buffer { typedef T value_type; static constexpr int number_of_channels = NumChannels; ...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 2001 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistri...
<commit_before>/* * Vulkan * * Copyright (C) 2015 LunarG, Inc. * * 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 (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------...
<commit_before>//===--- CGDeclCXX.cpp - Emit LLVM Code for C++ declarations --------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/** * This file is part of the "libfnord" project * Copyright (c) 2015 Paul Asmuth * * FnordMetric is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License v3.0. You should have received a * copy of the GNU General Public License along with th...
<commit_before>//===- SymbolSize.cpp -----------------------------------------------------===// // // 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 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this l...
<commit_before>// Copyright 2008 Paul Hodge #include "circa.h" #define EXTENDED_LOGGING false namespace circa { namespace stateful_value_function { void evaluate(Term* caller) { if (EXTENDED_LOGGING) std::cout << "stateful-value eval" << std::endl; if (EXTENDED_LOGGING) ...
<commit_before>#ifndef COMPOSE_HPP # define COMPOSE_HPP # pragma once #include <type_traits> #include <utility> namespace { template <typename R, typename ...A> struct signature { }; template <typename R, typename ...A> constexpr auto extract_signature(R (*const)(A...)) noexcept { return signature<R, A...>(); } ...
<commit_before>/* * This file is part of the µOS++ distribution. * (https://github.com/micro-os-plus) * Copyright (c) 2016 Liviu Ionescu. * * µOS++ 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 Foundatio...
<commit_before>#ifndef VIENNAGRID_STORAGE_ID_HPP #define VIENNAGRID_STORAGE_ID_HPP namespace viennagrid { namespace storage { template<typename id_type> struct id_tag; template<typename base_id_type> struct smart_id_tag; template<typename value_type_, typename base_...
<commit_before>// // Copyright (c) .NET Foundation and Contributors // See LICENSE file in the project root for full license information. // // This file includes the board specific Ethernet Initialisation #include "NF_ESP32_Network.h" #include "esp_netif_net_stack.h" static const char *TAG = "wifi"; static wifi_mo...
<commit_before>// // Copyright (c) 2012 The ANGLE 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. // #include <stdlib.h> #include <string.h> extern "C" { #include "compiler/preprocessor/lexer_glue.h" #include "compiler/prepr...
<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. c...
<commit_before>/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with ...
<commit_before>#include <arbiter/drivers/s3.hpp> #include <algorithm> #include <chrono> #include <cstring> #include <functional> #include <iostream> #include <thread> #include <arbiter/third/xml/xml.hpp> #include <openssl/hmac.h> namespace arbiter { namespace { const std::string baseUrl(".s3.amazonaws.com/"); ...
<commit_before>#include <iostream> #include <vector> #include <fstream> #include <sstream> #include <stdlib.h> #include <cassert> #include <algorithm> #include <bitset> #include <omp.h> using namespace std; typedef vector<int>::size_type vint_sz; typedef vector<vector<int> >::size_type vvint_sz; typedef vector<int>::...
<commit_before>#include <algorithm> #include <chrono> #include <cstdio> #include <cstdlib> #include <cstring> #include <complex> #include <iostream> #include <utility> #include <vector> #include <fftw3.h> #include "helpers.h" using namespace std; typedef pair<int, int> location; int main(int argc, char** argv) { ...
<commit_before>#include <stdlib.h> #include <string> #include <iostream> #include <unistd.h> #include <stdio.h> #include <queue> #include "xsi_loader.h" #include <portal.h> #include <sock_utils.h> #include <GeneratedTypes.h> #include <XsimMemSlaveRequest.h> #include <XsimMemSlaveIndication.h> XsimMemSlaveIndicationP...
<commit_before> /***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Publi...
<commit_before>/* * cam_ZWO.cpp * PHD Guiding * * Created by Robin Glover. * Copyright (c) 2014 Robin Glover. * All rights reserved. * * This source code is distributed under the following "BSD" license * Redistribution and use in source and binary forms, with or without * modification, are permitted provided t...
<commit_before>/* * * Copyright (c) 2020-2021 Project CHIP 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....
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributi...
<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>#include <age/math/Vector.h> #include <gtest/gtest.h> using namespace age::math; TEST(Vector, Constructor) { { Vector v{}; EXPECT_DOUBLE_EQ(v.X, 0.0); EXPECT_DOUBLE_EQ(v.Y, 0.0); } { Vector v{-1.0, 1.0}; EXPECT_DOUBLE_EQ(v.X, -1.0); EXPECT_DOUBLE_EQ(v.Y, 1.0); } } TEST(Vector, Copy) {...
<commit_before>#pragma once #include <gcl/concepts.hpp> #include <gcl/mp/type_tag.hpp> #include <tuple> #include <type_traits> // todo : T::operator()... -> trait<Ts...> namespace gcl::mp { struct tags { struct is_const {}; struct is_volatile {}; struct is_no_except {}; /*struct...
<commit_before>#include <clpeak.h> #define MSTRINGIFY(...) #__VA_ARGS__ static const char *stringifiedKernels = #include "global_bandwidth_kernels.cl" #include "compute_sp_kernels.cl" #include "compute_hp_kernels.cl" #include "compute_dp_kernels.cl" #include "compute_integer_kernels.cl" ; sta...
<commit_before>#include <iostream> #include <string.h> #include <stdlib.h> #include <errno.h> #include "include/types.h" #include "include/utime.h" #include "objclass/objclass.h" #include "rgw/rgw_cls_api.h" #include "common/Clock.h" #include "global/global_context.h" CLS_VER(1,0) CLS_NAME(rgw) cls_handle_t h_clas...
<commit_before>/** * @file lltracesampler.cpp * * $LicenseInfo:firstyear=2001&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2012, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Licen...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (info@qt.nokia.com) ** ** ** GNU Lesser General Public License Usage ** ** This file m...
<commit_before>/* Copyright (c) 2014 DataStax 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 ...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before>#ifndef CONFIG_HPP #define CONFIG_HPP #include <algorithm> // find #include <deque> #include "config_t.hpp" #include "observer.hpp" namespace generic { class config : public config_t , public observer<config_t> { public: template<typename ... CS> config(config_t * c, CS ... cs...
<commit_before>/************************************************************************** * * Copyright 2007-2011 VMware, 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 *...
<commit_before>/* * Copyright (C) 2009 RobotCub Consortium * Author: Alessandro Scalzo alessandro.scalzo@iit.it * CopyPolicy: Released under the terms of the GNU GPL v2.0. * */ /** * **/ #include "qticubskinguiplugin.h" #include <QDebug> using namespace yarp::os; static yarp::os::Semaphore gMutex(1); QtiDynT...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>//===-- StringRef.cpp - Lightweight String References ---------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//===- Dominators.cpp - Dominator Calculation -----------------------------===// // // This file implements simple dominator construction algorithms for finding // forward dominators. Postdominators are available in libanalysis, but are not // included in libvmcore, because it's not needed. Forward dom...
<commit_before>// -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; -*- /** * core.cpp * * Copyright (C) 2003 Zack Rusin <zack@kde.org> * * 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 Softwa...
<commit_before>#include "Solver.h" #include "defines.h" namespace sqaod { /* name string for float/double */ template<class real> const char *typeString(); template<> const char *typeString<float>() { return "float"; } template<> const char *typeString<double>() { return "double"; } } using namespace sqaod; temp...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "DebugOperatorNew.h" #include "Application.h" #include "Framework.h" #include "LoggingFunctions.h" #include <QDir> #ifdef _WIN32 #include <WinSock2.h> #include <Windows.h> #endif #ifdef WINDOWS_APP #include <io.h>...
<commit_before>/* * Copyright (c) MZ3 Project Team All rights reserved. * Code licensed under the BSD License: * http://www.mz3.jp/license.txt */ #include "stdafx.h" #include "MZ3.h" #include "Mz3GroupData.h" #include "util_base.h" #include "util_mz3.h" #include "inifile.h" /** * gbvy[Wp̏ * * O[v...
<commit_before>//Copyright (c) 2018 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #include "utils/linearAlg2D.h" //Distance from point to line. #include "MergeInfillLines.h" namespace cura { MergeInfillLines::MergeInfillLines(ExtruderPlan& plan) : extruder_plan(plan) { ...
<commit_before>#include <filterfalse.hpp> #include "helpers.hpp" #include <vector> #include <string> #include <iterator> #include "catch.hpp" using iter::filterfalse; using Vec = const std::vector<int>; namespace { bool less_than_five(int i) { return i < 5; } class LessThanValue { private: int c...
<commit_before>#define CATCH_CONFIG_MAIN #include "catch.hpp" #include "overlap.hpp" #include "result.hpp" #include "comparator.hpp" using namespace std; using namespace OLC; TEST_CASE("result class", "[result]") { vector<Nucleotide> vec1; vec1.push_back(Nucleotide(NucleotideLetter(0x02))); vec1.push_back(Nu...
<commit_before>/************************************************************************* * * $RCSfile: epgm.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hjs $ $Date: 2004-06-25 12:32:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses...
<commit_before>/*************************************************************************** * Copyright (c) 2016, Johan Mabille and Sylvain Corlay * * * * Distributed under the terms of the BSD 3-Clause License. ...
<commit_before>// csafmt_whitespace.cpp -*-C++-*- // ---------------------------------------------------------------------------- #include <csabase_analyser.h> #include <csabase_location.h> #include <csabase_ppobserver.h> #include <csabase_registercheck.h> #include <csabase...
<commit_before>/* cbr * RandomMotionPath.cpp * * Copyright (c) 2009, Ewen Cheslack-Postava * 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 mus...
<commit_before>/** * \file * \brief ThreadRoundRobinSchedulingTestCase class implementation * * \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 th...
<commit_before>//////////////////////////////////////////////////////////// // // The MIT License (MIT) // // STP - SFML TMX Parser // Copyright (c) 2013-2014 Manuel Sabogal // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "So...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the...
<commit_before>// Copyright (c) 2016 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "osfhandle.h" #include <io.h> #define U_I18N_IMPLEMENTATION #include "third_party/icu/source/common/unicode/ubidi.h" #include "third_party/icu/source/common/...
<commit_before>/* * Appcelerator Kroll - licensed under the Apache Public License 2 * see LICENSE in the root folder for details on the license. * Copyright (c) 2008 Appcelerator, Inc. All Rights Reserved. */ #include "binding.h" namespace kroll { StaticBoundObject::StaticBoundObject() { } StaticBoundObject:...
<commit_before>/** * Clever programming language * Copyright (c) Clever Team * * This file is distributed under the MIT license. See LICENSE for details. */ #include <cstdio> #include <cstdlib> #include <iostream> #include "core/clever.h" #include "core/cstring.h" #include "core/value.h" namespace clever { jmp_...
<commit_before>/* Copyright (C) 2012-2017 IBM Corp. * This program 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 License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by appl...
<commit_before>// Copyright © 2016 The Things Network // Use of this source code is governed by the MIT license that can be found in the LICENSE file. #include <Arduino.h> #include <TheThingsNetwork.h> void TheThingsNetwork::init(Stream& modemStream, Stream& debugStream) { this->modemStream = &modemStream; this->...
<commit_before>#include <iostream> #include <fstream> using namespace std; template <class T> struct Node { T element; Node<T> *left, *right, *pparent; }; template <class T> class BST { private: Node<T> *root; int count; public: BST(); ~BST(); void deleteTree(Node<T> *Tree); void show(ostream&cout, const N...
<commit_before>/* * Copyright 2013 Matthew Harvey * * 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) 2012 Nokia, Inc. // 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) 2016 PaddlePaddle Authors. All Rights Reserve. 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 requ...
<commit_before>#ifndef __PROCESS_COLLECT_HPP__ #define __PROCESS_COLLECT_HPP__ #include <assert.h> #include <set> #include <process/defer.hpp> #include <process/future.hpp> #include <process/process.hpp> namespace process { // Waits on each future in the specified set and returns the set of // resulting values. If...
<commit_before>// Copyright (c) 2018 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 // // ...
<commit_before>/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. 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>/* * Copyright Regents of the University of Minnesota, 2015. This software is released under the following license: http://opensource.org/licenses/GPL-2.0 * Source code originally developed at the University of Minnesota Interactive Visualization Lab (http://ivlab.cs.umn.edu). * * Code author(s): *...
<commit_before>/** * Copyright (c) 2012 Andreas Heider, Julius Adorf, Markus Grimm * * MIT License (http://www.opensource.org/licenses/mit-license.php) */ #include <boost/foreach.hpp> #include <boost/format.hpp> #include <boost/program_options.hpp> #include <iostream> #include <opencv2/highgui/highgui.hpp> #inclu...
<commit_before><commit_msg>Windows: Put ScopedHGlobal in the right scope so it unlocks a STGMEDIUM's handle before we call ReleaseStgMedium.<commit_after><|endoftext|>
<commit_before>//////////////////////////////////////////////////////////////////////////////// // // File: ProcessJac.cpp // // For more information, please see: http://www.nektar.info/ // // The MIT License // // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA), // Department of Aeronau...
<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>#include "file_system.h" #include "memory.h" #include "pen_string.h" #include <Shlobj.h> #include <Shlwapi.h> #include <stdio.h> namespace pen { #define WINDOWS_TICK 10000000 #define SEC_TO_UNIX_EPOCH 11644473600LL c8* swap_slashes(const c8* filename); static bool s_show_hidden = false; ...
<commit_before>/* * LoadHandler.cpp * * Created on: 29.05.2017 * Author: Alexander */ #include "persistence/base/LoadHandler.hpp" #include <sstream> // used for getLevel() #include "abstractDataTypes/Bag.hpp" #include "boost/algorithm/string.hpp" // used for string splitting #include "ecore/EClassifier.hpp...
<commit_before>#include <gtest/gtest.h> #include "photoeffects.hpp" using namespace cv; TEST(photoeffects, SepiaFakeTest) { Mat src(10, 10, CV_8UC1), dst; EXPECT_EQ(0, sepia(src, dst)); } TEST(photoeffects, SepiaFailTest) { Mat src(10, 10, CV_8UC3), dst; EXPECT_EQ(1, sepia(src, dst)); } TEST(phot...
<commit_before>/* * Copyright © 2010 Intel Corporation * * 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, mod...
<commit_before>// Filename: guiManager.cxx // Created by: cary (25Oct00) // //////////////////////////////////////////////////////////////////// #include "guiManager.h" #include "config_gui.h" #include <dataRelation.h> #include <renderRelation.h> #include <depthTestTransition.h> #include <depthWriteTransition.h> #i...
<commit_before>// //! @file paramter_impl.cpp //! @brief paramater impliment file. // coipyright (C) NTTComware corporation. 2008 - 2009 // mail: n.nakai at sdy.co.jp // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.tx...
<commit_before>#ifndef ALEPH_PERSISTENCE_DIAGRAMS_NORMS_HH__ #define ALEPH_PERSISTENCE_DIAGRAMS_NORMS_HH__ #include "persistenceDiagrams/PersistenceDiagram.hh" #include <algorithm> #include <vector> #include <stdexcept> #include <cmath> namespace aleph { template <class DataType> double totalPersistence( const Per...
<commit_before>/// @file /// @author Boris Mikic /// @version 3.1 /// /// @section LICENSE /// /// This program is free software; you can redistribute it and/or modify it under /// the terms of the BSD license: http://www.opensource.org/licenses/bsd-license.php #if defined(_WINRT) && !defined(_OPENKODE) #include <g...
<commit_before><commit_msg>more clean ups to C API and Ruby binding<commit_after><|endoftext|>
<commit_before><commit_msg>Temporarily exclude NonblockingSignalTests - no time to maintain them.<commit_after><|endoftext|>
<commit_before>/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Declarative module of the Qt Toolkit. ** ** $QT_BE...
<commit_before>// RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s // UNSUPPORTED: linux, solaris #include <sys/cdefs.h> #include <sys/stat.h> #include <stdio.h> #include <stdlib.h> int main(void) { struct stat st; char name[100]; mode_t type; if (stat("/dev/null", &st)) exit(1); type = S...
<commit_before>#include <smartref.h> #include <type_traits> #include <vector> #include <list> namespace tests { using smartref::using_; //! These tests check for absence of the value_type member-type, //! for using_<int>, which obviously doesn't have this member-type. namespace test_absence { template<typename T,...
<commit_before>//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 wit...