<commit_before>require 'trello'
require 'kramdown'

class TrelloHelper
  # Trello Config
  attr_accessor :consumer_key, :consumer_secret, :oauth_token, :oauth_token_secret, :teams,
                :documentation_id, :organization_id, :roadmap_board, :roadmap_id,
                :public_roadmap_id, :public_roadmap_board, :documentation_board,
                :documentation_next_list, :organization_name,
                :sprint_length_in_weeks, :sprint_start_day, :sprint_end_day, :logo,
                :docs_new_list_name, :roadmap_board_lists, :max_lists_per_board,
                :current_release_labels, :next_release_labels, :default_product,
                :other_products, :sprint_card

  attr_accessor :boards, :trello_login_to_email, :cards_by_list, :labels_by_card, :list_by_card, :members_by_card, :members_by_id, :checklists_by_card, :lists_by_board, :comments_by_card, :board_id_to_team_map

  DEFAULT_RETRIES = 9
  DEFAULT_RETRY_SLEEP = 2
  DEFAULT_RETRY_INC = 1

  FUTURE_LABEL = 'future'
  FUTURE_TAG = "[#{FUTURE_LABEL}]"

  STAGE1_DEP_LABEL = 'stage1-dep'

  SPRINT_REGEX = /^Sprint (\d+)/
  DONE_REGEX = /^Done: ((\d+)\.(\d+)(.(\d+))?(.(\d+))?)/
  SPRINT_REGEXES = Regexp.union([SPRINT_REGEX, DONE_REGEX])

  RELEASE_LABEL_REGEX = /^(proposed|targeted|committed)-((\w*)-)*((\d+)(.(\d+))?(.(\d+))?(.(\d+))*)/
<commit_msg>Add release complete to sprint regexes<commit_after>require 'trello'
require 'kramdown'

class TrelloHelper
  # Trello Config
  attr_accessor :consumer_key, :consumer_secret, :oauth_token, :oauth_token_secret, :teams,
                :documentation_id, :organization_id, :roadmap_board, :roadmap_id,
                :public_roadmap_id, :public_roadmap_board, :documentation_board,
                :documentation_next_list, :organization_name,
                :sprint_length_in_weeks, :sprint_start_day, :sprint_end_day, :logo,
                :docs_new_list_name, :roadmap_board_lists, :max_lists_per_board,
                :current_release_labels, :next_release_labels, :default_product,
                :other_products, :sprint_card

  attr_accessor :boards, :trello_login_to_email, :cards_by_list, :labels_by_card, :list_by_card, :members_by_card, :members_by_id, :checklists_by_card, :lists_by_board, :comments_by_card, :board_id_to_team_map

  DEFAULT_RETRIES = 9
  DEFAULT_RETRY_SLEEP = 2
  DEFAULT_RETRY_INC = 1

  FUTURE_LABEL = 'future'
  FUTURE_TAG = "[#{FUTURE_LABEL}]"

  STAGE1_DEP_LABEL = 'stage1-dep'

  SPRINT_REGEX = /^Sprint (\d+)/
  DONE_REGEX = /^Done: ((\d+)\.(\d+)(.(\d+))?(.(\d+))?)/
  RELEASE_COMPLETE_REGEX = /^Complete ((\d+)\.(\d+)(.(\d+))?(.(\d+))?)/
  SPRINT_REGEXES = Regexp.union([SPRINT_REGEX, DONE_REGEX, RELEASE_COMPLETE_REGEX])

  RELEASE_LABEL_REGEX = /^(proposed|targeted|committed)-((\w*)-)*((\d+)(.(\d+))?(.(\d+))?(.(\d+))*)/

{'fraction_non_alphanumeric': 0.1491634033463866, 'fraction_numerical': 0.00355998576005696, 'mean_word_length': 4.311909262759924, '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': '7618729', 'n_tokens_mistral': 1137, 'n_tokens_neox': 1063, 'n_words': 149}