<commit_before>#!/usr/bin/env python
""" Experiment at using Networkx to store a directory structure and doing either a breath-first
or depth-first traversal.
"""
import os
import sys

import networkx as nx
import matplotlib
matplotlib.rcParams['backend'] = "Qt5Agg"
import matplotlib.pyplot as plt


# Create an empty directed graph
G = nx.DiGraph()

# Set the directory you want to start from
root_dir = '.'
if len(sys.argv) > 1:
    root_dir = sys.argv[1]<commit_msg>Removed matplotlib inlcudes from networkx example which wasn't using them<commit_after>#!/usr/bin/env python
""" Experiment at using Networkx to store a directory structure and doing either a breath-first
or depth-first traversal.
"""
import os
import sys

import networkx as nx

# Create an empty directed graph
G = nx.DiGraph()

# Set the directory you want to start from
root_dir = '.'
if len(sys.argv) > 1:
    root_dir = sys.argv[1]
{'fraction_non_alphanumeric': 0.09040793825799338, 'fraction_numerical': 0.005512679162072767, 'mean_word_length': 4.404761904761905, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1673985', 'n_tokens_mistral': 290, 'n_tokens_neox': 281, 'n_words': 112}