<commit_before>package com.breakersoft.plow.service;

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

import com.breakersoft.plow.FrameSet;
import com.breakersoft.plow.Job;
import com.breakersoft.plow.Layer;
import com.breakersoft.plow.Project;
import com.breakersoft.plow.dao.FrameDao;
import com.breakersoft.plow.dao.JobDao;
import com.breakersoft.plow.dao.LayerDao;
import com.breakersoft.plow.dao.ProjectDao;
import com.breakersoft.plow.json.Blueprint;
import com.breakersoft.plow.json.BlueprintLayer;

@Service
@Transactional
public class JobLauncherServiceImpl implements JobLauncherService {

	@Autowired
	ProjectDao projectDao;

	@Autowired
	JobDao jobDao;
	
	@Autowired
	LayerDao layerDao;

	@Autowired
	FrameDao frameDao;
	
	public Job launch(Blueprint blueprint) {
		
		Project project = projectDao.get(blueprint.getProject());
		Job job = jobDao.create(project, blueprint);
		
		int layerOrder = 0;
		for (BlueprintLayer blayer: blueprint.getLayers()) {
			Layer layer = layerDao.create(job, blayer, layerOrder);
			
			int frameOrder = 0;
			FrameSet frameSet = new FrameSet(blayer.getRange());
			for (int frameNum: frameSet) {
				frameDao.create(layer, frameNum, frameOrder);
				frameOrder++;
			}
			layerOrder++;
		}
		return job;
	}

	public void shutdown(Job job) {
		// TODO Auto-generated method stub
		
	}

}<commit_msg>whitespace<commit_after>package com.breakersoft.plow.service;

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

import com.breakersoft.plow.FrameSet;
import com.breakersoft.plow.Job;
import com.breakersoft.plow.Layer;
import com.breakersoft.plow.Project;
import com.breakersoft.plow.dao.FrameDao;
import com.breakersoft.plow.dao.JobDao;
import com.breakersoft.plow.dao.LayerDao;
import com.breakersoft.plow.dao.ProjectDao;
import com.breakersoft.plow.json.Blueprint;
import com.breakersoft.plow.json.BlueprintLayer;

@Service
@Transactional
public class JobLauncherServiceImpl implements JobLauncherService {

    @Autowired
    ProjectDao projectDao;

    @Autowired
    JobDao jobDao;

    @Autowired
    LayerDao layerDao;

    @Autowired
    FrameDao frameDao;

    public Job launch(Blueprint blueprint) {

        Project project = projectDao.get(blueprint.getProject());
        Job job = jobDao.create(project, blueprint);

        int layerOrder = 0;
        for (BlueprintLayer blayer: blueprint.getLayers()) {
            Layer layer = layerDao.create(job, blayer, layerOrder);

            int frameOrder = 0;
            FrameSet frameSet = new FrameSet(blayer.getRange());
            for (int frameNum: frameSet) {
                frameDao.create(layer, frameNum, frameOrder);
                frameOrder++;
            }
            layerOrder++;
        }

        return job;
    }

    public void shutdown(Job job) {
        // TODO Auto-generated method stub

    }

}
{'fraction_non_alphanumeric': 0.09653385163589245, 'fraction_numerical': 0.0012957563977972141, 'mean_word_length': 3.7727975270479135, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1921460', 'n_tokens_mistral': 1002, 'n_tokens_neox': 993, 'n_words': 192}