<commit_before>package org.json.simple.serialization;

import junit.framework.TestCase;

import java.util.HashMap;
import java.util.Map;

/**
 * @author kalle
 * @since 2010-nov-17 21:39:47
 */
public class TestMap extends TestCase {

  public void test() {

    Foo foo = new Foo();
    foo.getMap().put(1, "1ab");
    foo.getMap().put("2bc", 2);

    Bar bar = new Bar();
    bar.setInteger(3);
    bar.setString("foobar");
    foo.getMap().put(3, bar);

    System.out.println(new CodecRegistry().getCodec(Foo.class).marshal(foo));


  }

  public static class Foo {
    private Map map = new HashMap();

    public Map getMap() {
      return map;
    }

    public void setMap(Map map) {
      this.map = map;
    }
  }

  public static class Bar {
<commit_msg>see previous commit rev<commit_after>package org.json.simple.serialization;

import junit.framework.TestCase;

import java.util.HashMap;
import java.util.Map;

/**
 * @author kalle
 * @since 2010-nov-17 21:39:47
 */
public class TestMap extends TestCase {

  public void test() throws Exception {

    Foo foo = new Foo();
    foo.getMap().put(1, "1ab");
    foo.getMap().put("2bc", 2);

    Bar bar = new Bar();
    bar.setInteger(3);
    bar.setString("foobar");
    foo.getMap().put(3, bar);

    System.out.println(new CodecRegistry().getCodec(Foo.class).marshal(foo));


  }

  public static class Foo {
    private Map map = new HashMap();

    public Map getMap() {
      return map;
    }

    public void setMap(Map map) {
      this.map = map;
    }
  }

  public static class Bar {

{'fraction_non_alphanumeric': 0.14496472097498397, 'fraction_numerical': 0.023091725465041693, 'mean_word_length': 2.8805970149253732, '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': '1886403', 'n_tokens_mistral': 568, 'n_tokens_neox': 519, 'n_words': 131}