<commit_before>import settings
from soa.service import SOAService

class GestioIdentitat(SOAService):
  
  url="https://bus-soa.upc.edu/GestioIdentitat/Personesv6?wsdl"

  mails_addicionals=settings.get("mails_addicionals")

  def obtenir_uid(self,mail):  
    mail_canonic=mail.replace(".es",".edu")
    mail_canonic=mail_canonic.replace("@lsi","@cs")
    uid=None
    try:
      uid=self.mails_addicionals[mail_canonic]      
    except:
      try:
        resultat=self.client.service.llistaPersones(email=mail_canonic)
        uid=resultat.llistaPersones.persona[0].cn  
      except:
        uid=None
    finally:
      return uid<commit_msg>No passo tot .es a .edu, nomes els de upc<commit_after>import settings
from soa.service import SOAService

class GestioIdentitat(SOAService):
  
  url="https://bus-soa.upc.edu/GestioIdentitat/Personesv6?wsdl"

  mails_addicionals=settings.get("mails_addicionals")

  def obtenir_uid(self,mail):  
    mail_canonic=mail.replace(".upc.es",".upc.edu")
    mail_canonic=mail_canonic.replace("@lsi","@cs")
    uid=None
    try:
      uid=self.mails_addicionals[mail_canonic]      
    except:
      try:
        resultat=self.client.service.llistaPersones(email=mail_canonic)
        uid=resultat.llistaPersones.persona[0].cn  
      except:
        uid=None
    finally:
      return uid
{'fraction_non_alphanumeric': 0.11654135338345864, 'fraction_numerical': 0.0030075187969924814, 'mean_word_length': 3.558219178082192, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5348606', 'n_tokens_mistral': 486, 'n_tokens_neox': 476, 'n_words': 60}