<commit_before>#
# Copyright (c) 2004 Specifix, Inc.
# All rights reserved
#

import filecontainer
import gzip
import httplib
import log
import os
import package
import repository
import socket
import tempfile
import urllib
import util
import versions
import xmlrpclib
import xmlshims
from deps import deps

class _Method(xmlrpclib._Method):

    def __call__(self, *args):
        result = self.__send(self.__name, args)
	return result
        isException, result = self.__send(self.__name, args)
	if not isException:
	    return result

	exceptionName = args[0]
	exceptionArgs = args[1:]

	if exceptionName == "TroveMissing":
	    (name, version) = exceptionArgs
	    if not name: name = None
	    if not version:
		version = None
	    else:<commit_msg>added back support for marshalled exceptions<commit_after>#
# Copyright (c) 2004 Specifix, Inc.
# All rights reserved
#

import filecontainer
import gzip
import httplib
import log
import os
import package
import repository
import socket
import tempfile
import urllib
import util
import versions
import xmlrpclib
import xmlshims
from deps import deps

class _Method(xmlrpclib._Method):

    def __call__(self, *args):
        isException, result = self.__send(self.__name, args)
	if not isException:
	    return result

	exceptionName = args[0]
	exceptionArgs = args[1:]

	if exceptionName == "TroveMissing":
	    (name, version) = exceptionArgs
	    if not name: name = None
	    if not version:
		version = None
	    else:
{'fraction_non_alphanumeric': 0.07036535859269283, 'fraction_numerical': 0.008119079837618403, 'mean_word_length': 3.9797979797979797, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '202920', 'n_tokens_mistral': 468, 'n_tokens_neox': 436, 'n_words': 161}