Source:
<code>protected boolean onSubmit(String enteredPasscode) { <START> boolean showBiometricEnrollment = !passcodeManager.getBiometricEnabled() && <END> !passcodeManager.getBiometricEnrollmentShown() && passcodeManager.getBiometricAllowed() && canShowBiometric(); switch (getMode()) { case Create: firstPasscode = enteredPasscode; setMode(PasscodeMode.CreateConfirm); return true; case CreateConfirm: if (enteredPasscode.equals(firstPasscode)) { passcodeManager.store(this, enteredPasscode); if (showBiometricEnrollment) { setMode(PasscodeMode.EnableBiometric); } else { if (!passcodeManager.getPasscodeLengthKnown()) { passcodeManager.setPasscodeLength(this, enteredPasscode.length()); } passcodeManager.unlock(); done(); } } else { instr.setText(getString(R.string.sf__passcodes_dont_match)); } return true; case Check: if (passcodeManager.check(this, enteredPasscode)) { if (showBiometricEnrollment) { setMode(PasscodeMode.EnableBiometric); } else { passcodeManager.unlock(); done(); } } else { logoutButton.setVisibility(View.VISIBLE); int attempts = passcodeManager.addFailedPasscodeAttempt(); passcodeField.setText(""); int maxAttempts = getMaxPasscodeAttempts(); if (attempts < maxAttempts - 1) { instr.setText(getString(R.string.sf__passcode_try_again, (maxAttempts - attempts))); } else if (attempts < maxAttempts) { instr.setText(getString(R.string.sf__passcode_final)); } else { signoutAllUsers(); } } return true; case Change: firstPasscode = enteredPasscode; setMode(PasscodeMode.CreateConfirm); return true; } return false; }</code><technical_language>rename methods isBiometricEnabled(), isBiometricEnrollmentShown(), isBiometricAllowed()? is is typically more get for methods return boolean</technical_language>

Target:
protected boolean onSubmit(String enteredPasscode) { boolean showBiometricEnrollment = !passcodeManager.biometricEnabled() && !passcodeManager.biometricEnrollmentShown() && passcodeManager.biometricAllowed() && canShowBiometric(); switch (getMode()) { case Create: firstPasscode = enteredPasscode; setMode(PasscodeMode.CreateConfirm); return true; case CreateConfirm: if (enteredPasscode.equals(firstPasscode)) { passcodeManager.store(this, enteredPasscode); if (showBiometricEnrollment) { setMode(PasscodeMode.EnableBiometric); } else { if (!passcodeManager.getPasscodeLengthKnown()) { passcodeManager.setPasscodeLength(this, enteredPasscode.length()); } passcodeManager.unlock(); done(); } } else { instr.setText(getString(R.string.sf__passcodes_dont_match)); } return true; case Check: if (passcodeManager.check(this, enteredPasscode)) { if (showBiometricEnrollment) { setMode(PasscodeMode.EnableBiometric); } else { passcodeManager.unlock(); done(); } } else { logoutButton.setVisibility(View.VISIBLE); int attempts = passcodeManager.addFailedPasscodeAttempt(); passcodeField.setText(""); int maxAttempts = getMaxPasscodeAttempts(); if (attempts < maxAttempts - 1) { instr.setText(getString(R.string.sf__passcode_try_again, (maxAttempts - attempts))); } else if (attempts < maxAttempts) { instr.setText(getString(R.string.sf__passcode_final)); } else { signoutAllUsers(); } } return true; case Change: firstPasscode = enteredPasscode; setMode(PasscodeMode.CreateConfirm); return true; } return false; }