<commit_before>﻿using System.Collections.Generic;
using Velyo.Google.Services.Models;

namespace Velyo.Google.Services
{
    /// <summary>
    /// Holds all geocode response data.
    /// </summary>
    public partial class GeocodingResponse : IEnumerable<GeocodingResult>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GeocodingResponse"/> class.
        /// </summary>
        internal GeocodingResponse() { }


        /// <summary>
        /// Gets or sets the results.
        /// </summary>
        /// <value>The results.</value>
        public IList<GeocodingResult> Results { get; protected internal set; } = new List<GeocodingResult>();

        /// <summary>
        /// Gets or sets the status.
        /// </summary>
        /// <value>The status.</value>
        public GeocodingResponseStatus Status { get; protected internal set; }

        public bool IsOk => Status == GeocodingResponseStatus.OK;
        public bool IsInvalidRequest => Status == GeocodingResponseStatus.INVALID_REQUEST;
        public bool IsOverQueryLimit => Status == GeocodingResponseStatus.OVER_QUERY_LIMIT;
        public bool IsRequestDenied => Status == GeocodingResponseStatus.REQUEST_DENIED;
        public bool IsZeroResults => Status == GeocodingResponseStatus.ZERO_RESULTS;


        /// <summary>
        /// Returns an enumerator that iterates through the collection.
        /// </summary>
        /// <returns>
        /// A <see cref="T:System.Collections.Generic.IEnumerator`1"/> that can be used to iterate through the collection.
        /// </returns>
        public IEnumerator<GeocodingResult> GetEnumerator()
        {
            return Results.GetEnumerator();<commit_msg>Add protected to GeocodingResponse ctor<commit_after>﻿using System.Collections.Generic;
using Velyo.Google.Services.Models;

namespace Velyo.Google.Services
{
    /// <summary>
    /// Holds all geocode response data.
    /// </summary>
    public partial class GeocodingResponse : IEnumerable<GeocodingResult>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GeocodingResponse"/> class.
        /// </summary>
        protected internal GeocodingResponse() { }


        /// <summary>
        /// Gets or sets the results.
        /// </summary>
        /// <value>The results.</value>
        public IList<GeocodingResult> Results { get; protected internal set; } = new List<GeocodingResult>();

        /// <summary>
        /// Gets or sets the status.
        /// </summary>
        /// <value>The status.</value>
        public GeocodingResponseStatus Status { get; protected internal set; }

        public bool IsOk => Status == GeocodingResponseStatus.OK;
        public bool IsInvalidRequest => Status == GeocodingResponseStatus.INVALID_REQUEST;
        public bool IsOverQueryLimit => Status == GeocodingResponseStatus.OVER_QUERY_LIMIT;
        public bool IsRequestDenied => Status == GeocodingResponseStatus.REQUEST_DENIED;
        public bool IsZeroResults => Status == GeocodingResponseStatus.ZERO_RESULTS;


        /// <summary>
        /// Returns an enumerator that iterates through the collection.
        /// </summary>
        /// <returns>
        /// A <see cref="T:System.Collections.Generic.IEnumerator`1"/> that can be used to iterate through the collection.
        /// </returns>
        public IEnumerator<GeocodingResult> GetEnumerator()
        {
            return Results.GetEnumerator();
{'fraction_non_alphanumeric': 0.11609195402298851, 'fraction_numerical': 0.0005747126436781609, 'mean_word_length': 2.4060665362035225, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 57, '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': '4646136', 'n_tokens_mistral': 910, 'n_tokens_neox': 899, 'n_words': 242}