<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">
  <parent>
    <artifactId>opennms</artifactId>
    <groupId>org.opennms</groupId>
    <version>1.7.7-SNAPSHOT</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>opennms-webapp</artifactId>
  <packaging>war</packaging>
  <name>OpenNMS Web Application</name>
  <properties>
    <gwtVersion>1.4.60</gwtVersion>
    <moduleName>org.opennms.dashboard.Dashboard</moduleName>
    <moduleHtml>index.html</moduleHtml>
    <web.port>8080</web.port>
  </properties>
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.groovy.maven</groupId>
        <artifactId>gmaven-plugin</artifactId>
        <executions>
          <execution>
            <id>generate-key</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>execute</goal>
            </goals>
            <configuration>
              <source>
                def keystore = new File(project.properties['webstart.keystore'])
                if (!keystore.exists()) {
                  keystore.parentFile.mkdirs();
                  println "keystore is missing, generating for alias '${project.properties['webstart.keyalias']}'"
                  def args = [
                    keystore: project.properties['webstart.keystore'],
                    alias: project.properties['webstart.keyalias'],
                    storepass: project.properties['webstart.storepass'],
                    dname: "cn=${project.properties['webstart.dnameCn']}"
                  ]
                  if (project.properties['webstart.keypass']) {
                    args.put('keypass', project.properties['webstart.keypass'])
                  }
                  ant.genkey(args)
                }
              </source>
            </configuration>
          </execution>
          <execution>
            <goals>
              <goal>compile</goal>
              <goal>testCompile</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo.webstart</groupId>
        <artifactId>webstart-maven-plugin</artifactId>
        <version>1.0-alpha-2</version>
        <executions>
          <execution>
            <phase>process-resources</phase>
            <goals>
              <goal>jnlp-download-servlet</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <templateDirectory>src/main/jnlp</templateDirectory>
          <jnlpFiles>
            <jnlpFile>
              <templateFilename>app.vm</templateFilename>
              <outputFilename>app.jnlp</outputFilename>
              <jarResources>
                <jarResource>
                  <groupId>org.opennms.features</groupId>
                  <artifactId>org.opennms.features.remote-poller</artifactId>
                  <version>${project.version}</version>
                  <classifier>jar-with-dependencies</classifier>
                  <mainClass>org.opennms.poller.remote.Main</mainClass>
                </jarResource>
              </jarResources>
            </jnlpFile>
            <jnlpFile>
              <templateFilename>headless.vm</templateFilename>
              <outputFilename>headless.jnlp</outputFilename>
              <jarResources>
                <jarResource>
                  <groupId>org.opennms.features</groupId>
                  <artifactId>org.opennms.features.remote-poller</artifactId>
                  <version>${project.version}</version>
                  <classifier>jar-with-dependencies</classifier>
                  <mainClass>org.opennms.poller.remote.Main</mainClass>
                </jarResource>
              </jarResources>
            </jnlpFile>
          </jnlpFiles>
          <!-- jar-with-dependencies has everything -->
          <excludeTransitive>true</excludeTransitive>
          <sign>
            <keystore>${webstart.keystore}</keystore>
            <keypass>${webstart.keypass}</keypass>
            <storepass>${webstart.storepass}</storepass>
            <alias>${webstart.keyalias}</alias>
            <dnameCn>${webstart.dnameCn}</dnameCn>
            <!--
              <dnameL>${webstart.dnameL}</dnameL>
              <dnameSt>${webstart.dnameSt}</dnameSt>
              <dnameC>${webstart.dnameC}</dnameC>
            -->
            <verify>true</verify><commit_msg>move the jnlpFile specific configuration into multiple executions to work around a mojo issue<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">
  <parent>
    <artifactId>opennms</artifactId>
    <groupId>org.opennms</groupId>
    <version>1.7.7-SNAPSHOT</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>opennms-webapp</artifactId>
  <packaging>war</packaging>
  <name>OpenNMS Web Application</name>
  <properties>
    <gwtVersion>1.4.60</gwtVersion>
    <moduleName>org.opennms.dashboard.Dashboard</moduleName>
    <moduleHtml>index.html</moduleHtml>
    <web.port>8080</web.port>
  </properties>
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.groovy.maven</groupId>
        <artifactId>gmaven-plugin</artifactId>
        <executions>
          <execution>
            <id>generate-key</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>execute</goal>
            </goals>
            <configuration>
              <source>
                def keystore = new File(project.properties['webstart.keystore'])
                if (!keystore.exists()) {
                  keystore.parentFile.mkdirs();
                  println "keystore is missing, generating for alias '${project.properties['webstart.keyalias']}'"
                  def args = [
                    keystore: project.properties['webstart.keystore'],
                    alias: project.properties['webstart.keyalias'],
                    storepass: project.properties['webstart.storepass'],
                    dname: "cn=${project.properties['webstart.dnameCn']}"
                  ]
                  if (project.properties['webstart.keypass']) {
                    args.put('keypass', project.properties['webstart.keypass'])
                  }
                  ant.genkey(args)
                }
              </source>
            </configuration>
          </execution>
          <execution>
            <goals>
              <goal>compile</goal>
              <goal>testCompile</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo.webstart</groupId>
        <artifactId>webstart-maven-plugin</artifactId>
        <version>1.0-alpha-2</version>
        <executions>
          <execution>
            <id>gui-app</id>
            <phase>process-resources</phase>
            <goals>
              <goal>jnlp-download-servlet</goal>
            </goals>
            <configuration>
	          <jnlpFiles>
	            <jnlpFile>
	              <templateFilename>app.vm</templateFilename>
	              <outputFilename>app.jnlp</outputFilename>
	              <jarResources>
	                <jarResource>
	                  <groupId>org.opennms.features</groupId>
	                  <artifactId>org.opennms.features.remote-poller</artifactId>
	                  <version>${project.version}</version>
	                  <classifier>jar-with-dependencies</classifier>
	                  <mainClass>org.opennms.poller.remote.Main</mainClass>
	                </jarResource>
	              </jarResources>
	            </jnlpFile>
	          </jnlpFiles>
            </configuration>
          </execution>
          <execution>
            <id>headless-app</id>
            <phase>process-resources</phase>
            <goals>
              <goal>jnlp-download-servlet</goal>
            </goals>
            <configuration>
	          <jnlpFiles>
	            <jnlpFile>
	              <templateFilename>headless.vm</templateFilename>
	              <outputFilename>headless.jnlp</outputFilename>
	              <jarResources>
	                <jarResource>
	                  <groupId>org.opennms.features</groupId>
	                  <artifactId>org.opennms.features.remote-poller</artifactId>
	                  <version>${project.version}</version>
	                  <classifier>jar-with-dependencies</classifier>
	                  <mainClass>org.opennms.poller.remote.Main</mainClass>
	                </jarResource>
	              </jarResources>
	            </jnlpFile>
	          </jnlpFiles>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <templateDirectory>src/main/jnlp</templateDirectory>
          <!-- jar-with-dependencies has everything -->
          <excludeTransitive>true</excludeTransitive>
          <sign>
            <keystore>${webstart.keystore}</keystore>
            <keypass>${webstart.keypass}</keypass>
            <storepass>${webstart.storepass}</storepass>
            <alias>${webstart.keyalias}</alias>
            <dnameCn>${webstart.dnameCn}</dnameCn>
            <!--
              <dnameL>${webstart.dnameL}</dnameL>
              <dnameSt>${webstart.dnameSt}</dnameSt>
              <dnameC>${webstart.dnameC}</dnameC>
            -->
            <verify>true</verify>
{'fraction_non_alphanumeric': 0.13497942386831277, 'fraction_numerical': 0.0069958847736625515, 'mean_word_length': 1.7507074136955292, 'pattern_counts': {'":': 0, '<': 311, '<?xml version=': 2, '>': 311, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '774437', 'n_tokens_mistral': 2975, 'n_tokens_neox': 2708, 'n_words': 298}