
Cursor Position【免费下载链接】zedCode at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.项目地址: https://gitcode.com/GitHub_Trending/ze/zedcookie rv.headers[set-cookie].lower() assert samesitelax in cookie def test_session_cookie_secur(app, client): # ^[CURSOR_POSITION] app.config[SESSION_COOKIE_HTTPONLY] True app.route(/) def index(): flask.session[testing] 42 return Hello World rv client.get(/) assert httponly in rv.headers[set-cookie].lower() def test_missing_session(app):- 围栏代码块的语言位(info string)写的是**文件路径** tests/test_basic.py,解析时直接成为 spec.cursor_path。 - 标记行 # ^[CURSOR_POSITION] 遵循 [example_spec.rs](https://link.gitcode.com/i/076fcfccb2e26ee3d1f0211dd44cf7d5) 中 cursor_excerpt 的约定:光标位于标记行的**上一行**,列号由 ^ 所在列决定(此处 ^ 在第 29 列,即 secur 之后、( 之前——用户正要补上最后的 e);当光标列小于注释前缀长度时改用 ,指向该行第一个非空白字符。同文件测试 test_cursor_excerpt_with_caret 系统验证了这两种格式。此外还存在行内标记 |user_cursor| 的第三种等价表示(见 INLINE_CURSOR_MARKER 与测试 test_cursor_excerpt_with_inline_marker)。 - 摘录本身是光标上下文窗口:上方 3 行、下方 4 行(与 [synthesize.rs](https://link.gitcode.com/i/5591e2ebdb4e255a9a5584c8abad1cda) 中 extract_cursor_excerpt 的取窗逻辑一致)。 **Expected Patch(模型应给出的预测):** diff --- a/tests/test_basic.py b/tests/test_basic.py -358,14 358,14 -def test_session_cookie_secur(app, client): - app.config[SESSION_COOKIE_HTTPONLY] True def test_session_cookie_secure(app, client): app.config[SESSION_COOKIE_SECURE] True app.route(/) def index(): flask.session[testing] 42 return Hello World rv client.get(/) - assert httponly in rv.headers[set-cookie].lower() assert secure in rv.headers[set-cookie].lower()【免费下载链接】zedCode at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.项目地址: https://gitcode.com/GitHub_Trending/ze/zed创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考