<commit_before>import networkx as nx
import re
import itertools
import cPickle as pickle
from Structures import Structure

vocab,inv_vocab,display_vocab = pickle.load(file('vocab.pk'))
codelookup = pickle.load(file('codeDict.pk'))
structures = {}
for t in ['code']:
    structures[t] = pickle.load(file(t+'Struct.pk'))

def subsets(l):
    sets = []
    for k in xrange(1,len(l)+1):
        for s in itertools.combinations(l, k):
            sets.append(s)
    return sets

class Anchor(object):
    def __init__(self, id, members=None, edges=None, display_names=None):
        self.id = id<commit_msg>removed dependency on ICD9 files<commit_after>import networkx as nx
import re
import itertools
import cPickle as pickle
from Structures import Structure

#TODO: use settings to direct this reference
vocab,inv_vocab,display_vocab = pickle.load(file('vocab.pk'))

def subsets(l):
    sets = []
    for k in xrange(1,len(l)+1):
        for s in itertools.combinations(l, k):
            sets.append(s)
    return sets

class Anchor(object):
    def __init__(self, id, members=None, edges=None, display_names=None):
        self.id = id
{'fraction_non_alphanumeric': 0.11552028218694885, 'fraction_numerical': 0.004409171075837742, 'mean_word_length': 3.9563318777292578, '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': '2160312', 'n_tokens_mistral': 397, 'n_tokens_neox': 392, 'n_words': 105}