<commit_before>package com.intellij.openapi.diagnostic;

/**
 * Created by IntelliJ IDEA.
 * User: max
 * Date: Feb 17, 2005
 * Time: 9:42:38 PM
 * To change this template use File | Settings | File Templates.
 */
public class SubmittedReportInfo {
  public static class SubmissionStatus {
    public static SubmissionStatus NEW_ISSUE = new SubmissionStatus("NEW_ISSUE");
    public static SubmissionStatus DUPLICATE = new SubmissionStatus("DUPLICATE");
    public static SubmissionStatus FAILED = new SubmissionStatus("FAILED");
    private String myName;

    private SubmissionStatus(String name) {
      myName = name;
    }

    public String toString() {
      return "SubmissionStatus[" + myName + "]";
    }
  }

  private String myURL;
  private String myLinkText;
  private SubmissionStatus myStatus;

  public SubmittedReportInfo(final String URL, final String linkText, final SubmissionStatus status) {
    myURL = URL;
    myLinkText = linkText;
    myStatus = status;
  }
<commit_msg>Documentation added.<commit_after>package com.intellij.openapi.diagnostic;

/**
 * Simple bean representing error submission status.
 */
public class SubmittedReportInfo {
  public static class SubmissionStatus {
    /**
     * Issue have been succesfully created
     */
    public static SubmissionStatus NEW_ISSUE = new SubmissionStatus("NEW_ISSUE");

    /**
     * Issue user have been trying to submit is actually a duplicate of existing one
     */
    public static SubmissionStatus DUPLICATE = new SubmissionStatus("DUPLICATE");

    /**
     * Submission failed. (For network connection reasons for example)
     */
    public static SubmissionStatus FAILED = new SubmissionStatus("FAILED");
    private String myName;

    private SubmissionStatus(String name) {
      myName = name;
    }

    public String toString() {
      return "SubmissionStatus[" + myName + "]";
    }
  }

  private String myURL;
  private String myLinkText;
  private SubmissionStatus myStatus;

  /**
   * Create new submission status bean
   * @param URL url that points to newly created issue. Optional. Pass <code>null</code> value if N/A or failed
   * @param linkText short text that UI interface pointing to the issue should have.
   * @param status submission success/failure
   */
  public SubmittedReportInfo(final String URL, final String linkText, final SubmissionStatus status) {
    myURL = URL;
    myLinkText = linkText;
    myStatus = status;
  }

{'fraction_non_alphanumeric': 0.08040816326530613, 'fraction_numerical': 0.004489795918367347, 'mean_word_length': 3.530499075785582, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1116513', 'n_tokens_mistral': 688, 'n_tokens_neox': 663, 'n_words': 227}