<commit_before>using System;
using System.IO;
using MailKit.Net.Smtp;
using MimeKit;

using Android.App;
using Android.Content;
using Android.Net;

namespace fleetTRACK.Model
{
    class LogProcessor : Activity
    {
        #region Public methods
        /// <summary>
        /// Constructor for the LogProcessor class
        /// </summary>
        /// <param name="context"></param>
        public LogProcessor(Context context)
        {
            this._context = context;
        }

        /// <summary>
        /// Processes all fleetTRACK log files that have not been archived.
        /// </summary>
        public void ProcessLogFiles()
        {
            //if (!IsNetworkConnectionValid())
            //    throw new ApplicationException("No valid network connection detected.");


            string logPath = String.Format(
                "{0}{1}",
                Android.OS.Environment.ExternalStorageDirectory,
                Java.IO.File.Separator
                );

            foreach (string filePath in Directory.GetFiles(logPath, "*_simple.csv"))
            {
                string rawJourneyName = filePath.Split(new string[] { "_simple.csv" }, StringSplitOptions.RemoveEmptyEntries)[0];
                string simpleJourneyDetailsFilePath = filePath;
                string extendedJourneyDetailsFilePath = String.Format(
                    "{0}_extended.csv",<commit_msg>Changed logpath to the correct file path in ProcessLogFiles()<commit_after>using System;
using System.IO;
using MailKit.Net.Smtp;
using MimeKit;

using Android.App;
using Android.Content;
using Android.Net;

namespace fleetTRACK.Model
{
    class LogProcessor : Activity
    {
        #region Public methods
        /// <summary>
        /// Constructor for the LogProcessor class
        /// </summary>
        /// <param name="context"></param>
        public LogProcessor(Context context)
        {
            this._context = context;
        }

        /// <summary>
        /// Processes all fleetTRACK log files that have not been archived.
        /// </summary>
        public void ProcessLogFiles()
        {
            //if (!IsNetworkConnectionValid())
            //    throw new ApplicationException("No valid network connection detected.");


            string logPath = String.Format(
                "{0}{1}{2}{1}",
                Android.OS.Environment.ExternalStorageDirectory,
                Java.IO.File.Separator,
                _context.Resources.GetString(Resource.String.logDirectory));

            foreach (string filePath in Directory.GetFiles(logPath, "*_simple.csv"))
            {
                string rawJourneyName = filePath.Split(new string[] { "_simple.csv" }, StringSplitOptions.RemoveEmptyEntries)[0];
                string simpleJourneyDetailsFilePath = filePath;
                string extendedJourneyDetailsFilePath = String.Format(
                    "{0}_extended.csv",
{'fraction_non_alphanumeric': 0.10208262205530898, 'fraction_numerical': 0.003414134516899966, 'mean_word_length': 1.9867482161060144, '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': '6517833', 'n_tokens_mistral': 733, 'n_tokens_neox': 711, 'n_words': 178}