<commit_before>class FSHelper

  systemFilesRegExp =
    ///
    \s\.cagefs|\s\.tmp
    ///

  parseFile = (parentPath, outputLine) ->

    [permissions, size, user, group, mode, date, time, timezone, rest...] = outputLine.replace(/\t+/gi, ' ').replace(/\s+/ig, ' ').split ' '

    if type is 'symLink'
      [path, linkPath] = (rest.join ' ').split /\ ->\ \//
    else
      path = rest.join ' '

    createdAt = getDateInstance date, time, timezone
    type      = FSHelper.fileTypes[permissions[0]]
    mode      = __utils.symbolsPermissionToOctal(permissions)
    path      = parentPath + '/' + path
    path      = if type is 'folder' then path.substr(0, path.length - 1) else path
    name      = getFileName path
    return { size, user, group, createdAt, mode, type, parentPath, path, name }

  getDateInstance = (date, time, timezone) ->

    unixTime  = Date.parse "#{date}T#{time}"
    date      = new Date unixTime<commit_msg> Use NMountItemView for items under RemoteDrives<commit_after>class FSHelper

  systemFilesRegExp =
    ///
    \s\.cagefs|\s\.tmp
    ///

  parseFile = (parentPath, outputLine) ->

    [permissions, size, user, group, mode, date, time, timezone, rest...] = outputLine.replace(/\t+/gi, ' ').replace(/\s+/ig, ' ').split ' '

    if type is 'symLink'
      [path, linkPath] = (rest.join ' ').split /\ ->\ \//
    else
      path = rest.join ' '

    createdAt = getDateInstance date, time, timezone
    type      = FSHelper.fileTypes[permissions[0]]
    mode      = __utils.symbolsPermissionToOctal(permissions)
    path      = parentPath + '/' + path
    path      = if type is 'folder' then path.substr(0, path.length - 1) else path
    name      = getFileName path

    if type is 'folder'
      if /^\/Users\/(.*)\/RemoteDrives(|\/([^\/]+))$/gm.test path
        type = 'mount'

    return { size, user, group, createdAt, mode, type, parentPath, path, name }

  getDateInstance = (date, time, timezone) ->

    unixTime  = Date.parse "#{date}T#{time}"
    date      = new Date unixTime
{'fraction_non_alphanumeric': 0.1554787759131293, 'fraction_numerical': 0.0029615004935834156, 'mean_word_length': 2.441426146010187, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '7375056', 'n_tokens_mistral': 698, 'n_tokens_neox': 670, 'n_words': 168}