MCPcopy Create free account

hub / github.com/ShouZhengAI/CS146S_CN / functions

Functions152 in github.com/ShouZhengAI/CS146S_CN

↓ 7 callersFunctionget_connection
()
Assignments/week2/app/db.py:17
↓ 6 callersFunctionfetchJSON
(url, options)
Assignments/week7/frontend/app.js:1
↓ 6 callersFunctionfetchJSON
(url, options)
Assignments/week6/frontend/app.js:1
↓ 5 callersFunctionfetchJSON
(url, options)
Assignments/week5/frontend/app.js:1
↓ 5 callersFunctionfetchJSON
(url, options)
Assignments/week4/frontend/app.js:1
↓ 3 callersFunctionloadActions
(params = {})
Assignments/week7/frontend/app.js:19
↓ 3 callersFunctionloadActions
(params = {})
Assignments/week6/frontend/app.js:19
↓ 3 callersFunctionloadNotes
(params = {})
Assignments/week7/frontend/app.js:7
↓ 3 callersFunctionloadNotes
(params = {})
Assignments/week6/frontend/app.js:7
↓ 3 callersFunctionresolve_abs_path
file.py -> /Users/home/mihail/modern-software-dev-lectures/file.py
Resource/completed/coding_agent_from_scratch_lecture.py:30
↓ 3 callersFunctionresolve_abs_path
file.py -> /Users/home/mihail/modern-software-dev-lectures/file.py
Resource/completed/simple_mcp.py:8
↓ 2 callersFunctionensure_data_directory_exists
()
Assignments/week2/app/db.py:13
↓ 2 callersFunctionevaluate_function
(func: Callable[[str], bool])
Assignments/week1/reflexion.py:67
↓ 2 callersFunctionextract_action_items
(text: str)
Assignments/week2/app/services/extract.py:34
↓ 2 callersFunctionextract_code_block
(text: str)
Assignments/week1/reflexion.py:48
↓ 2 callersFunctionget_full_system_prompt
()
Resource/completed/coding_agent_from_scratch_lecture.py:116
↓ 2 callersFunctionloadActions
()
Assignments/week5/frontend/app.js:18
↓ 2 callersFunctionloadActions
()
Assignments/week4/frontend/app.js:18
↓ 2 callersFunctionloadNotes
()
Assignments/week5/frontend/app.js:7
↓ 2 callersFunctionloadNotes
()
Assignments/week4/frontend/app.js:7
↓ 2 callersFunctionload_function_from_code
(code_str: str)
Assignments/week1/reflexion.py:58
↓ 1 callersFunction_annotation_to_str
(annotation: Optional[ast.AST])
Assignments/week1/tool_calling.py:19
↓ 1 callersFunction_is_action_line
(line: str)
Assignments/week2/app/services/extract.py:21
↓ 1 callersFunction_list_function_return_types
(file_path: str)
Assignments/week1/tool_calling.py:31
↓ 1 callersFunction_looks_imperative
(sentence: str)
Assignments/week2/app/services/extract.py:69
↓ 1 callersFunctionapply_reflexion
( reflexion_prompt: str, build_context: Callable[[str, List[str]], str], prev_code: str, failu
Assignments/week1/reflexion.py:119
↓ 1 callersFunctionapply_seed_if_needed
()
Assignments/week7/backend/app/db.py:43
↓ 1 callersFunctionapply_seed_if_needed
()
Assignments/week6/backend/app/db.py:43
↓ 1 callersFunctionapply_seed_if_needed
()
Assignments/week5/backend/app/db.py:43
↓ 1 callersFunctionapply_seed_if_needed
()
Assignments/week4/backend/app/db.py:43
↓ 1 callersFunctioncompute_expected_output
()
Assignments/week1/tool_calling.py:144
↓ 1 callersFunctionexecute_llm_call
(conversation: List[Dict[str, str]])
Resource/completed/coding_agent_from_scratch_lecture.py:146
↓ 1 callersFunctionexecute_tool_call
(call: Dict[str, Any])
Assignments/week1/tool_calling.py:123
↓ 1 callersFunctionextract_action_items
(text: str)
Assignments/week7/backend/app/services/extract.py:1
↓ 1 callersFunctionextract_action_items
(text: str)
Assignments/week6/backend/app/services/extract.py:1
↓ 1 callersFunctionextract_action_items
(text: str)
Assignments/week5/backend/app/services/extract.py:1
↓ 1 callersFunctionextract_action_items
(text: str)
Assignments/week4/backend/app/services/extract.py:1
↓ 1 callersFunctionextract_code_block
Extract the last fenced Python code block, or any fenced code block, else return text.
Assignments/week1/rag.py:84
↓ 1 callersFunctionextract_final_answer
Extract the final 'Answer: ...' line from a verbose reasoning trace. - Finds the LAST line that starts with 'Answer:' (case-insensitive) - No
Assignments/week1/self_consistency_prompting.py:28
↓ 1 callersFunctionextract_final_answer
Extract the final 'Answer: ...' line from a verbose reasoning trace. - Finds the LAST line that starts with 'Answer:' (case-insensitive) - No
Assignments/week1/chain_of_thought.py:28
↓ 1 callersFunctionextract_tool_call
Parse a single JSON object from the model output.
Assignments/week1/tool_calling.py:95
↓ 1 callersFunctionextract_tool_invocations
Return list of (tool_name, args) requested in 'tool: name({...})' lines. The parser expects single-line, compact JSON in parentheses.
Resource/completed/coding_agent_from_scratch_lecture.py:123
↓ 1 callersFunctiongenerate_initial_function
(system_prompt: str)
Assignments/week1/reflexion.py:99
↓ 1 callersFunctionget_tool_str_representation
(tool_name: str)
Resource/completed/coding_agent_from_scratch_lecture.py:108
↓ 1 callersFunctioninit_db
()
Assignments/week2/app/db.py:24
↓ 1 callersFunctionload_corpus_from_files
(paths: List[str])
Assignments/week1/rag.py:18
↓ 1 callersFunctionmake_user_prompt
(question: str, context_docs: List[str])
Assignments/week1/rag.py:67
↓ 1 callersFunctionoutput_every_func_return_type
Tool: Return a newline-delimited list of "name: return_type" for each top-level function.
Assignments/week1/tool_calling.py:45
↓ 1 callersFunctionresolve_path
(p: str)
Assignments/week1/tool_calling.py:84
↓ 1 callersFunctionrun_coding_agent_loop
()
Resource/completed/coding_agent_from_scratch_lecture.py:154
↓ 1 callersFunctionrun_model_for_tool_call
(system_prompt: str)
Assignments/week1/tool_calling.py:110
↓ 1 callersFunctionrun_reflexion_flow
( system_prompt: str, reflexion_prompt: str, build_context: Callable[[str, List[str]], str], )
Assignments/week1/reflexion.py:138
↓ 1 callersFunctiontest_your_prompt
Run once: require the model to produce a valid tool call; compare tool output to expected.
Assignments/week1/tool_calling.py:149
↓ 1 callersFunctiontest_your_prompt
Run the prompt NUM_RUNS_TIMES, majority-vote on the extracted 'Answer: ...' lines. Prints "SUCCESS" if the majority answer equals EXPECTED_OUTPUT
Assignments/week1/self_consistency_prompting.py:45
↓ 1 callersFunctiontest_your_prompt
Run up to NUM_RUNS_TIMES and return True if any output matches EXPECTED_OUTPUT. Prints "SUCCESS" when a match is found.
Assignments/week1/chain_of_thought.py:46
↓ 1 callersFunctiontest_your_prompt
Run the prompt up to NUM_RUNS_TIMES and return True if any output matches EXPECTED_OUTPUT. Prints "SUCCESS" when a match is found.
Assignments/week1/k_shot_prompting.py:41
↓ 1 callersFunctiontest_your_prompt
Run up to NUM_RUNS_TIMES and return True if any output matches EXPECTED_OUTPUT.
Assignments/week1/rag.py:97
FunctionYOUR_CONTEXT_PROVIDER
TODO: Select and return the relevant subset of documents from CORPUS for this task. For example, return [] to simulate missing context, or [corpu
Assignments/week1/rag.py:59
Functionadd
(a: int, b: int)
Assignments/week1/tool_calling.py:58
Functionclient
()
Assignments/week7/backend/tests/conftest.py:15
Functionclient
()
Assignments/week6/backend/tests/conftest.py:15
Functionclient
()
Assignments/week5/backend/tests/conftest.py:15
Functionclient
()
Assignments/week4/backend/tests/conftest.py:15
Functioncomplete_item
(item_id: int, db: Session = Depends(get_db))
Assignments/week7/backend/app/routers/action_items.py:47
Functioncomplete_item
(item_id: int, db: Session = Depends(get_db))
Assignments/week6/backend/app/routers/action_items.py:47
Functioncomplete_item
(item_id: int, db: Session = Depends(get_db))
Assignments/week5/backend/app/routers/action_items.py:28
Functioncomplete_item
(item_id: int, db: Session = Depends(get_db))
Assignments/week4/backend/app/routers/action_items.py:28
Functioncreate_item
(payload: ActionItemCreate, db: Session = Depends(get_db))
Assignments/week7/backend/app/routers/action_items.py:38
Functioncreate_item
(payload: ActionItemCreate, db: Session = Depends(get_db))
Assignments/week6/backend/app/routers/action_items.py:38
Functioncreate_item
(payload: ActionItemCreate, db: Session = Depends(get_db))
Assignments/week5/backend/app/routers/action_items.py:19
Functioncreate_item
(payload: ActionItemCreate, db: Session = Depends(get_db))
Assignments/week4/backend/app/routers/action_items.py:19
Functioncreate_note
(payload: NoteCreate, db: Session = Depends(get_db))
Assignments/week7/backend/app/routers/notes.py:38
Functioncreate_note
(payload: NoteCreate, db: Session = Depends(get_db))
Assignments/week6/backend/app/routers/notes.py:38
Functioncreate_note
(payload: NoteCreate, db: Session = Depends(get_db))
Assignments/week5/backend/app/routers/notes.py:21
Functioncreate_note
(payload: Dict[str, Any])
Assignments/week2/app/routers/notes.py:14
Functioncreate_note
(payload: NoteCreate, db: Session = Depends(get_db))
Assignments/week4/backend/app/routers/notes.py:21
Functiondebug_eval
(expr: str)
Assignments/week6/backend/app/routers/notes.py:103
Functiondebug_fetch
(url: str)
Assignments/week6/backend/app/routers/notes.py:117
Functiondebug_hash_md5
(q: str)
Assignments/week6/backend/app/routers/notes.py:96
Functiondebug_read
(path: str)
Assignments/week6/backend/app/routers/notes.py:126
Functiondebug_run
(cmd: str)
Assignments/week6/backend/app/routers/notes.py:109
Functionedit_file_tool
Replaces first occurrence of old_str with new_str in file. If old_str is empty, create/overwrite file with new_str. :param path: The path
Resource/completed/coding_agent_from_scratch_lecture.py:72
Functionedit_file_tool
Replaces first occurrence of old_str with new_str in file. If old_str is empty, creates/overwrites file with new_str. :param path: The path t
Resource/completed/simple_mcp.py:54
Functionextract
(payload: Dict[str, Any])
Assignments/week2/app/routers/action_items.py:15
Functionget_db
()
Assignments/week7/backend/app/db.py:18
Functionget_db
()
Assignments/week6/backend/app/db.py:18
Functionget_db
()
Assignments/week5/backend/app/db.py:18
Functionget_db
()
Assignments/week4/backend/app/db.py:18
Functionget_note
(note_id: int, db: Session = Depends(get_db))
Assignments/week7/backend/app/routers/notes.py:62
Functionget_note
(note_id: int, db: Session = Depends(get_db))
Assignments/week6/backend/app/routers/notes.py:62
Functionget_note
(note_id: int, db: Session = Depends(get_db))
Assignments/week5/backend/app/routers/notes.py:43
Functionget_note
(note_id: int)
Assignments/week2/app/db.py:67
Functionget_note
(note_id: int, db: Session = Depends(get_db))
Assignments/week4/backend/app/routers/notes.py:43
Functionget_session
()
Assignments/week7/backend/app/db.py:31
Functionget_session
()
Assignments/week6/backend/app/db.py:31
Functionget_session
()
Assignments/week5/backend/app/db.py:31
Functionget_session
()
Assignments/week4/backend/app/db.py:31
Functionget_single_note
(note_id: int)
Assignments/week2/app/routers/notes.py:28
Functiongreet
(name: str)
Assignments/week1/tool_calling.py:62
Functionindex
()
Assignments/week2/app/main.py:20
next →1–100 of 152, ranked by callers