bd245a1c18f3b48b389b7a3abbda7176a63e2326,python/ray/actor.py,ActorClass,_remote,#ActorClass#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,401

Before Change


        worker = ray.worker.global_worker
        worker.check_connected()

        if detached:
            logger.warning("The detached flag is deprecated. To create a "
                           "detached actor, use the name parameter.")

        if name is not None:
            if not isinstance(name, str):
                raise TypeError(
                    f"name must be None or a string, got: "{type(name)}".")

After Change



        if lifetime is None:
            detached = False
        elif lifetime == "detached":
            detached = True
        else:
            raise ValueError("lifetime must be either `None` or "detached"")

        if placement_group is None:
            placement_group = PlacementGroup.empty()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: ray-project/ray
Commit Name: bd245a1c18f3b48b389b7a3abbda7176a63e2326
Time: 2020-08-27
Author: ekhliang@gmail.com
File Name: python/ray/actor.py
Class Name: ActorClass
Method Name: _remote


Project Name: ray-project/ray
Commit Name: 1f00f834ac44d06dbe7264ca712b8d587b0a60f6
Time: 2021-01-18
Author: sven@anyscale.io
File Name: rllib/agents/a3c/a3c.py
Class Name:
Method Name: validate_config


Project Name: ray-project/ray
Commit Name: ebdccde0305125c2d507ef459b710a6a5ea99760
Time: 2020-04-28
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/worker.py
Class Name:
Method Name: init