<commit_before>package ai.h2o.automl;

import org.junit.Test;
import sun.jvm.hotspot.utilities.Assert;


public class SpecialNATest {

  @Test public void intsTest() {
    ColMeta.SpecialNA specialInts = new ColMeta.SpecialNA(ColMeta.SpecialNA.INT);
    Assert.that(specialInts.typeToString().equals("int"), "type was " + specialInts.typeToString() + "; expected int");
    specialInts.add(5);

    // error to add String
    try {
      specialInts.add("hello");
    } catch( AssertionError e) {
      Assert.that(e.getMessage().equals("expected int; type is String"), "expected assertion");
    }

    // error to add double
    try {
      specialInts.add(5.34289);
    } catch( AssertionError e) {
      Assert.that(e.getMessage().equals("expected int; type is double"), "expected assertion");
    }

    for(int i=0;i<50;++i)
      specialInts.add(i);

    System.out.println();
  }
}<commit_msg>flesh out test<commit_after>package ai.h2o.automl;

import org.junit.Test;
import sun.jvm.hotspot.utilities.Assert;


public class SpecialNATest {

  @Test public void intsTest() {
    ColMeta.SpecialNA specialInts = new ColMeta.SpecialNA(ColMeta.SpecialNA.INT);
    Assert.that(specialInts.typeToString().equals("int"), "type was " + specialInts.typeToString() + "; expected int");
    specialInts.add(5);

    // error to add String
    try {
      specialInts.add("hello");
    } catch( AssertionError e) {
      Assert.that(e.getMessage().equals("expected int; type is String"), "expected assertion");
    }

    // error to add double
    try {
      specialInts.add(5.34289);
    } catch( AssertionError e) {
      Assert.that(e.getMessage().equals("expected int; type is double"), "expected assertion");
    }

    for(int i=0;i<50;++i)
      specialInts.add(i);
  }

  @Test public void strsTest() {
    ColMeta.SpecialNA specialStrs = new ColMeta.SpecialNA(ColMeta.SpecialNA.STR);
    Assert.that(specialStrs.typeToString().equals("String"), "type was " + specialStrs.typeToString() + "; expected String");
    specialStrs.add("hello");

    // error to add int
    try {
      specialStrs.add(5);
    } catch( AssertionError e) {
      Assert.that(e.getMessage().equals("expected String; type is int"), "expected assertion");
    }

    // error to add double
    try {
      specialStrs.add(5.34289);
    } catch( AssertionError e) {
      Assert.that(e.getMessage().equals("expected String; type is double"), "expected assertion");
    }

    for(int i=0;i<50;++i)
      specialStrs.add("_"+i);
  }

  @Test public void dblsTest() {
    ColMeta.SpecialNA specialDbls = new ColMeta.SpecialNA(ColMeta.SpecialNA.DBL);
    Assert.that(specialDbls.typeToString().equals("double"), "type was " + specialDbls.typeToString() + "; expected double");
    specialDbls.add(3.14159);

    // error to add String
    try {
      specialDbls.add("hello");
    } catch( AssertionError e) {
      Assert.that(e.getMessage().equals("expected double; type is String"), "expected assertion");
    }

    // error to add int
    try {
      specialDbls.add(5);
    } catch( AssertionError e) {
      Assert.that(e.getMessage().equals("expected double; type is int"), "expected assertion");
    }

    for(int i=0;i<50;++i)
      specialDbls.add(i+.34324);
  }
}
{'fraction_non_alphanumeric': 0.1494005533353827, 'fraction_numerical': 0.014448201660006148, 'mean_word_length': 3.29287598944591, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7317926', 'n_tokens_mistral': 1095, 'n_tokens_neox': 1052, 'n_words': 221}