<commit_before>require "overpunch/version"

module Overpunch
  POS_OVERPUNCH_SET = '{ABCDEFGHI'.freeze
  NEG_OVERPUNCH_SET = '}JKLMNOPQR'.freeze

  OVERPUNCH_PATTERN = /\A\s*(\d*(([#{POS_OVERPUNCH_SET}])|([#{NEG_OVERPUNCH_SET}])))\s*\Z/.freeze

  attr_reader :value, :width<commit_msg>Skip leading zeroes when parsing.<commit_after>require "overpunch/version"

module Overpunch
  POS_OVERPUNCH_SET = '{ABCDEFGHI'.freeze
  NEG_OVERPUNCH_SET = '}JKLMNOPQR'.freeze

  OVERPUNCH_PATTERN = /\A\s*0*(\d*(([#{POS_OVERPUNCH_SET}])|([#{NEG_OVERPUNCH_SET}])))\s*\Z/.freeze

  attr_reader :value, :width
{'fraction_non_alphanumeric': 0.17229729729729729, 'fraction_numerical': 0.0016891891891891893, 'mean_word_length': 6.4125, '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': '5475889', 'n_tokens_mistral': 283, 'n_tokens_neox': 259, 'n_words': 29}