Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

bug_if_sstub.py 391 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
  1. from typing import Optional
  2. from bohrapi.artifacts import Commit
  3. from bohrapi.core import Heuristic
  4. from bohrlabels.core import OneOrManyLabels
  5. from bohrlabels.labels import CommitLabel
  6. @Heuristic(Commit)
  7. def bug_if_sstub(commit: Commit) -> Optional[OneOrManyLabels]:
  8. if "mine_sstubs/head" in commit.raw_data and commit.raw_data["mine_sstubs/head"]:
  9. return CommitLabel.BugFix
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...