<commit_before>/*
 * The Art of Reflecting Interfaces.
 */
import java.lang.reflect.Method;

public class ReflectInterfaces
{
	interface If1
	{
		public void if1Method();
		void if1MethodNP();
	}

	interface If2 extends If1
	{
		public void if2Method();
		void if2MethodNP();
	}

	public static void main(String av[])
	{
		Class c = If2.class;
		Class sc = c.getSuperclass();
		System.out.println((sc == null?"null":sc.getName()));
		System.out.println("all methods");
		Method [] m = c.getMethods();
		for (int i = 0; i < m.length; i++)
			System.out.println(m[i].toString());
		System.out.println("declared methods");
		m = c.getDeclaredMethods();
		for (int i = 0; i < m.length; i++)
			System.out.println(m[i].toString());
	}
}

/* Expected Output:
null
all methods
public abstract void ReflectInterfaces$If2.if2MethodNP()
public abstract void ReflectInterfaces$If2.if2Method()
public abstract void ReflectInterfaces$If1.if1MethodNP()
public abstract void ReflectInterfaces$If1.if1Method()
declared methods
public abstract void ReflectInterfaces$If2.if2MethodNP()
public abstract void ReflectInterfaces$If2.if2Method()
*/<commit_msg>Don't assume order of classfile members.<commit_after>/*
 * The Art of Reflecting Interfaces.
 */
import java.lang.reflect.Method;

public class ReflectInterfaces
{
	interface If1
	{
		public void if1Method();
		void if1MethodNP();
	}

	interface If2 extends If1
	{
		public void if2Method();
		void if2MethodNP();
	}

	public static void main(String av[])
	{
		Class c = If2.class;
		Class sc = c.getSuperclass();
		System.out.println((sc == null?"null":sc.getName()));
		System.out.println("all methods");
		Method [] m = c.getMethods();
		for (int i = 0; i < m.length; i++)
			System.out.println(m[i].toString());
		System.out.println("declared methods");
		m = c.getDeclaredMethods();
		for (int i = 0; i < m.length; i++)
			System.out.println(m[i].toString());
	}
}

// Sort Output

/* Expected Output:
all methods
declared methods
null
public abstract void ReflectInterfaces$If1.if1Method()
public abstract void ReflectInterfaces$If1.if1MethodNP()
public abstract void ReflectInterfaces$If2.if2Method()
public abstract void ReflectInterfaces$If2.if2Method()
public abstract void ReflectInterfaces$If2.if2MethodNP()
public abstract void ReflectInterfaces$If2.if2MethodNP()
*/
{'fraction_non_alphanumeric': 0.13465688390159689, 'fraction_numerical': 0.018990073370738023, 'mean_word_length': 4.695331695331696, 'pattern_counts': {'":': 2, '<': 7, '<?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': '7044294', 'n_tokens_mistral': 816, 'n_tokens_neox': 772, 'n_words': 199}