<commit_before>package org.openregistry.core.service.internal;

import org.openregistry.core.repository.PersonRepository;
import org.openregistry.core.service.PersonService;
import org.openregistry.core.service.ServiceExecutionResult;
import org.openregistry.core.domain.Person;
import org.openregistry.core.domain.Role;

/**
 * Open Registry's default implementation of the <code>PersonService</code>.
 *
 * @since 1.0
 *        TODO: implementation, Spring autowire annotations, etc.
 */
public class DefaultPersonService implements PersonService {

    private PersonRepository personRepository;

    public void setPersonRepository(PersonRepository personRepository) {
        this.personRepository = personRepository;
    }

    /**
     * @see org.openregistry.core.service.PersonService#findPersonById(Long)
     */
    public Person findPersonById(Long id) {
        return this.personRepository.findByInternalId(id);
    }<commit_msg>NOJIRA: Added @Autowired for PersonRepository<commit_after>package org.openregistry.core.service.internal;

import org.openregistry.core.repository.PersonRepository;
import org.openregistry.core.service.PersonService;
import org.openregistry.core.service.ServiceExecutionResult;
import org.openregistry.core.domain.Person;
import org.openregistry.core.domain.Role;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Open Registry's default implementation of the <code>PersonService</code>.
 *
 * @since 1.0
 *        TODO: implementation
 */
public class DefaultPersonService implements PersonService {

    @Autowired
    private PersonRepository personRepository;

    /**
     * @see org.openregistry.core.service.PersonService#findPersonById(Long)
     */
    public Person findPersonById(Long id) {
        return this.personRepository.findByInternalId(id);
    }
{'fraction_non_alphanumeric': 0.09448388858547242, 'fraction_numerical': 0.002184598580010923, 'mean_word_length': 4.671826625386997, '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': '6039282', 'n_tokens_mistral': 486, 'n_tokens_neox': 479, 'n_words': 95}