<commit_before>package com.atlassian.jira.plugins.dvcs.service.admin;

import com.atlassian.jira.plugins.dvcs.activity.RepositoryPullRequestDao;
import com.atlassian.jira.plugins.dvcs.dao.ChangesetDao;
import com.atlassian.jira.plugins.dvcs.dao.IssueToMappingFunction;
import com.atlassian.jira.plugins.dvcs.event.DevSummaryChangedEvent;
import com.atlassian.jira.plugins.dvcs.event.EventService;
import com.atlassian.jira.plugins.dvcs.model.Organization;
import com.atlassian.jira.plugins.dvcs.model.Repository;
import com.atlassian.jira.plugins.dvcs.service.OrganizationService;
import com.atlassian.jira.util.concurrent.ThreadFactories;
import com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory;
import com.google.common.annotations.VisibleForTesting;
import org.apache.commons.lang3.time.StopWatch;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;
import java.util.Set;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import javax.annotation.Resource;

/**
 * Service that manages generation of dev summary changed events, typically used for priming the dev summary cache.
 */
public class DevSummaryChangedEventServiceImpl
{
    private static final ThreadFactory THREAD_FACTORY =
            ThreadFactories.namedThreadFactory("DVCSConnector.AdministrationService");
    private static final Logger log = LoggerFactory.getLogger(DevSummaryChangedEventServiceImpl.class);

    @Resource
    private ChangesetDao changesetDao;

    @Resource
    private RepositoryPullRequestDao repositoryPullRequestDao;

    @Resource
    private OrganizationService organizationService;

    @Resource (name = "eventServiceImpl")
    private EventService eventService;

    @Resource
    private DevSummaryCachePrimingStatus status;

    final ThreadLocalDelegateExecutorFactory executorFactory;

    private final Executor executor;

    public DevSummaryChangedEventServiceImpl(final ThreadLocalDelegateExecutorFactory executorFactory)
    {
        this.executorFactory = executorFactory;<commit_msg>fixed name of thread<commit_after>package com.atlassian.jira.plugins.dvcs.service.admin;

import com.atlassian.jira.plugins.dvcs.activity.RepositoryPullRequestDao;
import com.atlassian.jira.plugins.dvcs.dao.ChangesetDao;
import com.atlassian.jira.plugins.dvcs.dao.IssueToMappingFunction;
import com.atlassian.jira.plugins.dvcs.event.DevSummaryChangedEvent;
import com.atlassian.jira.plugins.dvcs.event.EventService;
import com.atlassian.jira.plugins.dvcs.model.Organization;
import com.atlassian.jira.plugins.dvcs.model.Repository;
import com.atlassian.jira.plugins.dvcs.service.OrganizationService;
import com.atlassian.jira.util.concurrent.ThreadFactories;
import com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory;
import com.google.common.annotations.VisibleForTesting;
import org.apache.commons.lang3.time.StopWatch;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;
import java.util.Set;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import javax.annotation.Resource;

/**
 * Service that manages generation of dev summary changed events, typically used for priming the dev summary cache.
 */
public class DevSummaryChangedEventServiceImpl
{
    private static final ThreadFactory THREAD_FACTORY =
            ThreadFactories.namedThreadFactory("DVCSConnector.DevSummaryChangedEventServiceImpl");
    private static final Logger log = LoggerFactory.getLogger(DevSummaryChangedEventServiceImpl.class);

    @Resource
    private ChangesetDao changesetDao;

    @Resource
    private RepositoryPullRequestDao repositoryPullRequestDao;

    @Resource
    private OrganizationService organizationService;

    @Resource (name = "eventServiceImpl")
    private EventService eventService;

    @Resource
    private DevSummaryCachePrimingStatus status;

    final ThreadLocalDelegateExecutorFactory executorFactory;

    private final Executor executor;

    public DevSummaryChangedEventServiceImpl(final ThreadLocalDelegateExecutorFactory executorFactory)
    {
        this.executorFactory = executorFactory;
{'fraction_non_alphanumeric': 0.07636106528399718, 'fraction_numerical': 0.0014140938015555031, 'mean_word_length': 5.715189873417722, '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': '540547', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1181, 'n_words': 220}