<commit_before>package vsb.fou.batch.spring.job;

import org.springframework.batch.item.ItemWriter;
import org.springframework.stereotype.Component;
import vsb.fou.batch.spring.dao.ProductDao;
import vsb.fou.batch.spring.domain.Product;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author <NAME>
 */
@Component
public class ProductWriter implements ItemWriter<Product> {

    @Resource
    private ProductDao productDao;

    public void write(List<? extends Product> items) throws Exception {
        for (Product item : items) {<commit_msg>FoU: Spring Batch<commit_after>package vsb.fou.batch.spring.job;

import org.springframework.batch.item.ItemWriter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import vsb.fou.batch.spring.dao.ProductDao;
import vsb.fou.batch.spring.domain.Product;

import java.util.List;

/**
 * @author <NAME>
 */
@Component
public class ProductWriter implements ItemWriter<Product> {

    @Autowired
    @Qualifier("productDao")
    private ProductDao productDao;

    public void write(List<? extends Product> items) throws Exception {
        for (Product item : items) {
{'fraction_non_alphanumeric': 0.1076555023923445, 'fraction_numerical': 0.0, 'mean_word_length': 4.864485981308412, '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': '1092126', 'n_tokens_mistral': 365, 'n_tokens_neox': 372, 'n_words': 81}