<commit_before>﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.IO.IsolatedStorage;
using System.IO;
using Microsoft.Phone.Tasks;
using System.Diagnostics;
using Microsoft.Phone.Info;

namespace Ocell
{
    /// <summary>
    /// This class was made by <NAME> https://blogs.msdn.com/b/andypennell/archive/2010/11/01/error-reporting-on-windows-phone-7.aspx?Redirected=true
    /// </summary>

    public class LittleWatson
    {
        const string filename = "LittleWatson.txt";

        public static void ReportException(Exception ex, string extra)
        {
            try
            {
                using (var store = IsolatedStorageFile.GetUserStoreForApplication())
                {
                    SafeDeleteFile(store);
                    
                    using (TextWriter output = new StreamWriter(store.CreateFile(filename)))
                    {
                        output.WriteLine("Phone: " + DeviceStatus.DeviceName + " by " + DeviceStatus.DeviceManufacturer);
                        output.WriteLine("Memory usage: " + (DeviceStatus.ApplicationCurrentMemoryUsage / (1024 * 1024)).ToString());<commit_msg>Namespace change<commit_after>﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.IO.IsolatedStorage;
using System.IO;
using Microsoft.Phone.Tasks;
using System.Diagnostics;
using Microsoft.Phone.Info;

namespace Ocell.Library
{
    /// <summary>
    /// This class was made by <NAME> https://blogs.msdn.com/b/andypennell/archive/2010/11/01/error-reporting-on-windows-phone-7.aspx?Redirected=true
    /// </summary>

    public class LittleWatson
    {
        const string filename = "LittleWatson.txt";

        public static void ReportException(Exception ex, string extra)
        {
            try
            {
                using (var store = IsolatedStorageFile.GetUserStoreForApplication())
                {
                    SafeDeleteFile(store);
                    
                    using (TextWriter output = new StreamWriter(store.CreateFile(filename)))
                    {
                        output.WriteLine("Phone: " + DeviceStatus.DeviceName + " by " + DeviceStatus.DeviceManufacturer);
                        output.WriteLine("Memory usage: " + (DeviceStatus.ApplicationCurrentMemoryUsage / (1024 * 1024)).ToString());
{'fraction_non_alphanumeric': 0.10424990918997458, 'fraction_numerical': 0.012350163458045769, 'mean_word_length': 2.5172413793103448, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '2809108', 'n_tokens_mistral': 762, 'n_tokens_neox': 701, 'n_words': 150}