text
stringlengths
54
60.6k
<commit_before>#include <fstream> #include <iostream> #include <glob.h> #include <pdal/StageFactory.hpp> #include <entwine/third/arbiter/arbiter.hpp> #include <entwine/reader/query.hpp> #include <entwine/reader/reader.hpp> #include <entwine/third/json/json.hpp> #include <entwine/tree/clipper.hpp> #include <entwine/t...
<commit_before>/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozil...
<commit_before>/* c++ xapiand.cc server.cc threadpool.cc ../../net/length.cc -lev `xapian-config-1.3 --libs` `xapian-config-1.3 --cxxflags` -I../../ -I../../common -DXAPIAN_LIB_BUILD -oxapiand */ #include <stdlib.h> #include <fcntl.h> #include <netinet/in.h> #include <netinet/tcp.h> /* for TCP_NODELAY */ #include <sys...
<commit_before>/* * Patterns.cpp * * Created on: April 21, 2010 * Author: Marian Anghel and Craig Rasmussen */ #include "Patterns.hpp" #include <src/include/pv_common.h> // for PI #include <src/utils/pv_random.h> #define MAXVAL 1.0f namespace PV { // CER-new FILE * fp; int start = 0; Patterns::Pattern...
<commit_before> #include "lcio.h" #include "IO/LCWriter.h" #include "EVENT/LCIO.h" #include "DATA/LCFloatVec.h" #include "DATA/LCIntVec.h" #include "IMPL/LCEventImpl.h" #include "IMPL/LCRunHeaderImpl.h" #include "IMPL/LCCollectionVec.h" #include "IMPL/SimCalorimeterHitImpl.h" #include "IMPL/SimTrackerHitImpl.h" #in...
<commit_before>#include "customfilesystemmodel.h" CustomFileSystemModel::CustomFileSystemModel() { } CustomFileSystemModel::~CustomFileSystemModel() { } QList<QPersistentModelIndex> CustomFileSystemModel::checkedIndexes() { return _checklist.toList(); } Qt::ItemFlags CustomFileSystemModel::flags(const QModelInd...
<commit_before>#include "ClassLoader.hpp" #include <boost/algorithm/string.hpp> using namespace envire; using namespace std; const std::vector<std::string> ClassLoader::plugin_paths = ClassLoader::loadLibraryPath(); constexpr char ClassLoader::envire_item_suffix[]; constexpr char ClassLoader::envire_collision_suffix[...
<commit_before>#include "api/plugin_instance.h" #include "core/core.h" #include "core/log.h" #include "core/math.h" #include "core/plugin_handler.h" #include "session/session.h" #include "settings.h" //#include <imgui.h> #include "ui/imgui_setup.h" #include "ui/ui_layout.h" #include "ui/menu.h" #include "ui/dialogs.h" ...
<commit_before>/* * Copyright 2002-2010 The Apache Software Foundation. * * 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>/* Copyright 2010 Google 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 law or...
<commit_before>#include <cstdio> #include <cassert> #include <sstream> #include <algorithm> #include <map> #include "transcript.h" transcript::transcript() { RPKM = 0; } transcript::~transcript() { } bool transcript::operator< (const transcript &t) const { int b = seqname.compare(t.seqname); if(b < 0) return tru...
<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 "transactiondesc.h" #include "bitcoinunits.h" #include "guiutil.h" #include "paymentserver.h" #includ...
<commit_before>#include "plugin_manager.h" #include "core/library.h" #include "core/log.h" #include "core/array.h" #include "engine.h" #include "iplugin.h" namespace Lumix { class PluginManagerImpl : public PluginManager { private: typedef Array<IPlugin*> PluginList; typedef Array<Library*> LibraryList; pu...
<commit_before>// // Programmer: Tom M. <tom.mbrt@gmail.com> // Creation Date: Sat Nov 05 14:51:00 PST 2016 // Last Modified: Sat Nov 05 14:51:00 PST 2016 // Filename: midifile/src-programs/mid2beep.cpp // Web Address: https://github.com/craigsapp/midifile/blob/master/src-programs/mid2beep.cpp // Syntax: ...
<commit_before>#include <ros/ros.h> #include <nav_msgs/Odometry.h> #include <geometry_msgs/PoseWithCovarianceStamped.h> #include <interactive_markers/interactive_marker_server.h> #include <interactive_markers/menu_handler.h> #include <visualization_msgs/InteractiveMarkerInit.h> #include <tf/transform_broadcaster.h> #...
<commit_before> #include "rust_sched_loop.h" #include "rust_util.h" #include "rust_scheduler.h" #ifndef _WIN32 pthread_key_t rust_sched_loop::task_key; #else DWORD rust_sched_loop::task_key; #endif const size_t C_STACK_SIZE = 1024*1024; bool rust_sched_loop::tls_initialized = false; rust_sched_loop::rust_sched_loop...
<commit_before>/* This file is part of Strigi Desktop Search * * Copyright (C) 2006 Flavio Castelli <flavio.castelli@gmail.com> * * 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; ei...
<commit_before>/** * Copyright (c) 2015 Damien Tardy-Panis * * This file is subject to the terms and conditions defined in * file 'LICENSE', which is part of this source code package. **/ #include "CommitStrip.h" #include <QDebug> #include <QRegularExpression> #include <QRegularExpressionMatch> CommitStrip::Com...
<commit_before>// LICENSE/*{{{*/ /* sxc - Simple Xmpp Client Copyright (C) 2008 Dennis Felsing, Andreas Waidler 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 3 of the Licen...
<commit_before>// Copyright 2014 Alessio Sclocco <a.sclocco@vu.nl> // // 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 requir...
<commit_before>#include "Plater/Plate2D.hpp" // libslic3r includes #include "Geometry.hpp" #include "Point.hpp" #include "Log.hpp" #include "ClipperUtils.hpp" // wx includes #include <wx/colour.h> #include <wx/dcbuffer.h> namespace Slic3r { namespace GUI { Plate2D::Plate2D(wxWindow* parent, const wxSize& size, std:...
<commit_before>// // LuaFunctionWrapper.cpp // integral // // Copyright (C) 2016 André Pereira Henriques // aphenriques (at) outlook (dot) com // // This file is part of integral. // // integral is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as pu...
<commit_before>/* * MIT License * * Copyright (c) 2016 xiongziliang <771730766@qq.com> * * This file is part of ZLMediaKit(https://github.com/xiongziliang/ZLMediaKit). * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "So...
<commit_before>/** \file TranslationUtil.cc * \brief Implementation of the DbConnection class. * \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de) * * \copyright 2016-2020 Universitätsbibliothek Tübingen. All rights reserved. * * This program is free software: you can redistribute i...
<commit_before>#include "session.h" #include <iostream> #include <QtCore/QProcess> #include <QtCore/QFile> #include <QTcpSocket> #include "PJobFileError.h" #include "dataconnectionthread.h" #include <QtCore/QDateTime> #include <QtServiceBase> #include <QHostAddress> #include "pjobrunnerservice.h" #include <QtNetwork/QH...
<commit_before>#ifdef HAVE_CONFIG_H # include <config.h> #endif #include <fcntl.h> #include <getopt.h> #include <limits.h> #include <stdint.h> #include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/ioctl.h> #include "media/lirc.h" #ifndef __u32 #define __u32 ...
<commit_before>/**************************************************************************** ** ** Copyright (C) Qxt Foundation. Some rights reserved. ** ** This file is part of the QxtGui module of the Qxt library. ** ** This library is free software; you can redistribute it and/or modify it ** under the terms ...
<commit_before>/* * Copyright (C) 2008-2013 J-P Nurmi <jpnurmi@gmail.com> * * 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 versi...
<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 "Licens...
<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>/* Copyright (C) 2001 by Andreas Hfler <andreas.hoefler@gmx.at> 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...
<commit_before>/* This file is part of libhttpserver Copyright (C) 2011 Sebastiano Merlino 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>#include "configserver.h" // POSIX #include <fcntl.h> // POSIX++ #include <cstdio> #include <climits> // PDTK #include <cxxutils/syslogstream.h> #include <specialized/procstat.h> #define CONFIG_PATH "/etc/sxconfig" #define REQUIRED_GROUPNAME "config" static const char* configfilename(const char* bas...
<commit_before>// -*- Mode: C++; tab-width: 2; -*- // vi: set ts=2: // // $Id: rtti.C,v 1.14 2003/08/26 09:17:44 oliver Exp $ // #include <BALL/COMMON/global.h> #include <BALL/COMMON/rtti.h> #include <typeinfo> #include <ctype.h> // Nasty hacks to demangle the stupid name mangling schemes // of diverse compilers. ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: sysdir_win.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: vg $ $Date: 2007-03-26 13:42:22 $ * * The Contents of this file are mad...
<commit_before>// Copyright (c) 2013 True Interactions // 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 witho...
<commit_before>/* Copyright 2013 Yurii Litvinov * * 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 la...
<commit_before>// https://leetcode.com/problems/lru-cache/ /* Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return -1....
<commit_before>#include "bytes.hpp" #include "dns.hpp" #include "dns-resolver.hpp" #include "error-code.hpp" #include "for-each.hpp" #include "net.hpp" #include "poller.hpp" #include "stream.hpp" #include "var.hpp" #ifdef SCRIPTED #include "dns.cpp" #include "net.cpp" #include "poller.cpp" #endif #include <iostream> ...
<commit_before>#include <libmemcached/memcached.h> #include <string> class Memcached { public: Memcached() : memc(), result() { memcached_create(&memc); } Memcached(memcached_st *clone) : memc(), result() { memcached_clone(&memc, clone); } ~Memcached() { ...
<commit_before>/* Bacula® - The Network Backup Solution Copyright (C) 2007-2009 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. This program is Free Software; you can redistribute it a...
<commit_before>// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // // // Code that is used by both the Unix corerun and coreconsole. // #include <cstdlib> #include <assert.h> #include <dirent.h> #include <dlfcn.h...
<commit_before> /* * examples/minpoly.C * * Copyright (C) 2005, 2010 D Saunders, J-G Dumas * ========LICENCE======== * This file is part of the library LinBox. * * LinBox 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...
<commit_before>#include <cstddef> #include <cstdint> #include <insertionfinder/algorithm.hpp> #include <insertionfinder/cube.hpp> #include <insertionfinder/twist.hpp> #include <insertionfinder/improver/improver.hpp> #include <insertionfinder/improver/slice.hpp> using std::size_t; using std::uint32_t; using InsertionFin...
<commit_before>#include "childprocess.h" // POSIX #include <unistd.h> #include <sys/stat.h> #include <sys/wait.h> // POSIX++ #include <cerrno> #include <cstdlib> #include <climits> #include <cstring> #include <cassert> // PDTK #include <specialized/procstat.h> #include <specialized/eventbackend.h> #include <cxxutils...
<commit_before>/******************************************************************************* * * MIT License * * Copyright (c) 2017 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software...
<commit_before>#ifndef __BUFFER_CACHE_TYPES_HPP__ #define __BUFFER_CACHE_TYPES_HPP__ #include <limits.h> #include <stdint.h> #include "serializer/types.hpp" const int DEFAULT_EVICTION_PRIORITY = INT_MAX / 2; // TODO: Get rid of FAKE_EVICTION_PRIORITY. It's just the default // eviction priority, with the connotation...
<commit_before>#include "data-course.hpp" using namespace std; void Course::init(string identifier) { // Remove a possible space at the front if (identifier[0] == ' ') identifier.erase(0, 1); // add a space into the course id, if there isn't one already int shouldBeSpaceIndex = identifier.length()-4; if (iden...
<commit_before>/* * Copyright 2008 Stephen Liu * For license terms, see the file COPYING along with this library. */ #include <stdio.h> #include <string.h> #include <stdarg.h> #include <time.h> #include <errno.h> #include <stdlib.h> #include <unistd.h> #include <sys/stat.h> #include "spnkporting.hpp" #include "sp...
<commit_before>#include "stdafx.h" #include "BasicThread.h" #include "Autowired.h" #include "BasicThreadStateBlock.h" #include "fast_pointer_cast.h" #include "move_only.h" #include <boost/thread.hpp> // Explicit instantiation of supported time point types: template<> bool BasicThread::WaitUntil(boost::chrono::high_res...
<commit_before>/* Copyright (C) 2013 BMW Group * Author: Manfred Bathelt (manfred.bathelt@bmw.de) * Author: Juergen Gehring (juergen.gehring@bmw.de) * 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>/* * Copyright (C) 2004-2016 ZNC, see the NOTICE file for details. * * 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) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/blocked_popup_container.h" #include "chrome/browser/tab_contents/tab_contents.h" #include "gfx/rect.h" // st...
<commit_before>#include "marian.h" #include "translator/beam_search.h" #include "translator/translator.h" int main(int argc, char** argv) { using namespace marian; auto options = New<Config>(argc, argv, ConfigMode::translating); auto task = New<TranslateLoopMultiGPU<BeamSearch>>(options); boost::timer::cpu_t...
<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 * ...
<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/blocked_popup_container.h" #include "chrome/browser/extensions/extension_function_dispatcher.h" #include "ch...
<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 <string> #include "base/file_util.h" #include "base/scoped_temp_dir.h" #include "chrome/browser/net/url_request_mock_http...
<commit_before>/************************************************************************* * * TIGHTDB CONFIDENTIAL * __________________ * * [2011] - [2012] TightDB Inc * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of TightDB Incorporated and its suppliers...
<commit_before>// This file is distributed under the MIT license. // See the LICENSE file for details. #include <stdexcept> #include <GL/glew.h> #include <visionaray/detail/platform.h> #if defined(VSNRAY_OS_DARWIN) #include <AvailabilityMacros.h> #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_9 #pr...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/trace/bufferpage.C $ ...
<commit_before>#include "BufferAccess.hpp" #include "Error.hpp" PyObject * MGLBufferAccess_tp_new(PyTypeObject * type, PyObject * args, PyObject * kwargs) { MGLBufferAccess * self = (MGLBufferAccess *)type->tp_alloc(type, 0); #ifdef MGL_VERBOSE printf("MGLBufferAccess_tp_new %p\n", self); #endif if (self) { }...
<commit_before>/* * PCLTypeCaster.cpp * * Created on: Oct 7, 2011 * Author: Pinaki Sunil Banerjee */ #include "PCLTypecaster.h" namespace BRICS_3D { PCLTypecaster::PCLTypecaster() {} PCLTypecaster::~PCLTypecaster() {} void PCLTypecaster::convertToPCLDataType(pcl::PointCloud<pcl::PointXYZ>::Ptr pclClou...
<commit_before>// Copyright (c) 2008 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/string_util.h" #include "base/waitable_event.h" #include "chrome/common/ipc_sync_channel.h" #include "chrome/common/rend...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2000 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. Redi...
<commit_before>/* * Copyright (c)2015 - 2018 Oasis LMF Limited * 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>#include "Communicator.hpp" #include <ctime> #include <iostream> #include <string> #include "api_application/Announce.h" Communicator::Communicator(CvKinect *device, CvImageProcessor *analyzer): device(device), analyzer(analyzer), initialized(false) { ros::NodeHandle n; // Advertise myself to API...
<commit_before>// infoware - C++ System information Library // // Written in 2016 by nabijaczleweli <nabijaczleweli@gmail.com> and ThePhD <phdofthehouse@gmail.com> // // To the extent possible under law, the author(s) have dedicated all copyright and related // and neighboring rights to this software to the public doma...
<commit_before> #include <spdlog/sinks/stdout_sinks.h> #include <spdlog/sinks/msvc_sink.h> #include "xdCore.hpp" #include "Log.hpp" using namespace XDay; XDAY_API Logger GlobalLog("init.log", false); Logger::Logger(const std::string& _logfile, bool coreInitialized) : LogFile(_logfile) { if (Core.FindParam(ePara...
<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 "Lice...
<commit_before>/* * Copyright 2006-2008 The FLWOR Foundation. * * 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 ap...
<commit_before>// MenuItem.hh for FbTk - Fluxbox Toolkit // Copyright (c) 2003 Henrik Kinnunen (fluxgen at users.sourceforge.net) // // 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...
<commit_before>/* * FileAppender.cpp * * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2000, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #include "log4cpp/Portability.hh" #include "log4cpp/OstringStream.hh"...
<commit_before>// tOleInPlaceSite.cpp: implementation of the tOleInPlaceSite class. // ////////////////////////////////////////////////////////////////////// #include "tOleInPlaceSite.h" #include "tOleHandler.h" ////////////////////////////////////////////////////////////////////// // Construction/Destruction ///////...
<commit_before>/* ------------------------------------------------------------------------ */ /* Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org) */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); y...
<commit_before>#ifndef SF_BASE_TYPES_HPP_INCLUDED #define SF_BASE_TYPES_HPP_INCLUDED SF_BASE_TYPES_HPP_INCLUDED #include <luabind/object.hpp> #include <SFML/Graphics/Rect.hpp> #include <SFML/System/String.hpp> #include <SFML/System/Vector2.hpp> #include <SFML/System/Vector3.hpp> typedef sf::Vector2<lua_Number> LuaVe...
<commit_before>%% %% Qt5xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 5 %% %% Copyright (C) 2018 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com> %% $header $includes $beginSlotsClass $slot=5,1,0|baudRateChanged( qint32 baudRate, QSerialPort::Directions dir ) $slot=5,1,0|dataBitsChanged( QS...
<commit_before>#include "core/imageops.h" #include <iostream> #include "core/image.h" #include "core/palette.h" namespace euphoria::core { Table<char> ImageToStringTable(const Image& img, const std::vector<ImageMapAction>& map) { auto pal = Palette::Empty(""); for(const auto m: map) ...
<commit_before>#include <gtest/gtest.h> #include "LRUCache.hxx" TEST(LRUCache, InsertPair) { LRUCache<int, std::string, 3> cache; auto pairResult = cache.insert(std::make_pair<int, std::string>(1, "1")); EXPECT_EQ(std::string("1"), pairResult.first->second->second); EXPECT_TRUE(pairResult.second); ...
<commit_before>// Module: Log4CPLUS // File: threads.cxx // Created: 6/2001 // Author: Tad E. Smith // // // Copyright (C) The Apache Software Foundation. All rights reserved. // // This software is published under the terms of the Apache Software // License version 1.1, a copy of which has been included ...
<commit_before>#pragma once #include "util.cpp" /* struct Cluster { int rx, cy, id; vector<pair<int, int>> cells; }; struct Balloon { int id, cluster_id; vector<int> r, c, h; }; struct Input { int r, c, a, l, v, b, t, rs, cs; vector<Cluster> clusters; vector<Ballon> balloon; vector<int> cell_x; vector<int> ...
<commit_before>/* MStringArray - Dynamic Array of MString objects Copyright (C) 2001 Jesse L. Lovelace (jllovela@eos.ncsu.edu) 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 ...
<commit_before>#include <cmath> #include <cstdlib> #include <ctime> #include "StateSpace.h" #include "Action.h" #include "PriorityQueue.h" #include "State.h" //function to calculate a temperature for the select action function as a function of time double temperature(); //function to select next action Action * selec...
<commit_before>/****************************************************************************** * This file is part of the Mula project * Copyright (c) 2011 Laszlo Papp <lpapp@kde.org> * * 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>// Copyright (c) 2013-2014 Quanta Research Cambridge, 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 t...
<commit_before>#include "sqlite3.h" #ifdef __cplusplus extern "C" { #endif #include "character_tokenizer.h" #ifdef __cplusplus } #endif #define DEBUGMSGRED(msg) cout << "\033[0;31m" << msg << "\033[0m" << endl; #define DEBUGMSGGREEN(msg) cout << "\033[0;32m" << msg << "\033[0m" << endl; #define DEBUGMSGBROWN(msg) cout...
<commit_before>/* * Copyright 2016 Marcus Soll * * 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...
<commit_before>#ifndef IMPL_AX_SYSTEM_HPP #define IMPL_AX_SYSTEM_HPP #include <cstddef> #include <stdexcept> #include <memory> #include <functional> #include <array> #include <unordered_set> #include <unordered_map> #include <queue> #include "prelude.hpp" #include "string.hpp" #include "vector.hpp" #include "option.h...
<commit_before>// // ulib - a collection of useful classes // Copyright (C) 2006,2007,2008,2012,2013,2016,2017 Michael Fink // /// \file Timer.hpp Timer class // #pragma once #pragma warning(push) #pragma warning(disable: 28159) // Consider using 'GetTickCount64' instead of 'GetTickCount'. Reason: GetTickCount overflo...
<commit_before>/************************************************************************/ /* */ /* Copyright 2008-2009 by Rahul Nair and Ullrich Koethe */ /* */ /* ...
<commit_before>#include "FaceDetector.h" #include <string> /** * Open camera stream * Load pretrained XML file */ void FaceDetector::load() { camera.open(camNumber); try { faceCascade.load(cascadeFileName); } catch(cv::Exception e){} if (faceCascade.empty()) { std::cerr << "ERROR: Couldn't load Face Detector...
<commit_before>/* * Copyright (C) 2008-2010 The QXmpp developers * * Author: * Manjeet Dahiya * * Source: * http://code.google.com/p/qxmpp * * This file is a part of QXmpp library. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Publi...
<commit_before>// // This file is part of the Marble Desktop Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2006-2007 Torsten Rahn <tackat@kde.org>" // Copyright 2007 Inge Wall...
<commit_before>// Copyright Joshua Boyce 2010-2012. // 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.txt) // This file is part of HadesMem. // <http://www.raptorfactor.com/> <raptorfactor@raptorfactor.com> #inc...
<commit_before>// $Id: mesh_communication.C,v 1.2 2003-09-25 21:46:56 benkirk Exp $ // The Next Great Finite Element Library. // Copyright (C) 2002-2003 Benjamin S. Kirk, John W. Peterson // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public ...
<commit_before>#include <limits> #include <cmath> #include <cgo/minimax/minimax_agent.hpp> using namespace cgo::base; using namespace cgo::minimax; MiniMaxAgent::MiniMaxAgent(Marker marker) : Agent(marker), _turnNumber(0) {} /* virtual */ MiniMaxAgent::~MiniMaxAgent() {} Move MiniMaxAgent::makeMove(State& state,...
<commit_before>/** * @file load.hpp * @author Ryan Curtin * * Load an Armadillo matrix from file. This is necessary because Armadillo does * not transpose matrices on input, and it allows us to give better error * output. */ #ifndef __MLPACK_CORE_DATA_LOAD_HPP #define __MLPACK_CORE_DATA_LOAD_HPP #include <mlpa...
<commit_before>/** * @file nmf_test.cpp * @author Mohan Rajendran * * Test file for NMF class. */ #include <mlpack/core.hpp> #include <mlpack/methods/amf/amf.hpp> #include <mlpack/methods/amf/init_rules/random_acol_init.hpp> #include <mlpack/methods/amf/update_rules/nmf_mult_div.hpp> #include <mlpack/methods/amf/u...
<commit_before>#include "labels.h" #include "tangram.h" #include "platform.h" #include "gl/shaderProgram.h" #include "gl/primitives.h" #include "view/view.h" #include "style/style.h" #include "tile/tile.h" #include "tile/tileCache.h" #include "glm/glm.hpp" #include "glm/gtc/matrix_transform.hpp" #include "glm/gtx/rot...
<commit_before>// Copyright (c) 2011-present, 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. // //...
<commit_before>/* * Copyright (c) 2016, Wisconsin Robotics * 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, th...