<commit_before>'''
Created on Oct 6, 2014

@author: Aaron
'''
import os

def xml_markup(games, team_ab, team_name):
   file_name = team_ab + "_feed.xml"
   
   #Used code from http://stackoverflow.com/questions/7935972/writing-to-a-new-directory-in-python-without-changing-directory
   
   script_dir = os.path.dirname(os.path.abspath(__file__))
   dest_dir = os.path.join(script_dir, "feeds", team_ab)
   
   try:
      os.makedirs(dest_dir)
   except OSError:
      pass # already exists\\

   path = os.path.join(dest_dir, file_name)
   <commit_msg>Broke off xml markup from main file.<commit_after>'''
Created on Oct 6, 2014

@author: Aaron
'''
import os
 
def xml_markup(games, team_ab, team_name):
   file_name = team_ab + "_feed.xml"
   
   #Used code from http://stackoverflow.com/questions/7935972/writing-to-a-new-directory-in-python-without-changing-directory
   
   script_dir = os.path.dirname(os.path.abspath(__file__))
   dest_dir = os.path.join(script_dir, "feeds", team_ab)
   
   try:
      os.makedirs(dest_dir)
   except OSError:
      pass # already exists\\

   path = os.path.join(dest_dir, file_name)
   
{'fraction_non_alphanumeric': 0.12677304964539007, 'fraction_numerical': 0.02127659574468085, 'mean_word_length': 3.4624505928853755, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '6755886', 'n_tokens_mistral': 438, 'n_tokens_neox': 409, 'n_words': 80}