def edit_rules(self, description, key, value):
        count = 0
        description = description.lower()

        for i in range(0, len(self.extract_rules)):
            if self.extract_rules[i]['regex'].search(description):
                if has_key(self.extract_rules[i], key):
                    self.extract_rules[i][key] = value
                    count += 1

        return count
:API: public
dataset/ETHPy150Open devttys0/binwalk/src/binwalk/modules/extractor.py/Extractor.edit_rules--crossover with--dataset/ETHPy150Open pantsbuild/pants/tests/python/pants_test/java/test_util.py/ExecuteJavaTest.test_execute_java_no_synthentic_jar