original_docstring: Returns true if it is safe to restore power to the building.
docstring: Returns true if it is safe to restore power to the building.
docstring_tokens: Returns true if it is safe to restore power to the building .
code: def safe_to_restore_power(self, building: Unit):
          """Returns true if it is safe to restore power to the building."""
          enemy_range = 15
          enemies_near = self.knowledge.unit_cache.enemy_in_range(building.position, enemy_range, False)
          return not any(enemies_near)
code_tokens: def safe_to_restore_power ( self , building : Unit ) : enemy_range = 15 enemies_near = self . knowledge . unit_cache . enemy_in_range ( building . position , enemy_range , False ) return not any ( enemies_near )
short_docstring: Returns true if it is safe to restore power to the building.
short_docstring_tokens: Returns true if it is safe to restore power to the building .
comment: """Returns true if it is safe to restore power to the building."""