<commit_before>from django.conf import settings
from django.core.urlresolvers import reverse_lazy

from common.app_configs import BaseConnectionAppConfig


class PGPConfig(BaseConnectionAppConfig):
    """
    Configure the PGP Harvard study application.

    Note: The verbose_name matches the 'name' assigned for this study's API
    client. This is the 'name' field for its corresponding oauth2_provider
    Application, and was set by the setup_api management command in
    open_humans/management/commands/setup_api.py
    """

    name = __package__
    verbose_name = 'Harvard Personal Genome Project'

    if settings.ENV == 'staging':
        href_connect = 'https://my-dev.pgp-hms.org/open_humans/participate'
        href_add_data = 'https://my-dev.pgp-hms.org/open_humans/participate'
    else:
        href_connect = 'https://my.pgp-hms.org/open_humans/participate'
        href_add_data = 'https://my.pgp-hms.org/open_humans/participate'

    href_learn = 'http://www.personalgenomes.org/harvard/'
    retrieval_url = reverse_lazy('studies:pgp:request-data-retrieval')
    msg_add_data = ("We don't have your PGP Harvard identifier (huID). "
                    'You can add this through the PGP Harvard website.')
    leader = '<NAME>'
    organization = 'Harvard Medical School'

    description = """The Harvard PGP seeks to share genomes and associated
    health data, despite potential for re-identification, to advance research
    in human health and biology."""

    data_description = {
        'name': 'Genome and survey data',
        'description': ('Harvard Personal Genome Project whole genome data '
                        'and survey data. This can reveal information about '
                        "health, traits, ancestry, and who you're related to.")
    }
<commit_msg>Fix broken link for Harvard PGP<commit_after>from django.conf import settings
from django.core.urlresolvers import reverse_lazy

from common.app_configs import BaseConnectionAppConfig


class PGPConfig(BaseConnectionAppConfig):
    """
    Configure the PGP Harvard study application.

    Note: The verbose_name matches the 'name' assigned for this study's API
    client. This is the 'name' field for its corresponding oauth2_provider
    Application, and was set by the setup_api management command in
    open_humans/management/commands/setup_api.py
    """

    name = __package__
    verbose_name = 'Harvard Personal Genome Project'

    if settings.ENV == 'staging':
        href_connect = 'https://my-dev.pgp-hms.org/open_humans/participate'
        href_add_data = 'https://my-dev.pgp-hms.org/open_humans/participate'
    else:
        href_connect = 'https://my.pgp-hms.org/open_humans/participate'
        href_add_data = 'https://my.pgp-hms.org/open_humans/participate'

    href_learn = 'https://pgp.med.harvard.edu/'
    retrieval_url = reverse_lazy('studies:pgp:request-data-retrieval')
    msg_add_data = ("We don't have your PGP Harvard identifier (huID). "
                    'You can add this through the PGP Harvard website.')
    leader = '<NAME>'
    organization = 'Harvard Medical School'

    description = """The Harvard PGP seeks to share genomes and associated
    health data, despite potential for re-identification, to advance research
    in human health and biology."""

    data_description = {
        'name': 'Genome and survey data',
        'description': ('Harvard Personal Genome Project whole genome data '
                        'and survey data. This can reveal information about '
                        "health, traits, ancestry, and who you're related to.")
    }

{'fraction_non_alphanumeric': 0.08952749378281293, 'fraction_numerical': 0.0005526388505111909, 'mean_word_length': 3.1043083900226756, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 9, 'lorem ipsum': 0, 'www.': 1, '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': '4893088', 'n_tokens_mistral': 1054, 'n_tokens_neox': 1007, 'n_words': 311}