<s> import os <EOL> import sys <EOL> if sys . version_info [ : <NUM_LIT:2> ] != ( <NUM_LIT:2> , <NUM_LIT:7> ) : <EOL> sys . stderr . write ( "<STR_LIT>" ) <EOL> exit ( <NUM_LIT:1> ) <EOL> PARENT_DIR = os . path . dirname ( os . path . dirname ( os . path . realpath ( __file__ ) ) ) <EOL> BASE_DIR = os . path . dirname ( PARENT_DIR ) <EOL> sys . path . append ( os . path . join ( BASE_DIR , "<STR_LIT>" , "<STR_LIT>" ) ) <EOL> sys . path . append ( os . path . join ( BASE_DIR , "<STR_LIT>" , "<STR_LIT>" ) ) <EOL> import abdcmd_arcyd <EOL> import phlsys_fs <EOL> import phlsys_git <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> old_call = phlsys_git . Repo . __call__ <EOL> def git_fetch_counter ( self , * args , ** kwargs ) : <EOL> phlsys_fs . write_text_file ( "<STR_LIT>" , self . working_dir ) <EOL> fetch_counter_path = os . path . join ( <EOL> self . working_dir , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> if args and args [ <NUM_LIT:0> ] == '<STR_LIT>' : <EOL> if not os . path . exists ( fetch_counter_path ) : <EOL> phlsys_fs . write_text_file ( fetch_counter_path , '<STR_LIT:1>' ) <EOL> else : <EOL> old_count = phlsys_fs . read_text_file ( fetch_counter_path ) <EOL> new_count = str ( int ( old_count ) + <NUM_LIT:1> ) <EOL> phlsys_fs . write_text_file ( fetch_counter_path , new_count ) <EOL> return old_call ( self , * args , ** kwargs ) <EOL> phlsys_git . Repo . __call__ = git_fetch_counter <EOL> sys . exit ( abdcmd_arcyd . main ( ) ) </s>
