<commit_before>"""
Interface for openaps reports

"""
from datetime import datetime
from glob import glob
import json
import os


class Settings(object):
    """Filenames containing report data are relative to the openaps path"""

    # What glucose measurement scale should we use. Use "mg/dL" for USA, otherwise "mmol/L"
    DISPLAY_UNIT = "mg/dL"

    # A report containing glucose data in reverse-chronological order. Each entry should contain both a local timestamp
    # and a glucose value:
    # {
    #   "date" | "display_time" : "<ISO date string>",
    #   "sgv" | "amount" | "glucose" : 100
    # }
    CLEAN_GLUCOSE = 'clean_glucose.json'

    # A report containing IOB levels in chronological order. Each entry should contain a local timestamp and an IOB value:
    # {
    #   "date": "<ISO date string>",
    #   "amount": 1.0
    #   "unit": "U"
    # }
    IOB = 'iob_list.json'

    # A report containing history data in reverse-chronological order. Each entry should be in the dictionary format as
    # defined by openapscontrib.mmhistorytools, and should be fully munged by those steps for best display.
    NORMALIZE_HISTORY = 'normalize_history.json'

    # A report containing predicted glucose values in chronological order. Each entry should contain a local timestamp
    # and a glucose value:
    # {
    #   "date": "<ISO date string>",
    #   "glucose": 100
    # }
    PREDICT_GLUCOSE = 'predict_glucose.json'

    # A report containing the output of the openaps medtronic vendor command "read_bg_targets".
    READ_BG_TARGETS = 'read_bg_targets.json'

    # A report containing the last-applied doses, if not yet present in the `NORMALIZE_HISTORY` report.
    SET_DOSE = 'set_dose.json'
<commit_msg>Reflect latest dose in history and predictions<commit_after>"""
Interface for openaps reports

"""
from datetime import datetime
from glob import glob
import json
import os


class Settings(object):
    """Filenames containing report data are relative to the openaps path"""

    # What glucose measurement scale should we use. Use "mg/dL" for USA, otherwise "mmol/L"
    DISPLAY_UNIT = "mg/dL"

    # A report containing glucose data in reverse-chronological order. Each entry should contain both a local timestamp
    # and a glucose value:
    # {
    #   "date" | "display_time" : "<ISO date string>",
    #   "sgv" | "amount" | "glucose" : 100
    # }
    CLEAN_GLUCOSE = 'clean_glucose.json'

    # A report containing IOB levels in chronological order. Each entry should contain a local timestamp and an IOB value:
    # {
    #   "date": "<ISO date string>",
    #   "amount": 1.0
    #   "unit": "U"
    # }
    IOB = 'iob_list.json'

    # A report containing history data in reverse-chronological order. Each entry should be in the dictionary format as
    # defined by openapscontrib.mmhistorytools, and should be fully munged by those steps for best display.
    NORMALIZE_HISTORY = 'normalize_history_and_dose.json'

    # A report containing predicted glucose values in chronological order. Each entry should contain a local timestamp
    # and a glucose value:
    # {
    #   "date": "<ISO date string>",
    #   "glucose": 100
    # }
    PREDICT_GLUCOSE = 'predict_glucose_with_dose.json'

    # A report containing the output of the openaps medtronic vendor command "read_bg_targets".
    READ_BG_TARGETS = 'read_bg_targets.json'

    # A report containing the last-applied doses, if not yet present in the `NORMALIZE_HISTORY` report.
    SET_DOSE = 'set_dose.json'


{'fraction_non_alphanumeric': 0.08577108775915933, 'fraction_numerical': 0.004544163589889236, 'mean_word_length': 3.2846715328467155, 'pattern_counts': {'":': 10, '<': 9, '<?xml version=': 0, '>': 9, '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': '6770366', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1013, 'n_words': 396}