<commit_before>class Slugger
  
  STOP_WORDS = %w{a an and are as at be but by for if in into is it no of on or such that the their then there these they this to was will with}
  RESERVED_WORDS =  %w{update edit feed rss create new tag login logout atom about archive}
  
  def initialize(text_to_slug, validate=true)
    @slug = text_to_slug
    @validate = validate
  end
  
  def to_slug(&block)
    
    #this will allow us to safely re-run to_slug if necessary
    slug = @slug.downcase.strip
    
    if @validate
      slug = clean(slug)<commit_msg>updated slugger to remove 's as well<commit_after>class Slugger
  
  STOP_WORDS = %w{a an and are as at be but by for if in into is it no of on or such that the their then there these they this to s was will with}
  RESERVED_WORDS =  %w{update edit feed rss create new tag login logout atom about archive}
  
  def initialize(text_to_slug, validate=true)
    @slug = text_to_slug
    @validate = validate
  end
  
  def to_slug(&block)
    
    #this will allow us to safely re-run to_slug if necessary
    slug = @slug.downcase.strip
    
    if @validate
      slug = clean(slug)
{'fraction_non_alphanumeric': 0.05716798592788039, 'fraction_numerical': 0.0, 'mean_word_length': 3.007042253521127, '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': '7098994', 'n_tokens_mistral': 371, 'n_tokens_neox': 380, 'n_words': 154}