def get_email_token(self, send_email=True):

        token = uniqid()
        redis.setex(
            'user_password_token_{id}'.format(id=self['id']),  # key
            60 * 10,  # time
            bcrypt.encrypt(self['id'] + token)  # value
        )
        if send_email:
            send_mail(
                subject='Sagefy - Reset Password',
                recipient=self['email'],
                body=c('change_password_url').replace(
                    '{url}',
                    '%spassword?id=%s&token=%s' %
                    ('https://sagefy.org/', self['id'], token)
                )
            )
        return token
Move the contents of source_dir to dest_dir, which might not exist.
dataset/ETHPy150Open heiskr/sagefy/server/models/user.py/User.get_email_token--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/appcfg_java.py/JavaAppUpdate._MoveDirectoryContents