<commit_before>package io.burt.jmespath.node;

import io.burt.jmespath.Adapter;

public class JsonLiteralNode<T> extends Node<T> {
  private final String rawJson;
  private final T json;

  public JsonLiteralNode(Adapter<T> runtime, String rawJson) {
    super(runtime);
    this.rawJson = rawJson;
    this.json = runtime.parseString(rawJson);
  }

  @Override
  public T search(T input) {
    return json;
  }

  @Override
  protected String internalToString() {
    return rawJson;
  }

  @Override
  protected boolean internalEquals(Object o) {
    JsonLiteralNode<?> other = (JsonLiteralNode<?>) o;
    return json.equals(other.json);
  }

  @Override
  protected int internalHashCode() {
    return json.hashCode();
  }
}<commit_msg>Use "value" and not "json" in JsonLiteralNode<commit_after>package io.burt.jmespath.node;

import io.burt.jmespath.Adapter;

public class JsonLiteralNode<T> extends Node<T> {
  private final String rawValue;
  private final T value;

  public JsonLiteralNode(Adapter<T> runtime, String rawValue) {
    super(runtime);
    this.rawValue = rawValue;
    this.value = runtime.parseString(rawValue);
  }

  @Override
  public T search(T input) {
    return value;
  }

  @Override
  protected String internalToString() {
    return rawValue;
  }

  @Override
  protected boolean internalEquals(Object o) {
    JsonLiteralNode<?> other = (JsonLiteralNode<?>) o;
    return value.equals(other.value);
  }

  @Override
  protected int internalHashCode() {
    return value.hashCode();
  }
}
{'fraction_non_alphanumeric': 0.10643889618922471, 'fraction_numerical': 0.0, 'mean_word_length': 3.834920634920635, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '4231402', 'n_tokens_mistral': 483, 'n_tokens_neox': 473, 'n_words': 120}