def validate_cache_timestamp(self, cache_ts, token_ts=None):
        now = int(time.time())
        valid = (now - cache_ts) < self.config['token_cache_age']

        if valid and token_ts:
            valid2 = (now - token_ts) < self.config['token_max_age']
            valid3 = (now - token_ts) < self.config['token_new_age']
            valid = valid2 and valid3

        return valid
Fit both models to the training data.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/webapp2-2.3/webapp2_extras/auth.py/AuthStore.validate_cache_timestamp--crossover with--dataset/ETHPy150Open Mendeley/mrec/mrec/reranking_recommender.py/RerankingRecommender.fit