<commit_before>package pl.kobietydokodu.koty.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import pl.kobietydokodu.koty.dao.CatDAO;
import pl.kobietydokodu.koty.domain.Cat;
@Service("CatService")
public class CatServiceImp implements CatService {
	
	@Autowired
	@Qualifier("jpaKotDAOBean") //jdbcKotDAOBean or jpaKotDAOBean
	private CatDAO kotDao;
	
	@Transactional
	@Override
	public List<Cat> findAll() {	
		return kotDao.findAll();
	}

	@Transactional
	@Override
	public Cat findById(Long id) {
		// TODO Auto-generated method stub
		return kotDao.findById(id);
	}

	@Transactional
	@Override
	public void add(Cat kot) {
		// TODO Auto-generated method stub
		kotDao.add(kot);
	}

	@Transactional
	@Override
	public void edit(Cat kot) {
		// TODO Auto-generated method stub
		kotDao.edit(kot);

	}

	@Transactional
	@Override
	public void delete(Long idKot) {
		kotDao.delete(idKot);
		// TODO Auto-generated method stub
		
	}

}<commit_msg>deleted todo comments<commit_after>package pl.kobietydokodu.koty.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import pl.kobietydokodu.koty.dao.CatDAO;
import pl.kobietydokodu.koty.domain.Cat;
@Service("CatService")
public class CatServiceImp implements CatService {
	
	@Autowired
	@Qualifier("jpaKotDAOBean") //jdbcKotDAOBean or jpaKotDAOBean
	private CatDAO kotDao;
	
	@Transactional
	@Override
	public List<Cat> findAll() {	
		return kotDao.findAll();
	}

	@Transactional
	@Override
	public Cat findById(Long id) {
		return kotDao.findById(id);
	}

	@Transactional
	@Override
	public void add(Cat kot) {
		kotDao.add(kot);
	}

	@Transactional
	@Override
	public void edit(Cat kot) {
		kotDao.edit(kot);
	}

	@Transactional
	@Override
	public void delete(Long idKot) {
		kotDao.delete(idKot);
	}

}
{'fraction_non_alphanumeric': 0.10464058234758872, 'fraction_numerical': 0.0, 'mean_word_length': 4.991825613079019, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5529904', 'n_tokens_mistral': 811, 'n_tokens_neox': 781, 'n_words': 150}