<commit_before>"""
Taken from exmaple by <NAME>, <EMAIL>
here: http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=6865
and converted into Python
"""

import ROOT
from ROOT import TMath
from math import sqrt
from array import array
from rootpy.plotting import Graph, Hist, Canvas


def qq_plot(h1, h2, quantiles=None):
    """
    Return a Graph of a QQ plot and Graph of the confidence band
    """
    if quantiles is None:
        quantiles = max(min(len(h1), len(h2)) / 2, 1)
    nq  = quantiles
    xq = array('d', [0.] * nq)   # position where to compute the quantiles in [0,1]<commit_msg>updates<commit_after>"""
Taken from exmaple by <NAME>, <EMAIL>
here: http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=6865
and converted into Python
"""

import ROOT
from ROOT import TMath
from math import sqrt
from array import array
from rootpy.plotting import Graph, Hist, Canvas


def qq_plot(h1, h2, quantiles=None):
    """
    Return a Graph of a QQ plot and confidence band
    """
    if quantiles is None:
        quantiles = max(min(len(h1), len(h2)) / 2, 1)
    nq  = quantiles
    xq = array('d', [0.] * nq)   # position where to compute the quantiles in [0,1]
{'fraction_non_alphanumeric': 0.12058570198105081, 'fraction_numerical': 0.025839793281653745, 'mean_word_length': 3.5390625, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '896022', 'n_tokens_mistral': 426, 'n_tokens_neox': 411, 'n_words': 142}