<commit_before>import matplotlib.pyplot as plt
import networkx as nx

def draw_network(graph, filename = 'network.pdf', show = False):
    """
    This is a simple wrapper to the networkx_draw.
    Args:
        filename: what file to save down as.
        show: will display the graph on a window. 
    Nots:
        Takes any format that networkx matplotlib plotter takes.
    """
    pos=nx.spectral_layout(graph)
    labels = {}
    node_size = {}
    for node in graph.nodes(): 
        labels[node] = node    
        node_size[node] = len(node) * 1000       

    nx.draw(    graph,
                pos = pos,
                node_size = 1000,
                node_color = 'g',
                node_shape = 'o',<commit_msg>base size is ten ?<commit_after>import matplotlib.pyplot as plt
import networkx as nx

def draw_network(graph, filename = 'network.pdf', show = False):
    """
    This is a simple wrapper to the networkx_draw.
    Args:
        filename: what file to save down as.
        show: will display the graph on a window. 
    Nots:
        Takes any format that networkx matplotlib plotter takes.
    """
    pos=nx.spectral_layout(graph)
    labels = {}
    node_size = {}
    for node in graph.nodes(): 
        labels[node] = node    
        node_size[node] = len(node) * 10       

    nx.draw(    graph,
                pos = pos,
                node_size = 1000,
                node_color = 'g',
                node_shape = 'o',
{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.009569377990430622, 'mean_word_length': 1.8538011695906433, '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': '787675', 'n_tokens_mistral': 459, 'n_tokens_neox': 430, 'n_words': 141}