def bonus():
 rebulk = Rebulk().regex_defaults(flags=re.IGNORECASE)
 rebulk.regex('x(\\d+)', name='bonus', private_parent=True, children=True, formatter=int, validator={'__parent__': (lambda match: seps_surround)}, conflict_solver=(lambda match, conflicting: (match if ((conflicting.name in ['video_codec', 'episode']) and ('bonus-conflict' not in conflicting.tags)) else '__default__')))
 rebulk.rules(BonusTitleRule)
 return rebulk

def bonus ( ) : rebulk = Rebulk ( ) . regex_defaults ( flags = re . IGNORECASE ) rebulk . regex ( 'x(\\d+)' , name = 'bonus' , private_parent = True , children = True , formatter = int , validator = { '__parent__' : ( lambda match : seps_surround ) } , conflict_solver = ( lambda match , conflicting : ( match if ( ( conflicting . name in [ 'video_codec' , 'episode' ] ) and ( 'bonus-conflict' not in conflicting . tags ) ) else '__default__' ) ) ) rebulk . rules ( BonusTitleRule ) return rebulk
builder for rebulk object .