<commit_before>package org.springframework.beans;

/**
 * Mutable implementation of SortDefinition.
 * Supports toggling the ascending value on setting the same property again.
 * @author <NAME>
 * @author <NAME>
 * @since 26.05.2003
 * @see #setToggleAscendingOnProperty
 */
public class MutableSortDefinition implements SortDefinition {

	private String property = "";

	private boolean ignoreCase = true;

	private boolean ascending = true;

	private boolean toggleAscendingOnProperty = false;

	public MutableSortDefinition() {
	}

	public MutableSortDefinition(SortDefinition source) {
		this.property = source.getProperty();
		this.ignoreCase = source.isIgnoreCase();
		this.ascending = source.isAscending();
	}

	public MutableSortDefinition(
		String property, 
		boolean ignoreCase, 
		boolean ascending,
		boolean toggleAscendingOnProperty) {
			
		this.property = property;
		this.ignoreCase = ignoreCase;
		this.ascending = ascending;
		this.toggleAscendingOnProperty = toggleAscendingOnProperty;
	}

	public MutableSortDefinition(boolean toggleAscendingOnSameProperty) {<commit_msg>Backward to previous version<commit_after>package org.springframework.beans;

/**
 * Mutable implementation of SortDefinition.
 * Supports toggling the ascending value on setting the same property again.
 * @author <NAME>
 * @author <NAME>
 * @since 26.05.2003
 * @see #setToggleAscendingOnProperty
 */
public class MutableSortDefinition implements SortDefinition {

	private String property = "";

	private boolean ignoreCase = true;

	private boolean ascending = true;

	private boolean toggleAscendingOnProperty = false;

	public MutableSortDefinition() {
	}

	public MutableSortDefinition(SortDefinition source) {
		this.property = source.getProperty();
		this.ignoreCase = source.isIgnoreCase();
		this.ascending = source.isAscending();
	}

	public MutableSortDefinition(boolean toggleAscendingOnSameProperty) {
{'fraction_non_alphanumeric': 0.08320251177394035, 'fraction_numerical': 0.00837257980115123, 'mean_word_length': 5.268852459016394, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2492942', 'n_tokens_mistral': 563, 'n_tokens_neox': 503, 'n_words': 139}