<commit_before>﻿namespace ScriptLinkStandard.Helpers
{
    public partial class ScriptLinkHelpers
    {
        /// <summary>
        /// Safely converts a string to an integer.
        /// </summary>
        /// <param name="fieldValue"></param>
        /// <returns></returns>
        public static int SafeGetInt(string fieldValue)
        {
            int integerTest, tempValue = 0;
            if (int.TryParse(fieldValue, out integerTest))
            {
                tempValue = int.Parse(fieldValue);
            }
            return tempValue;
        }
    }
}<commit_msg>Refactor<commit_after>﻿namespace ScriptLinkStandard.Helpers
{
    public partial class ScriptLinkHelpers
    {
        /// <summary>
        /// Safely converts a string to an integer.
        /// </summary>
        /// <param name="fieldValue"></param>
        /// <returns></returns>
        public static int SafeGetInt(string fieldValue)
        {
            int tempValue = 0;
            if (int.TryParse(fieldValue, out int integerTest))
            {
                tempValue = int.Parse(fieldValue);
            }
            return tempValue;
        }
    }
}
{'fraction_non_alphanumeric': 0.10967184801381692, 'fraction_numerical': 0.0017271157167530224, 'mean_word_length': 1.592841163310962, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '6069431', 'n_tokens_mistral': 300, 'n_tokens_neox': 296, 'n_words': 70}