<commit_before>package de.behrfried.wikianalyzer.wawebapp.server;

import de.behrfried.wikianalyzer.wawebapp.client.GreetingService;
import de.behrfried.wikianalyzer.wawebapp.shared.FieldVerifier;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import de.behrfried.wikianalyzer.simplemath.*;

/**
 * The server side implementation of the RPC service.
 */
@SuppressWarnings("serial")
public class GreetingServiceImpl extends RemoteServiceServlet implements
		GreetingService {

	public String greetServer(String input) throws IllegalArgumentException {

		try {
			int n = Integer.parseInt(input);
			return "You passed an Integer " + input + "<br>Its fac is " + SimpleMath.fak(n) +  "and fibo is " + SimpleMath.fibo(n);
		} catch(Exception e) {
			
		}
		
		// Verify that the input is valid.
		if (!FieldVerifier.isValidName(input)) {
			// If the input is not valid, throw an IllegalArgumentException back
			// to
			// the client.
			throw new IllegalArgumentException(
					"Name must be at least 4 characters long");
		}

		String serverInfo = getServletContext().getServerInfo();<commit_msg>changed variable name<commit_after>package de.behrfried.wikianalyzer.wawebapp.server;

import de.behrfried.wikianalyzer.wawebapp.client.GreetingService;
import de.behrfried.wikianalyzer.wawebapp.shared.FieldVerifier;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import de.behrfried.wikianalyzer.simplemath.*;

/**
 * The server side implementation of the RPC service.
 */
@SuppressWarnings("serial")
public class GreetingServiceImpl extends RemoteServiceServlet implements
		GreetingService {

	public String greetServer(String input) throws IllegalArgumentException {

		try {
			int x = Integer.parseInt(input);
			return "You passed an Integer " + input + "<br>Its fac is " + SimpleMath.fak(x) +  "and fibo is " + SimpleMath.fibo(x);
		} catch(Exception e) {
			
		}
		
		// Verify that the input is valid.
		if (!FieldVerifier.isValidName(input)) {
			// If the input is not valid, throw an IllegalArgumentException back
			// to
			// the client.
			throw new IllegalArgumentException(
					"Name must be at least 4 characters long");
		}

		String serverInfo = getServletContext().getServerInfo();
{'fraction_non_alphanumeric': 0.09964093357271095, 'fraction_numerical': 0.0008976660682226212, 'mean_word_length': 4.31980906921241, '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': '4560011', 'n_tokens_mistral': 721, 'n_tokens_neox': 662, 'n_words': 175}