<commit_before>package core_types

import (
	"github.com/tendermint/tendermint/account"
	sm "github.com/tendermint/tendermint/state"
	"github.com/tendermint/tendermint/types"
)

type ResponseGenPrivAccount struct {
	PrivAccount *account.PrivAccount `json:"priv_account"`
}

type ResponseGetAccount struct {
	Account *account.Account `json:"account"`
}

type ResponseGetStorage struct {
	Key   []byte `json:"key"`
	Value []byte `json:"value"`
}

type ResponseCall struct {
	Return  []byte `json:"return"`
	GasUsed uint64 `json:"gas_used"`
	// TODO ...
}

type ResponseListAccounts struct {
	BlockHeight uint               `json:"block_height"`
	Accounts    []*account.Account `json:"accounts"`
}

type StorageItem struct {
	Key   []byte `json:"key"`
	Value []byte `json:"value"`
}

type ResponseDumpStorage struct {
	StorageRoot  []byte        `json:"storage_root"`
	StorageItems []StorageItem `json:"storage_items"`
}

type ResponseBlockchainInfo struct {
	LastHeight uint               `json:"last_height"`
	BlockMetas []*types.BlockMeta `json:"block_metas"`
}

type ResponseGetBlock struct {
	BlockMeta *types.BlockMeta `json:"block_meta"`
	Block     *types.Block     `json:"block"`
}

type ResponseBroadcastTx struct {
	Receipt Receipt `json:"receipt"`
}

type ResponseListUnconfirmedTxs struct {
	Txs []types.Tx `json:"txs"`
}

type Receipt struct {
	TxHash          []byte `json:"tx_hash"`
	CreatesContract uint8  `json:"creates_contract"`
	ContractAddr    []byte `json:"contract_addr"`
}

type ResponseStatus struct {
	GenesisHash       []byte `json:"genesis_hash"`
	Network           string `json:"network"`
	LatestBlockHash   []byte `json:"lastest_block_hash"`
	LatestBlockHeight uint   `json:"lastest_block_height"`
	LatestBlockTime   int64  `json:"latest_bloick_time"` // nano
}

type ResponseNetInfo struct {
	Moniker   string   `json:"moniker"`
	Network   string   `json:"network"`
	Listening bool     `json:"listening"`
	Listeners []string `json:"listeners"`
	Peers     []Peer   `json:"peers"`
}

type Peer struct {
	types.NodeInfo `json:"net_info"`
	IsOutbound     bool `json:"is_outbound"`
}

type ResponseSignTx struct {
	Tx types.Tx `json:"tx"`
}<commit_msg>json field fixes<commit_after>package core_types

import (
	"github.com/tendermint/tendermint/account"
	sm "github.com/tendermint/tendermint/state"
	"github.com/tendermint/tendermint/types"
)

type ResponseGenPrivAccount struct {
	PrivAccount *account.PrivAccount `json:"priv_account"`
}

type ResponseGetAccount struct {
	Account *account.Account `json:"account"`
}

type ResponseGetStorage struct {
	Key   []byte `json:"key"`
	Value []byte `json:"value"`
}

type ResponseCall struct {
	Return  []byte `json:"return"`
	GasUsed uint64 `json:"gas_used"`
	// TODO ...
}

type ResponseListAccounts struct {
	BlockHeight uint               `json:"block_height"`
	Accounts    []*account.Account `json:"accounts"`
}

type StorageItem struct {
	Key   []byte `json:"key"`
	Value []byte `json:"value"`
}

type ResponseDumpStorage struct {
	StorageRoot  []byte        `json:"storage_root"`
	StorageItems []StorageItem `json:"storage_items"`
}

type ResponseBlockchainInfo struct {
	LastHeight uint               `json:"last_height"`
	BlockMetas []*types.BlockMeta `json:"block_metas"`
}

type ResponseGetBlock struct {
	BlockMeta *types.BlockMeta `json:"block_meta"`
	Block     *types.Block     `json:"block"`
}

type ResponseBroadcastTx struct {
	Receipt Receipt `json:"receipt"`
}

type ResponseListUnconfirmedTxs struct {
	Txs []types.Tx `json:"txs"`
}

type Receipt struct {
	TxHash          []byte `json:"tx_hash"`
	CreatesContract uint8  `json:"creates_contract"`
	ContractAddr    []byte `json:"contract_addr"`
}

type ResponseStatus struct {
	GenesisHash       []byte `json:"genesis_hash"`
	Network           string `json:"network"`
	LatestBlockHash   []byte `json:"latest_block_hash"`
	LatestBlockHeight uint   `json:"latest_block_height"`
	LatestBlockTime   int64  `json:"latest_block_time"` // nano
}

type ResponseNetInfo struct {
	Moniker   string   `json:"moniker"`
	Network   string   `json:"network"`
	Listening bool     `json:"listening"`
	Listeners []string `json:"listeners"`
	Peers     []Peer   `json:"peers"`
}

type Peer struct {
	types.NodeInfo `json:"node_info"`
	IsOutbound     bool `json:"is_outbound"`
}

type ResponseSignTx struct {
	Tx types.Tx `json:"tx"`
}
{'fraction_non_alphanumeric': 0.12824638014249598, 'fraction_numerical': 0.0022983222247759134, 'mean_word_length': 4.601029601029601, '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': '3487513', 'n_tokens_mistral': 1445, 'n_tokens_neox': 1422, 'n_words': 318}