<commit_before><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>
    <name>Cancer Hotspots Web</name>
    <description>Cancer Hotspots Web Module</description>
    <artifactId>webapp</artifactId>
    <version>0.1.0</version>
    <!--<packaging>jar</packaging>-->
    <packaging>${packaging.type}</packaging>

    <parent>
        <groupId>org.cmo.cancerhotspots</groupId>
        <artifactId>master</artifactId>
        <version>0.1.0</version>
    </parent>

    <profiles>
        <!-- resource filter configuration for public production -->
        <profile>
            <id>productionPublic</id>
            <build>
                <resources>
                    <resource>
                        <filtering>true</filtering>
                        <directory>src/main/resources</directory>
                        <excludes>
                            <!-- exclude internal (private) data files -->
                            <exclude>data/*internal**</exclude>
                            <!-- exclude static folder from filtering,
                            filtering corrupts binary content -->
                            <exclude>static/**</exclude>
                        </excludes>
                    </resource>
                    <resource>
                        <filtering>false</filtering>
                        <directory>src/main/resources</directory>
                        <includes>
                            <!-- include all static files without filtering... -->
                            <include>static/**</include>
                        </includes>
                        <excludes>
                            <!-- ...with the exception of internal files -->
                            <exclude>static/files/*internal**</exclude>
                        </excludes>
                    </resource>
                </resources>
            </build>
        </profile>
        <!-- resource filter configuration for internal production -->
        <profile>
            <id>productionInternal</id>
            <build>
                <resources>
                    <resource>
                        <filtering>true</filtering>
                        <directory>src/main/resources</directory>
                        <excludes>
                            <!-- exclude static folder from filtering,
							filtering corrupts binary content -->
                            <exclude>static/**</exclude>
                        </excludes>
                    </resource>
                    <resource>
                        <filtering>false</filtering>
                        <directory>src/main/resources</directory>
                        <includes>
                            <!-- include all static files without filtering,
                            including the internal files -->
                            <include>static/**</include>
                        </includes>
                    </resource>
                </resources>
            </build>
        </profile>
        <profile>
            <id>warSingle</id>
            <properties>
                <activatedProperties>single</activatedProperties>
                <packaging.type>war</packaging.type>
            </properties>
        </profile>
        <profile>
            <id>jarSingle</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <activatedProperties>single</activatedProperties>
                <packaging.type>jar</packaging.type>
            </properties>
        </profile>
        <profile>
            <id>war3d</id>
            <properties>
                <activatedProperties>3d</activatedProperties>
                <packaging.type>war</packaging.type>
            </properties>
        </profile>
        <profile>
            <id>jar3d</id>
            <properties>
                <activatedProperties>3d</activatedProperties>
                <packaging.type>jar</packaging.type>
            </properties>
        </profile>
        <profile>
            <id>warInternal</id>
            <properties>
                <activatedProperties>internal</activatedProperties>
                <packaging.type>war</packaging.type>
            </properties>
        </profile>
        <profile>
            <id>jarInternal</id>
            <properties>
                <activatedProperties>internal</activatedProperties>
                <packaging.type>jar</packaging.type>
            </properties>
        </profile>
    </profiles>

    <dependencies>
        <dependency>
            <groupId>org.cmo.cancerhotspots</groupId>
            <artifactId>model</artifactId>
            <version>0.1.0</version>
        </dependency>
        <dependency>
            <groupId>org.cmo.cancerhotspots</groupId>
            <artifactId>service</artifactId>
            <version>0.1.0</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
            <scope>provided</scope><commit_msg>Add maven docker plugin to push image to docker hub<commit_after><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>
    <name>Cancer Hotspots Web</name>
    <description>Cancer Hotspots Web Module</description>
    <artifactId>webapp</artifactId>
    <version>0.1.0</version>
    <!--<packaging>jar</packaging>-->
    <packaging>${packaging.type}</packaging>

    <parent>
        <groupId>org.cmo.cancerhotspots</groupId>
        <artifactId>master</artifactId>
        <version>0.1.0</version>
    </parent>

    <properties>
        <single.artifact.name>cancer-hotspots</single.artifact.name>
        <three.d.artifact.name>3d-hotspots</three.d.artifact.name>
    </properties>

    <profiles>
        <!-- resource filter configuration for public production -->
        <profile>
            <id>productionPublic</id>
            <build>
                <resources>
                    <resource>
                        <filtering>true</filtering>
                        <directory>src/main/resources</directory>
                        <excludes>
                            <!-- exclude internal (private) data files -->
                            <exclude>data/*internal**</exclude>
                            <!-- exclude static folder from filtering,
                            filtering corrupts binary content -->
                            <exclude>static/**</exclude>
                        </excludes>
                    </resource>
                    <resource>
                        <filtering>false</filtering>
                        <directory>src/main/resources</directory>
                        <includes>
                            <!-- include all static files without filtering... -->
                            <include>static/**</include>
                        </includes>
                        <excludes>
                            <!-- ...with the exception of internal files -->
                            <exclude>static/files/*internal**</exclude>
                        </excludes>
                    </resource>
                </resources>
            </build>
        </profile>
        <!-- resource filter configuration for internal production -->
        <profile>
            <id>productionInternal</id>
            <build>
                <resources>
                    <resource>
                        <filtering>true</filtering>
                        <directory>src/main/resources</directory>
                        <excludes>
                            <!-- exclude static folder from filtering,
							filtering corrupts binary content -->
                            <exclude>static/**</exclude>
                        </excludes>
                    </resource>
                    <resource>
                        <filtering>false</filtering>
                        <directory>src/main/resources</directory>
                        <includes>
                            <!-- include all static files without filtering,
                            including the internal files -->
                            <include>static/**</include>
                        </includes>
                    </resource>
                </resources>
            </build>
        </profile>
        <profile>
            <id>warSingle</id>
            <properties>
                <activatedProperties>single</activatedProperties>
                <packaging.type>war</packaging.type>
            </properties>
            <build>
                <finalName>${single.artifact.name}</finalName>
            </build>
        </profile>
        <profile>
            <id>jarSingle</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <activatedProperties>single</activatedProperties>
                <packaging.type>jar</packaging.type>
            </properties>
            <build>
                <finalName>${single.artifact.name}</finalName>
            </build>
        </profile>
        <profile>
            <id>war3d</id>
            <properties>
                <activatedProperties>3d</activatedProperties>
                <packaging.type>war</packaging.type>
            </properties>
            <build>
                <finalName>${three.d.artifact.name}</finalName>
            </build>
        </profile>
        <profile>
            <id>jar3d</id>
            <properties>
                <activatedProperties>3d</activatedProperties>
                <packaging.type>jar</packaging.type>
            </properties>
            <build>
                <finalName>${three.d.artifact.name}</finalName>
            </build>
        </profile>
        <profile>
            <id>warInternal</id>
            <properties>
                <activatedProperties>internal</activatedProperties>
                <packaging.type>war</packaging.type>
                <finalName>${single.artifact.name}-internal</finalName>
            </properties>
        </profile>
        <profile>
            <id>jarInternal</id>
            <properties>
                <activatedProperties>internal</activatedProperties>
                <packaging.type>jar</packaging.type>
                <finalName>${single.artifact.name}-internal</finalName>
            </properties>
        </profile>
        <profile>
            <id>docker</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.spotify</groupId>
                        <artifactId>docker-maven-plugin</artifactId>
                        <version>0.4.13</version>
                        <configuration>
                            <imageName>cbioportal/${project.build.finalName}</imageName>
                            <baseImage>openjdk:alpine</baseImage>
                            <entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>
                            <resources>
                                <resource>
                                    <targetPath>/</targetPath>
                                    <directory>${project.build.directory}</directory>
                                    <include>${project.build.finalName}.jar</include>
                                </resource>
                            </resources>
                        </configuration>
                        <executions>
                            <execution>
                                <id>build-image</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>build</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>push-image</id>
                                <phase>install</phase>
                                <goals>
                                    <goal>push</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <dependencies>
        <dependency>
            <groupId>org.cmo.cancerhotspots</groupId>
            <artifactId>model</artifactId>
            <version>0.1.0</version>
        </dependency>
        <dependency>
            <groupId>org.cmo.cancerhotspots</groupId>
            <artifactId>service</artifactId>
            <version>0.1.0</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
            <scope>provided</scope>
{'fraction_non_alphanumeric': 0.11625174414335022, 'fraction_numerical': 0.005214070646985386, 'mean_word_length': 1.1862257184138707, 'pattern_counts': {'":': 0, '<': 465, '<?xml version=': 0, '>': 465, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '56500', 'n_tokens_mistral': 3424, 'n_tokens_neox': 3061, 'n_words': 450}