PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: oliverschwendener/ueli (ts)

Issue:
[Bug] Taskbar tool tip empty on Windows 11
**Describe the bug**
Taskbar tool tip empty on Windows 11

**To Reproduce**
Run euli.  However over "U" taskbar icon. empty box shown

**Expected behavior**
Should read "Euli" or something.

**Screenshots**
![image](https://github.com/user-attachments/assets/9d24ff62-1616-4e2c-b609-7dc60debc22f)

**Environment**
 - OS: Windows
 - Version 11

**Additional context**
Add any other context about the problem here.


Pull request:
feat(TrayIcon): show tooltip on hover
Fixes #1191

Patch:
diff --git a/src/main/Core/TrayIcon/TrayIconManager.ts b/src/main/Core/TrayIcon/TrayIconManager.ts
index 8e90a3a7..4dc2b30a 100644
--- a/src/main/Core/TrayIcon/TrayIconManager.ts
+++ b/src/main/Core/TrayIcon/TrayIconManager.ts
@@ -19,6 +19,7 @@ export class TrayIconManager {
 
     public async createTrayIcon() {
         this.tray = this.trayCreator.createTray(this.trayIconFilePathResolver.resolve());
+        this.tray?.setToolTip("Ueli");
         await this.updateContextMenu();
     }
 


Test patch:
diff --git a/src/main/Core/TrayIcon/TrayIconManager.test.ts b/src/main/Core/TrayIcon/TrayIconManager.test.ts
index 4efce854..1333b12a 100644
--- a/src/main/Core/TrayIcon/TrayIconManager.test.ts
+++ b/src/main/Core/TrayIcon/TrayIconManager.test.ts
@@ -9,9 +9,15 @@ import { TrayIconManager } from "./TrayIconManager";
 
 describe(TrayIconManager, () => {
     describe(TrayIconManager.prototype.createTrayIcon, () => {
-        it("should create a tray and update the context menu", async () => {
+        it("should create a tray, set tooltip, and update the context menu", async () => {
             const setContextMenuMock = vi.fn();
-            const createTrayMock = vi.fn().mockReturnValue(<Tray>{ setContextMenu: (m) => setContextMenuMock(m) });
+            const setToolTipMock = vi.fn();
+
+            const createTrayMock = vi.fn().mockReturnValue(<Tray>{
+                setContextMenu: (m) => setContextMenuMock(m),
+                setToolTip: (t) => setToolTipMock(t),
+            });
+
             const trayCreator = <TrayCreator>{ createTray: (i) => createTrayMock(i) };
 
             const dummyTrayIconFilePath = "test-tray-icon-file-path";
@@ -44,6 +50,7 @@ describe(TrayIconManager, () => {
             expect(getContextMenuTemplateMock).toHaveBeenCalledOnce();
             expect(buildFromTemplateMock).toHaveBeenCalledOnce();
             expect(buildFromTemplateMock).toHaveBeenCalledWith(dummyContextMenuTemplate);
+            expect(setToolTipMock).toHaveBeenCalledWith("Ueli");
             expect(setContextMenuMock).toHaveBeenCalledOnce();
             expect(setContextMenuMock).toHaveBeenCalledWith(dummyMenu);
         });
Repository: nvim-lualine/lualine.nvim (lua)

Issue:
Filename component: symbols space
So hey........... .-.

The default vim statusline adds one space between the filename and the first symbol

default: `file.xyz [+][RO]`
lualine:  `file.xyz[+][RO]`

Pull request:
This makes it behave like the default statusline by have a space between the filename and the following icons (but not between the icons).

While at it, also added new test case to ensure that representation is correct, when both states (modified and readonly) are active at the same time.

fixes #794

Patch:
diff --git a/lua/lualine/components/filename.lua b/lua/lualine/components/filename.lua
index b7f74f4a0..5d96f5709 100644
--- a/lua/lualine/components/filename.lua
+++ b/lua/lualine/components/filename.lua
@@ -80,19 +80,21 @@ M.update_status = function(self)
     end
   end
 
+  local symbols = {}
   if self.options.file_status then
     if vim.bo.modified then
-      data = data .. self.options.symbols.modified
+      table.insert(symbols, self.options.symbols.modified)
     end
     if vim.bo.modifiable == false or vim.bo.readonly == true then
-      data = data .. self.options.symbols.readonly
+      table.insert(symbols, self.options.symbols.readonly)
     end
   end
 
   if self.options.newfile_status and is_new_file() then
-    data = data .. self.options.symbols.newfile
+    table.insert(symbols, self.options.symbols.newfile)
   end
-  return data
+
+  return data .. (#symbols > 0 and ' ' .. table.concat(symbols, '') or '')
 end
 
 return M


Test patch:
diff --git a/tests/spec/component_spec.lua b/tests/spec/component_spec.lua
index 4b7d1e9c1..1420b3135 100644
--- a/tests/spec/component_spec.lua
+++ b/tests/spec/component_spec.lua
@@ -491,10 +491,25 @@ describe('Filename component', function()
     vim.bo.modified = false
     assert_component('filename', opts, 'test-file.txt')
     vim.bo.modified = true
-    assert_component('filename', opts, 'test-file.txt[+]')
-    vim.bo.modified = false
+    assert_component('filename', opts, 'test-file.txt [+]')
     vim.bo.ro = true
-    assert_component('filename', opts, 'test-file.txt[-]')
+    assert_component('filename', opts, 'test-file.txt [+][-]')
+    vim.bo.modified = false
+    assert_component('filename', opts, 'test-file.txt [-]')
+    vim.cmd(':bdelete!')
+  end)
+
+  it('can show new_file_status', function ()
+    local opts = build_component_opts {
+      component_separators = { left = '', right = '' },
+      padding = 0,
+      newfile_status = true,
+      path = 0,
+    }
+    vim.cmd(':e new-file.txt')
+    assert_component('filename', opts, 'new-file.txt [New]')
+    vim.bo.modified = true
+    assert_component('filename', opts, 'new-file.txt [+][New]')
     vim.cmd(':bdelete!')
   end)
Repository: humbug/php-scoper (php)

Issue:
Restrict possible delimiters for regexes
In PHP in practice any character can be used for regexes. In the context of PHP-Scoper, i.e. matching symbols fully qualified names against regexes, various delimiters are causing issues. For example `\` which makes `\Foo\A` a perfectly valid case or `Bar\BW` for which `B` works out.

For this reason I think it's simpler to restrict regexes to special characters (i.e. non unicode letters) and exclude `\` as well.

Pull request:
Restrict regex delimiters allowed
Fixes #597

Patch:
diff --git a/src/RegexChecker.php b/src/RegexChecker.php
index 8524b78..856cba4 100644
--- a/src/RegexChecker.php
+++ b/src/RegexChecker.php
@@ -43,8 +43,7 @@ final class RegexChecker
 
         $firstCharacter = $value[0];
 
-        if ('\\' === $firstCharacter) {
-            // This is not ideal as not true.
+        if (!self::isValidDelimiter($firstCharacter)) {
             return false;
         }
 
@@ -76,6 +75,13 @@ final class RegexChecker
         );
     }
 
+    private static function isValidDelimiter(string $delimiter): bool
+    {
+        // This is not ideal as not true but is good enough for our case.
+        // See https://github.com/humbug/php-scoper/issues/597
+        return '\\' !== $delimiter && native_preg_match('/^\p{L}$/u', $delimiter) === 0;
+    }
+
     private static function isValidRegexFlags(string $value): bool
     {
         if ('' === $value) {


Test patch:
diff --git a/tests/RegexCheckerTest.php b/tests/RegexCheckerTest.php
index b61f4b6..9e9ca0e 100644
--- a/tests/RegexCheckerTest.php
+++ b/tests/RegexCheckerTest.php
@@ -69,11 +69,18 @@ final class RegexCheckerTest extends TestCase
             false,
         ];
 
+        // See https://github.com/humbug/php-scoper/issues/597
         yield 'fake regex (1)' => [
             '\Foo\A',
             false,
         ];
 
+        // See https://github.com/humbug/php-scoper/issues/597
+        yield 'fake regex (2)' => [
+            'Bar\WB',
+            false,
+        ];
+
         yield 'minimal fake regex' => [
             '////',
             false,
@@ -84,6 +91,16 @@ final class RegexCheckerTest extends TestCase
             true,
         ];
 
+        yield 'regular regex with flags (1)' => [
+            '~foo~iu',
+            true,
+        ];
+
+        yield 'regular regex with flags (2)' => [
+            '#foo#iu',
+            true,
+        ];
+
         yield 'regular regex with invalid flags' => [
             '/foo/NOPE',
             false,