<commit_before>﻿namespace LibGit2Sharp.Core.Handles
{
    internal static class SafeHandleExtensions
    {
        public static void SafeDispose(this SafeHandleBase handle)
        {
            if (handle == null || handle.IsInvalid)
            {
                return;
            }

            handle.Dispose();
        }
    }
}<commit_msg>Prevent SafeHandles from being disposed more than once<commit_after>﻿namespace LibGit2Sharp.Core.Handles
{
    internal static class SafeHandleExtensions
    {
        public static void SafeDispose(this SafeHandleBase handle)
        {
            if (handle == null || handle.IsClosed || handle.IsInvalid)
            {
                return;
            }

            handle.Dispose();
        }
    }
}
{'fraction_non_alphanumeric': 0.07804232804232804, 'fraction_numerical': 0.0026455026455026454, 'mean_word_length': 1.7527272727272727, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4377376', 'n_tokens_mistral': 202, 'n_tokens_neox': 190, 'n_words': 44}