<commit_before><commit_msg>Add missing test for Gradle.<commit_after>package net.bytebuddy.test;

import net.bytebuddy.build.Plugin;
import net.bytebuddy.description.type.TypeDescription;
import net.bytebuddy.dynamic.ClassFileLocator;
import net.bytebuddy.dynamic.DynamicType;
import net.bytebuddy.implementation.FixedValue;

import static net.bytebuddy.matcher.ElementMatchers.named;

public class ArgumentPlugin implements Plugin {

    private final int value;

    public ArgumentPlugin(int value) {
        this.value = value;
    }

    public boolean matches(TypeDescription target) {
        return target.getName().equals("foo.Bar");
    }

    public DynamicType.Builder<?> apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) {
        return builder.method(named("foo")).intercept(FixedValue.value(String.valueOf(value)));
    }

    public void close() {
        /* do nothing */
    }
}
{'fraction_non_alphanumeric': 0.10388247639034627, 'fraction_numerical': 0.0, 'mean_word_length': 4.359550561797753, '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': '3143282', 'n_tokens_mistral': 269, 'n_tokens_neox': 262, 'n_words': 54}