<commit_before>package polyglot_integration;

import groovy.lang.Closure;
import groovy_integration.ClosureUtil;
import groovy_integration.Humanoid;
import groovy_integration.Jazzer;
import groovy_integration.ListUtil;
import groovy_integration.Person;
import groovy_integration.Stack;
import groovy_integration.Thing;

public class JavaApp {

  public static void main(String[] args) {
    Person nicole = new Person("Nicole", 30);
    Person zoe = new Person("Zoe");
    Person amelie = new Person("Amelie", 1);

    nicole.increaseAge(1);
    nicole.getName(); // Nicole
    nicole.getAge(); // 31

    Jazzer jazz = new Jazzer();
    jazz.sing();
    jazz.growl(); // returns Object

    // Generics
    Stack<Integer> stack = new Stack<>();
    stack.push(42);
    stack.top(); // Integer
    stack.pop(); // ArrayList<Integer>

    // Traits: Not working when we implement them
    SpeakingCat helloKitty = new SpeakingCat();

    // Meta-Programming
    // Runtime
    Humanoid human = new Humanoid();
    human.write(); // Method WriteName is missing!
    human.speak(); // Hello my name is Gigabit
    human.getLanguage(); // English<commit_msg>Example modified<commit_after>package polyglot_integration;

import groovy.lang.Closure;
import groovy_integration.ClosureUtil;
import groovy_integration.Humanoid;
import groovy_integration.Jazzer;
import groovy_integration.ListUtil;
import groovy_integration.Person;
import groovy_integration.Stack;
import groovy_integration.Thing;

public class JavaApp {

  public static void main(String[] args) {
    Person nicole = new Person("Nicole", 30);
    Person zoe = new Person("Zoe");
    Person amelie = new Person("Amelie", 1);

    nicole.increaseAge(1);
    nicole.getName(); // Nicole
    nicole.getAge(); // 31
    amelie.setName("Amy");

    Jazzer jazz = new Jazzer();
    jazz.sing();
    jazz.growl(); // returns Object

    // Generics
    Stack<Integer> stack = new Stack<>();
    stack.push(42);
    stack.top(); // Integer
    stack.pop(); // ArrayList<Integer>

    // Traits: Not working when we implement them
    SpeakingCat helloKitty = new SpeakingCat();

    // Meta-Programming
    // Runtime
    Humanoid human = new Humanoid();
    human.write(); // Method WriteName is missing!
    human.speak(); // Hello my name is Gigabit
    human.getLanguage(); // English
{'fraction_non_alphanumeric': 0.1223267750213858, 'fraction_numerical': 0.006843455945252352, 'mean_word_length': 3.498076923076923, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '828969', 'n_tokens_mistral': 772, 'n_tokens_neox': 692, 'n_words': 187}