ae2d628c1437e5cf47211b964fb4039ecb456d46,dm_control/autowrap/c_declarations.py,Struct,wrapper_class,#Struct#,120

Before Change


      \"\"\"{0.docstring:}\"\"\"
    .format(self))
    with indent:
      s += "".join(indent(m.getters_setters)
                   for m in six.itervalues(self.members))
    return s

  @property
  def getters_setters(self):

After Change


      \"\"\"{0.docstring:}\"\"\"
    .format(self))
    with indent:
      for member in six.itervalues(self.members):
        if isinstance(member, AnonymousUnion):
          for submember in six.itervalues(member.members):
            s += indent(submember.getters_setters)
        else:
          s += indent(member.getters_setters)
    return s

  @property
  def getters_setters(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: deepmind/dm_control
Commit Name: ae2d628c1437e5cf47211b964fb4039ecb456d46
Time: 2018-10-15
Author: alimuldal@google.com
File Name: dm_control/autowrap/c_declarations.py
Class Name: Struct
Method Name: wrapper_class


Project Name: OpenNMT/OpenNMT-py
Commit Name: ab89e458bdec863f2dc2f7232ffd38d49758b31a
Time: 2018-06-08
Author: srush@seas.harvard.edu
File Name: onmt/Loss.py
Class Name:
Method Name: shards


Project Name: OpenNMT/OpenNMT-py
Commit Name: d6e8ea4250b2a48262bae0276047371ea2dcccf1
Time: 2018-06-15
Author: vince62s@yahoo.com
File Name: onmt/utils/loss.py
Class Name:
Method Name: shards