<commit_before>package io.paradoxical.dropwizard.swagger;

import lombok.Getter;
import lombok.NonNull;

import java.lang.annotation.Annotation;
import java.util.function.Predicate;

public class SwaggerFilters {

    @Getter
    private final Predicate<Class<?>> filterPredicate;

    protected SwaggerFilters(final Predicate<Class<?>> filterPredicate) {
        this.filterPredicate = filterPredicate;
    }

    public boolean shouldInclude(Class<?> type) {
        return filterPredicate.test(type);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static SwaggerFilters withAnnotation(@NonNull Class<? extends Annotation> annotation) {
        return builder()
            .withAnnotation(annotation)
            .build();
    }

    public static SwaggerFilters withoutAnnotation(@NonNull Class<? extends Annotation> annotation) {
        return builder()
            .withoutAnnotation(annotation)
            .build();
    }

    public static class Builder {

        private Predicate<Class<?>> filterPredicate = cls -> true;

        public Builder withAnnotation(@NonNull Class<? extends Annotation> annotation) {
            filterPredicate = filterPredicate.and(type -> type.isAnnotationPresent(annotation));
            return this;
        }

        public Builder withoutAnnotation(@NonNull Class<? extends Annotation> annotation) {
            filterPredicate = filterPredicate.and(type -> !type.isAnnotationPresent(annotation));
            return this;
        }

        public SwaggerFilters build() {
            return new SwaggerFilters(filterPredicate);
        }

    }
}<commit_msg>fixing formatting<commit_after>package io.paradoxical.dropwizard.swagger;

import lombok.Getter;
import lombok.NonNull;

import java.lang.annotation.Annotation;
import java.util.function.Predicate;

public class SwaggerFilters {

    @Getter
    private final Predicate<Class<?>> filterPredicate;

    protected SwaggerFilters(final Predicate<Class<?>> filterPredicate) {
        this.filterPredicate = filterPredicate;
    }

    public boolean shouldInclude(Class<?> type) {
        return filterPredicate.test(type);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static SwaggerFilters withAnnotation(@NonNull Class<? extends Annotation> annotation) {
        return builder().withAnnotation(annotation)
                        .build();
    }

    public static SwaggerFilters withoutAnnotation(@NonNull Class<? extends Annotation> annotation) {
        return builder().withoutAnnotation(annotation)
                        .build();
    }

    public static class Builder {

        private Predicate<Class<?>> filterPredicate = cls -> true;

        public Builder withAnnotation(@NonNull Class<? extends Annotation> annotation) {
            filterPredicate = filterPredicate.and(type -> type.isAnnotationPresent(annotation));
            return this;
        }

        public Builder withoutAnnotation(@NonNull Class<? extends Annotation> annotation) {
            filterPredicate = filterPredicate.and(type -> !type.isAnnotationPresent(annotation));
            return this;
        }

        public SwaggerFilters build() {
            return new SwaggerFilters(filterPredicate);
        }

    }
}
{'fraction_non_alphanumeric': 0.08997584541062802, 'fraction_numerical': 0.0, 'mean_word_length': 2.8976470588235292, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 31, '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': '5325992', 'n_tokens_mistral': 822, 'n_tokens_neox': 815, 'n_words': 199}