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.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. 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. Commit = BugFix | NonBugFix
  21. Label = Commit
  22. def parent(self):
  23. return None
  24. class SStuBBugFix(Label):
  25. WrongIdentifier = auto()
  26. WrongNumericLiteral = auto()
  27. WrongModifier = auto()
  28. WrongBooleanLiteral = auto()
  29. WrongFunctionName = auto()
  30. TooFewArguments = auto()
  31. TooManyArguments = auto()
  32. WrongFunction = WrongFunctionName | TooFewArguments | TooManyArguments
  33. WrongBinaryOperator = auto()
  34. WrongUnaryOperator = auto()
  35. WrongOperator = WrongBinaryOperator | WrongUnaryOperator
  36. MissingThrowsException = auto()
  37. SStuB = WrongIdentifier | WrongNumericLiteral | WrongModifier | WrongBooleanLiteral | WrongFunction | WrongOperator | MissingThrowsException
  38. BugFix = SStuB
  39. def parent(self):
  40. return CommitLabel.BugFix
  41. class TangledCommit(Label):
  42. Tangled = auto()
  43. NonTangled = auto()
  44. Commit = Tangled | NonTangled
  45. def parent(self):
  46. return CommitLabel.Commit
  47. class SnippetLabel(Label):
  48. LongMethod = auto()
  49. LongParameterList = auto()
  50. Smelly = LongMethod | LongParameterList
  51. NonSmelly = auto()
  52. Snippet = Smelly | NonSmelly
  53. Label = Snippet
  54. def parent(self):
  55. return CommitLabel.Label
Tip!

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

Comments

Loading...