anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: planetlabs/planet-client-python
Issue: planet subscriptions cancel prints null

**Expected behavior**
```
planet-client-python$> planet subscriptions cancel c3195b51-518d-42dc-ad5e-b2ff127070b4
```
has no output

**Actual behavior (describe the problem)**
`planet subscriptions cancel` prints null
```
planet-client-python$> planet subscriptions cancel c3195b51-518d-42dc-ad5e-b2ff127070b4
null
```


Changed files:
planet/cli/subscriptions.py

diff --git a/planet/cli/subscriptions.py b/planet/cli/subscriptions.py
index bb466a4..901a729 100644
--- a/planet/cli/subscriptions.py
+++ b/planet/cli/subscriptions.py
@@ -96,8 +96,7 @@ async def cancel_subscription_cmd(ctx, subscription_id, pretty):
     """Cancels a subscription and prints the API response."""
     async with CliSession() as session:
         client = SubscriptionsClient(session)
-        sub = await client.cancel_subscription(subscription_id)
-        echo_json(sub, pretty)
+        _ = await client.cancel_subscription(subscription_id)
 
 
 @subscriptions.command(name='update')
Repository: planetlabs/planet-client-python
Issue: session_configuration.py needs to be updated

**Expected behavior**
`scripts/session_configuration.py` should pass.

**Actual behavior (describe the problem)**
`scripts/session_configuration.py` fails

**Related Issues**
Please list the ticket numbers (e.g. #708) for any issues already logged in the system.

**Workaround**
Any ways you have found to work around the problem and accomplish your task.

**Minimum, Complete, Viable Code Sample**
```console
> python session_configuration.py test_api_rate_limiting --log-level debug
```

Changed files:
scripts/session_configuration.py

diff --git a/scripts/session_configuration.py b/scripts/session_configuration.py
index 74a0565..19aeeae 100644
--- a/scripts/session_configuration.py
+++ b/scripts/session_configuration.py
@@ -50,7 +50,7 @@ async def test_configuration(execution_number,
 
     async def _search(cl):
         sfilter = data_filter.permission_filter()
-        items = await cl.search(['PSScene'], sfilter, limit=limit)
+        items = cl.search(['PSScene'], sfilter, limit=limit)
         return list([i async for i in items])
 
     await _runit(_search,
@@ -79,7 +79,7 @@ async def test_api_rate_limiting(execution_number,
 
     async def _search(cl):
         sfilter = data_filter.permission_filter()
-        items = await cl.search(['PSScene'], sfilter, limit=limit)
+        items = cl.search(['PSScene'], sfilter, limit=limit)
         return list([i async for i in items])
 
     monkeypatch.setattr(planet.http, 'RETRY_EXCEPTIONS', [])
@@ -110,7 +110,7 @@ async def test_reliability(execution_number,
 
     async def _search(cl):
         sfilter = data_filter.permission_filter()
-        items = await cl.search(['PSScene'], sfilter, limit=limit)
+        items = cl.search(['PSScene'], sfilter, limit=limit)
         return list([i async for i in items])
 
     await _runit(_search,
Repository: planetlabs/planet-client-python
Issue: `planet subscriptions results` not returning more than 20 results

**Expected behavior**
`planet subscriptions results <sub-id>` to return 100 results as specified as the default in the documentation. Or to return 
the proper number of results if `--limit` is greater than 20 (it works properly if the limit is less than 20)

**Actual behavior (describe the problem)**

Only 20 results are returned, even if the `--limit` is set to be greater than 20. 

It seems like the cli client is not actually paging through results - it just does the first 20 and stops. I verified that the http endpoint has more results. It has 20 on the first page, but it has a 'next' link that has 20 per page.

**Workaround**
Going to the http end point directly and following the 'next' links?

**Minimum, Complete, Viable Code Sample**

```console
> planet subscriptions results <sub-id> --limit 21
```

Should result in 21 calls returned, only 20 are.

**Environment Information**
* Operation System Information: macOS-12.2.1-arm64-arm-64bit
* Python version 3.9.15: (main, Oct 11 2022, 21:39:54)  [Clang 14.0.0 (clang-1400.0.29.102)]
* Planet package version: planet, version 2.0a7dev

**Installation Method**
* pip


Changed files:
tests/integration/test_subscriptions_api.py, planet/clients/subscriptions.py

diff --git a/planet/clients/subscriptions.py b/planet/clients/subscriptions.py
index dd884a1..ac9ea69 100644
--- a/planet/clients/subscriptions.py
+++ b/planet/clients/subscriptions.py
@@ -221,7 +221,6 @@ class SubscriptionsClient:
 
         class _ResultsPager(Paged):
             """Navigates pages of messages about subscription results."""
-            NEXT_KEY = '_next'
             ITEMS_KEY = 'results'
 
         params = {'status': [val for val in status or {}]}
diff --git a/tests/integration/test_subscriptions_api.py b/tests/integration/test_subscriptions_api.py
index 4658660..44daf66 100644
--- a/tests/integration/test_subscriptions_api.py
+++ b/tests/integration/test_subscriptions_api.py
@@ -122,7 +122,7 @@ def result_pages(status=None, size=40):
         pm = datetime.now().isoformat()
         if len(results) == size:
             url = f'https://api.planet.com/subscriptions/v1/42/results?pm={pm}'
-            page['_links']['_next'] = url
+            page['_links']['next'] = url
         pages.append(page)
     return pages
Repository: planetlabs/planet-client-python
Issue: Update the create_order to replace PSOrthoTile example with PSScene

**Expected behavior**
No examples using PSOrthoTile. create_order example should use PSScene.

**Actual behavior (describe the problem)**
We've been asked to remove PSOrthoTile examples from all content by March 22. This change can happen anytime.

**Related Issues**
Additional changes to codebase will be requested in the documentation or later as part of a dot release. This request is only to change the example in the file: https://github.com/planetlabs/planet-client-python/blob/main/planet/clients/orders.py

**Workaround**
n/a

**Minimum, Complete, Viable Code Sample**
A "Minimal, Complete and Verifiable Example" will make it much easier for maintainers to help you.
See http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports

Replace:

```python
        ...     image_ids = ['3949357_1454705_2020-12-01_241c']
        ...     request = build_request(
        ...         'test_order',
        ...         [product(image_ids, 'analytic', 'psorthotile')]
```

with:

```python
        ...     image_ids = ["20200925_161029_69_2223"]
        ...     request = build_request(
        ...         'test_order',
        ...         [product(image_ids, 'analytic_udm2', 'psscene')]
```

**Environment Information**
* Operation System Information (`python -c "import platform; print(platform.platform())"`)
* Python version (`python -c "import sys; print(sys.version.replace('\\n', ' '))"`)
* Planet package version (`planet -v`)

**Installation Method**
* conda, pip wheel, from source, etc...


Changed files:
planet/clients/orders.py

diff --git a/planet/clients/orders.py b/planet/clients/orders.py
index d0918c9..584df8d 100644
--- a/planet/clients/orders.py
+++ b/planet/clients/orders.py
@@ -123,10 +123,10 @@ class OrdersClient:
         >>> from planet.order_request import build_request, product
         >>>
         >>> async def main():
-        ...     image_ids = ['3949357_1454705_2020-12-01_241c']
+        ...     image_ids = ["20200925_161029_69_2223"]
         ...     request = build_request(
         ...         'test_order',
-        ...         [product(image_ids, 'analytic', 'psorthotile')]
+        ...         [product(image_ids, 'analytic_udm2', 'psscene')]
         ...     )
         ...     async with Session() as sess:
         ...         cl = OrdersClient(sess)
Repository: planetlabs/planet-client-python
Issue: The Orders object is not using the correct NEXT_KEY parameter name.

When I tried to use the `items_iter()` or `iter()` methods over the `get_orders()` client method, they were only displaying the first page. It is because the response is using the "next" key instead of "_next".

https://github.com/planetlabs/planet-client-python/blob/883ff64437dd0edc07f82a101048ada7abc60440/planet/api/models.py#L323

proposed fix:

```python
class Orders(Paged):
    ITEM_KEY = 'orders'
    NEXT_KEY = 'next'
```


Changed files:
planet/api/models.py

diff --git a/planet/api/models.py b/planet/api/models.py
index 073c1e4..fcc2d5a 100644
--- a/planet/api/models.py
+++ b/planet/api/models.py
@@ -322,6 +322,7 @@ class WFS3Features(AnalyticsPaged):
 
 class Orders(Paged):
     ITEM_KEY = 'orders'
+    NEXT_KEY = 'next'
 
 
 class Order(JSON):