<commit_before># coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'xml/mapping_extensions/version'

Gem::Specification.new do |spec|
  spec.name = 'xml-mapping_extensions'
  spec.version = XML::MappingExtensions::VERSION
  spec.authors = ['<NAME>']
  spec.email = ['<EMAIL>']
  spec.summary = 'Some extensions for for XML::Mapping'
  spec.description = 'Mapping nodes and other utility classes extending XML::Mapping'
  spec.license = 'MIT'

  origin_uri = URI(`git config --get remote.origin.url`.chomp)
  spec.homepage = URI::HTTP.build(host: origin_uri.host, path: origin_uri.path.chomp('.git')).to_s

  spec.files = `git ls-files -z`.split("\x0")
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})<commit_msg>Require 'uri' explicitly now that we're no longer pulling in the whole xml/mapping_extensions package, just the version<commit_after># coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'uri'
require 'xml/mapping_extensions/version'

Gem::Specification.new do |spec|
  spec.name = 'xml-mapping_extensions'
  spec.version = XML::MappingExtensions::VERSION
  spec.authors = ['<NAME>']
  spec.email = ['<EMAIL>']
  spec.summary = 'Some extensions for for XML::Mapping'
  spec.description = 'Mapping nodes and other utility classes extending XML::Mapping'
  spec.license = 'MIT'

  origin_uri = URI(`git config --get remote.origin.url`.chomp)
  spec.homepage = URI::HTTP.build(host: origin_uri.host, path: origin_uri.path.chomp('.git')).to_s

  spec.files = `git ls-files -z`.split("\x0")
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
{'fraction_non_alphanumeric': 0.1657725321888412, 'fraction_numerical': 0.002145922746781116, 'mean_word_length': 5.016129032258065, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '101152', 'n_tokens_mistral': 639, 'n_tokens_neox': 633, 'n_words': 135}