<commit_before>/*
    This script auguments the missing license information in our dependencies.
*/
complete {
    // license constants
    def apacheLicense = license("The Apache Software License, Version 2.0","http://www.apache.org/licenses/LICENSE-2.0.txt")
    def cddl = license("CDDL","http://www.sun.com/cddl/")
    def lgpl = license("LGPL 2.1","http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html")
    def mitLicense = license("MIT License","http://www.opensource.org/licenses/mit-license.php")
    def bsdLicense = license("BSD License","http://opensource.org/licenses/BSD-2-Clause")
    def jenkinsLicense = license("MIT License","http://jenkins-ci.org/mit-license")


    match("asm:*") {
        if (dependency.licenses.isEmpty())
            rewriteLicense([], license("BSD License","http://asm.ow2.org/license.html"))
    }

    // Apache components
    //   logkit is a part of Avalon
    match(["org.apache.ant:*","commons-jelly:*","log4j:*","avalon-framework:*","logkit:logkit","oro:oro","commons-codec:*","commons-beanutils:*","commons-net:*","commons-cli:*","*:commons-jelly","org.jvnet.hudson:commons-jelly-tags-define","slide:slide-webdavlib"]) {
        if (dependency.licenses.isEmpty())
            rewriteLicense([], apacheLicense)
    }

    // GlassFish components are dual-licensed between CDDL and GPL+Classpath Exception
    // we elect to take them under CDDL.
    // note that central has a different POM from m.g.o-public (http://repo2.maven.org/maven2/javax/mail/mail/1.4/mail-1.4.pom
    // vs http://maven.glassfish.org/content/groups/public/javax/mail/mail/1.4/mail-1.4.pom), so we aren't using  rewriteLicense here
    match(["javax.mail:*","org.jvnet.hudson:activation","org.jvnet:tiger-types","javax.servlet:jstl","javax.xml.stream:stax-api"]) {
        if (dependency.licenses.isEmpty())
            dependency.licenses=[cddl]
    }
    
    // according to JSR-250 1.0-20050927.133100 POM, it came from JAX-WS, which is under CDDL.
    match("javax.annotation:jsr250-api") {
        rewriteLicense([], cddl)
    }

    match("antlr:*") {
        rewriteLicense([], license("BSD License","http://www.antlr.org/license.html"))
    }

    match("jaxen:jaxen") {
        rewriteLicense([], license("BSD License","http://jaxen.codehaus.org/license.html"))
    }

    match("*:dom4j") {
        rewriteLicense([],license("BSD License","http://dom4j.sourceforge.net/dom4j-1.6.1/license.html"))
    }

    match(["org.codehaus.groovy:*","org.jenkins-ci.groovy:*"]) {
        // see http://groovy.codehaus.org/License+Information
        // see http://jmdns.sourceforge.net/license.html
        rewriteLicense([],apacheLicense)
    }

    match("relaxngDatatype:relaxngDatatype") {
        // see http://sourceforge.net/projects/relaxng/
        rewriteLicense([],bsdLicense);
    }
<commit_msg>Hotfix for build broken by e2134565049fe4352b411bf5283d3a132b3dd365.<commit_after>/*
    This script auguments the missing license information in our dependencies.
*/
complete {
    // license constants
    def apacheLicense = license("The Apache Software License, Version 2.0","http://www.apache.org/licenses/LICENSE-2.0.txt")
    def cddl = license("CDDL","http://www.sun.com/cddl/")
    def lgpl = license("LGPL 2.1","http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html")
    def mitLicense = license("MIT License","http://www.opensource.org/licenses/mit-license.php")
    def bsdLicense = license("BSD License","http://opensource.org/licenses/BSD-2-Clause")
    def jenkinsLicense = license("MIT License","http://jenkins-ci.org/mit-license")


    match("asm:*") {
        if (dependency.licenses.isEmpty())
            rewriteLicense([], license("BSD License","http://asm.ow2.org/license.html"))
    }

    // Apache components
    //   logkit is a part of Avalon
    match(["org.apache.ant:*","commons-jelly:*","log4j:*","avalon-framework:*","logkit:logkit","oro:oro","commons-codec:*","commons-beanutils:*","commons-net:*","commons-cli:*","*:commons-jelly","org.jvnet.hudson:commons-jelly-tags-define","slide:slide-webdavlib"]) {
        if (dependency.licenses.isEmpty())
            rewriteLicense([], apacheLicense)
    }

    // GlassFish components are dual-licensed between CDDL and GPL+Classpath Exception
    // we elect to take them under CDDL.
    // note that central has a different POM from m.g.o-public (http://repo2.maven.org/maven2/javax/mail/mail/1.4/mail-1.4.pom
    // vs http://maven.glassfish.org/content/groups/public/javax/mail/mail/1.4/mail-1.4.pom), so we aren't using  rewriteLicense here
    match(["javax.mail:*","org.jvnet.hudson:activation","org.jvnet:tiger-types","javax.servlet:jstl","javax.xml.stream:stax-api"]) {
        if (dependency.licenses.isEmpty())
            dependency.licenses=[cddl]
    }
    
/* TODO
    // according to JSR-250 1.0-20050927.133100 POM, it came from JAX-WS, which is under CDDL.
    match("javax.annotation:jsr250-api") {
        rewriteLicense([], cddl)
    }
*/

    match("antlr:*") {
        rewriteLicense([], license("BSD License","http://www.antlr.org/license.html"))
    }

    match("jaxen:jaxen") {
        rewriteLicense([], license("BSD License","http://jaxen.codehaus.org/license.html"))
    }

    match("*:dom4j") {
        rewriteLicense([],license("BSD License","http://dom4j.sourceforge.net/dom4j-1.6.1/license.html"))
    }

    match(["org.codehaus.groovy:*","org.jenkins-ci.groovy:*"]) {
        // see http://groovy.codehaus.org/License+Information
        // see http://jmdns.sourceforge.net/license.html
        rewriteLicense([],apacheLicense)
    }

    match("relaxngDatatype:relaxngDatatype") {
        // see http://sourceforge.net/projects/relaxng/
        rewriteLicense([],bsdLicense);
    }

{'fraction_non_alphanumeric': 0.17951849267271458, 'fraction_numerical': 0.02215631542219121, 'mean_word_length': 3.363013698630137, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 10, 'xml': 2}, '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': '7355831', 'n_tokens_mistral': 1988, 'n_tokens_neox': 1867, 'n_words': 276}