<commit_before>/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.  For licensing terms and
** conditions see http://qt.digia.com/licensing.  For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file.  Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Digia gives you certain additional
** rights.  These rights are described in the Digia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
****************************************************************************/

/*!
    \class QmlProfiler::SortedTimelineModel
    \brief Sorted model for timeline data

    The SortedTimelineModel lets you keep any kind of range data sorted by
    both start and end times, so that visible ranges can easily be computed.
*/

/*!
    \fn SortedTimelineModel::clear()
    Clears the ranges and their end times.
*/

/*!
    \fn int SortedTimelineModel::count() const
    Returns the number of ranges in the model.
*/

/*!
    \fn qint64 SortedTimelineModel::firstStartTime() const
    Returns the begin of the first range in the model.
*/

/*!
    \fn qint64 SortedTimelineModel::lastEndTime() const
    Returns the end of the last range in the model.
*/

/*!<commit_msg>QmlProfiler: Document restrictions of SortedTimelineModel<commit_after>/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.  For licensing terms and
** conditions see http://qt.digia.com/licensing.  For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file.  Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Digia gives you certain additional
** rights.  These rights are described in the Digia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
****************************************************************************/

/*!
    \class QmlProfiler::SortedTimelineModel
    \brief Sorted model for timeline data

    The SortedTimelineModel lets you keep range data sorted by both start and end times, so that
    visible ranges can easily be computed. The only precondition for that to work is that the ranges
    must be perfectly nested. A "parent" range of a range R is defined as a range for which the
    start time is smaller than R's start time and the end time is greater than R's end time. A set
    of ranges is perfectly nested if all parent ranges of any given range have a common parent
    range. Mind that you can always make that happen by defining a range that spans the whole
    available time span. That, however, will make any code that uses firstStartTime() and
    lastEndTime() for selecting subsets of the model always select all of it.
*/

/*!
    \fn SortedTimelineModel::clear()
    Clears the ranges and their end times.
*/

/*!
    \fn int SortedTimelineModel::count() const
    Returns the number of ranges in the model.
*/

/*!
    \fn qint64 SortedTimelineModel::firstStartTime() const
    Returns the begin of the first range in the model.
*/

/*!
    \fn qint64 SortedTimelineModel::lastEndTime() const
    Returns the end of the last range in the model.
*/

/*!
{'fraction_non_alphanumeric': 0.1350806451612903, 'fraction_numerical': 0.0064516129032258064, 'mean_word_length': 4.1039094650205765, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4547535', 'n_tokens_mistral': 1271, 'n_tokens_neox': 1213, 'n_words': 614}