<commit_before>package water;

import java.util.Arrays;

import org.junit.*;

public class AutoSerialTest extends Iced {

  @BeforeClass public static void stall() { TestUtil.stall_till_cloudsize(1); }

  byte _byte, _bytes[];
  short _short, _shorts[];
  int _int, _ints[];
  float _float, _floats[];
  long _long, _longs[], _longss[][];
  double _double,_doubles[],_doubless[][];
  String _string;
  Key _key;

  static AutoBuffer _ab = new AutoBuffer(new byte[1000]);
  static AutoBuffer abw() { return _ab.clearForWriting(); }
  static AutoBuffer abr() { return _ab. flipForReading(); }


  @Test public void testByte() throws Exception {
    byte[] tests = { 0, 4, -1, 127, -128 };
    for( byte exp : tests) {
      _byte = exp;
      this.write(abw());
      this. read(abr());
      Assert.assertEquals(exp, _byte);
    }
  }

  @Test public void testShort() throws Exception {<commit_msg>Test should stall for cloud<commit_after>package water;

import java.util.Arrays;

import org.junit.*;

public class AutoSerialTest extends Iced {

  @BeforeClass public static void stall() { 
    TestUtil.setupCloud();
    TestUtil.stall_till_cloudsize(1); 
  }
  @AfterClass public static void checkLeakedKeys() { TestUtil.checkLeakedKeys(); }

  byte _byte, _bytes[];
  short _short, _shorts[];
  int _int, _ints[];
  float _float, _floats[];
  long _long, _longs[], _longss[][];
  double _double,_doubles[],_doubless[][];
  String _string;
  Key _key;

  static AutoBuffer _ab = new AutoBuffer(new byte[1000]);
  static AutoBuffer abw() { return _ab.clearForWriting(); }
  static AutoBuffer abr() { return _ab. flipForReading(); }


  @Test public void testByte() throws Exception {
    byte[] tests = { 0, 4, -1, 127, -128 };
    for( byte exp : tests) {
      _byte = exp;
      this.write(abw());
      this. read(abr());
      Assert.assertEquals(exp, _byte);
    }
  }

  @Test public void testShort() throws Exception {
{'fraction_non_alphanumeric': 0.13551401869158877, 'fraction_numerical': 0.014537902388369679, 'mean_word_length': 3.7, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3939909', 'n_tokens_mistral': 673, 'n_tokens_neox': 643, 'n_words': 183}