6ae4f56ed7a7b99d529dbcae551b727737d81b4f,imagekit/models.py,ImageSpecFile,_create,#ImageSpecFile#Any#,100
Before Change
return
fp.seek(0)
fp = StringIO(fp.read())
img = self.field.process(Image.open(fp), self)
// Determine the format.
format = self.field.format
if not format:
After Change
fp.seek(0)
fp = StringIO(fp.read())
img , content = self._process_content(self.name, fp)
self._file = self.storage.save(self.name, content)
else:
// TODO: Should we error here or something if the imagefield doesn"t exist?
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: matthewwithanm/django-imagekit
Commit Name: 6ae4f56ed7a7b99d529dbcae551b727737d81b4f
Time: 2011-09-23
Author: matthew@exanimo.com
File Name: imagekit/models.py
Class Name: ImageSpecFile
Method Name: _create
Project Name: matthewwithanm/django-imagekit
Commit Name: 6ae4f56ed7a7b99d529dbcae551b727737d81b4f
Time: 2011-09-23
Author: matthew@exanimo.com
File Name: imagekit/models.py
Class Name: ProcessedImageFieldFile
Method Name: save
Project Name: reinforceio/tensorforce
Commit Name: cf6d258c003a5a5b5073830e73e4580aeaf71d45
Time: 2017-06-24
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/execution/runner.py
Class Name: Runner
Method Name: run
Project Name: reinforceio/tensorforce
Commit Name: 4251a86130e46e9d8a5e52ffc1c7f86bbd7f3f8a
Time: 2018-01-28
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/models/model.py
Class Name: Model
Method Name: setup