6423b7af778be851da8e27ff0539d1fd6169007c,nltk/corpus/reader/wordnet.py,WordNetCorpusReader,custom_lemmas,#WordNetCorpusReader#Any#Any#,1986
Before Change
// open() function) as well as text-stream ones
l = l.decode("utf-8")
l = l.replace("\n", "")
l = l.replace(" ", "_")
if l[0] != "//":
word = l.split("\t")
self._lang_data[lang][0][word[0]].append(word[2])
self._lang_data[lang][1][word[2].lower()].append(word[0])
After Change
// Support byte-stream files (e.g. as returned by Python 2"s
// open() function) as well as text-stream ones
line = line.decode("utf-8")
if not line.startswith("//"):
offset_pos, lemma_type, lemma = line.strip().split("\t")
lemma = lemma.strip().replace(" ", "_")
self._lang_data[lang][0][offset_pos].append(lemma)
self._lang_data[lang][1][lemma.lower()].append(offset_pos)
// Make sure no more entries are accidentally added subsequently
self._lang_data[lang][0].default_factory = None
self._lang_data[lang][1].default_factory = None
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances Project Name: nltk/nltk
Commit Name: 6423b7af778be851da8e27ff0539d1fd6169007c
Time: 2019-05-06
Author: alvations@gmail.com
File Name: nltk/corpus/reader/wordnet.py
Class Name: WordNetCorpusReader
Method Name: custom_lemmas
Project Name: vatlab/SoS
Commit Name: 2a7e3a42cf5d9ba8024ced6b6ba6eb8748dfd995
Time: 2016-12-09
Author: ben.bog@gmail.com
File Name: sos/actions.py
Class Name: SoS_ExecuteScript
Method Name: run
Project Name: CellProfiler/CellProfiler
Commit Name: 64f63c69bb6d88a75326b6291903211cb9c2a651
Time: 2010-12-17
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/gui/html/htmlwindow.py
Class Name: HtmlClickableWindow
Method Name: OnOpeningURL
Project Name: deepfakes/faceswap
Commit Name: b36b52727626129330513fcde593e5c795b57882
Time: 2019-08-24
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/gui/control_helper.py
Class Name: ControlBuilder
Method Name: format_helptext