<commit_before>const EventEmitter = require('events')
const table = require('markdown-table')

// eslint-disable-next-line import/no-unresolved
const ParserEnum = require('@vuedoc/parser/lib/Enum')
const { StringUtils } = require('@vuedoc/parser/lib/StringUtils')
const { Value } = require('@vuedoc/parser/lib/entity/Value')

// eslint-disable-next-line import/no-unresolved
const { Parser } = require('@vuedoc/parser/lib/parser/Parser')

const tag = (level) => {
  if (level > 6) {
    level = 6
  }

  return '#'.repeat(level)
}

const DEFAULT_LEVEL = 1
const DEFAULT_TABLE = true
const DEFAULT_TITLES = {
  props: 'props',
  data: 'data',
  computed: 'computed properties',
  methods: 'methods',
  events: 'events',
  slots: 'slots'
}

const DEFAULT_INDENT_LEVEL = 1
const DEFAULT_INDENT_SLUG = '  '

/* eslint-disable-next-line arrow-body-style */
const indent = (level = DEFAULT_INDENT_LEVEL, slug = DEFAULT_INDENT_SLUG) => {
  return slug.repeat(level)
}

const bold = (text) => `**${text}**`
const italic = (text) => `*${text}*`
const backtick = (text) => '`' + `${text}`.replace(/`/g, '\\`') + '`'
const code = (text, lang) => '```' + lang + '\n' + text + '\n```'
const item = (text) => `- ${text}`

// eslint-disable-next-line prefer-template
const h = (text, level) => tag(level) + ' ' + text
const parenthesis = (text) => `(${text})`

function indentText (
  text,
  level = DEFAULT_INDENT_LEVEL,
  slug = DEFAULT_INDENT_SLUG
) {
  return text.split(/\n/g)
    .map((line) => indent(level, slug) + line)
    .join('\n')
}

function parseEntryValue (type, value) {
  if (value === ParserEnum.UNDEFINED) {
    return undefined;
  }

  switch (type) {
    case 'string':
    case 'String':
      if (value === '\'\'') {
        return value
      }

      value = value.replace(/'/g, '\'')

      return `'${value}'`

    default:
      return StringUtils.parse(value)
  }<commit_msg>Remove dead code<commit_after>const EventEmitter = require('events')
const table = require('markdown-table')

// eslint-disable-next-line import/no-unresolved
const ParserEnum = require('@vuedoc/parser/lib/Enum')
const { StringUtils } = require('@vuedoc/parser/lib/StringUtils')
const { Value } = require('@vuedoc/parser/lib/entity/Value')

// eslint-disable-next-line import/no-unresolved
const { Parser } = require('@vuedoc/parser/lib/parser/Parser')

const tag = (level) => {
  if (level > 6) {
    level = 6
  }

  return '#'.repeat(level)
}

const DEFAULT_LEVEL = 1
const DEFAULT_TABLE = true
const DEFAULT_TITLES = {
  props: 'props',
  data: 'data',
  computed: 'computed properties',
  methods: 'methods',
  events: 'events',
  slots: 'slots'
}

const DEFAULT_INDENT_LEVEL = 1
const DEFAULT_INDENT_SLUG = '  '

/* eslint-disable-next-line arrow-body-style */
const indent = (level = DEFAULT_INDENT_LEVEL, slug = DEFAULT_INDENT_SLUG) => {
  return slug.repeat(level)
}

const bold = (text) => `**${text}**`
const italic = (text) => `*${text}*`
const backtick = (text) => '`' + `${text}`.replace(/`/g, '\\`') + '`'
const code = (text, lang) => '```' + lang + '\n' + text + '\n```'
const item = (text) => `- ${text}`

// eslint-disable-next-line prefer-template
const h = (text, level) => tag(level) + ' ' + text

function indentText (
  text,
  level = DEFAULT_INDENT_LEVEL,
  slug = DEFAULT_INDENT_SLUG
) {
  return text.split(/\n/g)
    .map((line) => indent(level, slug) + line)
    .join('\n')
}

function parseEntryValue (type, value) {
  if (value === ParserEnum.UNDEFINED) {
    return undefined;
  }

  switch (type) {
    case 'string':
    case 'String':
      if (value === '\'\'') {
        return value
      }

      value = value.replace(/'/g, '\'')

      return `'${value}'`

    default:
      return StringUtils.parse(value)
  }
{'fraction_non_alphanumeric': 0.18691588785046728, 'fraction_numerical': 0.002136181575433912, 'mean_word_length': 3.507821901323706, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 24, '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': '297454', 'n_tokens_mistral': 1354, 'n_tokens_neox': 1330, 'n_words': 286}