<commit_before>"""
Python Library for the Adafruit Thermal Printer.
This library is intended to be used with a Raspberry PI and
a full fledged serial interface. It does not perform handling
of pins but relies on the underlying serial library.
"""

##
#  Thermal printer ~C~ Python library for the
#
#  An Arduino library for the Adafruit Thermal Printer:
#
#  https://www.adafruit.com/product/597
#
#  These printers use TTL serial to communicate.  One pin (5V or 3.3V) is
#  required to issue data to the printer.  A second pin can OPTIONALLY be
#  used to poll the paper status, but not all printers support this, and
#  the output on this pin is 5V which may be damaging to some MCUs.
#
#  Adafruit invests time and resources providing this open source code.
#  Please support Adafruit and open-source hardware by purchasing products
#  from Adafruit!
#
#  @section author Author
#
#  Written by <NAME>/Ladyada for Adafruit Industries, with
#  contributions from the open source community.  Originally based on
#  Thermal library from bildr.org
#<commit_msg>Credit to the source of the file.<commit_after>"""
Python Library for the Adafruit Thermal Printer.
This library is intended to be used with a Raspberry PI and
a full fledged serial interface. It does not perform handling
of pins but relies on the underlying serial library.
"""

# Copied here from: https://github.com/thomsmits/adafruit-thermal-printer-python-library

##
#  Thermal printer ~C~ Python library for the
#
#  An Arduino library for the Adafruit Thermal Printer:
#
#  https://www.adafruit.com/product/597
#
#  These printers use TTL serial to communicate.  One pin (5V or 3.3V) is
#  required to issue data to the printer.  A second pin can OPTIONALLY be
#  used to poll the paper status, but not all printers support this, and
#  the output on this pin is 5V which may be damaging to some MCUs.
#
#  Adafruit invests time and resources providing this open source code.
#  Please support Adafruit and open-source hardware by purchasing products
#  from Adafruit!
#
#  @section author Author
#
#  Written by <NAME>/Ladyada for Adafruit Industries, with
#  contributions from the open source community.  Originally based on
#  Thermal library from bildr.org
#
{'fraction_non_alphanumeric': 0.062275985663082435, 'fraction_numerical': 0.0062724014336917565, 'mean_word_length': 4.040632054176072, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, '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': '5501171', 'n_tokens_mistral': 690, 'n_tokens_neox': 624, 'n_words': 314}