<commit_before>﻿using System;
using System.Text;

namespace SwissArmyKnife
{
    /// <summary>
    /// Extension methods for <see cref="StringBuilder"/>
    /// </summary>
    public static class StringBuilderExtensions
    {
        /// <summary>
        /// Appends a line by processing a composite format string, which
        /// contains zero of more format items
        /// </summary>
        /// <param name="sb">
        /// </param>
        /// <param name="provider">
        /// An object that supplies culture-specific formatting information
        /// </param>
        /// <param name="format">
        /// A composite format string
        /// </param>
        /// <param name="args">
        /// An object array that contains zero or more objects to format
        /// </param>
        public static StringBuilder AppendFormatLine(this StringBuilder sb, IFormatProvider provider, string format, params object[] args)
        {
            sb.AppendFormat(provider, format, args);
            return sb.AppendLine();
        }

        /// <summary>
        /// Appends a line by processing a composite format string, which
        /// contains zero of more format items
        /// </summary>
        /// <param name="sb">
        /// </param>
        /// <param name="format">
        /// A composite format string
        /// </param>
        /// <param name="arg0">
        /// The object to format
        /// </param>
        public static StringBuilder AppendFormatLine(this StringBuilder sb, string format, object arg0)
        {
            sb.AppendFormat(format, arg0);
            return sb.AppendLine();
        }

        /// <summary>
        /// Appends a line by processing a composite format string, which
        /// contains zero of more format items
        /// </summary>
        /// <param name="sb">
        /// </param>
        /// <param name="format">
        /// A composite format string
        /// </param>
        /// <param name="arg0">
        /// The first object to format
        /// </param>
        /// <param name="arg1">
        /// The second object to format
        /// </param>
        public static StringBuilder AppendFormatLine(this StringBuilder sb, string format, object arg0, object arg1)
        {
            sb.AppendFormat(format, arg0, arg1);
            return sb.AppendLine();
        }

        /// <summary>
        /// Appends a line by processing a composite format string, which
        /// contains zero of more format items
        /// </summary>
        /// <param name="sb">
        /// </param>
        /// <param name="format">
        /// A composite format string
        /// </param>
        /// <param name="arg0">
        /// The first object to format
        /// </param>
        /// <param name="arg1">
        /// The second object to format
        /// </param>
        /// <param name="arg2">
        /// The third object to format
        /// </param>
        public static StringBuilder AppendFormatLine(this StringBuilder sb, string format, object arg0, object arg1, object arg2)
        {
            sb.AppendFormat(format, arg0, arg1, arg2);
            return sb.AppendLine();
        }

        /// <summary>
        /// Appends a line by processing a composite format string, which
        /// contains zero of more format items
        /// </summary>
        /// <param name="sb">
        /// </param>
        /// <param name="format">
        /// A composite format string
        /// </param>
        /// <param name="arg0">
        /// The first object to format
        /// </param>
        /// <param name="arg1">
        /// The second object to format
        /// </param>
        /// <param name="arg2">
        /// The third object to format
        /// </param>
        /// <param name="arg3">
        /// The fourth object to format
        /// </param>
        public static StringBuilder AppendFormatLine(this StringBuilder sb, string format, object arg0, object arg1, object arg2, object arg3)
        {
            sb.AppendFormat(format, arg0, arg1, arg2, arg3);
            return sb.AppendLine();
        }

        /// <summary>
        /// Appends a line by processing a composite format string, which
        /// contains zero of more format items
        /// </summary>
        /// <param name="sb"></param>
        /// <param name="format">
        /// A composite format string
        /// </param>
        /// <param name="args">
        /// An object array that contains zero or more objects to format
        /// </param>
        public static StringBuilder AppendFormatLine(this StringBuilder sb, string format, params object[] args)
        {
            sb.AppendFormat(format, args);
            return sb.AppendLine();
        }
    }
}<commit_msg>Removed params[]-less overload that resulted in a call to a params[] method<commit_after>﻿using System;
using System.Text;

namespace SwissArmyKnife
{
    /// <summary>
    /// Extension methods for <see cref="StringBuilder"/>
    /// </summary>
    public static class StringBuilderExtensions
    {
        /// <summary>
        /// Appends a line by processing a composite format string, which
        /// contains zero of more format items
        /// </summary>
        /// <param name="sb">
        /// </param>
        /// <param name="provider">
        /// An object that supplies culture-specific formatting information
        /// </param>
        /// <param name="format">
        /// A composite format string
        /// </param>
        /// <param name="args">
        /// An object array that contains zero or more objects to format
        /// </param>
        public static StringBuilder AppendFormatLine(this StringBuilder sb, IFormatProvider provider, string format, params object[] args)
        {
            sb.AppendFormat(provider, format, args);
            return sb.AppendLine();
        }

        /// <summary>
        /// Appends a line by processing a composite format string, which
        /// contains zero of more format items
        /// </summary>
        /// <param name="sb">
        /// </param>
        /// <param name="format">
        /// A composite format string
        /// </param>
        /// <param name="arg0">
        /// The object to format
        /// </param>
        public static StringBuilder AppendFormatLine(this StringBuilder sb, string format, object arg0)
        {
            sb.AppendFormat(format, arg0);
            return sb.AppendLine();
        }

        /// <summary>
        /// Appends a line by processing a composite format string, which
        /// contains zero of more format items
        /// </summary>
        /// <param name="sb">
        /// </param>
        /// <param name="format">
        /// A composite format string
        /// </param>
        /// <param name="arg0">
        /// The first object to format
        /// </param>
        /// <param name="arg1">
        /// The second object to format
        /// </param>
        public static StringBuilder AppendFormatLine(this StringBuilder sb, string format, object arg0, object arg1)
        {
            sb.AppendFormat(format, arg0, arg1);
            return sb.AppendLine();
        }

        /// <summary>
        /// Appends a line by processing a composite format string, which
        /// contains zero of more format items
        /// </summary>
        /// <param name="sb">
        /// </param>
        /// <param name="format">
        /// A composite format string
        /// </param>
        /// <param name="arg0">
        /// The first object to format
        /// </param>
        /// <param name="arg1">
        /// The second object to format
        /// </param>
        /// <param name="arg2">
        /// The third object to format
        /// </param>
        public static StringBuilder AppendFormatLine(this StringBuilder sb, string format, object arg0, object arg1, object arg2)
        {
            sb.AppendFormat(format, arg0, arg1, arg2);
            return sb.AppendLine();
        }

        /// <summary>
        /// Appends a line by processing a composite format string, which
        /// contains zero of more format items
        /// </summary>
        /// <param name="sb"></param>
        /// <param name="format">
        /// A composite format string
        /// </param>
        /// <param name="args">
        /// An object array that contains zero or more objects to format
        /// </param>
        public static StringBuilder AppendFormatLine(this StringBuilder sb, string format, params object[] args)
        {
            sb.AppendFormat(format, args);
            return sb.AppendLine();
        }
    }
}
{'fraction_non_alphanumeric': 0.1347060853560336, 'fraction_numerical': 0.0055216841136546645, 'mean_word_length': 1.5376532399299474, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, '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': '4617812', 'n_tokens_mistral': 2097, 'n_tokens_neox': 2092, 'n_words': 744}