<commit_before>﻿using NuGetValidators.Utility;
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Resources;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace NuGetValidators.Localization
{
    public class LocalizationValidator
    {
        private static ConcurrentQueue<string> _nonLocalizedStringErrors = new ConcurrentQueue<string>();
        private static ConcurrentQueue<string> _missingLocalizedErrors = new ConcurrentQueue<string>();
        private static ConcurrentQueue<string> _misMatcherrors = new ConcurrentQueue<string>();
        private static ConcurrentQueue<string> _lockedStrings = new ConcurrentQueue<string>();
        private static Dictionary<string, Dictionary<string, List<string>>> _nonLocalizedStringErrorsDeduped = new Dictionary<string, Dictionary<string, List<string>>>();
        private static Dictionary<string, List<string>> _localizedDlls = new Dictionary<string, List<string>>();<commit_msg>Testing for a different format<commit_after>﻿using NuGetValidators.Utility;
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Resources;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace NuGetValidators.Localization
{
    public class LocalizationValidator
    {
        private static ConcurrentQueue<string> _nonLocalizedStringErrors = new ConcurrentQueue<string>();
        private static ConcurrentQueue<string> _missingLocalizedErrors = new ConcurrentQueue<string>();
        private static ConcurrentQueue<string> _misMatcherrors = new ConcurrentQueue<string>();
        private static ConcurrentQueue<string> _lockedStrings = new ConcurrentQueue<string>();

        // dll name -> resource name -> list of locales
        private static Dictionary<string, Dictionary<string, List<string>>> _nonLocalizedStringErrorsDeduped = new Dictionary<string, Dictionary<string, List<string>>>();

        // dll name -> resource name -> list of locales
        private static Dictionary<string, Dictionary<string, List<string>>> _nonLocalizedExceptions = new Dictionary<string, Dictionary<string, List<string>>>();

        // dll name -> list of locales
        private static Dictionary<string, List<string>> _localizedDlls = new Dictionary<string, List<string>>();
{'fraction_non_alphanumeric': 0.09284332688588008, 'fraction_numerical': 0.0, 'mean_word_length': 5.513853904282116, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 50, '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': '5623910', 'n_tokens_mistral': 644, 'n_tokens_neox': 646, 'n_words': 178}