<commit_before>package com.continuuity.passport.core.status;

import org.apache.commons.lang.StringUtils;

/**
 * Data management services Status
 */
public class Status {

  public enum Value {
    USER_REGISTERED_OK, USER_REGISTRATION_FAILED, USER_ALREADY_EXISTS,
    USER_DELETE_OK, USER_DELETE_FAILED,
    COMPONENT_REGISTRATION_OK, COMPONENT_REGISTRATION_FAILED,
    COMPONENT_UNREGISTERATION_OK, COMPONENT_UNREGISTRATION_FAILED,
    UPDATE_COMPONENT_OK, UPDATE_COMPONENT_FAILED,
    USER_AUTHENTICATION_FAILED
  }

  private Value value;

  private String reason;

  public Status(Value value) {
    this.reason = StringUtils.EMPTY;
    this.value = value;
  }


  public Status(Value value, String reason) {
    this.reason = reason;
    this.value = value;
  }

  public Value getValue() {
    return value;
  }

  public String getReason() {
    return reason;
  }
}<commit_msg>Update constructors in Status class<commit_after>package com.continuuity.passport.core.status;

import org.apache.commons.lang.StringUtils;

/**
 * Data management services Status
 */
public class Status {

  public enum Value {
    USER_REGISTERED_OK, USER_REGISTRATION_FAILED, USER_ALREADY_EXISTS,
    USER_DELETE_OK, USER_DELETE_FAILED,
    COMPONENT_REGISTRATION_OK, COMPONENT_REGISTRATION_FAILED,
    COMPONENT_UNREGISTERATION_OK, COMPONENT_UNREGISTRATION_FAILED,
    UPDATE_COMPONENT_OK, UPDATE_COMPONENT_FAILED,
    USER_AUTHENTICATION_FAILED
  }

  private final Value value;

  private final String reason;

  public Status( final Value value) {
    this (value, "");
  }

  public Status(Value value, String reason) {
    this.reason = reason;
    this.value = value;
  }

  public Value getValue() {
    return value;
  }

  public String getReason() {
    return reason;
  }
}
{'fraction_non_alphanumeric': 0.07605633802816901, 'fraction_numerical': 0.0, 'mean_word_length': 4.103448275862069, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6742679', 'n_tokens_mistral': 608, 'n_tokens_neox': 589, 'n_words': 122}