<commit_before>#!/usr/bin/env bash

install_perl_packages() {
  local package

  while read -r package || [ -n "$package" ]; do
    cpanm -i --force "$package"
  done <"$PERL_PACKAGES_FILE"
}

# vim:foldenable:foldmethod=indent:foldnestmax=1<commit_msg>Added perl func to install plsense<commit_after>#!/usr/bin/env bash

# Install plsense intellisense engine for Perl.
# As of now it is not on CPAN.
install_plsense() {
  local version="${1:-0.3.4}"
  # URL to the release page for plsense.
  local base_url="https://github.com/aki2o/plsense/releases/download"
  # Full download URL.
  local full_url="${base_url}/v${version}/PlSense-${version}.tar.gz"

  cpanm -i --force "$full_url"
}

install_perl_packages() {
  local package

  while read -r package || [ -n "$package" ]; do
    cpanm -i --force "$package"
  done <"$PERL_PACKAGES_FILE"

  install_plsense
}

# vim:foldenable:foldmethod=indent:foldnestmax=1
{'fraction_non_alphanumeric': 0.14457831325301204, 'fraction_numerical': 0.007667031763417305, 'mean_word_length': 4.163841807909605, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6791477', 'n_tokens_mistral': 352, 'n_tokens_neox': 328, 'n_words': 78}