<commit_before>package de.retest.recheck.review.ignore;

import java.util.regex.MatchResult;
import java.util.regex.Pattern;

import de.retest.recheck.ignore.ShouldIgnore;
import de.retest.recheck.review.ignore.io.RegexLoader;
import de.retest.recheck.ui.descriptors.Element;
import de.retest.recheck.ui.diff.AttributeDifference;

public class AttributeShouldIgnore implements ShouldIgnore {

	private final String attribute;

	public AttributeShouldIgnore( final String attribute ) {
		this.attribute = attribute;
	}

	@Override
	public boolean shouldIgnoreElement( final Element element ) {
		return false;
	}

	@Override
	public boolean shouldIgnoreAttributeDifference( final Element element,
			final AttributeDifference attributeDifference ) {
		return attributeDifference.getKey().matches( attribute );
	}

	@Override
	public String toString() {
		return String.format( AttributeShouldIgnoreLoader.FORMAT, attribute );
	}

	public static class AttributeShouldIgnoreLoader extends RegexLoader<AttributeShouldIgnore> {

		private static final String KEY = "attribute=";
		private static final String FORMAT = KEY + "%s";
		private static final Pattern REGEX = Pattern.compile( KEY + "(.+)" );

		public AttributeShouldIgnoreLoader() {
			super( REGEX );
		}

		@Override
		protected AttributeShouldIgnore load( final MatchResult regex ) {
			final String attribute = regex.group( 1 );
			return new AttributeShouldIgnore( attribute );
		}
	}
}
<commit_msg>This should not work anymore,<commit_after>package de.retest.recheck.review.ignore;

import java.util.regex.MatchResult;
import java.util.regex.Pattern;

import de.retest.recheck.ignore.ShouldIgnore;
import de.retest.recheck.review.ignore.io.RegexLoader;
import de.retest.recheck.ui.descriptors.Element;
import de.retest.recheck.ui.diff.AttributeDifference;

public class AttributeShouldIgnore implements ShouldIgnore {

	private final String attribute;

	public AttributeShouldIgnore( final String attribute ) {
		this.attribute = attribute;
	}

	@Override
	public boolean shouldIgnoreElement( final Element element ) {
		return false;
	}

	@Override
	public boolean shouldIgnoreAttributeDifference( final Element element,
			final AttributeDifference attributeDifference ) {
		return attributeDifference.getKey().equals( attribute );
	}

	@Override
	public String toString() {
		return String.format( AttributeShouldIgnoreLoader.FORMAT, attribute );
	}

	public static class AttributeShouldIgnoreLoader extends RegexLoader<AttributeShouldIgnore> {

		private static final String KEY = "attribute=";
		private static final String FORMAT = KEY + "%s";
		private static final Pattern REGEX = Pattern.compile( KEY + "(.+)" );

		public AttributeShouldIgnoreLoader() {
			super( REGEX );
		}

		@Override
		protected AttributeShouldIgnore load( final MatchResult regex ) {
			final String attribute = regex.group( 1 );
			return new AttributeShouldIgnore( attribute );
		}
	}
}

{'fraction_non_alphanumeric': 0.0868824531516184, 'fraction_numerical': 0.0006814310051107325, 'mean_word_length': 5.05360824742268, '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': '680791', 'n_tokens_mistral': 840, 'n_tokens_neox': 783, 'n_words': 216}