<commit_before>import requests
import sys


def send_patch_request_to_heroku_app(app_name, api_key, data_key, data_value):
    headers = {
        'Accept': 'application/vnd.heroku+json; version=3',
        'Authorization': 'Bearer {0}'.format(api_key)
    }

    r = requests.patch(
        'https://api.heroku.com/apps/{0}'.format(app_name),
        data={data_key: data_value},
        headers=headers
    )

    r.raise_for_status()


def main(argv):
    app_name = argv[0]
    api_key = argv[1]
    data_key = argv[2]
    data_value = argv[3]

    send_patch_request_to_heroku_app(app_name, api_key, data_key, data_value)


if __name__ == '__main__':
    main(sys.argv[1:4])<commit_msg>LILY-1708: Fix an indexing error in patch_heroku_app.py arguments.<commit_after>import requests
import sys


def send_patch_request_to_heroku_app(app_name, api_key, data_key, data_value):
    headers = {
        'Accept': 'application/vnd.heroku+json; version=3',
        'Authorization': 'Bearer {0}'.format(api_key)
    }

    r = requests.patch(
        'https://api.heroku.com/apps/{0}'.format(app_name),
        data={data_key: data_value},
        headers=headers
    )

    r.raise_for_status()


def main(argv):
    app_name = argv[0]
    api_key = argv[1]
    data_key = argv[2]
    data_value = argv[3]

    send_patch_request_to_heroku_app(app_name, api_key, data_key, data_value)


if __name__ == '__main__':
    main(sys.argv[1:5])
{'fraction_non_alphanumeric': 0.13101045296167246, 'fraction_numerical': 0.015331010452961672, 'mean_word_length': 3.4458204334365323, 'pattern_counts': {'":': 0, '<': 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': '1320299', 'n_tokens_mistral': 546, 'n_tokens_neox': 527, 'n_words': 88}