p-doom/crowd-code-dataset-0.2 huggingface dataset:
[content] crowd-pilot/crowd-pilot/serialization_utils.py (python)
        # No non-equal opcodes means there is no actual change between before/after.
        # Treat this as a benign no-op for callers that may have accumulated and
        # then cancelled out an edit burst.
        raise ValueError("No changes between before and after; opcode list is empty.")
[content] crowd-pilot/crowd-pilot/serialization_utils.py (python)
        # If the accumulated edits net out to no change, treat this as a benign
        # no-op and just clear the pending state without emitting any sed/cat.
        if before_snapshot == after_state:
            pending_edits_before[target_file] = None
            pending_edit_regions[target_file] = None
            return
        (
            start_before,
            end_before,
            start_after,
            end_after,
            repl_lines,
        ) = _compute_changed_block_lines(before_snapshot, after_state)
[content] crowd-pilot/crowd-pilot/serialization_utils.py (python)
        # If the accumulated edits net out to no change (modulo trailing newlines),
        # treat this as a benign no-op and just clear the pending state without
        # emitting any sed/cat.
        if before_snapshot.rstrip("
") == after_state.rstrip("
"):