<commit_before>#!/usr/bin/env python

from urllib2 import urlopen

import pytest

try:
    from jsonrpclib import ServerProxy
except ImportError:
    py.test.skip("Skip: No JSON support")

from circuits import Component
from circuits.web import Controller, JSONRPC

class Test(Component):

    def eval(self, s):
        return eval(s)

class Root(Controller):

    def index(self):
        return "Hello World!"

def test(webapp):
    rpc = JSONRPC("/rpc")
    test = Test()
    rpc.register(webapp)
    test.register(webapp)

    f = urlopen(webapp.server.base)
    s = f.read()<commit_msg>tests.web.test_jsonrpc: Fixed incorrect name py.test<commit_after>#!/usr/bin/env python

from urllib2 import urlopen

import pytest

try:
    from jsonrpclib import ServerProxy
except ImportError:
    pytest.skip("Skip: No JSON support")

from circuits import Component
from circuits.web import Controller, JSONRPC

class Test(Component):

    def eval(self, s):
        return eval(s)

class Root(Controller):

    def index(self):
        return "Hello World!"

def test(webapp):
    rpc = JSONRPC("/rpc")
    test = Test()
    rpc.register(webapp)
    test.register(webapp)

    f = urlopen(webapp.server.base)
    s = f.read()
{'fraction_non_alphanumeric': 0.1072013093289689, 'fraction_numerical': 0.0016366612111292963, 'mean_word_length': 3.4151624548736463, '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': '1277619', 'n_tokens_mistral': 405, 'n_tokens_neox': 390, 'n_words': 111}