<commit_before>package javaphone;

import java.util.ArrayList;
import java.util.HashMap;

/**
 *
 * @author iGroup
 */
public class LpPhoneMain {

    private int activeUser;
    private ServiceList serviceList;
    private UserList userList;
    private CustomerList customerList;

    public LpPhoneMain() {
        createServiceList();
        createUserList();
        createCustomerList();
    }

    public void runProgram() {
        PhoneMenu.printLogin(); //hur får jag tillbaka inloggningsuppgifter?
        //login();
    }

    private boolean setActiveUser(int userId) {
        activeUser = userId;
        return true;
    }

    public int getActiveUser() {
        return activeUser;
    }

    private boolean login(int userId, String password) {
        if (sendUserPassword(userId).equals(password)) {
            setActiveUser(userId);
            return true;
        } else {
            return false;
        }
    }

    private boolean createServiceList() {
        serviceList = new ServiceList();
        return true;
    }

    private boolean createUserList() {
        userList = new UserList();
        return true;
    }

    private boolean createCustomerList() {
        customerList = new CustomerList();
        return true;
    }

    public String getNextContract() {
        return customerList.getNextContract();
    }
<commit_msg>Tog bort några onödiga metoder, +javadoc<commit_after>package javaphone;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * This controller class is responsible for communication between
 * the GUI and the model classes.
 * 
 * @author iGroup
 */
public class LpPhoneMain {

    private int activeUser;
    private final ServiceList serviceList;
    private final UserList userList;
    private final CustomerList customerList;

    /**
     * Constructor for class LpPhoneMain.
     */
    public LpPhoneMain() {
        serviceList = new ServiceList();
        userList = new UserList();
        customerList = new CustomerList();
    }

    public void runProgram() {
        PhoneMenu.printLogin(); //hur får jag tillbaka inloggningsuppgifter?
        //login();
    }

    private boolean setActiveUser(int userId) {
        activeUser = userId;
        return true;
    }

    public int getActiveUser() {
        return activeUser;
    }

    private boolean login(int userId, String password) {
        if (sendUserPassword(userId).equals(password)) {
            setActiveUser(userId);
            return true;
        } else {
            return false;
        }
    }

    public String getNextContract() {
        return customerList.getNextContract();
    }

{'fraction_non_alphanumeric': 0.08587570621468926, 'fraction_numerical': 0.0, 'mean_word_length': 2.336683417085427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6863385', 'n_tokens_mistral': 721, 'n_tokens_neox': 708, 'n_words': 196}