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

Issue:
Calendar show wrong when set minDate
I have a problem when setting minDate
When I set start date = someday in next month and set minDate of the end date is that day, when I open end date calendar, It still displays the current date, I think it wrong

Sorry about my skill English, you can check it in https://jsfiddle.net/Lt08j61p/1/

vue-flatpickr issue: https://github.com/ankurk91/vue-flatpickr-component/issues/136

Pull request:
Fixed calendar not jumping to date after minDate or maxDate or changed
This fixes #1728 . This particular problem appeared after `jumpToDate()` was removed in #1676

Patch:
diff --git a/src/index.ts b/src/index.ts
index 6d019598..4d19c81c 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -2210,15 +2210,21 @@ function FlatpickrInstance(
   const CALLBACKS: { [k in keyof Options]: Function[] } = {
     locale: [setupLocale, updateWeekdays],
     showMonths: [buildMonths, setCalendarWidth, buildWeekdays],
+    minDate: [jumpToDate],
+    maxDate: [jumpToDate],
   };
 
   function set<K extends keyof Options>(
     option: K | { [k in K]?: Options[k] },
     value?: any
   ) {
-    if (option !== null && typeof option === "object")
+    if (option !== null && typeof option === "object") {
       Object.assign(self.config, option);
-    else {
+      for (const key in option) {
+        if (CALLBACKS[key] !== undefined)
+          (CALLBACKS[key] as Function[]).forEach(x => x());
+      }
+    } else {
       self.config[option] = value;
 
       if (CALLBACKS[option] !== undefined)
@@ -2293,6 +2299,9 @@ function FlatpickrInstance(
     jumpToDate();
 
     setHoursFromDate();
+    if (self.selectedDates.length === 0) {
+      self.clear(false);
+    }
     updateValue(triggerChange);
 
     if (triggerChange) triggerEvent("onChange");
@@ -2591,8 +2600,6 @@ function FlatpickrInstance(
    * Updates the values of inputs associated with the calendar
    */
   function updateValue(triggerChange = true) {
-    if (self.selectedDates.length === 0) return self.clear(triggerChange);
-
     if (self.mobileInput !== undefined && self.mobileFormatStr) {
       self.mobileInput.value =
         self.latestSelectedDateObj !== undefined


Test patch:
diff --git a/src/__tests__/index.spec.ts b/src/__tests__/index.spec.ts
index f618ddc4..70195ce1 100644
--- a/src/__tests__/index.spec.ts
+++ b/src/__tests__/index.spec.ts
@@ -491,6 +491,18 @@ describe("flatpickr", () => {
       expect(fp.config.mode).toEqual("range");
     });
 
+    it("set() minDate/maxDate updates current view", () => {
+      createInstance();
+      const now = new Date();
+      const nextMonth = new Date();
+      nextMonth.setMonth(now.getMonth() + 1);
+
+      expect(fp.currentMonth).toEqual(now.getMonth());
+
+      fp.set("minDate", nextMonth);
+      expect(fp.currentMonth).toEqual(nextMonth.getMonth());
+    });
+
     it("setDate (date)", () => {
       createInstance({
         enableTime: true,
Repository: final-form/react-final-form (js)

Issue:
6.3.1 breaks autosave example
### Are you submitting a **bug report** or a **feature request**?
Bug report

### What is the current behavior?

Upon updating to 6.3.1, the AutoSave example no longer works. "values" is always undefined and thus AutoSave never submits form changes.

### What is the expected behavior?

That the AutoSave example would work, or be updated to work.

### Sandbox Link

https://codesandbox.io/s/react-final-form-auto-save-with-debounce-flqx3

### What's your environment?

React-Final-Form: 6.3.1
Final-Form: 4.18.6
React: 16.12.0


Pull request:
Made lazy state getters enumerable
Fixes #677 

Also fixes bug found by @onlyann here: https://github.com/final-form/react-final-form/issues/677#issuecomment-555375751

Patch:
diff --git a/src/getters.js b/src/getters.js
index 949953e..e59bb3f 100644
--- a/src/getters.js
+++ b/src/getters.js
@@ -3,7 +3,8 @@ import type { FormState, FieldState } from 'final-form'
 const addLazyState = (dest: Object, state: Object, keys: string[]): void => {
   keys.forEach(key => {
     Object.defineProperty(dest, key, {
-      get: () => state[key]
+      get: () => state[key],
+      enumerable: true
     })
   })
 }
diff --git a/src/renderComponent.js b/src/renderComponent.js
index eaeedcd..b2a5776 100644
--- a/src/renderComponent.js
+++ b/src/renderComponent.js
@@ -11,12 +11,13 @@ export default function renderComponent<T>(
 ): React.Node {
   const { render, children, component, ...rest } = props
   if (component) {
-    return React.createElement(component, {
-      ...rest,
-      ...lazyProps,
-      children,
-      render
-    })
+    return React.createElement(
+      component,
+      Object.assign(lazyProps, rest, {
+        children,
+        render
+      })
+    )
   }
   if (render) {
     return render(


Test patch:
diff --git a/src/useFormState.test.js b/src/useFormState.test.js
index 5537585..2a3fa88 100644
--- a/src/useFormState.test.js
+++ b/src/useFormState.test.js
@@ -3,7 +3,7 @@
 import React from 'react'
 import { render, cleanup } from '@testing-library/react'
 import { ErrorBoundary } from './testUtils'
-import { useFormState } from './index'
+import { useFormState, Form } from './index'
 
 describe('useField', () => {
   afterEach(cleanup)
@@ -30,4 +30,21 @@ describe('useField', () => {
     )
     console.error.mockRestore()
   })
+
+  it('state should be enumerable', () => {
+    const Test = () => {
+      const state = useFormState()
+      expect(Object.keys(state).length > 0).toBe(true)
+      return <div>It worked</div>
+    }
+    render(
+      <Form onSubmit={() => {}}>
+        {({ handleSubmit }) => (
+          <form onSubmit={handleSubmit}>
+            <Test />
+          </form>
+        )}
+      </Form>
+    )
+  })
 })
Repository: validatorjs/validator.js (js)

Issue:
@ is not considered as A Special Character in "isStrongPassword" function
**Description**
**isStrongPassword** function is not considering '@' as a Special Character

**Example**
```
(() => {
    const validator = require('validator');
    console.log(validator.isStrongPassword('Aa1Bb2Cc3!'));
    console.log(validator.isStrongPassword('Aa1Bb2Cc3@'));
    console.log(validator.isStrongPassword('Aa1Bb2Cc3#'));
})()
```

Output --- 
```
true 
false 
true
```


Pull request:
feat(isStrongPassword): add `@` as valid symbol
adds @ as a valid symbol, also fixes #1563

## Checklist

- [X] PR contains only changes related; no stray files, etc.
- [ ] README updated (where applicable)
- [ ] Tests written (where applicable)


Patch:
diff --git a/src/lib/isMobilePhone.js b/src/lib/isMobilePhone.js
index c34d45d..68a1992 100644
--- a/src/lib/isMobilePhone.js
+++ b/src/lib/isMobilePhone.js
@@ -110,7 +110,7 @@ const phones = {
   'tr-TR': /^(\+?90|0)?5\d{9}$/,
   'uk-UA': /^(\+?38|8)?0\d{9}$/,
   'uz-UZ': /^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,
-  'vi-VN': /^(\+?84|0)((3([2-9]))|(5([2689]))|(7([0|6-9]))|(8([1-6|89]))|(9([0-9])))([0-9]{7})$/,
+  'vi-VN': /^(\+?84|0)((3([2-9]))|(5([2689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,
   'zh-CN': /^((\+|00)86)?1([3568][0-9]|4[579]|6[67]|7[01235678]|9[012356789])[0-9]{8}$/,
   'zh-TW': /^(\+?886\-?|0)?9\d{8}$/,
 };
diff --git a/src/lib/isStrongPassword.js b/src/lib/isStrongPassword.js
index 7433703..e18a759 100644
--- a/src/lib/isStrongPassword.js
+++ b/src/lib/isStrongPassword.js
@@ -4,7 +4,7 @@ import assertString from './util/assertString';
 const upperCaseRegex = /^[A-Z]$/;
 const lowerCaseRegex = /^[a-z]$/;
 const numberRegex = /^[0-9]$/;
-const symbolRegex = /^[-#!$%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/;
+const symbolRegex = /^[-#!$@%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/;
 
 const defaultOptions = {
   minLength: 8,


Test patch:
diff --git a/test/validators.js b/test/validators.js
index baeca63..b9899b6 100644
--- a/test/validators.js
+++ b/test/validators.js
@@ -6391,6 +6391,7 @@ describe('Validators', () => {
           '0883805866',
           '0892405867',
           '+84888696413',
+          '0878123456',
         ],
         invalid: [
           '12345',