<commit_before>require "srobo_ldap"

#if Rails.env.development?
  SRoboLDAP.dummy = true
#end

SRoboLDAP.key = "<KEY>"
SRoboLDAP.ldappwd = "<PASSWORD>"
<commit_msg>Added a function to convert a team to a school<commit_after>require "srobo_ldap"

#if Rails.env.development?
  SRoboLDAP.dummy = true
#end

SRoboLDAP.key = "<KEY>"
SRoboLDAP.ldappwd = "<PASSWORD>"


def team_to_school(groups)
    lines = open("teams.csv").read.strip.split("\n")
    
    
    groups.each do |team|
        lines.each do |line|
            puts line
            puts "team#{line.split(",")[0]}"
            puts team
            if "team#{line.split(",")[0]}".strip == team.strip
                puts "bees"
                return line.split(",")[1].strip
            end
        end
    end
    
    return nil

end

{'fraction_non_alphanumeric': 0.13927227101631118, 'fraction_numerical': 0.0037641154328732747, 'mean_word_length': 2.2975206611570247, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4525717', 'n_tokens_mistral': 289, 'n_tokens_neox': 281, 'n_words': 60}