nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: ioos/compliance-checker
Pull request #855 (2020-11-30 19:06:44)

Fix coordinate typo
The word "coordinate" is misspelled in a few places as "coorindate". This tiny PR fixes those typos.


Patch:
diff --git a/compliance_checker/cf/cf.py b/compliance_checker/cf/cf.py
index 7e3e3aa..4ecc936 100644
--- a/compliance_checker/cf/cf.py
+++ b/compliance_checker/cf/cf.py
@@ -110,8 +110,8 @@ class CFBaseCheck(BaseCheck):
             "5.3": "§5.3 Reduced Horizontal Grid",
             "5.4": "§5.4 Timeseries of Station Data",
             "5.5": "§5.5 Trajectories",
-            "5.6": "§5.6 Horizontal Coorindate Reference Systems, Grid Mappings, Projections",
-            "5.7": "§5.7 Scalar Coorindate Variables",
+            "5.6": "§5.6 Horizontal Coordinate Reference Systems, Grid Mappings, Projections",
+            "5.7": "§5.7 Scalar Coordinate Variables",
             "6.1": "§6.1 Labels",
             "6.2": "§6.2 Alternative Coordinates",
             "7.1": "§7.1 Cell Boundaries",


Test patch:
diff --git a/compliance_checker/tests/test_cf.py b/compliance_checker/tests/test_cf.py
index 49f4569..63e08da 100644
--- a/compliance_checker/tests/test_cf.py
+++ b/compliance_checker/tests/test_cf.py
@@ -1041,7 +1041,7 @@ class TestCF1_6(BaseTestCase):
 
         result_dict = {result.name: result for result in results}
         result = result_dict[
-            u"§5.6 Horizontal Coorindate Reference Systems, Grid Mappings, Projections"
+            u"§5.6 Horizontal Coordinate Reference Systems, Grid Mappings, Projections"
         ]
         assert result.value == (2, 2)
         assert (scored, out_of) == (2, 2)
@@ -1061,7 +1061,7 @@ class TestCF1_6(BaseTestCase):
         assert scored < out_of
         assert all(
             r.name
-            == u"§5.6 Horizontal Coorindate Reference Systems, Grid Mappings, Projections"
+            == u"§5.6 Horizontal Coordinate Reference Systems, Grid Mappings, Projections"
             for r in results
         )
 
@@ -1089,7 +1089,7 @@ class TestCF1_6(BaseTestCase):
         assert len(results) == 6
         assert len([r.value for r in results.values() if r.value[0] < r.value[1]]) == 1
         expected_name = (
-            u"§5.6 Horizontal Coorindate Reference Systems, Grid Mappings, Projections"
+            u"§5.6 Horizontal Coordinate Reference Systems, Grid Mappings, Projections"
         )
         assert all(r.name == expected_name for r in results.values())