<commit_before>package com.richashworth.plannningpoler.tasks;

import com.richashworth.planningpoker.model.SessionManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by rich on 10/04/2016.
 */
@Component
public class MaintenanceTask {
    private SessionManager sessionManager;

    @Autowired
    public MaintenanceTask(SessionManager sessionManager) {
        this.sessionManager = sessionManager;
    }

    @Scheduled(cron = "0 0 * * Sun")
    public void resetSessions() {
        sessionManager.clearSessions();
    }
}<commit_msg>added autowired annotation<commit_after>package com.richashworth.plannningpoler.tasks;

import com.richashworth.planningpoker.model.SessionManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by rich on 10/04/2016.
 */
@Component
public class MaintenanceTask {

    private SessionManager sessionManager;

    @Autowired
    public MaintenanceTask(SessionManager sessionManager) {
        this.sessionManager = sessionManager;
    }

    @Scheduled(cron = "0 0 * * Sun")
    public void resetSessions() {
        sessionManager.clearSessions();
    }
}
{'fraction_non_alphanumeric': 0.09288824383164006, 'fraction_numerical': 0.01451378809869376, 'mean_word_length': 4.472222222222222, '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': '680783', 'n_tokens_mistral': 399, 'n_tokens_neox': 379, 'n_words': 74}