<commit_before>from ccuapi import AKAMAI_USERNAME, AKAMAI_PASSWORD, AKAMAI_NOTIFY_EMAIL, AkamaiException

import urllib, os
from suds.client import Client
from suds.xsd import doctor

QuerySet    =   None
try:
    from django.db.models.query import QuerySet
except ImportError:
    pass

class PurgeRequest(object):
    
    def __init__(self, username = AKAMAI_USERNAME, password = <PASSWORD>, email = AKAMAI_NOTIFY_EMAIL, options = None, urls = None, wsdl = None):
        
        self.wsdl   =   wsdl
        if not self.wsdl:
            self.wsdl       =   os.path.join(os.path.dirname(os.path.abspath(__file__)), 'ccuapi-axis.wsdl')
            imp             =   doctor.Import('http://schemas.xmlsoap.org/soap/encoding/')
            imp.filter.add('http://www.akamai.com/purge')
            impdoc          =   doctor.ImportDoctor(imp)
            self.client     =   Client("file://%s" % self.wsdl, doctor = impdoc)<commit_msg>turn off caching for suds.Client<commit_after>from ccuapi import AKAMAI_USERNAME, AKAMAI_PASSWORD, AKAMAI_NOTIFY_EMAIL, AkamaiException

import urllib, os
from suds.client import Client
from suds.xsd import doctor

QuerySet    =   None
try:
    from django.db.models.query import QuerySet
except ImportError:
    pass

class PurgeRequest(object):
    
    def __init__(self, username = AKAMAI_USERNAME, password = <PASSWORD>, email = AKAMAI_NOTIFY_EMAIL, options = None, urls = None, wsdl = None):
        
        self.wsdl   =   wsdl
        if not self.wsdl:
            self.wsdl       =   os.path.join(os.path.dirname(os.path.abspath(__file__)), 'ccuapi-axis.wsdl')
            imp             =   doctor.Import('http://schemas.xmlsoap.org/soap/encoding/')
            imp.filter.add('http://www.akamai.com/purge')
            impdoc          =   doctor.ImportDoctor(imp)
            self.client     =   Client("file://%s" % self.wsdl, doctor = impdoc, cache = None)
{'fraction_non_alphanumeric': 0.10843373493975904, 'fraction_numerical': 0.0, 'mean_word_length': 2.5567970204841712, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '2919401', 'n_tokens_mistral': 665, 'n_tokens_neox': 622, 'n_words': 129}