<commit_before>module Noosfero
  PROJECT = 'noosfero'
  VERSION = '1.3'
end

root = File.expand_path(File.dirname(__FILE__) + '/../..')
if File.exist?(File.join(root, '.git')) && system('which git >/dev/null')
  git_version = Dir.chdir(root) { `git describe --tags`.to_s.strip.sub('-rc', '~rc') }
  version_sort = IO.popen(['sort', '--version-sort'], 'w+')
  version_sort.puts(Noosfero::VERSION)
  version_sort.puts(git_version)
  version_sort.close_write
  new_version = version_sort.readlines.last.strip
  if new_version != Noosfero::VERSION
    Noosfero::VERSION.clear << git_version
  end
  version_sort.close
end<commit_msg>Noosfero::VERSION: avoid git warning on shallow clones<commit_after>module Noosfero
  PROJECT = 'noosfero'
  VERSION = '1.3'
end

root = File.expand_path(File.dirname(__FILE__) + '/../..')
if File.exist?(File.join(root, '.git')) && system('which git >/dev/null')
  git_version = Dir.chdir(root) { `git describe --tags 2>/dev/null`.to_s.strip.sub('-rc', '~rc') }
  if git_version != ''
    version_sort = IO.popen(['sort', '--version-sort'], 'w+')
    version_sort.puts(Noosfero::VERSION)
    version_sort.puts(git_version)
    version_sort.close_write
    new_version = version_sort.readlines.last.strip
    if new_version != Noosfero::VERSION
      Noosfero::VERSION.clear << git_version
    end
    version_sort.close
  end
end
{'fraction_non_alphanumeric': 0.16789396170839468, 'fraction_numerical': 0.003681885125184094, 'mean_word_length': 4.287937743190661, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 6, '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': '5967370', 'n_tokens_mistral': 501, 'n_tokens_neox': 498, 'n_words': 85}