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.7 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
  1. # This is automatically generated code. Do not edit manually.
  2. from enum import auto
  3. from bohr.labels.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. DocFix = auto()
  11. TestFix = auto()
  12. BogusFix = DocFix | TestFix
  13. Refactoring = auto()
  14. NonBugFix = BogusFix | Refactoring
  15. Commit = BugFix | NonBugFix
  16. Label = Commit
  17. def parent(self):
  18. return None
  19. class SStuBBugFix(Label):
  20. WrongIdentifier = auto()
  21. WrongNumericLiteral = auto()
  22. WrongModifier = auto()
  23. WrongBooleanLiteral = auto()
  24. WrongFunctionName = auto()
  25. TooFewArguments = auto()
  26. TooManyArguments = auto()
  27. WrongFunction = WrongFunctionName | TooFewArguments | TooManyArguments
  28. WrongBinaryOperator = auto()
  29. WrongUnaryOperator = auto()
  30. WrongOperator = WrongBinaryOperator | WrongUnaryOperator
  31. MissingThrowsException = auto()
  32. SStuB = WrongIdentifier | WrongNumericLiteral | WrongModifier | WrongBooleanLiteral | WrongFunction | WrongOperator | MissingThrowsException
  33. BugFix = SStuB
  34. def parent(self):
  35. return CommitLabel.BugFix
  36. class TangledCommit(Label):
  37. Tangled = auto()
  38. NonTangled = auto()
  39. Commit = Tangled | NonTangled
  40. def parent(self):
  41. return CommitLabel.Commit
  42. class SnippetLabel(Label):
  43. LongMethod = auto()
  44. LongParameterList = auto()
  45. Smelly = LongMethod | LongParameterList
  46. NonSmelly = auto()
  47. Snippet = Smelly | NonSmelly
  48. Label = Snippet
  49. def parent(self):
  50. return CommitLabel.Label
Tip!

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

Comments

Loading...