<commit_before>c = get_config()



# Notebook config
c.NotebookApp.certfile = u'/home/dwheeler/.ipython/profile_default/mycert.pem'
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.password = u'<PASSWORD>'

# It is a good idea to put it on a known, fixed port
c.NotebookApp.port = 9999

# This starts plotting support always with matplotlib
c.IPKernelApp.pylab = 'inline'
#------------------------------------------------------------------------------
# ZMQInteractiveShell configuration
#------------------------------------------------------------------------------

# A subclass of InteractiveShell for ZMQ.

# ZMQInteractiveShell will inherit config from: InteractiveShell

# Use colors for displaying information about objects. Because this information
# is passed through a pager (like 'less'), and some pagers get confused with
# color codes, this capability can be turned off.
# c.ZMQInteractiveShell.color_info = True
<commit_msg>Fix ipython notebook to expand user correctly<commit_after>import os

c = get_config()



# Notebook config
user_path = os.path.expanduser(u'~')
c.NotebookApp.certfile = os.path.join(user_path, u'.ipython/profile_default/mycert.pem')
c.NotebookApp.certfile = u'~/.ipython/profile_default/mycert.pem'
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.password = u'<PASSWORD>'

# It is a good idea to put it on a known, fixed port
c.NotebookApp.port = 9999

# This starts plotting support always with matplotlib
c.IPKernelApp.pylab = 'inline'
#------------------------------------------------------------------------------
# ZMQInteractiveShell configuration
#------------------------------------------------------------------------------

# A subclass of InteractiveShell for ZMQ.

# ZMQInteractiveShell will inherit config from: InteractiveShell

# Use colors for displaying information about objects. Because this information
# is passed through a pager (like 'less'), and some pagers get confused with
# color codes, this capability can be turned off.
# c.ZMQInteractiveShell.color_info = True

{'fraction_non_alphanumeric': 0.22548076923076923, 'fraction_numerical': 0.0038461538461538464, 'mean_word_length': 2.4283360790774298, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1075871', 'n_tokens_mistral': 584, 'n_tokens_neox': 554, 'n_words': 177}