hunk.code_window:                                 return Mono.error(new AppsmithException(AppsmithError.INVALID_GIT_SSH_CONFIGURATION));
                               }
                               if (error instanceof InvalidRemoteException) {
                                   return Mono.error(new AppsmithException(AppsmithError.INVALID_PARAMETER, "remote url"));
                               }
                               log.error("Error while cloning the remote repo, {}", error.getMessage());
                               return Mono.error(new AppsmithException(AppsmithError.INTERNAL_SERVER_ERROR));
                           });
                           return Mono.zip(
                                   Mono.just(application),
  
hunk.labels: keep keep keep keep keep replace replace keep keep keep
hunk.after_edit:                             return Mono.error(new AppsmithException(AppsmithError.GIT_EXECUTION_TIMEOUT));
  
hunk.file_path: app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/GitServiceCEImpl.java
hunk.type: replace
file: import { MutableRefObject, MouseEvent, useEffect } from "react";
  
  export default (
    currentRef: MutableRefObject<HTMLElement | null>,
    singleClk: (e: MouseEvent<HTMLElement>) => void,
    doubleClk?: (e: MouseEvent<HTMLElement>) => void,
  ) => {
    useEffect(() => {
      let clickCount = 0;
      let timeoutId = 0;
  
      const handleClick = (e: any) => {
        if (!doubleClk) {
          singleClk(e);
        } else {
          clickCount++;
          if (clickCount === 2 && doubleClk) {
            doubleClk(e);
            clearTimeout(timeoutId);
            clickCount = 0;
          } else {
            timeoutId = setTimeout(() => {
              singleClk(e);
              clickCount = 0;
            }, 200);
          }
        }
      };
  
      const el = currentRef.current;
      el?.addEventListener("click", handleClick);
      return () => {
        el?.removeEventListener("click", handleClick);
      };
    }, [currentRef, singleClk, doubleClk]);
  };
  