<commit_before>#!/usr/bin/env python3

from reporter.connections import RedcapInstance
from reporter.application_abstract_reports.redcap.percentage_complete import (
    RedcapPercentageCompleteReport,
)
from reporter.application_abstract_reports.redcap.withdrawn_or_excluded_with_data import (
    RedcapWithdrawnOrExcludedWithDataReport,
)
from reporter.emailing import (
    RECIPIENT_INDAPAMIDE_ADMIN as RECIPIENT_ADMIN,
    RECIPIENT_INDAPAMIDE_MANAGER as RECIPIENT_MANAGER,
    RECIPIENT_IT_DQ,
)
from reporter.application_abstract_reports.redcap.data_quality import (
    RedcapMissingData,
    RedcapInvalidStudyNumber,
    RedcapRecordInvalidStudyNumber,
    RedcapInvalidBloodPressure,
    RedcapInvalidPulse,
    RedcapInvalidHeightInCm,
    RedcapInvalidWeightInKg,
    RedcapInvalidBmi,
    RedcapInvalidDate,
)
from reporter.application_abstract_reports.redcap.web_data_quality import (
    RedcapWebDataQuality,
)

CRF_PROJECT_ID = 50
SCREENING_PROJECT_ID = 54
REDCAP_INSTANCE = RedcapInstance.internal


class IndapamideRedcapPercentageCompleteReport(RedcapPercentageCompleteReport):
    def __init__(self):
        super().__init__(
            'Indapamide',
            [RECIPIENT_ADMIN, RECIPIENT_MANAGER],
        )


class IndapamideRedcapWithdrawnOrExcludedWithDataReport(
        RedcapWithdrawnOrExcludedWithDataReport):
    def __init__(self):
        super().__init__(
            'Indapamide',
            [RECIPIENT_ADMIN, RECIPIENT_MANAGER])
<commit_msg>Nevermore<commit_after>#!/usr/bin/env python3

from reporter.connections import RedcapInstance
from reporter.application_abstract_reports.redcap.percentage_complete import (
    RedcapPercentageCompleteReport,
)
from reporter.application_abstract_reports.redcap.withdrawn_or_excluded_with_data import (
    RedcapWithdrawnOrExcludedWithDataReport,
)
from reporter.emailing import (
    RECIPIENT_INDAPAMIDE_ADMIN as RECIPIENT_ADMIN,
    RECIPIENT_INDAPAMIDE_MANAGER as RECIPIENT_MANAGER,
    RECIPIENT_IT_DQ,
)
from reporter.application_abstract_reports.redcap.data_quality import (
    RedcapMissingData,
    RedcapInvalidStudyNumber,
    RedcapRecordInvalidStudyNumber,
    RedcapInvalidBloodPressure,
    RedcapInvalidPulse,
    RedcapInvalidHeightInCm,
    RedcapInvalidWeightInKg,
    RedcapInvalidBmi,
    RedcapInvalidDate,
)
from reporter.application_abstract_reports.redcap.web_data_quality import (
    RedcapWebDataQuality,
)
from reporter.core import Schedule

CRF_PROJECT_ID = 50
SCREENING_PROJECT_ID = 54
REDCAP_INSTANCE = RedcapInstance.internal


class IndapamideRedcapPercentageCompleteReport(RedcapPercentageCompleteReport):
    def __init__(self):
        super().__init__(
            'Indapamide',
            [RECIPIENT_ADMIN, RECIPIENT_MANAGER],
        )


class IndapamideRedcapWithdrawnOrExcludedWithDataReport(
        RedcapWithdrawnOrExcludedWithDataReport):
    def __init__(self):
        super().__init__(
            'Indapamide',
            [RECIPIENT_ADMIN, RECIPIENT_MANAGER],
            schedule=Schedule.never,
        )

{'fraction_non_alphanumeric': 0.058147174770039424, 'fraction_numerical': 0.0032851511169513796, 'mean_word_length': 4.734463276836158, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2399165', 'n_tokens_mistral': 996, 'n_tokens_neox': 933, 'n_words': 131}