#NEWLINE# def addRanges( self , key1 , key2 , size , ranges ) : #NEWLINE# #INDENT# if ( key2 not in self . bitsets [ key1 ] ) : #NEWLINE# #INDENT# if ( size == 199501827 ) : #NEWLINE# #INDENT# self . bitsets [ key1 ] [ key2 ] = bx . bitset . BitSet ( size ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . bitsets [ key1 ] [ key2 ] = bx . bitset . BinnedBitSet ( size ) #NEWLINE# #UNINDENT# #UNINDENT# for r in ranges : #NEWLINE# #INDENT# self . bitsets [ key1 ] [ key2 ] . set_range ( r [ 0 ] , r [ 1 ] )