`calculate_adaptive_sample_inputs` gets stuck when sampling only one line.
calculate_adaptive_sample_inputsgets stuck when sampling only one line.