<commit_before>"""
St. George Game
person.py
<NAME>
Created: 7 Dec 2014
"""

from collections import namedtuple

from raffle import Raffle
from display import Display

Pronouns = namedtuple("Pronouns", ["subj", "obj", "tense"])


class Person(object):

    def __init__(self, name, attack, pronouns, arrester=False):
        self.name = name
        self.attack = attack
        self.arrester = arrester
        self.pronouns = pronouns
        self.alive = True
        self.state = {}
        self.options = {"a": Raffle(),
                        "b": Raffle(),
                        "c": Raffle(),
                        "d": Raffle()}
        self.attracted = 0

assassin = Person("the assassin", 6,
                  Pronouns("the asassin", "the asassin", "s"))
assassins = Person("the assassins", 6,
                   Pronouns("the assassins", "the assassins", ""))
blind_bartender = Person("the blind bartender", 1, Pronouns("he", "him", "s"))
fat_lady = Person("the fat lady who feeds you", 4, Pronouns("she", "her", "s"))
guards = Person("the guards", 1, Pronouns("they", "the guards", ""), 
                arrester=True)
mermaid = Person("the mermaid", 3, Pronouns("the mermaid", "the mermaid", "s"))
mob = Person("the angry mob", 9,
             Pronouns("the angry mob", "the angry mob", "s"))
other_lunatics = Person("the other lunatics", -1,
                        Pronouns("they", "the other lunatics", ""))
peasant_lass = Person("the peasant lass", 7,
                      Pronouns("she", "her", "s"))
pirate_wench = Person("the pirate wench", 2,
                      Pronouns("the pirate wench", "the pirate wench", "s"))
pretty_lady = Person("the pretty lady", 1, Pronouns("she", "her", "s"))
simple_peasant = Person("the simple peasant", -1,
                        Pronouns("he", "the simple peasant", "s"))
st_george = Person("St. George", 100, Pronouns("he", "him", "s"))
wealthy_merchant = Person("the wealthy merchant", 7,
                          Pronouns("he", "him", "s"))
wizard = Person("the wizard", 7, Pronouns("he", "him", "s"))
lord_arthur = Person("<NAME>", 6, Pronouns("he", "him", "s"))
lord_bartholomew = Person("<NAME>", 4, Pronouns("he", "him", "s"))
lord_carlos = Person("<NAME>", 5, Pronouns("he", "him", "s"))
lord_daniel = Person("<NAME>", 7, Pronouns("he", "him", "s"))<commit_msg>renamed most of the persons' subjects and objects for clarity in game play<commit_after>"""
St. George Game
person.py
<NAME>
Created: 7 Dec 2014
"""

from collections import namedtuple

from raffle import Raffle
from display import Display

Pronouns = namedtuple("Pronouns", ["subj", "obj", "tense"])


class Person(object):

    def __init__(self, name, attack, pronouns, arrester=False):
        self.name = name
        self.attack = attack
        self.arrester = arrester
        self.pronouns = pronouns
        self.alive = True
        self.state = {}
        self.options = {"a": Raffle(),
                        "b": Raffle(),
                        "c": Raffle(),
                        "d": Raffle()}
        self.attracted = 0

assassin = Person("the assassin", 6,
                  Pronouns("the asassin", "the asassin", "s"))
assassins = Person("the assassins", 6,
                   Pronouns("the assassins", "the assassins", ""))
blind_bartender = Person("the blind bartender", 1, 
                         Pronouns("the blind bartender", 
                                  "the blind bartender", "s"))
fat_lady = Person("the fat lady who feeds you", 4, Pronouns("she", "her", "s"))
guards = Person("the guards", 1, Pronouns("the guards", "the guards", ""), 
                arrester=True)
mermaid = Person("the mermaid", 3, Pronouns("the mermaid", "the mermaid", "s"))
mob = Person("the angry mob", 9,
             Pronouns("the angry mob", "the angry mob", "s"))
other_lunatics = Person("the other lunatics", -1,
                        Pronouns("they", "the other lunatics", ""))
peasant_lass = Person("the peasant lass", 7,
                      Pronouns("the peasant lass", "the peasant lass", "s"))
pirate_wench = Person("the pirate wench", 2,
                      Pronouns("the pirate wench", "the pirate wench", "s"))
pretty_lady = Person("the pretty lady", 1, 
                     Pronouns("the pretty lady", "the pretty lady", "s"))
simple_peasant = Person("the simple peasant", -1,
                        Pronouns("he", "the simple peasant", "s"))
st_george = Person("St. George", 100, 
                   Pronouns("St. George", "St. George", "s"))
wealthy_merchant = Person("the merchant", 7,
                          Pronouns("the merchant", "the merchant", "s"))
wizard = Person("the wizard", 7, Pronouns("the wizard", "the wizard", "s"))
lord_arthur = Person("L<NAME>", 6, 
                     Pronouns("Lord Arthur", "<NAME>", "s"))
lord_bartholomew = Person("<NAME>", 4, 
                          Pronouns("Lord Bartholomew", 
                                   "Lord Bartholomew", "s"))
lord_carlos = Person("<NAME>", 5, 
                     Pronouns("<NAME>", "<NAME>", "s"))
lord_daniel = Person("<NAME>", 7, 
                     Pronouns("Lord Daniel", "Daniel", "s"))
{'fraction_non_alphanumeric': 0.16479037267080746, 'fraction_numerical': 0.01048136645962733, 'mean_word_length': 2.5464556090846524, 'pattern_counts': {'":': 8, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2579364', 'n_tokens_mistral': 1760, 'n_tokens_neox': 1601, 'n_words': 463}