17185ae37690febe864dab8bec12a22691890353,bokeh/command/subcommands/file_output.py,FileOutputSubcommand,write_file,#FileOutputSubcommand#Any#Any#Any#,47
Before Change
@abstractmethod
def write_file(self, args, filename, doc):
raise NotImplementedError("write_file")
After Change
self.write_file(args, filename, doc)
def write_file(self, args, filename, doc):
contents = self.file_contents(args, doc)
with io.open(filename, "w", encoding="utf-8") as file:
file.write(decode_utf8(contents))
self.after_write_file(args, filename, doc)
// can be overridden optionally
def after_write_file(self, args, filename, doc):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: bokeh/bokeh
Commit Name: 17185ae37690febe864dab8bec12a22691890353
Time: 2015-12-15
Author: hp@pobox.com
File Name: bokeh/command/subcommands/file_output.py
Class Name: FileOutputSubcommand
Method Name: write_file
Project Name: prody/ProDy
Commit Name: e93f4d4dcd70fc3eaf87779fc9f0b34f98e04ac8
Time: 2012-10-17
Author: lordnapi@gmail.com
File Name: lib/prody/utilities/pathtools.py
Class Name:
Method Name: gunzip
Project Name: biotite-dev/biotite
Commit Name: 39d011abacdf6008fff54eca20a8586c19260cfe
Time: 2018-03-19
Author: patrick.kunzm@gmail.com
File Name: src/biotite/structure/io/mmtf/file.py
Class Name: MMTFFile
Method Name: write