PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: zh-lx/pinyin-pro (ts)

Issue:
中国人名汉语拼音字母拼写规则
2011年10月，国家质检总局、国家标准化管理委员会发布《中国人名汉语拼音字母拼写规则》，自2012年2月1日起实施。该标准明确了公民护照上人名的拼音规则，并首次明确，根据技术处理的特殊需要，必要的场合(如公民护照等)，大写字母ü可以用YU代替。目前公安机关签发的出入境证件原则上均依此规则打印制作。

能否支持选项 v  bool 改成string类型，支持ü 转v/yu 多种情况

Pull request:
feat: 支持自定义 ü 要替换为的字符串
close #283 

Patch:
diff --git a/lib/core/pinyin/index.ts b/lib/core/pinyin/index.ts
index 2b52b52..276605d 100644
--- a/lib/core/pinyin/index.ts
+++ b/lib/core/pinyin/index.ts
@@ -85,8 +85,9 @@ export interface BasicOptions {
    * @description 对于 ü 的返回是否转换成 v（仅在 toneType: none 启用时生效）
    * @value false：返回值中保留 ü （默认值）
    * @value true：返回值中 ü 转换成 v
+   * @value string：返回值中 ü 转换成指定字符
    */
-  v?: boolean;
+  v?: boolean | string;
   /**
    * @description 是否开启「一」和 「不」字的变调。默认开启。参考：https://zh.wiktionary.org/wiki/Appendix:%E2%80%9C%E4%B8%80%E2%80%9D%E5%8F%8A%E2%80%9C%E4%B8%8D%E2%80%9D%E7%9A%84%E5%8F%98%E8%B0%83
    * @value true：开启
diff --git a/lib/core/pinyin/middlewares.ts b/lib/core/pinyin/middlewares.ts
index 97bbcd5..304caf7 100644
--- a/lib/core/pinyin/middlewares.ts
+++ b/lib/core/pinyin/middlewares.ts
@@ -157,7 +157,7 @@ export const middlewareV = (
   if (options.v) {
     list.forEach((item) => {
       if (item.isZh) {
-        item.result = item.result.replace(/ü/g, "v");
+        item.result = item.result.replace(/ü/g, typeof options.v === 'string' ? options.v : "v");
       }
     });
   }
diff --git a/types/core/pinyin/index.d.ts b/types/core/pinyin/index.d.ts
index bd80711..f5b5a1b 100644
--- a/types/core/pinyin/index.d.ts
+++ b/types/core/pinyin/index.d.ts
@@ -60,8 +60,9 @@ export interface BasicOptions {
      * @description 对于 ü 的返回是否转换成 v（仅在 toneType: none 启用时生效）
      * @value false：返回值中保留 ü （默认值）
      * @value true：返回值中 ü 转换成 v
+     * @value string：返回值中 ü 转换成指定字符
      */
-    v?: boolean;
+    v?: boolean | string;
     /**
      * @description 是否开启「一」和 「不」字的变调。默认开启。参考：https://zh.wiktionary.org/wiki/Appendix:%E2%80%9C%E4%B8%80%E2%80%9D%E5%8F%8A%E2%80%9C%E4%B8%8D%E2%80%9D%E7%9A%84%E5%8F%98%E8%B0%83
      * @value true：开启


Test patch:
diff --git a/test/v.test.js b/test/v.test.js
index 6eac6cb..6e6973b 100644
--- a/test/v.test.js
+++ b/test/v.test.js
@@ -26,4 +26,9 @@ describe('v', () => {
     const result4 = pinyin('吕布ü', { toneType: 'none', v: true });
     expect(result4).to.be.equal('lv bu ü');
   });
+
+  it('[v]string', () => {
+    const result4 = pinyin('吕和平', { toneType: 'none', v: 'yu' });
+    expect(result4).to.be.equal('lyu he ping');
+  });
 });
Repository: vaskoz/dailycodingproblem-go (go)

Issue:
Day 264
Good morning! Here's your coding interview problem for today.

This problem was asked by LinkedIn.

Given a set of characters `C` and an integer `k`, a De Bruijn sequence is a cyclic sequence in which every possible k-length string of characters in C occurs exactly once.

For example, suppose C = {0, 1} and k = 3. Then our sequence should contain the substrings `{'000', '001', '010', '011', '100', '101', '110', '111'}`, and one possible solution would be `00010111`.

Create an algorithm that finds a De Bruijn sequence.

Pull request:
Day264
Resolves #540.

Patch:
diff --git a/README.md b/README.md
index 8d434d5..5014d04 100644
--- a/README.md
+++ b/README.md
@@ -275,6 +275,7 @@ problems from
 * [Day 261](https://github.com/vaskoz/dailycodingproblem-go/issues/534)
 * [Day 262](https://github.com/vaskoz/dailycodingproblem-go/issues/538)
 * [Day 263](https://github.com/vaskoz/dailycodingproblem-go/issues/539)
+* [Day 264](https://github.com/vaskoz/dailycodingproblem-go/issues/540)
 * [Day 266](https://github.com/vaskoz/dailycodingproblem-go/issues/542)
 * [Day 267](https://github.com/vaskoz/dailycodingproblem-go/issues/543)
 * [Day 268](https://github.com/vaskoz/dailycodingproblem-go/issues/544)
diff --git a/day264/problem.go b/day264/problem.go
new file mode 100644
index 0000000..babd31e
--- /dev/null
+++ b/day264/problem.go
@@ -0,0 +1,31 @@
+package day264
+
+// DeBruijnSequence returns a cyclic sequence in
+// which every possible k-length string of characters
+// in C occurs exactly once.
+func DeBruijnSequence(c string, k int) string {
+	alphabet := []rune(c)
+	a := make([]int, len(alphabet)*k)
+	var seq []int
+	var db func(int, int)
+	db = func(t, p int) {
+		if t > k {
+			if k%p == 0 {
+				seq = append(seq, a[1:p+1]...)
+			}
+		} else {
+			a[t] = a[t-p]
+			db(t+1, p)
+			for j := a[t-p] + 1; j < len(c); j++ {
+				a[t] = j
+				db(t+1, t)
+			}
+		}
+	}
+	db(1, 1)
+	result := make([]rune, len(seq))
+	for i, v := range seq {
+		result[i] = alphabet[v]
+	}
+	return string(result)
+}


Test patch:
diff --git a/day264/problem_test.go b/day264/problem_test.go
new file mode 100644
index 0000000..5105f24
--- /dev/null
+++ b/day264/problem_test.go
@@ -0,0 +1,33 @@
+package day264
+
+import (
+	"reflect"
+	"testing"
+)
+
+// nolint
+var testcases = []struct {
+	c        string
+	k        int
+	expected string
+}{
+	{"01", 3, "00010111"},
+	{"abcd", 2, "aabacadbbcbdccdd"},
+}
+
+func TestDeBruijnSequence(t *testing.T) {
+	t.Parallel()
+	for _, tc := range testcases {
+		if result := DeBruijnSequence(tc.c, tc.k); !reflect.DeepEqual(result, tc.expected) {
+			t.Errorf("Expected %v, got %v", tc.expected, result)
+		}
+	}
+}
+
+func BenchmarkDeBruijnSequence(b *testing.B) {
+	for i := 0; i < b.N; i++ {
+		for _, tc := range testcases {
+			DeBruijnSequence(tc.c, tc.k)
+		}
+	}
+}
Repository: elastic/synthetics (ts)

Issue:
Passing headless `false` still executes tests in headless mode
+ If you pass `headless: false` to `PlaywrightOptions`, the test is expected to run in regular (non-headless) mode, but its not working correctly as CLI args `headless` takes precedence. 

Pull request:
fix: use headless value from playwrightOptions
+ fix #740 
+ Fixes the issue with not able to run in non headless mode in any environments. Also removes the unused `no-headless` flag that is not required anymore as we can simulate it based on `--playwright-options '{"headless": false}`

Patch:
diff --git a/src/cli.ts b/src/cli.ts
index 9c2aaa4..a87a40a 100644
--- a/src/cli.ts
+++ b/src/cli.ts
@@ -79,7 +79,6 @@ program
   )
   .option('--inline', 'Run inline journeys from heartbeat')
   .option('-r, --require <modules...>', 'module(s) to preload')
-  .option('--no-headless', 'run browser in headful mode')
   .option('--sandbox', 'enable chromium sandboxing')
   .option('--rich-events', 'Mimics a heartbeat run')
   .option(
diff --git a/src/common_types.ts b/src/common_types.ts
index 10c4192..03b14e9 100644
--- a/src/common_types.ts
+++ b/src/common_types.ts
@@ -221,7 +221,6 @@ export type CliArgs = BaseArgs & {
   pattern?: string;
   inline?: boolean;
   require?: Array<string>;
-  headless?: boolean;
   sandbox?: boolean;
   richEvents?: boolean;
   capability?: Array<string>;
diff --git a/src/options.ts b/src/options.ts
index 8734707..9f6260e 100644
--- a/src/options.ts
+++ b/src/options.ts
@@ -101,7 +101,6 @@ export function normalizeOptions(cliArgs: CliArgs): RunOptions {
   );
   options.playwrightOptions = {
     ...playwrightOpts,
-    headless: cliArgs.headless,
     chromiumSandbox: cliArgs.sandbox ?? playwrightOpts?.chromiumSandbox,
     ignoreHTTPSErrors:
       cliArgs.ignoreHttpsErrors ?? playwrightOpts?.ignoreHTTPSErrors,


Test patch:
diff --git a/__tests__/options.test.ts b/__tests__/options.test.ts
index 51e67a9..621e126 100644
--- a/__tests__/options.test.ts
+++ b/__tests__/options.test.ts
@@ -33,7 +33,9 @@ describe('options', () => {
       params: {
         foo: 'bar',
       },
-      headless: true,
+      playwrightOptions: {
+        headless: false,
+      },
       sandbox: false,
       screenshots: 'on',
       dryRun: true,
@@ -59,7 +61,7 @@ describe('options', () => {
         defaultBrowserType: 'chromium',
         deviceScaleFactor: 4.5,
         hasTouch: true,
-        headless: true,
+        headless: false,
         ignoreHTTPSErrors: undefined,
         isMobile: true,
         userAgent: