<commit_before>*** Settings ***
Documentation     INFUND-184: As an applicant and on the over view of the application, I am able to see the character count and status of the questions, so I am able to see if my questions are valid    #Suite Setup    Run Keywords    Guest user log-in    &{lead_applicant_credentials}
...
...               INFUND-186: As an applicant and in the application form, I should be able to change the state of a question to mark as complete, so I don't have to revisit the question.
...
...               INFUND-66: As an applicant and I am on the application form, I can fill in the questions belonging to the application, so I can apply for the competition
...
...               INFUND-42: As an applicant and I am on the application form, I get guidance for questions, so I know what I need to fill in.
...
...               INFUND-183: As a an applicant and I am in the application form, I can see the character count that I have left, so I comply to the rules of the question
...
...               INFUND-4694 As an applicant I want to be able to provide details of my previous submission if I am allowed to resubmit my project in the current competition so that I comply with Innovate UK competition eligibility criteria
...
...               INFUND-6823 As an Applicant I want to be invited to select the primary 'Research area' for my project
Suite Setup       log in and create new application if there is not one already
Suite Teardown    TestTeardown User closes the browser
Force Tags        Applicant
Resource          ../../../../resources/defaultResources.robot

*** Test Cases ***
Application details: Previous submission
    [Documentation]    INFUND-4694
    Given the user navigates to the page    ${DASHBOARD_URL}
    And the user clicks the button/link    link=Robot test application
    And the user clicks the button/link    link=Application details
    When the user clicks the button/link    jQuery=label:contains(Yes)
    Then the user should see the text in the page    Please provide the details of this previous application
    And the user should see the text in the page    Previous application number
    And the user should see the text in the page    Previous application title
    When the user clicks the button/link    jQuery=label:contains(No)
    Then The user should not see the element    id=application_details-previousapplicationnumber

Application details: Research category
    [Documentation]    INFUND-6823
    Given The user clicks the button/link    jQuery=button:contains("Choose your research category")
    Then the user should see the element    jQuery=label:contains("Industrial research")
    And the user should see the element    jQuery=label:contains("Feasibility studies")
    And the user should see the element    jQuery=label:contains("Experimental development")
    and the user clicks the button/link    jQuery=button:contains(Save)
    Then the user should see an error    This field cannot be left blank
    and the user clicks the button twice    jQuery=label[for^="researchCategoryChoice"]:contains("Feasibility studies")
    and the user clicks the button/link    jQuery=button:contains(Save)
    And the finance summary page should show a warning

Application details: Innovation Area - Materials and manufacturing
    [Documentation]    INFUND-8115
    Given the user clicks the button/link    link=Application overview
    And the user clicks the button/link    link=Application details
    and the user should not see the element      jQuery=button:contains("Change your innovation area")
    and The user clicks the button/link   jQuery=button:contains("Choose your innovation area")
    Then the user should see the element    jQuery=label:contains("Composite materials"):contains("New composite materials with enhanced or new properties and performance.")
    And the user should see the element    jQuery=label:contains("My innovation area is not listed")
    And the user should see the element    jQuery=a:contains("Cancel")
    and the user clicks the button/link    jQuery=button:contains(Save)
    #Then the user should see an error       This field cannot be left blank
    #TODO : INFUND-9097
    and the user clicks the button/link   jQuery=label:contains("Metals / metallurgy")
    and the user clicks the button/link     jQuery=button:contains(Save)
    Then the user should see the element     jQuery=button:contains("Change your innovation area")

Application details: Innovation Area - Infrastructe
    [Documentation]    INFUND-8443
    [Tags]  MySQL
    [Setup]  Set the competition innovation sector to Infrastructure
    Given the user clicks the button/link   jQuery=button:contains("Change your innovation area")
    Then the user should see the element    jQuery=label:contains("Energy efficiency"):contains("Improve energy end-use efficiency, for example, in buildings, domestic appliances, industrial processes or vehicles.")
    And the user should see the element    jQuery=label:contains("My innovation area is not listed")
    And the user should see the element    jQuery=a:contains("Cancel")
    and the user clicks the button/link    jQuery=button:contains(Save)
    #Then the user should see an error       This field cannot be left blank
    #TODO : INFUND-9097
    and the user clicks the button/link   jQuery=label:contains("Energy systems")
    and the user clicks the button/link     jQuery=button:contains(Save)
    Then the user should see the element     jQuery=button:contains("Change your innovation area")
    [Teardown]  Set the competition innovation sector to Materials and manufacturing


Autosave in the form questions
    [Documentation]    INFUND-189
    [Tags]    HappyPath
    [Setup]
    Given the user navigates to the page    ${DASHBOARD_URL}
    And the user clicks the button/link    link=Robot test application
    And the user clicks the button/link    link=Project summary
    When the user edits the project summary question
    And the user reloads the page
    Then the text should be visible

Word count works
    [Documentation]    INFUND-198
    [Tags]    HappyPath
    When the Applicant edits the Project summary
    Then the word count should be correct for the Project summary
    And the Applicant edits the Project description question (300 words)
    Then the word count for the Project description question should be correct (100 words)

Guidance of the questions
    [Documentation]    INFUND-190
    [Tags]
    When the user clicks the button/link    css=#form-input-1039 .summary
    Then the user should see the element    css=#details-content-0 p

Marking a question as complete
    [Documentation]    INFUND-210,
    ...    INFUND-202
    [Tags]    HappyPath
    When the Applicant edits Project summary and marks it as complete
    Then the text box should turn to green
    And the button state should change to 'Edit'
    And the question should be marked as complete on the application overview page

Mark a question as incomplete
    [Documentation]    INFUND-210,
    ...    INFUND-202
    [Tags]    HappyPath
    Given the user clicks the button/link    link=Project summary
    When the user clicks the button/link    css=#form-input-1039 div.form-footer .form-footer__actions > button[name="mark_as_incomplete"]
    Then the text box should be editable
    And the button state should change to 'Mark as complete'
    And the question should not be marked as complete on the application overview page

Review and submit button
    [Tags]
    Given the user navigates to the page    ${DASHBOARD_URL}
    And the user clicks the button/link    link=Robot test application
    When the user clicks the button/link    jQuery=.button:contains("Review and submit")
    Then the user should see the text in the page    Application summary
    And the user should see the text in the page    Please review your application before final submission

*** Keywords ***
the text should be visible
    Wait Until Element Contains Without Screenshots    css=#form-input-1039 .editor    I am a robot

The user clicks the section link and is redirected to the correct section
    [Arguments]    ${link}    ${url}
    The user clicks the button/link    link=${link}
    The user should be redirected to the correct page    ${url}
    The user clicks the button/link    link=Application overview

the Applicant edits the Project summary
    Clear Element Text    css=#form-input-1039 .editor
    Press Key    css=#form-input-1039 .editor    \\8
    Focus    css=.app-submit-btn
    Wait Until Element Contains Without Screenshots    css=#form-input-1039 .count-down    400
    Focus    css=#form-input-1039 .editor
    The user enters text to a text field    css=#form-input-1039 .editor    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris test @.
    Focus    css=.app-submit-btn
    wait for autosave

the word count should be correct for the Project summary
    Wait Until Element Contains Without Screenshots    css=#form-input-1039 .count-down    369

the Applicant edits the Project description question (300 words)
    Clear Element Text    css=#form-input-1039 .editor
    Press Key    css=#form-input-1039 .editor    \\8
    The user enters text to a text field    css=#form-input-1039 .editor    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc, quis gravida magna mi a libero. Fusce vulputate eleifend sapien. Vestibulum purus quam, scelerisque ut, mollis sed, nonummy id, metus. Nullam accumsan lorem in dui. Cras ultricies mi eu turpis hendrerit fringilla. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In ac dui quis mi consectetuer lacinia. Nam pretium turpis et arcu. Duis arcu tortor, suscipit eget, imperdiet nec, imperdiet iaculis, ipsum. Sed aliquam ultrices mauris. Integer ante arcu, accumsan a, consectetuer eget, posuere ut, mauris. Praesent adipiscing. Phasellus ullamcorper ipsum rutrum nunc. Nunc nonummy metus. Vestibulum volutpat pretium libero. Cras id dui. Aenean ut
    Focus    css=.app-submit-btn
    wait for autosave

the text box should turn to green
    the user should see the element    css=#form-input-1039 div.success-alert
    Element Should Be Disabled    css=#form-input-1039 textarea

the button state should change to 'Edit'
    the user should see the element    jQuery=button:contains("Edit")

the word count for the Project description question should be correct (100 words)
    Element Should Contain    css=#form-input-1039 .count-down    100

the Applicant edits Project summary and marks it as complete
    focus    css=#form-input-1039 .editor
    Clear Element Text    css=#form-input-1039 .editor
    Press Key    css=#form-input-1039 .editor    \\8
    focus    css=#form-input-1039 .editor
    The user enters text to a text field    css=#form-input-1039 .editor    Hi, I’m a robot @#$@#$@#$
    the user clicks the button/link    css=#form-input-1039 .form-footer .form-footer__actions button[name="mark_as_complete"]

the question should be marked as complete on the application overview page
    The user clicks the button/link    link=Application overview
    The user should see the element    jQuery=#section-184 li:nth-child(2) span:contains("Complete")

the text box should be editable
    Wait Until Element Is Enabled Without Screenshots    css=#form-input-1039 textarea

the button state should change to 'Mark as complete'
    the user should see the element    jQuery=button:contains("Mark as complete")

the question should not be marked as complete on the application overview page
    The user clicks the button/link    link=Application overview
    Run Keyword And Ignore Error Without Screenshots    confirm action
    the user should see the element    jQuery=#section-184 li:nth-child(2)
    the user should not see the element    jQuery=#section-184 li:nth-child(2) span:contains("Complete")

the finance summary page should show a warning
    The user clicks the button/link    link=Application overview
    The user clicks the button/link    link=Your finances
    the user should see the element    jQuery=h3:contains("Your funding") + p:contains("You must select a research category in application details ")

Set the competition innovation sector to Infrastructure
    Connect to Database    @{database}
    Execute sql string    UPDATE `${database_name}`.`category_link` SET category_id=(SELECT id FROM `${database_name}`.`category` WHERE `name` = 'Infrastructure systems') WHERE class_name = "org.innovateuk.ifs.competition.domain.Competition#innovationSector" AND class_pk = '${OPEN_COMPETITION}'

Set the competition innovation sector to Materials and manufacturing
    Connect to Database    @{database}
    execute sql string    UPDATE `${database_name}`.`category_link` SET category_id=(SELECT id FROM `${database_name}`.`category` WHERE `name` = 'Materials and manufacturing') WHERE class_name = "org.innovateuk.ifs.competition.domain.Competition#innovationSector" AND class_pk = '${OPEN_COMPETITION}';<commit_msg>INFUND-8654 innovation and research validation err<commit_after>*** Settings ***
Documentation     INFUND-184: As an applicant and on the over view of the application, I am able to see the character count and status of the questions, so I am able to see if my questions are valid    #Suite Setup    Run Keywords    Guest user log-in    &{lead_applicant_credentials}
...
...               INFUND-186: As an applicant and in the application form, I should be able to change the state of a question to mark as complete, so I don't have to revisit the question.
...
...               INFUND-66: As an applicant and I am on the application form, I can fill in the questions belonging to the application, so I can apply for the competition
...
...               INFUND-42: As an applicant and I am on the application form, I get guidance for questions, so I know what I need to fill in.
...
...               INFUND-183: As a an applicant and I am in the application form, I can see the character count that I have left, so I comply to the rules of the question
...
...               INFUND-4694 As an applicant I want to be able to provide details of my previous submission if I am allowed to resubmit my project in the current competition so that I comply with Innovate UK competition eligibility criteria
...
...               INFUND-6823 As an Applicant I want to be invited to select the primary 'Research area' for my project
Suite Setup       log in and create new application if there is not one already
Suite Teardown    TestTeardown User closes the browser
Force Tags        Applicant
Resource          ../../../../resources/defaultResources.robot

*** Test Cases ***
Application details: Previous submission
    [Documentation]    INFUND-4694
    Given the user navigates to the page    ${DASHBOARD_URL}
    And the user clicks the button/link    link=Robot test application
    And the user clicks the button/link    link=Application details
    When the user clicks the button/link    jQuery=label:contains(Yes)
    Then the user should see the text in the page    Please provide the details of this previous application
    And the user should see the text in the page    Previous application number
    And the user should see the text in the page    Previous application title
    When the user clicks the button/link    jQuery=label:contains(No)
    Then The user should not see the element    id=application_details-previousapplicationnumber

Application details: Research category
    [Documentation]    INFUND-6823
    Given The user clicks the button/link    jQuery=button:contains("Choose your research category")
    Then the user should see the element    jQuery=label:contains("Industrial research")
    And the user should see the element    jQuery=label:contains("Feasibility studies")
    And the user should see the element    jQuery=label:contains("Experimental development")
    and the user clicks the button/link    jQuery=button:contains(Save)
    Then the user should see an error    This field cannot be left blank
    and the user clicks the button twice    jQuery=label[for^="researchCategoryChoice"]:contains("Feasibility studies")
    and the user clicks the button/link    jQuery=button:contains(Save)
    And the finance summary page should show a warning

Application details: Innovation Area - Materials and manufacturing
    [Documentation]    INFUND-8115
    Given the user clicks the button/link    link=Application overview
    And the user clicks the button/link    link=Application details
    and the user should not see the element      jQuery=button:contains("Change your innovation area")
    and The user clicks the button/link   jQuery=button:contains("Choose your innovation area")
    Then the user should see the element    jQuery=label:contains("Composite materials"):contains("New composite materials with enhanced or new properties and performance.")
    And the user should see the element    jQuery=label:contains("My innovation area is not listed")
    And the user should see the element    jQuery=a:contains("Cancel")
    and the user clicks the button/link    jQuery=button:contains(Save)
    #Then the user should see an error       This field cannot be left blank
    #TODO : INFUND-9097
    and the user clicks the button/link   jQuery=label:contains("Metals / metallurgy")
    and the user clicks the button/link     jQuery=button:contains(Save)
    Then the user should see the element     jQuery=button:contains("Change your innovation area")

Application details: Innovation Area - Infrastructe
    [Documentation]    INFUND-8443
    [Tags]  MySQL
    [Setup]  Set the competition igit nnovation sector to Infrastructure
    Given the user clicks the button/link   jQuery=button:contains("Change your innovation area")
    Then the user should see the element    jQuery=label:contains("Energy efficiency"):contains("Improve energy end-use efficiency, for example, in buildings, domestic appliances, industrial processes or vehicles.")
    And the user should see the element    jQuery=label:contains("My innovation area is not listed")
    And the user should see the element    jQuery=a:contains("Cancel")
    and the user clicks the button/link    jQuery=button:contains(Save)
    #Then the user should see an error       This field cannot be left blank
    #TODO : INFUND-9097
    and the user clicks the button/link   jQuery=label:contains("Energy systems")
    and the user clicks the button/link     jQuery=button:contains(Save)
    Then the user should see the element     jQuery=button:contains("Change your innovation area")
    [Teardown]  Set the competition innovation sector to Materials and manufacturing


Autosave in the form questions
    [Documentation]    INFUND-189
    [Tags]    HappyPath
    [Setup]
    Given the user navigates to the page    ${DASHBOARD_URL}
    And the user clicks the button/link    link=Robot test application
    And the user clicks the button/link    link=Project summary
    When the user edits the project summary question
    And the user reloads the page
    Then the text should be visible

Word count works
    [Documentation]    INFUND-198
    [Tags]    HappyPath
    When the Applicant edits the Project summary
    Then the word count should be correct for the Project summary
    And the Applicant edits the Project description question (300 words)
    Then the word count for the Project description question should be correct (100 words)

Guidance of the questions
    [Documentation]    INFUND-190
    [Tags]
    When the user clicks the button/link    css=#form-input-1039 .summary
    Then the user should see the element    css=#details-content-0 p

Marking a question as complete
    [Documentation]    INFUND-210,
    ...    INFUND-202
    [Tags]    HappyPath
    When the Applicant edits Project summary and marks it as complete
    Then the text box should turn to green
    And the button state should change to 'Edit'
    And the question should be marked as complete on the application overview page

Mark a question as incomplete
    [Documentation]    INFUND-210,
    ...    INFUND-202
    [Tags]    HappyPath
    Given the user clicks the button/link    link=Project summary
    When the user clicks the button/link    css=#form-input-1039 div.form-footer .form-footer__actions > button[name="mark_as_incomplete"]
    Then the text box should be editable
    And the button state should change to 'Mark as complete'
    And the question should not be marked as complete on the application overview page

Review and submit button
    [Tags]
    Given the user navigates to the page    ${DASHBOARD_URL}
    And the user clicks the button/link    link=Robot test application
    When the user clicks the button/link    jQuery=.button:contains("Review and submit")
    Then the user should see the text in the page    Application summary
    And the user should see the text in the page    Please review your application before final submission

*** Keywords ***
the text should be visible
    Wait Until Element Contains Without Screenshots    css=#form-input-1039 .editor    I am a robot

The user clicks the section link and is redirected to the correct section
    [Arguments]    ${link}    ${url}
    The user clicks the button/link    link=${link}
    The user should be redirected to the correct page    ${url}
    The user clicks the button/link    link=Application overview

the Applicant edits the Project summary
    Clear Element Text    css=#form-input-1039 .editor
    Press Key    css=#form-input-1039 .editor    \\8
    Focus    css=.app-submit-btn
    Wait Until Element Contains Without Screenshots    css=#form-input-1039 .count-down    400
    Focus    css=#form-input-1039 .editor
    The user enters text to a text field    css=#form-input-1039 .editor    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris test @.
    Focus    css=.app-submit-btn
    wait for autosave

the word count should be correct for the Project summary
    Wait Until Element Contains Without Screenshots    css=#form-input-1039 .count-down    369

the Applicant edits the Project description question (300 words)
    Clear Element Text    css=#form-input-1039 .editor
    Press Key    css=#form-input-1039 .editor    \\8
    The user enters text to a text field    css=#form-input-1039 .editor    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc, quis gravida magna mi a libero. Fusce vulputate eleifend sapien. Vestibulum purus quam, scelerisque ut, mollis sed, nonummy id, metus. Nullam accumsan lorem in dui. Cras ultricies mi eu turpis hendrerit fringilla. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In ac dui quis mi consectetuer lacinia. Nam pretium turpis et arcu. Duis arcu tortor, suscipit eget, imperdiet nec, imperdiet iaculis, ipsum. Sed aliquam ultrices mauris. Integer ante arcu, accumsan a, consectetuer eget, posuere ut, mauris. Praesent adipiscing. Phasellus ullamcorper ipsum rutrum nunc. Nunc nonummy metus. Vestibulum volutpat pretium libero. Cras id dui. Aenean ut
    Focus    css=.app-submit-btn
    wait for autosave

the text box should turn to green
    the user should see the element    css=#form-input-1039 div.success-alert
    Element Should Be Disabled    css=#form-input-1039 textarea

the button state should change to 'Edit'
    the user should see the element    jQuery=button:contains("Edit")

the word count for the Project description question should be correct (100 words)
    Element Should Contain    css=#form-input-1039 .count-down    100

the Applicant edits Project summary and marks it as complete
    focus    css=#form-input-1039 .editor
    Clear Element Text    css=#form-input-1039 .editor
    Press Key    css=#form-input-1039 .editor    \\8
    focus    css=#form-input-1039 .editor
    The user enters text to a text field    css=#form-input-1039 .editor    Hi, I’m a robot @#$@#$@#$
    the user clicks the button/link    css=#form-input-1039 .form-footer .form-footer__actions button[name="mark_as_complete"]

the question should be marked as complete on the application overview page
    The user clicks the button/link    link=Application overview
    The user should see the element    jQuery=#section-184 li:nth-child(2) span:contains("Complete")

the text box should be editable
    Wait Until Element Is Enabled Without Screenshots    css=#form-input-1039 textarea

the button state should change to 'Mark as complete'
    the user should see the element    jQuery=button:contains("Mark as complete")

the question should not be marked as complete on the application overview page
    The user clicks the button/link    link=Application overview
    Run Keyword And Ignore Error Without Screenshots    confirm action
    the user should see the element    jQuery=#section-184 li:nth-child(2)
    the user should not see the element    jQuery=#section-184 li:nth-child(2) span:contains("Complete")

the finance summary page should show a warning
    The user clicks the button/link    link=Application overview
    The user clicks the button/link    link=Your finances
    the user should see the element    jQuery=h3:contains("Your funding") + p:contains("You must select a research category in application details ")

Set the competition innovation sector to Infrastructure
    Connect to Database    @{database}
    Execute sql string    UPDATE `${database_name}`.`category_link` SET category_id=(SELECT id FROM `${database_name}`.`category` WHERE `name` = 'Infrastructure systems') WHERE class_name = "org.innovateuk.ifs.competition.domain.Competition#innovationSector" AND class_pk = '${OPEN_COMPETITION}'

Set the competition innovation sector to Materials and manufacturing
    Connect to Database    @{database}
    execute sql string    UPDATE `${database_name}`.`category_link` SET category_id=(SELECT id FROM `${database_name}`.`category` WHERE `name` = 'Materials and manufacturing') WHERE class_name = "org.innovateuk.ifs.competition.domain.Competition#innovationSector" AND class_pk = '${OPEN_COMPETITION}';
{'fraction_non_alphanumeric': 0.05726993759266283, 'fraction_numerical': 0.013377926421404682, 'mean_word_length': 3.6008883248730963, 'pattern_counts': {'":': 0, '<': 3, '<?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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1122964', 'n_tokens_mistral': 8257, 'n_tokens_neox': 7743, 'n_words': 3595}