2fb9ed3faa5cb1062fd7f0f0ade407ed58e6d244,niftynet/io/image_window.py,ImageWindow,set_spatial_shape,#ImageWindow#Any#,40

Before Change


            tf.logging.fatal("spatial window should be an array of int")
            raise
        for name in self.fields:
            non_spatial_dims = list(self.shapes[name][len(spatial_window):])
            self.shapes[name] = tuple(spatial_window + non_spatial_dims)

    def placeholders_dict(self, n_samples=1):
        
        This function create a dictionary with items of {name: placeholders}

After Change


        except ValueError:
            tf.logging.fatal("spatial window should be an array of int")
            raise
        self.shapes = {
            name: complete_partial_window_sizes(
                spatial_window, self.shapes[name])
            for name in self.fields}
        // update based on the latest spatial shapes
        self.has_dynamic_shapes = self._check_dynamic_shapes()

    def placeholders_dict(self, n_samples=1):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 7

Instances


Project Name: NifTK/NiftyNet
Commit Name: 2fb9ed3faa5cb1062fd7f0f0ade407ed58e6d244
Time: 2017-08-15
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_window.py
Class Name: ImageWindow
Method Name: set_spatial_shape


Project Name: mozilla/TTS
Commit Name: d733b902552295be41b1f88c8343b5e7b4ff8a9b
Time: 2020-09-16
Author: nicolas.mueller@aisec.fraunhofer.de
File Name: TTS/speaker_encoder/dataset.py
Class Name: MyDataset
Method Name: __parse_items


Project Name: kengz/SLM-Lab
Commit Name: ba34b5215fa710d95f4b5c73389f86efe573c013
Time: 2018-01-21
Author: kengzwl@gmail.com
File Name: slm_lab/experiment/control.py
Class Name: Trial
Method Name: run


Project Name: allenai/allennlp
Commit Name: 7df8275e7f70013185f1afeaa2779c2abce4492d
Time: 2018-07-19
Author: matt-peters@users.noreply.github.com
File Name: allennlp/data/fields/text_field.py
Class Name: TextField
Method Name: get_padding_lengths


Project Name: dask/dask-ml
Commit Name: 28793deaf98b37ef5d9425c1ec975a11b397e465
Time: 2018-10-13
Author: github@stsievert.com
File Name: dask_ml/model_selection/_incremental.py
Class Name: BaseIncrementalSearchCV
Method Name: _get_best


Project Name: sympy/sympy
Commit Name: 491635f0fc00102c6729b704b30f64d1f271be23
Time: 2020-07-13
Author: milan.cs16@iitp.ac.in
File Name: sympy/solvers/ode/ode.py
Class Name:
Method Name: constant_renumber