<commit_before>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Storage;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Shapes;
using StudyBox.Core.Interfaces;
using StudyBox.Core.Models;
using WinRTXamlToolkit.IO.Extensions;
using Path = System.IO.Path;

namespace StudyBox.Core.Services
{
    public class StatisticsDataService : IStatisticsDataService
    {
        public string UserId { get; set; }
        private readonly ResourceDictionary _resources = Application.Current.Resources;
        private IUserDataStorageService _restService;

        public StatisticsDataService(IUserDataStorageService restService)
        {
            UserId = String.Empty;
            _restService = restService;
            InitializeFiles();
        }

        public void InitializeFiles()
        {
            UserId = _restService.GetUserEmail();
            if (UserId == null)
                UserId = String.Empty;
            string path1 = ApplicationData.Current.LocalFolder.Path + "/" + UserId +_resources["TestedDecksFileName"].ToString();
            if (!File.Exists(path1))
                File.Create(path1);
            string path2 = ApplicationData.Current.LocalFolder.Path + "/" + UserId +_resources["StatisticsFileName"].ToString();
            if (!File.Exists(path2))
                File.Create(path2);
            string path3 = ApplicationData.Current.LocalFolder.Path + "/" + UserId +_resources["HistoryFileName"].ToString();
            if (!File.Exists(path3))
                File.Create(path3);
        }
<commit_msg>fixed variable name<commit_after>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Storage;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Shapes;
using StudyBox.Core.Interfaces;
using StudyBox.Core.Models;
using WinRTXamlToolkit.IO.Extensions;
using Path = System.IO.Path;

namespace StudyBox.Core.Services
{
    public class StatisticsDataService : IStatisticsDataService
    {
        public string UserId { get; set; }
        private readonly ResourceDictionary _resources = Application.Current.Resources;
        private IUserDataStorageService _userDataStorageService;

        public StatisticsDataService(IUserDataStorageService userDataStorageService)
        {
            UserId = String.Empty;
            _userDataStorageService = userDataStorageService;
            InitializeFiles();
        }

        public void InitializeFiles()
        {
            UserId = _userDataStorageService.GetUserEmail();
            if (UserId == null)
                UserId = String.Empty;
            string path1 = ApplicationData.Current.LocalFolder.Path + "/" + UserId +_resources["TestedDecksFileName"].ToString();
            if (!File.Exists(path1))
                File.Create(path1);
            string path2 = ApplicationData.Current.LocalFolder.Path + "/" + UserId +_resources["StatisticsFileName"].ToString();
            if (!File.Exists(path2))
                File.Create(path2);
            string path3 = ApplicationData.Current.LocalFolder.Path + "/" + UserId +_resources["HistoryFileName"].ToString();
            if (!File.Exists(path3))
                File.Create(path3);
        }

{'fraction_non_alphanumeric': 0.09877282250823106, 'fraction_numerical': 0.005387608500448967, 'mean_word_length': 2.750841750841751, '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': '4150179', 'n_tokens_mistral': 867, 'n_tokens_neox': 862, 'n_words': 178}