<commit_before>#### This Script builds the framework to monitor individual series from OpenRBF and gives a first shot at some outputs.
## <NAME>
##
##  v1   - 3/2017 : Creates the serie objects + methods for diagnostic. Simple algorith = median + 2sd



import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import time

%matplotlib inline

class serie(object):
    """ A Serie currently being monitored

    Parameters
    ----------
    data : DataFrame
        The full OpenRBF data
    facility : int
        The ID of the monitored facility
    indicator : str
        The name of the monitored indicator

    Attributes
    ----------
    facility : int
        the ID of the monitored facility
    indicator : str
        the name of the indicator serie
    """

    def __init__(self, data, facility, indicator):
        self.facility = facility
        self.indicator = indicator<commit_msg>updating initial loads<commit_after>#### This Script builds the framework to monitor individual series from OpenRBF and gives a first shot at some outputs.
## <NAME>
##
##  v1   - 3/2017 : Creates the serie objects + methods for diagnostic. Simple algorith = median + 2sd



import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import time

class serie(object):
    """ A Serie currently being monitored

    Parameters
    ----------
    data : DataFrame
        The full OpenRBF data
    facility : int
        The ID of the monitored facility
    indicator : str
        The name of the monitored indicator

    Attributes
    ----------
    facility : int
        the ID of the monitored facility
    indicator : str
        the name of the indicator serie
    """

    def __init__(self, data, facility, indicator):
        self.facility = facility
        self.indicator = indicator
{'fraction_non_alphanumeric': 0.07337975361542581, 'fraction_numerical': 0.007498660953401178, 'mean_word_length': 2.4592592592592593, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1859696', 'n_tokens_mistral': 499, 'n_tokens_neox': 474, 'n_words': 219}