7d9a7fead18653a43645c3d673499cf639337406,lambdas/es/indexer/index.py,,handler,#Any#Any#,216

Before Change


            try:
                event_name = event_["eventName"]
                // only process these two event types
                if event_name not in [OBJECT_DELETE, OBJECT_PUT]:
                    continue
                bucket = unquote(event_["s3"]["bucket"]["name"])
                // In the grand tradition of IE6, S3 events turn spaces into "+"
                key = unquote_plus(event_["s3"]["object"]["key"])
                version_id = event_["s3"]["object"].get("versionId")

After Change


            try:
                event_name = event_["eventName"]
                // Process all Create:* and Remove:* events
                if not any(event_name.startswith(n) for n in EVENT_PREFIX.values()):
                    continue
                bucket = unquote(event_["s3"]["bucket"]["name"])
                // In the grand tradition of IE6, S3 events turn spaces into "+"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: quiltdata/quilt
Commit Name: 7d9a7fead18653a43645c3d673499cf639337406
Time: 2020-06-03
Author: akarve@users.noreply.github.com
File Name: lambdas/es/indexer/index.py
Class Name:
Method Name: handler


Project Name: ray-project/ray
Commit Name: e9b046306a3211446b9de49ab80083e8c04c4e7e
Time: 2020-08-29
Author: fyrestone@outlook.com
File Name: dashboard/head.py
Class Name: DashboardHead
Method Name: _update_nodes


Project Name: home-assistant/home-assistant
Commit Name: 99aa4307efcb98bf1edba2ac54ff4c1cd81d8480
Time: 2015-11-28
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/helpers/entity_component.py
Class Name: EntityComponent
Method Name: add_entities


Project Name: horovod/horovod
Commit Name: 6889773ea1f550042e37a219c63ee4f4200e983c
Time: 2021-01-25
Author: tgaddair@gmail.com
File Name: test/parallel/test_torch.py
Class Name: TorchTests
Method Name: test_broadcast_state