<commit_before>"""
API MAPPING FOR Zendesk API V2
"""

mapping_table = {

    # Tickets
    'list_all_tickets': {
        'path': '/tickets.json',
        'method': 'GET',
    },
    'show_ticket': {
        'path': '/tickets/{{ticket_id}}.json',
        'valid_params': ['include'],
        'method': 'GET',
    },
    'show_many_tickets': {
        'path': '/tickets/show_many.json',
        'valid_params': ['ids','include'],
        'method': 'POST'
    },
    'create_ticket': {
        'path': '/tickets.json',
        'method': 'POST',
    },
    'update_ticket': {
        'path': '/tickets/{{ticket_id}}.json',
        'method': 'PUT',
    },
    'update_many_tickets': {
        'path': '/tickets/update_many.json',
        'valid_params': ['ids'],
        'method': 'PUT',
    },
    'delete_ticket': {
        'path': '/tickets/{{ticket_id}}.json',
        'method': 'DELETE',
        'status': 204,
    },
    'delete_many_tickets': {
        'path': 'tickets/destroy_many.json',
        'valid_params': ['ids'],
        'method': 'DELETE',
    },
    'list_ticket_related': {
        'path': '/tickets/{{ticket_id}}/related.json',
        'method': 'GET',
    },
    'list_ticket_collaborators': {
        'path': '/tickets/{{ticket_id}}/collaborators.json',
        'valid_params': ['include'],
        'method': 'GET',
    },
    'list_ticket_incidents': {
        'path': '/tickets/{{ticket_id}}/incidents.json',
        'method': 'GET',
    },
    'list_organization_tickets': {
        'path': '/organizations/{{organization_id}}/tickets.json',
        'valid_params': ['external_id'],
        'method': 'GET',
    },
    'list_user_tickets_requested': {
        'path': '/users/{{user_id}}/tickets/requested.json',
        'valid_params': ['external_id'],
        'method': 'GET',
    },
    'list_user_tickets_ccd': {
        'path': '/users/{{user_id}}/tickets/ccd.json',
        'valid_params': ['external_id'],
        'method': 'GET',
    },
    'list_user_tickets_assigned': {
        'path': '/users/{{user_id}}/tickets/assigned.json',
        'valid_params': ['external_id'],
        'method': 'GET',
    },
    'list_recent_tickets': {
        'path': '/tickets/recent.json',
        'valid_params': ['external_id'],
        'method': 'GET',
    },

    # Ticket Audits
    'list_audits': {
        'path': '/tickets/{{ticket_id}}/audits.json',
        'valid_params': ['include'],
        'method': 'GET',
    },
    'mark_audit_as_trusted': {
        'path': '/tickets/{{ticket_id}}/audits/{{audit_id}}/trust.json',
        'method': 'PUT',
    },

    # Ticket Comments
    'list_ticket_comments': {
        'path': '/tickets/{{ticket_id}}/comments.json',
        'valid_params': ['include'],
        'method': 'GET',
    },

    # Incremental Tickets
    'export_incremental_tickets': {
        'path': '/exports/tickets.json',
        'valid_params': ['start_time'],
        'method': 'GET',
    },

    # Ticket Forms
    'list_ticket_forms': {
        'path': '/ticket_forms.json',
        'method': 'GET',
    },

    # Ticket Fields
    'list_ticket_fields': {
        'path': '/ticket_fields.json',<commit_msg>Add some new incremental endpoints.<commit_after>"""
API MAPPING FOR Zendesk API V2
"""

mapping_table = {

    # Tickets
    'list_all_tickets': {
        'path': '/tickets.json',
        'method': 'GET',
    },
    'show_ticket': {
        'path': '/tickets/{{ticket_id}}.json',
        'valid_params': ['include'],
        'method': 'GET',
    },
    'show_many_tickets': {
        'path': '/tickets/show_many.json',
        'valid_params': ['ids','include'],
        'method': 'POST'
    },
    'create_ticket': {
        'path': '/tickets.json',
        'method': 'POST',
    },
    'update_ticket': {
        'path': '/tickets/{{ticket_id}}.json',
        'method': 'PUT',
    },
    'update_many_tickets': {
        'path': '/tickets/update_many.json',
        'valid_params': ['ids'],
        'method': 'PUT',
    },
    'delete_ticket': {
        'path': '/tickets/{{ticket_id}}.json',
        'method': 'DELETE',
        'status': 204,
    },
    'delete_many_tickets': {
        'path': 'tickets/destroy_many.json',
        'valid_params': ['ids'],
        'method': 'DELETE',
    },
    'list_ticket_related': {
        'path': '/tickets/{{ticket_id}}/related.json',
        'method': 'GET',
    },
    'list_ticket_collaborators': {
        'path': '/tickets/{{ticket_id}}/collaborators.json',
        'valid_params': ['include'],
        'method': 'GET',
    },
    'list_ticket_incidents': {
        'path': '/tickets/{{ticket_id}}/incidents.json',
        'method': 'GET',
    },
    'list_organization_tickets': {
        'path': '/organizations/{{organization_id}}/tickets.json',
        'valid_params': ['external_id'],
        'method': 'GET',
    },
    'list_user_tickets_requested': {
        'path': '/users/{{user_id}}/tickets/requested.json',
        'valid_params': ['external_id'],
        'method': 'GET',
    },
    'list_user_tickets_ccd': {
        'path': '/users/{{user_id}}/tickets/ccd.json',
        'valid_params': ['external_id'],
        'method': 'GET',
    },
    'list_user_tickets_assigned': {
        'path': '/users/{{user_id}}/tickets/assigned.json',
        'valid_params': ['external_id'],
        'method': 'GET',
    },
    'list_recent_tickets': {
        'path': '/tickets/recent.json',
        'valid_params': ['external_id'],
        'method': 'GET',
    },

    # Ticket Audits
    'list_audits': {
        'path': '/tickets/{{ticket_id}}/audits.json',
        'valid_params': ['include'],
        'method': 'GET',
    },
    'mark_audit_as_trusted': {
        'path': '/tickets/{{ticket_id}}/audits/{{audit_id}}/trust.json',
        'method': 'PUT',
    },

    # Ticket Comments
    'list_ticket_comments': {
        'path': '/tickets/{{ticket_id}}/comments.json',
        'valid_params': ['include'],
        'method': 'GET',
    },

    # Incremental Tickets
    'export_incremental_tickets': {
        'path': '/exports/tickets.json',
        'valid_params': ['start_time'],
        'method': 'GET',
    },
    'list_incremental_tickets': {
        'path': '/incremental/tickets.json',
        'valid_params': ['start_time'],
        'method': 'GET',
    },
    'list_incremental_ticket_events': {
        'path': '/incremental/ticket_events.json',
        'valid_params': ['start_time'],
        'method': 'GET',
    },

    # Ticket Forms
    'list_ticket_forms': {
        'path': '/ticket_forms.json',
        'method': 'GET',
    },

    # Ticket Fields
    'list_ticket_fields': {
        'path': '/ticket_fields.json',
{'fraction_non_alphanumeric': 0.20394935182393728, 'fraction_numerical': 0.0012059089538739825, 'mean_word_length': 2.3577935222672064, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '778134', 'n_tokens_mistral': 2329, 'n_tokens_neox': 2212, 'n_words': 327}