original_docstring: Convert number to kilo / mega / giga format.
docstring: Convert number to kilo / mega / giga format.
docstring_tokens: Convert number to kilo / mega / giga format .
code: def human_format(number):
      """Convert number to kilo / mega / giga format."""
      if number < 1024:
          return "%d" % number
      kilo = float(number) / 1024.0
      if kilo < 1024:
          return "%.2fk" % kilo
      meg = kilo / 1024.0
      if meg < 1024:
          return "%.2fM" % meg
      gig = meg / 1024.0
      return "%.2fG" % gig
code_tokens: def human_format ( number ) : if number < 1024 : return "%d" % number kilo = float ( number ) / 1024.0 if kilo < 1024 : return "%.2fk" % kilo meg = kilo / 1024.0 if meg < 1024 : return "%.2fM" % meg gig = meg / 1024.0 return "%.2fG" % gig
short_docstring: Convert number to kilo / mega / giga format.
short_docstring_tokens: Convert number to kilo / mega / giga format .
comment: """Convert number to kilo / mega / giga format."""