<commit_before>package com.google.code.morphia.query;

import java.util.List;

/** <p> 
 * 		A nicer interface to the update operations in monogodb. 
 *      All these operations happen at the server and can cause the server 
 *      and client version of the Entity to be different
 *  </p> 
 **/
public interface UpdateOperations<T> {
	/** sets a the field value */
	UpdateOperations<T> set(String fieldExpr, Object value);
	/** removes the field */
	UpdateOperations<T> unset(String fieldExpr);

	/** adds the value to an array field (on the server)*/
	UpdateOperations<T> add(String fieldExpr, Object value);
	UpdateOperations<T> add(String fieldExpr, Object value, boolean addDups);
	/** adds the values to an array field (on the server) */
	UpdateOperations<T> addAll(String fieldExpr, List<?> values, boolean addDups);
	
	/** removed the first value from the array (on the server)*/
	UpdateOperations<T> removeFirst(String fieldExpr);
	/** removed the last value from the array (on the server)*/
	UpdateOperations<T> removeLast(String fieldExpr);
	/** removed the value from the array field (on the server)*/
	UpdateOperations<T> removeAll(String fieldExpr, Object value);
	/** removed the values from the array field (on the server) */
	UpdateOperations<T> removeAll(String fieldExpr, List<?> values);

	/** decrements the value from the numeric field by 1 (on the server) */
	UpdateOperations<T> dec(String fieldExpr);
	/** increments the value from the numeric field by 1 (on the server) */
	UpdateOperations<T> inc(String fieldExpr);
	/** increments the value from the numeric field by value (negatives are allowed) (on the server) */
	UpdateOperations<T> inc(String fieldExpr, Number value);
}
<commit_msg>update javadocs<commit_after>package com.google.code.morphia.query;

import java.util.List;

/** <p> 
 * 		A nicer interface to the update operations in monogodb. 
 *      All these operations happen at the server and can cause the server 
 *      and client version of the Entity to be different
 *  </p> 
 **/
public interface UpdateOperations<T> {
	/** sets the field value */
	UpdateOperations<T> set(String fieldExpr, Object value);
	/** removes the field */
	UpdateOperations<T> unset(String fieldExpr);

	/** adds the value to an array field*/
	UpdateOperations<T> add(String fieldExpr, Object value);
	UpdateOperations<T> add(String fieldExpr, Object value, boolean addDups);
	/** adds the values to an array field*/
	UpdateOperations<T> addAll(String fieldExpr, List<?> values, boolean addDups);
	
	/** removes the first value from the array*/
	UpdateOperations<T> removeFirst(String fieldExpr);
	/** removes the last value from the array*/
	UpdateOperations<T> removeLast(String fieldExpr);
	/** removes the value from the array field*/
	UpdateOperations<T> removeAll(String fieldExpr, Object value);
	/** removes the values from the array field*/
	UpdateOperations<T> removeAll(String fieldExpr, List<?> values);

	/** decrements the numeric field by 1*/
	UpdateOperations<T> dec(String fieldExpr);
	/** increments the numeric field by 1*/
	UpdateOperations<T> inc(String fieldExpr);
	/** increments the numeric field by value (negatives are allowed)*/
	UpdateOperations<T> inc(String fieldExpr, Number value);
}

{'fraction_non_alphanumeric': 0.10610734114743985, 'fraction_numerical': 0.0012338062924120913, 'mean_word_length': 4.610726643598616, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '3111540', 'n_tokens_mistral': 927, 'n_tokens_neox': 914, 'n_words': 364}