<commit_before><commit_msg>Rake task for populating project_id in team<commit_after>namespace :team_project do
  desc 'Change project_name to project_id'
  task add_project_ids: :environment do
    Team.all.each do |team|
      next team unless team.project_name.present?
      begin
        team.project = Project.find_by(name: team.project_name)
        team.save!
      rescue
        Rails.logger "Adding project_id failed: #{e}, #{team}"
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.08067940552016985, 'fraction_numerical': 0.0, 'mean_word_length': 3.1403508771929824, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3367184', 'n_tokens_mistral': 145, 'n_tokens_neox': 144, 'n_words': 41}