<commit_before>package org.neo4j.util.shell;

import java.rmi.RemoteException;
import org.neo4j.util.shell.apps.Man;
import org.neo4j.util.shell.apps.extra.Gsh;

/**
 * A common concrete implement of an {@link AppShellServer} which contains
 * default packages and exit app.
 */
public class SimpleAppServer extends AbstractAppServer
{
	/**
	 * Creates a new simple app server and adds default packages.
	 * @throws RemoteException RMI error.
	 */
	public SimpleAppServer() throws RemoteException
	{
		super();
		this.addPackage( Man.class.getPackage().getName() );
	}
	
	protected void addExtraPackage()
	{
		this.addPackage( Gsh.class.getPackage().getName() );
	}
	
	private App findBuiltInApp( String command )
	{
		if ( command.equals( "exit" ) || command.equals( "quit" ) )
		{
			return new ExitApp();
		}
		return null;
	}
	
	@Override
	public App findApp( String command )
	{
		App app = this.findBuiltInApp( command );
		return app != null ? app : super.findApp( command );
	}

	private abstract class BuiltInApp extends AbstractApp
	{
	}
	
	private class ExitApp extends BuiltInApp
	{
		@Override
		public String getName()
		{
			return "exit";
		}
		
		public String execute( AppCommandParser parser, Session session,
			Output out ) throws ShellException
		{
			return "e";
		}
		
		@Override
		public String getDescription()
		{
			return "Built-in command. Exits the client";
		}
	}
}<commit_msg>Changed the description for the Quit app.<commit_after>package org.neo4j.util.shell;

import java.rmi.RemoteException;
import org.neo4j.util.shell.apps.Man;
import org.neo4j.util.shell.apps.extra.Gsh;

/**
 * A common concrete implement of an {@link AppShellServer} which contains
 * default packages and exit app.
 */
public class SimpleAppServer extends AbstractAppServer
{
	/**
	 * Creates a new simple app server and adds default packages.
	 * @throws RemoteException RMI error.
	 */
	public SimpleAppServer() throws RemoteException
	{
		super();
		this.addPackage( Man.class.getPackage().getName() );
	}
	
	protected void addExtraPackage()
	{
		this.addPackage( Gsh.class.getPackage().getName() );
	}
	
	private App findBuiltInApp( String command )
	{
		if ( command.equals( "exit" ) || command.equals( "quit" ) )
		{
			return new ExitApp();
		}
		return null;
	}
	
	@Override
	public App findApp( String command )
	{
		App app = this.findBuiltInApp( command );
		return app != null ? app : super.findApp( command );
	}

	private abstract class BuiltInApp extends AbstractApp
	{
	}
	
	private class ExitApp extends BuiltInApp
	{
		@Override
		public String getName()
		{
			return "exit";
		}
		
		public String execute( AppCommandParser parser, Session session,
			Output out ) throws ShellException
		{
			return "e";
		}
		
		@Override
		public String getDescription()
		{
			return "Exits the client";
		}
	}
}
{'fraction_non_alphanumeric': 0.10706713780918728, 'fraction_numerical': 0.0021201413427561835, 'mean_word_length': 3.5661290322580643, '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': '7552350', 'n_tokens_mistral': 973, 'n_tokens_neox': 869, 'n_words': 254}