<commit_before>import pydb
import IPython.ipapi
from IPython.genutils import arg_split
ip = IPython.ipapi.get()

def call_pydb(self, args):
    argl = arg_split(args)
    print argl
    if ip.IP.has_readline:
        ip.IP.savehist()
    try:
        pydb.runl(*args)
    finally:
    
        if ip.IP.has_readline:
            ip.IP.readline.read_history_file(self.shell.histfile)
    
ip.expose_magic("pydb",call_pydb)    

    
    
    <commit_msg>rm debug printing, fix typo bug<commit_after>import pydb
import IPython.ipapi
from IPython.genutils import arg_split
ip = IPython.ipapi.get()

def call_pydb(self, args):
    argl = arg_split(args)
    # print argl # dbg
    if ip.IP.has_readline:
        ip.IP.savehist()
    try:
        pydb.runl(*argl)
    finally:
    
        if ip.IP.has_readline:
            ip.IP.readline.read_history_file(self.shell.histfile)
    
ip.expose_magic("pydb",call_pydb)    

    
    
    
{'fraction_non_alphanumeric': 0.10193133047210301, 'fraction_numerical': 0.0, 'mean_word_length': 2.4175824175824174, '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': '5370455', 'n_tokens_mistral': 359, 'n_tokens_neox': 356, 'n_words': 60}