<commit_before>package datamodel

import (
	. "launchpad.net/gocheck"
)

type TestJsonStruct struct {
	String  string
	UInt16  uint16
	Int     int
	Bool    bool
	Float64 float64
	Slice   []string
	Map     map[string]string
}

func (s *DatamodelSuite) TestJson(c *C) {
	var getObj TestJsonStruct
	c.Assert(getJson("/testjson", &getObj), Not(IsNil))
	testObj := &TestJsonStruct{"string", 5, -2, true, 0.1337, []string{"leet"},
		map[string]string{"jigish": "winning"}}
	c.Assert(setJson("/testjson", testObj), IsNil)
	c.Assert(getJson("/testjson", &getObj), IsNil)
	c.Assert(getObj, DeepEquals, *testObj)
}<commit_msg>fix json test<commit_after>package datamodel

import (
	. "launchpad.net/gocheck"
)

type TestJsonStruct struct {
	String  string
	UInt16  uint16
	Int     int
	Bool    bool
	Float64 float64
	Slice   []string
	Map     map[string]string
}

func (s *DatamodelSuite) TestJson(c *C) {
	Zk.RecursiveDelete("/testjson")
	var getObj TestJsonStruct
	c.Assert(getJson("/testjson", &getObj), Not(IsNil))
	testObj := &TestJsonStruct{"string", 5, -2, true, 0.1337, []string{"leet"},
		map[string]string{"jigish": "winning"}}
	c.Assert(setJson("/testjson", testObj), IsNil)
	c.Assert(getJson("/testjson", &getObj), IsNil)
	c.Assert(getObj, DeepEquals, *testObj)
}
{'fraction_non_alphanumeric': 0.1533596837944664, 'fraction_numerical': 0.023715415019762844, 'mean_word_length': 4.943661971830986, 'pattern_counts': {'":': 2, '<': 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': '3390039', 'n_tokens_mistral': 506, 'n_tokens_neox': 478, 'n_words': 103}