



'''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


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

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

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









'''simple docstring'''





def        lowerCamelCase  (				_snake_case  :						list[int]     ,_snake_case  :						list[int]       ):





    '''simple docstring'''


    lowercase__		       =						len(_snake_case       )
    print("The following activities are selected:"       )

    # The first activity is always selected
    lowercase__		       =						0
    print(_snake_case     ,end=","       )

    # Consider rest of the activities
    for j in range(_snake_case       ):
        # If this activity has start time greater than
        # or equal to the finish time of previously
        # selected activity, then select it
        if start[j] >= finish[i]:
            print(_snake_case     ,end=","       )
            lowercase__		       =						j


if __name__ == "__main__":
 import doctest

 doctest.testmod()

 SCREAMING_SNAKE_CASE__      					=     [1, 3, 0, 5, 8, 5]
 SCREAMING_SNAKE_CASE__      					=     [2, 4, 6, 7, 9, 9]
 print_max_activities(start, finish)




