<commit_before>from itertools import count
import json
import pytest
from devp2p.peermanager import PeerManager
from ethereum import tester
from ethereum.ethpow import mine
from ethereum.slogging import get_logger
from pyethapp.accounts import Account, AccountsService, mk_random_privkey
from pyethapp.app import EthApp
from pyethapp.config import update_config_with_defaults, get_default_config
from pyethapp.db_service import DBService
from pyethapp.eth_service import ChainService
from pyethapp.jsonrpc import JSONRPCServer, quantity_encoder, address_encoder, data_decoder,   \
                             data_encoder
from pyethapp.pow_service import PoWService

log = get_logger('test.jsonrpc')


# EVM code corresponding to the following solidity code:
#<commit_msg>Use fewer key derivation iterations for RPC tests<commit_after>from itertools import count
import json
import pytest
from devp2p.peermanager import PeerManager
from ethereum import tester
from ethereum.ethpow import mine
import ethereum.keys
from ethereum.slogging import get_logger
from pyethapp.accounts import Account, AccountsService, mk_random_privkey
from pyethapp.app import EthApp
from pyethapp.config import update_config_with_defaults, get_default_config
from pyethapp.db_service import DBService
from pyethapp.eth_service import ChainService
from pyethapp.jsonrpc import JSONRPCServer, quantity_encoder, address_encoder, data_decoder,   \
                             data_encoder
from pyethapp.pow_service import PoWService

# reduce key derivation iterations
ethereum.keys.PBKDF2_CONSTANTS['c'] = 100


log = get_logger('test.jsonrpc')


# EVM code corresponding to the following solidity code:
#
{'fraction_non_alphanumeric': 0.04102259215219976, 'fraction_numerical': 0.0035671819262782403, 'mean_word_length': 5.498069498069498, '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': '3492832', 'n_tokens_mistral': 485, 'n_tokens_neox': 474, 'n_words': 153}