<commit_before>﻿// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using System;
using Microsoft.Azure.WebJobs.Description;
using Microsoft.Azure.WebJobs.Extensions.Timers;

namespace Microsoft.Azure.WebJobs
{
    /// <summary>
    /// Attribute used to mark a job function that should be invoked periodically based on
    /// a timer schedule. The trigger parameter type must be <see cref="TimerInfo"/>.
    /// </summary>
    [AttributeUsage(AttributeTargets.Parameter)]
    [Binding]
    public sealed class TimerTriggerAttribute : Attribute
    {
        /// <summary>
        /// Constructs a new instance based on the schedule expression passed in.
        /// </summary>
        /// <param name="scheduleExpression">A schedule expression. This can either be a 6 field crontab expression
        /// <a href="http://en.wikipedia.org/wiki/Cron#CRON_expression"/> or a <see cref="TimeSpan"/>
        /// string (e.g. "00:30:00").</param>
        public TimerTriggerAttribute(string scheduleExpression)
        {
            ScheduleExpression = scheduleExpression;
            UseMonitor = true;
        }

        /// <summary>
        /// Constructs a new instance using the specified <see cref="TimerSchedule"/> type.
        /// </summary>
        /// <param name="scheduleType">The type of schedule to use.</param><commit_msg>Clarify that TimerTrigger TimeSpan can't be used on Consumption plan (#231)<commit_after>﻿// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using System;
using Microsoft.Azure.WebJobs.Description;
using Microsoft.Azure.WebJobs.Extensions.Timers;

namespace Microsoft.Azure.WebJobs
{
    /// <summary>
    /// Attribute used to mark a job function that should be invoked periodically based on
    /// a timer schedule. The trigger parameter type must be <see cref="TimerInfo"/>.
    /// </summary>
    [AttributeUsage(AttributeTargets.Parameter)]
    [Binding]
    public sealed class TimerTriggerAttribute : Attribute
    {
        /// <summary>
        /// Constructs a new instance based on the schedule expression passed in.
        /// </summary>
        /// <param name="scheduleExpression">A schedule expression. This can either be a 6 field crontab expression
        /// <a href="http://en.wikipedia.org/wiki/Cron#CRON_expression"/> or a <see cref="TimeSpan"/>
        /// string (e.g. "00:30:00"). On Azure Functions, a TimeSpan string is only supported 
        /// when running on an App Service Plan.</param>
        public TimerTriggerAttribute(string scheduleExpression)
        {
            ScheduleExpression = scheduleExpression;
            UseMonitor = true;
        }

        /// <summary>
        /// Constructs a new instance using the specified <see cref="TimerSchedule"/> type.
        /// </summary>
        /// <param name="scheduleType">The type of schedule to use.</param>
{'fraction_non_alphanumeric': 0.11217105263157895, 'fraction_numerical': 0.005592105263157895, 'mean_word_length': 2.6594464500601687, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '6816134', 'n_tokens_mistral': 773, 'n_tokens_neox': 747, 'n_words': 275}