<commit_before><commit_msg>Add function to find an instance from an IP<commit_after>function instance --argument public_ip
    if empty "$public_ip"
        usage instance '<public-ip>'
        return (false)
    end

    aws ec2 describe-instances | jq --raw-output ".Reservations[].Instances[] | select(.PublicIpAddress == \"$public_ip\") .InstanceId"
end

{'fraction_non_alphanumeric': 0.12011173184357542, 'fraction_numerical': 0.002793296089385475, 'mean_word_length': 3.6623376623376624, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1169062', 'n_tokens_mistral': 106, 'n_tokens_neox': 103, 'n_words': 31}