<commit_before>Gem::Specification.new do |s|
  s.name        = 'quartz_torrent'
  s.version     = '0.0.1'
  s.date        = '2013-08-11'
  s.summary     = "A bittorrent library"
  s.description = "A pure ruby bittorrent library"
  s.authors     = ["<NAME>"]
  s.files       = Dir['lib/*.rb'] + Dir['lib/quartz_torrent/*.rb']
  s.homepage    =
    'https://github.com/jeffwilliams/quartz-torrent'

  s.executables = [
    "quartztorrent_download",
    "quartztorrent_download_curses",
    "quartztorrent_magnet_from_torrent",
    "quartztorrent_show_info",
  ]

  s.add_runtime_dependency "bencode", '~> 0.8'
  s.add_runtime_dependency "pqueue", '~> 2.0'
  s.add_runtime_dependency "base32", '~> 0.2'
  s.add_runtime_dependency "log4r", '~> 1.1'

  s.add_development_dependency "minitest"
  s.add_development_dependency "yard"
  s.add_development_dependency "redcarpet"
end
<commit_msg>Added .yardops to gem<commit_after>Gem::Specification.new do |s|
  git_tag = `git describe --tags --long --match 'v*'`.chomp!
  version = nil
  puts "Most recent git version tag: '#{git_tag}'"

  if git_tag =~ /^v(\d+)\.(\d+)\.(\d+)-(\d+)/
    commits_since = $4.to_i
    maj, min, bug = $1.to_i, $2.to_i, $3.to_i
    if commits_since > 0
      version = "#{maj}.#{min}.#{bug+1}.pre"
    else
      version = "#{maj}.#{min}.#{bug}"
    end
  else
    puts "Warning: Couldn't get the latest git tag using git describe. Defaulting to 0.0.1"
    version = "0.0.1"
  end

  s.name        = 'quartz_torrent'
  s.version     = version
  s.date        = '2013-08-11'
  s.summary     = "A bittorrent library"
  s.description = "A pure ruby bittorrent library"
  s.authors     = ["<NAME>"]
  s.files       = Dir['lib/*.rb'] + Dir['lib/quartz_torrent/*.rb'] + ['README.md', '.yardopts']
  s.homepage    =
    'https://github.com/jeffwilliams/quartz-torrent'

  s.executables = [
    "quartztorrent_download",
    "quartztorrent_download_curses",
    "quartztorrent_magnet_from_torrent",
    "quartztorrent_show_info",
  ]

  s.add_runtime_dependency "bencode", '~> 0.8'
  s.add_runtime_dependency "pqueue", '~> 2.0'
  s.add_runtime_dependency "base32", '~> 0.2'
  s.add_runtime_dependency "log4r", '~> 1.1'

  s.add_development_dependency "minitest"
  s.add_development_dependency "yard"
  s.add_development_dependency "redcarpet"
end

{'fraction_non_alphanumeric': 0.16147186147186146, 'fraction_numerical': 0.022943722943722943, 'mean_word_length': 3.240366972477064, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3912161', 'n_tokens_mistral': 984, 'n_tokens_neox': 920, 'n_words': 159}