846e1fc00dd182b77494ff790d8e0352d756dfc0,t2t_csaky/scripts/benchmark_avg_embedding_sts.py,,main,#,28

Before Change


      if line_as_list[0] in vocab:
        dictionary[line_as_list[0]] = numpy.array(
          [float(num) for num in line_as_list[-300:]])
        vocab.remove(line_as_list[0])

  del vocab

  create_benchmark(args.input, dictionary)

After Change


      if line_as_list[0] in vocab:
        dictionary[line_as_list[0]] = (vocab[line_as_list[0]], numpy.array(
          [float(num) for num in line_as_list[1:]]))
        del vocab[line_as_list[0]]

  del vocab

  create_benchmark(args.input, dictionary)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: ricsinaruto/Seq2seqChatbots
Commit Name: 846e1fc00dd182b77494ff790d8e0352d756dfc0
Time: 2018-07-17
Author: purgai.patrik@gmail.com
File Name: t2t_csaky/scripts/benchmark_avg_embedding_sts.py
Class Name:
Method Name: main


Project Name: snorkel-team/snorkel
Commit Name: cd715c4fa982118c93570726efcac17511467759
Time: 2016-09-01
Author: ajratner@gmail.com
File Name: snorkel/models/annotation.py
Class Name: AnnotationKeySet
Method Name: remove


Project Name: uber/ludwig
Commit Name: d6c1b86594ef9a97e9f503547ab6567f89508486
Time: 2019-05-01
Author: smiryala@uber.com
File Name: tests/integration_tests/test_experiment.py
Class Name:
Method Name: test_image_resizing_num_channel_handling


Project Name: biolab/orange3
Commit Name: 21db5efe08e0c246772bf4061b323b46e7d0de42
Time: 2017-03-10
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/data/owmergedata.py
Class Name: OWMergeData
Method Name: _add_instanceid_to_models


Project Name: brian-team/brian2
Commit Name: 5d030a8aa5bf4912e23b2891652e63d01188e9b1
Time: 2017-03-10
Author: marcel.stimberg@inserm.fr
File Name: brian2/units/fundamentalunits.py
Class Name: UnitRegistry
Method Name: remove