Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ArjanCodes/2021-code-smells
/ functions
Functions
18 in github.com/ArjanCodes/2021-code-smells
⨍
Functions
18
◇
Types & classes
10
↓ 3 callers
Method
add_employee
Add an employee to the list of employees.
before.py:64
↓ 3 callers
Method
add_employee
Add an employee to the list of employees.
after.py:102
↓ 3 callers
Method
find_employees
Find all employees with a particular role in the employee list
after.py:106
↓ 1 callers
Method
__init__
(self)
after.py:99
↓ 1 callers
Method
find_interns
Find all interns.
before.py:84
↓ 1 callers
Method
find_managers
Find all manager employees.
before.py:68
↓ 1 callers
Method
find_vice_presidents
Find all vice-president employees.
before.py:76
↓ 1 callers
Function
main
Main function.
before.py:105
↓ 1 callers
Function
main
Main function.
after.py:111
↓ 1 callers
Method
pay
Method to call when paying an employee
after.py:43
↓ 1 callers
Method
pay_employee
Pay an employee.
before.py:92
↓ 1 callers
Method
take_a_holiday
Let the employee take a single holiday, or pay out 5 holidays.
before.py:19
↓ 1 callers
Method
take_a_holiday
Let the employee take a holiday (lazy bastard)
after.py:46
Method
__init__
(self)
before.py:61
Method
__init__
(self, requested_days: int, remaining_days: int, message: str)
after.py:16
Method
pay
(self)
after.py:77
Method
pay
(self)
after.py:90
Method
payout_a_holiday
Let the employee get paid for unused holidays.
after.py:57