def apply_config(self, config):
self.rise = int(config["<STR_LIT>"])<EOL>self.fall = int(config["<STR_LIT>"])<EOL>self.apply_check_config(config)<EOL>if self.results.maxlen == max(self.rise, self.fall):<EOL><INDENT>return<EOL><DEDENT>results = list(self.results)<EOL>while len(results) > max(self.rise, self.fall):<EOL><INDENT>results.pop(<NUM_LIT:0>)<EOL><DEDENT>while len(results) < max(self.rise, self.fall):<EOL><INDENT>results.insert(<NUM_LIT:0>, False)<EOL><DEDENT>self.results = deque(<EOL>results,<EOL>maxlen=max(self.rise, self.fall)<EOL>)<EOL>
Sets attributes based on the given config.

Also adjusts the `results` deque to either expand (padding itself with
False results) or contract (by removing the oldest results) until it
matches the required length.