PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: scoutapp/scout_apm_python (python)

Issue:
Lower span limit to a debug level message
Currently we log these as a warn message, and can be quite loud for logging

https://github.com/scoutapp/scout_apm_python/blob/master/src/scout_apm/core/tracked_request.py#L92-L96

Pull request:
Change max spans reached log level to debug.
Closes #653

Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6eb1893..9603c25 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,14 +1,16 @@
 # Changelog
 
 ## Pending
-- Improved debug logging for requests. It now includes some summary
-  information about the request.
-  ([Issue #654](https://github.com/scoutapp/scout_apm_python/issues/654))
-- Added Celery's ``priority`` delivery info to the set of tags.
 - Removed parsing queue time from Amazon ALB header, X-Amzn-Trace-Id.
   The time portion of the header only has the truncated seconds which
   appears as about 500ms for queue time constantly.
   ([Issue #631](https://github.com/scoutapp/scout_apm_python/issues/631))
+- Added Celery's ``priority`` delivery info to the set of tags.
+- Changed max spans reached log level from warning to debug.
+  ([Issue #653](https://github.com/scoutapp/scout_apm_python/issues/653))
+- Improved debug logging for requests. It now includes some summary
+  information about the request.
+  ([Issue #654](https://github.com/scoutapp/scout_apm_python/issues/654))
 
 ## [2.19.0] 2021-05-04
 
diff --git a/src/scout_apm/core/tracked_request.py b/src/scout_apm/core/tracked_request.py
index 4fe3a00..55ed674 100644
--- a/src/scout_apm/core/tracked_request.py
+++ b/src/scout_apm/core/tracked_request.py
@@ -91,7 +91,7 @@ class TrackedRequest(object):
 
         if len(self.complete_spans) >= self.MAX_COMPLETE_SPANS:
             if not self.hit_max:
-                logger.warning(
+                logger.debug(
                     "Hit the maximum number of spans, this trace will be incomplete."
                 )
                 self.hit_max = True


Test patch:
diff --git a/tests/unit/core/test_tracked_request.py b/tests/unit/core/test_tracked_request.py
index c3848a2..31d8f12 100644
--- a/tests/unit/core/test_tracked_request.py
+++ b/tests/unit/core/test_tracked_request.py
@@ -133,7 +133,7 @@ def test_start_span_at_max_ignores_span(caplog, tracked_request):
     assert caplog.record_tuples == [
         (
             "scout_apm.core.tracked_request",
-            logging.WARNING,
+            logging.DEBUG,
             "Hit the maximum number of spans, this trace will be incomplete.",
         )
     ]
Repository: s-knibbs/dataclasses-jsonschema (python)

Issue:
Support field descriptions using field metadata
Additional metadata can be given to [dataclass fields](https://docs.python.org/3/library/dataclasses.html#dataclasses.field).

This could be used to provide a description of each field like so:

```python
@dataclass
class InventoryItem(JsonSchemaMixin):
    '''Class for keeping track of an item in inventory.'''
    name: str
    unit_price: float = field(metadata=dict(description="Unit price in £"))
    quantity_on_hand: int = 0
```

Pull request:
Support property descriptions using field metadata
Closes #47 

Patch:
diff --git a/dataclasses_jsonschema/__init__.py b/dataclasses_jsonschema/__init__.py
index b7628f0..9dc52d5 100644
--- a/dataclasses_jsonschema/__init__.py
+++ b/dataclasses_jsonschema/__init__.py
@@ -318,6 +318,7 @@ class JsonSchemaMixin:
         field_schema: JsonDict = {'type': 'object'}
         required = True
         default = None
+        description = None
         if isinstance(field, Field):
             field_type = field.type
             default_value = None
@@ -331,6 +332,8 @@ class JsonSchemaMixin:
             if default_value is not None:
                 default = cls._encode_field(field.type, default_value, omit_none=False)
                 required = False
+            if field.metadata is not None and "description" in field.metadata:
+                description = field.metadata["description"]
         else:
             field_type = field
         field_type_name = cls._get_field_type_name(field_type)
@@ -394,6 +397,8 @@ class JsonSchemaMixin:
 
         if default is not None:
             field_schema['default'] = default
+        if description is not None:
+            field_schema['description'] = description
 
         return field_schema, required
 


Test patch:
diff --git a/tests/conftest.py b/tests/conftest.py
index e91d313..40e9a33 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -33,8 +33,8 @@ class Weekday(Enum):
 
 @dataclass(eq=True)
 class Point(SubSchemas):
-    x: float
-    y: float
+    x: float = field(metadata=dict(description="Point x coordinate"))
+    y: float = field(metadata=dict(description="Point y coordinate"))
 
     @classmethod
     def field_mapping(cls) -> Dict[str, str]:
diff --git a/tests/test_all.py b/tests/test_all.py
index 3fe1bf3..e6f2752 100644
--- a/tests/test_all.py
+++ b/tests/test_all.py
@@ -76,8 +76,8 @@ POINT_SCHEMA = {
     'description': Point.__doc__,
     'type': 'object',
     'properties': {
-        'z': {'type': 'number'},
-        'y': {'type': 'number'}
+        'z': {'type': 'number', 'description': 'Point x coordinate'},
+        'y': {'type': 'number', 'description': 'Point y coordinate'}
     },
     'required': ['z', 'y']
 }