<commit_before># <NAME>
# Project Clanager -- Person Class
# File creation: 2014-12-23

import traceback

class Person(object):

  def __init__(self):
    pass

  def __del__(self):
    pass<commit_msg>In Person class, wrote very basic init and del methods.<commit_after># <NAME>
# Project Clanager -- Person Class
# File creation: 2014-12-23

import traceback
from Clan import Clan
from Resource import Resource

class Person(object):

  def __init__(self, name):
    try:
      self._name = str(name)  # Name of Person
      self._clan = None       # Clan Person belongs to
      self._needs = {}        # Person's needs (begins empty)
      self._energy = 100      # Person's energy (low = hungry)
      self._health = 100      # Person's health (low = dying)
      self._alive = True      # Whether Person is alive or not
    except:
      print "\n\n" + str(traceback.format_exc())
      print "\n\nDATA VALIDATION ERROR: Person not created!"

  def __del__(self):
    self._name = "DELETED"
    self._clan = None
    self._needs = {}
    self._energy = 0
    self._health = 0
    self._alive = False
{'fraction_non_alphanumeric': 0.10316742081447963, 'fraction_numerical': 0.02171945701357466, 'mean_word_length': 2.6866666666666665, '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': '1491689', 'n_tokens_mistral': 367, 'n_tokens_neox': 336, 'n_words': 112}