<commit_before>package org.ovirt.engine.core.bll;

import java.util.Comparator;

/**
 * Used to sort the login domain list on the login page. Business rule is sort alphabetically,
 * but put "internal" at the end.
 */
public class LoginDomainComparator implements Comparator<String> {

    private String internal;

    public LoginDomainComparator(String internal) {
        this.internal = internal;
    }

    @Override
    public int compare(String a, String b) {<commit_msg>engine: make LoginDomainComparator Serializable<commit_after>package org.ovirt.engine.core.bll;

import java.io.Serializable;
import java.util.Comparator;

/**
 * Used to sort the login domain list on the login page. Business rule is sort alphabetically,
 * but put "internal" at the end.
 */
public class LoginDomainComparator implements Comparator<String>, Serializable {

    private static final long serialVersionUID = -1679928871675563671L;

    private String internal;

    public LoginDomainComparator(String internal) {
        this.internal = internal;
    }

    @Override
    public int compare(String a, String b) {
{'fraction_non_alphanumeric': 0.0776173285198556, 'fraction_numerical': 0.017148014440433214, 'mean_word_length': 3.950892857142857, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6101867', 'n_tokens_mistral': 310, 'n_tokens_neox': 299, 'n_words': 104}