<commit_before><?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> 

    <description>Various PUPIL stuff.</description>

    <display-name>PUPIL</display-name>

    <servlet>
        <servlet-name>Pupil</servlet-name>
        <servlet-class>pupil.Pupil</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>Pupil</servlet-name>
        <url-pattern>/pupil/*</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>SQL</servlet-name>
        <servlet-class>pupil.SQL</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>SQL</servlet-name>
        <url-pattern>/sql/*</url-pattern>
    </servlet-mapping>

</web-app>
<commit_msg>Configure database and admin login from web.xml<commit_after><?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> 


    <!-- CONFIGURE ADMIN USERNAME HERE -->
    <context-param>
        <param-name>adminUser</param-name>
        <param-value>admin</param-value>
    </context-param>

    <!-- CONFIGURE ADMIN PASSWORD HERE -->
    <context-param>
        <param-name>adminPassword</param-name>
        <param-value>admin</param-value>
    </context-param>



    <!-- CONFIGURE NAME OF DATABASE HERE -->
    <context-param>
        <param-name>databaseName</param-name>
        <param-value>pupil</param-value>
    </context-param>

    <!-- CONFIGURE DATABASE USER HERE -->
    <context-param>
        <param-name>databaseUser</param-name>
        <param-value>pupil</param-value>
    </context-param>

    <!-- CONFIGURE DATABASE PASSWORD HERE -->
    <context-param>
        <param-name>databasePassword</param-name>
        <param-value>pupil</param-value>
    </context-param>

    <!-- CONFIGURE DATABASE URL HERE -->
    <context-param>
        <param-name>databaseUrl</param-name>
        <param-value>jdbc:mysql://localhost:3306/</param-value>
    </context-param>

    <!-- CONFIGURE DATABASE DRIVER HERE -->
    <context-param>
        <param-name>databaseDriver</param-name>
        <param-value>com.mysql.jdbc.Driver</param-value>
    </context-param>




    <!-- NOTHING BENEATH THIS POINT NEEDS TO BE CHANGED -->

    <description>The PUPIL web application</description>

    <display-name>PUPIL</display-name>

    <servlet>
        <servlet-name>Pupil</servlet-name>
        <servlet-class>pupil.Pupil</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>Pupil</servlet-name>
        <url-pattern>/pupil/*</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>SQL</servlet-name>
        <servlet-class>pupil.SQL</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>SQL</servlet-name>
        <url-pattern>/sql/*</url-pattern>
    </servlet-mapping>

</web-app>

{'fraction_non_alphanumeric': 0.17660044150110377, 'fraction_numerical': 0.011352885525070956, 'mean_word_length': 2.731764705882353, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 2, '>': 115, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 13}, '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': '7474978', 'n_tokens_mistral': 1139, 'n_tokens_neox': 1070, 'n_words': 132}