<commit_before>require: "package/installer"
require: "package/uninstaller"

class Fancy Package {
  """
  The Fancy Package System.

  This class is used for installing and uninstalling fancy packages on
  the system.

  Example:
      $ fancy install bakkdoor/mongo.fy

  Will install the mongo.fy package from http://github.com/bakkdoor/mongo.fy
  in the latest released version or get the current HEAD (master
  branch) revision.

  You can then load the package in your source file via
      require: ''mongo.fy''
  """

  ENV_PACKAGE_DIR_VAR = "FANCY_PACKAGE_DIR"

  def self install: package_name {
    Installer new: package_name . run
  }

  def self uninstall: package_name {
    Uninstaller new: package_name . run
  }

  def self package_root_dir {
    ENV[ENV_PACKAGE_DIR_VAR] if_do: |path| {
      return path
    } else: {
      return Fancy Package Installer DEFAULT_PACKAGES_PATH
    }
  }

  def self add_to_loadpath {
    root = Fancy Package package_root_dir<commit_msg>Updated lib/package.fy docstring.<commit_after>require: "package/installer"
require: "package/uninstaller"

class Fancy Package {
  """
  The Fancy Package System.

  This class is used for installing and uninstalling fancy packages on
  the system.

  Example:
      $ fancy install bakkdoor/mongo.fy

  Will install the mongo.fy package from http://github.com/bakkdoor/mongo.fy
  in the latest released version or get the current HEAD (master
  branch) revision.

  You can then load the package in your source file via
      require: \"mongo.fy\"
  """

  ENV_PACKAGE_DIR_VAR = "FANCY_PACKAGE_DIR"

  def self install: package_name {
    Installer new: package_name . run
  }

  def self uninstall: package_name {
    Uninstaller new: package_name . run
  }

  def self package_root_dir {
    ENV[ENV_PACKAGE_DIR_VAR] if_do: |path| {
      return path
    } else: {
      return Fancy Package Installer DEFAULT_PACKAGES_PATH
    }
  }

  def self add_to_loadpath {
    root = Fancy Package package_root_dir
{'fraction_non_alphanumeric': 0.06956956956956957, 'fraction_numerical': 0.0, 'mean_word_length': 3.2896995708154506, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7269563', 'n_tokens_mistral': 654, 'n_tokens_neox': 621, 'n_words': 201}