<commit_before>package es.upv.i3m.grycap.im.auth;

import es.upv.i3m.grycap.ImTestWatcher;
import es.upv.i3m.grycap.im.auth.credential.Credential;
import es.upv.i3m.grycap.im.auth.credential.DummyCredential;
import es.upv.i3m.grycap.im.auth.credential.im.ImCredential.ImUsernamePasswordCredential;
import es.upv.i3m.grycap.im.auth.credential.occi.OcciCredential;
import es.upv.i3m.grycap.im.auth.credential.opennebula.OpenNebulaTokenCredential;
import es.upv.i3m.grycap.im.auth.credential.opennebula.OpenNebulaUserPwdCredential;
import es.upv.i3m.grycap.im.auth.credential.openstack.OpenstackAuthVersion;
import es.upv.i3m.grycap.im.auth.credential.openstack.OpenstackCredential;
import es.upv.i3m.grycap.im.auth.credential.vmrc.VmrcCredential;
import es.upv.i3m.grycap.im.exceptions.ImClientException;

import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import java.util.ArrayList;

public class AuthorizationHeaderTest extends ImTestWatcher {

  private static final String DUMMY_CREDS = "id = dummy ; type = Dummy";
  private static final String IM_CREDS =
      "type = InfrastructureManager ; username = imuser01 ; password = <PASSWORD>";
  private static final String VMRC_CREDS =
      "type = VMRC ; username = demo ; password = <PASSWORD> ; host = host";
  private static final String OST_CREDS =
      "id = ost ; type = OpenStack ; username = usr ; password = <PASSWORD> ; host = host ; service_region = region";
  private static final String OCCI_CREDS =
      "id = occi ; type = OCCI ; host = host ; proxy = proxy";
  private static final String ONE_UP_CREDS =
      "id = one ; type = OpenNebula ; username = usr ; password = <PASSWORD> ; host = host";
  private static final String ONE_TK_CREDS =
      "  id = one ; type = OpenNebula ; token = token ; host = host";

  private static AuthorizationHeader ah;

  @BeforeClass
  public static void createAuthorizationHeader() {
    ah = new AuthorizationHeader();
  }

  @Before
  public void clearAuthorizationHeader() {
    ah.setCredentialsAuthInfos(new ArrayList<Credential<?>>());
  }<commit_msg>Quick fix in test<commit_after>package es.upv.i3m.grycap.im.auth;

import es.upv.i3m.grycap.ImTestWatcher;
import es.upv.i3m.grycap.im.auth.credential.Credential;
import es.upv.i3m.grycap.im.auth.credential.DummyCredential;
import es.upv.i3m.grycap.im.auth.credential.im.ImCredential.ImUsernamePasswordCredential;
import es.upv.i3m.grycap.im.auth.credential.occi.OcciCredential;
import es.upv.i3m.grycap.im.auth.credential.opennebula.OpenNebulaTokenCredential;
import es.upv.i3m.grycap.im.auth.credential.opennebula.OpenNebulaUserPwdCredential;
import es.upv.i3m.grycap.im.auth.credential.openstack.OpenstackAuthVersion;
import es.upv.i3m.grycap.im.auth.credential.openstack.OpenstackCredential;
import es.upv.i3m.grycap.im.auth.credential.vmrc.VmrcCredential;
import es.upv.i3m.grycap.im.exceptions.ImClientException;

import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import java.util.ArrayList;

public class AuthorizationHeaderTest extends ImTestWatcher {

  private static final String DUMMY_CREDS = "id = dummy ; type = Dummy";
  private static final String IM_CREDS =
      "type = InfrastructureManager ; username = imuser01 ; password = <PASSWORD>";
  private static final String VMRC_CREDS =
      "type = VMRC ; username = demo ; password = <PASSWORD> ; host = host";
  private static final String OST_CREDS =
      "id = ost ; type = OpenStack ; username = usr ; password = <PASSWORD> ; host = host ; service_region = region";
  private static final String OCCI_CREDS =
      "id = occi ; type = OCCI ; host = host ; proxy = proxy";
  private static final String ONE_UP_CREDS =
      "id = one ; type = OpenNebula ; username = usr ; password = <PASSWORD> ; host = host";
  private static final String ONE_TK_CREDS =
      "id = one ; type = OpenNebula ; token = token ; host = host";

  private static AuthorizationHeader ah;

  @BeforeClass
  public static void createAuthorizationHeader() {
    ah = new AuthorizationHeader();
  }

  @Before
  public void clearAuthorizationHeader() {
    ah.setCredentialsAuthInfos(new ArrayList<Credential<?>>());
  }
{'fraction_non_alphanumeric': 0.10759792354884379, 'fraction_numerical': 0.0066068900424728644, 'mean_word_length': 4.448586118251928, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '4442249', 'n_tokens_mistral': 1469, 'n_tokens_neox': 1473, 'n_words': 299}