original_docstring: Adds an internal tracking reference for the given quota.
docstring: Adds an internal tracking reference for the given quota.
docstring_tokens: Adds an internal tracking reference for the given quota .
code: def add_quota(self, quota):
          """Adds an internal tracking reference for the given quota."""
          if quota.limit is None or quota.limit == -1:
              # Handle "unlimited" quotas.
              self.usages[quota.name]['quota'] = float("inf")
              self.usages[quota.name]['available'] = float("inf")
          else:
              self.usages[quota.name]['quota'] = int(quota.limit)
code_tokens: def add_quota ( self , quota ) : if quota . limit is None or quota . limit == - 1 : self . usages [ quota . name ] [ 'quota' ] = float ( "inf" ) self . usages [ quota . name ] [ 'available' ] = float ( "inf" ) else : self . usages [ quota . name ] [ 'quota' ] = int ( quota . limit )
short_docstring: Adds an internal tracking reference for the given quota.
short_docstring_tokens: Adds an internal tracking reference for the given quota .
comment: """Adds an internal tracking reference for the given quota."""$SEP$# Handle "unlimited" quotas.