text
stringlengths
54
60.6k
<commit_before>#include "MainLogic.h" #include "MotorDriver.h" #include "DualEncoderDriver.h" #include "FrontLiftedDetection.h" #include "ProximitySensors.h" #include <cmath> #define STANDARD_SPEED 170 #define SPEED_CHANGE_STEP 1 #define DISTANCE_BETWEEN_MOTORS 85.00 #define HALF_DISTANCE_...
<commit_before>/* This file is part of the Palabos library. * * Copyright (C) 2011-2015 FlowKit Sarl * Route d'Oron 2 * 1010 Lausanne, Switzerland * E-mail contact: contact@flowkit.com * * The most recent release of Palabos can be downloaded at * <http://www.palabos.org/> * * The library Palabos is free soft...
<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>#include <dlfcn.h> #include <string.h> #include <cstdio> #include <cstdlib> #include <sys/ioctl.h> #include <unistd.h> typedef ssize_t (*ReadSignature)(int, void*, size_t); // TODO: per-process memory? static char __line[1024]; static int __line_index = 0; #define cursor_forward(x) printf("\033[%dC", ...
<commit_before>#include <dlfcn.h> #include <cstdio> #include <cstring> #include <unistd.h> #include <cstdlib> #include <iostream> #include <fstream> #include <vector> #include <array> #include <string> #define cursor_forward(x) printf("\033[%dC", static_cast<int>(x)) #define cursor_backward(x) printf("\033[%dD", stat...
<commit_before>#include "../include/TamuraDistance.h" using namespace cv; using namespace std; double TamuraDistance::calc(const ImageData &dat1, const ImageData &dat2) { double F_crs1 = calc_granularity(dat1.rgb_img); double F_crs2 = calc_granularity(dat2.rgb_img); cout << "F_crs: " << Vec2d(F_crs1, F_c...
<commit_before>#include "rapid_pbd/step_executor.h" #include <sstream> #include "boost/shared_ptr.hpp" #include "moveit_msgs/MoveGroupAction.h" #include "rapid_pbd_msgs/Action.h" #include "rapid_pbd_msgs/Step.h" #include "ros/ros.h" #include "tf/transform_listener.h" #include "rapid_pbd/action_executor.h" #include "...
<commit_before>/* * Copyright (C) 2018 ScyllaDB */ /* * This file is part of Scylla. * * Scylla 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 version 3 of the License, or * (at your op...
<commit_before>/* * TextFileParser.cpp * * Created on: 24.01.2015 * Author: sartz */ #include "TextFileParser.hpp" #include <fstream> #include <sstream> #include <iostream> #include "CoinItem.hpp" #include "TimeItem.hpp" #include "TriggerItem.hpp" #include "KeyItem.hpp" #include "ItemFactory.hpp" #include "...
<commit_before>/* * Copyright 2000-2008, François Revol, <revol@free.fr>. All rights reserved. * Distributed under the terms of the MIT License. */ #include "ThemeAddonItem.h" #include "ThemeInterfaceView.h" #include "ThemeManager.h" #include "UITheme.h" #include <BeBuild.h> #ifdef B_ZETA_VERSION #include <locale/L...
<commit_before>#include "ToolBase.h" #include "TSVFileStream.h" #include "Helper.h" #include "BasicStatistics.h" #include <QFileInfo> #include <QBitArray> class ConcreteTool : public ToolBase { Q_OBJECT public: ConcreteTool(int& argc, char *argv[]) : ToolBase(argc, argv) { ops << ">" << ">=" << "=" << "<=" <...
<commit_before>/* * Software License Agreement (BSD License) * * Copyright (c) 2011, Alexandru-Eugen Ichim * Willow Garage, Inc * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditi...
<commit_before>#include "addtrainingdlg.h" #include "ui_addtrainingdlg.h" #include <QDebug> #include <QSqlField> #include <QMessageBox> /** * @brief Creates a dialog for adding and editing training. * @param parent The parent widget. */ AddTrainingDlg::AddTrainingDlg(TrainingModel *model, int trainingRow, QWidget *...
<commit_before>#include "engine/blob.h" #include "engine/command_line_parser.h" #include "engine/crc32.h" #include "engine/fs/disk_file_device.h" #include "engine/fs/file_system.h" #include "engine/fs/file_system.h" #include "engine/fs/memory_file_device.h" #include "engine/fs/pack_file_device.h" #include "engine/input...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ignoreIterationMark_ja_JP.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: rt $ $Date: 2005-09-07 17:28:01 $ * * The Contents of th...
<commit_before>// Copyright 2015 Open Source Robotics Foundation, 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 re...
<commit_before>/* * Copyright (c) 2018 ARM Limited * * 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 implementation of the functionality...
<commit_before>/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License....
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "cf-handler.h" #include <dirent.h> #include <stdio.h> #include <sys/stat.h> #include <sys/types.h> #include <vespa/defaults.h> #include <vespa/config/common/configsystem.h> #in...
<commit_before>/******************************************************************************* * This file is part of "Patrick's Programming Library", Version 7 (PPL7). * Web: http://www.pfp.de/ppl/ * * $Author$ * $Revision$ * $Date$ * $Id$ * *******************************************************************...
<commit_before>/* * Copyright 2009 Colin Percival, 2011 ArtForz, 2012-2013 pooler * 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. Redistributions of source code must retain the above...
<commit_before>#include <cudaobjdetect.hpp> extern "C" struct HOGPtr HOG_ctorCuda( struct SizeWrapper win_size, struct SizeWrapper block_size, struct SizeWrapper block_stride, struct SizeWrapper cell_size, int nbins) { return rescueObjectFromPtr(cuda::HOG::create( win_size, block_size, ...
<commit_before>/* cclive * Copyright (C) 2010-2011 Toni Gundogdu <legatvs@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 3 of the License, or * (at your optio...
<commit_before>#include "cvm.h" void DabValue::dump(FILE *file) const { static const char *types[] = {"INVA", "FIXN", "STRI", "BOOL", "NIL ", "SYMB", "CLAS", "OBJE", "ARRY", "UIN8", "UI32", "UI64", "IN32", "METH", "PTR*", "BYT*"}; assert((int)data.type >= 0 && (int)data.type <...
<commit_before>/****************************************************************************** * Copyright 2018 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 copy of ...
<commit_before>// Copyright (c) 2014-2015 The Dash developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "coinbase-payee.h" #include "util.h" #include "addrman.h" #include "masternode.h" #include "darksend.h" #...
<commit_before>// Based on: // Fast Anti-Aliasing Polygon Scan Conversion by Jack Morrison from "Graphics // Gems", Academic Press, 1990. // This code renders a polygon, computing subpixel coverage at // 8 times Y and 16 times X display resolution for anti-aliasing. #include "df_polygon_aa.h" #include "df...
<commit_before>/* ** Copyright 1993 by Miron Livny, and Mike Litzkow ** ** Permission to use, copy, modify, and distribute this software and its ** documentation for any purpose and without fee is hereby granted, ** provided that the above copyright notice appear in all copies and that ** both that copyright notice a...
<commit_before>/** @file @brief Implementation of Kalman-specific code in beacon-based pose estimator, to reduce incremental build times. @date 2015 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2015 Sensics, Inc. // // Licensed under the Apache License, Version 2.0 (the "Lic...
<commit_before>/* Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. 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>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2014 Couchbase, 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 a...
<commit_before>// The libMesh Finite Element Library. // Copyright (C) 2002-2016 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; eit...
<commit_before>/* * Copyright (C) 2015 Luke San Antonio * All rights reserved. */ #include "shader.h" #include <istream> #include <fstream> #include <string> #include "glad/glad.h" #include "../../common/log.h" #include "driver.h" #define LOC_BAIL(location) if(location == -1) return #define USE_THIS_SHADER() dri...
<commit_before>// Copyright 2007, 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 list...
<commit_before>#include "util.h" #include "h5spikewriter.h" H5SpikeWriter::H5SpikeWriter() { m_nc = 0; m_nu = 0; m_nwf = 0; m_h5groups.clear(); m_h5Dtk.clear(); m_h5Dts.clear(); m_h5Dwf.clear(); m_ns.clear(); m_q = new ReaderWriterQueue<SPIKE *>(H5S_BUF_SIZE); } H5SpikeWriter::~H5SpikeWriter() { delete m_q; ...
<commit_before>#include <vector> #include <memory> #include <string> #include <sstream> #include <exception> #include "../third_party/bitmap/bitmap_image.hpp" #include "../vis/colormap.hpp" #include "../vis/image.hpp" #pragma once namespace io { class BmpWriter { public: BmpWriter(std::sha...
<commit_before>// This file is part of Playslave-C++. // Playslave-C++ is licenced under the MIT license: see LICENSE.txt. /** * @file * Implementation of the non-virtual aspects of the IoReactor class. * @see io/io_reactor.hpp * @see io/io_reactor_asio.hpp * @see io/io_reactor_asio.cpp * @see io/io_reactor_std....
<commit_before>// This file is part of Playslave-C++. // Playslave-C++ is licenced under the MIT license: see LICENSE.txt. /** * @file * Implementation of the non-virtual aspects of the IoReactor class. * @see io/io_reactor.hpp */ #include <csignal> // SIG* #include <string> // std::st...
<commit_before>#include "rosplan_planning_system/PlannerInterface/FFPlannerInterface.h" namespace KCL_rosplan { /*-------------*/ /* constructor */ /*-------------*/ FFPlannerInterface::FFPlannerInterface(ros::NodeHandle& nh) { node_handle = &nh; plan_server = new actionlib::SimpleActionServer<rosplan_disp...
<commit_before>/* * * Author: Jeffrey Leung * Last edited: 2015-12-21 * * This C++ header file contains the LabyrinthMap class which creates, updates, * and displays a map of a given Labyrinth. * */ #include <stdexcept> #include "../include/labyrinth_map.hpp" // This method returns whether a given Wall coord...
<commit_before><commit_msg>Marked NotificationTest.TestDOMUIMessageCallback as FAILS after r61174 due to DOM UI bindings being disabled for non-chrome:// URLs.<commit_after><|endoftext|>
<commit_before>#include <fstream> #include <iomanip> #include <iostream> #include <string> #include <boost/program_options.hpp> #include "BasicSort.hpp" #include "BitonicSort.hpp" // #include "QuickSort.hpp" #include "MergeSort.hpp" #include "CSVTools.hpp" #define THREAD_START 1 #define SIZE_START 10 #define DEF...
<commit_before>#include "../include/level_factory.hpp" #include "../engine/include/persistence_dat.hpp" #include "../engine/include/observable.hpp" #include "../engine/include/log.hpp" #include <unordered_map> #include <vector> using namespace mindscape; typedef mindscape::GameObjectFactory::Options Opts; /** * @br...
<commit_before>/************************************************************************* * * $RCSfile: filid.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: hr $ $Date: 2004-05-10 14:21:28 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses...
<commit_before>/*$Id$ * * This source file is a part of the Fresco Project. * Copyright (C) 1998 Graydon Hoare <graydon@fresco.org> * Copyright (C) 1999, 2000 Stefan Seefeld <stefan@fresco.org> * http://www.fresco.org * * This library is free software; you can redistribute it and/or * modify it under the term...
<commit_before>// Copyright 2016-2019 Jean-Francois Poilpret // // 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> #include "local_tree.h" #include "matrices.h" namespace argweaver { using namespace std; //============================================================================= // Sample recombinations double recomb_prob_unnormalized(const ArgModel *model, const LocalTree *tree, ...
<commit_before>// Time: O(4^n) // Space: O(n) class Solution { public: vector<string> addOperators(string num, int target) { vector<string> result; vector<string> expr; addOperatorsDFS(num, target, 0, 0, 0, &expr, &result); return result; } void addOperatorsDFS(const strin...
<commit_before>// Time: O(n) // Space: O(1) /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode* reverseKGroup(ListNode* head, int k) { ListNode dummy = ListNode(0);...
<commit_before>/* Copyright (c) 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 to us...
<commit_before>/** * * Emerald (kbi/elude @2015) * */ #include "shared.h" #include "ogl/ogl_context.h" #include "ogl/ogl_query.h" #include "ogl/ogl_rendering_handler.h" #include "system/system_log.h" /** TODO */ typedef struct _ogl_query_item { GLuint gl_id; bool has_started; _ogl_query_item() ...
<commit_before>/* * Copyright (c) 2002-2005 The Regents of The University of Michigan * 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 c...
<commit_before>/* * Copyright (c) 2002-2005 The Regents of The University of Michigan * 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 c...
<commit_before>/* * This file is part of Poedit (http://poedit.net) * * Copyright (C) 2015 Vaclav Slavik * * 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, inc...
<commit_before>#include <node.h> #include <nan.h> #include <v8.h> #include <vector> #include "mouse.h" #include "deadbeef_rand.h" #include "keypress.h" #include "screen.h" #include "screengrab.h" #include "MMBitmap.h" using namespace v8; /* __ __ | \/ | ___ _ _ ___ ___ | |\/| |/ _ \| | ...
<commit_before>// Copyright 2017 Esri. // 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 wr...
<commit_before>/* * Copyright 2009 The VOTCA Development Team (http://www.votca.org) * * 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>#include "LdapClient.h" //------------------------------------------------------------------------------ #ifdef OPENLDAP #include <cstdlib> // free() #include <sys/time.h> // struct timeval #include <sstream> // std::stringstream /** OpenLDAP client implementation */ class OpenLdapClient : p...
<commit_before>/* * Copyright 2009 The VOTCA Development Team (http://www.votca.org) * * 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>/* bzflag * Copyright (c) 1993 - 2004 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 ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkInformation.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
<commit_before>/// XXX add licence // #ifndef HAVE_LLVM # error "Need LLVM for LLVMDependenceGraph" #endif #ifndef ENABLE_CFG #error "Need CFG enabled for building LLVM Dependence Graph" #endif #include <llvm/IR/Instruction.h> #include <llvm/IR/Instructions.h> #include <llvm/IR/Value.h> #include <llvm/IR/Function.h...
<commit_before>/* * Delegate helper pooling. * * author: Max Kellermann <mk@cm4all.com> */ #include "Stock.hxx" #include "stock/MapStock.hxx" #include "stock/Class.hxx" #include "stock/Item.hxx" #include "async.hxx" #include "failure.hxx" #include "system/fd_util.h" #include "event/Event.hxx" #include "event/Callb...
<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>#include "Number.h" #include "BigFix/DataRef.h" #include "BigFix/Error.h" namespace BigFix { uint64_t ReadLittleEndian( DataRef data ) { uint64_t number = 0; for ( size_t i = data.Length(); i != 0; i-- ) { number *= 256; number += data.Start()[i - 1]; } return number; } void WriteL...
<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 appli...
<commit_before>#ifdef ENABLE_MPI #include <stddef.h> #include "Tools/Display/bash_tools.h" #include "Monitor_reduction_mpi.hpp" struct monitor_vals { int n_be; int n_fe; unsigned long long n_fra; }; void MPI_SUM_monitor_vals_func(void *in, void *inout, int *len, MPI_Datatype *datatype) { auto in_cvt = stati...
<commit_before>/*===========================================================================*\ * * * OpenMesh * * Copyright (C) 2001-2013 by Computer Graphics Group, RWTH Aa...
<commit_before>#ifndef ARGUMENT_TYPE_FILE_SYSTEM_HPP_ #define ARGUMENT_TYPE_FILE_SYSTEM_HPP_ #include <string> #include <iostream> #include <stdexcept> #include "Tools/system_functions.h" #include "Tools/version.h" #include "../Argument_type_limited.hpp" namespace aff3ct { namespace tools { enum class openmode : u...
<commit_before>#include <readline/readline.h> #include <readline/history.h> #include <iostream> #include <cctype> #include <sstream> #include <ctime> #include "../parser/stmt.h" #include "../../parser.tab.h" #include "evaluator.h" typedef struct yy_buffer_state *YY_BUFFER_STATE; extern YY_BUFFER_STATE yy_scan_string ...
<commit_before>/* * C++ wrappers for the libevent callback. * * author: Max Kellermann <mk@cm4all.com> */ #ifndef EVENT_CALLBACK_HXX #define EVENT_CALLBACK_HXX #include <event.h> template<class T, void (T::*member)()> struct SimpleEventCallback { static void Callback(gcc_unused evutil_socket_t fd, ...
<commit_before>// // Created by Dawid Drozd aka Gelldur on 6/30/16. // #include "Fail.h" #include <exception> #include <log.h> Fail::Fail(const char* fileName, const char* functionName, int lineNumber) : _lineNumber(lineNumber) , _fileName(fileName) , _functionName(functionName) { auto srcPosition = _fileNam...
<commit_before>// Copyright (c) 2013 - 2015, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #include <nix/file/Ba...
<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) 2017 Gleb Mishchenko, The appleseedhq Organization // // Permission is hereby granted, free of charge, to any...
<commit_before>// Copyright (c) 2014, 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 ...
<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>/*! * \author ddubois * \date 03-Sep-18. */ #include <future> #include "nova_renderer.hpp" #include "platform.hpp" #include "util/logger.hpp" #include "glslang/MachineIndependent/Initialize.h" #include "loading/shaderpack/shaderpack_loading.hpp" #if _WIN32 #include "render_engine/dx12/dx12_render_...
<commit_before>#include "gaf/gen_pugixml.h" #include <array> #include <cassert> #include "fmt/format.h" #include "gaf/generator.h" #include "gaf/args.h" #include "gaf/array.h" namespace xml { void add_enum_function(const Enum& e, Out* sources) { // const auto enum_type = e.name; // const auto...
<commit_before>#ifndef CLUSTERING_IMMEDIATE_CONSISTENCY_QUERY_MASTER_HPP_ #define CLUSTERING_IMMEDIATE_CONSISTENCY_QUERY_MASTER_HPP_ #include <map> #include "clustering/immediate_consistency/branch/broadcaster.hpp" #include "clustering/immediate_consistency/query/metadata.hpp" #include "containers/archive/order_token...
<commit_before>#include <ghost.h> #include <ghost_util.h> #include <ghost_vec.h> #include <cmath> #include <cstdio> #include "ghost_complex.h" #include <omp.h> double conjugate(double& c) { return c; } float conjugate(float& c) { return c; } template <typename T> ghost_complex<T> conjugate(ghost_complex<T>& c) { ...
<commit_before>/* * Copyright (c) 2003-2015 Rony Shapiro <ronys@users.sourceforge.net>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php...
<commit_before>// // libavg - Media Playback Engine. // Copyright (C) 2003-2011 Ulrich von Zadow // // 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 of the Li...
<commit_before>/* * ceph_fs.cc - Some Ceph functions that are shared between kernel space and * user space. * */ /* * Some non-inline ceph helpers */ #include "types.h" /* * return true if @layout appears to be valid */ int ceph_file_layout_is_valid(const struct ceph_file_layout *layout) { __u32 su = le32_to...
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp: /* Copyright (c) 2008 Aristid Breitkreuz, Ruediger Sonderfeld 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...
<commit_before>#ifndef PARSE_LITERAL_HPP_ #define PARSE_LITERAL_HPP_ #include "symbol.hpp" #include "parse_error.hpp" #include <boost/optional.hpp> namespace parse_literal_detail { inline bool is_digit(char c) { return '0' <= c && c <= '9'; } } template <class State> boost::optional<symbol> parse_literal(Stat...
<commit_before>/* * Use and distribution licensed under the Apache license version 2. * * See the COPYING file in the root project directory for full text. */ #include "compare.h" #include "keyword.h" #include "token.h" #include "symbol.h" namespace sqltoast { kw_jump_table_t _init_kw_jump_table(char lead_char) ...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // NOTE: This file is intended to be customised by the end user, a...
<commit_before>/* * File: StateGameStarted.cpp * Author: maxence * * Created on 16 janvier 2015, 23:28 */ #include "shared/network/MsgData.h" #include "shared/network/MsgType.h" #include "shared/network/MsgAction.h" #include "client/ClientPlayer.h" #include "client/ClientWorld.h" #include "client/view/Detail...
<commit_before>#include "rpcconsole.h" #include "ui_rpcconsole.h" #include "clientmodel.h" #include "bitcoinrpc.h" #include "guiutil.h" #include <QTime> #include <QTimer> #include <QThread> #include <QTextEdit> #include <QKeyEvent> #include <QUrl> #include <QScrollBar> #include <openssl/crypto.h> // TODO: make it p...
<commit_before>#include "recorder_node.h" #include <cinder/audio/Context.h> namespace cieq { namespace audio { RecorderNode::RecorderNode(size_t numFrames, const Format &format /*= Format()*/) : inherited(numFrames, format) , mWindowSize(format.getWindowSize()) , mHopSize(format.getHopSize()) , mLastQueried(0) {...
<commit_before>/* * Functions deal with the regex banning. * * Copyright (c) eQualit.ie 2013 under GNU AGPL v3.0 or later * * Vmon: June 2013, Initial version */ #include <vector> #include <sys/time.h> #include "regex_manager.h" using namespace std; /** reads all the regular expressions from the database. ...
<commit_before>#include "nova_renderer/rhi/rhi_types.hpp" namespace nova::renderer::rhi { bool ResourceBindingDescription::operator==(const ResourceBindingDescription& other) { return set == other.set && binding == other.binding && count == other.count && type == other.type; } bool ResourceBinding...
<commit_before>////////////////////////////////////////////////////////////////////// // // Pixie // // Copyright 1999 - 2003, Okan Arikan // // Contact: okan@cs.utexas.edu // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser Gen...
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 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 "rpcserver.h" #include "main.h" #include "kernel.h" #include "c...
<commit_before>/*********************************************************************************** Copyright (C) 2013 by Sajia Akhter, Edwards Lab, San Diego State University This file is part of Qudaich. Qudaich is free software: you can redistribute it and/or modify it under the terms of the GNU G...
<commit_before>/**************************************************************************** * * Copyright (c) 2016 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * ...
<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>/* This file is part of Ingen. * Copyright 2007-2011 David Robillard <http://drobilla.net> * * Ingen 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 ...
<commit_before>#include "server/control.hpp" #include "arch/spinlock.hpp" #include "logger.hpp" #include "errors.hpp" control_map_t& get_control_map() { /* Getter function so that we can be sure that control_list is initialized before it is needed, as advised by the C++ FAQ. Otherwise, a control_t might be in...
<commit_before>#include "solver_factory.h" #include "OsiClpSolverInterface.hpp" #include "OsiCbcSolverInterface.hpp" #include "error.h" namespace cyclus { // 10800 s = 3 hrs * 60 min/hr * 60 s/min SolverFactory::SolverFactory() : t_("cbc"), tmax_(10800) { } SolverFactory::SolverFactory(std::string t) : t_(t), tmax_...