<commit_before>// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
// 
// Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

namespace Microsoft.Azure.Management.DataLake.Analytics.Models
{
    using System;
    using System.Linq;
    using System.Collections.Generic;
    using Newtonsoft.Json;
    using Microsoft.Rest;
    using Microsoft.Rest.Serialization;
    using Microsoft.Rest.Azure;

    /// <summary>
    /// The common Data Lake Analytics job information properties.
    /// </summary>
    public partial class JobInformation
    {
        /// <summary>
        /// Initializes a new instance of the JobInformation class.
        /// </summary>
        public JobInformation() { }

        /// <summary>
        /// Initializes a new instance of the JobInformation class.
        /// </summary>
        public JobInformation(string name, JobType type, JobProperties properties, Guid? jobId = default(Guid?), string submitter = default(string), IList<JobErrorDetails> errorMessage = default(IList<JobErrorDetails>), int? degreeOfParallelism = default(int?), int? priority = default(int?), DateTimeOffset? submitTime = default(DateTimeOffset?), DateTimeOffset? startTime = default(DateTimeOffset?), DateTimeOffset? endTime = default(DateTimeOffset?), JobState? state = default(JobState?), JobResult? result = default(JobResult?), string logFolder = default(string), IList<string> logFilePatterns = default(IList<string>), IList<JobStateAuditRecord> stateAuditRecords = default(IList<JobStateAuditRecord>))
        {
            JobId = jobId;
            Name = name;
            Type = type;
            Submitter = submitter;
            ErrorMessage = errorMessage;
            DegreeOfParallelism = degreeOfParallelism;
            Priority = priority;
            SubmitTime = submitTime;
            StartTime = startTime;
            EndTime = endTime;
            State = state;
            Result = result;
            LogFolder = logFolder;
            LogFilePatterns = logFilePatterns;
            StateAuditRecords = stateAuditRecords;
            Properties = properties;
        }

        /// <summary>
        /// Gets or sets the job's unique identifier (a GUID).
        /// </summary>
        [JsonProperty(PropertyName = "jobId")]
        public Guid? JobId { get; set; }

        /// <summary>
        /// Gets or sets the friendly name of the job.
        /// </summary>
        [JsonProperty(PropertyName = "name")]
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the job type of the current job (Hive or USql).
        /// Possible values include: 'USql', 'Hive'
        /// </summary>
        [JsonProperty(PropertyName = "type")]
        public JobType Type { get; set; }

        /// <summary>
        /// Gets or sets the user or account that submitted the job.
        /// </summary>
        [JsonProperty(PropertyName = "submitter")]
        public string Submitter { get; set; }

        /// <summary>
        /// Gets the error message details for the job, if the job failed.
        /// </summary>
        [JsonProperty(PropertyName = "errorMessage")]
        public IList<JobErrorDetails> ErrorMessage { get; private set; }

        /// <summary>
        /// Gets or sets the degree of parallelism used for this job. This
        /// must be greater than 0.
        /// </summary>
        [JsonProperty(PropertyName = "degreeOfParallelism")]
        public int? DegreeOfParallelism { get; set; }

        /// <summary>
        /// Gets or sets the priority value for the current job. Lower numbers
        /// have a higher priority. By default, a job has a priority of 1000.
        /// This must be greater than 0.
        /// </summary>
        [JsonProperty(PropertyName = "priority")]
        public int? Priority { get; set; }

        /// <summary>
        /// Gets the time the job was submitted to the service.
        /// </summary>
        [JsonProperty(PropertyName = "submitTime")]
        public DateTimeOffset? SubmitTime { get; private set; }

        /// <summary>
        /// Gets the start time of the job.
        /// </summary>
        [JsonProperty(PropertyName = "startTime")]
        public DateTimeOffset? StartTime { get; private set; }

        /// <summary>
        /// Gets the completion time of the job.
        /// </summary>
        [JsonProperty(PropertyName = "endTime")]
        public DateTimeOffset? EndTime { get; private set; }

        /// <summary>
        /// Gets the job state. When the job is in the Ended state, refer to
        /// Result and ErrorMessage for details. Possible values include:
        /// 'Accepted', 'Compiling', 'Ended', 'New', 'Queued', 'Running',
        /// 'Scheduling', 'Starting', 'Paused', 'WaitingForCapacity'
        /// </summary>
        [JsonProperty(PropertyName = "state")]
        public JobState? State { get; private set; }

        /// <summary>
        /// Gets the result of job execution or the current result of the
        /// running job. Possible values include: 'None', 'Succeeded',
        /// 'Cancelled', 'Failed'
        /// </summary>
        [JsonProperty(PropertyName = "result")]
        public JobResult? Result { get; private set; }

        /// <summary>
        /// Gets or sets the log folder path to use in the following format:
        /// adl://&lt;accountName&gt;.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/.
        /// </summary>
        [JsonProperty(PropertyName = "logFolder")]
        public string LogFolder { get; set; }

        /// <summary>
        /// Gets or sets the list of log file name patterns to find in the
        /// logFolder. '*' is the only matching character allowed. Example
        /// format: jobExecution*.log or *mylog*.txt
        /// </summary>
        [JsonProperty(PropertyName = "logFilePatterns")]
        public IList<string> LogFilePatterns { get; set; }

        /// <summary>
        /// Gets the job state audit records, indicating when various
        /// operations have been performed on this job.
        /// </summary>
        [JsonProperty(PropertyName = "stateAuditRecords")]
        public IList<JobStateAuditRecord> StateAuditRecords { get; private set; }

        /// <summary>
        /// Gets or sets the job specific properties.
        /// </summary>
        [JsonProperty(PropertyName = "properties")]
        public JobProperties Properties { get; set; }

        /// <summary>
        /// Validate the object. Throws ValidationException if validation fails.
        /// </summary>
        public virtual void Validate()
        {
            if (Name == null)<commit_msg>Switch log folder to a private setter.<commit_after>// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
// 
// Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

namespace Microsoft.Azure.Management.DataLake.Analytics.Models
{
    using System;
    using System.Linq;
    using System.Collections.Generic;
    using Newtonsoft.Json;
    using Microsoft.Rest;
    using Microsoft.Rest.Serialization;
    using Microsoft.Rest.Azure;

    /// <summary>
    /// The common Data Lake Analytics job information properties.
    /// </summary>
    public partial class JobInformation
    {
        /// <summary>
        /// Initializes a new instance of the JobInformation class.
        /// </summary>
        public JobInformation() { }

        /// <summary>
        /// Initializes a new instance of the JobInformation class.
        /// </summary>
        public JobInformation(string name, JobType type, JobProperties properties, Guid? jobId = default(Guid?), string submitter = default(string), IList<JobErrorDetails> errorMessage = default(IList<JobErrorDetails>), int? degreeOfParallelism = default(int?), int? priority = default(int?), DateTimeOffset? submitTime = default(DateTimeOffset?), DateTimeOffset? startTime = default(DateTimeOffset?), DateTimeOffset? endTime = default(DateTimeOffset?), JobState? state = default(JobState?), JobResult? result = default(JobResult?), string logFolder = default(string), IList<string> logFilePatterns = default(IList<string>), IList<JobStateAuditRecord> stateAuditRecords = default(IList<JobStateAuditRecord>))
        {
            JobId = jobId;
            Name = name;
            Type = type;
            Submitter = submitter;
            ErrorMessage = errorMessage;
            DegreeOfParallelism = degreeOfParallelism;
            Priority = priority;
            SubmitTime = submitTime;
            StartTime = startTime;
            EndTime = endTime;
            State = state;
            Result = result;
            LogFolder = logFolder;
            LogFilePatterns = logFilePatterns;
            StateAuditRecords = stateAuditRecords;
            Properties = properties;
        }

        /// <summary>
        /// Gets or sets the job's unique identifier (a GUID).
        /// </summary>
        [JsonProperty(PropertyName = "jobId")]
        public Guid? JobId { get; set; }

        /// <summary>
        /// Gets or sets the friendly name of the job.
        /// </summary>
        [JsonProperty(PropertyName = "name")]
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the job type of the current job (Hive or USql).
        /// Possible values include: 'USql', 'Hive'
        /// </summary>
        [JsonProperty(PropertyName = "type")]
        public JobType Type { get; set; }

        /// <summary>
        /// Gets or sets the user or account that submitted the job.
        /// </summary>
        [JsonProperty(PropertyName = "submitter")]
        public string Submitter { get; set; }

        /// <summary>
        /// Gets the error message details for the job, if the job failed.
        /// </summary>
        [JsonProperty(PropertyName = "errorMessage")]
        public IList<JobErrorDetails> ErrorMessage { get; private set; }

        /// <summary>
        /// Gets or sets the degree of parallelism used for this job. This
        /// must be greater than 0.
        /// </summary>
        [JsonProperty(PropertyName = "degreeOfParallelism")]
        public int? DegreeOfParallelism { get; set; }

        /// <summary>
        /// Gets or sets the priority value for the current job. Lower numbers
        /// have a higher priority. By default, a job has a priority of 1000.
        /// This must be greater than 0.
        /// </summary>
        [JsonProperty(PropertyName = "priority")]
        public int? Priority { get; set; }

        /// <summary>
        /// Gets the time the job was submitted to the service.
        /// </summary>
        [JsonProperty(PropertyName = "submitTime")]
        public DateTimeOffset? SubmitTime { get; private set; }

        /// <summary>
        /// Gets the start time of the job.
        /// </summary>
        [JsonProperty(PropertyName = "startTime")]
        public DateTimeOffset? StartTime { get; private set; }

        /// <summary>
        /// Gets the completion time of the job.
        /// </summary>
        [JsonProperty(PropertyName = "endTime")]
        public DateTimeOffset? EndTime { get; private set; }

        /// <summary>
        /// Gets the job state. When the job is in the Ended state, refer to
        /// Result and ErrorMessage for details. Possible values include:
        /// 'Accepted', 'Compiling', 'Ended', 'New', 'Queued', 'Running',
        /// 'Scheduling', 'Starting', 'Paused', 'WaitingForCapacity'
        /// </summary>
        [JsonProperty(PropertyName = "state")]
        public JobState? State { get; private set; }

        /// <summary>
        /// Gets the result of job execution or the current result of the
        /// running job. Possible values include: 'None', 'Succeeded',
        /// 'Cancelled', 'Failed'
        /// </summary>
        [JsonProperty(PropertyName = "result")]
        public JobResult? Result { get; private set; }

        /// <summary>
        /// Gets or sets the log folder path to use in the following format:
        /// adl://&lt;accountName&gt;.azuredatalakestore.net/system/jobservice/jobs/Usql/2016/03/13/17/18/5fe51957-93bc-4de0-8ddc-c5a4753b068b/logs/.
        /// </summary>
        [JsonProperty(PropertyName = "logFolder")]
        public string LogFolder { get; private set; }

        /// <summary>
        /// Gets or sets the list of log file name patterns to find in the
        /// logFolder. '*' is the only matching character allowed. Example
        /// format: jobExecution*.log or *mylog*.txt
        /// </summary>
        [JsonProperty(PropertyName = "logFilePatterns")]
        public IList<string> LogFilePatterns { get; set; }

        /// <summary>
        /// Gets the job state audit records, indicating when various
        /// operations have been performed on this job.
        /// </summary>
        [JsonProperty(PropertyName = "stateAuditRecords")]
        public IList<JobStateAuditRecord> StateAuditRecords { get; private set; }

        /// <summary>
        /// Gets or sets the job specific properties.
        /// </summary>
        [JsonProperty(PropertyName = "properties")]
        public JobProperties Properties { get; set; }

        /// <summary>
        /// Validate the object. Throws ValidationException if validation fails.
        /// </summary>
        public virtual void Validate()
        {
            if (Name == null)
{'fraction_non_alphanumeric': 0.11709889474824821, 'fraction_numerical': 0.006068048833345373, 'mean_word_length': 2.1173159198378744, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2660230', 'n_tokens_mistral': 3631, 'n_tokens_neox': 3525, 'n_words': 1186}