<s> """<STR_LIT>""" <EOL> import operator <EOL> import random <EOL> def randset ( ) : <EOL> """<STR_LIT>""" <EOL> n = random . choice ( range ( <NUM_LIT:5> , <NUM_LIT:20> ) ) <EOL> k = <NUM_LIT:10> <EOL> return tuple ( set ( random . choice ( range ( k ) ) for _ in range ( n ) ) ) <EOL> def sigsim ( X , Y , dim ) : <EOL> """<STR_LIT>""" <EOL> return sum ( map ( operator . eq , X , Y ) ) / float ( dim ) </s>
