parameters: (value)
return_statement: return mark_safe(abbr)
docstring: 13,324,4234 -> 13M
  	35,234 -> 35k
  	231,421,412,432 - 231B
docstring_summary: 13,324,4234 -> 13M
  	35,234 -> 35k
  	231,421,412,432 - 231B
docstring_tokens: 13 324 4234 - > 13M 35 234 - > 35k 231 421 412 432 - 231B
function: def abbreviate_number(value):
  	"""
  	13,324,4234 -> 13M
  	35,234 -> 35k
  	231,421,412,432 - 231B
  	"""
  	try:
  		n = int(value)
  	except:
  		return mark_safe(value)
  
  	if n > 1000000000:
  		abbr = "%dB" % ( n / 1000000000 )
  
  	elif n > 1000000:
  		abbr = "%dM" % ( n / 1000000 )
  
  	elif n > 1000:
  		abbr = "%dk" % ( n / 1000 )
  
  	else:
  		abbr = str(n)
  
  	return mark_safe(abbr)
function_tokens: def abbreviate_number ( value ) : try : n = int ( value ) except : return mark_safe ( value ) if n > 1000000000 : abbr = "%dB" % ( n / 1000000000 ) elif n > 1000000 : abbr = "%dM" % ( n / 1000000 ) elif n > 1000 : abbr = "%dk" % ( n / 1000 ) else : abbr = str ( n ) return mark_safe ( abbr )