<commit_before>package com.github.jengelman.gradle.plugins.shadow

import com.github.jengelman.gradle.plugins.shadow.internal.ApplicationConfigurer
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.DependencySet
import org.gradle.api.artifacts.PublishArtifact
import org.gradle.api.internal.java.JavaLibrary
import org.gradle.api.plugins.ApplicationPlugin
import org.gradle.api.plugins.JavaPlugin
import org.gradle.api.plugins.JavaPluginConvention

class ShadowPlugin implements Plugin<Project> {

    static final String EXTENSION_NAME = 'shadow'
    static final String SHADOW_JAR_TASK_NAME = 'shadowJar'
    static final String CONFIGURATION_NAME = 'shadow'
    static final String SHADOW_COMPONENT_NAME = 'shadow'
    static final String SHADOW_GROUP = 'Shadow'

    @Override
    void apply(Project project) {

        project.plugins.apply(JavaPlugin)
        project.extensions.create(EXTENSION_NAME, ShadowExtension, project)
        createShadowConfiguration(project)
        configureShadowTask(project)
        project.plugins.withType(ApplicationPlugin) {
            new ApplicationConfigurer(project.tasks.findByName(SHADOW_JAR_TASK_NAME)).execute(project)<commit_msg>casting to make IDEA happy<commit_after>package com.github.jengelman.gradle.plugins.shadow

import com.github.jengelman.gradle.plugins.shadow.internal.ApplicationConfigurer
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.DependencySet
import org.gradle.api.artifacts.PublishArtifact
import org.gradle.api.internal.java.JavaLibrary
import org.gradle.api.plugins.ApplicationPlugin
import org.gradle.api.plugins.JavaPlugin
import org.gradle.api.plugins.JavaPluginConvention

class ShadowPlugin implements Plugin<Project> {

    static final String EXTENSION_NAME = 'shadow'
    static final String SHADOW_JAR_TASK_NAME = 'shadowJar'
    static final String CONFIGURATION_NAME = 'shadow'
    static final String SHADOW_COMPONENT_NAME = 'shadow'
    static final String SHADOW_GROUP = 'Shadow'

    @Override
    void apply(Project project) {

        project.plugins.apply(JavaPlugin)
        project.extensions.create(EXTENSION_NAME, ShadowExtension, project)
        createShadowConfiguration(project)
        configureShadowTask(project)
        project.plugins.withType(ApplicationPlugin) {
            new ApplicationConfigurer((ShadowJar) project.tasks.findByName(SHADOW_JAR_TASK_NAME)).execute(project)
{'fraction_non_alphanumeric': 0.07990779869381483, 'fraction_numerical': 0.0, 'mean_word_length': 4.972477064220183, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '5631628', 'n_tokens_mistral': 774, 'n_tokens_neox': 728, 'n_words': 132}