<commit_before>/*
 * #%L
 * unidle
 * %%
 * Copyright (C) 2013 <NAME>
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * #L%
 */
package org.unidle.social.test;

import org.springframework.social.connect.ConnectionData;
import org.springframework.social.connect.UserProfile;
import org.springframework.social.connect.support.AbstractConnection;

public class ConnectionStub<A> extends AbstractConnection<A> {

    private final ConnectionData connectionData;

    private final UserProfile userProfile;

    public ConnectionStub(final UserProfile userProfile) {
        super(null);

        this.connectionData = null;
        this.userProfile = userProfile;
    }

    public ConnectionStub(final ConnectionData connectionData,
                          final UserProfile userProfile) {
        super(connectionData, null);

        this.connectionData = connectionData;
        this.userProfile = userProfile;
    }

    public ConnectionStub(final ConnectionData connectionData) {
        super(connectionData, null);

        this.connectionData = connectionData;
        this.userProfile = null;
    }

    @Override
    public UserProfile fetchUserProfile() {
        return userProfile;
    }

    @Override
    public A getApi() {
        throw new UnsupportedOperationException();
    }

    @Override
    public ConnectionData createData() {
        return connectionData;
    }
<commit_msg>Removed unused constructor<commit_after>/*
 * #%L
 * unidle
 * %%
 * Copyright (C) 2013 <NAME>
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * #L%
 */
package org.unidle.social.test;

import org.springframework.social.connect.ConnectionData;
import org.springframework.social.connect.UserProfile;
import org.springframework.social.connect.support.AbstractConnection;

public class ConnectionStub<A> extends AbstractConnection<A> {

    private final ConnectionData connectionData;

    private final UserProfile userProfile;

    public ConnectionStub(final ConnectionData connectionData,
                          final UserProfile userProfile) {
        super(connectionData, null);

        this.connectionData = connectionData;
        this.userProfile = userProfile;
    }

    public ConnectionStub(final ConnectionData connectionData) {
        super(connectionData, null);

        this.connectionData = connectionData;
        this.userProfile = null;
    }

    @Override
    public UserProfile fetchUserProfile() {
        return userProfile;
    }

    @Override
    public A getApi() {
        throw new UnsupportedOperationException();
    }

    @Override
    public ConnectionData createData() {
        return connectionData;
    }

{'fraction_non_alphanumeric': 0.07317073170731707, 'fraction_numerical': 0.0025673940949935813, 'mean_word_length': 3.234782608695652, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6537847', 'n_tokens_mistral': 983, 'n_tokens_neox': 953, 'n_words': 355}