c728aab9c6d61faf55900a3990183c3d4614d6b4,mathics/builtin/pymimesniffer/magic.py,MagicDetector,match,#MagicDetector#Any#Any#,28
Before Change
else:
from io import StringIO
file = StringIO(str(data))
ext = os.path.splitext(filename)[1]
if ext:
After Change
file = data
else:
from io import BytesIO
file = BytesIO(data)
buf = b""
ext = os.path.splitext(filename)[1]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: mathics/Mathics
Commit Name: c728aab9c6d61faf55900a3990183c3d4614d6b4
Time: 2019-06-05
Author: matera@fisica.unlp.edu.ar
File Name: mathics/builtin/pymimesniffer/magic.py
Class Name: MagicDetector
Method Name: match
Project Name: tensorflow/models
Commit Name: 730035d61822f18043bf8f2821b381da64c34b2c
Time: 2020-02-13
Author: alexgorban@users.noreply.github.com
File Name: research/attention_ocr/python/datasets/unittest_utils.py
Class Name:
Method Name: create_random_image
Project Name: tensorflow/magenta
Commit Name: fd59cc7664302948afb54d0e1811642039c96708
Time: 2018-10-29
Author: iansimon@users.noreply.github.com
File Name: magenta/music/musicnet_io.py
Class Name:
Method Name: musicnet_iterator