<commit_before>import requests


api_url = 'http://www.gitignore.io/api'


def generate(*targets, **kwargs):
    target = ','.join(targets)
    url = '{0}/{1}'.format(api_url, target)
    response = requests.get(url)

    # this contains the generated gitignore contents
    contents = response.text
<commit_msg>main script return the response text<commit_after>import requests


api_url = 'http://www.gitignore.io/api'


def generate(*targets, **kwargs):
    target = ','.join(targets)
    url = '{0}/{1}'.format(api_url, target)
    response = requests.get(url)

    # this contains the generated gitignore contents
    return response.text

{'fraction_non_alphanumeric': 0.13841368584758942, 'fraction_numerical': 0.006220839813374806, 'mean_word_length': 3.9160305343511452, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3064536', 'n_tokens_mistral': 207, 'n_tokens_neox': 196, 'n_words': 49}