<commit_before>
<!--

    Copyright (C) 2014 Stratio (http://stratio.com)

    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:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://maven.apache.org/POM/4.0.0"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>parent</artifactId>
        <groupId>com.stratio.sparkta</groupId>
        <version>0.0.1-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>dist</artifactId>
    <properties>
        <classpath.directory>lib</classpath.directory>
        <plugins.directory>plugins</plugins.directory>
        <scripts.directory>bin</scripts.directory>
        <config.directory>config</config.directory>
        <binary.name>sparkta-${project.version}</binary.name>
        <driver.mainclass>com.stratio.sparkta.driver.Sparkta</driver.mainclass>
        <!--TODO change to call serving API Main-->
        <serving.mainclass>com.stratio.sparkta.driver.Sparkta</serving.mainclass>
    </properties>
    <dependencies>
        <dependency>
            <groupId>com.stratio.sparkta</groupId>
            <artifactId>driver</artifactId>
            <version>0.0.1-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>com.stratio.sparkta</groupId>
            <artifactId>serving-api</artifactId>
            <version>0.0.1-SNAPSHOT</version>
        </dependency>
    </dependencies>
    <build>
        <resources>
            <resource>
                <directory>${scripts.directory}</directory>
                <filtering>true</filtering>
            </resource>
            <resource>
                <directory>${config.directory}</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
            <!--<plugin>-->
                <!--<artifactId>maven-assembly-plugin</artifactId>-->
                <!--<version>2.5.1</version>-->
                <!--<configuration>-->
                    <!--<descriptors>-->
                        <!--<descriptor>assembly.xml</descriptor>-->
                    <!--</descriptors>-->
                <!--</configuration>-->
                <!--<executions>-->
                    <!--<execution>-->
                        <!--<id>assemble</id>-->
                        <!--<phase>package</phase>-->
                        <!--<goals>-->
                            <!--<goal>single</goal>-->
                        <!--</goals>-->
                    <!--</execution>-->
                <!--</executions>-->
            <!--</plugin>-->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>2.8.1</version>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <profiles>
        <profile>
            <id>package</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>appassembler-maven-plugin</artifactId>
                        <version>1.8.1</version>
                        <executions>
                            <execution>
                                <id>engine</id>
                                <configuration>
                                    <configurationSourceDirectory>${config.directory}</configurationSourceDirectory>
                                    <configurationDirectory>:/etc/sds/streaming/conf</configurationDirectory>
                                    <copyConfigurationDirectory>true</copyConfigurationDirectory>
                                    <includeConfigurationDirectoryInClasspath>true
                                    </includeConfigurationDirectoryInClasspath>
                                    <assembleDirectory>target/appassembler</assembleDirectory>
                                    <extraJvmArguments>$STREAMING_OPTS -Xms512m -Xmx512m
                                        -Dcom.sun.management.jmxremote.port=7193
                                        -Dcom.sun.management.jmxremote.authenticate=false
                                        -Dcom.sun.management.jmxremote.ssl=false
                                    </extraJvmArguments>

                                    <filterConfigurationDirectory>true</filterConfigurationDirectory>
                                    <programs>
                                        <program>
                                            <mainClass>com.stratio.streaming.StreamingEngine</mainClass>
                                            <id>run</id>
                                        </program>
                                    </programs>
                                    <platforms>
                                        <platform>unix</platform>
                                    </platforms>
                                </configuration>
                                <phase>package</phase>
                                <goals>
                                    <goal>assemble</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>com.stratio.mojo.unix</groupId>
                        <artifactId>unix-maven-plugin</artifactId>
                        <version>1.0-alpha-9</version>
                        <extensions>true</extensions>
                        <inherited>false</inherited>
                        <configuration>
                            <contact><![CDATA[Stratio Streaming<<EMAIL>>]]></contact>
                            <contactEmail><EMAIL></contactEmail>
                            <deb>
                                <section>devel</section>
                            </deb>
                            <rpm>
                                <group>stratio</group>
                            </rpm>
                        </configuration>
                        <executions>
                            <execution>
                                <id>engine</id>
                                <phase>package</phase>
                                <configuration>
                                    <name>Engine</name>
                                    <size>1</size>
                                    <assembly>
                                        <copyDirectory>
                                            <from>target/appassembler/bin</from>
                                            <to>/opt/sds/streaming/bin</to>
                                        </copyDirectory>
                                        <copyDirectory>
                                            <from>target/appassembler/repo</from>
                                            <to>/opt/sds/streaming/repo</to>
                                        </copyDirectory>
                                        <copyDirectory>
                                            <from>target/appassembler/:/etc/sds/streaming/conf</from>
                                            <to>/etc/sds/streaming/conf</to>
                                        </copyDirectory>
                                    </assembly>
                                </configuration>
                                <goals>
                                    <goal>package-deb</goal>
                                    <goal>package-rpm</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project><commit_msg>updating and fixing unix maven plugin<commit_after>
<!--

    Copyright (C) 2014 Stratio (http://stratio.com)

    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:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://maven.apache.org/POM/4.0.0"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>parent</artifactId>
        <groupId>com.stratio.sparkta</groupId>
        <version>0.0.1-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>dist</artifactId>
    <properties>
        <classpath.directory>lib</classpath.directory>
        <plugins.directory>plugins</plugins.directory>
        <scripts.directory>bin</scripts.directory>
        <config.directory>config</config.directory>
        <binary.name>sparkta-${project.version}</binary.name>
        <driver.mainclass>com.stratio.sparkta.driver.Sparkta</driver.mainclass>
        <!--TODO change to call serving API Main-->
        <serving.mainclass>com.stratio.sparkta.driver.Sparkta</serving.mainclass>
    </properties>
    <dependencies>
        <dependency>
            <groupId>com.stratio.sparkta</groupId>
            <artifactId>driver</artifactId>
            <version>0.0.1-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>com.stratio.sparkta</groupId>
            <artifactId>serving-api</artifactId>
            <version>0.0.1-SNAPSHOT</version>
        </dependency>
    </dependencies>
    <build>
        <resources>
            <resource>
                <directory>${scripts.directory}</directory>
                <filtering>true</filtering>
            </resource>
            <resource>
                <directory>${config.directory}</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
            <!--<plugin>-->
                <!--<artifactId>maven-assembly-plugin</artifactId>-->
                <!--<version>2.5.1</version>-->
                <!--<configuration>-->
                    <!--<descriptors>-->
                        <!--<descriptor>assembly.xml</descriptor>-->
                    <!--</descriptors>-->
                <!--</configuration>-->
                <!--<executions>-->
                    <!--<execution>-->
                        <!--<id>assemble</id>-->
                        <!--<phase>package</phase>-->
                        <!--<goals>-->
                            <!--<goal>single</goal>-->
                        <!--</goals>-->
                    <!--</execution>-->
                <!--</executions>-->
            <!--</plugin>-->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>2.8.1</version>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <profiles>
        <profile>
            <id>package</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>appassembler-maven-plugin</artifactId>
                        <version>1.8.1</version>
                        <executions>
                            <execution>
                                <id>engine</id>
                                <configuration>
                                    <configurationSourceDirectory>${config.directory}</configurationSourceDirectory>
                                    <configurationDirectory>:/etc/sds/sparkta/conf</configurationDirectory>
                                    <copyConfigurationDirectory>true</copyConfigurationDirectory>
                                    <includeConfigurationDirectoryInClasspath>true</includeConfigurationDirectoryInClasspath>
                                    <assembleDirectory>target/appassembler</assembleDirectory>
                                    <extraJvmArguments>$STREAMING_OPTS -Xms512m -Xmx512m
                                        -Dcom.sun.management.jmxremote.port=7193
                                        -Dcom.sun.management.jmxremote.authenticate=false
                                        -Dcom.sun.management.jmxremote.ssl=false
                                    </extraJvmArguments>

                                    <filterConfigurationDirectory>true</filterConfigurationDirectory>
                                    <programs>
                                        <program>
                                            <mainClass>com.stratio.sparkta.driver.Sparkta</mainClass>
                                            <id>run</id>
                                        </program>
                                    </programs>
                                    <platforms>
                                        <platform>unix</platform>
                                    </platforms>
                                </configuration>
                                <phase>package</phase>
                                <goals>
                                    <goal>assemble</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>com.stratio.mojo.unix</groupId>
                        <artifactId>unix-maven-plugin</artifactId>
                        <version>1.1.2</version>
                        <extensions>true</extensions>
                        <inherited>false</inherited>
                        <configuration>
                            <contact><![CDATA[Stratio SpaRkTA<<EMAIL>>]]></contact>
                            <contactEmail><EMAIL></contactEmail>
                            <deb>
                                <section>devel</section>
                            </deb>
                            <rpm>
                                <group>stratio</group>
                            </rpm>
                        </configuration>
                        <executions>
                            <execution>
                                <id>engine</id>
                                <phase>package</phase>
                                <configuration>
                                    <name>Engine</name>
                                    <size>1</size>
                                    <assembly>
                                        <copyDirectory>
                                            <from>target/appassembler/bin</from>
                                            <to>/opt/sds/sparkta/bin</to>
                                        </copyDirectory>
                                        <copyDirectory>
                                            <from>target/appassembler/repo</from>
                                            <to>/opt/sds/sparkta/repo</to>
                                        </copyDirectory>
                                        <copyDirectory>
                                            <from>target/appassembler/:/etc/sds/sparkta/conf</from>
                                            <to>/etc/sds/sparkta/conf</to>
                                        </copyDirectory>
                                    </assembly>
                                </configuration>
                                <goals>
                                    <goal>package-deb</goal>
                                    <goal>package-rpm</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
{'fraction_non_alphanumeric': 0.1103537430955459, 'fraction_numerical': 0.006698789516982019, 'mean_word_length': 0.9727599397241219, 'pattern_counts': {'":': 0, '<': 503, '<?xml version=': 0, '>': 503, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 95, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5578217', 'n_tokens_mistral': 3985, 'n_tokens_neox': 3616, 'n_words': 521}