<commit_before><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.fcrepo</groupId>
        <artifactId>fcrepo</artifactId>
        <version>3.4-SNAPSHOT</version>
    </parent>

    <artifactId>fcrepo-server</artifactId>
    <packaging>jar</packaging>
    <name>Fedora Server Library</name>

    <properties>
        <demo.src.dir>${basedir}/src/main/resources/demo</demo.src.dir>
        <fedora.home.build.dir>${basedir}/build/home</fedora.home.build.dir>

        <fedora.hostname>localhost</fedora.hostname>
        <fedora.port>8080</fedora.port>
        <fedora.appServerContext>fedora</fedora.appServerContext>

    </properties>

    <build>

        <!-- This 'resource' directory should be migrated to default location -->
        <resources>
            <resource>
                <directory>../resources/server</directory>
                <filtering>true</filtering>
            </resource>
            <resource>
                <directory>src/main/resources/properties</directory>
            </resource>
            <resource>
                <directory>src/main/resources/dbspec/server</directory>
            </resource>
            <resource>
                <directory>src/main/resources/utilities/server</directory>
            </resource>
        </resources>


        <plugins>
            <!--
              Note: This plugin was defined as required by: client, integrationtest, & server.test.
                 It is certainly required by fedorahome.zip (integrationtest) & server.test.
                 The other two dependencies listed above are questionable.
            -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.1.1</version>
                <executions>

                    <execution>
                        <id>demo-convert-mets</id>
                        <phase>generate-test-resources</phase>
                        <goals>
                            <goal>java</goal>
                        </goals>
                        <configuration>
                            <mainClass>org.fcrepo.server.storage.translation.ConvertObjectSerialization</mainClass>
                            <arguments>
                                <argument>${basedir}/src/main/resources/demo/demo-objects/foxml</argument>
                                <argument>${project.build.directory}/client/demo/mets</argument>
                                <argument>org.fcrepo.server.storage.translation.FOXML1_1DODeserializer</argument>
                                <argument>org.fcrepo.server.storage.translation.METSFedoraExt1_1DOSerializer</argument>
                                <argument>true</argument>
                                <argument>xml</argument>
                                <argument>xml</argument>
                            </arguments>
                            <classpathScope>runtime</classpathScope>
                        </configuration>
                    </execution>
                    <execution>
                        <id>demo-convert-atom</id>
                        <phase>generate-test-resources</phase>
                        <goals>
                            <goal>java</goal>
                        </goals>
                        <configuration>
                            <mainClass>org.fcrepo.server.storage.translation.ConvertObjectSerialization</mainClass>
                            <arguments>
                                <argument>${basedir}/src/main/resources/demo/demo-objects/foxml</argument>
                                <argument>${project.build.directory}/client/demo/atom</argument>
                                <argument>org.fcrepo.server.storage.translation.FOXML1_1DODeserializer</argument>
                                <argument>org.fcrepo.server.storage.translation.Atom1_1DOSerializer</argument>
                                <argument>true</argument>
                                <argument>xml</argument>
                                <argument>xml</argument>
                            </arguments>
                            <classpathScope>runtime</classpathScope>
                        </configuration>
                    </execution>
                    <execution>
                        <id>demo-convert-atomzip</id>
                        <phase>generate-test-resources</phase>
                        <goals>
                            <goal>java</goal>
                        </goals>
                        <configuration>
                            <mainClass>org.fcrepo.server.storage.translation.ConvertObjectSerialization</mainClass>
                            <arguments>
                                <argument>${basedir}/src/main/resources/demo/demo-objects/foxml</argument>
                                <argument>${project.build.directory}/client/demo/atom-zip</argument>
                                <argument>org.fcrepo.server.storage.translation.FOXML1_1DODeserializer</argument>
                                <argument>org.fcrepo.server.storage.translation.AtomZip1_1DOSerializer</argument>
                                <argument>false</argument>
                                <argument>xml</argument>
                                <argument>zip</argument>
                            </arguments>
                            <classpathScope>runtime</classpathScope>
                        </configuration>
                    </execution>
                </executions>
            </plugin>


            <!-- **
             This plugin needs to be removed when ANT is gone.
             The unit/integration test regex's should be defined at root/pom.xml
           ** -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.4.2</version>

                <configuration>
                    <forkMode>never</forkMode>


                    <systemProperties>

                        <property>
                            <name>fedora.hostname</name><commit_msg>So that the tests run<commit_after><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.fcrepo</groupId>
        <artifactId>fcrepo</artifactId>
        <version>3.4-SNAPSHOT</version>
    </parent>

    <artifactId>fcrepo-server</artifactId>
    <packaging>jar</packaging>
    <name>Fedora Server Library</name>

    <properties>
        <demo.src.dir>${basedir}/src/main/resources/demo</demo.src.dir>
        <fedora.home.build.dir>${basedir}/build/home</fedora.home.build.dir>

        <fedora.hostname>localhost</fedora.hostname>
        <fedora.port>8080</fedora.port>
        <fedora.appServerContext>fedora</fedora.appServerContext>

    </properties>

    <build>

        <!-- This 'resource' directory should be migrated to default location -->
        <resources>
            <resource>
                <directory>../resources/server</directory>
                <filtering>true</filtering>
            </resource>
            <resource>
                <directory>src/main/resources/properties</directory>
            </resource>
            <resource>
                <directory>src/main/resources/dbspec/server</directory>
            </resource>
            <resource>
                <directory>src/main/resources/utilities/server</directory>
            </resource>
        </resources>


        <plugins>
            <!--
              Note: This plugin was defined as required by: client, integrationtest, & server.test.
                 It is certainly required by fedorahome.zip (integrationtest) & server.test.
                 The other two dependencies listed above are questionable.
            -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.1.1</version>
                <executions>

                    <execution>
                        <id>demo-convert-mets</id>
                        <phase>generate-test-resources</phase>
                        <goals>
                            <goal>java</goal>
                        </goals>
                        <configuration>
                            <mainClass>org.fcrepo.server.storage.translation.ConvertObjectSerialization</mainClass>
                            <arguments>
                                <argument>${basedir}/src/main/resources/demo/demo-objects/foxml</argument>
                                <argument>${project.build.directory}/client/demo/mets</argument>
                                <argument>org.fcrepo.server.storage.translation.FOXML1_1DODeserializer</argument>
                                <argument>org.fcrepo.server.storage.translation.METSFedoraExt1_1DOSerializer</argument>
                                <argument>true</argument>
                                <argument>xml</argument>
                                <argument>xml</argument>
                            </arguments>
                            <classpathScope>runtime</classpathScope>
                        </configuration>
                    </execution>
                    <execution>
                        <id>demo-convert-atom</id>
                        <phase>generate-test-resources</phase>
                        <goals>
                            <goal>java</goal>
                        </goals>
                        <configuration>
                            <mainClass>org.fcrepo.server.storage.translation.ConvertObjectSerialization</mainClass>
                            <arguments>
                                <argument>${basedir}/src/main/resources/demo/demo-objects/foxml</argument>
                                <argument>${project.build.directory}/client/demo/atom</argument>
                                <argument>org.fcrepo.server.storage.translation.FOXML1_1DODeserializer</argument>
                                <argument>org.fcrepo.server.storage.translation.Atom1_1DOSerializer</argument>
                                <argument>true</argument>
                                <argument>xml</argument>
                                <argument>xml</argument>
                            </arguments>
                            <classpathScope>runtime</classpathScope>
                        </configuration>
                    </execution>
                    <execution>
                        <id>demo-convert-atomzip</id>
                        <phase>generate-test-resources</phase>
                        <goals>
                            <goal>java</goal>
                        </goals>
                        <configuration>
                            <mainClass>org.fcrepo.server.storage.translation.ConvertObjectSerialization</mainClass>
                            <arguments>
                                <argument>${basedir}/src/main/resources/demo/demo-objects/foxml</argument>
                                <argument>${project.build.directory}/client/demo/atom-zip</argument>
                                <argument>org.fcrepo.server.storage.translation.FOXML1_1DODeserializer</argument>
                                <argument>org.fcrepo.server.storage.translation.AtomZip1_1DOSerializer</argument>
                                <argument>false</argument>
                                <argument>xml</argument>
                                <argument>zip</argument>
                            </arguments>
                            <classpathScope>runtime</classpathScope>
                        </configuration>
                    </execution>
                </executions>
            </plugin>


            <!-- **
             This plugin needs to be removed when ANT is gone.
             The unit/integration test regex's should be defined at root/pom.xml
           ** -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.4.2</version>

                <configuration>
                    <!--                    <forkMode>never</forkMode>-->


                    <systemProperties>

                        <property>
                            <name>fedora.hostname</name>
{'fraction_non_alphanumeric': 0.10939550683239405, 'fraction_numerical': 0.0067937929437196015, 'mean_word_length': 1.2690488702049396, 'pattern_counts': {'":': 0, '<': 354, '<?xml version=': 2, '>': 354, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 24}, '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': '2809829', 'n_tokens_mistral': 3292, 'n_tokens_neox': 3046, 'n_words': 351}