<s> """<STR_LIT>""" <EOL> import sys <EOL> import logging <EOL> from modularodm import Q <EOL> from website . app import init_app <EOL> from website . models import User <EOL> from scripts import utils as script_utils <EOL> logger = logging . getLogger ( '<STR_LIT>' ) <EOL> def main ( dry = True ) : <EOL> init_app ( set_backends = True , routes = False ) <EOL> count = <NUM_LIT:0> <EOL> for user in User . find ( Q ( '<STR_LIT>' , '<STR_LIT>' , None ) ) : <EOL> is_claimed = bool ( user . date_confirmed ) <EOL> logger . info ( '<STR_LIT>' . format ( user . _id , is_claimed ) ) <EOL> user . is_claimed = is_claimed <EOL> count += <NUM_LIT:1> <EOL> if not dry : <EOL> user . save ( ) <EOL> logger . info ( '<STR_LIT>' . format ( count ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> dry = '<STR_LIT>' in sys . argv <EOL> if not dry : <EOL> script_utils . add_file_logger ( logger , __file__ ) <EOL> main ( dry = dry ) </s>
