<s> """<STR_LIT>""" <EOL> from zipline . pipeline . common import ( <EOL> DISCLOSURE_DATE , <EOL> PERCENT_SHARES , <EOL> NUM_SHARES <EOL> ) <EOL> from zipline . pipeline . data import _13DFilings <EOL> from zipline . pipeline . loaders . events import EventsLoader <EOL> from zipline . utils . memoize import lazyval <EOL> class _13DFilingsLoader ( EventsLoader ) : <EOL> """<STR_LIT>""" <EOL> expected_cols = frozenset ( [ DISCLOSURE_DATE , <EOL> PERCENT_SHARES , <EOL> NUM_SHARES ] ) <EOL> event_date_col = DISCLOSURE_DATE <EOL> def __init__ ( self , all_dates , events_by_sid , <EOL> infer_timestamps = False , <EOL> dataset = _13DFilings ) : <EOL> super ( _13DFilingsLoader , self ) . __init__ ( <EOL> all_dates , events_by_sid , infer_timestamps , dataset = dataset , <EOL> ) <EOL> @ lazyval <EOL> def disclosure_date_loader ( self ) : <EOL> return self . _previous_event_date_loader ( <EOL> self . dataset . disclosure_date , <EOL> ) <EOL> @ lazyval <EOL> def percent_shares_loader ( self ) : <EOL> return self . _previous_event_value_loader ( <EOL> self . dataset . percent_shares , <EOL> PERCENT_SHARES <EOL> ) <EOL> @ lazyval <EOL> def number_shares_loader ( self ) : <EOL> return self . _previous_event_value_loader ( <EOL> self . dataset . number_shares , <EOL> NUM_SHARES <EOL> ) </s>
