5bfd14da25c8e55ed9294cdbcb7a3272ef9d0b54,dm_control/autowrap/c_declarations.py,Function,ctypes_func_decl,#Function#Any#,357

Before Change


      s += "\n"
      with indent:
        with indent:
          s += ",\n".join(indent(a.arg) for a in six.itervalues(self.arguments))
      s += "\n"
    else:
      s += ", ".join(indent(a.arg) for a in six.itervalues(self.arguments))
    s += "]\n"
    // return value
    s += "{0:}.{1.name:}.restype = {2:}\n".format(  // pylint: disable=missing-format-attribute
        cdll_name, self, self.return_value.arg)
    return s

  @property
  def docstring(self):
    Generates a docstring.

After Change


    else:
      lines.append("{0}.{1}.restype = None".format(cdll_name, self.name))
    lines.append("")  // Force a newline after the declaration.
    return "\n".join(lines)

  @property
  def docstring(self):
    Generates a docstring.
Italian Trulli
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: ctypes_func_decl


Project Name: tensorflow/datasets
Commit Name: c8804a63fece7a67006a7420a5ada14869f4bcf4
Time: 2020-07-21
Author: cs17btech11040@iith.ac.in
File Name: tensorflow_datasets/scripts/documentation/dataset_markdown_builder.py
Class Name:
Method Name: display_manual


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