<commit_before><?xml version="1.0"?>
<ruleset xmlns="http://windup.jboss.org/schema/jboss-ruleset" id="environment-dependent-calls"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://windup.jboss.org/schema/jboss-ruleset http://windup.jboss.org/schema/jboss-ruleset/windup-jboss-ruleset.xsd">
    <metadata>
        <description>
            This ruleset provides generic rules that should match when migrating from different server
            to JBoss EAP 6+.
        </description>
        <dependencies>
            <addon id="org.jboss.windup.rules,windup-rules-javaee,2.3.0.Final" />
            <addon id="org.jboss.windup.rules,windup-rules-java,2.3.0.Final" />
        </dependencies>
        <targetTechnology id="eap" versionRange="[6,7)" />
        <targetTechnology id="java-ee" versionRange="[6,)" />
        <tag>reviewed-2016-02-12</tag>
    </metadata>
    <rules>
        <rule id="environment-dependent-calls-01000">
            <when>
                <javaclass references="java.lang.Class.forName({*}">
                    <location>METHOD_CALL</location>
                </javaclass>
            </when>
            <perform>
                 <hint title="Dynamic class instantiation" effort="0" category-id="optional">
                     <message>
                       <![CDATA[
                       The class is dynamically loaded within application. During the migration, multiple classes that are provided on classpath by a different server may not be present anymore.

                       Please review the class-loading mechanisms and ensure that the dynamically loaded class is available in JBoss EAP.
                       ]]>
                     </message>
                     <link title="Classloading in JBoss EAP 6" href="https://access.redhat.com/solutions/361343" />
                     <tag>classloader</tag>
                 </hint>
            </perform>
        </rule>
        <rule id="environment-dependent-calls-02000">
            <when>
                <javaclass references="javax.naming.Context.lookup{*}" as="default">
                    <location>METHOD_CALL</location>
                </javaclass>
            </when>
            <perform><commit_msg>WINDUPRULE-179 adding environment-dependent ruleset for EAP7 (#191)<commit_after><?xml version="1.0"?>
<ruleset xmlns="http://windup.jboss.org/schema/jboss-ruleset" id="environment-dependent-calls"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://windup.jboss.org/schema/jboss-ruleset http://windup.jboss.org/schema/jboss-ruleset/windup-jboss-ruleset.xsd">
    <metadata>
        <description>
            This ruleset provides generic rules that should match when migrating from different server
            to JBoss EAP 6+.
        </description>
        <dependencies>
            <addon id="org.jboss.windup.rules,windup-rules-javaee,2.3.0.Final" />
            <addon id="org.jboss.windup.rules,windup-rules-java,2.3.0.Final" />
        </dependencies>
        <targetTechnology id="eap" versionRange="[6,8)" />
        <targetTechnology id="java-ee" versionRange="[6,)" />
        <tag>reviewed-2016-02-12</tag>
    </metadata>
    <rules>
        <rule id="environment-dependent-calls-01000">
            <when>
                <javaclass references="java.lang.Class.forName({*}">
                    <location>METHOD_CALL</location>
                </javaclass>
            </when>
            <perform>
                 <hint title="Dynamic class instantiation" effort="0" category-id="optional">
                     <message>
                       <![CDATA[
                       The class is dynamically loaded within application. During the migration, multiple classes that are provided on classpath by a different server may not be present anymore.

                       Please review the class-loading mechanisms and ensure that the dynamically loaded class is available in JBoss EAP.
                       ]]>
                     </message>
                     <link title="Classloading in JBoss EAP 6" href="https://access.redhat.com/solutions/361343" />
                     <tag>classloader</tag>
                 </hint>
            </perform>
        </rule>
        <rule id="environment-dependent-calls-02000">
            <when>
                <javaclass references="javax.naming.Context.lookup{*}" as="default">
                    <location>METHOD_CALL</location>
                </javaclass>
            </when>
            <perform>
{'fraction_non_alphanumeric': 0.12384918895221395, 'fraction_numerical': 0.020385795703638757, 'mean_word_length': 1.923126201153107, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 2, '>': 85, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '4441611', 'n_tokens_mistral': 1346, 'n_tokens_neox': 1233, 'n_words': 255}