<commit_before>The ARDrone object
==================

.. class:: ARDrone(addr='192.168.1.1', at_port=5556, navdata_port=5554, video_port=5555, control_port=5559, interval=0.03, connect=True)

    The class representing a Parrot AR.Drone

    *interval*: delay between subsequent commands in seconds

    *connect*: connect to the drone at init

    .. attribute:: config

        The config object of the drone, see :ref:`configuration`.

    .. method:: connect()

        Connect to the drone.

    .. method:: disconnect()

        Disconnect the drone.

    .. method:: takeoff(wait=False, discard=True)

    .. method:: land(wait=False, discard=True)
<commit_msg>connect and close raises Runtime<commit_after>The ARDrone object
==================

.. class:: ARDrone(addr='192.168.1.1', at_port=5556, navdata_port=5554, video_port=5555, control_port=5559, interval=0.03, connect=True)

    The class representing a Parrot AR.Drone

    *interval*: delay between subsequent commands in seconds

    *connect*: connect to the drone at init

    .. attribute:: config

        The config object of the drone, see :ref:`configuration`.

    .. method:: connect()

        Connect to the drone.

        raises :py:class:`RuntimeError` if the drone is connected or closed already.

    .. method:: close()

        Exit all threads and disconnect the drone.

        raises :py:class:`RuntimeError` if the drone is closed already or not connected yet.

    .. method:: takeoff(wait=False, discard=True)

    .. method:: land(wait=False, discard=True)

{'fraction_non_alphanumeric': 0.13023855577047067, 'fraction_numerical': 0.03481624758220503, 'mean_word_length': 3.34733893557423, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7413486', 'n_tokens_mistral': 495, 'n_tokens_neox': 425, 'n_words': 146}