<commit_before>__author__ = 'sabrsorensen'


def M3UGeneration(name):
    m3u_out = open(name+'.m3u', 'w')
    m3u_out.write("#Playlist " + name + " generated by gmusic_playlist_export\n#EXTM3U\n")

def M3UEntry(path):
    pass<commit_msg>M3U file creation and closing, and M3U entry generation.<commit_after>import eyeD3
import mad

__author__ = 'sabrsorensen'

def __init__(self,name):
    self.tagger = eyeD3.Tag()
    self.m3u_out = open(name+'.m3u', 'w')
    self.m3u_out.write("#Playlist " + name + " generated by gmusic_playlist_export\n#EXTM3U\n")

def M3UEntry(self,path):
    self.tagger.link(path)
    self.m3u_out.write("#EXTINF:," + self.tagger.getArtist() + " - " + self.tagger.getTitle + "\n")
    self.m3u_out.write(path + "\n")

def M3UClose(self):
    self.m3u_out.close()
{'fraction_non_alphanumeric': 0.15822784810126583, 'fraction_numerical': 0.024050632911392405, 'mean_word_length': 4.344594594594595, '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': '6371262', 'n_tokens_mistral': 333, 'n_tokens_neox': 330, 'n_words': 52}