Enhance deltacode matching
还没有人认领这个 Issue。
评估
调研方向
首先定位路径比较的入口点,该入口点接收两个 ScanCode CSV 或 JSON 输入;使用 issue 中的示例作为案例,从右侧开始匹配连续的路径段,并保留最高 score 的并列结果。完成的标准是比较返回 pathmatch 和 pathscore 信息,并按指定过滤掉 score 较低的匹配结果。
由索引模型根据 Issue 内容生成。
描述
Given 2 inputs (either csv or json) from scancode scan, the tool should compare the two inputs based on the path value and return pathmatch and pathscore information.
The current behavior is to compare with the "full" path. However, what will be a better way is the compare with segments.
Input A is the path that we want to find matches.
For instance,
Input A:
/tmp/project/a/b/c/d.java
Input B:
/project/test/a/b/c/d.java
deltacode may conclude the above 2 do not match.
Instead, deltacode should return pathscore as 4 (because the above 2 inputs have 4 consecutive segments match starting from the end/right to left) and let user to conclude if this is a real match or not.
In addition, it should also automatically do some filtering in a sense that only keep the highest pathscore as a match and keep both if pathscore are the same for the input.
For instance,
Input C:
/project/c/d.java
Input D:
/tmp/test/a/b/c/d.java
Input C will automatically be ignored because it only has pathscore 2
Input B and D should be kept because these both have pathscore 4
- 主要语言
- Python
- 星标
- 22
- 派生
- 27
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aboutcode-org/deltacode 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
aboutcode-org/deltacode#191 · 2 条评论 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 18/100
aboutcode-org/deltacode#183 · 2 条评论 · 3 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
aboutcode-org/deltacode#181 ·
-
Separate csv formatted output in Deltacode可能重新可做 @nilaygit-10721 于 724 天前认领,目前没有进行中的 PR。 未关闭easy enhancement GSOC needs design refactoring
难度 2/5 1-3 小时 新手友好度 45/100
aboutcode-org/deltacode#179 · 1 条评论 ·
-
Remove redundant File model可能已有人在做 @pratik0316 于 1934 天前认领。 未关闭GSOC
aboutcode-org/deltacode#175 · 已指派 1 人 ·
查看 aboutcode-org/deltacode 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
elviskahoro/sdk-python-attio#144 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
RenyiELBO raises TypeError when model has no sample sites可能已有人在做 @alibb007 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复