<commit_before>import numpy as np, pandas as pd, time, sys
import cPickle, os
from synthicity.utils import misc, geomisc

class Networks:

  # flatten_nodeids is used when there is one graph to make a list of nodeids rather than 
  # a list of lists - it doesn't work right now unfortunately
  def __init__(self,filenames,factors,maxdistances,twoway,impedances=None,flatten_nodeids=False):
    if not filenames: return<commit_msg>Update networks.py<commit_after>import numpy as np, pandas as pd, time, sys
import cPickle, os
from synthicity.utils import misc

class Networks:

  # flatten_nodeids is used when there is one graph to make a list of nodeids rather than 
  # a list of lists - it doesn't work right now unfortunately
  def __init__(self,filenames,factors,maxdistances,twoway,impedances=None,flatten_nodeids=False):
    if not filenames: return
{'fraction_non_alphanumeric': 0.06074766355140187, 'fraction_numerical': 0.0, 'mean_word_length': 5.2101449275362315, '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': '4017562', 'n_tokens_mistral': 274, 'n_tokens_neox': 254, 'n_words': 101}