<commit_before>package org.osiam.test

import org.osiam.client.connector.OsiamConnector
import org.osiam.client.oauth.AccessToken
import org.osiam.client.oauth.GrantType
import org.osiam.client.oauth.Scope;

import spock.lang.Specification

/**
 * Base class for integration tests.
 *
 * @author: <NAME>, tarent solutions GmbH, 10.09.13
 * @version: 1.0
 */
abstract class AbstractIT extends Specification {

    private static final String CLIENT_ID = "example-client"
    private static final String CLIENT_SECRET = "secret"

    private static final String USER_NAME = "marissa"
    private static final String USER_PASSWORD = "<PASSWORD>"

    protected static final String OSIAM_ENDPOINT = "http://localhost:8080/osiam-server"

    protected OsiamConnector osiamConnector;
    protected AccessToken accessToken;

    def setup() {
        OsiamConnector.Builder connectorBuilder = new OsiamConnector.Builder(OSIAM_ENDPOINT).
                setClientId(CLIENT_ID).
                setClientSecret(CLIENT_SECRET).
                setGrantType(GrantType.PASSWORD).
                setUserName(USER_NAME).<commit_msg>Changed test port of OSIAM endpoint due to Jenkins requirements.<commit_after>package org.osiam.test

import org.osiam.client.connector.OsiamConnector
import org.osiam.client.oauth.AccessToken
import org.osiam.client.oauth.GrantType
import org.osiam.client.oauth.Scope;

import spock.lang.Specification

/**
 * Base class for integration tests.
 *
 * @author: <NAME>, tarent solutions GmbH, 10.09.13
 * @version: 1.0
 */
abstract class AbstractIT extends Specification {

    private static final String CLIENT_ID = "example-client"
    private static final String CLIENT_SECRET = "secret"

    private static final String USER_NAME = "marissa"
    private static final String USER_PASSWORD = "<PASSWORD>"

    protected static final String OSIAM_ENDPOINT = "http://localhost:8180/osiam-server"

    protected OsiamConnector osiamConnector;
    protected AccessToken accessToken;

    def setup() {
        OsiamConnector.Builder connectorBuilder = new OsiamConnector.Builder(OSIAM_ENDPOINT).
                setClientId(CLIENT_ID).
                setClientSecret(CLIENT_SECRET).
                setGrantType(GrantType.PASSWORD).
                setUserName(USER_NAME).
{'fraction_non_alphanumeric': 0.08256880733944955, 'fraction_numerical': 0.010484927916120577, 'mean_word_length': 3.5708582834331337, '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': '4325749', 'n_tokens_mistral': 687, 'n_tokens_neox': 656, 'n_words': 160}