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

large_change.py 506 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
13
14
15
16
17
  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 large_change(commit: Commit) -> Optional[OneOrManyLabels]:
  8. if (
  9. "bohr" in commit.raw_data
  10. and "gt_512_codeberta_tokens" in commit.raw_data["bohr"]
  11. ):
  12. if commit.raw_data["bohr"]["gt_512_codeberta_tokens"]:
  13. return CommitLabel.NonBugFix
  14. return None
Tip!

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

Comments

Loading...