refactor: set Pattern
encoder in ENCODERS_BY_TYPE
#2444
Merged
Pattern
encoder in ENCODERS_BY_TYPE
#2444