5bfd14da25c8e55ed9294cdbcb7a3272ef9d0b54,dm_control/autowrap/c_declarations.py,Function,docstring,#Function#,380
Before Change
a=a, const=(" <const>" if a.is_const else "")))
s += "Returns:\n"
with indent:
s += indent("{0.return_value.arg}{1:}\n".format( // pylint: disable=missing-format-attribute
self, (" <const>" if self.return_value.is_const else "")))
return s
class StaticStringArray(CDeclBase):
After Change
Generates a docstring.
indent = codegen_util.Indenter()
lines = textwrap.wrap(self.comment, 80)
if self.arguments:
lines.append("\nArgs:")
with indent:
for a in six.itervalues(self.arguments):
s = "{a.name:}: {a.arg:}{const:}".format(
a=a, const=(" <const>" if a.is_const else ""))
lines.append(indent(s))
if self.return_value:
lines.append("\nReturns:")
with indent:
lines.append(indent(self.return_value.arg))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: deepmind/dm_control
Commit Name: 5bfd14da25c8e55ed9294cdbcb7a3272ef9d0b54
Time: 2018-10-10
Author: alimuldal@google.com
File Name: dm_control/autowrap/c_declarations.py
Class Name: Function
Method Name: docstring
Project Name: deepmind/dm_control
Commit Name: 5bfd14da25c8e55ed9294cdbcb7a3272ef9d0b54
Time: 2018-10-10
Author: alimuldal@google.com
File Name: dm_control/autowrap/c_declarations.py
Class Name: Function
Method Name: ctypes_func_decl
Project Name: brian-team/brian2
Commit Name: 97a7acd6886d2318a823d969a5d6b6ea4bd76b6a
Time: 2015-08-23
Author: dg.github@thesamovar.net
File Name: brian2/codegen/generators/numpy_generator.py
Class Name: NumpyCodeGenerator
Method Name: vectorise_code