6b9c5e536d9de4aa959caff86a27472e8e75d9f7,finetune/input_pipeline.py,BasePipeline,_context_to_vector,#BasePipeline#Any#,167

Before Change


                        padded_indices.append(idx)
                    else:
                        tokens_with_context.append(sample[idx])
                characteristics = pd.DataFrame(tokens_with_context).to_dict("list")

                // make sure all features cover the same number of tokens, and calculate total num tokens
                num_tokens = None
                for label in self.context_labels:

After Change


                    else:
                        tokens_with_context.append(sample[idx])
                //characteristics = pd.DataFrame(tokens_with_context).to_dict("list")
                characteristics = {k:[dictionary[k] for dictionary in tokens_with_context] for k in tokens_with_context[0].keys()}

                // make sure all features cover the same number of tokens, and calculate total num tokens
                num_tokens = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: IndicoDataSolutions/finetune
Commit Name: 6b9c5e536d9de4aa959caff86a27472e8e75d9f7
Time: 2019-08-02
Author: matthew.bayer@indico.io
File Name: finetune/input_pipeline.py
Class Name: BasePipeline
Method Name: _context_to_vector


Project Name: Pinafore/qb
Commit Name: 2f74f04253d5a90459401d0f09ea0559d50371a0
Time: 2016-06-25
Author: ski.rodriguez@gmail.com
File Name: util/guess.py
Class Name: GuessList
Method Name: check_recall


Project Name: gboeing/osmnx
Commit Name: 8948aabb8b97a26bc788ab5db7543ee6271a436d
Time: 2020-05-22
Author: boeing@usc.edu
File Name: osmnx/io.py
Class Name:
Method Name: save_graph_xml


Project Name: pantsbuild/pants
Commit Name: c7e6e4cfd90d2d05bb9c9dffd519b32e9a1f15f6
Time: 2015-10-23
Author: benjyw@gmail.com
File Name: src/python/pants/reporting/html_reporter.py
Class Name: HtmlReporter
Method Name: start_workunit


Project Name: NifTK/NiftyNet
Commit Name: 223bce2eb5903bf58a12250f3ea5585c33a7778e
Time: 2019-06-05
Author: carole.sudre@kcl.ac.uk
File Name: niftynet/contrib/csv_reader/csv_reader.py
Class Name: CSVReader
Method Name: initialise