<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright © 2014 Cask Data, Inc.

  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.
  -->

<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>co.cask.cdap</groupId>
    <artifactId>cdap</artifactId>
    <version>2.8.0-SNAPSHOT</version>
  </parent>

  <artifactId>cdap-ui</artifactId>
  <name>CDAP UI</name>

  <dependencies>
    <dependency>
      <groupId>co.cask.cdap</groupId>
      <artifactId>cdap-common</artifactId>
      <version>${project.version}</version>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.rat</groupId>
        <artifactId>apache-rat-plugin</artifactId>
        <version>0.10</version>
        <executions>
          <execution>
            <!-- Disable rat check for the web-app module for now. Check with rohit on how to do it.  -->
            <id>rat-check</id>
            <phase>none</phase>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>dist</id>
      <build>
        <plugins>
          <plugin>
            <groupId>com.github.eirslett</groupId>
            <artifactId>frontend-maven-plugin</artifactId>
            <version>0.0.20</version>
            <executions>
              <execution>
                <id>dist</id>
                <goals>
                  <goal>install-node-and-npm</goal>
                </goals>
                <configuration>
                  <nodeVersion>v0.10.28</nodeVersion>
                  <npmVersion>2.5.0</npmVersion>
                </configuration>
              </execution>
              <execution>
                <id>npm-install</id>
                <goals>
                  <goal>npm</goal>
                </goals>
                <!-- Optional configuration which provides for running any npm command -->
                <configuration>
                  <arguments>install</arguments>
                </configuration>
              </execution>
              <execution>
                <id>bower-install</id>
                <goals>
                  <goal>bower</goal>
                </goals>
                <configuration>
                  <arguments>install --allow-root</arguments>
                </configuration>
              </execution>
              <execution>
                <id>gulp clean</id>
                <goals>
                  <goal>gulp</goal>
                </goals>
                <configuration>
                  <arguments>clean</arguments>
                </configuration>
              </execution>
              <execution>
                <id>gulp distribute</id>
                <goals>
                  <goal>gulp</goal>
                </goals>
                <configuration>
                  <arguments>distribute</arguments>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <executions>
              <execution>
               <!--Skipping the rpm package phase for cdap-ui. It will be run from cdap-web-app-->
               <id>rpm-package</id>
                 <phase/>
              </execution>
              <execution>
                <!--Skipping the rpm package phase for cdap-ui. It will be run from cdap-web-app-->
                <id>deb-package</id>
                <phase/>
              </execution>
              <execution>
                <id>clean-node-modules</id>
                <phase>process-resources</phase>
                <goals>
                  <goal>exec</goal>
                </goals>
                <configuration>
                  <executable>rm</executable>
                  <arguments>
                    <argument>-rf</argument>
                    <argument>node_modules</argument>
                  </arguments>
                </configuration>
              </execution>
              <execution>
                <id>clean-bower-components</id>
                <phase>process-resources</phase>
                <goals>
                  <goal>exec</goal>
                </goals>
                <configuration>
                  <executable>rm</executable>
                  <arguments>
                    <argument>-rf</argument>
                    <argument>bower_components</argument>
                  </arguments>
                </configuration>
              </execution>
              <execution>
                <id>npm-install-production-deps</id>
                <phase>process-resources</phase>
                <goals>
                  <goal>exec</goal>
                </goals>
                <configuration>
                  <executable>npm</executable>
                  <arguments>
                    <argument>install</argument>
                    <argument>--production</argument><commit_msg>Use node version that is downloaded using mvn plugins<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright © 2014 Cask Data, Inc.

  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.
  -->

<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>co.cask.cdap</groupId>
    <artifactId>cdap</artifactId>
    <version>2.8.0-SNAPSHOT</version>
  </parent>

  <artifactId>cdap-ui</artifactId>
  <name>CDAP UI</name>

  <dependencies>
    <dependency>
      <groupId>co.cask.cdap</groupId>
      <artifactId>cdap-common</artifactId>
      <version>${project.version}</version>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.rat</groupId>
        <artifactId>apache-rat-plugin</artifactId>
        <version>0.10</version>
        <executions>
          <execution>
            <!-- Disable rat check for the web-app module for now. Check with rohit on how to do it.  -->
            <id>rat-check</id>
            <phase>none</phase>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>dist</id>
      <build>
        <plugins>
          <plugin>
            <groupId>com.github.eirslett</groupId>
            <artifactId>frontend-maven-plugin</artifactId>
            <version>0.0.20</version>
            <executions>
              <execution>
                <id>dist</id>
                <goals>
                  <goal>install-node-and-npm</goal>
                </goals>
                <configuration>
                  <nodeVersion>v0.10.28</nodeVersion>
                  <npmVersion>2.5.0</npmVersion>
                </configuration>
              </execution>
              <execution>
                <id>npm-install</id>
                <goals>
                  <goal>npm</goal>
                </goals>
                <!-- Optional configuration which provides for running any npm command -->
                <configuration>
                  <arguments>install</arguments>
                </configuration>
              </execution>
              <execution>
                <id>bower-install</id>
                <goals>
                  <goal>bower</goal>
                </goals>
                <configuration>
                  <arguments>install --allow-root</arguments>
                </configuration>
              </execution>
              <execution>
                <id>gulp clean</id>
                <goals>
                  <goal>gulp</goal>
                </goals>
                <configuration>
                  <arguments>clean</arguments>
                </configuration>
              </execution>
              <execution>
                <id>gulp distribute</id>
                <goals>
                  <goal>gulp</goal>
                </goals>
                <configuration>
                  <arguments>distribute</arguments>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <executions>
              <execution>
               <!--Skipping the rpm package phase for cdap-ui. It will be run from cdap-web-app-->
               <id>rpm-package</id>
                 <phase/>
              </execution>
              <execution>
                <!--Skipping the rpm package phase for cdap-ui. It will be run from cdap-web-app-->
                <id>deb-package</id>
                <phase/>
              </execution>
              <execution>
                <id>clean-node-modules</id>
                <phase>process-resources</phase>
                <goals>
                  <goal>exec</goal>
                </goals>
                <configuration>
                  <executable>rm</executable>
                  <arguments>
                    <argument>-rf</argument>
                    <argument>node_modules</argument>
                  </arguments>
                </configuration>
              </execution>
              <execution>
                <id>clean-bower-components</id>
                <phase>process-resources</phase>
                <goals>
                  <goal>exec</goal>
                </goals>
                <configuration>
                  <executable>rm</executable>
                  <arguments>
                    <argument>-rf</argument>
                    <argument>bower_components</argument>
                  </arguments>
                </configuration>
              </execution>
              <execution>
                <id>npm-install-production-deps</id>
                <phase>process-resources</phase>
                <goals>
                  <goal>exec</goal>
                </goals>
                <configuration>
                  <executable>${project.basedir}/cdap-ui/node/npm</executable>
                  <arguments>
                    <argument>install</argument>
                    <argument>--production</argument>
{'fraction_non_alphanumeric': 0.11917188587334725, 'fraction_numerical': 0.008002783576896311, 'mean_word_length': 1.3301580867450344, 'pattern_counts': {'":': 0, '<': 407, '<?xml version=': 2, '>': 407, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6224211', 'n_tokens_mistral': 3286, 'n_tokens_neox': 2911, 'n_words': 581}