<commit_before>package com.hubspot.jinjava.lib.exptest;

import com.hubspot.jinjava.doc.annotations.JinjavaDoc;
import com.hubspot.jinjava.doc.annotations.JinjavaParam;
import com.hubspot.jinjava.interpret.InterpretException;
import com.hubspot.jinjava.interpret.JinjavaInterpreter;


@JinjavaDoc(value="Return true if variable is pointing at same object as other variable",
    params=@JinjavaParam(value="other", type="object", desc="A second object to check the variables value against"), 
    snippets={
  @JinjavaSnippet(
      code="{% if var_one is sameas var_two %}\n" +
      "<!-- code to render if variables have the same value -->\n" +
      "{% endif %}"),
  }
    )
public class IsSameAsExpTest implements ExpTest {

  @Override
  public String getName() {
    return "sameas";
  }

  @Override
  public boolean evaluate(Object var, JinjavaInterpreter interpreter,
      Object... args) {
    if(args.length == 0) {
      throw new InterpretException(getName() + " test requires 1 argument");
    }

    return var == args[0];
  }

}
<commit_msg>Added imports for snippets and param for isSameAs to fix error<commit_after>package com.hubspot.jinjava.lib.exptest;

import com.hubspot.jinjava.doc.annotations.JinjavaDoc;
import com.hubspot.jinjava.doc.annotations.JinjavaParam;
import com.hubspot.jinjava.doc.annotations.JinjavaSnippet;
import com.hubspot.jinjava.interpret.InterpretException;
import com.hubspot.jinjava.interpret.JinjavaInterpreter;


@JinjavaDoc(value="Return true if variable is pointing at same object as other variable",
    params=@JinjavaParam(value="other", type="object", desc="A second object to check the variables value against"), 
    snippets={
  @JinjavaSnippet(
      code="{% if var_one is sameas var_two %}\n" +
      "<!-- code to render if variables have the same value -->\n" +
      "{% endif %}"),
  }
    )
public class IsSameAsExpTest implements ExpTest {

  @Override
  public String getName() {
    return "sameas";
  }

  @Override
  public boolean evaluate(Object var, JinjavaInterpreter interpreter,
      Object... args) {
    if(args.length == 0) {
      throw new InterpretException(getName() + " test requires 1 argument");
    }

    return var == args[0];
  }

}

{'fraction_non_alphanumeric': 0.11579892280071813, 'fraction_numerical': 0.0026929982046678637, 'mean_word_length': 3.909691629955947, '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': '7391948', 'n_tokens_mistral': 712, 'n_tokens_neox': 677, 'n_words': 182}