<commit_before>"""
Meraki API Resource
"""
import json
from .lazy_requests import LazyRequests

class MerakiAPIResource:
    """ Simplifies the creation of Meraki API resources. """

    url = "https://dashboard.meraki.com/api/v0"
    resource = ""

    parameters = []
    cached = None
    is_lazy = False

    def __init__(self, key, prefix=None, resource_id=None):
        self.resource_id = resource_id
        self.key = key
        self.prefix = prefix

    def __headers(self):
        """ Returns the needed headers. """
        return {
            "Content-Type": "application/json",
            "X-Cisco-Meraki-API-Key": self.key
        }<commit_msg>fixed issue with the resource_id when it is an int<commit_after>"""
Meraki API Resource
"""
import json
from .lazy_requests import LazyRequests

class MerakiAPIResource:
    """ Simplifies the creation of Meraki API resources. """

    url = "https://dashboard.meraki.com/api/v0"
    resource = ""

    parameters = []
    cached = None
    is_lazy = False

    def __init__(self, key, prefix=None, resource_id=None):
        self.resource_id = str(resource_id)
        self.key = key
        self.prefix = prefix

    def __headers(self):
        """ Returns the needed headers. """
        return {
            "Content-Type": "application/json",
            "X-Cisco-Meraki-API-Key": self.key
        }
{'fraction_non_alphanumeric': 0.1154970760233918, 'fraction_numerical': 0.0014619883040935672, 'mean_word_length': 2.457070707070707, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6698576', 'n_tokens_mistral': 411, 'n_tokens_neox': 405, 'n_words': 107}