<commit_before>module RotaGeneration
  class OrganisationWriter
    def initialize(organisations, container_path)
      @organisations = organisations
      @container_path = container_path
    end

    def write!
      File.open(File.join(container_path, "firms.lp"), "w+") do |f|
        organisations.each do |o|
          f.write("firm(\"#{o.name}\").\n")
        end<commit_msg>Change OrganisationWriter to write UID rather than name<commit_after>module RotaGeneration
  class OrganisationWriter
    def initialize(organisations, container_path)
      @organisations = organisations
      @container_path = container_path
    end

    def write!
      File.open(File.join(container_path, "firms.lp"), "w+") do |f|
        organisations.each do |o|
          f.write("firm(\"#{o.uid}\").\n")
        end
{'fraction_non_alphanumeric': 0.11648079306071871, 'fraction_numerical': 0.0, 'mean_word_length': 3.122448979591837, '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': '3508768', 'n_tokens_mistral': 247, 'n_tokens_neox': 237, 'n_words': 54}