<commit_before># ***** BEGIN LICENSE BLOCK *****
#
# For copyright and licensing please refer to COPYING.
#
# ***** END LICENSE BLOCK *****


class PlainCredentials(object):
    """
    The PlainCredentials class returns the properly formatted username and
    password to the Connection. As of this version of Pika, only
    PlainCredentials are supported. To authenticate with Pika, simply create a
    credentials object passing in the username and password and pass that to
    the ConnectionParameters object.

    If you do not pass in credentials to the ConnectionParameters object, it
    will create credentials for 'guest' with the password of '<PASSWORD>'.

    If you pass True to erase_on_connect the credentials will not be stored
    in memory after the Connection attempt has been made. This means that you<commit_msg>fix NameError in credentials.py<commit_after># ***** BEGIN LICENSE BLOCK *****
#
# For copyright and licensing please refer to COPYING.
#
# ***** END LICENSE BLOCK *****

import pika.log as log

class PlainCredentials(object):
    """
    The PlainCredentials class returns the properly formatted username and
    password to the Connection. As of this version of Pika, only
    PlainCredentials are supported. To authenticate with Pika, simply create a
    credentials object passing in the username and password and pass that to
    the ConnectionParameters object.

    If you do not pass in credentials to the ConnectionParameters object, it
    will create credentials for 'guest' with the password of '<PASSWORD>'.

    If you pass True to erase_on_connect the credentials will not be stored
    in memory after the Connection attempt has been made. This means that you
{'fraction_non_alphanumeric': 0.058513750731421885, 'fraction_numerical': 0.0, 'mean_word_length': 3.9709302325581395, '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': '6231563', 'n_tokens_mistral': 423, 'n_tokens_neox': 401, 'n_words': 224}