[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-11-21 09:08:38 +00:00
parent bad910e71c
commit 930c4d463f

View File

@ -44,7 +44,7 @@ class PPM:
self.update_model(context, symbol)
# Encode the symbol based on the current context
compressed_output.append(self.encode_symbol(context, symbol))
# Update the context by appending the symbol,
# Update the context by appending the symbol,
# keeping it within the specified order
context = (context + symbol)[-self.order :] # Keep the context within order