<commit_before>package landmaster.landcraft.util;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.*;

import java.lang.annotation.*;

@Retention(RUNTIME)
@Target({ TYPE, METHOD })
@Repeatable(OptionalM.List.class)
public @interface OptionalM {
	String[] modids();
	String[] stripped() default {}; // unused for method
	
	@Retention(RUNTIME)
	@Target({ TYPE, METHOD })
	public static @interface List {
		OptionalM[] value();
	}
}<commit_msg>Improve documentation<commit_after>package landmaster.landcraft.util;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.*;

import java.lang.annotation.*;

/**
 * Annotates a class to strip certain interfaces from, or a method to strip.
 * @author Landmaster
 */
@Retention(RUNTIME)
@Target({ TYPE, METHOD })
@Repeatable(OptionalM.List.class)
public @interface OptionalM {
	/**
	 * If any of these mods are loaded, then the interfaces/method remain(s).
	 * @return The modids such that if any are loaded, then the interfaces/method are not removed.
	 */
	String[] modids();
	/**
	 * If {@link OptionalM} is annotated on a class, then these interfaces are stripped
	 * from the class if none of the mods in {@link #modids()} are loaded. This field is
	 * silently ignored if annotated on a method.
	 * @return The interfaces to strip.
	 */
	String[] stripped() default {}; // unused for method
	
	/**
	 * Containing annotation type for {@link OptionalM}.
	 * @author Landmaster
	 */
	@Retention(RUNTIME)
	@Target({ TYPE, METHOD })
	public static @interface List {
		OptionalM[] value();
	}
}
{'fraction_non_alphanumeric': 0.12408312958435208, 'fraction_numerical': 0.0, 'mean_word_length': 4.438538205980066, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6435857', 'n_tokens_mistral': 498, 'n_tokens_neox': 461, 'n_words': 163}