7b8fb4e52ed6ec943e08ac554365c31e4b591213,onmt/models/model_saver.py,ModelSaver,_rm_checkpoint,#ModelSaver#Any#,133
Before Change
return checkpoint, checkpoint_path
def _rm_checkpoint(self, name):
os.remove(name)
After Change
return checkpoint, checkpoint_path
def _rm_checkpoint(self, name):
if os.path.exists(name):
os.remove(name)
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 3
Instances
Project Name: OpenNMT/OpenNMT-py
Commit Name: 7b8fb4e52ed6ec943e08ac554365c31e4b591213
Time: 2020-01-28
Author: francois.hernandez.fh@gmail.com
File Name: onmt/models/model_saver.py
Class Name: ModelSaver
Method Name: _rm_checkpoint
Project Name: allenai/allennlp
Commit Name: ff8f9668ef339efaee3ff0b56dbe04f85a183794
Time: 2020-03-02
Author: wuzhaofeng1997@gmail.com
File Name: allennlp/tests/data/dataset_readers/coreference/preco_reader_test.py
Class Name: TestPrecoReader
Method Name: test_read_from_file
Project Name: hanxiao/bert-as-service
Commit Name: b81c3bf143c79c3e3f4e4511990eb587a528f5d1
Time: 2019-01-30
Author: hanhxiao@tencent.com
File Name: client/bert_serving/client/__init__.py
Class Name: BertClient
Method Name: _recv
Project Name: deeppomf/DeepCreamPy
Commit Name: 522875c6af843dc9e86ef17b66b66aa36bfc11f3
Time: 2019-05-06
Author: shmishmi79@gmail.com
File Name: file.py
Class Name:
Method Name: error_messages
Project Name: microsoft/nni
Commit Name: 06e438b7eff63e757f3a58d60b7ca7923d2bd5ae
Time: 2021-02-03
Author: 49771382+zheng-ningxin@users.noreply.github.com
File Name: nni/common/graph_utils.py
Class Name: TorchModuleGraph
Method Name: unpack_manually
Project Name: microsoft/nni
Commit Name: acc311dd3e15135ca35f69b0183e5b0f9f4beadf
Time: 2019-04-27
Author: 15094695770@163.com
File Name: tools/nni_gpu_tool/gpu_metrics_collector.py
Class Name:
Method Name: check_ready_to_run
Project Name: tzutalin/labelImg
Commit Name: 949e46cec4b4aaaa5b0a753fdcd449d2cb06b0c7
Time: 2020-09-26
Author: tzu.ta.lin@gmail.com
File Name: labelImg.py
Class Name: MainWindow
Method Name: deleteImg