<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!--
  #%L
  wcm.io
  %%
  Copyright (C) 2017 wcm.io
  %%
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
       http://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  #L%
  -->

<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>io.wcm.maven</groupId>
    <artifactId>io.wcm.maven.global-parent</artifactId>
    <version>13</version>
    <relativePath />
  </parent>

  <name>Galenium Example</name>
  <groupId>io.wcm.qa</groupId>
  <artifactId>io.wcm.qa.galenium.example</artifactId>
  <packaging>jar</packaging>
  <version>0.0.1-SNAPSHOT</version>
  <description>Test automation example.</description>

  <properties>
    <!-- Dependency versions -->
    <galenium.version>0.0.1-SNAPSHOT</galenium.version>

    <!-- Selenium configuration -->
    <selenium.browser>chrome</selenium.browser>
    <selenium.runmode>local</selenium.runmode>

    <!-- TestNG configuration -->
    <!-- workaround for -Dgroups=xyz conflicting javadoc plugin with testNG  http://stackoverflow.com/questions/24441210/maven-3-javadoc-plugin-conflicts-with-testng-groups -->
    <testng.groups/>
    
    <integrationtests.skip>false</integrationtests.skip>
    
    <!-- compiler settings -->
    <build.compiler.source>1.8</build.compiler.source>
    <build.compiler.target>1.8</build.compiler.target>
    
    <!-- needed by the maven-failsafe-plugin -->
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    
    <!-- Galenium -->
    <galenium.specPath>${project.build.directory}/test-classes/galen/specs</galenium.specPath>
    <galenium.retryMax>0</galenium.retryMax>
    <galenium.report.rootPath>${project.build.directory}/galenium-reports</galenium.report.rootPath>

  </properties>

  <dependencies>

    <dependency>
      <groupId>io.wcm.qa</groupId>
      <artifactId>io.wcm.qa.galenium.galenium</artifactId>
      <version>${galenium.version}</version>
    </dependency>

  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-failsafe-plugin</artifactId>
        <configuration>
          <groups>${testNG.groups}</groups>
          <properties>
            <property>
              <name>usedefaultlisteners</name>
              <value>false</value>
            </property>
            <property>
              <name>listener</name>
              <value>io.wcm.qa.galenium.listeners.DefaultGaleniumListener,org.testng.reporters.XMLReporter</value>
            </property>
          </properties>
          <systemPropertyVariables>

            <io.wcm.qa.baseUrl>http://localhost:4502/content/wcm-io-samples</io.wcm.qa.baseUrl>

            <!-- Galenium -->
            <galenium.report.rootPath>${galenium.report.rootPath}</galenium.report.rootPath>
            <galenium.specPath>${galenium.specPath}</galenium.specPath>
            <galenium.screenshotOnSkipped>true</galenium.screenshotOnSkipped>
            <galenium.retryMax>${galenium.retryMax}</galenium.retryMax>
            <galenium.imageComparison.save>true</galenium.imageComparison.save>
            <galenium.imageComparison.directory>${project.build.directory}/sampledImages</galenium.imageComparison.directory>
            <galenium.textComparison.save>true</galenium.textComparison.save>
            <galenium.textComparison.directory>${project.build.directory}/sampledTexts</galenium.textComparison.directory>

            <!-- Galen -->
            <galen.device>${galen.device}</galen.device>
            <galen.browser.screenshots.fullPage>false</galen.browser.screenshots.fullPage>
            
            <!-- Selenium -->
            <selenium.browser>${selenium.browser}</selenium.browser>
            <selenium.chromeEmulator>${selenium.chromeEmulator}</selenium.chromeEmulator>
            <selenium.runmode>${selenium.runmode}</selenium.runmode>

            <!-- Copy ChromeDriver to project root or set this property to the path to your ChromeDriver -->
            <webdriver.chrome.driver>${webdriver.chrome.driver}</webdriver.chrome.driver>
            
            <!-- TestNG -->
            <integrationtests.skip>true</integrationtests.skip>
            
          </systemPropertyVariables>
          <includes>
            <include>**/*IT.java</include>
          </includes>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
          <artifactId>license-maven-plugin</artifactId>
          <configuration>
            <licenseName>apache_v2</licenseName>
            <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
            <projectName>wcm.io.qa.galenium.example</projectName>
            <excludes>
              <exclude>**/*.json</exclude>
              <exclude>**/*.html</exclude>
            </excludes>
        </configuration>
      </plugin>
    </plugins>
  </build>
	<profiles>
		<profile>
			<id>example</id>
			<properties>
				<integrationtests.skip>false</integrationtests.skip>
			</properties>
			<build>
				<plugins>
					<plugin>
						<groupId>com.lazerycode.selenium</groupId>
						<artifactId>driver-binary-downloader-maven-plugin</artifactId>
						<version>1.0.10</version>
						<configuration>
							<rootStandaloneServerDirectory>${project.build.directory}/driverbinaries</rootStandaloneServerDirectory>
							<downloadedZipFileDirectory>${project.build.directory}/driverdownloadzips</downloadedZipFileDirectory>
							<onlyGetDriversForHostOperatingSystem>true</onlyGetDriversForHostOperatingSystem>
							<customRepositoryMap>${basedir}/src/main/resources/RepositoryMap.xml</customRepositoryMap>
							<checkFileHashes>false</checkFileHashes>
						</configuration>
						<executions>
							<execution>
								<goals>
									<goal>selenium</goal>
								</goals>
							</execution>
						</executions>
					</plugin><commit_msg>move all failsafe config to profile to keep tests from running in Travis build<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!--
  #%L
  wcm.io
  %%
  Copyright (C) 2017 wcm.io
  %%
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
       http://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  #L%
  -->

<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>io.wcm.maven</groupId>
    <artifactId>io.wcm.maven.global-parent</artifactId>
    <version>13</version>
    <relativePath />
  </parent>

  <name>Galenium Example</name>
  <groupId>io.wcm.qa</groupId>
  <artifactId>io.wcm.qa.galenium.example</artifactId>
  <packaging>jar</packaging>
  <version>0.0.1-SNAPSHOT</version>
  <description>Test automation example.</description>

  <properties>
    <!-- Dependency versions -->
    <galenium.version>0.0.1-SNAPSHOT</galenium.version>

    <!-- Selenium configuration -->
    <selenium.browser>chrome</selenium.browser>
    <selenium.runmode>local</selenium.runmode>

    <!-- TestNG configuration -->
    <!-- workaround for -Dgroups=xyz conflicting javadoc plugin with testNG  http://stackoverflow.com/questions/24441210/maven-3-javadoc-plugin-conflicts-with-testng-groups -->
    <testng.groups/>
    
    <integrationtests.skip>true</integrationtests.skip>
    
    <!-- compiler settings -->
    <build.compiler.source>1.8</build.compiler.source>
    <build.compiler.target>1.8</build.compiler.target>
    
    <!-- needed by the maven-failsafe-plugin -->
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    
    <!-- Galenium -->
    <galenium.specPath>${project.build.directory}/test-classes/galen/specs</galenium.specPath>
    <galenium.retryMax>0</galenium.retryMax>
    <galenium.report.rootPath>${project.build.directory}/galenium-reports</galenium.report.rootPath>

  </properties>

  <dependencies>

    <dependency>
      <groupId>io.wcm.qa</groupId>
      <artifactId>io.wcm.qa.galenium.galenium</artifactId>
      <version>${galenium.version}</version>
    </dependency>

  </dependencies>

  <build>
    <plugins>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
          <artifactId>license-maven-plugin</artifactId>
          <configuration>
            <licenseName>apache_v2</licenseName>
            <addJavaLicenseAfterPackage>false</addJavaLicenseAfterPackage>
            <projectName>wcm.io.qa.galenium.example</projectName>
            <excludes>
              <exclude>**/*.json</exclude>
              <exclude>**/*.html</exclude>
            </excludes>
        </configuration>
      </plugin>
    </plugins>
  </build>
	<profiles>
		<profile>
			<id>example</id>
			<properties>
				<integrationtests.skip>false</integrationtests.skip>
			</properties>
			<build>
				<plugins>

		      <plugin>
		        <groupId>org.apache.maven.plugins</groupId>
		        <artifactId>maven-failsafe-plugin</artifactId>
		        <configuration>
		          <groups>${testNG.groups}</groups>
		          <properties>
		            <property>
		              <name>usedefaultlisteners</name>
		              <value>false</value>
		            </property>
		            <property>
		              <name>listener</name>
		              <value>io.wcm.qa.galenium.listeners.DefaultGaleniumListener,org.testng.reporters.XMLReporter</value>
		            </property>
		          </properties>
		          <systemPropertyVariables>

		            <io.wcm.qa.baseUrl>http://localhost:4502/content/wcm-io-samples</io.wcm.qa.baseUrl>
		
		            <!-- Galenium -->
		            <galenium.report.rootPath>${galenium.report.rootPath}</galenium.report.rootPath>
		            <galenium.specPath>${galenium.specPath}</galenium.specPath>
		            <galenium.screenshotOnSkipped>true</galenium.screenshotOnSkipped>
		            <galenium.retryMax>${galenium.retryMax}</galenium.retryMax>
		            <galenium.imageComparison.save>true</galenium.imageComparison.save>
		            <galenium.imageComparison.directory>${project.build.directory}/sampledImages</galenium.imageComparison.directory>
		            <galenium.textComparison.save>true</galenium.textComparison.save>
		            <galenium.textComparison.directory>${project.build.directory}/sampledTexts</galenium.textComparison.directory>
		
		            <!-- Galen -->
		            <galen.device>${galen.device}</galen.device>
		            <galen.browser.screenshots.fullPage>false</galen.browser.screenshots.fullPage>
		            
		            <!-- Selenium -->
		            <selenium.browser>${selenium.browser}</selenium.browser>
		            <selenium.chromeEmulator>${selenium.chromeEmulator}</selenium.chromeEmulator>
		            <selenium.runmode>${selenium.runmode}</selenium.runmode>
		
		            <webdriver.chrome.driver>${webdriver.chrome.driver}</webdriver.chrome.driver>
		          </systemPropertyVariables>
		          <includes>
		            <include>**/*IT.java</include>
		          </includes>
		        </configuration>
		      </plugin>

					<plugin>
						<groupId>com.lazerycode.selenium</groupId>
						<artifactId>driver-binary-downloader-maven-plugin</artifactId>
						<version>1.0.10</version>
						<configuration>
							<rootStandaloneServerDirectory>${project.build.directory}/driverbinaries</rootStandaloneServerDirectory>
							<downloadedZipFileDirectory>${project.build.directory}/driverdownloadzips</downloadedZipFileDirectory>
							<onlyGetDriversForHostOperatingSystem>true</onlyGetDriversForHostOperatingSystem>
							<customRepositoryMap>${basedir}/src/main/resources/RepositoryMap.xml</customRepositoryMap>
							<checkFileHashes>false</checkFileHashes>
						</configuration>
						<executions>
							<execution>
								<goals>
									<goal>selenium</goal>
								</goals>
							</execution>
						</executions>
					</plugin>

{'fraction_non_alphanumeric': 0.13894009216589862, 'fraction_numerical': 0.009216589861751152, 'mean_word_length': 2.792892513836295, 'pattern_counts': {'":': 0, '<': 389, '<?xml version=': 2, '>': 389, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7212800', 'n_tokens_mistral': 4489, 'n_tokens_neox': 3823, 'n_words': 499}