fairseq/criterions/__init__.py
Killed 8 out of 10 mutantsSurvived
Survived mutation testing. These mutants show holes in your test suite.Mutant 3301
--- fairseq/criterions/__init__.py
+++ fairseq/criterions/__init__.py
@@ -13,7 +13,7 @@
build_criterion, register_criterion, CRITERION_REGISTRY = registry.setup_registry(
'--criterion',
base_class=FairseqCriterion,
- default='cross_entropy',
+ default='XXcross_entropyXX',
)
Mutant 3302
--- fairseq/criterions/__init__.py
+++ fairseq/criterions/__init__.py
@@ -19,7 +19,7 @@
# automatically import any Python files in the criterions/ directory
for file in os.listdir(os.path.dirname(__file__)):
- if file.endswith('.py') and not file.startswith('_'):
+ if file.endswith('XX.pyXX') and not file.startswith('_'):
module = file[:file.find('.py')]
importlib.import_module('fairseq.criterions.' + module)