e0168c1674a2d9722e57bcb1249ede56742c65d1,sos/converter.py,,transcribe_script,#Any#,627
Before Change
transcript_file = tempfile.NamedTemporaryFile(mode="w+t", suffix=".trans", delete=False).name
with open(transcript_file, "w") as transcript:
try:
script = SoS_Script(filename=script_file, transcript=transcript)
except Exception as e:
raise ValueError("Failed to parse {}: {}".format(script_file, e))
return transcript_file
After Change
transcript_file = tempfile.NamedTemporaryFile(mode="w+t", suffix=".trans", delete=False).name
with open(transcript_file, "w") as transcript:
try:
SoS_Script(filename=script_file, transcript=transcript)
except Exception as e:
raise ValueError("Failed to parse {}: {}".format(script_file, e))
return transcript_file
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 3
Instances
Project Name: vatlab/SoS
Commit Name: e0168c1674a2d9722e57bcb1249ede56742c65d1
Time: 2016-11-29
Author: ben.bog@gmail.com
File Name: sos/converter.py
Class Name:
Method Name: transcribe_script
Project Name: vatlab/SoS
Commit Name: 092e06ad3c1dbda9b6112ef46a45922f24c5dde8
Time: 2016-09-26
Author: ben.bog@gmail.com
File Name: test/test_convert.py
Class Name: TestConvert
Method Name: testScriptToHtml
Project Name: vatlab/SoS
Commit Name: 092e06ad3c1dbda9b6112ef46a45922f24c5dde8
Time: 2016-09-26
Author: ben.bog@gmail.com
File Name: test/test_convert.py
Class Name: TestConvert
Method Name: testScriptToMarkdown
Project Name: vatlab/SoS
Commit Name: d4a03a10047e2003076705a2077fc5c8a6df885d
Time: 2018-06-23
Author: ben.bog@gmail.com
File Name: test/test_parser.py
Class Name: TestParser
Method Name: testTypeHint
Project Name: vatlab/SoS
Commit Name: d4a03a10047e2003076705a2077fc5c8a6df885d
Time: 2018-06-23
Author: ben.bog@gmail.com
File Name: test/test_parser.py
Class Name: TestParser
Method Name: testFileFormat
Project Name: vatlab/SoS
Commit Name: 092e06ad3c1dbda9b6112ef46a45922f24c5dde8
Time: 2016-09-26
Author: ben.bog@gmail.com
File Name: test/test_parser.py
Class Name: TestParser
Method Name: testCell