<commit_before>/*
 * Copyright 2014-2015 the original author or authors.
 *
 * 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.
 */
package com.mooregreatsoftware.gradle.defaults

import org.gradle.api.Project

class DefaultsExtension {
    String id

    String orgName
    String orgUrl

    String bintrayRepo
    String bintrayPkg
    Set bintrayLabels
    boolean bintrayToCentral = false

    Set developers
    Set contributors

    String compatibilityVersion = '1.7'

    String siteUrl
    String issuesUrl
    String vcsReadUrl
    String vcsWriteUrl

    String licenseKey
    String licenseName
    String licenseUrl

    String copyrightYears


    DefaultsExtension(Project project) {
        project.afterEvaluate {
            this.bintrayPkg = bintrayPkg ?: "${project.group}:${project.name}"

            this.siteUrl = siteUrl ?: "https://github.com/${id}/${project.name}"
            this.issuesUrl = issuesUrl ?: "${siteUrl}/issues"
            this.vcsReadUrl = vcsReadUrl ?: "${siteUrl}.git"
            this.vcsWriteUrl = vcsWriteUrl ?: "<EMAIL>:${id}/${project.name}.git"

            this.licenseKey = licenseKey ?: 'Apache-2.0'
            this.licenseName = licenseName ?: 'The Apache Software License, Version 2.0'
            this.licenseUrl = licenseUrl ?: 'http://www.apache.org/licenses/LICENSE-2.0'
        }
    }
}
<commit_msg>BinTray package name now defaults to project name<commit_after>/*
 * Copyright 2014-2015 the original author or authors.
 *
 * 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.
 */
package com.mooregreatsoftware.gradle.defaults

import org.gradle.api.Project

class DefaultsExtension {
    String id

    String orgName
    String orgUrl

    String bintrayRepo
    String bintrayPkg
    Set bintrayLabels
    boolean bintrayToCentral = false

    Set developers
    Set contributors

    String compatibilityVersion = '1.7'

    String siteUrl
    String issuesUrl
    String vcsReadUrl
    String vcsWriteUrl

    String licenseKey
    String licenseName
    String licenseUrl

    String copyrightYears


    DefaultsExtension(Project project) {
        project.afterEvaluate {
            this.bintrayPkg = bintrayPkg ?: "${project.name}"

            this.siteUrl = siteUrl ?: "https://github.com/${id}/${project.name}"
            this.issuesUrl = issuesUrl ?: "${siteUrl}/issues"
            this.vcsReadUrl = vcsReadUrl ?: "${siteUrl}.git"
            this.vcsWriteUrl = vcsWriteUrl ?: "git@github.com:${id}/${project.name}.git"

            this.licenseKey = licenseKey ?: 'Apache-2.0'
            this.licenseName = licenseName ?: 'The Apache Software License, Version 2.0'
            this.licenseUrl = licenseUrl ?: 'http://www.apache.org/licenses/LICENSE-2.0'
        }
    }
}

{'fraction_non_alphanumeric': 0.08851674641148326, 'fraction_numerical': 0.01063264221158958, 'mean_word_length': 2.887396694214876, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 1, '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': '2018767', 'n_tokens_mistral': 1074, 'n_tokens_neox': 1023, 'n_words': 331}