<commit_before>import urlparse

from django.conf.urls.defaults import * #@UnusedWildImport
from django.http import HttpRequest
from django.shortcuts import render_to_response

from pyws.django import serve
from pyws.server import Server

import api_settings

server = Server(api_settings)

PROTOCOLS = (
  ('json', 'JSON'),
  ('rest', 'REST'),
  ('rson', 'REST + JSON'),
  ('soap', 'SOAP'),
)


def test_form(request):

    data = {
        'protocols': PROTOCOLS,
    }

    if request.method == 'POST':<commit_msg>test form: removed rest+json protocol<commit_after>import urlparse

from django.conf.urls.defaults import * #@UnusedWildImport
from django.http import HttpRequest
from django.shortcuts import render_to_response

from pyws.django import serve
from pyws.server import Server

import api_settings

server = Server(api_settings)

PROTOCOLS = (
  ('rest', 'REST'),
  ('json', 'JSON'),
  ('soap', 'SOAP'),
)


def test_form(request):

    data = {
        'protocols': PROTOCOLS,
    }

    if request.method == 'POST':
{'fraction_non_alphanumeric': 0.12536443148688048, 'fraction_numerical': 0.0, 'mean_word_length': 4.282051282051282, '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': '213292', 'n_tokens_mistral': 340, 'n_tokens_neox': 332, 'n_words': 88}