<commit_before>package com.segal.mongorest.core.service;

import com.segal.mongorest.core.pojo.BaseDocument;
import com.segal.mongorest.core.util.BeanValidator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.CrudRepository;

import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * User: Jeff
 * Date: 4/15/14
 * Time: 5:39 PM
 * To change this template use File | Settings | File Templates.
 */
public class DefaultMongoCrudService<T extends BaseDocument> implements CrudService<T> {

	Logger log = LoggerFactory.getLogger(this.getClass());

	@Autowired
	BeanValidator beanValidator;

	@Autowired
	PersistenceListenerManager persistenceListenerManager;

	CrudRepository<T, String> crudRepository;

	public DefaultMongoCrudService() {
	}

	public DefaultMongoCrudService(CrudRepository<T, String> crudRepository) {
		this.crudRepository = crudRepository;
	}

	public T update(T pojo) {
		return doSave(pojo, true);
	}
<commit_msg>Removed autowiring for PersistenceListenerManager<commit_after>package com.segal.mongorest.core.service;

import com.segal.mongorest.core.pojo.BaseDocument;
import com.segal.mongorest.core.util.BeanValidator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.CrudRepository;

import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * User: Jeff
 * Date: 4/15/14
 * Time: 5:39 PM
 * To change this template use File | Settings | File Templates.
 */
public class DefaultMongoCrudService<T extends BaseDocument> implements CrudService<T> {

	Logger log = LoggerFactory.getLogger(this.getClass());

	@Autowired
	BeanValidator beanValidator;

	PersistenceListenerManager<T> persistenceListenerManager;
	CrudRepository<T, String> crudRepository;

	public DefaultMongoCrudService() {
	}

	public DefaultMongoCrudService(CrudRepository<T, String> crudRepository,
	                               PersistenceListenerManager<T> persistenceListenerManager) {
		this.crudRepository = crudRepository;
		this.persistenceListenerManager = persistenceListenerManager;
	}

	public T update(T pojo) {
		return doSave(pojo, true);
	}

{'fraction_non_alphanumeric': 0.09175424413904608, 'fraction_numerical': 0.008084074373484237, 'mean_word_length': 5.6353887399463805, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6351378', 'n_tokens_mistral': 756, 'n_tokens_neox': 737, 'n_words': 154}