MCPcopy Index your code

hub / github.com/microsoft/AI-Red-Teaming-Playground-Labs / functions

Functions490 in github.com/microsoft/AI-Red-Teaming-Playground-Labs

↓ 29 callersMethodget
(self, key: str)
src/picture-submission/webapi/server/service/cache.py:20
↓ 17 callersFunctiongetErrorDetails
(error: unknown)
src/chat-copilot/webapp/src/components/utils/TextUtils.tsx:102
↓ 17 callersFunctionuseChat
()
src/chat-copilot/webapp/src/libs/hooks/useChat.ts:55
↓ 16 callersMethodpush
Function to push a conversation to the queue
src/chat-score/webapi/server/models/conversation.py:18
↓ 10 callersMethodlock_r
(self)
src/chat-score/webapi/server/models/lock.py:61
↓ 10 callersMethodrelease_r
(self)
src/chat-score/webapi/server/models/lock.py:66
↓ 10 callersMethodset
(self, key: str, value: any)
src/picture-submission/webapi/server/service/cache.py:16
↓ 10 callersMethodstart
Start the lock with the number of instances. If empty the lock primitive will be created
src/chat-score/webapi/server/models/lock.py:19
↓ 9 callersFunctionsafe_print
(*args, **kwargs)
docker/chat-score/entrypoint.py:43
↓ 9 callersFunctionsafe_print
(*args, **kwargs)
docker/picture-submission/entrypoint.py:35
↓ 9 callersFunctionsafe_print
(*args, **kwargs)
docker/challenge-home/entrypoint.py:35
↓ 7 callersFunctiongetAccessString
(chatId: string)
src/chat-copilot/webapp/src/components/chat/tabs/DocumentsTab.tsx:339
↓ 6 callersMethodrun
()
src/loadbalancer/internal/services/reverseproxy/reverseproxy.go:209
↓ 6 callersFunctionuseFile
()
src/chat-copilot/webapp/src/libs/hooks/useFile.ts:13
↓ 5 callersFunctionGetInt
(key string)
src/loadbalancer/internal/config/config.go:75
↓ 5 callersMethod__get_queue
Function to get the conversation queue
src/chat-score/webapi/server/models/conversation.py:187
↓ 5 callersFunctionformatParagraphTextContent
(messageContent = '')
src/chat-copilot/webapp/src/components/utils/TextUtils.tsx:58
↓ 5 callersFunctionheaderSortProps
(columnId: TableColumnId)
src/chat-copilot/webapp/src/components/chat/tabs/DocumentsTab.tsx:191
↓ 5 callersMethodpick
Method called when a connection is ready to pick a conversation
src/chat-score/webapi/server/controller/conversation.py:25
↓ 5 callersFunctionsendWorkerMessage
(type: string, isSocket: boolean, payload: any = undefined)
src/chat-score/webapp/src/workers/Socket.worker.ts:14
↓ 4 callersMethodadd
Function to add a conversation details to the db
src/chat-score/webapi/server/models/conversation.py:31
↓ 4 callersFunctionfrontLoadChat
(state: ConversationsState, id: string)
src/chat-copilot/webapp/src/redux/features/conversations/conversationsSlice.ts:255
↓ 4 callersFunctiongetBotProfilePicture
(index: number)
src/chat-copilot/webapp/src/libs/hooks/useChat.ts:342
↓ 4 callersFunctiongetFriendlyChatName
(convo: ChatState)
src/chat-copilot/webapp/src/libs/hooks/useChat.ts:551
↓ 4 callersFunctiongetMsalScopes
()
src/chat-copilot/webapp/src/libs/auth/AuthHelper.ts:67
↓ 4 callersFunctionheaderSortProps
(columnId: TableColumnId)
src/challenge-home/webapp/src/table.tsx:87
↓ 4 callersFunctiontimestampToDateString
(timestamp: number, alwaysShowTime = false)
src/chat-copilot/webapp/src/components/utils/TextUtils.tsx:17
↓ 3 callersMethod__blob_key
(self, user_id: str)
src/picture-submission/webapi/server/models/submission.py:68
↓ 3 callersMethod__send_update
(self)
src/chat-score/webapi/server/controller/conversation.py:121
↓ 3 callersFunctioncheck_config_map_exists
(client, config_map_name, namespace)
k8s/deploy.py:173
↓ 3 callersFunctioncheck_deployment_exists
(client, name, namespace)
k8s/deploy.py:184
↓ 3 callersFunctioncreateChat
()
src/chat-copilot/webapp/src/libs/hooks/useChat.ts:86
↓ 3 callersMethodextend
Function to extend the TTL of the connection count key for the given id
src/chat-score/webapi/server/models/connection.py:33
↓ 3 callersMethodget_conversation
Function to get the conversation details
src/chat-score/webapi/server/models/conversation.py:129
↓ 3 callersMethodget_submission
(self, user_id: str)
src/picture-submission/webapi/server/models/submission.py:35
↓ 3 callersFunctionhandleSubmit
(value: string, messageType: ChatMessageType = ChatMessageType.Message)
src/chat-copilot/webapp/src/components/chat/ChatInput.tsx:149
↓ 3 callersFunctionheaderSortProps
(columnId: TableColumnId)
src/chat-copilot/webapp/src/components/chat/tabs/PlansTab.tsx:78
↓ 3 callersFunctionprocessFileUpload
(file: File)
src/picture-submission/webapp/src/components/PictureUpload.tsx:94
↓ 3 callersMethodremove
Function to remove a conversation from the queue
src/chat-score/webapi/server/models/conversation.py:143
↓ 3 callersMethodto_response
(self)
src/chat-score/webapi/server/dtos.py:36
↓ 3 callersFunctionusePlugins
()
src/chat-copilot/webapp/src/libs/hooks/usePlugins.ts:13
↓ 2 callersFunctionGetString
(key string)
src/loadbalancer/internal/config/config.go:71
↓ 2 callersMethodInit
Init anything that needs to be created before start is called
src/loadbalancer/internal/services/service.go:20
↓ 2 callersMethodRegister
Register all the broadcast this must be called before init
src/loadbalancer/internal/services/service.go:23
↓ 2 callersMethodShutdown
Shutdown the service
src/loadbalancer/internal/services/service.go:17
↓ 2 callersMethod__clean
(self)
src/picture-submission/webapi/server/service/cache.py:34
↓ 2 callersMethod__key_count
(self)
src/chat-score/webapi/server/models/lock.py:69
↓ 2 callersMethod__submission_key
(self, user_id: str)
src/picture-submission/webapi/server/models/submission.py:71
↓ 2 callersFunctionacquireToken
( accessTokenRequest: PopupRequest, msalInstance: IPublicClientApplication, interactionStatus: Int
src/chat-copilot/webapp/src/libs/auth/TokenHelper.ts:45
↓ 2 callersFunctionaddNewAlert
(alerts: Alert[], newAlert: Alert)
src/chat-copilot/webapp/src/redux/features/app/appSlice.ts:130
↓ 2 callersMethodadd_to_pool
Function to add a connection to the pool
src/chat-score/webapi/server/models/connection.py:68
↓ 2 callersFunctionchatInputLocked
()
src/chat-copilot/webapp/src/components/chat/ChatInput.tsx:190
↓ 2 callersFunctioncheck_if_ingress_exists
(client, name, namespace)
k8s/deploy.py:206
↓ 2 callersFunctioncheck_if_job_exists
(client, name, namespace)
k8s/deploy.py:217
↓ 2 callersFunctioncheck_service_exists
(client, name, namespace)
k8s/deploy.py:195
↓ 2 callersMethodconnect
(self, socket_id: str)
src/chat-score/webapi/server/controller/connection.py:21
↓ 2 callersFunctioncreateCommandLink
(command: string)
src/chat-copilot/webapp/src/components/utils/TextUtils.tsx:38
↓ 2 callersFunctioncreateNewChat
(page)
src/chat-copilot/webapp/tests/utils.ts:58
↓ 2 callersMethoddead_connections
(self)
src/chat-score/webapi/server/controller/connection.py:38
↓ 2 callersFunctiondispatchSocketMessage
(messageName: string, payload: any = undefined)
src/chat-score/webapp/src/libs/services/WorkerService.ts:21
↓ 2 callersFunctiondispatchWorkerMessage
(messageName: string, payload: any = undefined)
src/chat-score/webapp/src/libs/services/WorkerService.ts:12
↓ 2 callersFunctiondownloadFile
(filename: string, content: string, type: string)
src/chat-copilot/webapp/src/libs/hooks/useFile.ts:38
↓ 2 callersFunctionensureBackslash
(url: string)
src/chat-score/webapp/src/libs/services/BaseService.ts:4
↓ 2 callersFunctiongetAuthConfig
()
src/chat-copilot/webapp/src/libs/auth/AuthHelper.ts:106
↓ 2 callersFunctiongetFileIconByFileExtension
(fileName: string, props: FluentIconsProps = {})
src/chat-copilot/webapp/src/components/chat/tabs/DocumentsTab.tsx:343
↓ 2 callersFunctiongetPlanGoal
(description: string)
src/chat-copilot/webapp/src/libs/utils/PlanUtils.ts:5
↓ 2 callersFunctiongetSelectedChatID
()
src/chat-copilot/webapp/src/redux/app/store.ts:32
↓ 2 callersFunctiongetUrl
(id: number, url?: string)
src/challenge-home/webapp/src/table.tsx:105
↓ 2 callersFunctionget_ctfd_service_instance
()
src/picture-submission/webapi/server/service/ctfd/ctfd.py:171
↓ 2 callersFunctionget_name
(challenge_id: int)
k8s/deploy.py:20
↓ 2 callersFunctionget_name_picture_submission
(challenge_id: int)
k8s/deploy.py:23
↓ 2 callersMethodget_queue
Function to get the conversation queue
src/chat-score/webapi/server/models/conversation.py:119
↓ 2 callersFunctionisServerConnectionError
(message: string)
src/chat-copilot/webapp/src/redux/features/app/appSlice.ts:123
↓ 2 callersFunctionisSkippable
(message: string | undefined)
src/chat-copilot/webapp/src/components/chat/ChatRoom.tsx:39
↓ 2 callersFunctionmakeBatchGetUsersRequest
(userIds: string[], loadedUsers: UserData[], usersToRetry: string[])
src/chat-copilot/webapp/src/libs/hooks/useGraph.ts:100
↓ 2 callersFunctionmapParticipantsNames
(participants: IChatUser[], usersData: Users)
src/chat-copilot/webapp/src/components/chat/controls/ParticipantsList.tsx:94
↓ 2 callersFunctionnotify
(connectionState: boolean)
src/chat-score/webapp/src/App.tsx:41
↓ 2 callersFunctiononPlanAction
(planState: PlanState.Approved | PlanState.Rejected)
src/chat-copilot/webapp/src/components/chat/plan-viewer/PlanViewer.tsx:56
↓ 2 callersFunctionrenderApp
()
src/chat-copilot/webapp/src/index.tsx:38
↓ 2 callersFunctionsendScore
(passed: boolean, customMessage: string)
src/chat-score/webapp/src/components/conversation/ScoringPane.tsx:83
↓ 2 callersFunctionsetPluginStateAsync
(chatId: string, pluginName: string, enabled: boolean)
src/chat-copilot/webapp/src/libs/hooks/usePlugins.ts:44
↓ 2 callersMethodset_submission
(self, user_id: str, status: SubmissionStatus)
src/picture-submission/webapi/server/models/submission.py:41
↓ 2 callersMethodstop
Stop the lock. Remove one instance of the lock
src/chat-score/webapi/server/models/lock.py:55
↓ 2 callersFunctiontextAreaResize
(element: HTMLTextAreaElement)
src/chat-score/webapp/src/components/StandardRepliesTable.tsx:133
↓ 2 callersFunctionupdateConversation
(state: ConversationsState, chatId: string, message: IChatMessage)
src/chat-copilot/webapp/src/redux/features/conversations/conversationsSlice.ts:261
↓ 2 callersFunctionupdateDocumentUserInput
(template: string, document: string, userInput: string)
src/chat-copilot/webapp/src/components/chat/tabs/RagTab.tsx:241
↓ 2 callersFunctionupdateLastBotResponse
(state: ConversationsState, action: PayloadAction<{ chatId: string; response: string }>)
src/chat-copilot/webapp/src/redux/features/conversations/conversationsSlice.ts:202
↓ 2 callersFunctionupdateUserTypingState
(state: ConversationsState, userId: string, chatId: string, isTyping: boolean)
src/chat-copilot/webapp/src/redux/features/conversations/conversationsSlice.ts:270
↓ 2 callersFunctionuseChallenge
()
src/picture-submission/webapp/src/libs/hooks/useChallenge.ts:7
↓ 2 callersFunctionvalidate_cookie
()
src/challenge-home/webapi/app.py:35
↓ 1 callersMethodStart
Start the service
src/loadbalancer/internal/services/service.go:14
↓ 1 callersMethod__dead_connections
(self)
src/chat-score/webapi/worker/tasks/tick.py:46
↓ 1 callersMethod__dead_reviews
(self)
src/chat-score/webapi/worker/tasks/tick.py:40
↓ 1 callersMethod__is_valid_uuid
(self, guid: str)
src/picture-submission/webapi/server/service/ctfd/ctfd.py:164
↓ 1 callersMethod__send_update
(self, session_count: int)
src/chat-score/webapi/server/controller/connection.py:52
↓ 1 callersMethod__sign
(self, data: str)
src/picture-submission/webapi/server/service/ctfd/ctfd.py:159
↓ 1 callersMethodactivity_signal
(self, socket_id: str)
src/chat-score/webapi/server/controller/connection.py:34
↓ 1 callersMethodadd_to_pool_front
Function to add a connection to the pool
src/chat-score/webapi/server/models/connection.py:74
↓ 1 callersMethodassign_free
Function to assign an unassigned conversation to a reviewer
src/chat-score/webapi/server/models/conversation.py:85
↓ 1 callersMethodauthenticate
(rw http.ResponseWriter, req *http.Request)
src/loadbalancer/internal/services/reverseproxy/http.go:18
next →1–100 of 490, ranked by callers