<commit_before>package ca.firstvoices.listeners;

import ca.firstvoices.workers.FVRegistrationTimeOutWorker;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.nuxeo.ecm.core.event.Event;
import org.nuxeo.ecm.core.event.EventListener;
import org.nuxeo.ecm.core.work.api.WorkManager;
import org.nuxeo.runtime.api.Framework;

/**
 *
 */
public class FVRegistrationTimeOutListener  implements EventListener
{
    private static final Log log = LogFactory.getLog(FVRegistrationTimeOutListener.class);

    public static final String CHECK_REGISTRETION_TIMEOUT_EVENT_NAME = "checkRegistrationTimeout";

    protected WorkManager workManager = Framework.getService(WorkManager.class);

    @Override
    public void handleEvent(Event event)
    {
        if (CHECK_REGISTRETION_TIMEOUT_EVENT_NAME.equals(event.getName()))
        {
            FVRegistrationTimeOutWorker doCheckRegTimeOut = new FVRegistrationTimeOutWorker();
            workManager.schedule(doCheckRegTimeOut, true);
        }
    }
}<commit_msg>Moved event name constant together with other constants.<commit_after>package ca.firstvoices.listeners;

import ca.firstvoices.workers.FVRegistrationTimeOutWorker;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.nuxeo.ecm.core.event.Event;
import org.nuxeo.ecm.core.event.EventListener;
import org.nuxeo.ecm.core.work.api.WorkManager;
import org.nuxeo.runtime.api.Framework;

import static ca.firstvoices.utils.FVRegistrationConstants.CHECK_REGISTRATION_TIMEOUT_EVENT_NAME;

/**
 *
 */
public class FVRegistrationTimeOutListener  implements EventListener
{
    private static final Log log = LogFactory.getLog(FVRegistrationTimeOutListener.class);

    protected WorkManager workManager = Framework.getService(WorkManager.class);

    @Override
    public void handleEvent(Event event)
    {
        if (CHECK_REGISTRATION_TIMEOUT_EVENT_NAME.equals(event.getName()))
        {
            FVRegistrationTimeOutWorker doCheckRegTimeOut = new FVRegistrationTimeOutWorker();
            workManager.schedule(doCheckRegTimeOut, true);
        }
    }
}
{'fraction_non_alphanumeric': 0.08651162790697674, 'fraction_numerical': 0.0, 'mean_word_length': 4.645669291338582, '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': '4363086', 'n_tokens_mistral': 638, 'n_tokens_neox': 620, 'n_words': 104}