<commit_before># We're extending ActsAsTaggableOn's Tag model to include support for machine tags and such.
module Calagator

module TagModelExtensions
  def self.included(base)
    base.class_eval do
      scope :machine_tags, -> { where("name LIKE '%:%=%'") }
    end
  end

  #---[ Machine tags ]----------------------------------------------------

  # Structure of machine tag namespaces and predicates to their URLs. See
  # #machine_tag for details.
  MACHINE_TAG_URLS = {
    'epdx' => {
      'company' => 'http://epdx.org/companies/%s',
      'group' => 'http://epdx.org/groups/%s',
      'person' => 'http://epdx.org/people/%s',
      'project' => 'http://epdx.org/projects/%s',
    },
    'upcoming' => {
      'event' => "http://upcoming.yahoo.com/event/%s",
      'venue' => "http://upcoming.yahoo.com/venue/%s"<commit_msg>this appears to be unused.<commit_after># We're extending ActsAsTaggableOn's Tag model to include support for machine tags and such.
module Calagator

module TagModelExtensions
  # Structure of machine tag namespaces and predicates to their URLs. See
  # #machine_tag for details.
  MACHINE_TAG_URLS = {
    'epdx' => {
      'company' => 'http://epdx.org/companies/%s',
      'group' => 'http://epdx.org/groups/%s',
      'person' => 'http://epdx.org/people/%s',
      'project' => 'http://epdx.org/projects/%s',
    },
    'upcoming' => {
      'event' => "http://upcoming.yahoo.com/event/%s",
      'venue' => "http://upcoming.yahoo.com/venue/%s"
{'fraction_non_alphanumeric': 0.2032301480484522, 'fraction_numerical': 0.0, 'mean_word_length': 2.6625615763546797, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 20, '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': '7541799', 'n_tokens_mistral': 501, 'n_tokens_neox': 482, 'n_words': 109}