a8fadfa8f46090930a3dc2befcea1e502de04b91,deepvariant/make_examples.py,OutputsWriter,__init__,#OutputsWriter#Any#,1000

Before Change


  def __init__(self, options):
    self._writers = {}
    if options.candidates_filename:
      logging.info("Writing candidates to %s", options.candidates_filename)
      self._add_writer("candidates",
                       io_utils.make_tfrecord_writer(
                           options.candidates_filename))
    if options.examples_filename:

After Change


  Manages all of the outputs of make_examples in a single place.

  def __init__(self, options):
    self._writers = {k: None for k in ["candidates", "examples", "gvcfs"]}

    if options.candidates_filename:
      self._add_writer("candidates",
                       io_utils.RawProtoWriterAdaptor(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: google/deepvariant
Commit Name: a8fadfa8f46090930a3dc2befcea1e502de04b91
Time: 2018-01-17
Author: mdepristo@google.com
File Name: deepvariant/make_examples.py
Class Name: OutputsWriter
Method Name: __init__


Project Name: dmlc/gluon-nlp
Commit Name: b61667d3daac5610cf40a7346efddb34476c059b
Time: 2019-06-18
Author: linhaibin.eric@gmail.com
File Name: scripts/bert/finetune_squad.py
Class Name:
Method Name: train


Project Name: NifTK/NiftyNet
Commit Name: 696c0bba5172aa702b46e36119cbf73776fcfeee
Time: 2018-11-22
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/handler_model.py
Class Name: ModelRestorer
Method Name: restore_model