<commit_before>import readline
import code
import lifx

# Start the client
lights = lifx.Client()

# Start interactive console
shell = code.InteractiveConsole({'lights': lights})
shell.interact(banner='Use the "lights" variable to use the SDK')
<commit_msg>Try readline, then pyreadline, otherwise start without readline support<commit_after>import code
import lifx

# Try to get readline if available
try:
    import readline
except ImportError:
    try:
        import pyreadline as readline
    except ImportError:
        pass


# Start the client
lights = lifx.Client()

# Start interactive console
shell = code.InteractiveConsole({'lights': lights})
shell.interact(banner='Use the "lights" variable to use the SDK')

{'fraction_non_alphanumeric': 0.0817174515235457, 'fraction_numerical': 0.0, 'mean_word_length': 4.784, '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': '4290246', 'n_tokens_mistral': 205, 'n_tokens_neox': 201, 'n_words': 75}