
'''simple docstring'''
def      UpperCamelCase_				(      A__						):

	# bit count represents no. of bits in the gray code
	if bit_count < 0:
		raise ValueError("""The given input must be positive"""						)

	# get the generated string sequence
	a_      				=						gray_code_sequence_string(A__						)
	#
	# convert them to integers
	for i in range(len(A__						)						):
		a_      				=						int(sequence[i]  ,      2						)

	return sequence






def      UpperCamelCase_				(      A__						):

	# The approach is a recursive one
	# Base case achieved when either n = 0 or n=1
	if bit_count == 0:
		return ["0"]

	if bit_count == 1:
		return ["0", "1"]

	a_      				=						1 << bit_count  # defines the length of the sequence
	# 1<< n is equivalent to 2^n

	# recursive answer will generate answer for n-1 bits
	a_      				=						gray_code_sequence_string(bit_count - 1						)

	a_      				=						[]

	# append 0 to first half of the smaller sequence generated
	for i in range(seq_len // 2						):
		a_      				=						"""0""" + smaller_sequence[i]
		sequence.append(A__						)

	# append 1 to second half ... start from the end of the list
	for i in reversed(range(seq_len // 2						)						):
		a_      				=						"""1""" + smaller_sequence[i]
		sequence.append(A__						)

	return sequence


if __name__ == "__main__":
		import doctest

		doctest.testmod()


'''simple docstring'''
# this script reports modified .py files under the desired list of top-level sub-dirs passed as a list of arguments, e.g.:
#   python ./utils/get_modified_files.py utils src tests examples
#
# it uses git to find the forking point and which files were modified - i.e. files not under git won't be considered
# since the output of this script is fed into Makefile commands it doesn't print a newline after the results

import re
import subprocess
import sys


lowercase__											=subprocess.check_output('git merge-base main HEAD'.split()).decode('utf-8')
lowercase__											=(
    subprocess.check_output(F"""git diff --diff-filter=d --name-only {fork_point_sha}""".split()).decode('utf-8').split()
)

lowercase__											='|'.join(sys.argv[1:])
lowercase__											=re.compile(rF"""^({joined_dirs}).*?\.py$""")

lowercase__											=[x for x in modified_files if regex.match(x)]
print(' '.join(relevant_modified_files), end='')
