<commit_before>#!/usr/bin/env python

import logging
import collections
import card_manager

""" Utility functions for GTR.
"""

def get_card_from_zone(card, zone):
  """ Wrapper around the possible exception caused by trying to 
  find a non-existent card in a list. Prints an error and 
  re-raises the exception.
  """
  logging.debug('getting card {0!s} from zone {1!s}'.format(card, zone))
  try:
    return zone.pop(zone.index(card))
  except ValueError as e:
    logging.error('Error! card {0!s} not found'.format(card))
    raise

def add_card_to_zone(card, zone):<commit_msg>added utility fcn for printing a dividing line<commit_after>#!/usr/bin/env python

import logging
import collections
import card_manager

""" Utility functions for GTR.
"""

def print_line():
  """ Print a line for visual division of info """
  logging.info(
    '-------------------------------'
    '-------------------------------'
    '-------------------------------'
    '-------------------------------'

  )

def get_card_from_zone(card, zone):
  """ Wrapper around the possible exception caused by trying to 
  find a non-existent card in a list. Prints an error and 
  re-raises the exception.
  """
  logging.debug('getting card {0!s} from zone {1!s}'.format(card, zone))
  try:
    return zone.pop(zone.index(card))
  except ValueError as e:
    logging.error('Error! card {0!s} not found'.format(card))
    raise

def add_card_to_zone(card, zone):
{'fraction_non_alphanumeric': 0.19390581717451524, 'fraction_numerical': 0.004155124653739612, 'mean_word_length': 2.6582278481012658, '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': '1586989', 'n_tokens_mistral': 439, 'n_tokens_neox': 426, 'n_words': 139}