original_docstring: Slovak aware time frame format function, takes into account
          the differences between past and future forms.
docstring: Slovak aware time frame format function, takes into account
  the differences between past and future forms.
docstring_tokens: Slovak aware time frame format function takes into account the differences between past and future forms .
code: def _format_timeframe(self, timeframe, delta):
          '''Slovak aware time frame format function, takes into account
          the differences between past and future forms.'''
          form = self.timeframes[timeframe]
          if isinstance(form, dict):
              if delta == 0:
                  form = form['zero']  # And *never* use 0 in the singular!
              elif delta > 0:
                  form = form['future']
              else:
                  form = form['past']
          delta = abs(delta)
  
          if isinstance(form, list):
              if 2 <= delta % 10 <= 4 and (delta % 100 < 10 or delta % 100 >= 20):
                  form = form[0]
              else:
                  form = form[1]
  
          return form.format(delta)
code_tokens: def _format_timeframe ( self , timeframe , delta ) : form = self . timeframes [ timeframe ] if isinstance ( form , dict ) : if delta == 0 : form = form [ 'zero' ] elif delta > 0 : form = form [ 'future' ] else : form = form [ 'past' ] delta = abs ( delta ) if isinstance ( form , list ) : if 2 <= delta % 10 <= 4 and ( delta % 100 < 10 or delta % 100 >= 20 ) : form = form [ 0 ] else : form = form [ 1 ] return form . format ( delta )
short_docstring: Slovak aware time frame format function, takes into account
  the differences between past and future forms.
short_docstring_tokens: Slovak aware time frame format function takes into account the differences between past and future forms .
comment: '''Slovak aware time frame format function, takes into account
          the differences between past and future forms.'''$SEP$# And *never* use 0 in the singular!