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.9 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
67
68
69
  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. ProjectVersionBump = auto()
  19. DependencyVersionBump = auto()
  20. VersionBump = ProjectVersionBump | DependencyVersionBump
  21. Merge = auto()
  22. NonBugFix = DocChange | TestFix | Refactoring | CopyChangeAdd | Feature | InitialCommit | VersionBump | Merge
  23. CommitLabel = BugFix | NonBugFix
  24. def parent(self):
  25. return None
  26. class SStuB(Label):
  27. WrongIdentifier = auto()
  28. WrongNumericLiteral = auto()
  29. WrongModifier = auto()
  30. WrongBooleanLiteral = auto()
  31. WrongFunctionName = auto()
  32. TooFewArguments = auto()
  33. TooManyArguments = auto()
  34. WrongFunction = WrongFunctionName | TooFewArguments | TooManyArguments
  35. WrongBinaryOperator = auto()
  36. WrongUnaryOperator = auto()
  37. WrongOperator = WrongBinaryOperator | WrongUnaryOperator
  38. MissingThrowsException = auto()
  39. SStuB = WrongIdentifier | WrongNumericLiteral | WrongModifier | WrongBooleanLiteral | WrongFunction | WrongOperator | MissingThrowsException
  40. def parent(self):
  41. return CommitLabel.BugFix
  42. class CommitTangling(Label):
  43. Tangled = auto()
  44. NonTangled = auto()
  45. CommitTangling = Tangled | NonTangled
  46. def parent(self):
  47. return CommitLabel.CommitLabel
  48. class SnippetLabel(Label):
  49. LongMethod = auto()
  50. LongParameterList = auto()
  51. Smelly = LongMethod | LongParameterList
  52. NonSmelly = auto()
  53. SnippetLabel = Smelly | NonSmelly
  54. def parent(self):
  55. return None
Tip!

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

Comments

Loading...