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

require 'resync/version'

Gem::Specification.new do |spec|
  spec.name          = 'resync'
  spec.version       = ResyncClient::VERSION
  spec.authors       = ['<NAME>']
  spec.email         = ['<EMAIL>']
  spec.summary       = 'Utility library for ResourceSync'
  spec.description   = 'A Ruby gem for working with the ResourceSync web synchronization framework'
  spec.homepage      = '' # TODO: add homepage
  spec.license       = 'MIT'

  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)/})
  spec.require_paths = ['lib']

  spec.add_dependency 'xml-mapping', '~> 0.10'
  spec.add_dependency 'ruby-enum', '~> 0.4'

  spec.add_development_dependency 'rake', '~> 10.4'
  spec.add_development_dependency 'rspec', '~> 3.2'
  spec.add_development_dependency 'simplecov', '~> 0.9.2'
  spec.add_development_dependency 'simplecov-console', '~> 0.2.0'
  spec.add_development_dependency 'rubocop', '~> 0.29.1'
end
<commit_msg>Generate gem homepage link from git origin URI<commit_after># coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'resync/version'
require 'uri'

Gem::Specification.new do |spec|
  spec.name = 'resync'
  spec.version = ResyncClient::VERSION
  spec.authors = ['<NAME>']
  spec.email = ['<EMAIL>']
  spec.summary = 'Utility library for ResourceSync'
  spec.description = 'A Ruby gem for working with the ResourceSync web synchronization framework'
  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)/})
  spec.require_paths = ['lib']

  spec.add_dependency 'xml-mapping', '~> 0.10'
  spec.add_dependency 'ruby-enum', '~> 0.4'

  spec.add_development_dependency 'rake', '~> 10.4'
  spec.add_development_dependency 'rspec', '~> 3.2'
  spec.add_development_dependency 'simplecov', '~> 0.9.2'
  spec.add_development_dependency 'simplecov-console', '~> 0.2.0'
  spec.add_development_dependency 'rubocop', '~> 0.29.1'
end

{'fraction_non_alphanumeric': 0.16713426853707414, 'fraction_numerical': 0.017635270541082163, 'mean_word_length': 4.114754098360656, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7170191', 'n_tokens_mistral': 947, 'n_tokens_neox': 889, 'n_words': 175}