<commit_before>"""
Handy proxy wrapping for easier / shorter calls to NSI agents.

Author: <NAME> <<EMAIL>>
Copyright: NORDUnet (2011)
"""



class NSIProxy:

    def __init__(self, client, nsa_):
        self.client     = client    # client adhering to the NSIInterface
        self.nsa_       = nsa_      # this is the identity of the caller


    def reserve(self, remote_nsa, session_security_attr, global_reservation_id, description, connection_id, service_parameters):

        return self.client.reserve(self.nsa_, remote_nsa, session_security_attr, global_reservation_id, description, connection_id, service_parameters)


    def terminate(self, remote_nsa, session_security_attr, connection_id):

        return self.client.terminate(self.nsa_, remote_nsa, session_security_attr, connection_id)


    def provision(self, remote_nsa, session_security_attr, connection_id):

        return self.client.provision(self.nsa_, remote_nsa, session_security_attr, connection_id)


    def release(self, remote_nsa, session_security_attr, connection_id):

        return self.client.release(self.nsa_, remote_nsa, session_security_attr, connection_id)


    def query(self, remote_nsa, session_security_attributes, query_filter):

        return self.client.query(self.nsa_, remote_nsa, session_security_attr, query_filter)
<commit_msg>fix variable reference in client proxy<commit_after>"""
Handy proxy wrapping for easier / shorter calls to NSI agents.

Author: <NAME> <<EMAIL>>
Copyright: NORDUnet (2011)
"""



class NSIProxy:

    def __init__(self, client, nsa_):
        self.client     = client    # client adhering to the NSIInterface
        self.nsa_       = nsa_      # this is the identity of the caller


    def reserve(self, remote_nsa, session_security_attr, global_reservation_id, description, connection_id, service_parameters):

        return self.client.reserve(self.nsa_, remote_nsa, session_security_attr, global_reservation_id, description, connection_id, service_parameters)


    def terminate(self, remote_nsa, session_security_attr, connection_id):

        return self.client.terminate(self.nsa_, remote_nsa, session_security_attr, connection_id)


    def provision(self, remote_nsa, session_security_attr, connection_id):

        return self.client.provision(self.nsa_, remote_nsa, session_security_attr, connection_id)


    def release(self, remote_nsa, session_security_attr, connection_id):

        return self.client.release(self.nsa_, remote_nsa, session_security_attr, connection_id)


    def query(self, remote_nsa, session_security_attr, query_filter):

        return self.client.query(self.nsa_, remote_nsa, session_security_attr, query_filter)

{'fraction_non_alphanumeric': 0.08101077666295058, 'fraction_numerical': 0.0029728725380899295, 'mean_word_length': 4.5850622406639, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7439280', 'n_tokens_mistral': 838, 'n_tokens_neox': 789, 'n_words': 195}