96eb7f81b7d1b68ab80724e7c6ba743dd96a8ce1,stellargraph/mapper/link_mappers.py,LinkSequence,__getitem__,#LinkSequence#Any#,120

Before Change


        end_idx = start_idx + self.generator.batch_size

        if start_idx >= self.data_size:
            raise IndexError("Mapper: batch_num larger than length of data")
        // print("Fetching {} batch {} [{}]".format(self.name, batch_num, start_idx))

        // Get head nodes
        head_ids = self.ids[start_idx:end_idx]

After Change



        // Get head nodes and labels
        head_ids, batch_targets = next(self._gen)
        self.ids = list(head_ids)

        // Get head node types from all src, dst nodes extracted from all links,
        // and make sure there"s only one pair of node types:
        self.head_node_types = self._infer_head_node_types(self.generator.schema)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: stellargraph/stellargraph
Commit Name: 96eb7f81b7d1b68ab80724e7c6ba743dd96a8ce1
Time: 2019-02-14
Author: habiba.habiba@data61.csiro.au
File Name: stellargraph/mapper/link_mappers.py
Class Name: LinkSequence
Method Name: __getitem__


Project Name: biocore/scikit-bio
Commit Name: 9d27c3e2af2e5d4696d9825bc5fcf3e9a6813ccf
Time: 2015-03-24
Author: jai.rideout@gmail.com
File Name: skbio/sequence/_sequence.py
Class Name: Sequence
Method Name: __getitem__


Project Name: cornellius-gp/gpytorch
Commit Name: d71bc3c8b533c319e49cf6b347d13c48c925ea93
Time: 2019-03-18
Author: gpleiss@gmail.com
File Name: gpytorch/utils/getitem.py
Class Name:
Method Name: _compute_getitem_size