<commit_before>ctags = require 'ctags'
fsUtils = require 'fs-utils'

module.exports =
  getTagsFile: (path) ->
    tagsFile = fsUtils.join(path, "tags")
    return tagsFile if fsUtils.isFile(tagsFile)

    tagsFile = fsUtils.join(path, "TAGS")
    return tagsFile if fsUtils.isFile(tagsFile)

  loadTags: (path) ->
    tagsFile = @getTagsFile(path)
    if tagsFile
      callTaskMethod("tagsLoaded", ctags.getTags(tagsFile))
    else
      callTaskMethod("tagsLoaded", [])<commit_msg>Use path.join() of fsUtils.join()<commit_after>ctags = require 'ctags'
fsUtils = require 'fs-utils'
path = require 'path'

module.exports =
  getTagsFile: (tagsFilePath) ->
    tagsFile = path.join(tagsFilePath, "tags")
    return tagsFile if fsUtils.isFile(tagsFile)

    tagsFile = path.join(tagsFilePath, "TAGS")
    return tagsFile if fsUtils.isFile(tagsFile)

  loadTags: (tagsFilePath) ->
    tagsFile = @getTagsFile(tagsFilePath)
    if tagsFile
      callTaskMethod("tagsLoaded", ctags.getTags(tagsFile))
    else
      callTaskMethod("tagsLoaded", [])
{'fraction_non_alphanumeric': 0.12547892720306514, 'fraction_numerical': 0.0, 'mean_word_length': 4.122549019607843, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6059998', 'n_tokens_mistral': 347, 'n_tokens_neox': 342, 'n_words': 72}