<commit_before># (c) <NAME> 2017
# get some basic config just the way i like it, no heavy stuff
import sys
import os
import psutil
import IPython.core.magic
import IPython.utils.path
sys.path.append(os.path.expanduser('~/dev/geco_data'))
# some custom python tools I store in submodules of ``stefco``
sys.path.append(os.path.expanduser('~/dev/dotfiles/python_tools'))

# get the location of the ipython directory
# ipydir = IPython.utils.path.get_ipython_dir()

# aliases for my fav commands; more ideas at
# https://gist.github.com/taldcroft/547c0b6e0ae15e0c970d
get_ipython().run_line_magic('alias', 'vim vim')
get_ipython().run_line_magic('alias', 'imgcat imgcat')<commit_msg>add datetime and glob to ipython startup<commit_after># (c) <NAME> 2017
# get some basic config just the way i like it, no heavy stuff
import sys
import os
import psutil
import datetime
from glob import glob
import IPython.core.magic
import IPython.utils.path
sys.path.append(os.path.expanduser('~/dev/geco_data'))
# some custom python tools I store in submodules of ``stefco``
sys.path.append(os.path.expanduser('~/dev/dotfiles/python_tools'))

# get the location of the ipython directory
# ipydir = IPython.utils.path.get_ipython_dir()

# aliases for my fav commands; more ideas at
# https://gist.github.com/taldcroft/547c0b6e0ae15e0c970d
get_ipython().run_line_magic('alias', 'vim vim')
get_ipython().run_line_magic('alias', 'imgcat imgcat')
{'fraction_non_alphanumeric': 0.11806043569922699, 'fraction_numerical': 0.022487702037947997, 'mean_word_length': 5.748815165876778, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6078255', 'n_tokens_mistral': 529, 'n_tokens_neox': 496, 'n_words': 137}