<commit_before>import click
from hue import bridge, configuration


@click.group()
def cli():
    """
    Control Philips HUE lighting from the command line
    """


@cli.command()
def setup():
    """
    Setup connection to Bridge
    """
    ip_address = bridge.discover()
    bridge.connect(ip_address)
    config = configuration.create(ip_address)

    message = 'Config created for IP address: {0}'.format(config['ip_address'])
    click.echo(message)<commit_msg>list lights<commit_after>import click
from hue import bridge, configuration


@click.group()
def cli():
    """
    Control Philips HUE lighting from the command line
    """


@cli.command()
def setup():
    """
    Setup connection to Bridge
    """
    ip_address = bridge.discover()
    bridge.connect(ip_address)
    config = configuration.create(ip_address)

    message = 'Config created for IP address: {0}'.format(config['ip_address'])
    click.echo(message)


@cli.command()
def list():
    """
    List available lights
    """
    config = configuration.get()
    b = bridge.connect(config['ip_address'])
    for light in b.lights:
        click.echo(light.name)
{'fraction_non_alphanumeric': 0.12663755458515283, 'fraction_numerical': 0.0017467248908296944, 'mean_word_length': 3.3908045977011496, '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': '1611543', 'n_tokens_mistral': 342, 'n_tokens_neox': 331, 'n_words': 91}