<commit_before>package test;

public class Inheritance {
	public static void main(String[] args) {
		BChild child = new BChild();
		child.a = 3;
		child.b = 5;
		System.out.println("Child a: " + child.a);
		System.out.println("Child b: " + child.b);
		AParent par = child;
		par.a = 4;
		System.out.println("Parent a: " + par.a);
		System.out.println("Parent b: " + par.b);
		BChild child2 = (BChild) par;	
		System.out.println("Child a: " + child2.a);
		System.out.println("Child b: " + child2.b);
	}
}

class AParent {
	public int a;
	public int b;
}

class BChild extends AParent {
	public int a;
}
<commit_msg>Added another case to Inheritance.java -- accessing parent's field through parent's method.<commit_after>package test;

public class Inheritance {
	public static void main(String[] args) {
		BChild child = new BChild();
		child.a = 3;
		child.b = 5;
		System.out.println("Child a: " + child.a);
		System.out.println("Parent a through child via getter: " + child.getA());
		System.out.println("Child b: " + child.b);
		AParent par = child;
		par.a = 4;
		System.out.println("Parent a: " + par.a);
		System.out.println("Parent a through getter: " + par.getA());
		System.out.println("Parent b: " + par.b);
		BChild child2 = (BChild) par;	
		System.out.println("Child a: " + child2.a);
		System.out.println("Parent a through child via getter: " + child2.getA());
		System.out.println("Child b: " + child2.b);
	}
}

class AParent {
	public int a;
	public int b;
	int getA() {
		return a;
	}
}

class BChild extends AParent {
	public int a;
}

{'fraction_non_alphanumeric': 0.1565721649484536, 'fraction_numerical': 0.008376288659793814, 'mean_word_length': 3.4884393063583814, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3061405', 'n_tokens_mistral': 609, 'n_tokens_neox': 568, 'n_words': 153}