<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/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>camel-cdi-parent</artifactId>
        <groupId>io.astefanutti.camel.cdi</groupId>
        <version>1.1-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>quickstarts</artifactId>
    <name>Camel CDI :: Quickstarts</name>
    <packaging>pom</packaging>

    <properties>
        <packaging.type>${packaging.type}</packaging.type>
    </properties>

    <dependencies>
        <!-- Java EE & Weld -->
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-api</artifactId>
        </dependency>

        <!-- Weld2 -->
        <dependency>
            <groupId>org.jboss.weld.se</groupId>
            <artifactId>weld-se</artifactId>
            <version>${weld.version}</version>
        </dependency>
        <dependency>
            <groupId>org.jboss.weld.se</groupId>
            <artifactId>weld-se-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jboss.weld.servlet</groupId>
            <artifactId>weld-servlet</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jboss.weld</groupId>
            <artifactId>weld-core-impl</artifactId>
        </dependency>

        <!-- DeltaSpike -->
        <dependency>
            <groupId>org.apache.deltaspike.cdictrl</groupId>
            <artifactId>deltaspike-cdictrl-api</artifactId>
            <version>${deltaspike.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.deltaspike.cdictrl</groupId>
            <artifactId>deltaspike-cdictrl-weld</artifactId>
            <version>${deltaspike.version}</version>
        </dependency>

    </dependencies>

    <build>
        <plugins>
            <!-- Maven Exec Plugin -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>java</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <mainClass>${example.main.class}</mainClass>
                </configuration>
            </plugin>

            <!-- Camel Maven Plugin -->
            <plugin>
                <groupId>io.astefanutti.camel.cdi</groupId>
                <artifactId>camel-maven-plugin</artifactId>
                <version>${project.version}</version>
                <configuration>
                    <useCDI>true</useCDI>
                </configuration>
            </plugin>

            <!-- Wildfly Maven Plugin -->
            <plugin>
                <groupId>org.wildfly.plugins</groupId>
                <artifactId>wildfly-maven-plugin</artifactId>
                <version>1.0.2.Final</version>
            </plugin>

        </plugins>
    </build>

    <profiles>
        <profile>
            <id>bundle</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <packaging.type>bundle</packaging.type>
            </properties>
            <build>
                <plugins>
                    <!-- Felix Maven Plugin -->
                    <plugin>
                        <groupId>org.apache.felix</groupId>
                        <artifactId>maven-bundle-plugin</artifactId>
                        <version>${maven-bundle-plugin.version}</version>
                        <extensions>true</extensions>
                        <configuration>
                            <instructions>
                                <Bundle-Name>${camel.osgi.bundle.name}</Bundle-Name>
                                <Bundle-SymbolicName>${camel.osgi.symbolic.name}</Bundle-SymbolicName>
                                <Export-Package>${camel.osgi.export.pkg}</Export-Package>
                                <Import-Package>${camel.osgi.import.pkg}</Import-Package>
                                <Require-Capability>
                                    osgi.extender; filter:="(osgi.extender=pax.cdi)",
                                    org.ops4j.pax.cdi.extension; filter:="(extension=camel-cdi)"
                                </Require-Capability>
                                <DynamicImport-Package>${camel.osgi.dynamic}</DynamicImport-Package>
                                <Private-Package>${camel.osgi.private.pkg}</Private-Package>
                                <Implementation-Title>Apache Camel CDI :: Karaf Example</Implementation-Title>
                                <Implementation-Version>${project.version}</Implementation-Version>
                                <Karaf-Info>Camel;${project.artifactId}=${project.version}</Karaf-Info>
                            </instructions>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>war</id>
            <properties>
                <packaging.type>war</packaging.type>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-war-plugin</artifactId>
                        <configuration>
                            <webResources>
                                <!-- place the legal files under the META-INF folder -->
                                <resource>
                                    <directory>src/main/resources/META-INF</directory>
                                    <targetPath>META-INF</targetPath>
                                    <includes>
                                        <include>*.txt</include>
                                    </includes>
                                </resource>
                                <!-- place beans.xml where it's expected to be, that's under the path WEB-INF/beans.xml -->
                                <resource>
                                    <directory>src/main/resources/META-INF</directory>
                                    <targetPath>WEB-INF</targetPath>
                                    <includes>
                                        <include>beans.xml</include>
                                    </includes>
                                </resource>
                            </webResources>
                            <!-- exclude beans.xml from the root of the WAR -->
                            <packagingExcludes>beans.xml</packagingExcludes>
                            <failOnMissingWebXml>false</failOnMissingWebXml>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <modules>
        <module>simplecontextname</module>
        <module>defaultcamelcontext</module>
    </modules>


</project><commit_msg>Filter resources correctly to void to copy twice the beans.xml file<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/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>camel-cdi-parent</artifactId>
        <groupId>io.astefanutti.camel.cdi</groupId>
        <version>1.1-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>quickstarts</artifactId>
    <name>Camel CDI :: Quickstarts</name>
    <packaging>pom</packaging>

    <properties>
        <packaging.type>${packaging.type}</packaging.type>
    </properties>

    <dependencies>
        <!-- Java EE & Weld -->
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-api</artifactId>
        </dependency>

        <!-- Weld2 -->
        <dependency>
            <groupId>org.jboss.weld.se</groupId>
            <artifactId>weld-se</artifactId>
            <version>${weld.version}</version>
        </dependency>
        <dependency>
            <groupId>org.jboss.weld.se</groupId>
            <artifactId>weld-se-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jboss.weld.servlet</groupId>
            <artifactId>weld-servlet</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jboss.weld</groupId>
            <artifactId>weld-core-impl</artifactId>
        </dependency>

        <!-- DeltaSpike -->
        <dependency>
            <groupId>org.apache.deltaspike.cdictrl</groupId>
            <artifactId>deltaspike-cdictrl-api</artifactId>
            <version>${deltaspike.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.deltaspike.cdictrl</groupId>
            <artifactId>deltaspike-cdictrl-weld</artifactId>
            <version>${deltaspike.version}</version>
        </dependency>

    </dependencies>

    <build>
        <plugins>
            <!-- Maven Exec Plugin -->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>java</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <mainClass>${example.main.class}</mainClass>
                </configuration>
            </plugin>

            <!-- Camel Maven Plugin -->
            <plugin>
                <groupId>io.astefanutti.camel.cdi</groupId>
                <artifactId>camel-maven-plugin</artifactId>
                <version>${project.version}</version>
                <configuration>
                    <useCDI>true</useCDI>
                </configuration>
            </plugin>

            <!-- Wildfly Maven Plugin -->
            <plugin>
                <groupId>org.wildfly.plugins</groupId>
                <artifactId>wildfly-maven-plugin</artifactId>
                <version>1.0.2.Final</version>
            </plugin>

        </plugins>
    </build>

    <profiles>
        <profile>
            <id>bundle</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <packaging.type>bundle</packaging.type>
            </properties>
            <build>
                <plugins>
                    <!-- Felix Maven Plugin -->
                    <plugin>
                        <groupId>org.apache.felix</groupId>
                        <artifactId>maven-bundle-plugin</artifactId>
                        <version>${maven-bundle-plugin.version}</version>
                        <extensions>true</extensions>
                        <configuration>
                            <instructions>
                                <Bundle-Name>${camel.osgi.bundle.name}</Bundle-Name>
                                <Bundle-SymbolicName>${camel.osgi.symbolic.name}</Bundle-SymbolicName>
                                <Export-Package>${camel.osgi.export.pkg}</Export-Package>
                                <Import-Package>${camel.osgi.import.pkg}</Import-Package>
                                <Require-Capability>
                                    osgi.extender; filter:="(osgi.extender=pax.cdi)",
                                    org.ops4j.pax.cdi.extension; filter:="(extension=camel-cdi)"
                                </Require-Capability>
                                <DynamicImport-Package>${camel.osgi.dynamic}</DynamicImport-Package>
                                <Private-Package>${camel.osgi.private.pkg}</Private-Package>
                                <Implementation-Title>Apache Camel CDI :: Karaf Example</Implementation-Title>
                                <Implementation-Version>${project.version}</Implementation-Version>
                                <Karaf-Info>Camel;${project.artifactId}=${project.version}</Karaf-Info>
                            </instructions>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>war</id>
            <properties>
                <packaging.type>war</packaging.type>
            </properties>
            <build>
                <resources>
                    <resource>
                        <directory>src/main/resources/META-INF</directory>
                        <targetPath>WEB-INF/classes/META-INF</targetPath>
                        <excludes>
                            <exclude>beans.xml</exclude>
                        </excludes>
                    </resource>
                    <resource>
                        <directory>src/main/resources</directory>
                        <includes>
                            <include>log4j.xml</include>
                            <include>*.properties</include>
                        </includes>
                    </resource>
                </resources>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-war-plugin</artifactId>
                        <configuration>
                            <webResources>
                                <!-- place beans.xml where it's expected to be, that's under the path WEB-INF/beans.xml -->
                                <resource>
                                    <directory>src/main/resources/META-INF</directory>
                                    <targetPath>WEB-INF</targetPath>
                                    <includes>
                                        <include>beans.xml</include>
                                    </includes>
                                </resource>
                            </webResources>
                            <!-- exclude beans.xml from the root of the WAR -->
                            <packagingExcludes>beans.xml</packagingExcludes>
                            <failOnMissingWebXml>false</failOnMissingWebXml>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <modules>
        <module>simplecontextname</module>
        <module>defaultcamelcontext</module>
    </modules>


</project>
{'fraction_non_alphanumeric': 0.1218910448756418, 'fraction_numerical': 0.003667400146696006, 'mean_word_length': 1.1975091575091574, 'pattern_counts': {'":': 0, '<': 472, '<?xml version=': 2, '>': 472, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 19}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 19, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '468085', 'n_tokens_mistral': 4111, 'n_tokens_neox': 3637, 'n_words': 438}