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

labels.py 1.8 KB

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
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
  1. # This is automatically generated code. Do not edit manually.
  2. from enum import auto
  3. from bohr.labeling.labelset import Label
  4. class CommitLabel(Label):
  5. MinorBugFix = auto()
  6. MajorBugFix = auto()
  7. CriticalBugFix = auto()
  8. OtherSeverityLevelBugFix = auto()
  9. BugFix = MinorBugFix | MajorBugFix | CriticalBugFix | OtherSeverityLevelBugFix
  10. DocAdd = auto()
  11. DocSpellingFix = auto()
  12. DocChange = DocAdd | DocSpellingFix
  13. TestFix = auto()
  14. Refactoring = auto()
  15. CopyChangeAdd = auto()
  16. Feature = auto()
  17. InitialCommit = auto()
  18. VersionBump = auto()
  19. NonBugFix = DocChange | TestFix | Refactoring | CopyChangeAdd | Feature | InitialCommit | VersionBump
  20. CommitLabel = BugFix | NonBugFix
  21. def parent(self):
  22. return None
  23. class SStuB(Label):
  24. WrongIdentifier = auto()
  25. WrongNumericLiteral = auto()
  26. WrongModifier = auto()
  27. WrongBooleanLiteral = auto()
  28. WrongFunctionName = auto()
  29. TooFewArguments = auto()
  30. TooManyArguments = auto()
  31. WrongFunction = WrongFunctionName | TooFewArguments | TooManyArguments
  32. WrongBinaryOperator = auto()
  33. WrongUnaryOperator = auto()
  34. WrongOperator = WrongBinaryOperator | WrongUnaryOperator
  35. MissingThrowsException = auto()
  36. SStuB = WrongIdentifier | WrongNumericLiteral | WrongModifier | WrongBooleanLiteral | WrongFunction | WrongOperator | MissingThrowsException
  37. def parent(self):
  38. return CommitLabel.BugFix
  39. class CommtiTangling(Label):
  40. Tangled = auto()
  41. NonTangled = auto()
  42. CommtiTangling = Tangled | NonTangled
  43. def parent(self):
  44. return CommitLabel.CommitLabel
  45. class SnippetLabel(Label):
  46. LongMethod = auto()
  47. LongParameterList = auto()
  48. Smelly = LongMethod | LongParameterList
  49. NonSmelly = auto()
  50. SnippetLabel = Smelly | NonSmelly
  51. def parent(self):
  52. return None
Tip!

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

Comments

Loading...