<commit_before>package edu.grinnell.callaway.jsonvalues;

import java.util.HashMap;
import java.util.Set;

public class JSONObject
    implements
      JSONValue
{

  HashMap<JSONString, JSONValue> object;

  public JSONObject(HashMap<JSONString, JSONValue> object)
  {
    this.object = object;
  }

  public String toJSON()
  {
    StringBuilder str = new StringBuilder();
    str.append('{');
    HashMap<JSONString, JSONValue> hash = this.object;
    Set<JSONString> keys = hash.keySet();
    for ( JSONString key : keys )
      {
        str.append(key.toJSON());
        str.append(hash.get(key).toJSON());
      }
    str.append(']');
    return str.toString();
  }
}<commit_msg>add ':' and spaces to objects<commit_after>package edu.grinnell.callaway.jsonvalues;

import java.util.HashMap;
import java.util.Set;

public class JSONObject
    implements
      JSONValue
{

  HashMap<JSONString, JSONValue> object;

  public JSONObject(HashMap<JSONString, JSONValue> object)
  {
    this.object = object;
  }

  public String toJSON()
  {
    StringBuilder str = new StringBuilder();
    str.append("{ ");
    HashMap<JSONString, JSONValue> hash = this.object;
    Set<JSONString> keys = hash.keySet();
    for ( JSONString key : keys )
      {
        str.append(key.toJSON());
        str.append(':');
        str.append(hash.get(key).toJSON());
        str.append(' ');
      }
    str.append('}');
    return str.toString();
  }
}
{'fraction_non_alphanumeric': 0.13620569840166782, 'fraction_numerical': 0.0, 'mean_word_length': 3.022346368715084, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4664869', 'n_tokens_mistral': 457, 'n_tokens_neox': 461, 'n_words': 94}