<commit_before># frozen_string_literal: true

Gem::Specification.new do |gem|
  gem.name = 'sliding_window'
  gem.version = '1.1.2'
  gem.homepage = 'https://github.com/username/sliding_window'
  gem.license = 'MIT'

  gem.author = '<NAME>'
  gem.email = '<EMAIL>'
  gem.summary = 'Ruby implementation of a sliding window algorithm.'
  gem.description = <<~DESC
    Ruby implementation of a sliding window algorithm, which is useful for NLP
    applications where scanning text in fixed-sized windows which shrink
    smaller when no matches are made is useful.
  DESC

  gem.files = Dir['**/*'].select { |d| d =~ %r{^(README.md|bin/|ext/|lib/)} }

  gem.required_ruby_version = '>= 2.7.2'

  gem.add_development_dependency 'coveralls', '~> 0.8.23'
  gem.add_development_dependency 'filewatcher', '~> 1.1', '>= 1.1.1'
  gem.add_development_dependency 'pry-byebug', '~> 3.9', '>= 3.9.0'
  gem.add_development_dependency 'rspec', '~> 3.10', '>= 3.10.0'
  gem.add_development_dependency 'rubocop', '~> 1.4', '>= 1.4.2'
  gem.add_development_dependency 'rubocop-rspec', '~> 2.0', '>= 2.0.0'
end
<commit_msg>Get gem version from Git.<commit_after># frozen_string_literal: true

Gem::Specification.new do |gem|
  gem.name = 'sliding_window'
  # If current commit is tagged, that's our version.
  # Otherwise fallback to full length commit as version.
  gem.version = `sh -c 'git describe --tags --exact-match 2>/dev/null || git rev-parse HEAD'`.chomp
  gem.homepage = 'https://github.com/username/sliding_window'
  gem.license = 'MIT'

  gem.author = '<NAME>'
  gem.email = '<EMAIL>'
  gem.summary = 'Ruby implementation of a sliding window algorithm.'
  gem.description = <<~DESC
    Ruby implementation of a sliding window algorithm, which is useful for NLP
    applications where scanning text in fixed-sized windows which shrink
    smaller when no matches are made is useful.
  DESC

  gem.files = Dir['**/*'].select { |d| d =~ %r{^(README.md|bin/|ext/|lib/)} }

  gem.required_ruby_version = '>= 2.7.2'

  gem.add_development_dependency 'coveralls', '~> 0.8.23'
  gem.add_development_dependency 'filewatcher', '~> 1.1', '>= 1.1.1'
  gem.add_development_dependency 'pry-byebug', '~> 3.9', '>= 3.9.0'
  gem.add_development_dependency 'rspec', '~> 3.10', '>= 3.10.0'
  gem.add_development_dependency 'rubocop', '~> 1.4', '>= 1.4.2'
  gem.add_development_dependency 'rubocop-rspec', '~> 2.0', '>= 2.0.0'
end

{'fraction_non_alphanumeric': 0.16555740432612312, 'fraction_numerical': 0.029950083194675542, 'mean_word_length': 3.948559670781893, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 32, 'https://': 2, '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': '4496545', 'n_tokens_mistral': 934, 'n_tokens_neox': 858, 'n_words': 207}