<commit_before><commit_msg>added SubstcriberList Formatting<commit_after>package com.crap.sms.controllers;

import java.util.List;

import com.crap.sms.domain.model.Subscriber;
import com.crap.sms.domain.model.Subscription;
import com.crap.sms.domain.model.Terminal;

public class SubscriberStringHelper {

	public static String formatSubscribers(List<Subscriber> subscribers) {
		StringBuilder result = new StringBuilder();
		for (Subscriber subscriber : subscribers) {
			result.append(subscriber.getForeName()).append(" ").append(subscriber.getSurName()).append(" (");
			result.append(subscriber.getIMSI()).append("): ");
			result.append(getTerminalString((subscriber.getTerminal()))).append(", ");
			result.append(getSubscriptionString((subscriber.getSubscription())));
			result.append("\n");
		}
		return result.toString();
	}

	private static String getSubscriptionString(Subscription subscription) {
		switch (subscription) {
		//TODO Subscriptions nachtragen
		default:
			return "undefined Subscription";
		}
	}

	private static String getTerminalString(Terminal terminal) {
		switch (terminal) {
		// TODO Terminals nachtragen
		default:
			return "undefined Terminal";
		}
	}
}

{'fraction_non_alphanumeric': 0.12824811399832356, 'fraction_numerical': 0.0, 'mean_word_length': 5.524590163934426, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2892633', 'n_tokens_mistral': 386, 'n_tokens_neox': 356, 'n_words': 64}