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

Issue:
Treat InternalDocs/* like Docs/*?
I.e. add label "docs" (or similar), "skip news", etc.

An example: https://github.com/python/cpython/pull/127687


Pull request:
Add docs label for markdown files
Closes #656

Patch:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 30d8107..44c9547 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,7 +15,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
+        python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
 
     steps:
       - uses: actions/checkout@v4
diff --git a/bedevere/prtype.py b/bedevere/prtype.py
index 8f58a1c..5136c74 100644
--- a/bedevere/prtype.py
+++ b/bedevere/prtype.py
@@ -43,7 +43,7 @@ async def classify_by_filepaths(gh, pull_request, filenames):
         if util.is_news_dir(filename):
             news = True
         filepath = pathlib.PurePath(filename)
-        if filepath.suffix == ".rst" or filepath.name == ".nitignore":
+        if filepath.suffix in {".md", ".rst"} or filepath.name == ".nitignore":
             docs = True
         elif filepath.name.startswith(("test_", "_test")):
             tests = True
diff --git a/tox.ini b/tox.ini
index 46b348b..eff2deb 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = py{313, 312, 311, 310, 39}
+envlist = py{314, 313, 312, 311, 310, 39}
 toxworkdir={env:TOX_WORK_DIR:.tox}
 
 [testenv]


Test patch:
diff --git a/tests/test_prtype.py b/tests/test_prtype.py
index 8cb76da..158b97d 100644
--- a/tests/test_prtype.py
+++ b/tests/test_prtype.py
@@ -66,7 +66,7 @@ async def test_news_only():
 
 
 async def test_docs_no_news():
-    filenames = {"path/to/docs1.rst"}
+    filenames = {"path/to/docs1.rst", "other/path/to/docs2.md"}
     issue = {"labels": [], "labels_url": "https://api.github.com/some/label"}
     gh = FakeGH(getitem=issue)
     event_data = {
Repository: dtolnay/paste (rust)

Issue:
"Expected identifier after `:` error" when `::` is used inside attribute
This simple example:

```rust
macro_rules! a { (#[x = $x:ty]) => {}; }
paste::paste!(a!(#[x = foo::Bar]));
```

Fails with the error message:

```
error: expected identifier after `:`
 --> src/lib.rs:3:27
  |
3 | paste::paste!(a!(#[x = foo::Bar]));
  |                           ^^
```

It seems like `paste!` is treating the attribute as a doc attribute even though it isn't.

Pull request:
Don't confuse :: with beginning of a case conversion
Fixes #70.

Patch:
diff --git a/src/attr.rs b/src/attr.rs
index 8626d11..d66b843 100644
--- a/src/attr.rs
+++ b/src/attr.rs
@@ -1,6 +1,6 @@
 use crate::error::Result;
 use crate::segment::{self, Segment};
-use proc_macro::{Delimiter, Group, Span, TokenStream, TokenTree};
+use proc_macro::{Delimiter, Group, Spacing, Span, TokenStream, TokenTree};
 use std::iter;
 use std::mem;
 use std::str::FromStr;
@@ -157,6 +157,8 @@ fn is_stringlike(token: &TokenTree) -> bool {
                 None => false,
             }
         }
-        TokenTree::Punct(punct) => punct.as_char() == '\'' || punct.as_char() == ':',
+        TokenTree::Punct(punct) => {
+            punct.as_char() == '\'' || punct.as_char() == ':' && punct.spacing() == Spacing::Alone
+        }
     }
 }


Test patch:
diff --git a/tests/test_attr.rs b/tests/test_attr.rs
index f2a5bf0..c880eac 100644
--- a/tests/test_attr.rs
+++ b/tests/test_attr.rs
@@ -43,3 +43,18 @@ fn test_paste_cfg() {
 
     let _ = new;
 }
+
+#[test]
+fn test_path_in_attr() {
+    macro_rules! m {
+        (#[x = $x:ty]) => {
+            stringify!($x)
+        };
+    }
+
+    let ty = paste! {
+        m!(#[x = foo::Bar])
+    };
+
+    assert_eq!("foo::Bar", ty);
+}
Repository: hylo-lang/hylo (swift)

Issue:
typealiases aren't
This should compile but does not:

```swift
public type X {
  let a: Int = 32
}

typealias Y = X

fun f(x: X, y: Y) -> Int {
  let c = x.a
  return c + y.a // x.hylo:10.16-17: error: type 'Y' has no member 'a'
}
```

Pull request:
Fix #936

Patch:
diff --git a/Sources/FrontEnd/TypeChecking/TypeChecker.swift b/Sources/FrontEnd/TypeChecking/TypeChecker.swift
index 3aac1b0e4..459cc8196 100644
--- a/Sources/FrontEnd/TypeChecking/TypeChecker.swift
+++ b/Sources/FrontEnd/TypeChecking/TypeChecker.swift
@@ -2393,6 +2393,8 @@ struct TypeChecker {
       return lookup(stem, memberOf: t.bareType, exposedTo: scopeOfUse)
     case let t as GenericTypeParameterType:
       return lookup(stem, memberOf: t, exposedTo: scopeOfUse)
+    case let t as TypeAliasType:
+      return lookup(stem, memberOf: t, exposedTo: scopeOfUse)
     default:
       break
     }
@@ -2414,8 +2416,6 @@ struct TypeChecker {
       matches = names(introducedIn: t.decl)[stem, default: []]
     case let t as TraitType:
       matches = names(introducedIn: t.decl)[stem, default: []]
-    case let t as TypeAliasType:
-      matches = names(introducedIn: t.decl)[stem, default: []]
     default:
       matches = []
     }
@@ -2461,6 +2461,19 @@ struct TypeChecker {
     return matches
   }
 
+  /// Returns the declarations that introduce a name with given `stem` as member of `nominalScope`
+  /// and are exposed to `scopeOfUse`.
+  private mutating func lookup(
+    _ stem: String, memberOf nominalScope: TypeAliasType,
+    exposedTo scopeOfUse: AnyScopeID
+  ) -> Set<AnyDeclID> {
+    if let d = names(introducedIn: nominalScope.decl)[stem] {
+      return d
+    } else {
+      return lookup(stem, memberOf: nominalScope.aliasee.value, exposedTo: scopeOfUse)
+    }
+  }
+
   /// Returns the declarations that introduce a name with given `stem` in extensions of
   /// `nominalScope` and are exposed to `scopeOfUse`.
   private mutating func lookup(


Test patch:
diff --git a/Tests/HyloTests/TestCases/TypeChecking/NameLookupWithAlias.hylo b/Tests/HyloTests/TestCases/TypeChecking/NameLookupWithAlias.hylo
new file mode 100644
index 000000000..b37fbeecd
--- /dev/null
+++ b/Tests/HyloTests/TestCases/TypeChecking/NameLookupWithAlias.hylo
@@ -0,0 +1,12 @@
+//- typeCheck expecting: success
+
+public type X {
+  public let a: Int = 32
+}
+
+typealias Y = X
+
+fun f(x: X, y: Y) -> Int {
+  let c = x.a
+  return c + y.a
+}
\ No newline at end of file