Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/m/a/manabi-HEAD/apps/flashcards/models/repetitionscheduler.py   manabi(Download)
from constants import (GRADE_NONE, GRADE_HARD, GRADE_GOOD, GRADE_EASY, MATURE_INTERVAL_MIN)
from flashcards.cachenamespaces import deck_review_stats_namespace
from flashcards.models.intervals import initial_interval
from utils import timedelta_to_float
 
        '''
        return (self.card.interval 
                < initial_interval(self.card.fact.deck, GRADE_EASY))
 
    def _next_interval(self, failure_interval=0):
    def _next_interval(self, failure_interval=0):
        #FIXME, do_fuzz=do_fuzz)
        interval = initial_interval(self.card.fact.deck, self.grade)
 
        #TODO Lessen interval if reviewed too soon after a sibling card.
    def _next_interval(self, failure_interval=0):
        #FIXME, do_fuzz=do_fuzz)
        interval = initial_interval(self.card.fact.deck, self.grade)
 
        #TODO lessen effect if reviewed successfully very soon after a 

src/m/a/manabi-HEAD/apps/flashcards/models/decks.py   manabi(Download)
from constants import GRADE_NONE, GRADE_HARD, GRADE_GOOD, GRADE_EASY
from flashcards.cachenamespaces import deck_review_stats_namespace
from flashcards.models.intervals import initial_interval
from itertools import chain
import cards