Added range query.#158
Conversation
|
修了,哥们大概 %1 的概率被你碰上了 @Mr-Python-in-China |
|
快忘了这还有个issue了 |
Mr-Python-in-China
left a comment
There was a problem hiding this comment.
还有一些地方没有通过类型检查 留注释了 你再看看
|
@Mr-Python-in-China 咋 FST 了,好像不是我的锅 |
|
好像是上游工具锅了,我先在我的仓库里面降级看看能不能过 test |
|
你怎么把test workflow改了 |
因为不改不知道为什么 tox 没办法找到其他版本的解释器(在 GitHub 上)了,看我第一次 FST 的那个 commit |
不用测这么全啊 3.6没问题3.8没问题3.7也很难有问题 稍微节约点额度 测一次的时间还不少 |
|
哦好的,那我改成之前的 |
|
考不考虑什么更多的功能啊 比如说随机更大/更小的区间来满足hack之类的要求 |
考虑的,等省选之后我抽空会实现 |
2f520f5 to
7056a5a
Compare
|
@Mr-Python-in-China 希望早日 merge 吧,感觉再写会写的很臭啊,而且实在想不到啥 feature 了 |
|
?为啥我没权限推代码 |
这么深刻,我看看 |
|
我啥也没干啊,你之前不是,push 过吗? |
|
等下,我自己怎么都没办法访问 settings 页了????? |
|
你看看行了吗 |
This comment was marked as outdated.
This comment was marked as outdated.
|
还是不行啊 |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
好了 |
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for generating high-dimensional range queries with uniform distribution. The implementation includes a new RangeQuery class with comprehensive test coverage and documentation.
- Added a new
RangeQueryclass incyaron/query.pywith support for multi-dimensional range query generation - Implemented comprehensive test suite covering various query generation modes and edge cases
- Updated project dependencies and CI configuration to support the new functionality
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
cyaron/query.py |
Core implementation of RangeQuery class with random query generation functionality |
cyaron/tests/range_query_test.py |
Comprehensive test suite for range query functionality |
cyaron/__init__.py |
Export RangeQuery class in module's public API |
cyaron/tests/__init__.py |
Include range query tests in test suite |
pyproject.toml |
Pin poetry-core version for build stability |
cyaron/graders/noipstyle.py |
Minor code formatting improvements |
.github/workflows/test.yml |
Update CI platform and conditional Python 3.6 setup |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
你再看一眼,我准备 merge 了 |
|
好的,应该没啥了 |

如题,增加了对均匀生成高维区间查询的支持,已经经过测试