<commit_before># Copyright 2015 CloudNative, Inc.
#
# 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.
"""Python library for communicating with a RESTful API hosted on AWS API
Gateway
"""

import json
import logging

import requests

__author__ = '<NAME>'
__email__ = '<EMAIL>'
__description__ = 'Library for using a RESTful API hosted on AWS API Gateway'
__url__ = 'https://github.com/cloudnative/restgate-py'
__version__ = '0.1.0'

LOG = logging.getLogger(__name__)


class RestGate:
    """Library for interacting with a RESTful AWS Gateway API.
    """

    def __init__(self, endpoint, api_key):
        """Creates a new REST client to an API

        Args:
            endpoint (str): The HTTP URL to the API
            api_key (str): The AWS API Gateway API Key

        Attributes:
            endpoint (str): The HTTP URL to the API
            api_key (str): The AWS API Gateway API Key
            timeout (int): The time to wait (in seconds) for the request to
                receive data back
        """<commit_msg>Fixing the class definition<commit_after># Copyright 2015 CloudNative, Inc.
#
# 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.
"""Python library for communicating with a RESTful API hosted on AWS API
Gateway
"""

import json
import logging

import requests

__author__ = '<NAME>'
__email__ = '<EMAIL>'
__description__ = 'Library for using a RESTful API hosted on AWS API Gateway'
__url__ = 'https://github.com/cloudnative/restgate-py'
__version__ = '0.1.1'

LOG = logging.getLogger(__name__)


class RestGate(object):
    """Library for interacting with a RESTful AWS Gateway API.
    """

    def __init__(self, endpoint, api_key):
        """Creates a new REST client to an API

        Args:
            endpoint (str): The HTTP URL to the API
            api_key (str): The AWS API Gateway API Key

        Attributes:
            endpoint (str): The HTTP URL to the API
            api_key (str): The AWS API Gateway API Key
            timeout (int): The time to wait (in seconds) for the request to
                receive data back
        """
{'fraction_non_alphanumeric': 0.07752442996742671, 'fraction_numerical': 0.0071661237785016286, 'mean_word_length': 3.105614973262032, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1638365', 'n_tokens_mistral': 835, 'n_tokens_neox': 792, 'n_words': 395}