def read_bom(data):
    # common case is no BOM, so this is fast
    if data and data[0] in _FIRST_CHARS:
        for bom, encoding in _BOM_TABLE:
            if data.startswith(bom):
                return encoding, bom
    return None, None
This function creates some parameters to be used with Gromos.
dataset/ETHPy150Open lorien/grab/grab/document.py/read_bom--crossover with--dataset/ETHPy150Open victor-gil-sepulveda/pyProCT/pyproct/clustering/algorithms/gromos/parametersGeneration.py/ParametersGenerator.get_parameters