def METHOD_NAME(dAnalysis, compact_alignment):
    iMaxLeftColumn = 0
    iMinLeftColumn = 9999999999999999
    iMaxTokenColumn = 0
    iMinTokenColumn = 9999999999999999
    for iKey in list(dAnalysis.keys()):
        iMaxLeftColumn = max(iMaxLeftColumn, dAnalysis[iKey]['comma_column'])
        iMinLeftColumn = min(iMinLeftColumn, dAnalysis[iKey]['comma_column'])
        iMaxTokenColumn = max(iMaxTokenColumn, dAnalysis[iKey]['identifier_column'])
        iMinTokenColumn = min(iMinTokenColumn, dAnalysis[iKey]['identifier_column'])
    if compact_alignment:
        for iKey in list(dAnalysis.keys()):
            dAnalysis[iKey]['adjust'] = iMaxLeftColumn - dAnalysis[iKey]['identifier_column'] + 1
    else:
        for iKey in list(dAnalysis.keys()):
            dAnalysis[iKey]['adjust'] = iMaxTokenColumn - dAnalysis[iKey]['identifier_column'] + 1