hunk.code_window:   | "PRETTIFY_CODE_KEYBOARD_SHORTCUT"
     | "JS_OBJECT_CREATED"
     | "JS_OBJECT_FUNCTION_ADDED"
     | "JS_OBJECT_FUNCTION_RUN";
   function getApplicationId(location: Location) {
     const pathSplit = location.pathname.split("/");
     const applicationsIndex = pathSplit.findIndex(
  
hunk.labels: keep keep keep replace keep keep keep keep
hunk.after_edit:   | "JS_OBJECT_FUNCTION_RUN"
     | "SHOW_BINDINGS_TRIGGERED"
     | "BINDING_COPIED";
  
hunk.file_path: app/client/src/utils/AnalyticsUtil.tsx
hunk.type: replace
file: export const ANONYMOUS_USERNAME = "anonymousUser";
  
  type Gender = "MALE" | "FEMALE";
  
  export type User = {
    email: string;
    workspaceIds: string[];
    username: string;
    name: string;
    gender: Gender;
    emptyInstance?: boolean;
    photoId?: string;
    isSuperUser: boolean;
    role?: string;
    useCase?: string;
    isConfigurable: boolean;
    enableTelemetry: boolean;
  };
  
  export interface UserApplication {
    id: string;
    name: string;
  }
  
  export const CurrentUserDetailsRequestPayload = {
    id: "profile",
  };
  
  export const DefaultCurrentUserDetails: User = {
    name: ANONYMOUS_USERNAME,
    email: ANONYMOUS_USERNAME,
    workspaceIds: [],
    username: ANONYMOUS_USERNAME,
    gender: "MALE",
    isSuperUser: false,
    isConfigurable: false,
    enableTelemetry: false,
  };
  
  // TODO keeping it here instead of the USER_API since it leads to cyclic deps errors during tests
  export const USER_PHOTO_URL = "v1/users/photo";
  export const USER_PHOTO_ASSET_URL = "v1/assets";
  
  export type UserRoleUsecasePayload = {
    role: string;
    useCase: string;
  };
  