<commit_before>description: |
    A study with its many configuration options.
type: object
required:
    - name
    - sponsorName
    - supportEmail
    - technicalEmail
    - identifier
    - consentNotificationEmail
    - version
properties:
    name:
        type: string
        description: A label for the study. This will be shown to users in emails and other contexts.
    sponsorName:
        type: string
        description: The name of the institution or organization that is conducting the study. 
    supportEmail:
        type: string
        description: |
            The email address that will be given to study participants and other end user for all support 
            requests and queries (technical, study-related, etc.). This can be a comma-separated list of email addresses. 
            Email will be sent via this email address.  
    technicalEmail:
        type: string
        description: |
            The email address for a technical contact who can coordinate with the Bridge Server team on technical 
            issues (client or server). This can be a comma-separated list of email addresses.
    consentNotificationEmail:
        type: string
        description: |
            Copies of all consent agreements, as well as rosters of all participants in a study, or any other study 
            governance issues, will be emailed to this address. This can be a comma-separated list of email addresses.
    identifier:
        type: string
        description: |
            A user selected identifier that is unique relative to all other Bridge studies (lower-case letters and dashes only). 
            The identifier serves as a "domain" that scopes accounts to that study, and is usually created by combining an 
            institution and study tag or acronym. For example, if you work at the University of Washington and your study is on 
            Asthma in Children, your identifier might be `uw-child-asthma`. Participants will not see this identifier.
    version:
        type: integer
        description: |
            A version number used for optimistic locking of the object these keys represent; this value must be passed 
            back to the server on updates. If the version doesn't match the version in the database, an error will be 
            returned (409 Conflict) and the study will not be saved. 
    minAgeOfConsent:
        type: integer
        default: 18
        description: |
            The minimum required age for participants in the study. If the user reports they are younger than this age, they will not be allowed to consent to the research.
    synapseDataAccessTeamId:
        type: integer
        description: |
            Synapse team ID that is granted read access to exported health data records.
    synapseProjectId:
        type: integer
        description: The Synapse project to export health data records to.
    usesCustomExportSchedule:
        type: boolean
        description: |
            **Note: Bridge engineers will normally set this value when setting up data export. You should probably leave this 
            setting as is.** By default, all studies are exported using the default nightly schedule. Some studies may need 
            custom schedules for hourly or on-demand exports. To prevent this study from being exported twice (once by the 
            custom schedule, once by the default schedule), you should set this attribute to true.
    userProfileAttributes:
        type: array
        description: |
            Custom attributes that can be added to the StudyParticipant object (as members of the attributes property). For 
            example, if you wished to collect a telephone number for participants and had permission to do so, you could add 
            the "telephone" attribute. The map of a user's profile attributes can be personally identifying health information; 
            it will be stored encrypted and in a separate data store from the participant's health data.<commit_msg>Chaning type of one study property based on server values; updating documentation.<commit_after>description: |
    A study with its many configuration options.
type: object
required:
    - name
    - sponsorName
    - supportEmail
    - technicalEmail
    - identifier
    - consentNotificationEmail
    - version
properties:
    name:
        type: string
        description: A label for the study. This will be shown to users in emails and other contexts.
    sponsorName:
        type: string
        description: The name of the institution or organization that is conducting the study. 
    supportEmail:
        type: string
        description: |
            The email address that will be given to study participants and other end user for all support 
            requests and queries (technical, study-related, etc.). This can be a comma-separated list of email addresses. 
            Email will be sent via this email address.  
    technicalEmail:
        type: string
        description: |
            The email address for a technical contact who can coordinate with the Bridge Server team on technical 
            issues (client or server). This can be a comma-separated list of email addresses.
    consentNotificationEmail:
        type: string
        description: |
            Copies of all consent agreements, as well as rosters of all participants in a study, or any other study 
            governance issues, will be emailed to this address. This can be a comma-separated list of email addresses.
    identifier:
        type: string
        description: |
            A user selected identifier that is unique relative to all other Bridge studies (lower-case letters and dashes only). 
            The identifier serves as a "domain" that scopes accounts to that study, and is usually created by combining an 
            institution and study tag or acronym. For example, if you work at the University of Washington and your study is on 
            Asthma in Children, your identifier might be `uw-child-asthma`. Participants will not see this identifier.
    version:
        type: integer
        description: |
            A version number used for optimistic locking of the object these keys represent; this value must be passed 
            back to the server on updates. If the version doesn't match the version in the database, an error will be 
            returned (409 Conflict) and the study will not be saved. 
    minAgeOfConsent:
        type: integer
        default: 18
        description: |
            The minimum required age for participants in the study. If the user reports they are younger than this age, they will not be allowed to consent to the research.
    synapseDataAccessTeamId:
        type: integer
        description: |
            Synapse team ID that is granted read access to exported health data records.
    synapseProjectId:
        type: string
        description: The Synapse project to export health data records to.
    usesCustomExportSchedule:
        type: boolean
        description: |
            **Note: Bridge engineers will normally set this value when setting up data export. You should probably leave this 
            setting as is.** By default, all studies are exported using the default nightly schedule. Some studies may need 
            custom schedules for hourly or on-demand exports. To prevent this study from being exported twice (once by the 
            custom schedule, once by the default schedule), you should set this attribute to true.
    userProfileAttributes:
        type: array
        description: |
            Custom attributes that can be added to the StudyParticipant object (as members of the attributes property). For 
            example, if you wished to collect a telephone number for participants and had permission to do so, you could add 
            the "telephone" attribute. The map of a user's profile attributes can be personally identifying health information; 
            it will be stored encrypted and in a separate data store from the participant's health data.
{'fraction_non_alphanumeric': 0.03518700787401575, 'fraction_numerical': 0.0012303149606299212, 'mean_word_length': 2.487344487344487, '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': '5963973', 'n_tokens_mistral': 1793, 'n_tokens_neox': 1702, 'n_words': 1032}