<commit_before>require 'dotenv'
Dotenv.load

require 'octokit'

client = Octokit::Client.new(access_token: ENV['GITHUB_API_KEY'], per_page: 200)

client.repositories('librehealthio').each do |repo|
  client.update_repository "LibreHealthIO/#{repo.name}", has_issues: false, has_wiki: false, has_projects: false, has_downloads: true
  client.update_repository "LibreHealthIO/#{repo.name}", has_downloads: false if repo.name =~ /community-*/
end<commit_msg>add back EHR exception to repo tool<commit_after>require 'dotenv'
Dotenv.load

require 'octokit'

client = Octokit::Client.new(access_token: ENV['GITHUB_API_KEY'], per_page: 200)

client.repositories('librehealthio').each do |repo|
  name = repo.name
  if name =~ /lh-ehr-*/
    client.update_repository "LibreHealthIO/#{repo.name}",
                             has_issues: true,
                             has_wiki: true,
                             has_projects: true,
                             has_downloads: true
  end
  unless name =~ /lh-ehr-*/
    client.update_repository "LibreHealthIO/#{repo.name}",
                             has_issues: false,
                             has_wiki: false,
                             has_projects: false,
                             has_downloads: true
  end
  if name =~ /community-*/
    client.update_repository "LibreHealthIO/#{repo.name}",
                             has_downloads: false
  end
end
{'fraction_non_alphanumeric': 0.1094632768361582, 'fraction_numerical': 0.00423728813559322, 'mean_word_length': 2.2877030162412995, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7118292', 'n_tokens_mistral': 439, 'n_tokens_neox': 428, 'n_words': 88}