<commit_before>package com.documents.services;

import com.documents.models.Secretary;
import com.documents.repositories.SecretaryRepository;

import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Georgiana&Ecaterina 
 * @date 07.05.2017.
 */
@Service
public class SecretaryServiceImpl implements SecretaryService {
    @Autowired
    private SecretaryRepository secretaryRepository;

    @Override
    public Secretary save(Secretary entity) {
        return this.secretaryRepository.save(entity);
    }

    @Override
    public Secretary findById(Long id) {
        return this.secretaryRepository.findOne(id);
    }

    @Override
    public List<Secretary> findAll() {
        List<Secretary> secretaries = new ArrayList<>();
        for (Secretary secretary : this.secretaryRepository.findAll()) {
            secretaries.add(secretary);
        }
        return secretaries;
    }

    @Override
    public void delete(Long id) {
        this.secretaryRepository.delete(id);
    }


}
<commit_msg>imported library for @Service<commit_after>package com.documents.services;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.documents.models.Secretary;
import com.documents.repositories.SecretaryRepository;

/**
 * @author Georgiana&Ecaterina 
 * @date 07.05.2017.
 */
@Service
public class SecretaryServiceImpl implements SecretaryService {
    @Autowired
    private SecretaryRepository secretaryRepository;

    @Override
    public Secretary save(Secretary entity) {
        return this.secretaryRepository.save(entity);
    }

    @Override
    public Secretary findById(Long id) {
        return this.secretaryRepository.findOne(id);
    }

    @Override
    public List<Secretary> findAll() {
        List<Secretary> secretaries = new ArrayList<>();
        for (Secretary secretary : this.secretaryRepository.findAll()) {
            secretaries.add(secretary);
        }
        return secretaries;
    }

    @Override
    public void delete(Long id) {
        this.secretaryRepository.delete(id);
    }


}

{'fraction_non_alphanumeric': 0.0948314606741573, 'fraction_numerical': 0.0071910112359550565, 'mean_word_length': 3.407920792079208, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4043237', 'n_tokens_mistral': 626, 'n_tokens_neox': 599, 'n_words': 127}