<commit_before>@file:Suppress("unused", "FunctionName")

package cases

class MethodNameEqualsClassName { // reports 1

	fun MethodNameEqualsClassName() {}

	class NestedNameEqualsTopClassName {

		// should not report function with same name in nested class
		fun MethodNameEqualsClassName() {}
	}
}

class MethodNameNotEqualsClassName {

	fun f() {
		fun MethodNameNotEqualsClassName() {}
	}

	object MethodNameEqualsObjectName { // reports 1

		fun MethodNameEqualsObjectName() {}
	}
}

class StaticMethodNameEqualsClassName { // reports 1

	companion object {
		fun StaticMethodNameEqualsClassName() {}
	}
}

class StaticMethodNameEqualsObjectName {

	companion object A {
		fun A() {}
	}
}

interface MethodNameEqualsInterfaceName {

	fun MethodNameEqualsInterfaceName() {}

	class MethodNameEqualsNestedClassName { // reports 1

		fun MethodNameEqualsNestedClassName() {}
	}
}

abstract class BaseClassForMethodNameEqualsClassName {

	abstract fun AbstractMethodNameEqualsClassName()
}

class AbstractMethodNameEqualsClassName : BaseClassForMethodNameEqualsClassName() {

	override fun AbstractMethodNameEqualsClassName() {}
}<commit_msg>Moved violation comment for MethodNameEqualsClassName<commit_after>@file:Suppress("unused", "FunctionName")

package cases

class MethodNameEqualsClassName {

	fun MethodNameEqualsClassName() {} // reports 1

	class NestedNameEqualsTopClassName {

		// should not report function with same name in nested class
		fun MethodNameEqualsClassName() {}
	}
}

class MethodNameNotEqualsClassName {

	fun f() {
		fun MethodNameNotEqualsClassName() {}
	}

	object MethodNameEqualsObjectName {

		fun MethodNameEqualsObjectName() {} // reports 1
	}
}

class StaticMethodNameEqualsClassName {

	companion object {
		fun StaticMethodNameEqualsClassName() {} // reports 1
	}
}

class StaticMethodNameEqualsObjectName {

	companion object A {
		fun A() {}
	}
}

interface MethodNameEqualsInterfaceName {

	fun MethodNameEqualsInterfaceName() {}

	class MethodNameEqualsNestedClassName {

		fun MethodNameEqualsNestedClassName() {} // reports 1
	}
}

abstract class BaseClassForMethodNameEqualsClassName {

	abstract fun AbstractMethodNameEqualsClassName()
}

class AbstractMethodNameEqualsClassName : BaseClassForMethodNameEqualsClassName() {

	// reports if overridden functions are not ignored
	override fun AbstractMethodNameEqualsClassName() {}
}
{'fraction_non_alphanumeric': 0.0773109243697479, 'fraction_numerical': 0.0033613445378151263, 'mean_word_length': 5.541208791208791, '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': '6125855', 'n_tokens_mistral': 675, 'n_tokens_neox': 620, 'n_words': 157}