<commit_before><!--

    This Source Code Form is subject to the terms of the Mozilla Public License,
    v. 2.0. If a copy of the MPL was not distributed with this file, You can
    obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
    the terms of the Healthcare Disclaimer located at http://openmrs.org/license.

    Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
    graphic logo is a trademark of OpenMRS Inc.

-->
<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>
      <groupId>org.openmrs</groupId>
      <artifactId>openmrs</artifactId>
      <version>2.1.0-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.openmrs.web</groupId>
   <artifactId>openmrs-webapp</artifactId>
   <packaging>war</packaging>
   <name>openmrs-webapp</name>
   <description>The web application of openmrs</description>

   <dependencies>
       <dependency>
         <groupId>org.openmrs.test</groupId>
         <artifactId>openmrs-test</artifactId>
         <type>pom</type>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>org.openmrs.api</groupId>
         <artifactId>openmrs-api</artifactId>
      </dependency>
      <dependency>
         <groupId>org.openmrs.web</groupId>
         <artifactId>openmrs-web</artifactId>
         <exclusions>
            <exclusion>
               <groupId>javax.servlet</groupId>
               <artifactId>servlet-api</artifactId>
            </exclusion>
            <exclusion>
               <groupId>javax.servlet</groupId>
               <artifactId>jsp-api</artifactId>
            </exclusion>
         </exclusions>
      </dependency>
   </dependencies>

   <build>
      <finalName>${webapp.name}</finalName>
      <resources>
         <resource>
            <directory>src/main/resources</directory>
            <excludes>
               <exclude>liquibase-demo-data.zip</exclude>
            </excludes>
         </resource>
         <resource>
            <directory>src/main/webapp</directory>
            <includes>
               <include>WEB-INF/web.xml</include>
            </includes>
            <filtering>true</filtering>
            <targetPath>../jetty</targetPath>
         </resource>
      </resources>
      <plugins>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-antrun-plugin</artifactId>
            <version>1.4</version>
            <executions>
               <execution>
                  <phase>process-resources</phase>
                  <goals>
                     <goal>run</goal>
                  </goals>
                  <configuration>
                     <tasks>
                        <unzip src="src/main/resources/liquibase-demo-data.zip" dest="${project.build.outputDirectory}" />
                     </tasks>
                  </configuration>
               </execution>
            </executions>
         </plugin>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-war-plugin</artifactId>
            <configuration>
               <webResources>
                  <resource>
                     <directory>src/main/webapp</directory>
                     <includes>
                        <include>WEB-INF/web.xml</include>
                         <include>index.htm</include>
                     </includes>
                     <filtering>true</filtering>
                  </resource>
               </webResources>
               <packagingExcludes>test/**</packagingExcludes>
            </configuration>
         </plugin>
         <plugin>
             <groupId>org.eclipse.jetty</groupId>
             <artifactId>jetty-maven-plugin</artifactId>
             <version>9.3.3.v20150827</version>
             <configuration>
               <webApp>
               	  <descriptor>${project.build.directory}/jetty/WEB-INF/web.xml</descriptor>
                  <contextPath>/${webapp.name}</contextPath>
                  <!--enable reloading static resources -->
                  <overrideDescriptor>src/test/resources/override-web.xml</overrideDescriptor>
                  <extraClasspath>target/classes;../api/target/classes;../web/target/classes</extraClasspath>
               </webApp>
               <scanIntervalSeconds>10</scanIntervalSeconds>
               <scanTargets>
                  <scanTarget>../api/target/classes</scanTarget>
                  <scanTarget>../web/target/classes</scanTarget>
               </scanTargets>
               <systemProperties>
                   <systemProperty>
                       <name>OPENMRS_INSTALLATION_SCRIPT</name>
                       <value>${OPENMRS_INSTALLATION_SCRIPT}</value>
                   </systemProperty>
               </systemProperties>
            </configuration>
         </plugin>
         <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>2.9.1</version>
                <configuration>
                    <includes>**/*.jsp</includes>
                    <sourceDirectory>../webapp</sourceDirectory>
                    <configLocation>checkstyle/webapp-checkstyle.xml</configLocation>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.openmrs.tools</groupId>
                        <artifactId>openmrs-tools</artifactId>
                        <version>${project.version}</version>
                    </dependency>
                </dependencies>
         </plugin>
      </plugins>
   </build>
   <profiles>
      <profile>
         <id>jrebel</id>
         <activation>
            <activeByDefault>false</activeByDefault>
         </activation>
         <build>
            <plugins>
               <plugin>
                   <groupId>org.eclipse.jetty</groupId>
                   <artifactId>jetty-maven-plugin</artifactId>
                   <version>9.3.3.v20150827</version>
                   <configuration>
                     <webApp>
               	  		<descriptor>${project.build.directory}/jetty/WEB-INF/web.xml</descriptor>
                  		<contextPath>/${webapp.name}</contextPath>
                  		<!--enable reloading static resources -->
                  		<overrideDescriptor>src/test/resources/override-web.xml</overrideDescriptor>
                  		<extraClasspath>target/classes;../api/target/classes;../web/target/classes</extraClasspath>
               		 </webApp>
                     <scanIntervalSeconds>0</scanIntervalSeconds>
                  </configuration>
               </plugin>
				<plugin>
					<groupId>org.zeroturnaround</groupId>
					<artifactId>javarebel-maven-plugin</artifactId>
					<executions>
						<execution>
							<id>generate-rebel-xml</id>
							<phase>process-resources</phase>
							<goals>
								<goal>generate</goal>
							</goals>
						</execution>
					</executions>
					<configuration>
						<classpath>
							<resources>
								<!-- uncomment the following to use your module with JRebel - place #1
								     replace /home/misha/workspace/basicmodule/build with the path to the Java class
								     directory for your module
								<resource>
									<directory>/home/misha/workspace/basicmodule/build
									</directory>
								</resource> -->
								<resource>
									<!-- automatically generated classpath resources for webapp module will be placed here -->
								</resource>
							</resources>
						</classpath>
						<web>
							<resources>
								<!-- uncomment the following to use your module with JRebel - place #1
								     replaced /module/basicmodule with /module/nameofyourmodule
								     replace /home/misha/workspace/basicmodule/web/module with the path to the web
								     directory for your module
								<resource>
									<target>/WEB-INF/view/module/basicmodule</target>
									<directory>/home/misha/workspace/basicmodule/web/module
									</directory>
								</resource>
								<resource>
									<target>/module/basicmodule</target>
									<directory>/home/misha/workspace/basicmodule/web/module
									</directory>
								</resource> -->
								<resource>
									<!-- automatically generated web resources for webapp module will be placed here -->
								</resource>
							</resources>
						</web>
					</configuration>
				</plugin>
            </plugins>
         </build>
      </profile>
      <profile>
            <id>integration-test</id>
             <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>mysql</groupId>
                    <artifactId>mysql-connector-java</artifactId>
                    <version>5.1.28</version>
                    <scope>runtime</scope>
                </dependency>

                <dependency>
                    <groupId>com.mysql</groupId>
                    <artifactId>mysql-connector-mxj</artifactId>
                    <version>5.0.11</version>
                    <scope>compile</scope>
                </dependency>

                <dependency>
                    <groupId>com.mysql</groupId>
                    <artifactId>mysql-connector-mxj-dbfiles</artifactId>
                    <version>5.0.11</version>
                    <scope>compile</scope>
                </dependency>
            </dependencies>
        </profile>
        
		<profile>
			<id>release</id>
			<!-- Create sources and javadocs jar -->
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
					</plugin>
				</plugins>
			</build>
		</profile>

        <profile>
            <id>h2</id>
            <dependencies>
                <dependency>
                    <groupId>com.h2database</groupId>
                    <artifactId>h2</artifactId>
                </dependency>
            </dependencies>
        </profile>

        <profile>
            <id>install-h2</id>
            <dependencies>
                <dependency>
                    <groupId>com.h2database</groupId>
                    <artifactId>h2</artifactId>
                </dependency>
            </dependencies>
            <properties>
                <OPENMRS_INSTALLATION_SCRIPT>classpath:installation.h2.properties</OPENMRS_INSTALLATION_SCRIPT>
            </properties>
        </profile>
   </profiles>

   <properties>
      <WEBAPP.DISPLAY.NAME>OpenMRS</WEBAPP.DISPLAY.NAME>
      <WEBAPP.DESCRIPTION>An Open-Source EMR System</WEBAPP.DESCRIPTION>
      <webapp.name>openmrs</webapp.name>
   </properties>
</project>
<commit_msg>Adding a tomcat7 plugin as an alternative to jetty<commit_after><!--

    This Source Code Form is subject to the terms of the Mozilla Public License,
    v. 2.0. If a copy of the MPL was not distributed with this file, You can
    obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
    the terms of the Healthcare Disclaimer located at http://openmrs.org/license.

    Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
    graphic logo is a trademark of OpenMRS Inc.

-->
<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>
      <groupId>org.openmrs</groupId>
      <artifactId>openmrs</artifactId>
      <version>2.1.0-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.openmrs.web</groupId>
   <artifactId>openmrs-webapp</artifactId>
   <packaging>war</packaging>
   <name>openmrs-webapp</name>
   <description>The web application of openmrs</description>

   <dependencies>
       <dependency>
         <groupId>org.openmrs.test</groupId>
         <artifactId>openmrs-test</artifactId>
         <type>pom</type>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>org.openmrs.api</groupId>
         <artifactId>openmrs-api</artifactId>
      </dependency>
      <dependency>
         <groupId>org.openmrs.web</groupId>
         <artifactId>openmrs-web</artifactId>
         <exclusions>
            <exclusion>
               <groupId>javax.servlet</groupId>
               <artifactId>servlet-api</artifactId>
            </exclusion>
            <exclusion>
               <groupId>javax.servlet</groupId>
               <artifactId>jsp-api</artifactId>
            </exclusion>
         </exclusions>
      </dependency>
   </dependencies>

   <build>
      <finalName>${webapp.name}</finalName>
      <resources>
         <resource>
            <directory>src/main/resources</directory>
            <excludes>
               <exclude>liquibase-demo-data.zip</exclude>
            </excludes>
         </resource>
         <resource>
            <directory>src/main/webapp</directory>
            <includes>
               <include>WEB-INF/web.xml</include>
            </includes>
            <filtering>true</filtering>
            <targetPath>../jetty</targetPath>
         </resource>
      </resources>
      <plugins>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-antrun-plugin</artifactId>
            <version>1.4</version>
            <executions>
               <execution>
                  <phase>process-resources</phase>
                  <goals>
                     <goal>run</goal>
                  </goals>
                  <configuration>
                     <tasks>
                        <unzip src="src/main/resources/liquibase-demo-data.zip" dest="${project.build.outputDirectory}" />
                     </tasks>
                  </configuration>
               </execution>
            </executions>
         </plugin>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-war-plugin</artifactId>
            <configuration>
               <webResources>
                  <resource>
                     <directory>src/main/webapp</directory>
                     <includes>
                        <include>WEB-INF/web.xml</include>
                         <include>index.htm</include>
                     </includes>
                     <filtering>true</filtering>
                  </resource>
               </webResources>
               <packagingExcludes>test/**</packagingExcludes>
            </configuration>
         </plugin>
         <plugin>
             <groupId>org.eclipse.jetty</groupId>
             <artifactId>jetty-maven-plugin</artifactId>
             <version>9.3.3.v20150827</version>
             <configuration>
               <webApp>
               	  <descriptor>${project.build.directory}/jetty/WEB-INF/web.xml</descriptor>
                  <contextPath>/${webapp.name}</contextPath>
                  <!--enable reloading static resources -->
                  <overrideDescriptor>src/test/resources/override-web.xml</overrideDescriptor>
                  <extraClasspath>target/classes;../api/target/classes;../web/target/classes</extraClasspath>
               </webApp>
               <scanIntervalSeconds>10</scanIntervalSeconds>
               <scanTargets>
                  <scanTarget>../api/target/classes</scanTarget>
                  <scanTarget>../web/target/classes</scanTarget>
               </scanTargets>
               <systemProperties>
                   <systemProperty>
                       <name>OPENMRS_INSTALLATION_SCRIPT</name>
                       <value>${OPENMRS_INSTALLATION_SCRIPT}</value>
                   </systemProperty>
               </systemProperties>
            </configuration>
         </plugin>
         <plugin>
		        <groupId>org.apache.tomcat.maven</groupId>
		        <artifactId>tomcat7-maven-plugin</artifactId>
		        <version>2.2</version>
		        <configuration>
		          <path>/openmrs</path>
		        </configuration>
         </plugin>
         <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>2.9.1</version>
                <configuration>
                    <includes>**/*.jsp</includes>
                    <sourceDirectory>../webapp</sourceDirectory>
                    <configLocation>checkstyle/webapp-checkstyle.xml</configLocation>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.openmrs.tools</groupId>
                        <artifactId>openmrs-tools</artifactId>
                        <version>${project.version}</version>
                    </dependency>
                </dependencies>
         </plugin>
      </plugins>
   </build>
   <profiles>
      <profile>
         <id>jrebel</id>
         <activation>
            <activeByDefault>false</activeByDefault>
         </activation>
         <build>
            <plugins>
               <plugin>
                   <groupId>org.eclipse.jetty</groupId>
                   <artifactId>jetty-maven-plugin</artifactId>
                   <version>9.3.3.v20150827</version>
                   <configuration>
                     <webApp>
               	  		<descriptor>${project.build.directory}/jetty/WEB-INF/web.xml</descriptor>
                  		<contextPath>/${webapp.name}</contextPath>
                  		<!--enable reloading static resources -->
                  		<overrideDescriptor>src/test/resources/override-web.xml</overrideDescriptor>
                  		<extraClasspath>target/classes;../api/target/classes;../web/target/classes</extraClasspath>
               		 </webApp>
                     <scanIntervalSeconds>0</scanIntervalSeconds>
                  </configuration>
               </plugin>
				<plugin>
					<groupId>org.zeroturnaround</groupId>
					<artifactId>javarebel-maven-plugin</artifactId>
					<executions>
						<execution>
							<id>generate-rebel-xml</id>
							<phase>process-resources</phase>
							<goals>
								<goal>generate</goal>
							</goals>
						</execution>
					</executions>
					<configuration>
						<classpath>
							<resources>
								<!-- uncomment the following to use your module with JRebel - place #1
								     replace /home/misha/workspace/basicmodule/build with the path to the Java class
								     directory for your module
								<resource>
									<directory>/home/misha/workspace/basicmodule/build
									</directory>
								</resource> -->
								<resource>
									<!-- automatically generated classpath resources for webapp module will be placed here -->
								</resource>
							</resources>
						</classpath>
						<web>
							<resources>
								<!-- uncomment the following to use your module with JRebel - place #1
								     replaced /module/basicmodule with /module/nameofyourmodule
								     replace /home/misha/workspace/basicmodule/web/module with the path to the web
								     directory for your module
								<resource>
									<target>/WEB-INF/view/module/basicmodule</target>
									<directory>/home/misha/workspace/basicmodule/web/module
									</directory>
								</resource>
								<resource>
									<target>/module/basicmodule</target>
									<directory>/home/misha/workspace/basicmodule/web/module
									</directory>
								</resource> -->
								<resource>
									<!-- automatically generated web resources for webapp module will be placed here -->
								</resource>
							</resources>
						</web>
					</configuration>
				</plugin>
            </plugins>
         </build>
      </profile>
      <profile>
            <id>integration-test</id>
             <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <dependencies>
                <dependency>
                    <groupId>mysql</groupId>
                    <artifactId>mysql-connector-java</artifactId>
                    <version>5.1.28</version>
                    <scope>runtime</scope>
                </dependency>

                <dependency>
                    <groupId>com.mysql</groupId>
                    <artifactId>mysql-connector-mxj</artifactId>
                    <version>5.0.11</version>
                    <scope>compile</scope>
                </dependency>

                <dependency>
                    <groupId>com.mysql</groupId>
                    <artifactId>mysql-connector-mxj-dbfiles</artifactId>
                    <version>5.0.11</version>
                    <scope>compile</scope>
                </dependency>
            </dependencies>
        </profile>
        
		<profile>
			<id>release</id>
			<!-- Create sources and javadocs jar -->
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
					</plugin>
				</plugins>
			</build>
		</profile>

        <profile>
            <id>h2</id>
            <dependencies>
                <dependency>
                    <groupId>com.h2database</groupId>
                    <artifactId>h2</artifactId>
                </dependency>
            </dependencies>
        </profile>

        <profile>
            <id>install-h2</id>
            <dependencies>
                <dependency>
                    <groupId>com.h2database</groupId>
                    <artifactId>h2</artifactId>
                </dependency>
            </dependencies>
            <properties>
                <OPENMRS_INSTALLATION_SCRIPT>classpath:installation.h2.properties</OPENMRS_INSTALLATION_SCRIPT>
            </properties>
        </profile>
   </profiles>

   <properties>
      <WEBAPP.DISPLAY.NAME>OpenMRS</WEBAPP.DISPLAY.NAME>
      <WEBAPP.DESCRIPTION>An Open-Source EMR System</WEBAPP.DESCRIPTION>
      <webapp.name>openmrs</webapp.name>
   </properties>
</project>

{'fraction_non_alphanumeric': 0.12169873921698739, 'fraction_numerical': 0.006812652068126521, 'mean_word_length': 1.5753018910913648, 'pattern_counts': {'":': 0, '<': 785, '<?xml version=': 0, '>': 785, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 20}, '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': '3166022', 'n_tokens_mistral': 7244, 'n_tokens_neox': 5822, 'n_words': 892}