<commit_before><commit_msg>Create catty.java<commit_after>public String[] catty(String[] animals) { 

    ArrayList<String> animalsList = new ArrayList<String>();
    for (int i=0; i<animals.length; i++)
    {
       animalsList.add(animals[i]);
    }
    
    ArrayList<String> catsList = cattyB(animalsList);
    
    String cats[] = new String[catsList.size()];
    for (int i=0; i<catsList.size(); i++)
    {
       cats[i]=catsList.get(i);
    }

    return cats;
}

public ArrayList<String> cattyB(ArrayList<String> animalsList) 
{    
  ArrayList<String> catsList = new ArrayList<String>();
  for (String animal : animalsList)
    if (animal.toLowerCase().indexOf("cat") >= 0) catsList.add(animal);
  return catsList;
}

{'fraction_non_alphanumeric': 0.15405777166437415, 'fraction_numerical': 0.0041265474552957355, 'mean_word_length': 3.696774193548387, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 11, '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': '4254745', 'n_tokens_mistral': 247, 'n_tokens_neox': 236, 'n_words': 48}