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

Before Change


  output_file_path_fst = os.path.join(
      args.output, "{}-first{}".format(file[0], file[1]))

  output_file_path_snd = os.path.join(
      args.output, "{}-second{}".format(file[0], file[1]))

  split_input_fst, split_input_snd = generate_input_data_for_model(
      args.input, file, args.output)

After Change


        vocab[word] = vocab.get(word, 0) + 1
        word_count += 1

  for word in vocab:
    vocab[word] /= word_count

  dictionary = {}
  with open(args.vocab, "r") as v:
    for line in v:
      line_as_list = line.strip().split()
      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: 4

Non-data size: 5

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: automl/auto-sklearn
Commit Name: f5c13cc251a8b96028ba0b520d57e137d2b833b4
Time: 2018-06-18
Author: 31531627+ahn1340@users.noreply.github.com
File Name: test/test_automl/test_automl.py
Class Name: AutoMLTest
Method Name: test_refit_shuffle_on_fail


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: CellProfiler/CellProfiler
Commit Name: 19a85243c00f9baca673c1b05dd557a1c235a734
Time: 2011-07-22
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/modules/createbatchfiles.py
Class Name: CreateBatchFiles
Method Name: save_pipeline