MCPcopy Index your code
hub / github.com/diffgram/diffgram / instance_count_updates

Method instance_count_updates

shared/annotation.py:1629–1642  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1627 self.serialized_ids_map[self.instance.id] = True
1628
1629 def instance_count_updates(self):
1630 if self.file is None:
1631 return
1632
1633 if not self.file.instance_type_count:
1634 self.file.instance_type_count = self.instance_type_count_template
1635 if not self.file.count_instances_changed:
1636 self.file.count_instances_changed = 0
1637
1638 if not self.file.instance_type_count.get(self.instance.type):
1639 self.file.instance_type_count[self.instance.type] = 1
1640 else:
1641 self.file.instance_type_count[self.instance.type] += 1
1642 self.file.count_instances_changed += 1
1643
1644 def refresh_instance_count(self):
1645 """

Callers 1

update_instanceMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected