<commit_before>def current(self, msginfo):
    self.require("format_song_details")
    currentTrack = self.conman.mpc.currentsong()
    if type(currentTrack) == list:
        currentTrack = currentTrack[0]
    tosend = self.funcs["format_song_details"](self, currentTrack["file"])
    self.conman.gen_send(tosend, msginfo)

self.commandlist["current"] = {
        "type": MAPTYPE_COMMAND,
        "function": current,
        "help": "displays current track info"
        }<commit_msg>Added progress to current.py (resolves #3)<commit_after>def current(self, msginfo):
    import datetime
    self.require("format_song_details")
    currentTrack = self.conman.mpc.currentsong()
    if type(currentTrack) == list:
        currentTrack = currentTrack[0]
    tosend = self.funcs["format_song_details"](self, currentTrack["file"])
    status = self.conman.mpc.status()
    elapsed = str(datetime.timedelta(seconds=int(status["time"][:status["time"].index(":")])))
    while elapsed.startswith("0") or elapsed.startswith(":"):
        elapsed = elapsed[1:]
    tosend = tosend[:tosend.rindex("-")+2] + elapsed + "/" + tosend[tosend.rindex("-")+2:]
    self.conman.gen_send(tosend, msginfo)

self.commandlist["current"] = {
        "type": MAPTYPE_COMMAND,
        "function": current,
        "help": "displays current track info"
        }
{'fraction_non_alphanumeric': 0.15655430711610488, 'fraction_numerical': 0.0052434456928838954, 'mean_word_length': 3.8937728937728937, 'pattern_counts': {'":': 8, '<': 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': '722075', 'n_tokens_mistral': 441, 'n_tokens_neox': 434, 'n_words': 73}