<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ________________________________________________________________________
#
#  Copyright (C) 2014 <NAME>
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
# ________________________________________________________________________
#

import os, sys, logging, time, json, gc
import support
import taskforce.poll
import taskforce.httpd
import taskforce.http
from taskforce.utils import get_caller as my

try:
	from http.client import HTTPConnection
	from urllib.parse import parse_qs, urlparse, urlencode
except:
	from httplib import HTTPConnection
	from urlparse import parse_qs, urlparse
	from urllib import urlencode

env = support.env(base='.')

class Test(object):

	tcp_host = '127.0.0.1'
	tcp_port = 34567
	tcp_address = tcp_host + ':' + str(tcp_port)
	unx_address = os.path.join('/tmp', 's.' + __module__)
	http_test_map = {
		u'English': u'hello, world',<commit_msg>allow the httpd control port to be specified in the environment<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ________________________________________________________________________
#
#  Copyright (C) 2014 <NAME>
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
# ________________________________________________________________________
#

import os, sys, logging, time, json, gc
import support
import taskforce.poll
import taskforce.httpd
import taskforce.http
from taskforce.utils import get_caller as my

try:
	from http.client import HTTPConnection
	from urllib.parse import parse_qs, urlparse, urlencode
except:
	from httplib import HTTPConnection
	from urlparse import parse_qs, urlparse
	from urllib import urlencode

env = support.env(base='.')

class Test(object):

	tcp_host = '127.0.0.1'
	tcp_port = os.environ.get('NOSE_HTTPD_PORT')
	if tcp_port:
		tcp_port = int(tcp_port)
	else:
		tcp_port = 34567
	tcp_address = tcp_host + ':' + str(tcp_port)
	unx_address = os.path.join('/tmp', 's.' + __module__)
	http_test_map = {
		u'English': u'hello, world',
{'fraction_non_alphanumeric': 0.08721506442021804, 'fraction_numerical': 0.013214403700033036, 'mean_word_length': 4.713207547169811, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '5770037', 'n_tokens_mistral': 891, 'n_tokens_neox': 868, 'n_words': 318}