Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/microsoft/AI-Red-Teaming-Playground-Labs
/ functions
Functions
490 in github.com/microsoft/AI-Red-Teaming-Playground-Labs
⨍
Functions
490
◇
Types & classes
223
↳
Endpoints
15
↓ 29 callers
Method
get
(self, key: str)
src/picture-submission/webapi/server/service/cache.py:20
↓ 17 callers
Function
getErrorDetails
(error: unknown)
src/chat-copilot/webapp/src/components/utils/TextUtils.tsx:102
↓ 17 callers
Function
useChat
()
src/chat-copilot/webapp/src/libs/hooks/useChat.ts:55
↓ 16 callers
Method
push
Function to push a conversation to the queue
src/chat-score/webapi/server/models/conversation.py:18
↓ 10 callers
Method
lock_r
(self)
src/chat-score/webapi/server/models/lock.py:61
↓ 10 callers
Method
release_r
(self)
src/chat-score/webapi/server/models/lock.py:66
↓ 10 callers
Method
set
(self, key: str, value: any)
src/picture-submission/webapi/server/service/cache.py:16
↓ 10 callers
Method
start
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 callers
Function
safe_print
(*args, **kwargs)
docker/chat-score/entrypoint.py:43
↓ 9 callers
Function
safe_print
(*args, **kwargs)
docker/picture-submission/entrypoint.py:35
↓ 9 callers
Function
safe_print
(*args, **kwargs)
docker/challenge-home/entrypoint.py:35
↓ 7 callers
Function
getAccessString
(chatId: string)
src/chat-copilot/webapp/src/components/chat/tabs/DocumentsTab.tsx:339
↓ 6 callers
Method
run
()
src/loadbalancer/internal/services/reverseproxy/reverseproxy.go:209
↓ 6 callers
Function
useFile
()
src/chat-copilot/webapp/src/libs/hooks/useFile.ts:13
↓ 5 callers
Function
GetInt
(key string)
src/loadbalancer/internal/config/config.go:75
↓ 5 callers
Method
__get_queue
Function to get the conversation queue
src/chat-score/webapi/server/models/conversation.py:187
↓ 5 callers
Function
formatParagraphTextContent
(messageContent = '')
src/chat-copilot/webapp/src/components/utils/TextUtils.tsx:58
↓ 5 callers
Function
headerSortProps
(columnId: TableColumnId)
src/chat-copilot/webapp/src/components/chat/tabs/DocumentsTab.tsx:191
↓ 5 callers
Method
pick
Method called when a connection is ready to pick a conversation
src/chat-score/webapi/server/controller/conversation.py:25
↓ 5 callers
Function
sendWorkerMessage
(type: string, isSocket: boolean, payload: any = undefined)
src/chat-score/webapp/src/workers/Socket.worker.ts:14
↓ 4 callers
Method
add
Function to add a conversation details to the db
src/chat-score/webapi/server/models/conversation.py:31
↓ 4 callers
Function
frontLoadChat
(state: ConversationsState, id: string)
src/chat-copilot/webapp/src/redux/features/conversations/conversationsSlice.ts:255
↓ 4 callers
Function
getBotProfilePicture
(index: number)
src/chat-copilot/webapp/src/libs/hooks/useChat.ts:342
↓ 4 callers
Function
getFriendlyChatName
(convo: ChatState)
src/chat-copilot/webapp/src/libs/hooks/useChat.ts:551
↓ 4 callers
Function
getMsalScopes
()
src/chat-copilot/webapp/src/libs/auth/AuthHelper.ts:67
↓ 4 callers
Function
headerSortProps
(columnId: TableColumnId)
src/challenge-home/webapp/src/table.tsx:87
↓ 4 callers
Function
timestampToDateString
(timestamp: number, alwaysShowTime = false)
src/chat-copilot/webapp/src/components/utils/TextUtils.tsx:17
↓ 3 callers
Method
__blob_key
(self, user_id: str)
src/picture-submission/webapi/server/models/submission.py:68
↓ 3 callers
Method
__send_update
(self)
src/chat-score/webapi/server/controller/conversation.py:121
↓ 3 callers
Function
check_config_map_exists
(client, config_map_name, namespace)
k8s/deploy.py:173
↓ 3 callers
Function
check_deployment_exists
(client, name, namespace)
k8s/deploy.py:184
↓ 3 callers
Function
createChat
()
src/chat-copilot/webapp/src/libs/hooks/useChat.ts:86
↓ 3 callers
Method
extend
Function to extend the TTL of the connection count key for the given id
src/chat-score/webapi/server/models/connection.py:33
↓ 3 callers
Method
get_conversation
Function to get the conversation details
src/chat-score/webapi/server/models/conversation.py:129
↓ 3 callers
Method
get_submission
(self, user_id: str)
src/picture-submission/webapi/server/models/submission.py:35
↓ 3 callers
Function
handleSubmit
(value: string, messageType: ChatMessageType = ChatMessageType.Message)
src/chat-copilot/webapp/src/components/chat/ChatInput.tsx:149
↓ 3 callers
Function
headerSortProps
(columnId: TableColumnId)
src/chat-copilot/webapp/src/components/chat/tabs/PlansTab.tsx:78
↓ 3 callers
Function
processFileUpload
(file: File)
src/picture-submission/webapp/src/components/PictureUpload.tsx:94
↓ 3 callers
Method
remove
Function to remove a conversation from the queue
src/chat-score/webapi/server/models/conversation.py:143
↓ 3 callers
Method
to_response
(self)
src/chat-score/webapi/server/dtos.py:36
↓ 3 callers
Function
usePlugins
()
src/chat-copilot/webapp/src/libs/hooks/usePlugins.ts:13
↓ 2 callers
Function
GetString
(key string)
src/loadbalancer/internal/config/config.go:71
↓ 2 callers
Method
Init
Init anything that needs to be created before start is called
src/loadbalancer/internal/services/service.go:20
↓ 2 callers
Method
Register
Register all the broadcast this must be called before init
src/loadbalancer/internal/services/service.go:23
↓ 2 callers
Method
Shutdown
Shutdown the service
src/loadbalancer/internal/services/service.go:17
↓ 2 callers
Method
__clean
(self)
src/picture-submission/webapi/server/service/cache.py:34
↓ 2 callers
Method
__key_count
(self)
src/chat-score/webapi/server/models/lock.py:69
↓ 2 callers
Method
__submission_key
(self, user_id: str)
src/picture-submission/webapi/server/models/submission.py:71
↓ 2 callers
Function
acquireToken
( accessTokenRequest: PopupRequest, msalInstance: IPublicClientApplication, interactionStatus: Int
src/chat-copilot/webapp/src/libs/auth/TokenHelper.ts:45
↓ 2 callers
Function
addNewAlert
(alerts: Alert[], newAlert: Alert)
src/chat-copilot/webapp/src/redux/features/app/appSlice.ts:130
↓ 2 callers
Method
add_to_pool
Function to add a connection to the pool
src/chat-score/webapi/server/models/connection.py:68
↓ 2 callers
Function
chatInputLocked
()
src/chat-copilot/webapp/src/components/chat/ChatInput.tsx:190
↓ 2 callers
Function
check_if_ingress_exists
(client, name, namespace)
k8s/deploy.py:206
↓ 2 callers
Function
check_if_job_exists
(client, name, namespace)
k8s/deploy.py:217
↓ 2 callers
Function
check_service_exists
(client, name, namespace)
k8s/deploy.py:195
↓ 2 callers
Method
connect
(self, socket_id: str)
src/chat-score/webapi/server/controller/connection.py:21
↓ 2 callers
Function
createCommandLink
(command: string)
src/chat-copilot/webapp/src/components/utils/TextUtils.tsx:38
↓ 2 callers
Function
createNewChat
(page)
src/chat-copilot/webapp/tests/utils.ts:58
↓ 2 callers
Method
dead_connections
(self)
src/chat-score/webapi/server/controller/connection.py:38
↓ 2 callers
Function
dispatchSocketMessage
(messageName: string, payload: any = undefined)
src/chat-score/webapp/src/libs/services/WorkerService.ts:21
↓ 2 callers
Function
dispatchWorkerMessage
(messageName: string, payload: any = undefined)
src/chat-score/webapp/src/libs/services/WorkerService.ts:12
↓ 2 callers
Function
downloadFile
(filename: string, content: string, type: string)
src/chat-copilot/webapp/src/libs/hooks/useFile.ts:38
↓ 2 callers
Function
ensureBackslash
(url: string)
src/chat-score/webapp/src/libs/services/BaseService.ts:4
↓ 2 callers
Function
getAuthConfig
()
src/chat-copilot/webapp/src/libs/auth/AuthHelper.ts:106
↓ 2 callers
Function
getFileIconByFileExtension
(fileName: string, props: FluentIconsProps = {})
src/chat-copilot/webapp/src/components/chat/tabs/DocumentsTab.tsx:343
↓ 2 callers
Function
getPlanGoal
(description: string)
src/chat-copilot/webapp/src/libs/utils/PlanUtils.ts:5
↓ 2 callers
Function
getSelectedChatID
()
src/chat-copilot/webapp/src/redux/app/store.ts:32
↓ 2 callers
Function
getUrl
(id: number, url?: string)
src/challenge-home/webapp/src/table.tsx:105
↓ 2 callers
Function
get_ctfd_service_instance
()
src/picture-submission/webapi/server/service/ctfd/ctfd.py:171
↓ 2 callers
Function
get_name
(challenge_id: int)
k8s/deploy.py:20
↓ 2 callers
Function
get_name_picture_submission
(challenge_id: int)
k8s/deploy.py:23
↓ 2 callers
Method
get_queue
Function to get the conversation queue
src/chat-score/webapi/server/models/conversation.py:119
↓ 2 callers
Function
isServerConnectionError
(message: string)
src/chat-copilot/webapp/src/redux/features/app/appSlice.ts:123
↓ 2 callers
Function
isSkippable
(message: string | undefined)
src/chat-copilot/webapp/src/components/chat/ChatRoom.tsx:39
↓ 2 callers
Function
makeBatchGetUsersRequest
(userIds: string[], loadedUsers: UserData[], usersToRetry: string[])
src/chat-copilot/webapp/src/libs/hooks/useGraph.ts:100
↓ 2 callers
Function
mapParticipantsNames
(participants: IChatUser[], usersData: Users)
src/chat-copilot/webapp/src/components/chat/controls/ParticipantsList.tsx:94
↓ 2 callers
Function
notify
(connectionState: boolean)
src/chat-score/webapp/src/App.tsx:41
↓ 2 callers
Function
onPlanAction
(planState: PlanState.Approved | PlanState.Rejected)
src/chat-copilot/webapp/src/components/chat/plan-viewer/PlanViewer.tsx:56
↓ 2 callers
Function
renderApp
()
src/chat-copilot/webapp/src/index.tsx:38
↓ 2 callers
Function
sendScore
(passed: boolean, customMessage: string)
src/chat-score/webapp/src/components/conversation/ScoringPane.tsx:83
↓ 2 callers
Function
setPluginStateAsync
(chatId: string, pluginName: string, enabled: boolean)
src/chat-copilot/webapp/src/libs/hooks/usePlugins.ts:44
↓ 2 callers
Method
set_submission
(self, user_id: str, status: SubmissionStatus)
src/picture-submission/webapi/server/models/submission.py:41
↓ 2 callers
Method
stop
Stop the lock. Remove one instance of the lock
src/chat-score/webapi/server/models/lock.py:55
↓ 2 callers
Function
textAreaResize
(element: HTMLTextAreaElement)
src/chat-score/webapp/src/components/StandardRepliesTable.tsx:133
↓ 2 callers
Function
updateConversation
(state: ConversationsState, chatId: string, message: IChatMessage)
src/chat-copilot/webapp/src/redux/features/conversations/conversationsSlice.ts:261
↓ 2 callers
Function
updateDocumentUserInput
(template: string, document: string, userInput: string)
src/chat-copilot/webapp/src/components/chat/tabs/RagTab.tsx:241
↓ 2 callers
Function
updateLastBotResponse
(state: ConversationsState, action: PayloadAction<{ chatId: string; response: string }>)
src/chat-copilot/webapp/src/redux/features/conversations/conversationsSlice.ts:202
↓ 2 callers
Function
updateUserTypingState
(state: ConversationsState, userId: string, chatId: string, isTyping: boolean)
src/chat-copilot/webapp/src/redux/features/conversations/conversationsSlice.ts:270
↓ 2 callers
Function
useChallenge
()
src/picture-submission/webapp/src/libs/hooks/useChallenge.ts:7
↓ 2 callers
Function
validate_cookie
()
src/challenge-home/webapi/app.py:35
↓ 1 callers
Method
Start
Start the service
src/loadbalancer/internal/services/service.go:14
↓ 1 callers
Method
__dead_connections
(self)
src/chat-score/webapi/worker/tasks/tick.py:46
↓ 1 callers
Method
__dead_reviews
(self)
src/chat-score/webapi/worker/tasks/tick.py:40
↓ 1 callers
Method
__is_valid_uuid
(self, guid: str)
src/picture-submission/webapi/server/service/ctfd/ctfd.py:164
↓ 1 callers
Method
__send_update
(self, session_count: int)
src/chat-score/webapi/server/controller/connection.py:52
↓ 1 callers
Method
__sign
(self, data: str)
src/picture-submission/webapi/server/service/ctfd/ctfd.py:159
↓ 1 callers
Method
activity_signal
(self, socket_id: str)
src/chat-score/webapi/server/controller/connection.py:34
↓ 1 callers
Method
add_to_pool_front
Function to add a connection to the pool
src/chat-score/webapi/server/models/connection.py:74
↓ 1 callers
Method
assign_free
Function to assign an unassigned conversation to a reviewer
src/chat-score/webapi/server/models/conversation.py:85
↓ 1 callers
Method
authenticate
(rw http.ResponseWriter, req *http.Request)
src/loadbalancer/internal/services/reverseproxy/http.go:18
next →
1–100 of 490, ranked by callers