def combine_trailing_code_chunks(partitions):
    chunks = list(partitions)

    NON_COMBINABLE = (CodeType.IMPORT, CodeType.PRE_IMPORT_CODE)
    if chunks and chunks[-1].code_type not in NON_COMBINABLE:
        src = chunks.pop().src
        while chunks and NON_COMBINABLE not in chunks[-1].code_type:
            src = chunks.pop().src + src

        chunks.append(CodePartition(CodeType.CODE, src))
    return chunks
dataset/ETHPy150Open asottile/reorder_python_imports/reorder_python_imports/main.py/combine_trailing_code_chunks/swapped operands of `not in`