def __init__(self, filename):
        self.filename = filename

        self.D = {}

        fd = None

        try:
            with open(self.filename, "r+") as fd:
                self.D = json.load( fd )
        except __HOLE__:
            print "Impossible to open filename: " + filename
            self.D = {}

        self.H = {}
        self.N = {}

        for i in self.D:
            self.H[i] = {}
            for j in self.D[i]:
                if j == "NAME":
                    self.N[ i ] = re.compile( self.D[i][j] )
                    continue

                self.H[i][j] = {}
                for k in self.D[i][j]:
                    if isinstance(self.D[i][j][k], dict):
                        self.H[i][j][k] = set()
                        for e in self.D[i][j][k].keys():
                            self.H[i][j][k].add( long(e) )
dataset/ETHPy150Open androguard/androguard/elsim/elsim/similarity/similarity.py/DBFormat.__init__