def _get_stat(self):
def dev_filter(x):<EOL><INDENT>x = x.strip().split("<STR_LIT:U+0020>")[<NUM_LIT:0>][:-<NUM_LIT:1>]<EOL>if x in self.interfaces_blacklist:<EOL><INDENT>return False<EOL><DEDENT>if self.all_interfaces:<EOL><INDENT>return True<EOL><DEDENT>if x in self.interfaces:<EOL><INDENT>return True<EOL><DEDENT>return False<EOL><DEDENT>x = filter(dev_filter, open(self.devfile).readlines()[<NUM_LIT:2>:])<EOL>try:<EOL><INDENT>return [list(filter(lambda x: x, _x.split("<STR_LIT:U+0020>"))) for _x in x]<EOL><DEDENT>except StopIteration:<EOL><INDENT>return None<EOL><DEDENT>
Get statistics from devfile in list of lists of words