auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>private RangerCloudIdentitySyncStatus setAzureCloudIdentityMapping(String envCrn, SdxCluster sdxCluster, Map<String, String> azureUserMapping) { String stackCrn = sdxCluster.getStackCrn(); LOGGER.info("Updating azure cloud id mappings for envCrn = {}, datalake stack crn = {}", envCrn, stackCrn); try { if (!clouderaManagerRangerUtil.isCloudIdMappingSupported(sdxCluster.getStackCrn())) { <START> return sucessfulCloudIdSyncStatus("The datalake does not support cloud identity sync. Sync request is ignored."); <END> } Optional<ApiCommand> apiCommand = clouderaManagerRangerUtil.setAzureCloudIdentityMapping(stackCrn, azureUserMapping); if (apiCommand.isEmpty()) { return sucessfulCloudIdSyncStatus("Sucessfully synced, no role refresh required"); } return toRangerCloudIdentitySyncStatus(apiCommand.get()); } catch (ApiException e) { LOGGER.error("Encountered api exception", e); return failedRangerCloudIdentitySyncStatus("Encountered cloudera manager api exception"); } }</code><technical_language>"unsupported" status instead of successful? successful misleading me</technical_language>

Target:
private RangerCloudIdentitySyncStatus setAzureCloudIdentityMapping(String envCrn, SdxCluster sdxCluster, Map<String, String> azureUserMapping) { String stackCrn = sdxCluster.getStackCrn(); LOGGER.info("Updating azure cloud id mappings for envCrn = {}, datalake stack crn = {}", envCrn, stackCrn); try { if (!clouderaManagerRangerUtil.isCloudIdMappingSupported(sdxCluster.getStackCrn())) { return newSyncStatus(RangerCloudIdentitySyncState.NOT_APPLICABLE, "The datalake does not support cloud identity sync. Sync request is ignored."); } Optional<ApiCommand> apiCommand = clouderaManagerRangerUtil.setAzureCloudIdentityMapping(stackCrn, azureUserMapping); if (apiCommand.isEmpty()) { return newSyncStatus(RangerCloudIdentitySyncState.SUCCESS, "Sucessfully synced, no role refresh required"); } return toRangerCloudIdentitySyncStatus(apiCommand.get()); } catch (ApiException e) { LOGGER.error("Encountered api exception", e); return newSyncStatus(RangerCloudIdentitySyncState.FAILED, "Encountered cloudera manager api exception"); } }