<commit_before>/*
 *    Copyright 2009-2011 The 99 Software Foundation
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */
package org.nnsoft.guice.guartz;

import static org.quartz.utils.Key.DEFAULT_GROUP;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 
 */
@Inherited
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Scheduled {

    public static final String DEFAULT = "##default";

    // Job

    /**
     * The name must be unique within the group.
     *
     * @return
     */
    String jobName();

    /**
     * 
     *
     * @return
     */
    String jobGroup() default DEFAULT_GROUP;

    /**
     * Instructs the Scheduler whether or not the Job
     * should be re-executed if a 'recovery' or 'fail-over' situation is
     * encountered.
     *
     * @return
     */
    boolean requestRecovery() default false;

    /**
     * Whether or not the Job should remain stored after it is
     * orphaned
     *
     * @return
     */
    boolean storeDurably() default false;

    // Trigger

    /**
     * The name must be unique within the group.
     */
    String triggerName() default DEFAULT;

    String triggerGroup() default DEFAULT_GROUP;

    String cronExpression();

    /**
     * Returns the time zone for which the {@code cronExpression}
     * of this {@code CronTrigger} will be resolved.
     * 
     * @return
     */
    String timeZoneId() default DEFAULT;

    /**
     * Set the Trigger's priority.  When more than one Trigger have the same
     * fire time, the scheduler will fire the one with the highest priority
     * first.
     *
     * @return
     */
    int priority() default 0;

}<commit_msg>added missing javadoc<commit_after>/*
 *    Copyright 2009-2011 The 99 Software Foundation
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */
package org.nnsoft.guice.guartz;

import static org.quartz.utils.Key.DEFAULT_GROUP;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * {@code Job} classes annotated with {@code Scheduled} will be automatically scheduled.
 */
@Inherited
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Scheduled {

    public static final String DEFAULT = "##default";

    // Job

    /**
     * The {@code Job} name, must be unique within the group.
     */
    String jobName();

    /**
     * The {@code Job} group.
     */
    String jobGroup() default DEFAULT_GROUP;

    /**
     * Instructs the Scheduler whether or not the Job
     * should be re-executed if a 'recovery' or 'fail-over' situation is
     * encountered.
     */
    boolean requestRecovery() default false;

    /**
     * Whether or not the Job should remain stored after it is
     * orphaned.
     */
    boolean storeDurably() default false;

    // Trigger

    /**
     * The {@code Trigger} name, must be unique within the group.
     */
    String triggerName() default DEFAULT;

    /**
     * The {@code Trigger} group.
     */
    String triggerGroup() default DEFAULT_GROUP;

    /**
     * The cron expression to base the schedule on.
     */
    String cronExpression();

    /**
     * The time zone for which the {@code cronExpression}
     * of this {@code CronTrigger} will be resolved.
     */
    String timeZoneId() default DEFAULT;

    /**
     * The Trigger's priority.  When more than one Trigger have the same
     * fire time, the scheduler will fire the one with the highest priority
     * first.
     */
    int priority() default 0;

}
{'fraction_non_alphanumeric': 0.09233554616777308, 'fraction_numerical': 0.006035003017501509, 'mean_word_length': 2.682962962962963, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4327962', 'n_tokens_mistral': 1409, 'n_tokens_neox': 1345, 'n_words': 511}