a051a7c9add09a9f7ff1f503e983c08872e41c6c,pliers/stimuli/text.py,ComplexTextStim,_from_srt,#ComplexTextStim#Any#,112
Before Change
duration = self._to_sec(end_) - start_time
line = row.text
line = line.replace("\r\n", " ").replace("\n", " ").replace("\r", " ").replace("\t", " ")
list_[i] = [line, start_time, duration]
// Convert to pandas DataFrame
After Change
end_ = tuple(row.end)
duration = self._to_sec(end_) - start_time
line = re.sub("\s+", " ", row.text)
list_[i] = [line, start_time, duration]
// Convert to pandas DataFrame
df = pd.DataFrame(columns=["text", "onset", "duration"], data=list_)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: tyarkoni/pliers
Commit Name: a051a7c9add09a9f7ff1f503e983c08872e41c6c
Time: 2016-12-27
Author: tyarkoni@gmail.com
File Name: pliers/stimuli/text.py
Class Name: ComplexTextStim
Method Name: _from_srt
Project Name: Maluuba/nlg-eval
Commit Name: 95af2dcce66feb0d1e2b01e1213eb90b52c9c330
Time: 2020-02-10
Author: shikhar.sharma@microsoft.com
File Name: nlgeval/pycocoevalcap/meteor/meteor.py
Class Name: Meteor
Method Name: _stat
Project Name: arviz-devs/arviz
Commit Name: dfd353d69a9b9eed4a871c5f3d2d37255da996ed
Time: 2019-12-10
Author: ahartikainen@users.noreply.github.com
File Name: doc/sphinxext/gallery_generator.py
Class Name: ExampleGenerator
Method Name: exec_file