parameters: (weights)
return_statement: return weights, maxAbsWeight
docstring: Normalizes the weights,
      such that the absolute maximum weight equals 1.0.
  
      Parameters:
        weights -- the list with the atomic weights
docstring_summary: Normalizes the weights,
      such that the absolute maximum weight equals 1.0.
docstring_tokens: Normalizes the weights such that the absolute maximum weight equals 1 . 0 .
function: def GetStandardizedWeights(weights):
    """
      Normalizes the weights,
      such that the absolute maximum weight equals 1.0.
  
      Parameters:
        weights -- the list with the atomic weights
      """
  
    maxAbsWeight = max(math.fabs(w) for w in weights)
    
    if maxAbsWeight > 0:
      return [w / maxAbsWeight for w in weights], maxAbsWeight
    return weights, maxAbsWeight
function_tokens: def GetStandardizedWeights ( weights ) : maxAbsWeight = max ( math . fabs ( w ) for w in weights ) if maxAbsWeight > 0 : return [ w / maxAbsWeight for w in weights ] , maxAbsWeight return weights , maxAbsWeight