<commit_before>module PackageManager
  class Haxelib < Base
    HAS_VERSIONS = true
    HAS_DEPENDENCIES = true
    BIBLIOTHECARY_PLANNED = true
    URL = 'https://lib.haxe.org'
    COLOR = '#df7900'

    def self.package_link(project, version = nil)
      "https://lib.haxe.org/p/#{project.name}/#{version}"
    end

    def self.download_url(name, version = nil)
      "https://lib.haxe.org/p/#{name}/#{version}/download/"
    end

    def self.install_instructions(project, version = nil)
      "haxelib install #{project.name} #{version}"
    end

    def self.project_names
      get_html("https://lib.haxe.org/all/").css('.project-list tbody th').map{|th| th.css('a').first.try(:text) }
    end

    def self.recent_names<commit_msg>Haxelib is already supported by Bibliothecary<commit_after>module PackageManager
  class Haxelib < Base
    HAS_VERSIONS = true
    HAS_DEPENDENCIES = true
    BIBLIOTHECARY_SUPPORT = true
    URL = 'https://lib.haxe.org'
    COLOR = '#df7900'

    def self.package_link(project, version = nil)
      "https://lib.haxe.org/p/#{project.name}/#{version}"
    end

    def self.download_url(name, version = nil)
      "https://lib.haxe.org/p/#{name}/#{version}/download/"
    end

    def self.install_instructions(project, version = nil)
      "haxelib install #{project.name} #{version}"
    end

    def self.project_names
      get_html("https://lib.haxe.org/all/").css('.project-list tbody th').map{|th| th.css('a').first.try(:text) }
    end

    def self.recent_names
{'fraction_non_alphanumeric': 0.14966887417218544, 'fraction_numerical': 0.005298013245033113, 'mean_word_length': 3.1059782608695654, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5537199', 'n_tokens_mistral': 553, 'n_tokens_neox': 527, 'n_words': 94}