<commit_before># Chapter 13 included a practice project to create custom invitations from a list of
# guests in a plaintext file. As an additional project, use the pillow module to
# create images for custom seating cards for your guests. For each of the guests listed
# in the guests.txt, generate an image file with the guest name and some flowery
# decoration.
#
# To ensure that each seating card is the same size, add a black rectangle on the edges
# of the invitation image so that when the image is printed out, there will be a
# guideline for cutting. The PNG files that Pillow produces are set to 72 pixels per
# inch, so a 4×5-inch card would require a 288×360-pixel image.<commit_msg>Update P3_seatingCards added imports and outline<commit_after># Chapter 13 included a practice project to create custom invitations from a list of
# guests in a plaintext file. As an additional project, use the pillow module to
# create images for custom seating cards for your guests. For each of the guests listed
# in the guests.txt, generate an image file with the guest name and some flowery
# decoration.
#
# To ensure that each seating card is the same size, add a black rectangle on the edges
# of the invitation image so that when the image is printed out, there will be a
# guideline for cutting. The PNG files that Pillow produces are set to 72 pixels per
# inch, so a 4×5-inch card would require a 288×360-pixel image.

import os
from PIL import Image, ImageFont, ImageDraw

# Get guest list from file

# For each guest, make black 4x5-inch card

# Add guest's name

# Add flowery decoration

# Save seating card
{'fraction_non_alphanumeric': 0.04076590487955528, 'fraction_numerical': 0.016676961087090797, 'mean_word_length': 4.175718849840256, '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': '3960513', 'n_tokens_mistral': 440, 'n_tokens_neox': 405, 'n_words': 267}