<commit_before>/*
 * Copyright 2004 The Closure Compiler Authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.javascript.jscomp;

import com.google.javascript.rhino.Node;
import java.io.Serializable;
import javax.annotation.Nullable;

/**
 * Compile error description
 *
 */
public final class JSError implements Serializable {
  /** A type of the error */
  private final DiagnosticType type;

  /** Description of the error */
  public final String description;

  public String getDescription() {
    return description;
  }

  /** Name of the source */
  public final String sourceName;

  public String getSourceName() {
    return sourceName;
  }

  /** Node where the warning occurred. */
  public final Node node;

  public Node getNode() {
    return node;
  }

  /** Line number of the source */
  public final int lineNumber;

  private final CheckLevel defaultLevel;

  // character number
  private final int charno;

  //<commit_msg>Make all fields of `JSError` private.<commit_after>/*
 * Copyright 2004 The Closure Compiler Authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.javascript.jscomp;

import com.google.javascript.rhino.Node;
import java.io.Serializable;
import javax.annotation.Nullable;

/**
 * Compile error description
 *
 */
public final class JSError implements Serializable {
  /** A type of the error */
  private final DiagnosticType type;

  /** Description of the error */
  private final String description;

  public String getDescription() {
    return description;
  }

  /** Name of the source */
  private final String sourceName;

  public String getSourceName() {
    return sourceName;
  }

  /** Node where the warning occurred. */
  private final Node node;

  public Node getNode() {
    return node;
  }

  /** Line number of the source */
  private final int lineNumber;

  private final CheckLevel defaultLevel;

  // character number
  private final int charno;

  //
{'fraction_non_alphanumeric': 0.08110814419225634, 'fraction_numerical': 0.0053404539385847796, 'mean_word_length': 3.44, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6029398', 'n_tokens_mistral': 799, 'n_tokens_neox': 761, 'n_words': 345}