<commit_before>module Taskpaper
  class Item

    attr_accessor :description, :level

    def initialize(string)
      @description = string || ""
    end

    def untagged_description
      untagged = description
      tags.each do |tag|
        untagged.gsub!(tag, "")
      end
      untagged.strip
    end

    def tag_regex
      /@[[:alnum:]_-]*\([[:alnum:]\s\-\_\:\'\"]*\)*|@[[:alnum:]]*/
    end

    def project_regex
      /(?<project>[[:alnum:]\s\'\"\_\-\(\)\{\}\[\]\<\>\?\+\!\@\#\$\%\^\&\*\|\\\~\`\,\.\=]+):/
    end
<commit_msg>untagged_description should not be destructive<commit_after>module Taskpaper
  class Item

    attr_accessor :description, :level

    def initialize(string)
      @description = string || ""
    end

    def untagged_description
      untagged = description.dup
      tags.each do |tag|
        untagged.gsub!(tag, "")
      end
      untagged.strip
    end

    def tag_regex
      /@[[:alnum:]_-]*\([[:alnum:]\s\-\_\:\'\"]*\)*|@[[:alnum:]]*/
    end

    def project_regex
      /(?<project>[[:alnum:]\s\'\"\_\-\(\)\{\}\[\]\<\>\?\+\!\@\#\$\%\^\&\*\|\\\~\`\,\.\=]+):/
    end

{'fraction_non_alphanumeric': 0.2529043789097408, 'fraction_numerical': 0.0, 'mean_word_length': 2.076923076923077, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1318602', 'n_tokens_mistral': 426, 'n_tokens_neox': 397, 'n_words': 66}