100fd825069036e054506b3a0daa076560b1f531,qanta/buzzer/util.py,,_process_question,#Any#Any#Any#Any#,68
Before Change
wordvecs[-1].append(word2vec.get_avg_vec(top_guess))
if queue is not None:
queue.put(qnum)
return qnum, answer_id, guess_dicts, results, wordvecs
class Word2Vec:
After Change
results: sequence of 0 and 1 for each guesser
"""
qnum = int(qnum)
try:
answer = all_questions[qnum].page
except KeyError:
return None
if answer in option2id:
answer_id = option2id[answer]
else:
answer_id = len(option2id)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: Pinafore/qb
Commit Name: 100fd825069036e054506b3a0daa076560b1f531
Time: 2017-10-04
Author: sjtufs@gmail.com
File Name: qanta/buzzer/util.py
Class Name:
Method Name: _process_question
Project Name: ray-project/ray
Commit Name: 4cef1ee591648f289a4e6f00d70e03625e252594
Time: 2020-06-01
Author: xmo@berkeley.edu
File Name: python/ray/serve/router.py
Class Name: Router
Method Name: remove_worker
Project Name: aleju/imgaug
Commit Name: d549674a19765f703603d6cbe2869a8ecf14b428
Time: 2018-06-08
Author: kontakt@ajung.name
File Name: imgaug/imgaug.py
Class Name: BatchLoader
Method Name: _load_batches