original_docstring: 
      If floor is None, Scales a list of floats linearly between 100*min/max and 100 
      Otherwise, scales a list of floats linearly between floor and 100 
      
docstring: If floor is None, Scales a list of floats linearly between 100*min/max and 100
  Otherwise, scales a list of floats linearly between floor and 100
docstring_tokens: If floor is None Scales a list of floats linearly between 100 * min / max and 100 Otherwise scales a list of floats linearly between floor and 100
code: def scale_list(vals, floor=None):
      """
      If floor is None, Scales a list of floats linearly between 100*min/max and 100 
      Otherwise, scales a list of floats linearly between floor and 100 
      """
      if len(vals) < 1:
          return []
      nonull_vals = []
      for v in vals:
          if v is not None:
              nonull_vals.append(v)
          else:
              logger.error("WARNING: null value enountered in a scaled list: assuming zero!")
              nonull_vals.append(0)
      minval = min(nonull_vals)
      maxval = max(nonull_vals)
      high = 100.0
      if floor is None:
          try:
              low = 100.0 * float(minval)/maxval
          except ZeroDivisionError:
              low = 0
      else:
          low = floor
      if maxval == minval: 
          return [0] * len(vals)
      scaled = [high - (z / float(maxval - minval)) for z in 
                  [(high - low) * y for y in 
                      [maxval - x for x in nonull_vals]]] 
      return scaled
code_tokens: def scale_list ( vals , floor = None ) : if len ( vals ) < 1 : return [ ] nonull_vals = [ ] for v in vals : if v is not None : nonull_vals . append ( v ) else : logger . error ( "WARNING: null value enountered in a scaled list: assuming zero!" ) nonull_vals . append ( 0 ) minval = min ( nonull_vals ) maxval = max ( nonull_vals ) high = 100.0 if floor is None : try : low = 100.0 * float ( minval ) / maxval except ZeroDivisionError : low = 0 else : low = floor if maxval == minval : return [ 0 ] * len ( vals ) scaled = [ high - ( z / float ( maxval - minval ) ) for z in [ ( high - low ) * y for y in [ maxval - x for x in nonull_vals ] ] ] return scaled
short_docstring: If floor is None, Scales a list of floats linearly between 100*min/max and 100
  Otherwise, scales a list of floats linearly between floor and 100
short_docstring_tokens: If floor is None Scales a list of floats linearly between 100 * min / max and 100 Otherwise scales a list of floats linearly between floor and 100
comment: """
      If floor is None, Scales a list of floats linearly between 100*min/max and 100 
      Otherwise, scales a list of floats linearly between floor and 100 
      """